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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Coz I am a newbie of Linux,I wanna logged in QQ(a very popular IM in China)to communicate with my e-pals.
After I downloaded Linux QQ and extracted it,I found it's difficult to run it.
Its properties shows as follow
One, what Linux distribution are you running? Different distros have different ways to manage software installation.
Two, which version of QQ do you have? I found the download page here, and they offer a .deb type package for Debian-based distros, an .rpm package for Redhat/Suse, and a tar.gz package, which is a generic source package that needs to be compiled before it can be used. (I'm not too sure what the fourth one is, it looks like source coded for a specific kind of platform--something for portables?)
How about listing the program. Also look on the site for a readme.
Also run "file <filename>" and see if it says that it is an elf binary. If so, you can probably change the permissions and copy it to /usr/local/bin.
Check if /usr/local/bin/ is in your path:
If it isn't then add these lines to your ~/.bashrc file:
Sometimes when you download a file, it will be a binary installer. Usually when this happens, it will have an .bin extension.
The .bin extension isn't needed. It is just a convenience. If this is the case, run "sh <filename>" or "chmod +x <filename> && ./<filename>"
I've been using <filename> because you didn't supply the name of the file. Use the name of the file without <,> in place of <filename>.
Why not install a more recent Fedora distro. RH9 is ancient. I don't understand why people still download it. Red Hat doesn't support it any more for security updates, so using RH9 could be dangerous.
You first said that the download was a .tar.gz file. Then you said it was named "qq" so I am a bit confused which it is. Do you mean that you extracted the archive and there was a qq file inside? There probably is a README file inside as well with instructions. If there is a qq/ directory extracted, then check if there is a "configure" file and a README file inside.
Sometime, the software has an install program. Sometimes a "Makefile" is present that will perform the installation for you if you run "sudo make" inside the directory.
Use the terminal to copy the file, (if there is no readme) and the file is by itself. "sudo cp gg /usr/local/bin". The /usr/local/ prefix is used for programs you install itself, although you could use /usr/bin/ instead. Leave /bin/ alone. There should just be core utilities and programs there that the system needs to run its basic functions.
Notice my use of sudo. Your problem is that you don't have write permission for the /bin/ directory. That is normal. You should rarely run a GUI program as root.
Ok, I downloaded the tar.gz file and opened it up. It seems I was wrong about it being a source file, because the only things inside it are the qq binary and a "res.db" database file. This means that it's very easy to run it; simply cd to the directory it's in and type "./qq". The ./ in front of the name tells bash to execute the command in the current directory. Alternately, you can type the full path name, such as "/home/david/temp/qq".
If you want to make it launchable without specifying the path, then you need to add the directory to your PATH shell variable. The command "echo $PATH" will show you which directories bash looks in when trying to run a command.
For a single-user installation, you should create a directory /home/username/bin and place the files you want to run there. Then edit your /home/username/.bashrc file (note the period in front of the filename, which makes it a hidden file), and edit (add it, if it doesn't exist) the PATH line in it to read PATH="/home/username/bin:$PATH". Then any new shells started for that user should be able to launch the program.
You can also "install" the program globally instead by putting the qq binary in /usr/bin or /usr/local/bin (the second is more common for manual installs). But in this case it appears you also need to have a copy of the res.db file in your home directory for the program to run.
I'm not certain where it expects the .db file. Is there a readme or faq on the site, please read it.
sudo cp qq /zhangke/local/bin
Your home directory should be in /home/zhangke/. Linux will still work with /zhangke, but using the standard will make
it easier for people to help you on this site and make documentation make for sense. It you are putting the program in your home directory, you don't need to use sudo.
It also looks like you don't have your sudoers file configured. You can fix that.
1) Add yourself to the "wheel" group.
2) Run "sudoers" and uncomment the line: "# %wheel ALL=(ALL) ALL" by removing the "# " from the beginning. Even if you don't
need sudo now, you will later on.
Since this program is used with a service on the net, you could try emailing them if you have a problem.
If you really have RH9 and didn't mean Fedora 9, then I would recommend using a recent version or Fedora. You may have problems installing tarballs or running programs because the libraries and kernel that RH9 is based on may be obsolete.
You will end up spending more time getting hardware or software to work than a new download and install would take.
before I came to here,I've googled the ways to run a program and tried the ./programname approach
the terminal responsed "Floating point exception" then I thought the way must be wrong
David,have you run QQ successfully?
I am considered a new edition of Linux now
I got the tar.tgz version to run successfully. Well, at least the first window comes up, I don't know how to use it from there.
The res.db file seems to need to either be in the same directory as the executable or in the user's main home directory. When I tried copying it to /usr/local/bin and running it from there, it failed to work until I put res.db in home, then it worked fine. Putting both files in /usr/local/bin didn't work.
Assuming you really are using RH9, I'd have to guess that's the problem. The one thing I can read on the download page is that it requires a minimum 2.6 kernel and 2.10 GTK library. But Google tells me that RH9 still used the 2.4 kernel, am I right? Please post the output of "uname -a" so we can confirm what platform you're running.
Do book stores in your area carry the British based magazines that contain a DVD of a distro each issue? You could download a CD or DVD or use bit torrent. Some distro's also have a small net install image that you can burn to CD and install the main distro over the internet.