Ubuntu:Edgy/AddOnApplications

From

Jump to: navigation, search

Contents

Add-On Applications

Java & Non-Media Browser Plug-ins

How to install J2SE Runtime Environment (JRE) v6.0 with Plug-in for Mozilla Firefox

sudo aptitude install sun-java6-jre sun-java6-plugin sun-java6-bin
  • When asked, agree with DLJ license terms.

How to install JRE v6.0

sudo apt-get install fakeroot
Choose "Java Runtime Environment (JRE) 6" and click on "Download"
Accept License Agreement 
Download the "Linux self-extracting file"
  • Install the required tool :
sudo aptitude install java-common
  • Create the Ubuntu package :
fakeroot make-jpkg jre-6-linux-i586.bin
  • Install the resulting package :
sudo dpkg -i sun-j*.deb


  • Restart Mozilla Firefox
  • If these steps don't work, 'Add/Remove Programs' option from the Applications menu can be used for installing JRE 5.0 instead.

How to Upgrade to Java Development Kit (JDK) v6.0

  • Set downloaded *.bin file permissions to executable (chmod +x)
  • Run the bin file in a terminal
  • Notice the package type
    • jre1.6.0 - the java runtime environment
    • jdk1.6.0 - the java developers kit

Sun changes the name of the directory from time to time or content and you should notice which one you actually have.

  • Update the startup profiles

Define the environment variable in a suitable location, probably the end of one (or more of the following files)

    • /etc/profile or $HOME/.profile
    • /etc/bashrc or $HOME/.bashrc
export JAVA_HOME=/usr/lib/jvm/jre1.6.0/

...or...

export JAVA_HOME=/usr/lib/jvm/jdk1.6.0/
  • Move the extracted directory to /usr/lib/jvm
mv ./jre1.6.0 /usr/lib/jvm/

...or...

mv ./jdk1.6.0 /usr/lib/jvm/
  • Edit /etc/jvm and add /usr/lib/jvm/jre1.6.0 to the top of JVMs offered:
Ubuntu users:
sudo gedit /etc/jvm
Kubuntu users:
sudo kate /etc/jvm
  • Use the update-alternatives program (as sudo -s)
update-alternatives --config java

This will display the currently defined alternatives for java In all likelihood you will not see your new version. For further information on the java configuration...

update-alternatives --display java
  • Add the new alternative at a high priority (1.6.0 => 10600)
update-alternatives --install /usr/bin/java java ${JAVA_HOME}/jre/bin/java \
  10600 \
  --slave /usr/share/man/man1/java.1.gz java.1.gz  ${JAVA_HOME}/man/man1/java.1 \
  --slave /usr/bin/java_vm java_vm  ${JAVA_HOME}/jre/bin/java_vm

...or for the jdk additional slave elements may be provided...

update-alternatives --install /usr/bin/java java ${JAVA_HOME}/jre/bin/java \
  10600 \
  --slave /usr/share/man/man1/java.1.gz java.1.gz  ${JAVA_HOME}/man/man1/java.1 \
  --slave /usr/bin/java_vm java_vm  ${JAVA_HOME}/jre/bin/java_vm \
  --slave /usr/bin/javac javac  ${JAVA_HOME}/bin/javac
  • Select the new version.
update-alternatives --config java
  • Update other program groups as desired.
    • jar - ?
    • javadoc - ?
    • etc.
  • Note that this will not update your browser's plugins.

How to install Java Development Kit (JDK) v5.0

Note: Program included in Automatix2. If you have already used Automatix2, this program may have been installed

sudo aptitude install sun-java5-jdk
  • Accept the licence agreement that appears.
  • Set Sun's JVM as default Java version:
sudo update-java-alternatives -s java-1.5.0-sun
  • Edit /etc/jvm and move /usr/lib/jvm/java-1.5.0-sun to the top of JVMs offered:
Ubuntu users
sudo gedit /etc/jvm
Kubuntu users
sudo kate /etc/jvm
  • To fix the Ubuntu "libfontmanager" issue that can kill the entire JVM (e.g. JasperReports), remove these troublesome fonts:
mkdir ~/fonts_backup
sudo mv /usr/share/fonts/truetype/ttf-gujarati-fonts/aakar-medium.ttf ~/fonts_backup/
sudo mv /usr/share/fonts/truetype/ttf-gujarati-fonts/Rekha.ttf ~/fonts_backup/

Installing Blackdown Java (for AMD64 systems with 64-bit Firefox)

Note: If you wish to use 64-bit Firefox and not install 32-bit Firefox on an AMD64 system, you will want to use Blackdown Java. Currently, Sun Java does not provide a 64-bit browser plugin. This option is only recommended for those running 64-bit only systems because there is no Java 1.5 alternative.

sudo aptitude install j2re1.4 j2re1.4-mozilla-plugin

How to install Flash Player (Macromedia Flash) Plug-in for Mozilla Firefox

Note: By default Ubuntu contains Flash version 7. If you have added all the repositories (backports) from this guide you will get version 9 beta 2. Note: Adobe has released Flash 9 for Linux which works with Firefox, Mozilla, and Seamonkey. At the time of this writing, you need to download the release directly from Adobe

Note: Program included in Automatix2. If you have already used Automatix2, this program may have been installed

sudo aptitude install flashplugin-nonfree

Note: AMD64 users are not currently able to use the Adobe Flash plugin described above and may attempt the following procedures if you want to play flash video in Firefox. Another workaround is to install Opera browser and add Flash Player 9 plugin in Opera.

Note: if you get an error message that the package is not found, try the Gnash (GNU Flash substitute)

sudo aptitude install mozilla-plugin-gnash

If for some reason the Gnash plugin does not work for you, you can try the older GPL flash plugin. This plugin is no longer being developed, but works for some content.

sudo aptitude install libflash-mozplugin
  • Restart Mozilla Firefox


Note: if firefox crashes when visiting a website with flash content, do the following:

  • Open the firefox file
Ubuntu users:
sudo gedit /usr/bin/firefox
Kubuntu users:
sudo kate /usr/bin/firefox
  • Add the following line as last but one line of the file:
export XLIB_SKIP_ARGB_VISUALS=1

Now firefox shouldn't crash anymore. (Launchpad bug report: [1])

  • Restart Mozilla Firefox


Note: if sound doesn't work in Flash Player (for example on YouTube), do the following:

  • Install alsa-oss
sudo aptitude install alsa-oss
  • Open the firefoxrc file
Ubuntu users
sudo gedit /etc/firefox/firefoxrc
Kubuntu users
sudo kate /etc/firefox/firefoxrc
  • Change:
FIREFOX_DSP=""

To:

FIREFOX_DSP="aoss"
  • Restart Mozilla Firefox. Now sound should work in Flash Player.

How to install PDF Reader (Adobe Reader) with Plug-in for Mozilla Firefox

sudo aptitude install acroread mozilla-acroread acroread-plugins
  • Applications -> Office -> Adobe Reader
  • Restart Mozilla Firefox

Note: Adobe Reader 7.0 will not run if SCIM is running. You are running SCIM if you have installed another language to Ubuntu via System -> Administration -> Language Support. To circumvent, do the following

gksudo gedit /usr/bin/acroread

Change:

#!/bin/sh
#

to:

#!/bin/sh
#
GTK_IM_MODULE=xim

Save the file. Now Adobe Reader 7.0 should work.

See also:

How to install Google Toolbar for Firefox

In Firefox, click the following link: http://www.google.com/tools/firefox/toolbar and then click on the big Download Google Toolbar button.

Internet

How to install Firefox32 in AMD64

Taken from Ubuntu Forums This guide is only for installing a 32-bit edition of firefox in a 64-bit enviroment. Firefox is installed by default in Ubuntu Edgy

sudo aptitude update
sudo aptitude install ia32-libs gsfonts alsa-oss linux32 gsfonts-x11
sudo aptitude install ia32-libs-gtk lib32asound2 lib32ncurses5 ia32-libs-sdl
wget http://home.comcast.net/~ubuntu64user/ia32-lib-firefox-amd64.deb
wget http://home.comcast.net/~next/firefox32-2.0-ubuntu-amd64.deb
sudo dpkg -i ia32-lib-firefox-amd64.deb
sudo dpkg -i firefox32-2.0-ubuntu-amd64.deb
sudo chmod +x /usr/local/bin/firefox32
  • Close any firefox windows you have open.
sudo killall firefox
  • Applications > Internet > Firefox32

Note: If you wish to use firefox32 for everything, you can link firefox32 to the firefox command with this:

