Site Tools

User Tools


Ubuntu

These are my notes for various Ubuntu tasks. I'm still somewhat new to it (Q2 2010), but it's similar enough to other distros I've used that it's easy to pickup.

Tips/Tricks

Package install status cloning

Other descriptions:

  • Ubuntu cloning
  • Ubuntu install cloning
  • etc
sudo dpkg –-get-selections > packages.txt

Copy packages.txt to the remote machine

sudo dpkg –-set-selections < packages.txt
sudo apt-get dselect-upgrade

Ubuntu as a VMware guest

VMware Tools: Installing the appropriate kernel headers for compilation

sudo apt-get install linux-headers-$(uname -r)

Shared Folders: correct fstab options

Assuming:

  • User Id is 1000
  • /mnt/hgfs folder exists
  • VMware Tools are installed
  • You don't need the mount points available at boot
.host:/ /mnt/hgfs vmhgfs defaults,ttl=5,uid=1000,gid=1000,nobootwait 0 0

Enabling VNC Server

Start at boot

user is a non-root account that the vncserver will be running as

  1. Login as user
  2. vncpasswd
  3. sudo nano /etc/rc.local
su - user -c "cd /home/user/ && vncserver :1 -geometry 1024x768 -depth 24" 2>/dev/null &

Enable Gnome

  1. nano /home/user/.vnc/xstartup

Include the following:

xrdb $HOME/.Xresources
xsetroot -solid grey
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &
# Fix to make GNOME work
export XKL_XMODMAP_DISABLE=1
/etc/X11/Xsession