Howto Set Up Conky On Ubuntu Jaunty

Let's add the repository first :

For Ubuntu Jaunty :

$sudo wget -q http://www.kaivalagi.com/ubuntu/ppa/m-buck-conky-jaunty.list -O /etc/apt/sources.list.d/m-buck-conky-jaunty.list

For Ubuntu Intrepid :

$sudo wget -q http://www.kaivalagi.com/ubuntu/ppa/m-buck-conky-intrepid.list -O /etc/apt/sources.list.d/m-buck-conky-intrepid.list

For Ubuntu Hardy :

$sudo wget -q http://www.kaivalagi.com/ubuntu/ppa/m-buck-conky-hardy.list -O /etc/apt/sources.list.d/m-buck-conky-hardy.list

Add the repository public key :

$wget -q http://www.kaivalagi.com/ubuntu/ppa/m-buck-conky-key.gpg -O- | sudo apt-key add -

Now update your repository list and install packages we need :

$sudo apt-get update && sudo apt-get install conky

Download this config file to your home directory :

$cd && wget -c http://dl.getdropbox.com/u/83257/.conkyrc

Create "scripts" directory under your home directory and download the scripts (extract, copy there) under scripts directory :

PS : Before entering that damn long commands,you should know that i did not zip those files, sorry for the long commands : ) I am just configuring/installing it same time i am blogging :)

$cd && mkdir scripts && cd scripts && wget -c http://dl.getdropbox.com/u/83257/conkyscripts.zip && unzip conkyscripts.zip && rm conkyscripts.zip && mv conkyscripts/*.* ~/scripts/ && rm -rf conkyscripts

Now download the fonts and move them to ~/.fonts directory :

$cd && wget -c http://dl.getdropbox.com/u/83257/conkyfonts.zip && unzip conkyfonts.zip && cp ~/conkyfonts/*.* ~/.fonts/ && rm -rf ~/conkyfonts && rm conkyfonts.zip

Now open your .conkyrc file (you will re-open it a lot :) ) :

$gedit ~/.conkyrc

And look for this line :

${execpi 300 python ~/scripts/gmail_parser.py yourgmailusername yourgmailpassword 3}

Change yourgmailusername and yourgmailpassword with your Gmail username and password.(be sure nobody is using your computer with your username because the password and the username is not encrypted as you can see!Be warned, it is not secure to write your username and password to a plain file.However you can remove that line, so you can disable the gmail feature at the config.)

If you want to use the Gmail feature, you also need to install this package :

$sudo apt-get install python-feedparser

Let's continue...If you want to use HDD temperature and Cpu temperature feature, you also are going to install hddtemp and lm-sensors packages :

$sudo apt-get install hddtemp lm-sensors

When installing hddtemp, a couple of questions will be asked.Start the daemon at boot, and hit enter when it asks for IP and Port.Also configure your lm-sensors with $sudo sensors-detect command.(If you do not understand anything at configuration screen, just enter YES to everything.)

Now for weather part, you have to follow this link and enter your zip code OR your city.You will be forwarded to an URL like (This is for Ankara, Turkey and i am not living there.I just entered a random city from Turkey :) )

http://weather.yahoo.com/forecast/TUXX0003.html

Copy the location ID (in this example : TUXX0003 ) end edit pogodynka.sh :

gedit ~/scripts/pogodynka.sh