sudo mv /usr/bin/firefox /usr/bin/firefox64
sudo ln -s /usr/local/bin/firefox32 /usr/bin/firefox
How to install Flash 9 for Firefox32
wget http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_9_linux.tar.gz
sudo tar -xzvf install_flash_player_9_linux.tar.gz
cd /usr/lib32/firefox32/plugins
sudo mv ~/install_flash_player_9_linux/libflashplayer.so /usr/lib32/firefox32/plugins/
sudo mv ~/install_flash_player_9_linux/flashplayer.xpt /usr/lib32/firefox32/plugins/
How to install Java v5.0.11 for Firefox32

Note: Download the "Linux (self-extracting file)", not the 64-bit package.

cd ~/Desktop
chmod +x ./jre-1_5_0_11-linux-i586.bin
sudo ./jre-1_5_0_11-linux-i586.bin
  • Accept the EULA
sudo mkdir /usr/local/java32
sudo cp -r -p ./jre1.5.0_11/* /usr/local/java32 
cd /usr/lib32/firefox32/plugins/
sudo ln -s /usr/local/java32/plugin/i386/ns7/libjavaplugin_oji.so ./
sudo chown -R `whoami`:users ~/.java

How to install Mplayer32 with Plugin for Firefox32
mkdir -p ~/tmp/mplayer
cd ~/tmp/mplayer
sudo aptitude install ia32-libs gsfonts alsa-oss mplayer
sudo aptitude install ia32-libs-gtk lib32asound2 lib32ncurses5 ia32-libs-sdl
sudo wget -c http://ubuntu.mirrors.tds.net/ubuntu/pool/multiverse/m/mplayerplug-in/mozilla-mplayer_3.17-1ubuntu1_i386.deb
sudo dpkg -x mozilla-mplayer_3.17-1ubuntu1_i386.deb ~/tmp/mplayer
sudo cp ~/tmp/mplayer/etc/* /etc
sudo cp ~/tmp/mplayer/usr/lib/mozilla/plugins/* /usr/lib32/firefox32/plugins
sudo chmod a+x /usr/lib32/firefox32/plugins/*.so
mkdir ~/tmp/mplayer32
cd ~/tmp/mplayer32
wget -c http://folk.ntnu.no/grannas/debs/mplayer32_20070130-1_amd64.deb
sudo dpkg -i mplayer32_20070130-1_amd64.deb
sudo mv /usr/bin/mplayer /usr/bin/mplayer64
wget -c http://www.people.virginia.edu/~drf8f/MPlayer/releases/codecs/essential-20060501.tar.bz2
tar -jxvf essential-20060501.tar.bz2
sudo mkdir /usr/lib/win32
sudo cp essential-20060501/* /usr/lib/win32/

Note: Technically you can run FireFox32 with mplayer32 OR mplayer64. You may decide which solution is the best for you.

  • To use mplayer32 with firefox32
cd /usr/bin
sudo rm mplayer
sudo ln -s mplayer32 mplayer

  • To use mplayer64 with firefox32
cd /usr/bin
sudo rm mplayer
sudo ln -s mplayer64 mplayer

Note: When watching a embedded video for the first time, it may be neccesary to enable the video and audio out. Right-click anywhere in the embedded video and choose Configure.

How to install Opera web browser

sudo aptitude install libqt3-mt
wget http://ftp.wayne.edu/opera/linux/910/final/en/i386/shared/opera_9.10-20061214.6-shared-qt_en_i386.deb
sudo dpkg -i opera_9.10-20061214.6-shared-qt_en_i386.deb
  • Applications -> Internet -> Opera
  • To get java working go to Tools->Preferences->Advanced->Content-> Check "Enable Java". Click the "Enable Java..." button enter "/usr/lib/jvm/java-1.5.0-sun/jre/lib/i386" (for sun java) in the new dialog and then click the "Validate Java Path" button.
sudo dpkg -i --force-all opera-static_9.10-20061214.1-qt_en_i386.deb

If you want to uninstall it for some reason, run

sudo aptitude remove opera
Install OpenMotif in Opera
sudo dpkg -i --force-all openmotif_2.1.30-5_i386.deb
How to install Flash Player in Opera
  • Since Opera is a 32-bit application and it also works in amd64 system. Installing Flash Player and other 32-bit plugins in Opera is a workaround for amd64 users who are not able to run those applications in other web browsers. Here is the way to install Flash Player for Opera.
  • Open Opera, click "Tools --> Advanced --> Plugins" to check the default plugin path. Assume it is "/usr/lib/opera/plugins/"
  • Download the latest flash plugin tarball install_flash_player_9_linux.tar.gz from http://www.adobe.com
tar -zxvf install_flash_player_9_linux.tar.gz
cd install_flash_player_9_linux
sudo cp libflashplayer.so /usr/lib/opera/plugins
sudo cp flashplayer.xpt /usr/lib/opera/plugins
  • If your Opera plugin path is something else, just replace the path in the above commands with your own path.
How to install Java J2SE (JRE) Runtime Environment for Opera
  • In addition to serving the purpose of running JRE for i386 users, the following method can also be used for amd64 users to run JRE from a web page.
tar -zxvf jre-1_5_0_11-linux-i586.bin
# Then you will see folder "jre1.5.0_11"
sudo cp jre1.5.0_11 /usr/lib
cd /usr/lib/opera/plugins
sudo ln -s /usr/lib/jre1.5.0_11/plugin/i386/ns7/libjavaplugin_oji.so .
  • Open Opera. Go to "Tool --> Preferences --> Advanced --> Contents". Select "Enable Java", and click button "Java Options" and select "/usr/lib/jre1.5.0_11/lib/i386" as the Java path. You can click button "Validate Java path" to validate it. Then click OK.
  • Restart Opera. Note that Opera opens a separate X window for Java applications. You can use the mouse to resize the window.


How to install Java J2SE (JRE) Runtime Environment for Opera (easy way)
  • Step1: Add the following repositories:
deb http://us.archive.ubuntu.com/ubuntu dapper main restricted
deb http://us.archive.ubuntu.com/ubuntu dapper universe
  • Step2: Update repositories and find package 'sun-java5-jre' and install it
  • Step3: Go to opera Tools/Preferences/Advanced/Content and check 'Enable java' checkbox. Then click on 'Java options' button and point to installed files. I use this: /usr/lib/jvm/java-1.5.0-sun-1.5.0.06/jre/lib/i386


That's it. Enjoy!

How to install Download Manager (Downloader for X)

sudo aptitude install d4x
  • Applications -> Internet -> Downloader for X
How to uninstall Download Manager (Downloader for X)
sudo aptitude remove d4x

How to install FTP Client (Filezilla 3.0.0 Beta)

sudo aptitude install filezilla

How to install FTP Client (gFTP)

sudo aptitude install gftp
  • Applications -> Internet -> gFTP
How to uninstall gFTP
sudo aptitude remove gftp

How to install IRC Client (XChat)

Note: Program included in Automatix2. I you have already used Automatix2, this program may have been installed

sudo aptitude install xchat xchat-systray 
  • Applications -> Internet -> XChat IRC
How to uninstall XChat
sudo aptitude remove xchat xchat-systray

How to install Email Client (Mozilla Thunderbird)

Note: Program included in Automatix2. I you have already used Automatix2, this program may have been installed

sudo aptitude install mozilla-thunderbird
  • Applications -> Internet -> Thunderbird Mail Client

How to install Newsreader (Pan)

sudo aptitude install pan
  • Applications -> Internet -> Pan Newsreader

How to install RSS/RDF/Atom Newsreader (RSSOwl)

wget -c http://easylinux.info/uploads/rssowl_linux_1_1_3_bin.tar.gz
sudo tar zxvf rssowl_linux_1_1_3_bin.tar.gz -C /opt/
sudo chown -R root:root /opt/rssowl_linux_1_1_3_bin/
gksudo gedit /usr/bin/runRSSOwl.sh
  • Insert the following lines into the new file
export MOZILLA_FIVE_HOME=/usr/lib/mozilla-firefox
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${MOZILLA_FIVE_HOME}:${LD_LIBRARY_PATH}
cd /opt/rssowl_linux_1_1_3_bin/
./run.sh
  • Save the edited file
sudo chmod +x /usr/bin/runRSSOwl.sh
gksudo gedit /usr/share/applications/RSSOwl.desktop
  • Insert the following lines into the new file
[Desktop Entry]
Name=RSSOwl
Comment=RSSOwl
Exec=runRSSOwl.sh
Icon=/opt/rssowl_linux_1_1_3_bin/rssowl.xpm
Terminal=false
Type=Application
Categories=Application;Network;
  • Save the edited file
  • Applications -> Internet -> RSSOwl

How to install Internet Explorer + Flash 9 (IEs4Linux)

This will install a wine'd version of Internet Explorer 6 with Flash 9, as well as IE 5.5/5.01 if you really want them.

  • Note: This installed Flash 9 will NOT be available in browsers other than IE.
  • Note: Adobe has released Flash 9 for Linux(x86) which works with Firefox, Mozilla, and Seamonkey.
  • Install Cabextract. Open a terminal and run
sudo aptitude install cabextract
  • Open a terminal and run this:
wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz
tar zxvf ies4linux-latest.tar.gz
cd ies4linux-*
./ies4linux

Do not run this as root (no sudo), as this can cause the script to malfunction and ruin your X configuration.

How to install Messenger (Skype)

Note: Program included in Automatix2. If you have already used Automatix2, this program may have been installed

  • With Edgy the Skype is not included in the Ubuntu repositories anymore.
sudo aptitude install libqt3-mt
wget http://www.skype.com/go/getskype-linux-deb
sudo dpkg -i skype_debian-*.deb
(Install 32-bit Skype in AMD64)

Note: This method will install 32-bit libraries in /usr/lib32.

  • Download the 32-bit libraries and some needed packages:
sudo aptitude install ia32-libs ia32-libs-gtk lib32asound2 libqt3-mt
sudo aptitude install libstdc++5
  • Download i386 package of skype from www.skype.com.
wget -c http://www.skype.com/go/getskype-linux-deb 
  • Download libqt-mt.so.3 and put it in /usr/lib32

Note: If any of these links become invalid, you can search for the file needed at packages.ubuntu.com.

cd /tmp
wget -c http://bombazyn.mine.nu/Ubuntu/asound32-qtmt32.tar.bz2
cd /usr/lib32
sudo tar xjvf /tmp/asound32-qtmt32.tar.bz2
  • Download libaudio.so.2 and libaudio.so.2.4 and put it in /usr/lib32
mkdir /tmp/libaudio
cd /tmp/libaudio
wget -c http://lug.mtu.edu/ubuntu/pool/main/n/nas/libaudio2_1.8-2_i386.deb
ar -x libaudio2_1.8-2_i386.deb
tar zxf data.tar.gz
sudo cp usr/lib/libaudio.so.2.4 /usr/lib32/
sudo cp usr/lib/libaudio.so.2 /usr/lib32/
  • Download libstdc++.so.5 and put it in /usr/lib32
cd /tmp/
wget -c http://lug.mtu.edu/ubuntu/pool/main/g/gcc-3.3/libstdc++5_3.3.6-13ubuntu2_i386.deb
dpkg -x libstdc++5_3.3.6-13ubuntu2_i386.deb libstdc++5
sudo cp libstdc++5/usr/lib/libstdc++.so.5* /usr/lib32/ 
  • Install Skype.
cd ~/
sudo dpkg --force-architecture -i skype_debian-*.deb
  • To run Applications > Internet > Skype
(Alternative Method - Official Skype Repository)
sudo gedit /etc/apt/sources.list
  • Add the following lines to the end of file
## Official Skype Repository
deb http://download.skype.com/linux/repos/debian/ stable non-free
sudo aptitude update
sudo aptitude install skype
  • To run Applications > Internet > Skype

Peer to Peer (P2P)

How to install File share utility (LinuxDC++)

wget -c http://easylinux.info/uploads/linuxdcpp.tar.gz
sudo tar zxvf linuxdcpp.tar.gz -C /opt
gksudo gedit /usr/share/applications/linuxdcpp.desktop
  • Insert the following lines into the new file
[Desktop Entry]
Encoding=UTF-8
Name=LinuxDC++
Exec=linuxdcpp
Terminal=false
Type=Application
StartupNotify=true
Icon=/opt/linuxdcpp/pixmaps/linuxdcpp.png
Categories=Application;Network;
  • Save the edited file
  • Applications -> Internet -> LinuxDC++
  • If you want to build the latest version from CVS use this guide

How to install P2P BitTorrent Client (Azureus)

Note: Program included in Automatix2. I you have already used Automatix2, this program may have been installed

Note to Kubuntu users: Kubuntu comes with a BitTorrent client (KMenu->Internet->KTorrent) already installed.

sudo aptitude install azureus
  • Applications -> Internet -> Azureus
(Alternative Method)

The above method installs a version of Azureus compiled with gcj, the free alternative to Sun's Java.

wget http://kent.dl.sourceforge.net/sourceforge/azureus/Azureus_2.5.0.4_linux.tar.bz2
sudo tar jxvf Azureus_2.5.0.4_linux.tar.bz2 -C /opt/
sudo gedit /usr/share/applications/azureus.desktop
  • Add the following to the new file
[Desktop Entry] 
Name=Azureus
Comment=Java BitTorrent Client
Exec=/opt/azureus/azureus
Icon=/opt/azureus/Azureus.png
Terminal=false
Type=Application
Categories=Application;Network;
  • Save the edited file
  • Applications -> Internet -> Azureus
How to uninstall Azureus
sudo aptitude remove azureus

How to install P2P BitTorrent Client (Bittornado)

Note: Program included in Automatix2. I you have already used Automatix2, this program may have been installed

Note to Kubuntu users: Kubuntu comes with a BitTorrent client (KMenu->Internet->KTorrent) already installed.


sudo aptitude install bittornado bittornado-gui

After installing Bittorrent or Bittornado open a firewall for your local IP

sudo iptables -I INPUT -p tcp --destination-port 6881:6999 -j ACCEPT

Now if you specify those ports in your client and you will see better down and up speeds.

  • Applications -> Internet -> Bittornado Client
How to uninstall Bittornado
sudo aptitude remove bittornado bittornado-gui

How to install P2P eMule Client (aMule)

Note: Program included in Automatix2 and Easy Ubuntu. I you have already used one of them, this program may have been installed

sudo aptitude install amule
  • Applications -> Internet -> aMule
How to uninstall P2P eMule Client (aMule)
sudo aptitude remove amule

How to install P2P Gnutella Client (FrostWire)

Note: Program included in Automatix2. I you have already used Automatix2, this program may have been installed

wget -c http://fuse.frostwire.com/frostwire/4.13.1/frostwire-4.13.1.5-1.i586.deb
sudo dpkg -i frostwire-4.13.1.5-1.i586.deb
  • Applications -> Internet -> FrostWire

An additional stage for users of Beryl (as of Beryl-0.1.4).

How to use utorrent

This assumes you have downloaded utorrent and installed wine.

   sudo gedit /usr/bin/utorrent

Paste the inside of that file

   #!/bin/sh
   cd ~/YOURPATH/utorrent
   if [ "$1" != "" ]; then
   var="`echo $1 | sed 's/\//\\\/g'`"
   var="Z:${var}"
   wine utorrent.exe "$var"
   else
   wine utorrent.exe
   fi

Replace "YOURPATH" with the location of uTorrent. Save and exit then type the following to make it executable.

   sudo chmod a+x /usr/bin/utorrent


How to install P2P Gnutella Client (LimeWire)

When you are prompted to install Dash, select “NO.”

sudo dpkg-reconfigure dash
wget http://www.limewire.com/LimeWireSoftLinux
sudo alien -d LimeWireLinux.rpm
sudo dpkg -i *.deb

Multimedia Players & Browser Plug-ins

Streaming in FireFox

This makes life much easier when streaming in FireFox. Install the Media Player Connectivity Plug-in for FireFox. This allows you to change the default media player for different types of media as well as launching it outside of FireFox.

How to install Multimedia Codecs

sudo aptitude install gstreamer0.10-ffmpeg gstreamer0.10-gl gstreamer0.10-plugins-base \
gstreamer0.10-plugins-good gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse \
gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse libxine-extracodecs w32codecs 

Important note: that w32codecs are copyright infrigement since they are basically exact copies of DLLs that are shipped by various Windows software to handle media formats.

Note to Kubuntu Users: Technically the only packages needed for Kaffeine to play extra codes are libxine-extracodecs and w32codecs. However the installation of all the above packages doesn't hurt anything, as these packages might be needed by other programs (e.g., Open Office Impress uses a gstreamer plugin to display video in presentations).

Stubby: All known codecs work except for wmv.

TTo: To enable WMV9 playback, you can try:

sudo aptitude install gstreamer0.10-pitfdll && rm -r ~/.gstreamer-0.10/


Tip: WMV9 codecs on amd64 can work only by using vlc (out of the box from the official repositories) or by installing the latest version of mplayer (Version 1.0rc1 at the moment of writing)

How to install DVD playback capability

ironss: gstreamer dvd plugin is available as part of plugins-bad (or ugly?) and does not work reliably. However, Totem works with the xine backend to play back DVDs. This will keep you going until gstreamer gets dvd playback. Note that you do not have to install xine-ui or mplayer as suggested in

sudo aptitude install libdvdread3 
sudo /usr/share/doc/libdvdread3/install-css.sh
sudo aptitude install totem-xine

Stubby: gstreamer dvd plugin not ported to Edgy yet. following instructions will not work properly

sudo aptitude install libdvdcss2

How to install MIDI sound server (Timidity++)

  • Read #General Notes
  • Read #How to add extra repositories
  • Timidity allows for the playback of MIDI by those who do not have MIDI hardware or MIDI processing built into their sound card (most users) via a software synthesizer.
  • First install Timidity
sudo aptitude install timidity
  • Set up Timidity to start on boot
sudo gedit /etc/default/timidity
  • Uncomment the following line (remove the "#" sign)
#TIM_ALSASEQ=true
  • Set the required modules to load as well
sudo gedit /etc/modules
  • Add the following modules to the end of the file
snd-seq-device
snd-seq-midi
snd-seq-oss
snd-seq-midi-event
snd-seq
  • Restart your computer

How to install Multimedia Playing Server (MPD)

Note: MPD is a audio playing server. It acts as a digital jukebox allowing playlist management over the network. The computer with MPD running on needs to be connected to an Amplifier (or similar) as it does not stream audio by default, it simply plays it. However, it can be configured to stream using Icecast and JACK.

Music Player Daemon (MPD)

  • Install MPD
sudo aptitude install mpd
  • Create link to your audio (MP3 etc) collection
sudo ln -s /path/to/your/music /var/lib/mpd/music/collection
  • Restart MPD
sudo /etc/init.d/mpd restart
  • Advanced Configuration
gksudo gedit /etc/mpd.conf
  • Install standard Gnome client

Alternative clients, including web-based versions are detailed on the MPD Wiki.

sudo aptitude install gmpc
  • Configure GMPC

Click Applications > Sound & Video > Gnome Music Player Client

Click on Options icon, set Host, Port and connection options. The default settings will connect to MPD running on "localhost". Set the "Autoconnect" option if required. The default MPD port is 6600, make sure you unblock this port on your firewall.

  • Using GMPC

Click on Playlist icon. Expand the "Browse Filesystem" tree, right-click on your audio collection and click "Update". This will cause the MPD server to reindex your audio files. No files are changed during this process.

When completed, navigate through your audio via the "Browse Filesystem" tree. Right-click on folders and tracks to add them to playlist, or manage existing playlist.

How to install Multimedia Player (xine-ui)

sudo aptitude install xine-ui libxine-extracodecs
  • Applications -> Sound & Video -> xine

How to install Multimedia Player (MPlayer)

sudo aptitude install mplayer libxine-extracodecs
  • Note: Kubuntu users may also want to install the KDE user interface for MPlayer
sudo aptitude install kmplayer
  • An MPlayer plug-in for Firefox can also be installed:
sudo aptitude install mozilla-mplayer
  • Applications -> Sound & Video -> MPlayer
Tip: For AMD64 Users

If you want to easily install the latest version of mplayer (Version 1.0rc1 at the moment of writing) that it is supporting the native playback of videos using the WMV9 codec add the following repository into your sources.list.

deb http://ubuntu.moshen.de/ edgy misc multimedia

As of this time the repository only contains the 64 bit build of mplayer and not the 32 bit build

How to install Multimedia Player (VLC)

sudo aptitude install vlc vlc-plugin-*
  • In order to stream video via vlc, you also need to install the following packages.
sudo aptitude install avahi-daemon
sudo aptitude install avahi-utils
  • A VLC plug-in for Firefox can also be installed
sudo aptitude install mozilla-plugin-vlc
  • Applications -> Sound and Video -> VLC Media Player

How to install Multimedia Player (XMMS)

sudo aptitude install xmms xmms-skins xmms-wma
  • Applications -> Sound & Video -> XMMS

How to install Multimedia Player (Songbird)

First download this shell script from Psychocats.net Open up the terminal and type these commands in one at a time

cd Desktop
chmod +x installsongbird.sh
./installsongbird.sh
  • Applications -> Sound & Video -> Songbird

To remove if you want use this shell script and use the same instructions that you used to install songbird but substitute install with remove.

How to install Multimedia Player (amaroK)

sudo aptitude install amarok
  • Applications -> Sound & Video -> amaroK


Note: If amaroK complains about the "dcopserver" program not running, follow this tip from http://www.ubuntuforums.org/showthread.php?t=107269&highlight=dcopserver

sudo chown -R `whoami`:`whoami` ~/.*
How to uninstall amaroK
sudo aptitude remove amarok

How to install Music Manager and Player (Banshee)

sudo aptitude install banshee
How to uninstall Banshee
sudo aptitude remove banshee

How to install Multimedia Player (RealPlayer 10)

sudo aptitude install realplay
Note: 'realplay' installs RealPlayer 10 from PLF repository, which you should be enabled if you followed this guide. 'realplayer' installs RealPlayer 8 from multiverse.
  • Applications -> Sound & Video -> RealPlayer 10

It will also install all the necessary plugins automagically for it to view embedded real videos in Firefox

  • To avoid issues of flickering or screen going blank when switching windows, goto
    • RealPlayer 10 -> Tools -> Preferences -> Hardware -> Uncheck XVideo
  • To avoid issues with sound
    • Make sure you have ALSA OSS driver.
sudo aptitude install alsa-oss

then edit the startup script (/usr/lib/realplay-10.0.8/realplay) and changed line 73 from

$REALPLAYBIN “$@”

to

aoss $REALPLAYBIN “$@”

Alternative Source

Then add execute permissions to the installer and execute it.

chmod +x RealPlayer10GOLD.bin
sudo ./RealPlayer10GOLD.bin

How to install Stream Directory Browser (streamtuner)

sudo aptitude install streamtuner streamripper
  • Applications -> Sound & Video -> streamtuner
How to uninstall Stream Directory Browser (streamtuner)
sudo aptitude remove streamtuner streamripper

How to install Internet TV (DemocracyTV beta)

  • If your system has a 32bit processor (i386) open a Terminal and type
wget http://ftp.osuosl.org/pub/pculture.org/democracy/linux/ubuntu/democracyplayer-data_0.9.2.1-1ubuntupcf_all.deb
wget http://ftp.osuosl.org/pub/pculture.org/democracy/linux/ubuntu/democracyplayer_0.9.2.1-1ubuntupcf_i386.deb
sudo aptitude upgrade
sudo dpkg -i democracyplayer-data_0.9.2.1-1ubuntupcf_all.deb
sudo aptitude install mozilla-browser mozilla-psm mozilla-dev
sudo dpkg -i democracyplayer_0.9.2.1-1ubuntupcf_i386.deb


  • if your system has a 64bit processor (amd64)
wget http://ftp.osuosl.org/pub/pculture.org/democracy/linux/ubuntu/democracyplayer-data_0.9.2.1-1ubuntupcf_all.deb
wget http://ftp.osuosl.org/pub/pculture.org/democracy/linux/ubuntu/democracyplayer_0.9.2.1-1ubuntupcf_amd64.deb
sudo aptitude upgrade
sudo dpkg -i democracyplayer-data_0.9.2.1-1ubuntupcf_all.deb
sudo aptitude install mozilla-browser mozilla-psm mozilla-dev
sudo dpkg -i democracyplayer_0.9.2.1-1ubuntupcf_amd64.deb

  • in both cases you might also need to install dependencies of the player package if dpkg returns a dependency error.
sudo aptitude -f install
  • to get support for more formats you have to install libxine-extracodecs (check Restricted Formats for more info)
sudo aptitude install libxine-extracodecs

or use an alternate procedure: double click (or right click and select "Open with gdebi") on the deb files so they are opened with gdebi, first democracyplayer-data_0.9.2.1-1ubuntupcf_all.deb and after that democracyplayer_0.9.2.1-1ubuntupcf_i386.deb (if you have a 32bit processor) or democracyplayer_0.9.2.1-1ubuntupcf_amd64.deb (if you have a 64bit processor)

  • Applications -> Sound & Video -> Democracy TV


===== (Alternative Method - Democracy TV Repository) =====

sudo gedit /etc/apt/sources.list
  • Add the following lines to the end of file
## Democracy TV Repository
deb http://ftp.osuosl.org/pub/pculture.org/democracy/linux/repositories/ubuntu edgy/
sudo aptitude update
sudo aptitude install democracyplayer
sudo aptitude install democracyplayer-data
sudo aptitude install libxine-extracodecs
  • Applications -> Sound & Video -> Democracy TV

How to install multimedia plug-ins for Firefox

  • Read #General Notes
  • Read #How to add extra repositories
  • Users only need to install one of the following plug-ins. Choose the plug-in that matches your preferred media player. If multiple plug-ins are installed, Firefox will use the most recently installed plug-in.
  • Note: While all of the following choices will work, users of Kubuntu are advised to use either the Kaffeine option and Ubuntu users are advised to use the Totem option, as those programs are the default media players for their respective distributions.
Totem plug-in (Ubuntu users)
sudo aptitude install totem-gstreamer-firefox-plugin
  • Restart Mozilla Firefox
Kaffeine plug-in (Kubuntu users)
sudo aptitude install kaffeine-mozilla
  • Restart Mozilla Firefox
MPlayer plug-in (Installs MPlayer media player as well)
sudo aptitude install mozilla-mplayer
  • Restart Mozilla Firefox
  • Applications -> Sound and Video -> MPlayer Movie Player
VLC plug-in (Installs VLC media player as well)
sudo aptitude install vlc vlc-plugin-* mozilla-plugin-vlc
  • In order to stream video via vlc, you also need to install the following packages.
sudo aptitude install avahi-daemon
sudo aptitude install avahi-utils
  • Applications -> Sound and Video -> VLC Media Player

Multimedia Editors & misc tools

How to install Music Organizer (Cowbell)

sudo aptitude install cowbell
  • Applications -> Sound & Video -> Cowbell Music Organizer
How to uninstall Cowbell
sudo aptitude remove cowbell

How to install ID3 Tag Editor (EasyTAG)

sudo aptitude install easytag
  • Applications -> Sound & Video -> EasyTAG
How to uninstall ID3 Tag Editor (EasyTAG)
sudo aptitude remove easytag

How to install Video Editor (Kino)

sudo aptitude install kino
sudo aptitude install kinoplus
sudo aptitude install kino-timfx
sudo aptitude install kino-dvtitler
  • Applications -> Sound & Video -> Kino Video Editor
How to uninstall Video Editor (Kino)
sudo aptitude remove kino kinoplus kino-timfx kino-dvtitler

How to install Audio Editor (Audacity)

sudo aptitude install audacity

to add the mp3 encoder library:

sudo aptitude install liblame-dev
  • Applications -> Sound & Video -> Audacity
How to uninstall Audacity
sudo aptitude remove audacity

How to install Audio Editor (Ardour)

sudo aptitude install ardour-gtk
sudo aptitude install ardour-gtk-dbg
sudo aptitude install ardour-gtk-i686

How to install Music Composition Program (NoteEdit)

sudo aptitude install noteedit lilypond
sudo gedit /usr/share/applications/noteedit.desktop
  • Insert the following lines into the new file
[Desktop Entry]
Name=NoteEdit
Comment=A free music score editor
Exec=noteedit
Icon=/usr/share/app-install/icons/noteedit.xpm
Terminal=false
Type=Application
Categories=Application;AudioVideo;
  • Save the file
  • Applications -> Sound & Video -> NoteEdit

How to install FMOD Ex audio libraries

wget "http://www.fmod.org/files/fmodapi40605linux.tar.gz"
tar xvzf fmodapi40605linux.tar.gz
cd fmodapi40605linux
sudo make install # neads no compiling

Image Editors, Viewers,etc.

How to install Image Viewer (digiKam)

sudo aptitude install digikam digikamimageplugins kipi-plugins
  • Applications -> Graphics -> digikam

How to install Picasa image organizer

gksudo gedit /etc/apt/sources.list
  • Add the following lines at the end of file
# Google Picasa for Linux repository
deb http://dl.google.com/linux/deb/ stable non-free
  • Save the edited file & run the following command:
wget -q -O - http://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add - 
sudo aptitude update
sudo aptitude install picasa
  • Applications -> Graphics -> Picasa

How to install Vector Graphics Editor (Inkscape)

sudo aptitude install inkscape


Second installation method:

1. Download the official Inkscape Linux installer.
2. Choose a mirror and save it to your Desktop.
3. Right-click it, enable "Properties --> Permissions --> Owner:Execute" and close the dialogue box. (One-time procedure)
4. Double-click it and follow the instructions.
5. Install the support code system-wide, if you have the root password. (One-time procedure)

NOTE: You can and should install the program as a User, rather than Root. This is easily accomplished with the second method.

Development & Programming

How to install WYSIWYG Web Authoring System (Nvu)

sudo aptitude install nvu
  • Save the edited file
  • Applications -> Programming -> Nvu

How to install Web Authoring System (BlueFish)

sudo aptitude install bluefish

  • Applications -> Programming -> Bluefish Editor

How to install Web Development Environment (quanta plus)

sudo aptitude install quanta
  • Applications -> Programming -> Quanta Plus

How to install Project Management Application (Planner)

sudo aptitude install planner
  • Applications -> Office -> Project Management

How to install jedit

wget -c http://optusnet.dl.sourceforge.net/sourceforge/jedit/jedit_4.3pre8_all.deb
sudo dpkg -i jedit_4.3pre8_all.deb
  • Applications -> Programming -> Programmers text editor jedit

How to install Python Development Tools

Python Dev Tools

sudo aptitude install gcc libc6-dev python-dev python-setuptools python2.4-profiler

Install EZ Setup (tool for installing Python stuff)

wget http://peak.telecommunity.com/dist/ez_setup.py
sudo python ez_setup.py

Upgrade Setup Tools

sudo easy_install -U --script-dir /usr/local/bin setuptools

Install TurboGears Framework (optional)

sudo easy_install --script-dir /usr/local/bin TurboGears

How to install Integrated Development Environment (Anjuta)

sudo aptitude install anjuta
  • Applications -> Programming -> Anjuta IDE

How to install C# Integrated Development Environment (MonoDevelop)

sudo aptitude install mono mono-gmcs mono-gac mono-utils monodevelop

How to install Java Integrated Development Environment (Eclipse)

sudo aptitude install eclipse
  • By default Eclipse will use GNU's java instead of Sun's. This will make Eclipse run very slowly and crash from time to time. To solve this problem, we will use Sun's JVM.
  • Install Sun JRE:
sudo aptitude install sun-java5-jre sun-java5-plugin sun-java5-bin sun-java5-fonts
  • Make Sun's JVM default:
sudo update-alternatives --config java
  • Choose the line that says
/usr/lib/jvm/java-1.5.0-sun/jre/bin/java.
  • Edit the JVM Configuration file:
gksudo gedit /etc/jvm
# This file defines the default system JVM search order. Each
# JVM should list their JAVA_HOME compatible directory in this file.
# The default system JVM is the first one available from top to
# bottom.

/usr/lib/jvm/java-1.5.0-sun
/usr/lib/jvm/java-gcj
/usr/lib/jvm/ia32-java-1.5.0-sun
/usr


  • Next, we need to tell Eclipse to use this JVM as well. This can be done on systemlevel or userlevel.
  • System:
gksudo gedit /etc/eclipse/java_home
# This file determines the search order the Eclipse Platform uses to find a
# compatible JAVA_HOME. This setting may be overridden on a per-user basis by
# altering the JAVA_HOME setting in ~/.eclipse/eclipserc.

/usr/lib/jvm/java-1.5.0-sun
/usr/lib/jvm/java-gcj
/usr/lib/kaffe/pthreads
/usr/lib/j2se/1.5
/usr/lib/j2se/1.4
/usr/lib/j2sdk1.5-ibm
/usr/lib/j2sdk1.4-ibm
/usr/lib/j2sdk1.5-sun
/usr/lib/j2sdk1.4-sun
  • User:
gedit ~/.eclipse/eclipserc
JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun/


  • Applications -> Programming -> Eclipse

How to install OpenCobol

  • After installing the build-essential, Run these lines of code
sudo aptitude install open-cobol
sudo aptitude install libdb4.4-dev libncurses5-dev libncursesw5-dev
  • Make a file called test.cob and put in this sample code (indentation is required)
	IDENTIFICATION DIVISION.
		PROGRAM-ID. hello.
		PROCEDURE DIVISION.
		DISPLAY "Hello World!".
		STOP RUN.
  • Save this, and open up a terminal in the directory that this file is in, and run the following command
cobc test.cob
./test
  • The program will output

hello world!

How to install Basic Compilers (build-essential)

sudo aptitude install build-essential

Finance

How to install Accounting Application (GnuCash)

Note: Program included in Automatix2. I you have already used Automatix2, this program may have been installed

sudo aptitude install gnucash
  • Applications -> Office -> GnuCash

How to install Personal Accounting Software (Eqonomize!)

sudo aptitude install eqonomize
sudo gedit /usr/share/applications/eqonomize.desktop
  • Add the following to the new file
[Desktop Entry]
Name=Eqonomize!
Comment=Personal Accounting Software
Exec=eqonomize %i %m -caption "%c"
Terminal=false
Type=Application
MimeType=application/x-eqonomize
Categories=Application;Office;
X-DCOP-ServiceType=Unique
X-DCOP-ServiceName=eqonomize
X-KDE-StartupNotify=true
Comment=Personal finances manager / bookkeeping software
X-Ubuntu-Gettext-Domain=desktop_eqonomize
  • Save the edited file
  • Applications -> Office -> Eqonomize!

CD & DVD burning & ripping

How to install DVD Ripper (dvd::rip)

sudo aptitude install dvdrip vcdimager cdrdao subtitleripper
sudo ln -fs /usr/bin/rar /usr/bin/rar-2.80
gksudo gedit /usr/share/applications/dvdrip.desktop
  • Insert the following lines into the new file
[Desktop Entry]
Name=dvd::rip 
Comment=dvd::rip
Exec=dvdrip
Icon=/usr/share/perl5/Video/DVDRip/icon.xpm
Terminal=false
Type=Application
Categories=Application;AudioVideo;
  • Save the edited file
  • Applications -> Sound & Video -> dvd::rip

How to install DVD Ripper (AcidRip)

sudo aptitude install acidrip

Note: AcidRip will not recognize dvd if dma is turned on. If so undo the process #How to speed up CD/DVD-ROM.

How to install CD Ripper (Goobox)

sudo aptitude install goobox
sudo rm -f /usr/share/applications/goobox.desktop
gksudo gedit /usr/share/applications/goobox.desktop
  • Insert the following lines into the new file
[Desktop Entry]
Name=CD Player & Ripper
Comment=Play and extract CDs
Exec=goobox
Icon=goobox.png
Terminal=false
Type=Application
Categories=Application;AudioVideo;
  • Save the edited file
  • Applications -> Sound & Video -> CD Player & Ripper

How to install CD/DVD Burning Application (GnomeBaker)

Note: Program included in Automatix2. I you have already used Automatix2, this program may have been installed

sudo aptitude install gnomebaker
  • Applications -> Sound & Video -> GnomeBaker

How to install CD/DVD Burning Application (K3b)

sudo aptitude install k3b libk3b2-mp3
  • Applications -> Sound & Video -> K3b

How to Burn .img DVD Images

NOTE: You may or may not need the udftools package

Here is the command-line method to burning .img images to a dvd:

sudo aptitude install udftools
growisofs -Z /dev/dvd=full_path_to_mydvd.img

Network

How to install Dialup PPP Client (GNOME PPP)

sudo aptitude install gnome-ppp
  • Applications -> Internet -> GNOME PPP

How to install Broadband ADSL/PPPoE Client (RP-PPPoE)

wget -c http://www.roaringpenguin.com/files/download/rp-pppoe-3.8.tar.gz
sudo tar zxvf rp-pppoe-3.8.tar.gz -C /opt/
sudo chown -R root:root /opt/rp-pppoe-3.8/
gksudo gedit /usr/share/applications/RP-PPPoE.desktop
  • Insert the following lines into the new file
[Desktop Entry]
Name=RP-PPPoE
Comment=RP-PPPoE
Exec=gksudo /opt/rp-pppoe-3.8/go-gui
Icon=pppoeconf.xpm
Terminal=false
Type=Application
Categories=Application;Network;
  • Save the edited file
  • Applications -> Internet -> RP-PPPoE


How to install Postfix (Mail Transport Agent)

sudo aptitude install postfix
  • After installation, you would be asked the name of the sender, leave this as the name of your computer.
  • Refer to The Postfix Homepage for more info.

How to use Bluetooth to share files

sudo aptitude install bluez-utils gnome-bluetooth
  • Open Applications -> Accessories -> Bluetooth file sharing
  • You're now able to receive files from other Bluetooth-devices
  • To send a file: find a file to send, right click and choose "Send to", wait until the other device is detected, and click "send".

To see if your Bluetooth-device is supported check this site: http://www.holtmann.org/linux/bluetooth/features.html

System

How to install Boot-Up Manager (BUM)

sudo aptitude install bum
  • System -> Administration -> Boot-Up Manager

How to install Partition Editor

How to install a Gnome (Ubuntu) Partition Editor (GParted)
sudo aptitude install gparted
  • System -> Administration -> GNOME Partition Editor (GParted)
How to install a KDE (Kubuntu) Partition Editor (QTParted)
sudo aptitude install qtparted
  • KMenu -> System -> QTParted

How to install Extra Fonts

sudo aptitude install xfonts-intl-arabic
sudo aptitude install xfonts-intl-asian
sudo aptitude install xfonts-intl-chinese
sudo aptitude install xfonts-intl-chinese-big
sudo aptitude install xfonts-intl-european
sudo aptitude install xfonts-intl-japanese
sudo aptitude install xfonts-intl-japanese-big
sudo aptitude install xfonts-intl-phonetic
sudo aptitude install gsfonts-x11
sudo aptitude install msttcorefonts
sudo fc-cache -f -v
Tip: if Microsoft core fonts are too small you can improve the look by importing configuration file:
wget http://www.osresources.com/files/centos-windows-fonts/fontconfig.tbz
sudo tar xvjpf fontconfig.tbz -C /etc/fonts/
Note: Ubuntu Edgy comes with the DejaVu fonts (derived from Bitstream Vera) and provides adequate support for Latin, Greek and Cyrillic based languages.

How to Get Xmessaging for APCUPSD

Well, since wall messaging doesnt work in Debian based distros for
apcupsd (it doesn't send messaging to the desktop in kwrited), which
really helps so here is how to set it up to work with xmessaging instead.

First we need to change the /etc/apcupsd/apccontrol
make a copy and rename it original in case you ever want to go back and
replace the contents with the following:

#!/bin/sh
#
# Copyright (C) 1999-2002 Riccardo Facchetti <riccardo@master.oasi.gpa.it>
#
# for apcupsd release 3.12.4 (19 August 2006) - debian
#
# platforms/apccontrol. Generated from apccontrol.in by configure.
#
# Note, this is a generic file that can be used by most
# systems. If a particular system needs to have something
# special, start with this file, and put a copy in the
# platform subdirectory.
#

#
# These variables are needed for set up the autoconf other variables.
#
prefix=/usr
exec_prefix=${prefix}

APCPID=/var/run/apcupsd.pid
APCUPSD=/sbin/apcupsd
SHUTDOWN=/sbin/shutdown
SCRIPTSHELL=/bin/sh
SCRIPTDIR=/etc/apcupsd
WALL=wall

#
# Concatenate all output from this script to the events file
# Note, the following kills the script in a power fail situation
# where the disks are mounted read-only.
# exec >>/var/log/apcupsd.events 2>&1

#
# This piece is to substitute the default behaviour with your own script,
# perl, or C program.
# You can customize every single command creating an executable file (may be a
# script or a compiled program) and calling it the same as the $1 parameter
# passed by apcupsd to this script.
#
# After executing your script, apccontrol continues with the default action.
# If you do not want apccontrol to continue, exit your script with exit
# code 99. E.g. "exit 99".
#
# WARNING: the apccontrol file will be overwritten every time you update your
# apcupsd, doing `make install'. Your own customized scripts will _not_ be
# overwritten. If you wish to make changes to this file (discouraged), you
# should change apccontrol.sh.in and then rerun the configure process.
#
if [ -f ${SCRIPTDIR}/${1} -a -x ${SCRIPTDIR}/${1} ]
then
${SCRIPTDIR}/${1} ${2} ${3} ${4}
# exit code 99 means he does not want us to do default action
if [ $? = 99 ] ; then
exit 0
fi
fi

case "$1" in
killpower)
echo "Apccontrol doing: ${APCUPSD} --killpower on UPS ${2}"
sleep 10
${APCUPSD} --killpower
xmessage -center "Apccontrol has done: ${APCUPSD} --killpower on UPS ${2}" &
;;
commfailure)
xmessage -center "Warning communications lost with UPS ${2}" &
;;
commok)
xmessage -center "Communications restored with UPS ${2}" &
;;
#
# powerout, onbattery, offbattery, mainsback events occur
# in that order.
#
powerout)
xmessage -center "Warning power loss detected on UPS ${2}" &
;;
onbattery)
xmessage -center "Power failure on UPS ${2}. Running on batteries." &
;;
offbattery)
;;
mainsback)
xmessage -center "Power has returned on UPS ${2}..." &
if [ -f /etc/apcupsd/powerfail ] ; then
printf "Continuing with shutdown." | ${WALL}
fi
;;
failing)
xmessage -center "Battery power exhaused on UPS ${2}. Doing shutdown." &
;;
timeout)
xmessage -center "Battery time limit exceeded on UPS ${2}. Doing shutdown." &
;;
loadlimit)
xmessage -center "Remaining battery charge below limit on UPS ${2}. Doing shutdown." &
;;
runlimit)
xmessage -center "Remaining battery runtime below limit on UPS ${2}. Doing shutdown." &
;;
doreboot)
xmessage -center "UPS ${2} initiating Reboot Sequence" &
${SHUTDOWN} -r now "apcupsd UPS ${2} initiated reboot"
;;
doshutdown)
xmessage -center "UPS ${2} initiated Shutdown Sequence" &
${SHUTDOWN} -h now "apcupsd UPS ${2} initiated shutdown"
;;
annoyme)
xmessage -center "Power problems with UPS ${2}. Please logoff." &
;;
emergency)
xmessage -center "Emergency Shutdown. Possible battery failure on UPS ${2}." &
${SHUTDOWN} -h now "apcupsd emergency shutdown"
;;
changeme)
xmessage -center "Emergency! Batteries have failed on UPS ${2}. Change them NOW" &
;;
remotedown)
xmessage -center "Remote Shutdown. Beginning Shutdown Sequence." &
${SHUTDOWN} -h now "apcupsd remote shutdown"
;;
restartme)
echo -n "Restarting APCUPSD Power Management: "
THEPID=`cat ${APCPID}`
kill ${THEPID}
rm -f ${APCPID}
rm -f /etc/apcupsd/powerfail
rm -f /etc/nologin
sleep 5
`${APCUPSD}`
echo "apcupsd"
;;
startselftest)
;;
endselftest)
;;
mastertimeout)
xmessage -center "Warning connection from master lost." &
;;
masterconnect)
xmessage -center "Connection from master established." &
;;
battdetach)
;;
battattach)
;;
*) echo "Usage: ${0##*/} command"
echo " warning: this script is intended to be launched by"
echo " apcupsd and should never be launched by users."
exit 1
;;
esac
##############################################


