Ubuntu

From wiki.vincentkong.com
Jump to: navigation, search

Paper icon.png Related: http://www.vincentkong.com/tag/ubuntu

Contents

Automatic Updates

The unattended-upgrades package can be used to automatically install updated packages, and can be configured to update all packages or just install security updates.

$ sudo apt-get install unattended-upgrades

Notification

Enable unattended-upgrades to email an administrator detailing any packages that need upgrading or have problems.

Edit /etc/apt/apt.conf.d/50unattended-upgrades

Unattended-Upgrade::Mail "root@localhost";

Another useful package is apticron. apticron will configure a cron job to email an administrator information about any packages on the system that have updates available, as well as a summary of changes in each package.

To install the apticron package, in a terminal enter:

$ sudo apt-get install apticron

Once the package is installed edit /etc/apticron/apticron.conf, to set the email address and other options:

EMAIL="root@example.com"

Paper icon.png Reference: https://help.ubuntu.com/10.04/serverguide/C/automatic-updates.html


Ubuntu Commands

Paper icon.png Main article: Ubuntu Commands


Upgrading packages currently installed

Resynchronize the package index files from their sources.

$ apt-get update

Upgrade the newest versions of all packages currently installed on the system.

$ apt-get upgrade

Adding Canonical Partner Repository for Ubuntu Lucid

$ add-apt-repository "deb http://archive.canonical.com/ lucid partner"

Playing MPEG-4 and MP3

Install the decoders:

$ apt-get install gstreamer0.10-ffmpeg
$ apt-get install gstreamer0.10-fluendo-mp3
$ apt-get install gstreamer0.10-plugins-ugly

Networking browsing with Xubuntu

Paper icon.png Main article: Networking Browsing on Xubuntu with pyNeighborhood

Email client

$ apt-get install alpine

Sun JDK for Ubuntu 10.04

Paper icon.png Main article: Sun JDK for Ubuntu 10.04

Networking for Ubuntu

Paper icon.png Main article: Ubuntu Network Interface

VNC for Ubuntu

Paper icon.png Main article: VNC for Ubuntu

Force fsck on next reboot

$ touch /forcefsck
$ reboot

The file forcefsck will disappear after reboot.

Monitoring hard drive health

Paper icon.png Main article: Monitoring Hard Drive Health in Ubuntu

Setting proxy

Setting global proxy. Edit /etc/environment:

http_proxy="http://user:password@proxyaddress:port"

Alternative:

Edit /etc/bash.bashrc file as root.

export http_proxy=http://username:password@proxyaddress.net:port
export ftp_proxy=http://username:password@proxyaddress.netport

Archive email

Configure Exim4

Retrieved from "/wiki/Ubuntu"
Personal tools
MY WEBSITES