Ubuntu Notes

Skip to end of metadata
Go to start of metadata

Assigning static ip address

  • Edit the /etc/network/interfaces file:
  • Replace the dhcp configuration:
  • With a static configuration:
  • Setup the DNS entries in the /etc/resolv.conf:
  • Confirm that there is an entry for your nameserver:
  • Restart the network service:

Using apt-get

Determine version of package installed

Installing

Removing

Some packages are 'kept back' or 'on hold'

  • During an apt-get update or apt-get upgrade not all packages get upgraded:
  • There we can see four packages haven't been upgraded, even though newer packages are available.
  • This is because two new packages were introduced, and these upgrades depend upon it.
  • To correct this, run:
  • This will install all dependencies and new packages.

Install Java

  • For 10.04 LTS Lucid.
  • Edit the apt-get sources config file:
  • Run apt-get:
  • Confirm correct version of java is running:
  • If not, switch to correct version:

Add/remove a service at startup

Determine Ubuntu version

  • To determine what version of Ubuntu is running, run:

Determin what ports are open

  • Run:

ssh tunneling

  • Connects 5905 on your machine to 5900 on someserver.yourhost.com.

Restart networking

  • Run:

Apache2

Apache2 a2enmod

  • Run:

Apache2 a2ensite

  • Run:

Disable default http / run only https

  • First disable apache2 listening on port 80 and ensure that apache2 is listening on 443:
  • Second disable the default site for port 80:
  • Finally reload apache2:

Enable frame buffer

  • First install hwinfo
  • Run hwinfo to detect available frame buffer modes
  • Valid values:
    791 - 1024 x 768 @ 16
    792 - 1024 x 768 @ 24
    867 - 1400 x 900 @ 24
    799 - 1600 x 1200 @ 24
791 is a safe value
The native resolution of my monitor is 1920 x 1200, so I use vga=867. At this resolution the text is the right size.
  • Edit /boot/grub/menu.lst and add to the end of the kernel line:
  • And update grub:

Setting time

  • Sometimes the clock will get out of wack, run this:
Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.