Search for kod=USID0025 at that file and replace the ID with yours.(I do not know who wrote this script either it's language.Do not blame me, at screenshot it looks simple and cool :) )

Before saving the file.If you want to use Celsius instead of Farenheit :

Find this line :

w3m -dump http://weather.yahoo.com/forecast/"$kod".html | grep -A21 "Current" | sed 's/DEG/°/g' > $plik

And replace it with :

w3m -dump http://weather.yahoo.com/forecast/"$kod"_c.html | grep -A21 “Current” | sed ’s/DEG/°/g’ > $plik

Save it.Now create an empty file at your home directory called weather :

$cd && touch weather

PS : I also gave chmod 777 to weather file, since i did not see any images near weather.

Now, you can customize your .conkyrc file for your needs.Default conkyrc file monitors eth1 as network.I changed it to eth0.You can also make another line for wlan0 or so
${font PizzaDude Bullets:size=16}v${font} Up: ${upspeed eth0} Kb/s
${font PizzaDude Bullets:size=16}r${font} Down: ${downspeed eth0} Kb/s

${font PizzaDude Bullets:size=16}M${font} Upload: ${totalup eth0}
${font PizzaDude Bullets:size=16}S${font} Download: ${totaldown eth0}


We need to add conky to start up now.Instead of just adding conky command to your start up, i advise you to make a script with sleep (look below) since i had problems with compiz at Ubuntu Intrepid :

I am creating a conky_start.sh file under home directory and add it to start up

$cd && touch conky_start.sh && chmod +x conky_start.sh && gedit conky_start.sh

And add these lines to that file and save it :

#!/bin/bash
sleep 30 &&
exec conky -d -c ~/.conkyrc &
exit


Now go to System > Preferences > Start Up Applications (Start Up Applications is renamed at Ubuntu Jaunty, older Ubuntu versions like Intrepid uses different name, if i remember correctly, it is sessions.)

Click Add.Name it Conky Start Up or what ever you want.For command browse the conky_start_sh.

Reboot your box and have fun!

You can always visit this thread to get some help, new configs etc.

Fix Some Ubuntu Jaunty Annoyances

On this blog I always try to give a better Ubuntu experience or give some choices to people unlike Microsoft Windows.This time we will fix a couple of Ubuntu Jaunty annoyances.

1- Renable CTRL+Alt+Backspace Shortcut

I wrote a blog post about this a couple of days ago.You can find the blog post here.

2- Low Sound Volume

I found that Ubuntu Jaunty's default sound is not maxed out.To fix it give this command and open alsamixer (you can find the screenshot below):

$alsamixer

Max out Master channel with the arrow keys, esc to exit.



Save your setting with this command :

$sudo alsactl store

3- Restore Normal Update Manager Behaviour

With Ubuntu Jaunty, the update manager's behaviour is changed.Now you will be informed once a week for available updates.You can change it to old behaviour or the time limit.

Open Gconf-editor with :

$gconf-editor

command and navigate to apps > update-notifier.Tick auto_launch and you can set a regular_auto_launch_interval (0 = launch as soon as updates become available)

4 - The Tool Tip Annoyance

When you are using the Workspace Switcher applet, tool tips might stay up until you press them.To fix it, open Gconf-editor via :

$gconf-editor

command and navigate to apps > panel > global.Untick tooltips_enabled.

How to Clean your Orphan Packages with Deborphan

If you are running out of the space at your ubuntu, you may want to uninstall some un-needed packages, but sometimes orphan libraries/packages remain on the system.Deborphan comes handy at these kind of situations.

First let's install deborphan and see the orphan packages :

$sudo apt-get install deborphan
$sudo deborphan

You will see orphan package list , like :

libspeexdsp1
libmono-addins0.2-cil
libgdata1.2-1
libpisock9
libebackend1.2-0
libgtkhtml3.14-19
libpt-1.10.10
libglitz1


Now let's clean them :

$sudo deborphan | xargs sudo apt-get purge -y

PS : you may want to use remove instead of purge if you want config files remain on your box.

Jdownloader, Ultimate Free/Premium Downloader from File Hosts

Before starting, be sure you have installed Sun's java.You can install it via :

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

You can change your default java via :

$sudo update-java-alternatives -s java-6-sun

Ok, now let's download Jdownloader, download it via :

$wget -c http://212.117.163.148/jd.sh

After download let's make it executable and run it :

$chmod +x jd.sh
$./jd.sh

Now do not close any windows and let the jdownloader download required files.Jdownloader will restart itself after it is done and you will see Language and Download directory options.Select which you prefer and it will search and download for updates if any.Now we will tweak Jdownloader a little :

Now go to Extras > Configuration (or hit F11) and select Advanced Configuration.

At Main Tab : Select Logging Level OFF , Untick Open Changelog after update
At Download & Network Tab : Tick Create sub-folder including package name if you want jdownloader to create directory with package name under Download directory (i suggest doing this), Under Download Control tab, increase max simultaneous downloads to anything you want (i am using 20) and increase max retries to 20 or 99.Increase maximum chunks per download to 10 (10 jobs/connections per download).
At Interface Tab : You can select a theme (you have to download theme addon first under Addon Manager), enable/disable sounds, change style or enable/disable speedmeter graph , disable/enable splash screen, browser settings etc.
At Addon Manager Tab : You can enable/disable addons.I do not suggest installing tray icon addons which are buggy a little.Be sure JD-HJmerge and JD-Unrar enabled.

Now close Settings window and go to Addons > JD-Unrar > Settings

Tick overwrite exisiting file, delete archives after successful extraction, delete info file after extraction

Close it and we are ready to go.

If you close Jdownloader, you can run it via ./jd.sh (be sure you are in the directory which contains jd.sh, or you can add a shortcut to run jd.sh to your Desktop)

How to Run Android Applications on Ubuntu


When Google announced and released Android, back in October 2008, everyone knew that it would become the best operating system for mobile devices. Not only is Android open source, but it also comes with a Software Development Kit, which offers the necessary APIs and utilities for developers to easily build powerful applications for Android-powered mobile devices. The following tutorial was created especially for those of you who want to test the Android platform and install various applications, on the popular Ubuntu operating system

Grab the Android SDK 1.5 from here and save the file on your home folder. It has around 160 MB, so it will take a while if you have a slow network connection.


Step 1 - Install the requirements

1) openjdk-6-jre

2) ia32-libs (ONLY if you are on a x86_64 machine)

Step 2 - Android Setup

1) Extract the file to your 'Home' folder
2) on terminal cd ~/android-sdk-linux_x86-1.5_r2/tools
3)
...let's create a 2GB SD Card (I think 2GB is more than enough, but if you need more just change the size)... ./mksdcard 2048M SDCard1 ...wait a couple of minutes for the card-creation process to finish.

