How To: Add the Computer, Trash, and Home icons to the Desktop

This how-to will explain exactly how to add these icons to your desktop, in a completely graphical way.

1. You're going to follow this path in the Ubuntu panel:
Applications --> System Tools --> Configuration Editor.

2. If the above path existed, skip this step.

Sometimes System Tools isn't in the menu by default. It's simple to change by simply hovering your mouse over the taskbar, and Right-click --> Edit Menus. However, it is much easier to press
ALT + F2, and in the dialog box, copy/pasting

gconf-editor

3. On the left side of the configuration editor, follow this path:
Apps --> Nautilus --> Desktop.

4. Now, on the right side, select the checkboxes for "computer_icon_visible", "home_icon_visible", "trash_icon_visible", and whatever else applies to your wants/needs.

How to Customize GDM2 in ubuntu 9.10 jaunty

This is new GDM2 configuration gui tools you can use this tool to change GDM images,icons, GTK theme,enable/disable login sound and hide users list from login screen.This tool is useful for ubuntu 9.10 users.

1.) Download the Code from here or from here

2.) Copy it into /home/

3.) Open a console and make the file executable:

chmod a+x gdm-setup.py

4.) Start Script with

gksu gdm-setup.py

Screenshot



How to Share Internet Connections in Ubuntu using bridge-utils

Network Bridge comes in handy. Its essentially the same as ICS, only more flexible, albeit less secure. You might want to have a firewall remain on your system with it.

Normally, using a series of commands will work when bridge-utils is installed, but they're only for the current session. We want to make it permanent.


Procedure to follow

1. Get bridge-utils through Synaptic. This is the software we'll use to create the Network Bridge.

sudo aptitude install bridge-utils

Now, keep in mind to either print this out or not exit your browser, because in this next step we'll stop the Networking Services to change them.

2. Open a terminal, and type

sudo /etc/init.d/networking stop

Keep the terminal open.

3. Now we're going to edit our interfaces file:

gksu gedit /etc/network/interfaces

Replace whatever is there with:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual

auto eth1
iface eth1 inet manual

auto br0
iface br0 inet dhcp
bridge_ports eth0 eth1

Save the changes.

4. Now we'll restart the Network Services

sudo /etc/init.d/networking start

And there we go. Your computer is now set up to automatically share its internet connection without dizzying settings for more advanced set-ups!

Have fun, and note longer boot-ups will occur due to creating the network upon boot.

[ How to fix ] Desktop Effects can't be enabled for intel integrated graphic in Jaunty

First, download Forlong's compiz-check

You can use this command to download it to your home directory:


wget http://blogage.de/files/9124/download -O compiz-check

Afterwards, you have to make it executable:

chmod +x compiz-check

And finally run it like this:

./compiz-check

If they output shows that Your intel graphic card is in the blacklist, this is the perfect solution for you.

Edit the compiz script file

sudo gedit /usr/bin/compiz

Then go down and look for blacklist, then add the # to take your intel graphic out of the blacklist.

Then the script should look like this

# blacklist based on the pci ids
# See http://wiki.compiz-fusion.org/Hardware/Blacklist for details
#T=" 1002:5954 1002:5854 1002:5955" # ati rs480
#T="$T 1002:4153" # ATI Rv350
#T="$T 8086:2982 8086:2992 8086:29a2 8086:2a02 8086:2a12" # intel 965
#T="$T 8086:2a02 " # Intel GM965
#T="$T 8086:3577 8086:2562 " # Intel 830MG, 845G (LP: #259385)
BLACKLIST_PCIIDS="$T"
unset T

Save, then restart

After reboot, go to System > Preferences > Appearance >Visual Effects
then tick on the middle or the last option.

Now your compiz should work back as normal.

How to recover from corrupt rpm database on RHEL/CentOS/Fedora

First and foremost thing take a backup of the existing rpm database( yes the corrupted one...you never know...).This is located in /var/lib/rpm ..depend on your distribution.

Now go to that dir(/var/lib) and take a backup of entire rpm dir ..like this:

tar -cvzf rpm-date.tar.gz rpm

And finally start rebuilding the rpm database like this:

cd /var/lib/rpm

rm -f __db* # delete it if present

rpm --rebuilddb -vv

Now once the above command finished work..other related thing should start working i.e

yum update

yum install anypackage

rpm -qi packagename


Don't forget to check the system log file in case it spitting put other msg.

Hope this will help.

[ How to ] disable the “Your battery may be old or broken” notification in Ubuntu 9.10

Open gconf-editor, and setting the key /apps/gnome-power-manager/notify/low_capacity to false.

How to : Reset MySQL root password

Step # 1: Stop MySQL
Type the following command to stop mysql server under RHEL / Fedora / CentOS Linux:
# /etc/init.d/mysqld stop

Use the following command if you are using FreeBSD:
# /usr/local/etc/rc.d/mysql-server stop

Use the following command if you are using Debian / Ubuntu Linux:
# /etc/init.d/mysql stop

Alternatively, you can stop the MySQL server by sending a kill to the mysqld process, using the path name of the .pid file in the following bash specific command:
# kill $(cat /var/run/mysqld/mysqld.pid)

OR
# pgrep -u mysql mysqld
# kill PID

Or, simply use killall command under Linux:
# killall mysql

Step # 2: Create new mysql password sql script
Create a sql file called /root/mysql.reset.sql as follows (replace YOUR-NEW-MYSQL-PASSWORD with actual new password you would like to use):
# vi /root/mysql.reset.sql