Now, the next thing we need to do is setup apcupsd to restart when we login
or xmessaging wont work
Got to /home/(your user name)/.kde/Autostart and create a file called
apcupsd-restart.desktop and insert
the following text:


[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=
Comment=
Comment[en_US]=
Exec=sudo /etc/init.d/apcupsd restart
GenericName=
GenericName[en_US]=
Icon=
MimeType
Name[en_US]=
Path=
StartupNotify=false
Terminal=false
TerminalOptions=
Type=Application
X-DCOP-ServiceType=
X-KDE-SubstituteUID=false
X-KDE-Username=
X-KDE-autostart-after=kdesktop

#########################################

Or  if  you  use  Gnome  go  to  sessions  and  add
sudo /etc/init.d/restart to  your  startup  programs.

#########################################
  
Save the file and right click, properties and change the file to make
it execautable.

Next step requires a change in your sudoers file, in order for you to 
execute service starts change 
the following in your /etc/sudoers file:

For Debian Based Files:
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#
 Defaults env_reset
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL) ALL
billydv ALL=(ALL) NOPASSWD: ALL
 
For  Ubuntu  Based  Files:
# User privilege specification
root	ALL=(ALL) ALL
billydv	ALL=(ALL) NOPASSWD: ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
%users	ALL=(ALL) NOPASSWD: ALL
Substitute billydv with your user name. If you are concerned about
security you can read the documentation for sudo and actually set
the sudo file to only allow you to restart apcupsd without a password
but for me it doesnt matter, I prefer the skipped password. After
Saving the File  open  a  terminal  as  your  regular  user  and  type:
sudo /etc/init.d/restart
If  you  are  able  to  restart  apcupsd  without  asking  for  a  
password,  you  can  continue,  if  not  try  adding  your  user
to  the  admin  group.
Reboot your computer and unplug the cord to you UPS to test, you should
then see xmessages on your desktop.

