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 has several command line tools to enable or disable features
- The commands a2enmod and a2ensite are particularly useful. http://old.nabble.com/a2ensite-koha-error-td26597287.html
Apache2 a2enmod
- Tool to enable a site:
http://manpages.ubuntu.com/manpages/karmic/en/man8/a2enmod.8.html
a2enmod is a script that enables the specified module within the
apache2 configuration. It does this by creating symlinks within
/etc/apache2/mods-enabled.
- Run:
Apache2 a2ensite
- Tool to enable a site:
http://manpages.ubuntu.com/manpages/karmic/en/man8/a2ensite.8.html
a2ensite is a script that enables the specified site (which contains a
<VirtualHost> block) within the apache2 configuration. It does this by
creating symlinks within /etc/apache2/sites-enabled.
- 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
- Lookup in http://en.wikipedia.org/wiki/VESA_BIOS_Extensions#Linux_video_mode_numbers for a corresponding value.
- 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