4) And now, let's create the Android Virtual Device...


./android create avd -n icewalker -t 2

Hit Enter when asked if you wish to create a custom hardware profile, and you'll be immediately notified that the virtual device was created, for Android 1.5.

Note: You can replace "icewalker" in the above command with whatever name you want to give to your Android device. If you want a virtual device for the Android 1.1 platform, replace 2 with 1, in the above command.

5)
The final step is to create a desktop shortcut, so you won't have to open the terminal every time and type some command, in order to start the Android emulator. Therefore, right-click on your desktop and choose the "Create Launcher..." option...

In the Create Launcher window, type "Android Emulator" (without quotes) in the Name field, and paste the following line in the Command field. Optionally, you can also put a nice icon if you click the button on the left...

/home/YOURUSERNAME/android-sdk-linux_x86-1.5_r2/tools/emulator @icewalker -sdcard /home/YOURUSERNAME/android-sdk-linux_x86-1.5_r2/tools/SDCard1










Install Themes and Emerald in Ubuntu

You see cool themes on almost all screenshot of Ubuntu all over the internet but don't know how to do it. No worries, it can be done in no time.

First, if you use Gnome, go to Gnome Look and download from GTK 2.x the themes you want. If you use KDE (Kubuntu), go to KDE Look instead and under Themes / Styles, download the themes you would like to use.

To install them, simply go to your Ubuntu Panel > System > Preferences > Appearance and either drag a theme using drag-and-drop intro the dialog box or click "Install" and select the themes packages you downloaded. You can still customize the aspect of the new theme by clicking "Customize". You can change the way controls, colors, window borders icons and pointer look like. Please note that if you use Compiz, you need to go to System > Preferences > CompizConfig Settings Manager and under "General Options", on the "General" tab there is a field called "Cursor Theme" where you have to enter the name of the cursor theme (exactly as it is called when going to System > Preferences > Appearance), otherwise it will revert to it's initial status after system restart.

You can of course use the above websites to download some different icons or pointers too.

But for the windows layouts, there's a much cooler way to handle this: using Emerald. Emerald needs Compiz to run and you can control the window borders, look and feel. You can set effects to your window like glass, glow, fade, choose active buttons, their position on the window (like close, minimize, maximize, shade) etc.

How to install Emerald on Ubuntu

To install them, go to: System > Preferences > Emerald Theme Manager and click the "Import" button and select the themes you want. To make your windows use Emerald, go to System > Preferences > CompizConfig Settings Manager and enable "Window Decoration", then click it and under "Command", enter:
Open a terminal and type:
sudo apt-get install emerald libemeraldengine0

Now download some themes for Emerald. You can get some from here, here and the above mentioned websites.

Here are some exemples of Emerald Themes:


emerald themes
emerald blue theme

photobucket

emerald theme big


To install them, go to: System > Preferences > Emerald Theme Manager and click the "Import" button and select the themes you want. To make your windows use Emerald, go to System > Preferences > CompizConfig Settings Manager and enable "Window Decoration", then click it and under "Command", enter:

emerald --replace
Then to run it for the first time, press Alt + F2 and type:
emerald --replace

emerald theme manager

Change the themes in Emerald Theme Manager and watch them changing on your applications windows.
But we're not over, now we need to make Emerald start once you boot into Ubuntu. To do so, go to System > Preferences > CompizConfig Settings Manager (you must have this installed if you read part 4 of Ubuntu Tutorial Guide), on Effects, check "Window Decoration" and click it, then in the "Command" field enter this:
emerald --replace

Click Back and you are done. Happy theming ;)

If you want to disable Emerald, press Alt + F2 and type:
compiz --replace

How to Install empathy on Ubuntu

Empathy is a new instant messaging client in Gnome 2.24 which aim to replace pidgin and Ekiga. It provide voice and video chat services besides the usual text chatting service.

To Install Empathy you first have to add the hardy repository:

sudo bash -c 'echo deb http://ppa.launchpad.net/telepathy/ubuntu hardy main >> /etc/apt/sources.list'


For Interpid Ibex:


sudo bash -c 'echo deb http://ppa.launchpad.net/telepathy/ubuntu intrepid main >> /etc/apt/sources.list'


For Gutsy Gibbon:


sudo bash -c 'echo deb http://ppa.launchpad.net/telepathy/ubuntu gutsy main >> /etc/apt/sources.list'

Then you have to update your packages lists, so execute:


sudo apt-get update

Now you are ready to install Empathy:


sudo apt-get install empathy telepathy-mission-control telepathy-stream-engine

Enjoy calling !!

To install google talk support: sudo apt-get install telepathy-gabble
To install MSN support: sudo apt-get install telepathy-butterfly
To install Pidgin support, this will allow you to use all the protocols supported by libpurble [pidgin backend]. This will help you to add Yahoo ;) :


sudo apt-get install telepathy-haze


To Install IRC support: sudo apt-get install telepathy-idle


