LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 09-27-2004, 12:48 PM   #1
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Rep: Reputation: 35
how to organize linux?


Hi i am a noob and wanted some hints on how to organize linux. As of right now pretty much everything i download and install i toss into /home/myname/. Does it matter where i compile programs from? Or should i compile it elsewhere? Like for mplayer and xine should i make a video or multimedia folder and compile it there?
 
Old 09-27-2004, 12:55 PM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,990

Rep: Reputation: 69
In general, you want to put everything that's used by you (programs you're compiling, documents you create, etc.) somewhere under /home/username. Your user directory is intended for user-specific files.

To access other parts of the filesystem, you normally need to have special permissions, and it's not a good idea to give those to a regular user.

My suggestion is to set up a directory structure under your home directory; say, one directory for programs, another for documents etc. and keep everything in there.

You can also use /tmp for scratch space, and that's about the only other place you can write to as a regular user. (except for /mnt or /media for removable devices of course). Everywhere else is for system commands, regular commands, documentation, log-files and so on that you don't want to get mixed up with your personal documents.

You might want to take a google search for LFS (the Linux Filesystem Standard) which describes what all the different bits do, if you're interested.
 
Old 09-27-2004, 01:05 PM   #3
detpenguin
Senior Member
 
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,091

Rep: Reputation: 45
i created a new directory in /home/me/ and called it dowloads. thats where everything is downloaded to and i compile from there.
 
Old 09-27-2004, 03:07 PM   #4
penguin4
Senior Member
 
Registered: May 2004
Location: california
Distribution: mdklinux8.1
Posts: 1,209

Rep: Reputation: 45
drzoyus69; all good advise,add this,
think in terms of a file cabinet, (directory), then fill with file folders also
with files. keep as organized to ease of finding using each file without getting frustrated. ie: directory-index/table of contents, list of folders(with names)(within -list of files{with names}). other wise confusion & frustration. hope this helps clear air.
 
Old 09-27-2004, 03:53 PM   #5
vasudevadas
Member
 
Registered: Jul 2003
Location: Bedford, UK
Distribution: Slackware 11.0, LFS 6.1
Posts: 519

Rep: Reputation: 30
A good place to put source code for applications you have downloaded is /usr/local/src, with one folder per application (just as they are when you untar them, essentially). You will have to be root to write to this place.
 
Old 09-27-2004, 05:51 PM   #6
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Wow, some people are so organised! I download stuff straight to my home directory, untar it to /tmp and compile it there then after installing I delete the source directories! My programs go in /usr/local/, my libraries go in /usr/lib

That's about it...I have a /usr/local/media directory for mp3 and video (under subdirs...) but I'm not at all organised!
 
Old 09-27-2004, 08:52 PM   #7
lucbosian
LQ Newbie
 
Registered: Sep 2004
Posts: 9

Rep: Reputation: 0
i was wondering if someone could help me out. Some folders have lock image on the folder. I supose that means that a normal user can't access it. So I tried to access it as root, but when I try the system tells me that the folder no longer exists. Why does that happen?
 
Old 09-28-2004, 02:11 PM   #8
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,990

Rep: Reputation: 69
What software are you using to view the folders? And can you give an example of such a folder please?
 
Old 09-28-2004, 04:13 PM   #9
lucbosian
LQ Newbie
 
Registered: Sep 2004
Posts: 9

Rep: Reputation: 0
i'm using Kde Desktop manager
these type of folders apear when i mount my windows partition hda1, the folder contains mp3s but i noticed it also in some other folders.
the folder has like a purple lock on it.
 
Old 09-28-2004, 04:47 PM   #10
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,990

Rep: Reputation: 69
KDE uses a lock icon to state that you do not have sufficient permissions to access a folder. You can right-click on the icon and select “properties” and then “permissions” to find out why this is in your case.

As to why the folder is hiding to a root user, I don't know. Normally, the only files that are hidden are those whose name starts with a dot (full-stop or period) (this includes special files, like folders). So I guess it must be something at the filesystem level, possibly Linux interpreting the hidden property of the FAT32 or NTFS entry for the folder somehow. But that doesn't sound very likely to me.
 
Old 09-28-2004, 05:38 PM   #11
lucbosian
LQ Newbie
 
Registered: Sep 2004
Posts: 9

Rep: Reputation: 0
yeah, but i accessed other folders from the same mounted partition and I can open them. The weird thing is that when i use xmms and i go to ADD DIR i can go to the folder I told you and I can add it!

I also tried what you said. About clicking on properties but it has only root's permition to access it, and it doesn't let me change anything.
 
Old 09-28-2004, 08:14 PM   #12
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
lucbosian: Your question has NOTHING to do with this thread. Please next time either post in an existing thread which relates to your topic, or start a new thread.

On topic... I put everything in $HOME, but in what I'd call an organized manner. Downloads I put in ~/download/ and I keep my original archives in case I want to recompile them in the future. Occasionally I keep the extracted source to compile for multiple systems, but usually it gets deleted after installation. Audio and video I put in ~/media/audio and ~/media/video respectively, and so on. Subdirectories are your friend.

It doesn't really make that much difference, though....as with most things in Linux, do it whatever way is comfortable for you.
 
Old 09-28-2004, 08:21 PM   #13
lucbosian
LQ Newbie
 
Registered: Sep 2004
Posts: 9

Rep: Reputation: 0
what do you mean it has nothing to do with the thread?
i'm asking about accesing a special type of folder so I can ORGANIZE my files!
sorry if it seemed out of line. It wasn`t my intention.
 
Old 09-28-2004, 08:39 PM   #14
penguin4
Senior Member
 
Registered: May 2004
Location: california
Distribution: mdklinux8.1
Posts: 1,209

Rep: Reputation: 45
lucbosian; have you tried these howto,s:
http://tldp.org/HOWTO/HOWTO-INDEX
peruse the partition section by expanding it for complete detailed information. there is also prepartition section , peruse that one also.
 
Old 09-28-2004, 10:26 PM   #15
shengchieh
Member
 
Registered: Jul 2004
Location: Palo Alto, CA
Distribution: #! Korora
Posts: 472

Rep: Reputation: 30
Take a look at

http://www.comptechdoc.org/os/linux/...ilestruct.html

It explains the difference between

/tmp
/bin
/lib
....

I.e., how files are organized.

Sheng-Chieh
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
better way to organize packages? mma8x Debian 2 11-21-2005 09:21 PM
Organize my music like iTunes? purelithium Linux - Software 1 11-21-2005 01:51 PM
Compaq Organize webwolf70 Linux - Software 6 05-22-2005 05:20 PM
Organize Backup ddaas Linux - General 1 01-03-2005 07:58 AM
Organize my mp3-files Soubi Linux - Software 11 03-16-2003 11:08 PM


All times are GMT -5. The time now is 10:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration