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

Jorge Castro
  • 71,754
aki
  • 2,114

2 Answers2

27

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:

Book Of Zeus
  • 1,803
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.

Panther
  • 102,067