Saturday, May 22, 2010

Creating a xorg.conf file in LXDE environment.

                   I came across this new distro today named as pepperminOS It's based on Ubuntu and it's main target is to create a light weight, high mobile and easy to use type OS ahh and to be lightning fast. And also it looks like they're trying to follow the foots of LinuxMint which is also Ubuntu based distribution but it has some of it's own technologies as well unlike Ubuntu which doesn't support propitiatory packages out of the box LinuxMint installs with all the needed stuff.

                   Coming back on to the topic after I installed peppermint I couldn't set the resolution I could use the provided tool but when I reboot every thing goes back to 800 x 600 with out giving me a clue why this is happening. So I decided to do the good old xorg.conf editing but the Ubuntu environment doesn't have a xorg.conf file I had to create one. Thats when I ran in to trouble being a Ubuntu user for a long time I've come accustomed to the GNOME commands so as usual I wanted to stop the X server but theres no gdm service running in peppermint. How the hell I'm going to find that service in a LXDE surrounding. I'd to do a lot of digging around to get to the rock solid bottom and I managed to find a way to create the xorg.conf file as the same way we do it in GNOME.

Here are the steps,
  • Pres CTRL + ALT + F1 to go to CLI.
  • Type "sudo service lxdm stop" to stop the x serve.
  • Now type "sudo Xorg -configure".
  • You'll get new xorg.conf file created in your home folder.
  • Let's move it to the X11 directory "sudo mv /home/user/xorg.conf.new /etc/X11/xorg.conf"
  • OK, start the GUI "sudo service lxdm start"
  • Now restart.
To see your new xorg.conf file type "cat /etc/X11/xorg.conf" in the terminal.

How to remove the Evolution notification icon from the Notification Area

                     When I installed Lucid Lynx for the first time I loved the new theme and glad that Ubuntu finally decided to brake out of there brown colored box. This looks and feels a little bit like the Mac OS and I don't know if Shuttle Worth is trying to mimic Mac but what ever I personally love the new change.

                     But this is not a review on new Ubuntu look or the functions that I leave for another day today it's about a notification icon that I hated from the bigging it's the evolutions email notification icon on the notification area I personally don't use evolution and I don't like the icon taking up space so I wanted to remove it but I was unable to find a way to do it.

                     So asked it in the forum and a grate guy by the name germanix came to my rescue and these are the steps he told me to do.

  • Open the terminal.
  • Type "sudo aptitude purge indicator-messages".
  • Press Enter.
  • When asked for the root password please type it in.
  • Then it'll ask to continue answer it as yes "Press letter Y".
  • Now reboot no more icon.
This worked for me and now my icons is gone.

Thank you germanix.

Monday, May 10, 2010

How to get the RTL8187B working in Ubuntu and LinuxMint

        In most distributions of Linux some problems with the hardware that comes in-built with laptops in most cases it was the wireless cards. I ran across smiler kind of a scenario when I got my PROLiNK Netbook which has a RTL8187B based wireless card. My problems started when I installed Ubuntu as my primary OS my wireless card ran in to lot of troubles the native driver that comes with the distribution doesn't work that efficiently. The Linux driver for Realtek 8187B is not exactly the driver that comes from relatek company it's a tweaked rtl8187 driver that tend to work with 8187B wireless cards. But the thing is it doesn't work properly the driver cant resolve IP's from the AP and cannot connect to the network if the receiver isn't right next to the signal transmitter.

       So I went searching through forums googled till it can't provide me with an answer any more. In forums no one was able to answer my problem there was no replies at least not even one. At that point I thought I need to find solution or a work around my self so I went on journey in search of a answer for this question. That was the time I came across "ndiswrapper" which is a wrapping program that let you use the windows XP driver in your Linux environment.

      I downloaded this and installed it also I followed the instruction to the tooth it started to work without any problems with the 9.04 and 9.10. Along came the change Lucid Lynx 10.04 LTS from canonical I did the usual just like I did in the earlier distributions I installed wrapper and give the drivers from realtek but alas nothing I got the same usual problem I was so cross with my self I could kick my netbook but I didn'r held my nerve and started to dig deeper in to the problem then I came across a bug report in Ubuntu official bug squad which said stated that we might have to black list rtl8187 driver as well so this is what I did to solve my problem.

Step 1. Installed ndiswrapper in to my system (Before you install ndiswrapper you need to enable the universe and multiverse repository)

Code:
sudo apt-get install ndisgtk


Step 2. Black listing the default driver.

Code:
echo -e "blacklist bcm43xx\nblacklist b43\nblacklist b43legacy\nblacklist rtl8187" | sudo tee -a /etc/modprobe.d/blacklist.conf


Strep 3. Download the WindowsXP driver from Realtek.

Code:
Click here to get the new driver



Step 3. Installed the driver using the ndsiwrapper.

Step 4. Now run this command to see if the driver is installed correctly.

Code:
ndiswrapper -l


This will list something like this,

Code:
{name of driver} : driver installed
       device ({Chipset ID}) present


Step 5. Restart.

Code:
sudo init 6


After the reboot you'll see all your wireless network connections and when you select one you'll get connected with out any problem.

If you're using some kind of security to secure your wireless signal you better install WICD which is little better when it comes to encrypted signals. You can install it from the Ubuntu repository.

Code:
sudo apt-get install wicd -y


after installing reboot the system to get the icon in the notification area.

This article has been written based on my experiences in hoping that this might help some in the future. I wish you guys good luck and please let me know if you find a better solution than this.