Ubuntu :: Type "helloWorld" Or "sudo HelloWorld" It Does Not Run?
Jan 18, 2011
I coded a simple hello world program to see if I can get something to work on my own in Linux. I used the command "sudo g++ hello.cpp -o helloWorld" to build the executable. However when I am in the terminal (in the right path) and I type "helloWorld" or "sudo helloWorld" it does not run. I look over at google and it told me that I could be in the wrong directory (path) what I am not, or the file permissions could be set wrong. However I looked it up on google as well and I can't see nothing wrong with the file permissions. Hoping someone could lend a helping hand. These are the file permissions as received from "ls -l".
Quote:
drwxr-xr-x 3 root root 4096 2011-01-18 19:38 bin
-rw-r--r-- 1 root root 1050 2011-01-18 19:37 hello.cbp
-rwxr-xr-x 1 root root 7734 2011-01-18 19:41 helloWorld
-rw-r--r-- 1 root root 117 2011-01-18 19:37 main.cpp
drwxr-xr-x 3 root root 4096 2011-01-18 19:38 obj
View 7 Replies
ADVERTISEMENT
Sep 4, 2010
i have a helloworld.c program that I want to compile and link. i managed to compile it and link it but when i run it using:
Hello
at commant prompt it returns with error about package having a Hello and Hello_Debhelper and I use sudo.....?
View 5 Replies
View Related
Jun 3, 2010
I have installed a copy Fedora core 10 with the Eclipse C++ CDT feature. I am getting the following error when I do a project build for the "HelloWorld.cpp" Eclipse sample program: make: *** [HelloWorld.o] error 127
I am somewhat certain it is caused by an improper or incomplete configuration of Eclipse C++ CDT. Can anyone provide detailed instructions for configuring the Eclipse C++ CDT?
View 4 Replies
View Related
Jul 3, 2011
when i type in sudo apt-get gcc-4.x this happensE: Invalid Operation gcc
View 2 Replies
View Related
Mar 14, 2011
Is there any way not to type password each time I use synaptic or sudo?
View 6 Replies
View Related
Jan 30, 2010
I am going to reinstall my GRUB bootloader and some one said do the followings:
But when I type "sudo grub" in terminal it gives this error: "sudo: grub: command not found"
View 7 Replies
View Related
Mar 12, 2010
I installed Ubuntu Server 9.10 in a virtual machine, and I'm trying to install the VMware Tools but I can't mount the installer CD: $ sudo mount /dev/scd0 /media/cdrom mount: unknown filesystem type 'iso9660'
View 1 Replies
View Related
Mar 12, 2010
I tried to change the basic toolbar to cairo dock,a tutorial that i found told me to write in terminal gksu gedit /etc/apt/sources.list.d/winehq.listso i write it and a window opened,i couled not find the text that told me(the tutorial i mean)so i closed the window,after that i keep taiking the same error
E: Type �sudo� is not known on line 55 in source list /etc/apt/sources.list
E: The list of sources could not be read.
Go to the repository dialogue to correct the problem.
E: _cache->open() failed, please report.
now whene i got in the winehq.list the text has gone and i take this error in update manager,my software center doesn't work and my terminal whenever i type sudo commands says
E: Type �sudo� is not known on line 55 in source list /etc/apt/sources.list
View 9 Replies
View Related
May 4, 2011
don't know much, but when I tried to update I get this error:
E: Type 'sudo' is not known on line 52 in source list /etc/apt/sources.list E: The list of sources could not be read.
View 2 Replies
View Related
Dec 28, 2010
my secure log is flooding with these messages..
sudo: pam_limits(sudo:session): wrong limit value 'unlimited' for limit type 'hard'
Dec 28 22:42:29 yn54 sudo: pam_limits(sudo:session): wrong limit value 'unlimited' for limit type 'soft'
Dec 28 22:42:29 yn54 sudo: pam_limits(sudo:session): wrong limit value 'unlimited' for limit type 'hard'
View 3 Replies
View Related
Dec 8, 2010
I've been a distro-hopper for a while and just installed FC14. I like it and it seems very stable on my older Presario laptop (2170us with 1-Gig Memory and 80-gig HDD).In other distros, I was able to open a Terminal, type "su" & <password> then type "gedit" and take care of things like the Workgroup name in Samba, adding a user to sudoers, etc.....but in FC14's Terminal, typing "su" & <password> and then "gedit" results in all kinds of error messages (that I can't recall right now). I did find after typing "su" & <password>, that if I then typed "sudo gedit", gedit opens just fine.I had tried to type "sudo gedit" (before trying "su") but was told I wasn't in sudoers.I suppose it's minor for someone like me who can eventually find a way around it...but why won't gedit open when I'm a superuser by just typing "gedit"?
View 3 Replies
View Related
Feb 4, 2011
In my system around 73gb(pc-desktop) i have,1 primary partition(windows)-25gb, 1-extended partition(remaining gb) 3 logical partitions were there in (under) extended partition in one of the logical partition is d:drive. in my hard disk d: drive is -/dev/sda5
previosly i was fat -file system , (d:drive-/dev/sda5), i remember i changed the d: drive(d:drive-/dev/sda5) file system to ext4file system ,with following command using terminal
After doing(changing the file system)this one ,i couldnt see the d:drive data
By doing that
1q) Did i reformatted the partition? i think the new filesystem(ext4) has no knowledge of the data that was on it when it had a FAT filesystem.
2q) How to do undo operation,i tried to change the filesystem type to fat/ntfs in terminal using command --sudo mkfs -t FAT /dev/sda5.
Result:its showing text message-'mkfs.FAT: No such file or directory'(not in single quote)
I had very imp data in d:drive
View 1 Replies
View Related
Feb 26, 2010
I just loaded octave. I ran through a few examples of how to implement a script file. Everything works until I get to "plot". When I run the "plot" command I get the following.
octave:2> test1.m
error: can't perform indexing operations for <unknown type> type
sh: gnuplot: not found
Just to double check my work, I ran the following code:
y=[1 2 3];
plot(y);
View 3 Replies
View Related
Jun 10, 2010
explain the difference between these two commands. I'm currently reading about changing your mac address and both of these commands show up a lot. They sound like the same thing to me. Is one better than the other, or do you need to use both to change your mac address?
Code:
sudo ifconfig eth0 down
sudo /etc/init.d/networking stop
View 3 Replies
View Related
May 24, 2011
I am copying the file form one directory to another directory using shellscript.
Here i want to get the Mimetype/Content-type of the file.
How to i can get the MimeType.
View 9 Replies
View Related
Jun 22, 2010
I have a server hacked when i try to log in i type root but won't let me type a passwdthere are no services up, can't see page mail nothing
View 11 Replies
View Related
Jan 26, 2010
I'm trying to compile a program and it gives me the following:
I checked cmath-util.h:46 and cmath-util.h:48:
I'm not a C person, and the author is unavailable so far.
View 5 Replies
View Related
Jan 2, 2011
I have a problem when I want to use su I get this error:Code:su: pam_start: error 26I have googled it so I found this topic (http://www.linuxquestions.org/questi...r-26-a-615024/) but it didn't really help me. There was a reply on that topic and his question was what the output of this was:
Code:
ldd /usr/bin/passwd
and
[code]....
View 4 Replies
View Related
Sep 16, 2010
A day ago I finally got around to upgrading the PackageKit installation that had been sitting for a week and a half, so I found a new upgrade for sudo available - the one that gives the sudoreplay command, I forget which version number it is exactly. When I try to use the sudo command I get this notice in my terminal:Code:Can't open /var/db/sudo/me/1: Permission deniedI didn't get it before. What do I have to do to make it open? I'm using SELinux in enforcing mode if that helps.
View 1 Replies
View Related
Jul 2, 2011
I have read a lot of questions from people wanting to take Debian (or some other distribution) and make its sudo command act more like the way Ubuntu's sudo does. I want to do the exact opposite, I want to make Ubuntu's sudo command act more like the sudo command from another distribution. ie I want there to be one root password
View 8 Replies
View Related
Jan 6, 2011
Kernel 2.6.21.5, Slackware 12.0
Code:
Code:
On the other hand
Code:
So, I do not understand why the notification "sudo: cd: command not found", considering cd is a bash built-in command.
View 3 Replies
View Related
Oct 11, 2009
Where is the SUDO file at, and remind me how do I add myself as a SUDO'er?
View 3 Replies
View Related
Jun 19, 2011
It is my understanding that they do the same: they ask for my password (if I am allowed in /etc/sudoers), and give me a login shell as root.
Is there any difference between them?
sudo su -
sudo -i
Also, what's the difference between
sudo su
sudo -s
I think that they both ask for my password, and give me a shell with my old environment variables.
View 1 Replies
View Related
Jun 18, 2010
I am having trouble running commands by using sudo. I configured visudo file with localuser ALL=(ALL) ALL but I can't run any command, it tells me command not found.
View 8 Replies
View Related
Mar 4, 2011
I am trying to generic way to convert the string datatype to other primitive data type. To achieve, i used Template . But i getting error and couldn't resolve the issue and error reported is also clueless.
Code
====
#include <vector>
#include <iostream>
#include <string>
[Code].....
View 7 Replies
View Related
May 29, 2010
I am new to fedora (been using debian based distro's for the longest time). With the new release I decided to give FC13 (The kde 64 bit spin) a try. I told it to wipe my entire hdd and encrypt the partitions. The partition manager made a few LVM partitions which I assume are encrypted.
The problem I am having is that if I attempt to use an application that would normally need root access to run, I am not prompted to enter my root password. Instead, I am required to logout and log back in as root. Is there a way to make it so that FC13 will prompt me to enter in my root password so I do not need to log in and out? Or is there something Different I should have done during the install process? Also, what is the terminal equivalent of "sudo" in fedora, or is it still sudo/KDEsudo
I also have not used SE Linux before. Do I need to manually enforce the permissions for my applications and generate my own profiles for it, or is that done automatically?
View 14 Replies
View Related
Mar 28, 2011
Alright setting up a friends netbook, display has been a little iffy (slow. glxgears is giving like 100fps). Couple issues: xorg.conf doesn't exist (i know thats typically not an issue) and "sudo xorg -configure" and "sudo xorg --configure" both return "xorg command not found."
glxinfo say that its using Mesa for the software rasterizer and that the driver is from mesa. lspci says the VGA controller is from Intel. I'm thinking xorg is defaulting to vesa for drivers, but I need to know how to change that to the open source intel driver
View 7 Replies
View Related
Nov 30, 2010
can anyone tell me the difference between "sudo shutdown now" and "sudo shutdown 0"
i know that "sudo shutdown 0" will shutdown the system in 0 seconds. but when i run sudo shutdown now my system goes into the maintenance mode?? what is maintenance mode??
View 2 Replies
View Related
Feb 12, 2011
So installing a programm is a problem. I like to install Aqualung. "/.configure" works. But "make" seems to be not installed. "checkinstall" seems to be not installed "sudo apt-get make" does not work. I have no internet connection with linux, because I have no idea how I install the network card. I guess this sudo command use internet? Is there another way to compile that program? (And just by the way, why must this be so difficult?
View 3 Replies
View Related
Aug 14, 2010
So last night after I got home from the bar I got on my laptop with ubuntu 10.04.
I think I held down the shift key for a while and a message popped up like 'sticky keys' for winbloze.
I hit cancel on the box, but then couldn't type anything after. Not in Gedit, not in firefox, not in openoffice.
I tried holding shift to bring the box back, and no luck.
What to do?
View 7 Replies
View Related