LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-14-2006, 07:57 PM   #1
ztdep
Member
 
Registered: Jul 2005
Posts: 219

Rep: Reputation: 31
how to set my HOME directory


hello:

i want to set my HOME directory to /usr/local
then which file should i edit , and how to edit it .
regards
 
Old 01-14-2006, 08:19 PM   #2
swede
LQ Newbie
 
Registered: Jul 2005
Location: Wyoming
Distribution: Slackware
Posts: 15

Rep: Reputation: 0
/etc/passwd
 
Old 01-14-2006, 08:47 PM   #3
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
You could do that, but dare I ask why?

Also, you would need to modify the permissions on /usr/local for it to be usable.
 
Old 01-14-2006, 10:14 PM   #4
EclipseAgent
Member
 
Registered: Oct 2005
Location: California
Distribution: SLED 10, openSuSE 10.2, Ubuntu Drapper
Posts: 713

Rep: Reputation: 30
IMO, keep it in it's own partition and mount /home to it.
 
Old 01-16-2006, 07:18 AM   #5
ztdep
Member
 
Registered: Jul 2005
Posts: 219

Original Poster
Rep: Reputation: 31
because many software of my own have been installed into that directory.
so i want to set the default directory to the /usr/local instead of /
 
Old 01-16-2006, 07:26 AM   #6
Synt4x_3rr0r
Member
 
Registered: Nov 2005
Location: Sweden
Distribution: Arch Linux 64bit with Gnome
Posts: 138

Rep: Reputation: 15
You should install software to /usr/local so thats perfectly normal.
Then you make symlinks of the binaries to /usr/local/bin and you can start them by just typing the program name in a terminal.

You should also never install software to your /home folder. Even if its a single user system I wouldn't recommend it.
And you should also know that / is the root directory not /home. /home is a directory inside /.

I would also recommend to have /home on a seperate partion if your system would crash, and believe me, that happens alot when you experiment around with different settings etc.
Then you can just reinstall the OS without removing your personal files and settings.
 
Old 01-16-2006, 07:33 AM   #7
jimvin
Member
 
Registered: May 2004
Posts: 71

Rep: Reputation: 15
Hi,
Changing your home dir to /usr/local won't generally change the location of software you install. Your home directory is where your personal files (configuration files, documents etc.) live. Your home directory is defined in the file /etc/passwd.

Seriously, I don't you change it to /usr/local.

Jim
 
Old 01-16-2006, 11:06 AM   #8
ztdep
Member
 
Registered: Jul 2005
Posts: 219

Original Poster
Rep: Reputation: 31
i mean that when i open the command shell, it will go into the /usr/local directily
regards
 
Old 01-16-2006, 11:12 AM   #9
jimvin
Member
 
Registered: May 2004
Posts: 71

Rep: Reputation: 15
Hi,
You could just add the following command to the file .profile in your current home directory if you just want to go to this dir on login:

cd /usr/local

Regards,
Jim
 
  


Reply



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
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 02:37 PM
c++ home directory bendeco13 Programming 2 11-04-2005 05:27 PM
How is HOME set? Nu-Bee Linux - General 2 01-05-2004 02:12 PM
home directory under a home directory GEEXTER Linux - General 4 04-03-2003 09:17 AM
Can't get in home directory--Help dtsfanatic Linux - General 1 08-10-2002 03:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:37 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
Open Source Consulting | Domain Registration