UbuntuThis forum is for the discussion of Ubuntu Linux.
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi everyone. I installed Linux this morning (at 3 AM), and I'm looking at some of the Open Source games (such as those Doom games), so I'm a bit of a .
However, when I try to move the files into the appropriate folders in / (such as moving prboom into /usr/games), I get an error message saying I do not have permission.
Although this is a Family PC, I am the main user of the computer, and I installed Linux, and registered it to me. Therefore, shouldn't I have all the rights? Can someone please help!
To see the permissions for the directory. You'll seomthing like:
drwxrwxr-x 3 trebor trebor 4096 Mar 5 20:26 .thunderbird/
Make sure that where it says trebor trebor on mine it doesn't say root root on yours. If it does, you will have to change permissions by logging on as root and changing permissions. You can do it as
chown username
Check the syntax, don't remember exactly off the top of my head.
The first "trebor" will change to your username.
Also, look on the left hand side at:
drwxrwxr-x
IIRC, the d means directory and then the rwx gives read/write/executable status for user/group/everyone
Ensure that the first set is set to rwx by using chmod. Again, look up the syntax to understand it properly.
Don't change the permissions on the /usr/games directory. What kind of file do you have?
You will almost never install a program by just copying a file to a location.
If what you downloaded is a package, then you need to use your package system to install the file.
If it is a tarball (ending in .tar.gz) then you should download it into your home directory, untar the archive, and read the README and INSTALL files to learn how to install it.
Most tarballs are installed like this:
tar xvzv packagename.tar.gz # This creates a source directory by the same name (without the extention)
cd packagename
# Now read those two files to find out if there are any special instructions
# ./configure --help may also supply you with options to consider
./configure
make
su
<enter root password>
make install
The last step will copy the files where they need to go.
If on the otherhand, you are simply saving a WAD file, then you can su to root and copy the file:
su
<password>
cp game.wad /usr/local/games/ # I used /usr/local/ because upgrading the distro won't touch it.
exit # stop being root.
It might be better to use the 'sudo' command for this but that takes setting up your /etc/sudoers fille using the 'visudo' program.
I believe that Ubunto is a slackware derivative, so you will want to read your documentation on how to install packages. They are similar to tarballs, but use the proper install tool to install them.
Sorry, I misread what you were after. I thought you were having problems just coping the installation files to a particular directory. jschiwal is quite right in what he says about installatiion!
btw, chown needs a few paramters after it. Do a bit of reading up about it, either with chown --help or by surfing to find out how to use it. IMHO, it's best to do it that way rather than just be told what to type in a particular instance, as that way you really understand what you're doing.
then type "nautilus", navigate to where you want the file moved TO. While this nautilus window is open, open your home folder and drag/drop the file where you want it to reside.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.