Ubuntu server 12.04
From Attie's Wiki
Contents |
Packages
As root, install the following (all are optional of course)...
# sort out 'sudo' (don't do this on a production server!) echo "attie ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers # use bash you idiot dpkg-reconfigure -plow dash # Xterm (always useful with Xming) apt-get install xterm x11-xserver-utils # fix up SSH login speeds sed -re 's/^#?( *GSSAPIAuthentication ).*$/\1 no/' -i /etc/ssh/ssh_config -i /etc/ssh/sshd_config # install daemons apt-get install openssh-server smbpasswd attie # install libraries apt-get install libncurses5-dev # install man pages apt-get install manpages-posix manpages-posix-dev # c++ toolchain apt-get install g++ g++-multilib # install ctags & vim apt-get install ctags vim # install 32-bit libs and headers (if on a 64-bit host) apt-get install ia32-libs libc6-dev-i386 # install tools apt-get install apt-file subversion git tree minicom shed valgrind lzop screen uboot-mkimage # install dos2unix & unix2dos apt-get install tofrodos ln -s /usr/bin/fromdos /usr/bin/dos2unix ln -s /usr/bin/todos /usr/bin/unix2dos # install nfs apt-get install nfs-common # remove AppArmor /etc/init.d/apparmor stop update-rc.d -f apparmor remove apt-get remove apparmor apparmor-utils # install NTP apt-get install ntp ntpdate # sort out the 'ohh.. did you mean this?' dpkg -r command-not-found command-not-found-data # if you have just copied a 'fresh' VM, you'll want to clean out the udev network rules nano /etc/udev/rules.d/70-persistent-net.rules # turn off the infuriating MOTD chmod 644 /etc/update-motd.d/* # install kernel headers apt-get install linux-headers-$(uname -r) # install the java runtime environment apt-get install openjdk-7-jre
Tidy up with:
apt-get autoremove
Services
Other
User Setup
Run the following as your user, e.g: attie
# generate an SSH keypair ssh-keygen # make a 'Downloads' directory mkdir ~/Downloads
Also see: bashrc, Xresources, Git#.gitconfig, Gpg