Infrastructure Team/Template virtual machine lucid: Difference between revisions

Dogi (talk | contribs)
No edit summary
 
(3 intermediate revisions by 3 users not shown)
Line 25: Line 25:


  sudo -i
  sudo -i
 
  aptitude install etckeeper bash-completion git-core strace munin-node duplicity postfix vim devtodo
  aptitude install etckeeper bash-completion git-core strace munin-node duplicity postfix vim devtodo
  aptitude purge memtest86+
  aptitude purge memtest86+
Line 56: Line 56:


Add these to /etc/sudoers:
Add these to /etc/sudoers:
  #bernie: forward agent
  #bernie: forward agent
  Defaults    env_keep += "SSH_AUTH_SOCK"
  Defaults    env_keep += "SSH_AUTH_SOCK"
 
  # Uncomment to allow members of group sudo to not need a password
  # Uncomment to allow members of group sudo to not need a password
  # (Note that later entries override this, so you might need to move
  # (Note that later entries override this, so you might need to move
Line 71: Line 72:
  ln -sf /usr/src/devtools/sysadm/zzz_profile.sh /etc/profile.d/zzz_profile.sh
  ln -sf /usr/src/devtools/sysadm/zzz_profile.sh /etc/profile.d/zzz_profile.sh
  ln -sf /usr/src/devtools/conf/vimrc /etc/vim/vimrc.local
  ln -sf /usr/src/devtools/conf/vimrc /etc/vim/vimrc.local
 
  vim /etc/bash.bashrc # enable bash_completion, kill code messing with PS1
  vim /etc/bash.bashrc # enable bash_completion, kill code messing with PS1
  vim /etc/profile # set umask 002, kill code messing with PS1
  vim /etc/profile # set umask 002, kill code messing with PS1
Line 78: Line 79:


  passwd # set a password for root, to be used to log in from the console only
  passwd # set a password for root, to be used to log in from the console only
 
  adduser  bernie
  adduser  bernie
  adduser  dogi
  adduser  dogi
Line 130: Line 131:
== See also ==
== See also ==


* [[Infrastructure Team/Add virtual machine]]
* [[Sysadmin/Add virtual machine]]
* [[Infrastructure Team/Delete virtual machine]]
* [[Sysadmin/Delete virtual machine]]
* [[Infrastructure_Team/Template_virtual_machine]]
* [[Sysadmin/Template_virtual_machine]]