Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

Friday, February 3, 2012

A solution for any one having problems with the virtual box GPG box

I got a error while I was running the apt-get update command the error was "GPG error: http://download.virtualbox.org lucid Release: The following signatures were invalid: BADSIG 54422A4B98AB5139 Oracle Corporation (VirtualBox archive signing key) <info@virtualbox.org>". So I googled it and found the below steps which clears the error and it was little difficult to find so tought to blog it here.

 

  • $ cd /var/lib/apt/lists
  • $ sudo rm *virtualbox*
  • $ cd partial
  • $ sudo rm *
  • $ sudo apt-get update

After following these steps the problem was gone. Credit goes to a user by name Frank.

Tuesday, August 24, 2010

How to Install a New Hard Disk With an Anuto Mount Point

             Hi guys, The reason why I'm writing this post is to pit all the parts together in a one place so any one can find it and follow the steps with ease. Why thought to do this because I recently got a new 160GB Samsung Hard Disk which I installed in to my desktop which was running Ubuntu Lucid Lynx (10.04 LTS). As every one knows un-like windows which gives a disk management which will let any user to format and use the drive in two or three clicks where in Linux that part still have some caching up to do. So after installing I ran in to the problem where I wanted to format this and create a mount point which will mount it at the boot time automatically and also I didn't want to use the conventional /media folder to create a mount point I wanted it to act just like the partitions created at the system installation. From that thought my big adventure began to find a way to get this done with out using the /media folder. What happens when some one user the /media is the it acts like a external drive all the data the user transfer on to that particular partition get stored inside /media folders mount point and after word get transfered on to the corresponding drive thats why I didn't want to do that.

            To find an answer I turned my self to the best friend I now "GOOGLE" well all the answer turned out was the conventional ways to go through the /media folder now I was getting frustrated. At that point I decided to find a solution my self by using my knowledge which I've gained through out these years I started to experiment which eventually ended up in a success now I'm giving it to you step by step so you want face the same difficulty which I faced.

Step - 1

We need to install a disk management software which can be handled by any user my best choice is Gparted to install this open the terminal and type the below code.



Step - 2

After installing Gparted you need to create a partition and need to format it in a file system which the system supports.
  • Open Gparted follow this path System > Administration > Gparted
  • After that Select your drive which you want to partition as an Ex: sdb (This is SATA drive) hdb(This is IDE drive).
  • Right click on the empty space.
  • Click New
  • Give the amount of space you want to use and the file type as an Ex: ext4 also select the partition type is it primary partition or a extended.
  • Now click on the "Apply" button but this want apply the changes straight away if your absolutely sure about the partition click the green colored apply button to apply the changes permanently.
We have created a partition and also formated it let's move forward.

Note: Other wise you can use $ sudo fdisk -l to get you existing partition list.

Step - 3

Now we're ready to mount our new had drive let's proceed open the terminal and follow the below steps.
  • Create a mount point in /root.
             
  • Make a backup of /etc/fstab file.
             
  • Use sudo to edit the fstab file this will allow us to add new partition to the file
             
  • Now you need to get UUID of your new partition to do that use the command below. This command will list all your UUID's remember to get the one matters to the new partition.
             
  • Enter this line in to your fstab file.
             
  • Just in case you fail to get the UUID you can use format shown below as well.
             
  • Now save everything and close gedit. Pass the below command in the terminal to remount the drives.
             

Step - 4

Let assign proper user rights to the new drive so you can use it with out any trouble.

  •  Run the this to assign the owner and the user group. Ex. sudo chown -R test:test /test2
             
  • Also Run this as well.
             

Step - 5

Almost done now we need to create a symlink to the drive you just created.
  • Use this command to create your symlink in any destination you wan the link to be.
             
NOTE:You can't use hard links to do cross drive linking only symlinks work like that

Alright we're all done now you can use your drive just like you're using all your other partitions which was made during the installation.

Enjoy ;-)

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.

Tuesday, September 9, 2008

Frugal Paradus Mint

Three of the coolest distro's are out two of them are distribution releases and one of them is a development release. Frugalware has finally released there 0.9 version to the public as a stable version there are no major upgrades but there are so many minor fixers to the system from there 0.9 rc2.