This will work with Ubuntu and Mepis or any other Debian or Ubuntu
based Distro.

Security

How to install Firewall (Firestarter)

sudo aptitude install firestarter
  • System -> Administration -> Firestarter

How to install Firewall (Guarddog)

sudo aptitude install guarddog
  • System -> Administration -> Guarddog

How to install a GUI desktop On-Access Anti-Virus Scanner for KDE (KlamAV)

Follow the Kubuntu KlamAV installation procedure described in the KlamAV FAQ. Read the instructions carefully - there is more to the installation than simply apt-get-ing the klamav package.
  • Applications -> System -> KlamAV Anti-Virus Manager

How to install network traffic analyzer (Ethereal)

Note: Ethereal has been abandoned by its developers in favor of Wireshark.
sudo aptitude install ethereal
  • Applications -> Internet -> Ethereal

How to install network traffic analyzer (Wireshark)

sudo aptitude install wireshark
  • Applications -> Internet -> Wireshark

How to install Vulnerability Scanner (Nessus)

sudo aptitude install nessus
sudo aptitude install nessusd
sudo nessus-adduser
sudo ln -fs /etc/init.d/nessusd /etc/rc2.d/S20nessusd
sudo /etc/init.d/nessusd start
gksudo gedit /usr/share/applications/Nessus.desktop
  • Insert the following lines into the new file
[Desktop Entry]
Name=Nessus
Comment=Nessus
Exec=nessus
Icon=/usr/share/pixmaps/nessus.xpm
Terminal=false
Type=Application
Categories=Application;System;Settings;
  • Save the edited file
  • Applications -> System Tools -> Nessus

Archivers / Packages/ Compression

How to install 7z Archiver ( .7z)

sudo aptitude install p7zip-full

How to install RAR Archiver (rar)

Note: Program included in Automatix2. If you have already used Automatix2, this program may have been installed

sudo aptitude install rar unrar
  • Applications -> Accessories -> Archive Manager

How to install & use .rpm to .deb Converter (Alien)

sudo aptitude install alien
sudo alien -d package.rpm (-d for Debian package)

How to make Ubuntu/Debian packages (CheckInstall)

sudo aptitude install checkinstall
  • When compiling software from source, replace "make install" with "checkinstall"
./configure
make
checkinstall

A Debian package (.deb) will now be created in the current directory.

  • To install the created package
sudo dpkg -i package_name.deb
  • Consider copying your package to a personal Apt Repository

#Personal Apt Repository

Games

How to install game Tuxracer

sudo aptitude install planetpenguin-racer planetpenguin-racer-data planetpenguin-racer-extras
  • Applications -> Games -> planetpenguin-racer

