Install Sun Java with the Firefox Plugin on an Ubuntu Live CD or USB



When running Ubuntu from a live cd or live usb, and trying to install java, the following errors appear:

java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory


OR

Setting up sun-java6-bin (6-06-0ubuntu1) ...
Error: could not find libjava.so
Error: could not find Java 2 Runtime Environment.

Getting and Preparing the files

Adding the Multiverse and Universe Repositories

Go to 'System', 'Administration', 'Software Sources'.

On the 'Ubuntu Software' tab tick the multiverse and universe boxes.

Click 'Close'. It will ask you to reload/refresh; DO IT!

Getting and Installing Java

Online Install

Do this in a terminal for JRE (basically if you're not a java developer):

* sudo apt-get install sun-java6-jre sun-java6-plugin

Do this in a terminal for JDK (basically if you ARE a java developer):

* sudo apt-get install sun-java6-jdk sun-java6-plugin

Say yes to whatever asks. If you are on a live CD or USB (even if it is Feisty 7.04, Gutsy 7.10, or Hardy 8.04 - I tried them all) you will probably get something like this:

Setting up sun-java6-bin (6-00-2ubuntu2) ...
/usr/lib/jvm/java-6-sun-1.6.0.00/bin/java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory
dpkg: error processing sun-java6-bin (--configure):
subprocess post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of sun-java6-plugin:
sun-java6-plugin depends on sun-java6-bin (= 6-00-2ubuntu2); however:
Package sun-java6-bin is not configured yet.
dpkg: error processing sun-java6-plugin (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of sun-java6-jre:
sun-java6-jre depends on sun-java6-bin (= 6-00-2ubuntu2) | ia32-sun-java6-bin (= 6-00-2ubuntu2); however:
Package sun-java6-bin is not configured yet.
Package ia32-sun-java6-bin is not installed.
dpkg: error processing sun-java6-jre (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
sun-java6-bin
sun-java6-plugin
sun-java6-jre
E: Sub-process /usr/bin/dpkg returned an error code (1)
Fixing that Error
Go into a terminal and do the following:
(Copy and paste using right-click so you don't get any of them wrong)

1.sudo su

2. LD_LIBRARY_PATH=CHANGEME dpkg --configure -a

-----The CHANGEME part should be changed to the location of libjli.so
-----Open your File System, go Ctrl+F, search for 'libjli'
-----Mine was in '/usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/i386/jli'
----------so I used LD_LIBRARY_PATH=/usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/i386/jli dpkg --configure -a

3.ln -s / /cow

4. Run whichever of these you used before again:

sudo apt-get install sun-java6-jre sun-java6-plugin
sudo apt-get install sun-java6-jdk sun-java6-plugin

-----Say yes to anything it asks.
-----It should work perfectly this time with no errors.


Verification of Success

In a terminal type:

java -version

Something like this should appear:

java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Server VM (build 10.0-b22, mixed mode)
In firefox, where you would type a website type:
Code:

about:plugins

You should see something like this (you might have to scroll to find it):
Quote:
Java(TM) Plug-in 1.6.0_06-b02

File name: libjavaplugin_oji.so
Java(TM) Plug-in 1.6.0_06
With a huge table underneath it.

Go to this website: http://java.com/en/download/help/testvm.xml

An applet will run near the bottom if you java is working correctly.




Howto Re-install Grub after windows wipes it out



Basically you have a good install of ubuntu and then realise that you want to dual-boot. You don't want to erase ubuntu, so you install windows. Grub then gets erased and there is NO way to get back into ubuntu.


So do the following:

1) Boot off the LiveCD

2) Open a Terminal (Applications-Accessories-Terminal) and type in the following commands, noting that the first command will put you into the grub "prompt", and the next 3 commands will be executed there. Also note that hd0,0 implies the first hard drive and the first partition on that drive, which is where you probably installed grub to during installation. If not, then adjust accordingly.

sudo grub
> root (hd0,0)
> setup (hd0)
> exit

4) Reboot (removing the livecd), and your boot menu should be back.

5) Open the grub file:

sudo gedit /boot/grub/menu.lst

6) Scroll to the bottom and add the following:

title Windows XP
root (hd0,0)
makeactive
chainloader +1

Note that you should also verify that hd0,0 is the correct location for Windows. If you had installed Windows on the 4th partition on the drive, then you should change it to (hd0,3).




Howto Configure Evolution to Work with Yahoo! Mail