Append the following code:
UPDATE mysql.user SET Password=PASSWORD('YOUR-NEW-MYSQL-PASSWORD') WHERE User='root';
FLUSH PRIVILEGES;

Save and close the file.
Step # 3: Set new mysql root password
Type the following command:
# mysqld_safe --init-file=/root/mysql.reset.sql &

Sample output:
nohup: ignoring input and redirecting stderr to stdout
Starting mysqld daemon with databases from /var/lib/mysql
mysqld_safe[20970]: started
And you are done with resetting operation. Simply, stop server and start again:

# killall mysqld
# /etc/init.d/mysql start

Sync your iPhone Music Libary With Rhythmbox in Ubuntu



The following tutorial only works in Ubuntu Karmic (and other karmic-derivative distro) andiPhone firmware 3.0 and above.

Remove all iFuse related files

If you have previously installed ifuse in your system, you need to remove it and its related files. If you did not install ifuse before, you can ignore this part and skip to the next section.
sudo apt-get remove gvfs-backends ifuse limobiledevice-dev libplist0 libplist-dev libiphone0 libiphone0-dev limobiledevice0 libgpod4 libusbmux0 libusbmux-dev gtkpod gtkpod-common
You also need to remove the jonabeck repository from your apt list.
sudo gedit /etc/apt/sources.list
Delete the jonabeck PPA from the sources.list file. Save and close.
Refresh your system.
sudo apt-get update && sudo apt-get upgrade

Installing iFuse (for Ubuntu Karmic only)

Add the iFuse PPA to your repository:
sudo add-apt-repository ppa:pmcenery/ppa
Update your system
sudo apt-get update && sudo apt-get dist-upgrade
If there is a need, restart your computer.
Install the relevant packages
sudo apt-get install gvfs gvfs-backends gvfs-bin gvfs-fuse libgvfscommon0 ifuse libgpod-dev libgpod-common libimobiledevice-utils libimobiledevice0 libimobiledevice-dev libplist++1 libplist-utils python-plist libusb-1.0-0 libusb-1.0-0-dev libusbmuxd1 usbmuxd
Update: I have removed libiphone0 libiphone-dev from the above packages since they are not longer needed.
When the installation is done, go to System -> Users and Groups
Add you username to 'fuse' user group , then restart the system
You can now plug in your iPhone/iPod Touch and see it appears in your Rhythmbox and Nautilus.
That’s it. Let us know in the comments if this works for you.

How to upgrade Ubuntu 9.10 (Karmic) to Ubuntu 10.04 (Lucid Lynx)

Add the below line to Software Sources list

deb http://us.archive.ubuntu.com/ubuntu lucid multiverse

on terminal execute the below command

sudo apt-get install update-manager-core



sudo do-release-upgrade -d

Bluetooth 4.0 to reach devices in fourth quarter


The Bluetooth 4.0 wireless specification could start to appear in devices such as headsets, smartphones and PCs by the fourth quarter, the Bluetooth Special Interest Group said on Wednesday.
The new specification will be able to be used in lower-power devices than previous versions of the technology, including watches, pedometers, smart meters and other gadgets that run on coin-cell batteries, said Michael Foley, executive director of the Bluetooth SIG standards-setting organization. Previous versions of Bluetooth could only go into devices with triple-A or larger-capacity batteries.
Bluetooth 4.0 includes a low-energy specification for transmitting small bursts of data over short ranges, in addition to the high-speed data transfer capabilities introduced with Bluetooth 3.0 last April.
More wireless capabilities are being added to gadgets like cameras, portable game players and tablet PCs to help them communicate with other devices, said Charles Golvin, principal analyst at Forrester Research. Bluetooth 4.0 could be used to let those devices exchange low-level information without using much energy, he said.
"These protocols are designed to be very efficient because they are delivering small bits of data," Golvin said.
Despite the low-power option, users will notice only nominal battery-life improvements for long-range or continuous data communication, Foley said. Bluetooth 4.0 radios will consume roughly the same amount of power as Bluetooth 3.0 radios when used to sync smartphones with laptops or listen to music with wireless headphones, he said.
The new specification will carry the high-speed Wi-Fi feature introduced with Bluetooth 3.0. That allows devices to jump onto Wi-Fi 802.11 networks, where it can transfer data at up to 25Mbits per second.
Bluetooth competes with wireless technologies such as WiBro, UWB (Ultra Wideband) and Wi-Fi. But Bluetooth 4.0 is better-suited for short-range communications, as competing technologies expend a lot of energy to transmit data over similar distances. "They'd be like pulling out a cannon to kill a mouse," Golvin said.
The Zigbee wireless specification is another alternative to Bluetooth 4.0, but Bluetooth has the advantage of being widely deployed across devices, Golvin said. That gives it a head start over competing technologies.
Bluetooth is also an open standard, while most competing low-level technologies tend to be proprietary, Golvin said. For example, The Nike + iPod Sport Kit uses a proprietary technology to send exercise data from a shoe to an iPod or iPhone.

How to automatically open mailto (email) links in a gmail compose mail tab in Google Chrome

The following perl script will automatically open mailto (email) links in a gmail compose mail tab in Google Chrome on Ubuntu. You'll need to install perl in order for this to work, 'sudo apt-get install perl' in the terminal (Applications > Accessories > Terminal). You set the script up under System > Preferences > Preferred Applications > under Mail Reader choose Custom and enter this in the command field, then close:
 perl -MURI::Escape -e '$to = shift;$to =~ s/^mailto://i;exec("google-chrome","https://mail.google.com/mail?view=cm&fs=1&tf=1&cmid=22&to=".URI::Escape::uri_escape($to) );' '%s'