Paradus has released there 2008.1 rc this being there final rc release before the 2008.1 stable distribution version and the people at paradus is releasing this version with two flavors one containing the installation and the other as a Live CD I don't get this why they are doing some thing like this any way it's there distribution.

Mint have released Xfce edition of mint to the community with more desktop enhancing features. They have improved the memory usage. Upstream improvements from Ubuntu and have ufw firewall with better printing capabilities.

If you wish to download one of these distributions use the links below.

To see the release notes.

Triple Booting your System with GRUB

Well as usual I was doing some things on my PC and got this sudden brain blast to install Ubuntu on my secondary 40Gb HDD. So I downloaded Ubuntu x86_64 using my all time favorite CentOS and burned a CD from the ISO image file using K3B. After that I just booted my computer using my new Ubuntu CD and installed a fresh coy on 40Gb HDD. As being a new comer my self to the world of Linux I found out that after installing the GRUB on to the MBR of my secondary 40Gb HDD I've to boot from that HDD to get the Ubuntu GRUB menu. It was OK, but there was major problem I couldn't find my CentOS distribution in the Ubuntu GRUB menu. Ubuntu installation system didn't have detected my other Linux distro so to boot in to that I've change my boot hard disk from my BIOS and as I know that's not a very good idea to change the BIOS very frequently.

So I've to find a solution pronto, I turned to my good friend in the internet Mr.Google I toled him what I want to find but he also didn't have a satisfying answer for me. Then I turned to my forum people they were very helpful and guided me through. And here is what I've cooked up.

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,6)
# kernel /vmlinuz-version ro root=/dev/VL1/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=10
splashimage=(hd0,6)/grub/splash.xpm.gz
# hiddenmenu
password --md5 dsadqe2121wsdsd2.
title CentOS (2.6.18-92.1.10.el5)
root (hd0,6)
kernel /vmlinuz-2.6.18-92.1.10.el5 ro root=/dev/VL1/LogVol00 rhgb quiet
initrd /initrd-2.6.18-92.1.10.el5.img
title CentOS (2.6.18-92.el5)
root (hd0,6)
kernel /vmlinuz-2.6.18-92.el5 ro root=/dev/VL1/LogVol00 rhgb quiet
initrd /initrd-2.6.18-92.el5.img
title Ubuntu
rootnoverify (hd1,0)
chainloader +1
title WindowsXP SP2
rootnoverify (hd0,0)
chainloader +1

But this to work you've install your secondary Linux distribution in to the exact partition you've listed here. And this will load the secondary GRUB on your HDD that belongs to the new installation. This worked for me 'cos there are very little reconfiguration or editing of the grub.conf or menu.lst.

How to enter this code in to your GRUB
Log in as root and open up a terminal. If you're a CentOS user type,

#nano /etc/grub.conf
or
#gedit /etc/grub.conf

if you're a Ubuntu user type like this,

~$ sudo gedit /etc/grub/menu.lst

and press enter.

Now you'll see a text file that looks just like the code that I've written here and scroll down to end of the file and type like this.

title Ubuntu
rootnoverify (hd1,0)
chainloader +1

hd1 means the HDD wich you've installed the Linux distro this could be 1, 2, 3 .... etc it depends on you and 0 is the partion where the GRUB have been installed this also could be 1, 2, 3 .... etc and remember in Linux partions and HDD number list starts from number"0"so befor you edit the boot loaders config file please verify wich number belong to wich partition or HDD.

OK, thats it try this and see wether this works and leave your comments.

Friday, August 15, 2008

OpenGEU New Beta is out

OpenGEU formerly known as Geubuntu has released there new beta version for testing. OpenGEU is based on the Ubuntu platform and used Enlightenment 0.17 to create a different desktop environment for the average user and it's very easy for person who is migrating from any other platform to this very easy. So take a peak at this new release.

Homepage : http://opengeu.intilinux.com/Home.html

Thursday, August 14, 2008

Ubuntu v8.10 Alpha 4

Well known Debian based desktop Linux environment Ubuntu has released there alpha 4 of there next version 8.10 code named as "Intrepid Ibex" for testing purpose. This is not suitable for day to day use yet. To find out more about the new release click here.