[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Problem switching to static IP address



I do not set DNS information as this does get assigned by my DHCP Server
but if you need a script to do it as well, you can add this after
getting the IP Information in the first script I sent:

# Place this after the reading of IP information
printf "What is the Primary DNS Server?   "
read DNS1
printf "What is the Secondary DNS Server?   "
read DNS2

rm -f /etc/resolv.conf

# Place this after 'cat << INTERFACES > /etc/network/interfaces'
cat <<RESOVLCONF > /etc/resolv.conf
nameserver $DNS1
nameserver $DNS2
RESOLVCONF

If you want to specify a DOMAIN you can copy one of the above PRINTF
statements and ask for DOMAIN NAME, add a section to the CAT statement:
domain $DOMAIN

If you want to specify a Domain Suffix you can copy one of the above
PRINTF statements and ask for SEARCH SUFFIX, add a section to the CAT
statement:  search $SUFFIX

-Stephen (AKA Screwba)

-----Original Message-----
From:
debian-live-devel-bounces+syorke=yorkes.net at lists.alioth.debian.org
[mailto:debian-live-devel-bounces+syorke=yorkes.net at lists.alioth.debian.
org] On Behalf Of Thomas H. George
Sent: Monday, June 16, 2008 5:09 PM
To: debian-user at lists.debian.org;
debian-live-devel at lists.alioth.debian.org
Subject: Problem switching to static IP address

I have built a very nice Debian Live CD but with two problems.

One, I can't switch to the static IP addressed used by my lan.  I 
included a copy of my interfaces file in chroot_local-includes.  When I 
boot from the CD I can substitute this file in /etc/network but I can't 
find a way to shutdown the network and restart it with the substituted 
file.  I must have failed to include some package as there is no network

entry in the Debian/Applications drop down list.

(Bringing along my special config files does work very nicely in other 
cases.  Specifically, I have an xorg.conf file which allows me to use a 
Wacom tablet.  After booting from the cd I substitute a copy of this 
file and restart gdm and the Wacom tablet works perfectly.)

My second problem must also be an omitted package as only root has a 
terminal window.

The CD is 575 MB.  I hope a couple small packages might correct these 
problems without taking more than the remaining space.

Tom


_______________________________________________
debian-live-devel mailing list
debian-live-devel at lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel



Reply to: