Wuhai’s Weblog

October 11, 2009

ubuntu/compiz workspace

Filed under: Ubuntu — wuhai @ 12:53 am

14 workspaces

gconftool-2 -t int -s /apps/compiz/general/screen0/options/hsize 7
gconftool-2 -t int -s /apps/compiz/general/screen0/options/vsize 2

Ctrl+E: list all workspaces

To add workspaces to the GNOME Desktop, right-click on the Workspace Switcher applet, then choose Preferences. The Workspace Switcher Preferences dialog is displayed. Use the Number of workspaces spin box to specify the number of workspaces that you require.

Ctrl+Alt+right arrow to switch to the workspace on the right of the current workspace.
Ctrl+Alt+left arrow to switch to the workspace on the left of the current workspace.
Same with Ctrl+Alt+up arrow and Ctrl+Alt+down arrow

August 28, 2009

Ubuntu motd message

Filed under: Ubuntu — wuhai @ 5:20 am

After logging into Ubuntu server:
It shows the following message:
7 packages can be updated.
12 updates are security updates.

*** System restart required ***

$ /usr/lib/update-notifier/apt-check –human-readable
7 packages can be updated.
12 updates are security updates.

After ’sudo apt-get update’:
$ /usr/lib/update-notifier/apt-check –human-readable
8 packages can be updated.
12 updates are security updates.

$ sudo apt-get -s upgrade
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages will be upgraded:
libapache2-mod-php5 libgl1-mesa-glx php5 php5-cli php5-common php5-gd php5-mysql tzdata
8 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Inst libgl1-mesa-glx [7.4-0ubuntu3.1] (7.4-0ubuntu3.2 Ubuntu:9.04/jaunty-updates)
Inst tzdata [2009j-0ubuntu0.9.04] (2009l-0ubuntu0.9.04 Ubuntu:9.04/jaunty-updates)
Conf tzdata (2009l-0ubuntu0.9.04 Ubuntu:9.04/jaunty-updates)
Inst php5-cli [5.2.6.dfsg.1-3ubuntu4.1] (5.2.6.dfsg.1-3ubuntu4.2 Ubuntu:9.04/jaunty-updates) []
Inst php5-mysql [5.2.6.dfsg.1-3ubuntu4.1] (5.2.6.dfsg.1-3ubuntu4.2 Ubuntu:9.04/jaunty-updates) []
Inst php5-gd [5.2.6.dfsg.1-3ubuntu4.1] (5.2.6.dfsg.1-3ubuntu4.2 Ubuntu:9.04/jaunty-updates) []
Inst libapache2-mod-php5 [5.2.6.dfsg.1-3ubuntu4.1] (5.2.6.dfsg.1-3ubuntu4.2 Ubuntu:9.04/jaunty-updates) []
Inst php5-common [5.2.6.dfsg.1-3ubuntu4.1] (5.2.6.dfsg.1-3ubuntu4.2 Ubuntu:9.04/jaunty-updates)
Inst php5 [5.2.6.dfsg.1-3ubuntu4.1] (5.2.6.dfsg.1-3ubuntu4.2 Ubuntu:9.04/jaunty-updates)
Conf libgl1-mesa-glx (7.4-0ubuntu3.2 Ubuntu:9.04/jaunty-updates)
Conf php5-common (5.2.6.dfsg.1-3ubuntu4.2 Ubuntu:9.04/jaunty-updates)
Conf php5-cli (5.2.6.dfsg.1-3ubuntu4.2 Ubuntu:9.04/jaunty-updates)
Conf libapache2-mod-php5 (5.2.6.dfsg.1-3ubuntu4.2 Ubuntu:9.04/jaunty-updates)
Conf php5-mysql (5.2.6.dfsg.1-3ubuntu4.2 Ubuntu:9.04/jaunty-updates)
Conf php5-gd (5.2.6.dfsg.1-3ubuntu4.2 Ubuntu:9.04/jaunty-updates)
Conf php5 (5.2.6.dfsg.1-3ubuntu4.2 Ubuntu:9.04/jaunty-updates)

$ sudo apt-get upgrade

$ /usr/lib/update-notifier/apt-check –human-readable
0 packages can be updated.
0 updates are security updates.

Exit and login again, it still shows the old message:
7 packages can be updated.
12 updates are security updates.

*** System restart required ***

To change that:
$ sudo /usr/sbin/update-motd

Exit and login again, no more such complains:

*** System restart required ***

Blog at WordPress.com.