16

i have on my server a settings i use for all my users. every time i create a new user i have to copy all the settings over and over.

for example:

  • .vimrc.
  • .profile
  • .bashrc
  • firefox homepage to our intranet
  • evolution settings (server and username) etc...

i saw skel can do it, is there a easy way to setup a user with my settings when i adduser?

thanks

26
+150

Everything should be located in the /etc/skel folder.

You need to create a link on the desktop for all users:

mkdir -p /etc/skel/Desktop
cd /etc/skel/Desktop/
vi shortcut.desktop
    [Desktop Entry]
    Version=1.0
    Name=ShortCut
    Comment=Visit ShortCut
    GenericName=ShortCut
    Exec=firefox http://intranet.ShortCut.com
    Terminal=false
    X-MultipleArgs=false
    Type=Application
    Icon=firefox
    Categories=Internet
chmod +x shortcut.desktop

That will create a link on the desktop.

Here's few articles that will help you for what you need:

1

I think putting the various things you want to use in /etc/skel is the simplest.

The other option would be to script it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.