RE: Problem switching to static IP address
Thomas,
I use a VERY basic script to set a static IP address on my
LiveCD's...here is the script I use:
************************************************************************
#!/bin/sh
# Get Static IP Information
printf "What IP Address do you want to assign to this computer? "
read IPADDR
printf "What Subnetmask do you want to assign to this computer? "
read SUBNET
printf "What Gateway do you want to assign to this computer? "
read GATEWAY
# Shutdown networking and create a new INTERFACES file
ifdown eth0
/etc/init.d/networking stop
rm -f /etc/network/interfaces
cat <<INTERFACES > /etc/network/interfaces
auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet static
address $IPADDR
netmask $SUBNET
gateway $GATEWAY
INTERFACES
# Bring networking back online
/etc/init.d/networking start
ifup eth0
# End IP Configuration
************************************************************************
-Stephen (AKA Screwba)
-----Original Message-----
From:
debian-live-devel-bounces+syorke=yorkes.net@lists.alioth.debian.org
[mailto:debian-live-devel-bounces+syorke=yorkes.net@lists.alioth.debian.
org] On Behalf Of Thomas H. George
Sent: Monday, June 16, 2008 5:09 PM
To: debian-user@lists.debian.org;
debian-live-devel@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@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel
Reply to: