LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to organize linux? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-organize-linux-235818/)

dr_zayus69 09-27-2004 11:48 AM

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?

rjlee 09-27-2004 11:55 AM

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.

detpenguin 09-27-2004 12:05 PM

i created a new directory in /home/me/ and called it dowloads. thats where everything is downloaded to and i compile from there.

penguin4 09-27-2004 02:07 PM

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.

vasudevadas 09-27-2004 02:53 PM

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.

Komakino 09-27-2004 04:51 PM

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!

lucbosian 09-27-2004 07:52 PM

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?

rjlee 09-28-2004 01:11 PM

What software are you using to view the folders? And can you give an example of such a folder please?

lucbosian 09-28-2004 03:13 PM

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.

rjlee 09-28-2004 03:47 PM

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.

lucbosian 09-28-2004 04:38 PM

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.

mikshaw 09-28-2004 07:14 PM

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.

lucbosian 09-28-2004 07:21 PM

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.

penguin4 09-28-2004 07:39 PM

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.

shengchieh 09-28-2004 09:26 PM

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


All times are GMT -5. The time now is 05:36 AM.