To Install all supported protocols in one shot, you can install :


sudo apt-get install telepathy-core

How to: Fix Yahoo Problem in Pidgin

Two days ago, Yahoo! Inc. did something to its messenger servers, something that practically blocked all the Linux IM clients, such as Pidgin, Kopete, Empathy or Gyachi. While many of us thought it might be an ISP issue, some very smart people found out the truth: Yahoo! changed the login method! However, at this moment (June 21, 2009), none of the aforementioned Instant Messenger clients for Linux can connect with the Yahoo protocol. This is, of course, not the first time when it happens, and Linux users are treated like outsiders. But, let's not start again with the endless question “Why Yahoo! doesn't update the Linux client?” and let's fix the problem (like we always do).

Below is a step-by-step tutorial for all Ubuntu users that want to connect with their friends via the Yahoo protocol, using the Pidgin Instant Messenger. Why Ubuntu? Because it appears that it is the most popular Linux operating system these days and because there are already packages available for it. Other Linux users can grab the Pidgin 2.5.7 sources right now from Softpedia.

For Ubuntu x86 users:

Grab the following packages from HERE (click on each one and download it on your desktop):

Ubuntu DEB i386 (Pidgin 2.5.7)
Ubuntu DEB i386 (libpurple0 2.5.7) Required
Ubuntu DEB ALL (libpurple0-bin 2.5.7) Required
Ubuntu DEB ALL (Pidgin 2.5.7 Data) Required

For Ubuntu x86_64 users:

Grab the following packages from HERE (click on each one and download it on your desktop):

Ubuntu DEB amd64 (Pidgin 2.5.7)
Ubuntu DEB amd64 (libpurple0 2.5.7) Required
Ubuntu DEB ALL (libpurple0-bin 2.5.7) Required
Ubuntu DEB ALL (Pidgin 2.5.7 Data) Required

Once you have the four packages on your desktop, open a terminal (Applications -> Accesories -> Terminal) and type the following commands, one by one (hit Enter after each one):

cd ~/Desktop
sudo dpkg -i *.deb

When the update is over, you should see something like this...

Review image


For Ubuntu 9.10 (Karmic Koala) x86/x86_64 users:

· Right click HERE and choose the "Save Link As..." option. Save the key file on your desktop.

· Go to System -> Administration -> Software Sources...

Review image


Enter your password if asked. Go to the second tab, "Third-Party Software," click on the "Add" button, and paste the following line in the "APT line" field...

deb http://ppa.launchpad.net/pidgin-developers/ppa/ubuntu karmic main

Review image


· Now go to the fourth tab, "Authentication," click the "Import Key File" button, navigate to the location where you've just saved the key file (usually, it is File System/home/YOURUSERNAME/Desktop) and double click it. You will immediately see a new entry called "A1F196A8 2009-01-20 Launchpad PPA for Pidgin Developers".

Review image


· Click the “Close” button, then the “Reload” one and wait for the application to close!

· Go to System -> Administration -> Update Manager...

Review image


...and update Pidgin to the new version!

Close Pidgin if it was running during the update process and open it again. Yahoo should connect immediately now...

Review image
Pidgin 2.5.7 on Ubuntu 9.10 Alpha


Alternative Method:

This is for those that can not upgrade to Pidgin 2.5.7 or don't want to.

· Open Pidgin and go to Accounts -> Manage Accounts...

Review image


· Click on the Yahoo account and then on the "Modify" button...

Review image


· Click on the "Advanced" tab and paste the following line in the "Pager server" field...

cn.scs.msg.yahoo.com

Review image


Click the "Save" button, then click the check box in front of the Yahoo account to connect.

Credits: Special thanks to the Pidgin developers and to those who created the Ubuntu packages in such a short time!

Create your own Usplash theme for Ubuntu

1. Download file throbber and usplash theme. then extract it.
Download startup-manager, It is application that make easy to change usplash. Install starupmanager to your PC.

2. Make usplash.png, you can use your picture collection and save it use name usplash.png

change your picture to mode index used gimp

My suggestion : picture resolution is 640 x 480 pixel

Open gimp -|- mode -|- indexed -|- maximum number of colors 256 -|- convert

3. copy usplash.png to folder usplash


4. Generate files to .c

cd usplash/
pngtousplash usplash.png > usplash.c
pngtousplash throbber_back.png > throbber_back.c
pngtousplash throbber_fore.png > throbber_fore.c

5. Compile .c file object .o

gcc -g -Wall -fPIC -o usplash.o -c usplash.c
gcc -g -Wall -fPIC -o throbber_back.o -c throbber_back.c
gcc -g -Wall -fPIC -o throbber_fore.o -c throbber_fore.c
gcc -g -Wall -fPIC -o usplash-theme.o -c usplash-theme.c

6. Compile all file object to shared library

gcc -g -Wall -fPIC -shared -o usplash.so *.o


7. open startupmanager -|- appearance -|- manage usplash theme -|- add "choose your file usplash.so" -|- open

Ubuntu Code names

* 9.04: April 2009 (Jaunty Jackalope)
* 8.10: October 2008 (Intrepid Ibex)
* 8.04 LTS: April 2008 (Hardy Heron) Long-Term Support
* 7.10: October 2007 (Gutsy Gibbon) [No longer supported]
* 7.04: April 2007 (Feisty Fawn) [No longer supported]
* 6.10: October 2006 (Edgy Eft) [No longer supported]
* 6.06 LTS: June 2006 (Dapper Drake) Long-Term Support
* 5.10: October 2005 (Breezy Badger) [No longer supported]
* 5.04: April 2005 (Hoary Hedgehog) [No longer supported]
* 4.10: October 2004 (Warty Warthog) [No longer supported]

Can't delete some files from trash ??

Open terminal from any account

Type cd ~/.local/share/Trash

Press Enter

sudo rm -rf *



info :~/.local/share/Trash is the location of Trash

How to remove ATi Driver in Linux

cd /usr/share/ati

sudo ./fglrx-uninstall.sh

If you installed by building packages, you'll have to remove those packages.

Enable tapping the touchpad in Fedora 11

http://tinyurl.com/nupven

WICD on Fedora

Pre-requisite: you need python and python-dev packages installed. Python is probably already installed however python-dev may not be. Also, we are going to need wget, which if you installed from a Live CD may not be installed. So, from a command line as root or by using your sudo powers issue the following:

yum -y install python python-devel wget

Now we need to download wicd, unpack it, configure it and install it (again as root or with sudo power):

cd /usr/local/src

wget http://downloads.sourceforge.net/wicd/wicd-1.5.4.tar.gz

tar -xf wicd-1.5.4.tar.gz

cd wicd-1.5.4

python setup.py configure

python setup.py install

Shutdown NetworkManager and make sure it does not restart at boot time

service NetworkManager stop

chkconfig NetworkManager off

Startup scripts appear tto be installed correctly and there is an entry in the Gnome menu's under Applications->Internet as well as in the autostart section

All that remains is to make sure that wicd starts correctly

chkconfig wicd on

service wicd start

Home Eyecandy Themes for Ubuntu - Download via Launchpad PPA Repo

Eventhough there is a number of good quality themes available for Ubuntu through various sites like gnome-look or deviantart, it is still a difficult job to find full set themes which include gdm themes(login window theme), wallapaper, metacity themes, icon set etc. But there is an option to download it from PPA launchpad repo itself, which is always the safer bet. Special thanks to the Zgegblog guys for contributing these out of the world themes for Ubuntu users.

  • Take a look at the previews of some of the themes they have made.

These are previews of some of the themes i liked. There are tens of other themes as well. Choose the one that meets your taste.

Adding Third Party Repo and Authentication

  • You will have to add third party PPA launchpad repo to your synaptic package manager to download these themes.
  • To Add the PPA launchpad repo, Goto System->Administration->Software Sources, goto the Third- Party Software tab and Click on ADD.
  • Copy and paste the new PPA Launchpad repo address, corresponding to the version of Ubuntu you are using. Given below are the PPA for Ubuntu jaunty, Intrepid and Hardy respectively.

For Ubuntu 9.04 Jaunty

deb http://ppa.launchpad.net/bisigi/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/bisigi/ppa/ubuntu jaunty main

  • Authenticating newly added repo. Simply copy paste the following in Terminal.

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0x1781bd45c4c3275a34bb6aec6e871c4a881574de

For Ubuntu 8.10 Intrepid

deb http://ppa.launchpad.net/bisigi/ppa/ubuntu intrepid main
deb-src http://ppa.launchpad.net/bisigi/ppa/ubuntu intrepid main

  • Authenticating newly added repo. Simply copy paste the following in Terminal.

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0x1781bd45c4c3275a34bb6aec6e871c4a881574de

For Ubuntu 8.04 Hardy

deb http://ppa.launchpad.net/bisigi/ppa/ubuntu hardy main
deb-src http://ppa.launchpad.net/bisigi/ppa/ubuntu hardy main

  • Authenticating newly added repo. Simply copy paste the following in Terminal.

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0x1781bd45c4c3275a34bb6aec6e871c4a881574de

Installation

  • After adding new repo and authenticating steps, Reload the Synaptic Package Manager.
  • To download and install all the themes available, simply mark and install the package zgegblog-themes. All theme packages will be installed by then.

OR simply type the following in terminal.

sudo apt-get install zgegbolg-themes

  • But if you have bandwidth limitations and dont want to install all the themes, there is a small workaround. This is not probably the ideal thing to do. But it definitely works ;-).
  • Goto Synaptic Package Manager and right click on zgegblog-themes and select the properties option.

  • In the Dependencies tab, you will have the list of individual themes(packages) available for download. For example, search for infinity-theme in Synaptic. If you know a better way to do this, please share :-)
  • Almost all themes are exceptionally good, while wild-shine-theme, balanzan theme and bamboo-zen-theme are definitely the best. It is worth a look. Give it a try.

Using Movies in Impress on Linux Without Java

  • Insert > Picture > From File
  • Right click on the inserted graphic
  • Select Interaction
  • Select Run macro as Action at mouse click
  • By writing a simple macro running our shell script, which in turn starts our movie player, we hook our movie player in.
Figure 1: The concept
Figure 1: The concept

Writing the external shell script

#!/bin/sh
#file:///home/me/tmp/ooo-movie-hook/m1.sh
xine --no-splash --geometry 400x400+420+420 \ /home/me/moviedb/my_movie01.mpg

Creating the OpenOffice.org Macro

Sub Main
Shell("/home/me/tmp/ooo-movie-hook/m1.sh",2)
End Sub

Linking the Macro to the graphic

  1. Insert your personal ~"start-movie-button-graphic" via Insert > Image
  2. Right-Click on the image
  3. Select Run macro as Action at mouse click
  4. Assign the macro


KDE specific: Removing borders of movie player window

  1. Open the KDE Control Center
  2. Select setup
  3. For all window-instances, which are created by program $your_favourite_movie player do not display window borders.

You have nice integration of the external movie player with your OpenOffice.org presentation.


Linux for Kids

LinuxKidX was, until recently, a Brazilian-only Linux distribution, but, as of March 20th 2009, it is also available in English, so a lot more children have access to it. You will probably be surprised, but this particular distribution is based on Slackware and comes in the form of a 525MB Live CD. The desktop environment used is KDE 3.5, but this won't matter to children, as they will absolutely love the interface. A huge taskbar, giant cartoonish icons on the desktop and a funny wallpaper are sure to attract some attention. What's harder though is maintaining the kids' interest in the operating system. Fortunately, LinuxKidX comes with loads of interesting and fun applications that will entertain any child for a long time.

One of the software suites that come in almost all kid-oriented Linux distributions is GCompris, a collection of activities that will not only ensure hours of fun but will also provide a high educational value. The activities range from learning to use the mouse and keyboard, to Reading and Math practice, or even a basic introduction to the laws of physics. Moreover, children will be able to draw, create animations, use a simple word processor and chat with friends from inside the local network. This can be successfully used not only at home, but also in kindergartens.

The other suites available in LinuxKidX are KDE-Edu, which comes with a bunch of edutainment utilities: KStars, a great virtual Planetarium, Kalzium Periodic Table of Elements, the KTouch typing tutor, KGeography, KWordQuiz etc., and ChildsPlay, a collection of small, cute games. Even parents will be able to efficiently use this distribution, as the regular desktop applications are also available: OpenOffice.org, Firefox, GIMP, aMSN and more.

Review image
LinuxKidX

Next on the list is Qimo, one of the better-known distributions for children. Its whole user interface was designed around a snowy, winter theme with a cartoon kid Eskimo as the mascot (hence the name). Qimo is based on Xubuntu, so it benefits from its ease of use and the lightweight Xfce desktop environment. Apart from the customized artwork and a large bottom panel, there's not much difference between Qimo and Xubuntu in terms of appearance. On the "edu" software side, Qimo comes with GCompris, ChildsPlay, EToys, TuxMath, TuxPaint and TuxType. The EToys project was created for the OLPC program and provides a fun, easy way for children to learn basic programming by creating various projects, on top of a powerful framework, complete with Internet desktop sharing capabilities.

If Maximium resolution can't be set on ubuntu

For those who own Intel graphical chipset it might happen that the maximum resolution can’t be set. Why this problem still isn’t solved I don’t know. It might have something to do with Ubuntu Linux or Intel drivers.Earlier in my blog I wrote how to install drivers for a Intel Graphical card. I took my own graphical card as an example. You can read the guide here.But even I have to apply an application to patch or set the resolution to the maximum. In my case that is 1400 x 1050. The application to achieve that is called 915resolution. So let’s get started then.

  • Know your max. resolution

This is really important. In case 915resolution displays resolutions your monitor / LCD can’t bear. Otherwise you will risk xserver-xorg failures and in the worst case damage your monitor / LCD. In my case the max. resolution is 1400 x 1050.

  • Download and install 915resolution

This is also very simple to do. 915resolution is an application which is located in your package manager. But first you must add the ‘universe’ and ‘multiverse’ repositories since it’s located there.System -> Administration -> Synaptic Package Manager -> Settings -> Repositories.After you have added them you’ll be asked to reload your Package Manager information. If not, click the reload button on the left. After that’s done it’s just selecting 915resolution and hitting the apply button which will install the application on your hard drive.

  • Setting up 915resolution

The application is a CLI (Command Line Interface) one. But don’t worry it’s really easy to use. Let’s discuss how 915resolution works.915resolution has the ability to recognize Intel Graphical Chips and determine their max. resolutions and bit depth. But except recognizing 915resolution is able to patch the system so that the real maximum resolution can be used. The user has to run the application with a parameter. Then when choosing a mode from the output, the user has to edit a config file. This file will be addressed to every time the user logs in. After editing the file 915resolution has to be used one more time to set / activate the mode. So it’s quite simple.

  • Determine the Intel graphical chipset

In order to apply the correct resolution and bit depth 915resolution first has to know with what kind of Intel Chipset it has to deal. Perform the following terminal work to find out:

$sudo 915resolution -l

The output displays mode for you to choose from. I will stick to my own chipset in order to make the example as easy as possible.

Intel 800/900 Series VBIOS Hack : version 0.5.2Chipset: 855GMBIOS: TYPE 2Mode Table Offset: $C0000 + $36fMode Table Entries: 21Mode 30 : 640×480, 8 bits/pixelMode 32 : 800×600, 8 bits/pixelMode 34 : 1024×768, 8 bits/pixelMode 38 : 1280×1024, 8 bits/pixelMode 3a : 1600×1200, 8 bits/pixelMode 3c : 1400×1050, 8 bits/pixelMode 41 : 640×480, 16 bits/pixelMode 43 : 800×600, 16 bits/pixelMode 45 : 1024×768, 16 bits/pixelMode 49 : 1280×1024, 16 bits/pixelMode 4b : 1600×1200, 16 bits/pixelMode 4d : 1400×1050, 16 bits/pixelMode 50 : 640×480, 32 bits/pixelMode 52 : 800×600, 32 bits/pixelMode 54 : 1024×768, 32 bits/pixelMode 58 : 1280×1024, 32 bits/pixelMode 5a : 1600×1200, 32 bits/pixelMode 5c : 1400×1050, 32 bits/pixelMode 7c : 1024×600, 8 bits/pixelMode 7d : 1024×600, 16 bits/pixelMode 7e : 1024×600, 32 bits/pixeldjons@tosh-empire:~$

Note that I have found my max. resolution and bit depth (Mode 5c). Also note that my output has another max. resolution of 1600 x 1200 (Mode 4b and Mode 5a). I know for sure my LCD does not support that. Remember not to choose resolutions which are higher than your max. since it can or will damage your xserver-xorg or monitor / LCD.

  • Editing the 915resolution file

The configuration file of 915resolution makes sure your setup won’t be lost the next time you reboot the system. Editing the configuration file is also a breeze. It asks you to specify the Mode, bit depth and max. resolution. That’s it!Do the following terminal work to open the 915resolution for editing:

$sudo gedit /etc/default/915resolution

Below here I’ve copy / pasted the content of the file with the options I had to write down for my Intel Graphical Card and type of LCD.

## 915resolution default## find free modes by /usr/sbin/915resolution -l# and set it to MODE or set to ‘MODE=auto’## With ‘auto’ detection, the panel-size will be fetched from the VBE# BIOS if possible and the highest-numbered mode in each bit-depth# will be overwritten with the detected panel-size.MODE=5c## and set resolutions for the mode.#XRESO=1400YRESO=1050## We can also set the pixel mode.# Please note that this is optional,# you can also leave this value blank.BIT=32

It is possible to let the 915resolution file alone keeping it on auto. But in my case every time I rebooted the system it switched back to 1280 x 1024. Also this way you ensure 915resolution by accident or whatever does not select a resolution which will wreck.

  • Applying / Patching / Setting the Mode

After you have saved the configuration file and closed it there is one last thing we have to do with the terminal. We have sought for modes, we have specified one and now we have to let 915resolution know what our choice will be. Do the following terminal work to apply the Mode.

$sudo 915resolution 5c 1400 1050

Note that the mode 5c and the resolution 1400 x 1050 are part of my own Intel Graphical Chipset in combination with my own type of LCD Panel. If everything goes well you should receive a message which looks like this:

Intel 800/900 Series VBIOS Hack : version 0.5.2Chipset: 855GMBIOS: TYPE 2Mode Table Offset: $C0000 + $36fMode Table Entries: 21Patch mode 5c to resolution 1400×1050 complete

You are done! The only thing rest to do is restart the xserver (ctrl + alt + backspace) or restart the system. When you login it should be the maximum resolution. You can always open:System -> Preferences -> Screen ResolutionIn order to check if the application works.

Install linux from image on hard disk

there are many ways to do so
you can install Linux by
1) booting from the network
2) Having a ISO image on your hard disk
3)Boot from USB
4) Installing a linux system from scratch by building your own


I am assuming that Linux is not installed on your system and neither grub or lilo is there
This method is taking Open Suse 10.2 Image but is same for Fedora or Debian or any other distro .
There is one check point in case you used Nero to copy CD or DVD image then it might have been possible that you copied the image and it is file with dot nrg extension in that case you need to get the ISO from NRG

I have installed by all the above methods but I am describing here the simplest one since there are many new comers who would not be able to understand other methods .Before doing all this make sure
1)that you have enabled the option of viewing file extensions in View Options of folder view.
2) If you use Fedora or any other distributions do not use the NTFS partition to store the
image although Open Suse 10.2 can work from NTFS partition I have done it using NTFS
partition only but will not suggest you to do same
3) Most important do not install linux on same partition on which you have the ISO from which you are installing everything since it will format that hard disk that holds the image you are using
there is an image named openSUSE-10.2-GM-DVD-i386.iso which you would have downloaded rename it to suse.iso (not necessary to do so but will make your life simple )

Similarly for any other linux distro you might have image of fedora or debian etc rename them to some simple filename.
the image is 3.6 GB then download the grub for dos from
http://sourceforge.net/projects/grub4dos
extract the downloaded grub4dos using winzip or winrar ,you will get a folder name grub copy it to C drive
then create a folder name boot in C drive of your windows partition (C drive is not necessary but makes life simple ) .
Now copy grldr from grub to C:

add a line C:\grldr="Start Linux" to
your boot.ini (even if I have mentioned the README there says it all)

Now different distributions of Linux have different kernel names like
Fedora: vmlinuz and initrd.img
Suse: linux and initrd
Mandriva: vmlinuz and all.rdz
Ubuntu: vmlinuz and initrd.gz
Gentoo: gentoo and gentoo.igz
Knoppix: vmlinuz and initrd.img
Slackware: bzImage and initrd.img
Debian: vmlinuz and initrd.gz

use winrar to navigate the ISO image you will go inside folder name boot or where ever the kernel are in your CD or DVD ISO

NOTE ( I took Open Suse 10.2 inside the installation media there was a boot folder inside it was a loader path is openSUSE-10.2-GM-DVD-i386.iso\boot\i386\
loader
that had kernel image named linux and the initrd name initrd both are needed)

copy the kernel images vmlinuz and initrd.gz which you see by winrar in ISO archieve from your ISO to folder boot in C drive
both files vmlinuz and initrd are required for any linux system to boot


you can use winrar to view files and extract only two files rather than extracting whole ISO

then you don't need to do any thing just restart the computer and you will get a screen that says
Microsoft Windows XP
Start Linux


choose the option start linux
then go to grub you will find an entry that says command prompt
use command prompt since even after making changes as said in README some times it did not worked
press enter to select the command prompt option
you will get a grub shell showing some thing like this
grub >

now type on grub prompt (grub> ) Note u do not need to type grub > it is already there on your screen if not you did some mistake




In my case it was suse so
grub >kernel (hd0,0)/boot/linux
grub >initrd (hd0,0)/boot/initrd
grub >boot

If you are using some other distribution then above commands will change like this
grub >kernel (hd0,0)/boot/vmlinuz (depending upon your kernel name)
grub >initrd (hd0,0)/boot/initrd.gz (depending upon your initrd name)
grub >boot

press enter then
now kernel will load and will ask you to choose the medium to boot from choose the medium hard disk it might give some error that insert CD just ignore it if it asks to hit back button then it that then choose the medium etc and then choose the hard disk partition to boot from then it will ask for the file name enter suse.iso in the partition where you have it then press enter if you did every thing right installation will start if you messed up then probably you might get an error like boot.catalog not found or some other error like this only
installation starts it might display some error messages just ignore them and press enter
or hit Back button then choose language keyboard installation then choose installation medium
it gives 3 options
CD
Network
Hard disk
choose the hard disk and then from the hard disk choose the correct partition where you copied the 3.6 GB suse.iso
not do not format the same partition on which image is there

Solution : Hibernate stopped working. Usplash would show the animated splash screen for a few seconds on boot

After upgrading to Hardy, hibernate stopped working. Usplash would show the animated splash screen for a few seconds on boot, then it would go away an I would see a text boot screen starting with the “Reading files needed to boot” text. The system would go into hibernate normally, but would never boot back to where I was, it was like I’d never hibernated. After a bit of digging, I found the problem. The UUID for my swap file system was not the same as the value entered for the resume file system in initramfs. Here is the steps required to fix this problem:

1. Make sure you have the initramfs-tools update

sudo apt-get install initramfs-tools

2. Run the blkid util to show what your existing UUIDs are.

root@hardy-desktop:~# sudo blkid
/dev/sda1: UUID="a76fe101-7951-4a65-af1e-50b2902c5b35" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda5: TYPE="swap" UUID="8dd072f1-25b3-4a7f-888f-2314697d60b9"

3. Verify that the UUID listed for the swap partition in the previous step matches what is listed in /etc/fstab

root@grigsby-desktop:~# cat /etc/fstab
proc /proc proc defaults 0 0
# /dev/sda1
UUID=a76fe101-7951-4a65-af1e-50b2902c5b35 / ext3 relatime,errors=remount-ro 0 1
# /dev/sda5
UUID=8dd072f1-25b3-4a7f-888f-2314697d60b9 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0

4. Modify the UUID in /etc/initramfs-tools/conf.d/resume file to match the UUID listed for the swap partition from blkid.

root@hardy-desktop:~# cat /etc/initramfs-tools/conf.d/resume
RESUME=UUID=617b4b90-112e-497a-bc6b-dda2a3e7565e
root@hardy-desktop:~# sudo vi /etc/initramfs-tools/conf.d/resume

5. Update the initramfs.

sudo update-initramfs -u

6. Restart the system.