Before we start you have to pay for a PLUS mail account in order to pop3 it with Evolution or any other e-mail tool.


Procedure to follow

1. Open Evolution and click EDIT -> PREFERENCES from the menu.

2. On the left, ensure MAIL ACCOUNTS is high-lighted. Click ADD.

3. Click FORWARD.

4. Enter your personal information here. You don't have to enter your full name if you don't want your full name to appear in outgoing mail. Click Forward when finished.

5. Select POP for Server Type.

Now add the following for RECEIVING EMAIL (heading at top of the window)

SERVER: plus.pop.mail.yahoo.com:995 (Notice port number at the end)

Username: your Yahoo! username WITHOUT @yahoo.com

Use Secure Connection: SSL Encryption

Authentication Type: PASSWORD

Remember Password: Checked (optional)


6. Click FORWARD button.

7. Set the next options to your liking. I place a check mark in the first box and have my yahoo! e-mail checked every 1 minute. That's the only setting chance I make on this window.

8. Click FORWARD.

Now add the following for SENDING EMAIL (heading at top of the window)

Server Type: SMTP

SERVER: plus.smtp.mail.yahoo.com:465 (Notice port number at the end)

Server requires authentication: Check this box

Use Secure Connection: SSL Encryption

Authentication: Plain

Username: your username WITHOUT the @yahoo.com


9. Click FORWARD.

10. Enter a name for this setup. I use: Yahoo!


Click apply and your done. If you've already been trying to get this to work and have a yahoo mail account created, don't click ADD (step 2). Instead click on it and select EDIT. Then enter the above information in the SENDING and RECEIVING tabs.




Howto Improve NVidia Laptop Graphics Performance in Ubuntu



NVidia laptop cards come with a feature called PowerMizer that dynamically underclocks the GPU when it's not being used much. This is great for battery power but horrible for performance when using Desktop Effects (compiz). Unfortunately, NVidia does not provide a way to configure PowerMizer on Linux however, it's not difficult to create a script that will give you maximum speed while on AC power and maximum power savings while on battery.


This HOWTO is aimed primarily at users of NVidia 8 and 9 series laptop graphics cards (though, it may be useful for 7 series users as well). This HOWTO assumes you are running compiz and have already properly configured the NVidia proprietary drivers. If you are not using compiz, this guide will not be useful for you.

Implementation

The first thing we will need is a utility called nvidia-settings. If you've installed the NVidia drivers directly from the NVidia website or using envyng, you can skip this step

sudo apt-get install nvidia-settings

The nvidia-settings has a unique property that, with essentially no CPU/GPU activity, when you ask the card to print all of its information, it causes the card to go to maximum power. The nvidia card only drops a power level every 30 seconds so, we are going to take advantage these two facts to keep the card at maximum power if we are on AC power.

If you have no custom scripts, follow these instructions first

mkdir -p ~/bin

Then, open up gedit and paste the following script


#!/bin/bash

while true; do
if on_ac_power; then
nice /usr/bin/nvidia-settings -q all > /dev/null
fi
sleep 25;
done

Save the script as ~/bin/nvidia-power.sh. Then, start a terminal and type the following:


chmod +x ~/bin/nvidia-power.sh

~/bin/nvidia-power.sh &

disown

exit

If you are on AC power, the card should now be locked at its maximum power but, if you are on battery power, you should see no difference at all (until you next plug your laptop in).

Next, we will need to add this script to run when you login. On gnome, go to System->Preferences->Sessions, click Add. Add a descriptive name for the startup program (maybe, "NVidia Power") and for Command use, "/home/your_username/bin/nvidia-power.sh" (replace your_username with your username). Now the command should run whenever you login.

Testing

Testing is fairly straightforward. Start a terminal and type:

nvidia-settings

Scroll down to the bottom of the window this command brings up and look on the left side for the PowerMizer option. If your laptop is plugged in, you should see that your graphics card is running at full power. Watch it for a minute (the time it takes for the card to normally drop to lowest power) and make sure it stays at the highest power level. Now, unplug your laptop and wait for another minute. After less than a minute, your card should drop down to minimum power (as long as you keep it idle). Now, plug the cable back in and, in less than 30 seconds, the card should come back to full power and stay there.

The one caveat of this approach is that it can take up to 25 seconds for the card to come back up to full power. There are more complex ways to make the card instantly go to full power when plugged in but, on average, it will be at full power within 12 seconds so, it's probably more hassle than it's worth to use more complex methods.




Howto Create Smart Playlists in Songbird



Songbird doesn't have the feature for Smart Playlists built into it (playlists that consist of music matching certain conditions, e.g. "Never been played", or "Recently Added").



How to make a Recently Added playlist:

1. Open Text Editor (Applications>Accessories>Text Editor)

2. Copy and paste:

find "/home/user/Music/" -mtime -30 -type f | egrep -vi '\.jpg$' >recentlyadded.pl

Change /home/user/Music/ to the directory where you store your music.

By default I've defined "recently added" as music that was added in the past 30 days, but you can change the number 30 to a different number if you prefer.

3. Click File>Save As... and call it RecentlyAddedPlaylist.sh (or something else if you prefer).

4. Navigate to the folder where you saved it, right click on it, click Properties.

5. Go to the Permissions tab and tick the box "Allow executing file as program" and click Close.

6. Double click on the file and click Run in Terminal

7. Open Songbird

8. Click on File>Import a Playlist...

9. Navigate to your home folder.

10. The playlist won't be visible, so just type "recentlyadded.pl" and click Open.

11. You should now see a playlist of all the songs you've added in the past 30 days.

To update the playlist, simply run steps 6 to 10 again.




Howto Install Ubuntu on an external hard drive on an Acer Aspire laptop



If you want to install Ubuntu on an external hard drive on an Acer Aspire laptop follow this procedure

1) Buy a MyBook 320GB hard drive at Wal-Mart (by Western Digital) for ~$100

**NOTE: The next step is only necessary if you need wireless internet access through a router**


2) Buy a Zonet wireless card (your Aspire's built-in wireless IS NOT compatible with Ubuntu)

3) Follow the MyBook's [sarcasm]extremely difficult[/sarcasm] installation instructions to get it working in Windows Vista.

4) DO NOT USE THE ZONET CARD, Windows can and will mess up its internal settings.

5) Once the MyBook is working, attempt to format it to NTFS. When the format is just A LITTLE BIT done, purposefully end the format to corrupt the drive. I know it sounds stupid, but it works.

6) Download the latest version of Ubuntu (8.04 at the time of writing) as a LiveCD.

7) Write the ISO to a CD, I used a CD-RW. Most Aspire laptops come with NTI CD Maker, so use that if you have it.

8) This step was a mistake. If you're trying to reproduce this, skip to step 9. Restart your laptop to find that the BIOS won't load from CDs. Reenter Windows in frustration.

9) Go into the CD with windows to bring up the Ubuntu menu inside Windows.

10) Choose to use the LiveCD (I think the top option) and use the 3rd option (to get help with startup).

11) It will rewrite your BIOS to allow booting from the LiveCD on startup.

12) Restart again and load the LiveCD.

13) Boot into "normal install" (first button on CD menu).

14) Enter GParted and find your new 320GB hard disk.

15) There should be 1 partition with an "unknown" format. Delete the partition and apply it.

16) Close GParted and restart. Go back into the normal install like before.

17) Hit Install on your Ubuntu desktop.

18) Answer the questions as normal until it asks you where to install it to.

19) Choose to take up the entire 320GB drive.

20) Install Ubuntu as normal, you don't need to change any of the advanced settings.

21) When complete, reboot into the new GRUB bootloader and choose to start Ubuntu.

22) It will start from your external HD and boom, you have Ubuntu!

**NOTE: If you DON'T want wireless internet access, skip to step 29**

23) Shut down and put your Zonet card in. Go back into Ubuntu.

24) In Ubuntu, go to the network options.

25) Set your computer's built-in wireless device to 'roaming mode' if you haven't already.

26) Set your Zonet card to manual configuration. Enter your router's SSID and choose "Automatic DHCP configuration" in the dropdown list.

27) Apply these and let it change the interface.

28) Start Firefox, and with any luck, you're connected now!

29) Enjoy!




Howto install Fedora Directory Server (DS) 1.04 on Ubuntu 8.04 (Hardy Heron)



A directory server provides a centralized directory service for your intranet, network, and extranet information. Directory Server integrates with existing systems and acts as a centralized repository for the consolidation of employee, customer, supplier, and partner information. You can extend Directory Server to manage user profiles and preferences, as well as extranet user authentication.



Preparing your system

cd /home/

mkdir fds

cd fds

sudo apt-get install ssh

Download Fedora Directory Server Pre-built rpm

wget -c http://directory.fedoraproject.org/download/fedora-ds-1.0.4-1.FC6.i386.opt.rpm

Installing Alien Package

sudo apt-get install alien

Convert .rpm Package to .deb Package

sudo alien --scripts fedora-ds-1.0.4-1.FC6.i386.opt.rpm

Install Dependencies

wget http://mirrors.kernel.org/debian/pool/main/t/termcap-compat/termcap-compat_1.2.3_i386.deb

wget http://mirrors.kernel.org/debian/pool/main/libc/libc/libc5_5.4.46-15_i386.deb

wget http://mirrors.kernel.org/debian/pool/main/l/ld.so/ldso_1.9.11-15_i386.deb

sudo dpkg --install ldso_1.9.11-15_i386.deb

sudo dpkg --install libc5_5.4.46-15_i386.deb

sudo dpkg --install termcap-compat_1.2.3_i386.deb

Installing Java Run Time Environment

sudo apt-get install sun-java6-bin

Installing Apache2-mpm-worker

sudo apt-get install apache2-mpm-worker

sudo ln -s /usr/sbin/apache2 /usr/sbin/httpd

Installing .deb package

sudo dpkg -i fedora-ds_1.0.4-2_i386.deb

Creating a user and group for the daemon

sudo groupadd fds

sudo useradd -s /bin/false -g fds fds

Running Fedora-ds Setup Program

sudo /opt/fedora-ds/setup/setup -k

Please select the install mode:
1 - Express - minimal questions
2 - Typical - some customization (default)
3 - Custom - lots of customization
Please select 1, 2, or 3 (default: 2) 1

Hostname to use (default: facility-srv1.it-mgt.com)
Server user ID to use (default: nobody) fds
Server group ID to use (default: nobody) fds

Fedora configuration directory server
administrator ID [admin]:
Directory Manager DN [cn=Directory Manager]:

sudo cp /opt/fedora-ds/setup/install.inf /opt

sudo chmod 640 /opt/install.inf

sudo pico /opt/install.inf

Add the directive for ApacheRoot at the end of the file
...
[admin]
SysUser= root
Port= 16000
ServerIpAddress=
ServerAdminID= admin
ServerAdminPwd= dsadmin
ApacheDir= /usr/sbin
ApacheRoot= /usr/lib/apache2

Rerun the setup script with the new ApacheRoot directive

sudo /opt/fedora-ds/setup/setup -s -f /opt/install.inf

You can now use the console. Here is the command to use to start the console:

cd /opt/fedora-ds

./startconsole -u admin -a http://facility-srv1.it-mgt.com:/

Adjusting the admin-server's httpd.conf file

sudo pico /opt/fedora-ds/admin-serv/config/httpd.conf

Comment out the following apache module

#LoadModule log_config_module /usr/lib/apache2/modules/mod_log_config.so

Starting the admin-server

sudo /opt/fedora-ds/start-admin

Persistent startup

sudo pico /etc/inti.d/local

#! /bin/sh
/opt/fedora-ds/slapd-fossedu/start-slapd
/opt/fedora-ds/start-admin

sudo chmod +x /etc/init.d/local

sudo update-rc.d local defaults 80




HowTo enable empty password login in Ubuntu



ou want to enable a password less account in Gnome for your family/friends who have access to your computer.

This is different than not typing a password (autologin)


How to - by example

Create a user (system/administration/user and groups)
You can put fancy characters in the real name but not in the username.
You are obliged to enter a password. We will get read of it afterwards.

example:
username: guest
real name: invité (or guest or whatever you want to display in the graphical greeter later on)
profile: desktop user (DO NOT use administrator)
password: password

click ok and close the users and groups tool.

Remove the password for the guest user
open a terminal

sudo passwd -d guest

Authorize login with no passwords in gdm

sudo sed -i 's/#PasswordRequired=false/PasswordRequired=false/' /etc/gdm/gdm.conf

Authorize login with no passwords in pam

sudo sed -i 's/nullok_secure/nullok/' /etc/pam.d/common-auth

You can now log in with your guest user with no password.

If you want a graphical greeter screen, select it in system/administration/login window [local tab] (example: human list)




Howto Backup all installed programs/packages in Ubuntu/Kubuntu



PROBLEM: Lets say you have set up your *buntu box. Now you want to backup all the installed deb files so that you can restore them quickly and efficiently.


These commands will do that for you.

Open a terminal and paste the following into it:

$ sudo apt-get install dpkg-repack fakeroot

$ mkdir ~/dpkg-repack; cd ~/dpkg-repack

$ fakeroot -u dpkg-repack `dpkg --get-selections | grep install | cut -f1`

