Ubuntu server 12.04

From Attie's Wiki
Revision as of 21:11, 8 May 2012 by Attie (Talk | contribs)

Jump to: navigation, search

Contents

Packages

As root, install the following (all are optional of course)...

# use bash you idiot
dpkg-reconfigure -plow dash
 
# Xterm (always useful with Xming)
apt-get install xterm x11-xserver-utils
 
# 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++
 
# 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-core 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
 
# sort out 'sudo'
echo "attie ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
 
# 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/*

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

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox