LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   New to forum, and pretty new to Linux. Question of .zip files (https://www.linuxquestions.org/questions/linux-newbie-8/new-to-forum-and-pretty-new-to-linux-question-of-zip-files-685985/)

acrampton81 11-25-2008 09:27 AM

New to forum, and pretty new to Linux. Question of .zip files
 
Getting my feet wet again on linux, and slowly picking it up. One question of many is I was trying to install the latest alien arena package. It is a .zip file. Never installed a zip in Linux. the readme says extract to /usr/local/games, tried and it says I don't have permissions. sounds like I should do it in command line, but not sure how, and suggestions.

Ubuntu 8.10 64-bit
AMD FX-60
2 Gb Ram
Geforce 8600 GTS

XavierP 11-25-2008 10:40 AM

To unzip a zip file, open a terminal and type in "unzip <filename>.zip" You will need to be root to move it to /usr/games

I have moved this thread to Linux-Newbie as this more than an intro.

Welcome to LQ :D

indienick 11-25-2008 10:41 AM

Welcome to Linux!

Yup, the commands you were told to run were probably to be done from the command line (as it allows people to provide a concrete set of instructions that don't fall victim to things like the various file managers, and other graphical nuances).

Normally, a user on a Linux/UNIX/*BSD system does not have permission to write to any directory other than their own home directory (/home/YOUR_USER_NAME). When you open up a terminal emulator (Konsole, Gnome-Terminal, Xterm, ..., etc.) type in the following commands, and please note that I am assuming you have the ZIP file in your home directory:
Code:

$ unzip alien_arena.zip
$ sudo mv alien_arena/ /usr/local/games/

Now, to make sure that /usr/local/games is in your $PATH variable; the $PATH
variable lets the shell know where to look for executable files.


$ echo $PATH | grep -i /usr/local/games

If that command does not return anything, then issue the following commands.

$ echo "export PATH=/usr/local/games:$PATH" >> ~/.bashrc
$ source ~/.bashrc


acrampton81 11-25-2008 03:28 PM

Thanks both for the valuable tips. One problem down, several hundred to go


All times are GMT -5. The time now is 07:56 AM.