How to install game Frozen-Bubble

sudo aptitude install frozen-bubble
  • Applications -> Games -> Frozen-Bubble

How to install game Scorched3D

sudo aptitude install scorched3d
  • Applications -> Games -> Scorched 3D

How to install real-time-strategy game (globulation 2 alpha21)

wget http://globulation2.org/releases/0.8.21/glob2_alpha21_i386.deb
sudo dpkg -i glob2_alpha21_i386.deb

You might also need to install dependencies if dpkg returns a dependency error

sudo aptitude -f install

To play use this command:

glob2

How to install Nexuiz a 3d deathmatch game

  • Unpack the archive for example to /opt directory (ca. 200 MB needed)
sudo unzip nexuiz-<version>.zip -d /opt
wget http://www.kde-look.org/content/download.php?content=27478
tar -zxf 27478-nexuiz-fire.tar.gz
sudo mv Nexuizicon* /opt/Nexuiz/
rm 27478-nexuiz-fire.tar.gz
  • Create a Desktop Entry
gksudo gedit /usr/share/applications/nexuiz.desktop
  • Insert the following lines into the new file
[Desktop Entry]
Name=Nexuiz
Comment=A 3D Deathmatch Game
Exec=/opt/Nexuiz/nexuiz-linux-sdl.sh
Icon=/opt/Nexuiz/Nexuizicon64x64.png
Terminal=false
Type=Application
Categories=Application;Game;
  • If you experience problems you can exchange the Exec line with: Exec=/opt/Nexuiz/nexuiz-linux-glx.sh