(the last command will take some time)

Now if you scroll to your home folder, you should find a folder called "dpkg-repack" which should have all the deb files of all your installed packages.

Reinstall Packages

If you want to re-install the packages, navigate to the folder with the packages and input the following command in the terminal:

sudo dpkg -i *.deb






This is a very short and simple tutorial on how to remove the locked screen login prompt after resume from suspend or hibernation in Ubuntu 8.04 (Hardy).


All you have to do is comment out a single line in a specific configuration file.

First, lets bring up a terminal window. Applications -> Accessories -> Terminal

Now that we have a terminal up, let's enter the command

gksudo gedit /etc/default/acpi-support

This will grant authoritative access to the configuration file which handles suspend and hibernation operations and utility.

Once the file is open in gedit text editor, let's scroll down to the line

# Comment this out to disable screen locking on resume

LOCK_SCREEN=true

LOCK_SCREEN is a boolean variable that has a true and false value. Rather than change its value to false, let's simply comment it out by placing a # before LOCK_SCREEN so that the enter line becomes,

#LOCK_SCREEN=true

Let's now save and we're done. Reboot or Ctrl-Alt-BackSpace (to restart Ubuntu) for changes to take effect and you can now try to suspend or hibernate and your changes should be there.

To set LOCK_SCREEN again, repeat the process, but remove the # instead.




Howto Set Gnome Calendar First Day of Week in Ubuntu



This tutorial will explain how to change the gnome calendar first day of the week to Monday.

