There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash driver drivers error ethernet excel freeze gaming google gpu graphics hard drive hardware hdmi internet laptop malware memory modem monitor motherboard network printer problem ram registry repair router security slow software sound trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Static IP and DHCP for linux

Reply  
Thread Tools
klam's Avatar
Senior Member with 181 posts.
 
Join Date: Apr 2006
Experience: Advanced
12-Jun-2006, 11:41 PM #1
Static IP and DHCP for linux
Hey there,

Cause the mbr of my computer went corrupt I used a knoppix live cd to get to my files and make the backup. The way I figured was the best to make the backup was to connect this computer to a mac that acted as a server. Aaaanywaayyss, I needed to set up this computer running knoppix on DHCP but not being a linux person myself I wasn't able to do it. I googled it but I couldn't find anything that worked out.

I'm just wondering how do I set up a computer for DHCP or static IP on a linux system? Please be gentle with the explaination.. I'm not a linux person.
__________________
"the only refuge from the damnation of the panta rei, and she guessed it was the Pendulum’s business, not hers"
CouchMaster's Avatar
Senior Member with 3,365 posts.
 
Join Date: May 2003
Location: West Texas
Experience: n00b
13-Jun-2006, 07:23 AM #2
lynch's Avatar
Senior Member with 1,962 posts.
 
Join Date: Aug 2002
Location: Back East,Way Back East
14-Jun-2006, 05:18 AM #3
With Knoppix, you should be able to use netcardconfig. Just type sudo netcardconfig from a command prompt.
Or...
Drill down through the Knoppix program menus; it should be under Network/ Internet> Network card configuration.
SweetLou's Avatar
Junior Member with 10 posts.
 
Join Date: Oct 2004
Experience: Intermediate
15-Jun-2006, 12:48 AM #4
Just wondering why you want to back up everything to restore your system? I mean, why not just use Knoppix to fix your MBR?
lynch's Avatar
Senior Member with 1,962 posts.
 
Join Date: Aug 2002
Location: Back East,Way Back East
15-Jun-2006, 05:22 AM #5
Quote:
Originally Posted by SweetLou
Just wondering why you want to back up everything to restore your system? I mean, why not just use Knoppix to fix your MBR?
sudo install-mbr /dev/hda
Change hda to appropriate drive.
klam's Avatar
Senior Member with 181 posts.
 
Join Date: Apr 2006
Experience: Advanced
16-Jun-2006, 08:45 PM #6
Quote:
Originally Posted by SweetLou
Just wondering why you want to back up everything to restore your system? I mean, why not just use Knoppix to fix your MBR?
what? well I didn't know it was possible from a knoppix live cd!

Quote:
sudo install-mbr /dev/hda
Change hda to appropriate drive.
Does it matter that the actual OS installed there is Windows and not Linux? working like this:

sudo install-mbr /dev/c


Also, lynch thanks a lot. I did see a lot of "sudo netcardconfig" but I wasn't able to use it well I admit my level in *nix systems are almost non-existent... say, if I have my computer on DHCP and I boot it from knoppix live cd, how would I change it for a static ip, say 190.23.65.34
__________________
"the only refuge from the damnation of the panta rei, and she guessed it was the Pendulum’s business, not hers"

Last edited by klam; 16-Jun-2006 at 08:54 PM..
lynch's Avatar
Senior Member with 1,962 posts.
 
Join Date: Aug 2002
Location: Back East,Way Back East
16-Jun-2006, 09:43 PM #7
You're using a Linux program so "/dev / c", a windows name, means nothing to it. If you have one hard drive on the primary master controller then it /dev/hda ; hence , sudo install-mbr /dev/hda.
You use netcardconfig to choose either static or dhcp. The command syntax to do it manually is ifconfig eth0 <ipaddress>.
For adding a default gateway, type route add default gw <ipaddress>
To add dns servers, edit the /etc/resolv.conf file as root:
Code:
nameserver <dns_server_address>
Like nameserver 65.76.89.123
__________________
seldom right,but never in doubt...
Here's a few links I find helpful:
Intro to Linux:A Hands-on Guide
USALUG
A little Linux help
OpenSUSE help+
Bash Commands
klam's Avatar
Senior Member with 181 posts.
 
Join Date: Apr 2006
Experience: Advanced
17-Jun-2006, 05:05 PM #8
Excellent, thanks a lot
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 05:01 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.