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.
device partion 11, the partion is /usr and the type of partition is ext3 ? (rw)? ????
The first column is the device node (in the /dev directory). hdb means IDE channel 1, slave device. 11 is the partition number, but it's not 100% simple. 1-4 are the primary partitions. You're only allowed to have 4 of these (according to the IBM PC standard). However, there's a work-around this limitation. You can turn one of them into an "extended" partition, which is a container for "logical" partitions. These get numbers starting from 5 (so you can tell just from the number if it's a primary or a logical partition). So you may have something like this:
/dev/hdb1 is a primary partition with windows in it.
/dev/hdb2 is an extended partition filling the rest of the disk
/dev/hdb3 and /dev/hdb4 are primary partitions which don't exist
/dev/hdb5 is the first logical partition which resides "inside" /dev/hdb2
/dev/hdb6 is the second logical partition which resides "inside" /dev/hdb2
So it looks like you have at least 7 (!) logical partitions, the seventh being /dev/hdb11. By the way, hda is the primary master IDE drive, hdc is the secondary master, and hdd is the secondary slave.
The /usr part says where in Linux's virtual filesystem the partition is mounted. In your case, this is /usr. All the files and directories you see in /usr or a sub-directory of that are contained on the partition /dev/hdb11 unless some other device takes a sub-directory. For example, /usr/share/man and it's sub-directories might be on a different device.
ext3 is the partition type. Consider it a format. ext3 is commonly used on Linux systems. ReiserFS is another common one. FAT and NTFS are the windows partition types. HFS and HFS+ is used on the Mac. ISO9660 is the format for CDROMs etc etc. There are many in use for differrent purposes.
Lastly the (rw) means the partition is mounted read-write. If the noexec flag which I mentioned in my origial post were present, it would appear here. It is not, so my idea as to the cause of your problem is incorrect! I'll have another think.
However just a bit of background to this problem. I run Mandriva 2007 and yesterday I went into configure your PC and looked for installable packages using the interface. I was looking for Xearth because I ran this years ago when I had a dabble with Linux.
I found the package and it wasnt already installed. At the same time I noticed there was an Xplanet and an Xfishtank that I could also install. So I installed all three packages from the interface. None of them run! All down as read only to user.
Am I being a complete newbie somehow?
Although im not at my machine to check, I seem to remember finding them after installation using kde find, xearth etc. plus it found some libs.
The directory im trying to execute them from is /usr/X11R6/bin.
This is where I changed the permission for xearth. The very same place where KDE graphically says I dont have permission! ???
In fact as I think about this im wondering if KDE is screwed?
Although ive only been up and running Linux two weeks Ive had a few problems with packages running and then not running. The other day I had Kscd running then the following day it said I didnt have permission, then I played a cd in Xine fine but when I went back to Kscd it ran ok!???? I also got a message kexec.io not found when trying to run kscd but then everything was fine. However I didnt seem to do anything to correct it!
(yes the ./ is important) in the directory that the xearth file resides in, what happens?
It's a long shot, but unlike Windows, Linux does not automatically include the current directory in the PATH statement. Therefore, if you're trying to run an executable in a directory that's not in the PATH, then you have to specify "this directory" by using ./
I think just a plain old . will work as well, but not sure and not in front of a Linux box at the moment.
I'd expect my package manager to set the correct permissions. I can't comment on Mandriva - never used it. It's is a mystery to me. Lets see what the output of that command turns up. You might need to execute updatedb (as root) before it turns up anything.
This is the output from the command $ ocate /xearth |grep 'xearth$' |xargs ls -ld
-rw-r--r-- 1 root root 516 Jan 1 2006 /usr/lib/menu/xearth
drwxr-xr-x 2 root root 1024 Nov 26 23:18 /usr/share/xearth
-rwxr-xr-x 1 root root 183592 Jan 1 2006 /usr/X11R6/bin/xearth
The result from # updatedb -u was:
slocate: fatal error: Security level must be 0 or 1.
locate will only show files which were on the system the last time updatedb was run. I don't know why you get this error when you run updatedb. It's not possible to know if this was a pre-existing copy of the program, and you've installed a new one since then. This is a little problematic. OK, we can see if there is another xearth program with this command (please paste the result here):
( IFS=: ; for d in $PATH; do ls -l $d/bash 2>/dev/null; done )
ok now to ./xearth
in the actual xearth directory hangs the konsol so open another terminal and run ps -aux
hangs the konsol and no actvity from pc harddrive.
( IFS=: ; for d in $PATH; do ls -l $d/bash 2>/dev/null; done )
the output -rwxr-xr-x 1 root root 725160 Aug 24 16:05 /bin/bash*
I would just like to say I appreciate everybodies help. Although I think we must be on a loser here.
Im thinking about going back to the installation disk and trying to see if I can change security level so that I can run updatedb.
First I will try and find if the security level is configurable from terminal.
Oh one other thing (and this happened with xine aswell) the xearth doesnt appear in my menus, with xine i found the executable and linked it to icon on desktop using full path and it was fine. Obviously that wont work with xearth because path doesnt execute.
Also the same evening that I installed xearth I installed xtraceroute and that did appear in th e menus and did run ok. So some apps work and some dont.