Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
But I get back that I dont have permission to write to the sbin file.
I know I must do this as root but can someone please tell me how.
I tried adding sudo before the cd command and it said "cd command not found"
Synching evolution with an online calendar is crucial for me. Any help would be appreciated.
Ubuntu has disabled root loogin, but there is a way around it. The prefered way in Ubuntu is to use sudo.
Open a console, then give the command 'cd /usr/local/sbin' (without quotes). You should be allowed to cd into /usr/local/sbin as normal user.
Move the file you downloaded to /usr/local/bin: sudo mv ~/downloads/gcaldaemon-linux-1.x.zip /usr/local/sbin (assuming the file is in your home directory in a sub-directory called downloads). You will need to use sudo in order to write to /usr/local/sbin, because normal user does not have permission.
Now, to unzip the file, sudo unzip gcaldaemon-linux-1.x.zip.
sudo chgrp -R groupname GCALDaemon (where groupname is the name of the group you are supposed to assign to the file)
This is what I'm getting when I try to cd to usr/local/sbin
But I think the file does exist because I see it in the file manager.
amre@amre-laptop:~$ cd/usr/local/sbin
bash: cd/usr/local/sbin: No such file or directory
So it stands to reason that when I follow along and input the rest of the commands I get:
amre@amre-laptop:~$ sudo mv ~ /home/amre/Desktop/gcaldaemon-linux-1.0-beta16.zip /usr/local/sbin
mv: cannot stat `~/home/amre/Desktop/gcaldaemon-linux-1.0-beta16.zip': No such file or directory
Can you tell me what I'm doing wrong?
Thanks so much.....
You need a space between "cd" and the directory you want to change to.
Edit: your mv command is wrong because "~" is used to mean your user's home directory (/home/amre in this case). So, you don't want to move from ~/home/amre/Desktop/filename, but rather /home/amre/Desktop/filename or ~/Desktop/filename.
you can enable root access in gui in ubuntu the following way:
go to SYSTEM->ADMINISTRATION->USERS AND GROUPS and on user "ROOT" click properties and set a password in the 'account' tab, then in the 'user privileges' tab place all the ticks and 'ok' your way out.
then go to SYSTEM->ADMINISTRATION->LOGIN WINDOW and in the 'security' tab place a tick in 'allow local system administrator login'
you're done! now you can login as root and start making and breaking your system from X!
A much better approach is to just create an interactive sudo session, by running "sudo -i"
This will put you in a root shell, and you won't have to run sudo before every command. Just remember to run "exit" when you're done, so you don't accidentally keep doing stuff as root.
As others have pointed out, a space is required between commands and their arguments.
Open a console, then give the command 'cd /usr/local/sbin' (without quotes). You should be allowed to cd into /usr/local/sbin as normal user.
Move the file you downloaded to /usr/local/bin: sudo mv ~/downloads/gcaldaemon-linux-1.x.zip /usr/local/sbin (assuming the file is in your home directory in a sub-directory called downloads). You will need to use sudo in order to write to /usr/local/sbin, because normal user does not have permission.
Now, to unzip the file, sudo unzip gcaldaemon-linux-1.x.zip.
sudo chgrp -R groupname GCALDaemon (where groupname is the name of the group you are supposed to assign to the file)
sudo chmod -R g+w GCALDaemon
sudo chmod 755 GCALDaemon/bin/*.sh
I finally got into the usr/local/sbin file. When I attempt to move Gcaldaemon there I get this response. What am I doing wrong now??
amre@amre-laptop:/usr/local/sbin$ sudo mv ~ /home/amre/Desktop/gcaldaemon-linux-1.0-beta16.zip usr/local/sbin
mv: target `usr/local/sbin' is not a directory
Thanks to everyone who is guiding me through this.
Another question I have is about "groupname" is this a name I choose or find somewhere.......
Thankyou all so much for your help! GCALDaemon is installed!
I have the program installed now and have followed the instructions in the documents file. Haven't gotten it to sync. yet, but I'm working on it. Is there a way to get a sync launcher on the desktop so I don't need to open the terminal to get it to sync on demand?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.