How to install Cube (Online FPS) Game

How to install ActionCube (Online FPS) Game

Download some needed libraries:

sudo apt-get install build-essential libsdl1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev

Note: Please check the ActionCube website for updates: http://action.cubers.net/download.html Download the game here by clicking on ActionCube v0.92 for Linux/Unix. Change to the directory where you downloaded the game.

tar xvf ActionCube_*.tar.bz2
cd ActionCube/source/src/
make install
cd ../../
./actioncube.sh

For AMD64 users follow above instructions:

sudo apt-get install linux32
sudo vi actioncube.sh

Modify the following line:

# MACHINE_NAME should be set to the name of your processor.
#MACHINE_NAME=i686
MACHINE_NAME=`uname -m`

To this:

# MACHINE_NAME should be set to the name of your processor.
#MACHINE_NAME=i686
MACHINE_NAME=`linux32 uname -m`

How to install Cube 2: Sauerbraten (Online FPS) Game

Download some needed libraries:

sudo apt-get install build-essential libsdl1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev

Download the game:

wget -c http://downloads.sourceforge.net/sauerbraten/sauerbraten_2006_12_04_gui_edition_linux.tar.gz?modtime=1165214827&big_mirror=0
tar xvf sauerbraten_2006_12_04_gui_edition_linux.tar.gz
cd sauerbraten/src/
make install
cd ../
./sauerbraten_unix 

