Archive for the 'backtrack' Category


getting backtrack to work with ics

As far as I know, Backtrack4 pre-final is not one of the distributions that can autoconfigure the Internet access, if you’re connecting through a Windows’s station Internet Connection Sharing. That’s why, a while ago I wrote some scripts to setup that for me. I’m gonna post them here, so that I can have access to them in an easy way, and so that other people could benefit from them. Maybe they’ll help you configure your distro to work with ICS:

Script 1:

import os

target_file = "/etc/network/interfacesx"
fh = open(target_file,"w")

interface_string = """
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static

and script 2:

resolve_path = "/etc/resolv.conf"
fh = open(resolve_path)
lines = fh.readlines()
fh = open(resolve_path,"w")
for line in lines:
	fh.write("#%s" % line)

Run them in any order you please. However, to get the connection to work, you have to also run this:

/etc/init.d/networking restart


some tips on getting an internet connection in backtrack linux

If you have a wired internet connection, and want to USE it, here’s what you can do :

  • for pppoe, run pppoeconf as root, and make the necessary settings ( basically, you just need to fill in your username & password, and go with the default for the rest of the settings ). Choose to start the connection then. For some reason, I have to configure it every time the distro starts. Can’t imagine why.
  • for regular cable connection, enable the network interface ( in my case it was eth0 ), by typing the following command:
    ifconfig eth0 up

    and then do:

    dhclient eth0

    This should do the trick ( I tested both these on my computer, and they worked ). For static ip address, you can do this:

    ifconfig eth0

    and replace the X’s with the actual address. You may need to configure the routes also. See the route command for that.


how i fixed the sound on backtrack 4

I wanted to try backtrack 4 for a long time. Tonight I finally did. I’m running a Lenovo laptop, with a Intel soundcard.
When logged on as a regular user I noticed I didn’t have sound. Being an avid music fan, this was unacceptable so I started to look for a solution. After googling for a while, and trying all sort of things, I finally found what worked for me: adding the user to the audio group.
To do this, open the /etc/group and look for the audio line. On my system, this was like this :


To add your user to the group, simply change the line to this:


where user is the name of the user you’re logged in with. Reboot, and you’re done!

Enjoy the sound!

Blog Stats

  • 215,219 hits