Tuesday, May 19, 2009

22) How to fix your internet connection in BioSLAX VMWare

This tutorial is for those who when after booting up their BioSLAX VMWare find that the internet is not working. For example, you ran Firefox and could not access any website, or ping any site through the Konsole, or could not get the "Wireless Assistant client" to assist you (it returned "No usable wireless device found, wireless, Wireless Assistant will quit now"). You can try the steps listed below to solve this problem:

1. Select the "Bridged" network adaptor (select from the Devices menu on top of the screen) if you are using wired internet. For wireless internet, use the "NAT" adaptor, which forces the virtual machine to talk to the network address card of the host machine, so that the host acts as a router.

2. Type the following in the Konsole to check if your dhcp client is up and running

ps -ef | grep dhcp


# This check the process (ps) number of the dhcp, and if it is running it will be shown as one of the processes. If you have two or more dhcp processes, choose the one corresponding to eth1 if wireless network is desired or eth2 for wired network.

3. If the dhcp is running, kill it to reset things. For example,

kill -9 4663


# Assuming 4663 is the process number of the eth1 dhcp that is to be terminated.

Note: You can kill dhcp and bring down the interface for various interfaces using "dhcpcd -k ", e.g.

dhcpcd -k eth1 or dhcpcd -k wlan0


There is no need to do ps -ef and killing of the process.

4. After killing the dhcp, you want to check whether the eth1 or 2 card is being recognized by BioSLAX. Type

ifconfig -a


# If the interface card (eth1 or 2) is listed, along with the loop back, this means that the eth1 (or 2) card is recognized by Bioslax. Now, to check whether the eth1 (or 2) card is up and running, type

ifconfig


# If you only see loop back, then it means that your eth1 (or 2) card is not running. You need to start the eth1 (or 2) by typing

ifconfig eth1 up


# Change eth1 to 2 if you want to up eth2
# If desired, you can bring eth down in the same manner

5. Once the eth1 (or 2) is up and running. You need to start the dhcp. Type

dhcpcd -nd eth1


# This will do dhcp call and look for packet advertising the network server from the host, and if found, it will assign an IP address to eth1. When successful, the connection established will pop up, courtesy of the BioSLAX GUI.
# For eth2, change eth1 to 2

You are done!

Summary code

1. dhcpcd -k eth1
2. ifconfig eth1 up; dhcpcd -nd eth1


Note
If you are not running bioslax with persistence change saving mode, you will need to redo this step every time you reboot BioSLAX.

No comments:

Post a Comment