Check which locale you are using (mine is en_US, don't worry about the .UTF ending)

locale

Next, backup and edit the applicable locale file (use the result of the previous command if not en_US).

sudo cp /usr/share/i18n/locales/en_US /usr/share/i18n/locales/en_US.bak

gksudo gedit /usr/share/i18n/locales/en_US

Locate the following line and change the value. The value for Monday in en_US was 2. Select the appropriate number if you desire another day to be the start day.

first_weekday 2

Save the file and then

Update the locales

sudo locale-gen

Refresh the desktop

killall gnome-panel

The first day should now be Monday




HowTo setup Canon iRC 2880i printer in Ubuntu 8.04 (Hardy Heron)



If you want to setup Canon iRC 2880i printer in Hardy follow this procedure

1. Goto System->Administration->Printing

2. Create a new printer queue


3. Select the type of connection to the printer (mine is Windows Printer via SAMBA)

4. Input the printer settings eg: 10.0.0.1/NameOfPrinter and authentication if needed

5. For drivers use Generic->PCL 5c->Generic PCL 5c Printer Foomatic/hpijs

6. Give it a name and you're set to go

If you would also like to print in colour then this is where the fun begins.

You will need the UFR Printer Drivers from Canon .

If you're using the iRC 2880 then you can go straight here

Once you have the drivers and have extracted them then follow these steps.

Note: If you are using a version of Ubuntu that is older than Hardy you should just be able to run the deb file in the Debian folder and then you can skip to step 6

1. If you try and run the deb file in the Debian folder in Hardy it will give a dependency error regarding libcupsys2-gnutls10. So...

2. Run sudo apt-get install alien

3. Go to the extracted drivers RPM directory in a Terminal

4. Run sudo alien -c *.rpm (The -c will include any scripts in the package)

5. Run your newly created deb packages. First the cups common one then the driver one.

6. Follow the intructions above for the setting up of only black & white printing up to and including step 4

7. For drivers use Canon->iR C2880/C3380 UFR II->iR C2880/C3380 UFR II (or whatever model you are using)

8. Give it a name and you should now be printing in colour

In case you were wondering why you get the dependency error in step 1, the reason is that the Debian package was converted from a RPM one, using alien. Alien picked up the dependencies that where present on the system that the package was initially created.

Source from here




Howto Install Lightscribe in ubuntu



LaCie has released the first software that allows burning labels on LightScribe media using LightScribe drives under Linux.


This guide will help you install the base Lightscribe software and the 4L Disk Labeling software on a 32-bit or 64-bit Ubuntu install.

Open a terminal.

1. Create a temporary workspace in your home directory.

Note: You can delete this directory when you are finished installing the software.

mkdir workspace

cd workspace

2. Download the 32-bit .deb files and an icon for Lightscribe

wget http://download.lightscribe.com/ls/lightscribe-1.12.37.1-linux-2.6-intel.deb

wget http://uploads.mitechie.com/lightscribe/4l_1.0-r6_i386.deb

wget http://lawrencecomputing.dyn-o-saur.com/lightscribe/lightscribe.png

Install the .deb files in the console with the force-architecture flag

Important: Make sure to do these steps in this order (lightscribe then 4L)

For 32-bit

sudo dpkg -i lightscribe-1.12.37.1-linux-2.6-intel.deb

sudo dpkg -i 4l_1.0-r6_i386.deb

For 64-bit

sudo dpkg --force-architecture -i lightscribe-1.12.37.1-linux-2.6-intel.deb

sudo dpkg --force-architecture -i 4l_1.0-r6_i386.deb


4. Fix the missing liblightscribe.so.1 error

sudo ln -s /usr/lib/liblightscribe.so.1 /usr/lib32/

sudo ln -s /usr/lib/liblightscribe.so /usr/lib32/

sudo ldconfig

Note: The program should run now. You can test this by pressing Alt+F2 and running

sudo 4L-gui

5. Copy the icon file into Ubuntu's shared icon directory

sudo cp lightscribe.png /usr/share/pixmaps/4L-gui.png

6. Create a shortcut to launch the 4L Disk Labeler as root

a. Right Click on the Ubuntu Menu Bar and choose Edit Menus.

b. In the left pane labeled menus choose either "Sound & Video" or "System Tools".

c. Then, click new item.

Enter this information into the window:

Type: Application
Name: Lightscribe
Command: sudo 4L-gui
Comment: Label a disc with Lightscribe

Note: You can automatically generate an icon by leaving out the sudo from "sudo 4L-gui" in the command field. You must add sudo to the command or the program will not function. Ubuntu will search for an icon in /usr/shared/pixmaps with the same name as the command. Alternatively, you can click the spring icon and browse for the Lightscribe icon.

Note: You can burn a label twice if it is not dark enough. Don't worry about the orientation of the disc, the drive will align it for you.




Ubuntu Tip:How To Get Flash Working in Opera 9.27



The current version of Flash 9.0.115.0 does not work with the current version of Opera 9.27. but Opera9.27 does work with Flash 9.0.48.0. This is how to get that working without making trouble for firefox or later versions of Opera that are coming and will work with Flash 9.0.115.0


To get flash to work in Opera 9.27 which is the version available in the repository you must do the following:


First go here which is the adobe repository for older versions of flash and download flashplayer 9 to your desktop or wherever. Unpack it. The readme will direct you to the folder with the linux version which is 9r48. Unpack that.

You can use archive manager which is in Applications/ Accessories to do this part. If you can't see it there go to System/Preferences/Main Menu and check the box to make it visible.

This will then create a folder called install_flash_player_9_linux. Take the file in there called libflashplayer.so and move it to /usr/lib/opera/plugins.

Now just type sudo nautlius in a terminal and use two nautilus windows to go to the right locations and did a drag and drop.

Important Note:- Do not use nautlius like this unless you are absolutely sure about what you are doing and be sure to close it right away when you are finished. It is easily possible to put your system in an unrecoverable state by moving random files around as root.

Then navigate over to /usr/share/opera/ini and open the pluginpath.ini file. Scroll down to the section that says ; Flash and comment out the lines:

/usr/lib/flash-plugin=1
/usr/lib/flashplugin-nonfree=1

and add the line:

/usr/lib/opera/plugins=1

so it looks like this:

; Flash
#/usr/lib/flash-plugin=1
#/usr/lib/flashplugin-nonfree=1
/usr/lib/opera/plugins=1

Save it and get out of there.

Now flash should work in your opera and enjoy

When you get Opera 9.5 you can just remove the comment marks and the line you added in /usr/share/opera/ini/pluginpath.ini and just put the old flash in the trash.




How to Create Screenshots via CLI with scrot



scrot is a commandline screen capture util like "import", but using imlib2.

It has lots of options for autogenerating filenames, and can do fun stuff like taking screenshots of multiple displays and glueing them together.

Install Scrot in Ubuntu

sudo aptitude install scrot

This will complete the installation.

Using Scrot

Example scrot commands
1. Capture screen and save file to working directory:

scrot

2. Capture screen in 5 seconds time:

scrot -d 5

3. Capture screen in 5 seconds time, name file with time stamp and screen dimensions:

scrot -d 5 '%Y-%m-%d--%s_$wx$h_scrot.png'

4. As above, but move file into "images" directory and open the image with GIMP:

scrot -d 5 '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/images/ & gimp ~/images/$f'

scrot Options
See below for a full list of options:

Usage : scrot [OPTIONS]... [FILE]
Where FILE is the target file for the screenshot.
If FILE is not specified, a date-stamped file will be dropped in the
current directory.
See man scrot for more details
-h, --help display this help and exit
-v, --version output version information and exit
-b, --border When selecting a window, grab wm border too
-c, --count show a countdown before taking the shot
-d, --delay NUM wait NUM seconds before taking a shot
-e, --exec APP run APP on the resulting screenshot
-q, --quality NUM Image quality (1-100) high value means
high size, low compression. Default: 75.
For lossless compression formats, like png,
low quality means high compression.
-m, --multidisp For multiple heads, grab shot from each
and join them together.
-s, --select interactively choose a window or rectangle
with the mouse
-t, --thumb NUM generate thumbnail too. NUM is the percentage
of the original size for the thumbnail to be,
or the geometry in percent, e.g. 50x60 or 80x20.

SPECIAL STRINGS
Both the --exec and filename parameters can take format specifiers
that are expanded by scrot when encountered.
There are two types of format specifier. Characters preceded by a '%'
are interpreted by strftime(2). See man strftime for examples.
These options may be used to refer to the current date and time.
The second kind are internal to scrot and are prefixed by '$'
The following specifiers are recognised:
$f image path/filename (ignored when used in the filename)
$m thumbnail path/filename
$n image name (ignored when used in the filename)
$s image size (bytes) (ignored when used in the filename)
$p image pixel size
$w image width
$h image height
$t image format
$$ prints a literal '$'
n prints a newline (ignored when used in the filename)
Example:
scrot '%Y-%m-%d_$wx$h_scrot.png' -e 'mv $f ~/images/shots/'
Creates a file called something like 2000-10-30_2560x1024_scrot.png
and moves it to your images directory.

This program is free software see the file COPYING for licensing info.
Copyright Tom Gilbert 2000

Source from here




How to Create Passwordless SSH Private/Public Key Pair on Ubuntu



An SSH key pair is needed to connect to an SSH server. It is possible to create a passwordless key pair so as to bypass the password prompt when you connect to your SSH server. This is handy for when you need to automate some processes through scripting. Follow the instructions below to create a new passwordless key pair:


1. Install OpenSSH. On Ubuntu, you can install OpenSSH by opening your terminal and typing:

sudo apt-get install openssh-client

2. Once OpenSSH is installed, stay in the terminal and type:

ssh-keygen -t dsa -f ~/.ssh/id_dsa

3. When prompted for a password, leave blank and hit enter, then enter again to confirm. Your key pair will be created and stored in ~/.ssh/ as id_dsa.pub [public key] and id_dsa [private key]

Next, you will need to copy the contents of id_dsa.pub to a file named authorized_keys and transfer the file to the target system you wish to connect to. Follow the instructions below:

1. Create the new file with the following command:

touch ~/.ssh/authorized_keys

2. Apply the correct permissions:

chmod 600 ~/.ssh/authorized_keys

3. Copy the contents of id_dsa.pub to the new file:

cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys

Finish by transferring the new file to the target server. You should now be able to connect to your SSH server without having to enter a password.

Source from here




How to install RealPlayer on Ubuntu



The instructions below detail how to download and install RealPlayer on Ubuntu Linux. The instructions also enable the Mozilla/Firefox plugin and optionally remove Real's imposed audio icons:


1. Open a terminal and enter the following command to download RealPlayer:

wget http://www.real.com/realcom/R?href=http://forms.real.com/real/player/download.html?f=unix/RealPlayer11GOLD.bin

2. Make the file executable with the following command:

chmod a+x RealPlayer11GOLD.bin

3. Run the executable as root and enter your password when prompted:

sudo ./RealPlayer11GOLD.bin

4. If everything is working, you should see this message, hit enter:

Extracting files for Helix installation........................

Welcome to the RealPlayer (11.0.0.4028) Setup for UNIX
Setup will help you get RealPlayer running on your computer.
Press [Enter] to continue...

5. When prompted, install to /opt/real/RealPlayer, just hit enter:

Enter the complete path to the directory where you want
RealPlayer to be installed. You must specify the full
pathname of the directory and have write privileges to
the chosen directory.
Directory: [/opt/real/RealPlayer]

6. Enter "F" at the following screen to confirm:

You have selected the following RealPlayer configuration:

Destination: /opt/real/RealPlayer

Enter [F]inish to begin copying files, or [P]revious to go
back to the previous prompts: [F]:

7. If all goes well, RealPlayer should install and you will be dumped back to the prompt:

Copying RealPlayer files...Path setup done.
Succeeded.
installing application icons resource...
installing document icons resource...
....Succeeded.
Configuring Mozilla...
Installing .mo locale files...
Setting selinux context...
Succeeded.

RealPlayer installation is complete.
Cleaning up installation files...
Done.

8. Optional: delete the RealPlayer download with the following command:

rm RealPlayer11GOLD.bin

9. Copy the Mozilla/Firefox plugins to your plugins directory, enter the command:

cp /opt/real/RealPlayer/mozilla/nphelix.so ~/.mozilla/plugins/nphelix.so && cp /opt/real/RealPlayer/mozilla/nphelix.xpt ~/.mozilla/plugins/nphelix.xpt

10. Optional: remove RealPlayer audio icons from system:

sudo /opt/real/RealPlayer/postinst/install_icon_resource.sh uninstall

Source from here




How to install 150 Extra GIMP Brushes for Ubuntu



By default GIMP comes with a rather limited set of brushes. There's a package available from the Ubuntu repositories to install some extra brushes, however this is also a little limited.This package will allow you to install more packages for gimp brushes.


1. Open your apt sources.list file for editing with the following terminal command:

gksudo gedit /etc/apt/sources.list

2. Add the following two lines to the bottom of the file:

deb http://ppa.launchpad.net/corenominal/ubuntu gutsy main
deb-src http://ppa.launchpad.net/corenominal/ubuntu gutsy main

Save and exit the file

3.Update the source list using the following command

sudo apt-get update

4. Still in the terminal, enter the following command to install the package

sudo apt-get install gimp-brushes

5. Enjoy your new GIMP brushes!




Howto Increase video performance in Ubuntu



On some reasons by default these modules are not present in X11 config, but, to the measure for me these modules in 2 times accelerate the capacity of performance.



First you need to take the backup of your xorg.conf file using the following command

cp /etc/X11/xorg.conf /etc/X11/xorg.conf.back

Now you need to edit /etc/X11/xorg.conf file using the following command

sudo gedit /etc/X11/xorg.conf

Add the following lines

Section "Module"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx" # If you have VESA driver, comment this.
Load "int10"
Load "vbe"
EndSection

Save and exit the file.




Howto Setup Lexmark Z55 printer in Ubuntu Hardy Heron



This tutorial describes how to install a Lexmark Z55 printer on Hardy Heron.

By default the wrong driver is installed for the Z55 which causes the printer to squeal and fail to print. A driver is available from the Lexmark website for Linux rpm distributions.


1. Download

Download the file CJLZ55LE-CUPS-1.0-1.TAR.GZ from the Drivers and Downloads section of the Lexmark website. Select a Linux distribution such as Mandrake.

2. Uninstall the existing driver

System->Administration->Printing

Expand "Local Printers"

Click on "Lexmark_Z55" to select it

Press the "Delete" button and confirm with OK

3. Create directory

Create a directory to work in and move the downloaded file into this new directory.

mkdir lexmark

mv CJLZ55LE-CUPS-1.0-1.TAR.GZ lexmark

4. Extract rpm files from the download

tail -n +143 lexmarkz55-CUPS-1.0-1.gz.sh > install.tgz

tar -xvzf install.tgz

5. Convert rpm files into deb packages

First install the alien package if you have not already done so.

sudo apt-get install alien

Now convert the files ignoring any warnings.

sudo alien lexmarkz55-CUPS-1.0-1.i386.rpm

sudo alien z55llpddk-2.0-2.i386.rpm

Save the deb files in a safe place. For subsequent installations you can use these files.

6. Install the packages

The deb files can now be installed using any method you prefer. To install from the command line type:

sudo dpkg -i z55llpddk_2.0-3_i386.deb

sudo dpkg -i lexmarkz55-cups_1.0-2_i386.deb

7. Unzip ppd file


cd /usr/share/cups/model

sudo gunzip Lexmark-Z55-lxz55cj-cups.ppd.gz

8. Install the new driver

System->Administration->Printing

Press the "New Printer" button

Select "Lexmark Z55 USB #1"

Press "Forward"

Select "Provide PPD file"

Click on the file icon on the right hand side of the box below

Using the file picker select /usr/share/cups/model/Lexmark-Z55-lxz55cj-cups.ppd

Press "Forward"


Press "Apply"