Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: saving profile files in user home folder< Next Oldest | Next Newest >
someuser77 Offline





Group: Members
Posts: 9
Joined: April 2006
Posted: Oct. 14 2006,16:15 QUOTE

Hello,
If i want to add a .myConfigrc file to the 'dsl' user home folder and the 'root' user home folder so it will be known by bash can i just copy it to /root and /home/dsl/ and remaster? maybe also /etc/skel?
edit: i want to make changes to .vimrc and .inputrc and i want those changes to be saved when i remaster.
can i just copy it to /etc/skel?
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Oct. 14 2006,19:42 QUOTE

For dsl's files they are copied from /etc/skel during boot.
Root doesn't have any personal configs to start with in DSL. Add any root-specific configs to /root.  Whether or not these files are actually used depends on how you become root.  If you use "sudo <command>", root uses dsl's configs.  If you use "sudo su" root uses its own configs.

Depending on what type of configuration file it is, you could instead add/modify files in the base filesystem for systemwide use. For the two you mentioned it should work by modifying /etc/inputrc and adding /usr/share/vim/vim61/macros/vimrc (that file doesn't exist, but that's DSL's systemwide config for vim according to vi --version).


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
someuser77 Offline





Group: Members
Posts: 9
Joined: April 2006
Posted: Oct. 14 2006,19:49 QUOTE

Thanks for your reply mikshaw.
I changed /etc/skel/.vimrc, /etc/inputrc and /root/.vimrc to fit my needs. looks okay.
Back to top
Profile PM 
someuser77 Offline





Group: Members
Posts: 9
Joined: April 2006
Posted: Oct. 15 2006,13:22 QUOTE

Nope, when i remaster the /root/.vimrc file is not saved.  :(
If /etc/skel/.vimrc effects only the dsl user, how can i make some .vimrc file that will effect root?
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Oct. 15 2006,13:56 QUOTE

Files in /etc/skell are there for regular users.  When you create a new user, those files are copied to the new user's home directory.  As I said, root's personal configs are stored in /root.  I have no idea if this directory is copied from /KNOPPIX during boot, or if it's simply created empty, so adding files to /root in a remaster might not work.

In any case, you could use the systemwide vimrc mentioned above, which will be used by root and any other user who doesn't have a personal .vimrc file.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
4 replies since Oct. 14 2006,16:15 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: saving profile files in user home folder

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code