For AMD64 users follow above instructions:

sudo apt-get install linux32
gksudo gedit sauerbraten_unix

Modify the following line:

# MACHINE_NAME should be set to the name of your processor.
#MACHINE_NAME=i686
MACHINE_NAME=`uname -m`

To this:

# MACHINE_NAME should be set to the name of your processor.
#MACHINE_NAME=i686
MACHINE_NAME=`linux32 uname -m`

Super Nintendo Emulator (ZSNES) 1.510 for i386/AMD64

For support or questions please see this thread http://ubuntuforums.org/showthread.php?t=432642

echo "deb http://packages.dfreer.org feisty main" | sudo tee -a /etc/apt/sources.list
wget http://packages.dfreer.org/7572013D.gpg -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get install zsnes32 #for amd64 users
sudo apt-get install zsnes   #for everyone else
  • Applications > Games > zsnes or zsnes32

Playstation 1 Emulator (pSX) 1.11 for i386/AMD64

For support or questions see http://ubuntuforums.org/showthread.php?t=394097

echo "deb http://packages.dfreer.org feisty main" | sudo tee -a /etc/apt/sources.list
wget http://packages.dfreer.org/7572013D.gpg -O- | sudo apt-key add -
sudo apt-get update

sudo apt-get install psx32 #for amd64 users
sudo apt-get install psx   #for everyone else
  • Applications > Games > pSX or pSX32

Educational Software

How to install KDE Edutainment applications

sudo aptitude install kdeedu
  • The following programs are installed in the KDE Edutainment package:
    • Languages
      • KHangman (Hangman Game)
      • Kiten (Japanese Study Tool)
      • KLatin (Latin Study Tool)
      • KLetters (Alphabet Study Tool)
      • Kanagram (Anagram Game)
      • Kverbos (Spanish Verb Study Tool)
      • KVocTran (Vocabulary Study Tool)
    • Mathematics
      • KBruch (Fractions Study Tool)
      • KPercentages (Percentages Study Tool)
      • Kig (Interactive Geometry)
      • KmPlot (Mathematical Function Plotter)
    • Science
      • KStars (Desktop Planetarium)
      • Kalzium (Periodic Table)
    • Teaching Tools
      • KEduca (Test and Exams)
      • KEduca-Editor (Test and Exams Editor)
    • Miscellaneous
      • KTurtle (Logo Programming Enviornment)
      • blinKen (Simon-like game)
      • KTouch (Touch-typing tutor)
      • KWordQuiz (Vocabulary Trainer)
  • Applications -> Education -> ...

How to install a space simulation package (Celestia)

Ubuntu users:
sudo aptitude install celestia-gnome
Kubuntu users:
sudo aptitude install celestia
  • Applications -> Graphics -> Celestia

How to install a desktop planetarium (Stellarium)

sudo aptitude install stellarium
  • Applications -> Other -> Stellarium

Yet to be Categorized

How to install 3D modeling tool (Blender 3d)

sudo aptitude install blender
  • Applications -> Graphics -> Blender 3D modeller

How to install Chinese Input Method (SCIM)

Please follow the official Ubuntu guide HERE

How to install Desktop Applets

How to install Gnome (Ubuntu) Desktop Applets (gDesklets)

Note: Program included in Automatix2. I you have already used Automatix2, this program may have been installed

sudo aptitude install gdesklets gdesklets-data
How to install KDE (Kubuntu) Desktop Applets (SuperKaramba)
sudo aptitude install superkaramba
  • KMenu -> Utilities -> Superkaramba

How to install Google Earth

wget -c http://dl.google.com/earth/GE4/GoogleEarthLinux.bin
sudo sh GoogleEarthLinux.bin
  • Leave /usr/local/google-earth as the installation path
  • After installation click Exit. If you instead chose to run the application, read the Note below.
sudo cp /opt/google-earth/googleearth.desktop /usr/share/applications/
  • Applications -> Internet -> Google Earth
  • Note: If you run Google Earth for the first time from the installer, it will require root privileges to run the next time. To fix that:
sudo chmod 777 -R ~/.googleearth

How to install Virtual Machine Manager (VMware Server)

  • Register an account here to get your free serial number. The number will be emailed.
sudo aptitude install linux-headers-`uname -r` build-essential xinetd
wget -c http://download3.vmware.com/software/vmserver/VMware-server-1.0.2-39867.tar.gz
tar xzf VMware-server-1.0.2-39867.tar.gz -C /tmp
cd /tmp/vmware-server-distrib
sudo ./vmware-install.pl
  • Accept all defaults and enter your serial.
  • Applications -> System Tools -> VMware Server Console
  • Please see this thread if you have problems: Ubuntu Forums

How to install Windows Applications in Linux (Wine)

Wine Is Not an Emulator. Wine is an Open Source implementation of the Windows API on top of X and Unix. Think of Wine as a compatibility layer for running Windows programs. Wine does not require Microsoft Windows, as it is a completely free alternative implementation of the Windows API consisting of 100% non-Microsoft code, however Wine can optionally use native Windows DLLs if they are available.

In other words, Wine will let you run Windows applications in Linux.

  • Open the sources.list file:
Ubuntu users:
sudo gedit /etc/apt/sources.list
Kubuntu users:
sudo kate /etc/apt/sources.list
  • Add the following lines at the end of this file
# Repository for wine
deb http://wine.budgetdedicated.com/apt edgy main
deb-src http://wine.budgetdedicated.com/apt edgy main
  • Save the edited file
  • Acquire public key
gpg --keyserver hkp://subkeys.pgp.net --recv-keys 58403026387EE263
gpg --export --armor 58403026387EE263 | sudo apt-key add -
  • Update and install Wine package
sudo aptitude update
sudo aptitude install wine

How to install a Quran researching tool (zekr)

Zekr is an open platform Quran study tool for simply browsing and researching on the Holy Quran. It is a Quran-based project, planned to be a universal, open source, and cross-platform application to perform most of the usual refers to Quran. The main idea is to build an as generic as possible platform to accept different Islamic resources.

Currently Zekr has English, Persian, French, German, Arabic, Indonesian, Russian, Dutch, Kurdish, Malay, Turkish and Urdu built-in language packs. In addition, it includes English, Persian, and Russian Quran translations.

  • Make sure that Sun JRE is the default JRE (zekr also works with the new version of gij).
  • Run the following command in the terminal:
sudo gedit /etc/apt/sources.list
  • Add The following line at the end of the file:
deb http://siahe.com/zekr/apt edgy main
  • Add the GPG key
wget -q http://siahe.com/zekr/apt/zekr.debian.gpg -O- | sudo apt-key add -
  • Run the following commands in the terminal:
sudo apt-get update
sudo apt-get install zekr
sudo apt-get install ttf-me-quran ttf-scheherazade
  • If you are upgrading from a previous installed version of zekr, to use the new font configuration of zekr run the following command in the terminal:
mv ~/.zekr ~/.zekr-backup

How to install a Drop Down Terminal like in First Person Shooters

How to install a Gnome (Ubuntu) Drop Down Terminal (tilda)
sudo aptitude install tilda
  • The default keybinding is F1. To change the default keybinding, either enter tilda -C at the terminal, or right click on the tilda terminal then click Preferences. While in preferences, you can change other things such as transparency, font, size, and window size.
How to install a KDE (Kubuntu) Drop Down Terminal (YaKuake)
sudo aptitude install yakuake
  • Restart the X Windows system.
  • KMenu -> System -> Yakuake

How to install a password manager (Revelation)

sudo aptitude install revelation
  • Applications -> Accessories -> Revelation Password Manager
How to uninstall Revelation
sudo aptitude remove revelation

How to Automatically cycle Flickr images as your Ubuntu desktop wallpaper

Check here for Ubuntu Wallpapers You want to make your ubuntu desktop more Colourful and Beautiful this is for you


How to install WinPopup (LinPopUp)

sudo aptitude install linpopup
gksudo gedit /usr/share/applications/linpopup.desktop
  • Insert the following lines into the new file
[Desktop Entry]
Name=LinPopUp
Comment=LinPopUp
Exec=linpopup
Icon=/usr/share/pixmaps/linpopup.xpm
Terminal=false
Type=Application
Categories=Application;Utility;
  • Save the edited file
  • Applications -> Accessories -> LinPopUp

How to install Desktop Publishing Application (Scribus)

sudo aptitude install scribus
  • Applications -> Office -> Scribus

How to install Diagram Editor (Dia)

sudo aptitude install dia-gnome
  • Applications -> Graphics -> Dia

How to install Compiled HTML Help (CHM) Viewer (xCHM)

sudo aptitude install xchm
  • Applications -> Graphics -> xCHM
Personal tools
Sponsor
Going Tribal