sed -i s/search/replace/g file
Tag Archives: Ubuntu
Ubuntu server upgrade
# Get list of available upgrades
sudo apt-get update
# Upgrade packages
sudo apt-get upgrade
# Upgrade distro
sudo apt-get dist-upgrade
sudo apt-get update
# Upgrade packages
sudo apt-get upgrade
# Upgrade distro
sudo apt-get dist-upgrade
Remove old kernels
# Reboot into newest first, of course
sudo shutdown -r now
# Remove all old kernels
sudo apt-get remove --purge $(dpkg -l 'linux-image-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d')
sudo shutdown -r now
# Remove all old kernels
sudo apt-get remove --purge $(dpkg -l 'linux-image-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d')
Quick installation of LAMP for Kohana on Ubuntu
Needed to get a LAMP environment up and running for some Kohana development. Starting with a more or less fresh install of Ubuntu, here’s what I did.
Continue reading Quick installation of LAMP for Kohana on Ubuntu
Getting a GUI in Ubuntu Server
Wanted to try out Ubuntu Server, but with a GUI.