This article is dedicated to Back Track users who want to have an internet connection but don’t want to execute all commands each time rebooting linux system. You will not need to save LAN settings in Back Track. I will tell you what to do to get an internet connection configured in several seconds. I assume you have Back Track installed on you USB stick with persistent changes. Each time you reboot your system you need to execute the same commands like:
- change MAC address in linux
- turn your network card on
- set up network configuration (enter all IP, DNS addresses and so on.)
I have written all of them in the article about network configuration in linux. It takes time and it is a little bit annoying process. But this is the way you can configure your LAN to connect to internet. There are many ways to do that but I will show you one I use. This is very simple and no linux sills required. All you need to do to make a scrip for linux. Follow easy steps to make a Script below:
- Launch shell in Linux.
- Then type vi and press enter. I’m not going to explain how to use vi. This is not a subject I am writing about.
- Next you will need to write all your commands you want to execute. I will give you a simple example:
#!/bin/bash
clear
echo “My first script for Linux.”
echo “LAN configuration script for Linux”
Well, just save it with a name “example“. If you don’t know how to launch it there is a command:
./example
After executing it you will see that it does not work. You will get a message saying that permission denied. All you need to do is to chmod it. To chmod (give permissions) execute this command:
chmod 755 example
Now the script should be ready to run by typing:
./example
Remember that if you want to execute it a script file should be saved in a root folder. This is just an example so you will need to include necessary commands for network configuration.
Related posts:






