Ubuntu server 12.04
From Attie's Wiki
(Difference between revisions)
m (→Packages) |
m (→Services) |
||
Line 74: | Line 74: | ||
== Services == | == Services == | ||
− | + | The marks are for recommended installations, you don't have to listen to them ;) | |
− | + | {| | |
− | + | ! Server !! Development !! Package | |
− | + | |- | |
− | + | | X || - || [[ubuntu_server_12.04/rpcbind|RPC bind]] | |
− | + | |- | |
− | + | | X || X || [[ubuntu_server_12.04/samba|Samba]] | |
− | + | |- | |
− | + | | X || - || [[ubuntu_server_12.04/apache2|Apache]] | |
− | + | |- | |
− | + | | X || - || * [[ubuntu_server_12.04/gitweb|GitWeb]] | |
− | + | |- | |
+ | | X || - || [[ubuntu_server_12.04/mysql|MySQL]] | ||
+ | |- | ||
+ | | X || - || [[ubuntu_server_12.04/dns|DNS]] | ||
+ | |- | ||
+ | | X || - || [[ubuntu_server_12.04/dhcp|DHCP]] | ||
+ | |- | ||
+ | | X || - || [[ubuntu_server_12.04/ftp|FTP]] | ||
+ | |- | ||
+ | | X || - || [[ubuntu_server_12.04/nfs|NFS]] | ||
+ | |- | ||
+ | | X || - || [[ubuntu_server_12.04/tftp|TFTP]] | ||
+ | |- | ||
+ | | X || - || [[ubuntu_server_12.04/ddclient|DynDNS Client]] | ||
+ | |- | ||
+ | | X || - || [[ubuntu_server_12.04/apcupsd|APCupsd]] | ||
+ | |} | ||
== Other == | == Other == |
Revision as of 13:50, 16 July 2012
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
The marks are for recommended installations, you don't have to listen to them ;)
Server | Development | Package |
---|---|---|
X | - | RPC bind |
X | X | Samba |
X | - | Apache |
X | - | * GitWeb |
X | - | MySQL |
X | - | DNS |
X | - | DHCP |
X | - | FTP |
X | - | NFS |
X | - | TFTP |
X | - | DynDNS Client |
X | - | APCupsd |
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