Install/uninstall .deb files

These files are Debian packages. The package files associated with Ubuntu have the .deb suffix because of Ubuntu's close relations with the Debian GNU/Linux distribution. You will need administrative privileges to install a .deb file (see the section called "Root And Sudo").

To install a .deb file, simply double click on it, and then select Install Package

Alternatively, you can also install a .deb file by opening a terminal and typing:
sudo dpkg -i package_file.deb

To uninstall a .deb file, deselect it in your package manager, or type:
sudo dpkg -r package_name

To list you packages or to look for a specific one
sudo dpkg -l | grep -i packagename

How to Install JDK 1.6 in Ubuntu, also how to run a bin file

Try this first just to get the jdk installed through apt-get
sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-plugin

In order to change which JRE Ubuntu uses, run the following command from the terminal. I found this in the general Ubuntu help under programming.
sudo update-alternatives --config java

The Long Way, Good Learning Excersize

  • Download bin file to a temp folder on your Desktop
  • sudo su
  • chmod a+x filename.bin
  • ./filename.bin
  • You can then cleanup the temp folder

 
As you will see, it's a little long process, but thanks to my curiosity I noticed that Ubuntu has a package ready to install using your package manager.

The java command to install it:

$sudo apt-get install sun-java6-jdk

The good thing is that Ubuntu has packages for things like flash and other softwares that are not easy to install on other distributions.

For some who want to try the long way here it is:

1. Download the Java JDK 1.6 from Sun's site. http://java.sun.com/javase/downloads/index.jsp

2. Select the Java SE Development Kit (JDK)

3. This leads to a page allowing us to select the Operating System, usually I just choose Linux :).

4. Then we came to a page which shows the available packages. I click on jdk-6u13-linux-i586.bin because this version is a package resembling to a tar.gz

5. Once the newly downloaded file is here, we need to extract it to a folder named jdk1.6.0_13 (for example).

6. It's better then to move Jdk1.6.0_13 folder to /usr/local which is the standard folder for programs or GUI console. if you have problems copying the JDK, you can call with the command nautilus

$sudo nautilus

This way you can access the folder /usr/local.

7. We will proceed to add the JAVA_HOME variable to the system. To do this, open bash.bashrc file with the following command:

$sudo vi /etc/bash.bashrc

At the end of the file put the following instructions.

export JAVA_HOME=/usr/local/jdk1.6.0_13
export PATH=$JAVA_HOME/bin:$PATH

This makes sure that the JAVA_HOME variable is always available in the system.

8. Open a new console and run the command:

$java -version

To which we assume the following result:

java version "1.6.0_13"
Java (TM) SE Runtime Environment (build 1.6.0_13-b04)
Java HotSpot (TM) Server VM (build 11.2-b01, mixed mode)

If it does not work: (good time to dig into Linux privileges). Here is the script you may need to use.

sudo chmod 777 /usr/local/jdk1.6.0_13
sudo chmod -R 666 /usr/local/jdk1.6.0_13
sudo chmod 777 /usr/local/jdk1.6.0_13/bin
sudo chmod 777 /usr/local/jdk1.6.0_13/db
sudo chmod 777 /usr/local/jdk1.6.0_13/demo
sudo chmod 777 /usr/local/jdk1.6.0_13/include
sudo chmod 777 /usr/local/jdk1.6.0_13/jre
sudo chmod 777 /usr/local/jdk1.6.0_13/lib
sudo chmod 777 /usr/local/jdk1.6.0_13/man
sudo chmod 777 /usr/local/jdk1.6.0_13/sample
sudo chmod 777 /usr/local/jdk1.6.0_13/bin/*

Installing Ubuntu 8.10 in Virtual PC 2004

Create new virtual pc, boot from the iso image, and then...

  • Hit [F6] and choose safe graphics mode
  • Hit [F4] and change the command prompt by removing "quiet splash" and adding the following in its place:
    • i8042.noloop noreplace-paravirt vga=791
  • After you boot for the first time, you will need to hit esc, and choose the kernel to edit and add the fix there too
  • You will also need to add the fix command line into the /boot/grub/menu.lst once you get into Ubuntu itself

Ubuntu Installation

Seeing Network Drives / Get Samba Working

For the Desktop it looks like only the workgroup was added to get the network drive to work.

Step 1: SMBNetFS is a Linux/FreeBSD filesystem that allow you to use samba/microsoft network in the same manner as the network neighborhood in Microsoft Windows. (Refer: ubuntuforums) Run the following command:
sudo apt-get smbnetfs

Step 2: Change you work group:
sudo gedit /etc/samba/smb.conf

Scroll down until you find the Global Settings section and look for WORKGROUP, change it to your workgroup, save and reboot for changes to take effect.

Step 3: User the following command to add a user to samba:
sudo smbpassd -a username

Get a list of all shares for that host name, it means samba is working but nautilus is not interpreting the output as it should. HOSTNAME = host name or ip address.
smbclient --list=HOSTNAME

Playback Codecs and other goodies

Step 1: Install fonts and various codecs by add/remove programs, searching for "Ubuntu Restricted Extras"

DVD Playback
How to install DVD playback for Ubuntu 8.10

Step 1: Get libdvdread3 package
sudo apt-get install libdvdread3

Step 2: Run setup
sudo /usr/share/doc/libdvdread3/install-css.sh

Microsoft Fonts
Refer: Installing libdvdcss2Installing Microsoft Truetype fonts on Ubuntu

Step 1: You can install the MS core fonts by installing the msttcorefonts package. To do this, enable the "Universe" component of the repositories. This is done by default in Feisty. After you do that, use the following command from the command line:
sudo apt-get install msttcorefonts

This will give you the core fonts, but if there are other TrueType fonts that you want installed, it is as easy as copying the font files to the ~/.fonts/ directory.

Step 2: After installing new fonts, you will have to log out and log in again to be able to see and use the new fonts. If you want to avoid this, you can regenerate the fonts cache by issuing the following command:
sudo fc-cache -fv

Other Tweaks

  • Turn off thumbnail previews in Nautilus, it creates a .Thumbnails folder in your home directory that can get quite large over time; otherwise, you probably want to institute some type of regular cleanup for it.  It's currently in Edit, Preferences, Preview, Show Thumbnails (never)