GearHack

: :

Add Comment | Related Links | TrackBack
Related Content

Configuring the OLPC XO Laptop for Home Wireless Network

Static IP Network

This section shows you how to get the OLPC XO onto a home wireless network where all of the wireless network clients uses static IP's. To get the OLPC XO onto such a network, the easiest method is to update the /etc/rc.local file with the correct configuration for your network. Place the following code into /etc/rc.local. Remember to replace each bracketed [] items with the correct network configuration information.

# home network

addNameServer ()
{
ip="$1"
file="/etc/resolv.conf"
result=`cat "${file}" | grep -c "${ip}"`

if [ ${result} -eq 0 ]
then
echo "nameserver ${ip}" >> "${file}"
fi
}

/etc/init.d/NetworkManager stop
/sbin/ifconfig eth0 [Static IP] up
/sbin/iwconfig eth0 mode managed
/sbin/iwconfig eth0 essid "[Wireless Network Name]"
/sbin/route add default gw [Gateway IP]
addNameServer "[DNS IP 1]"
addNameServer "[DNS IP 2]"

The /etc/rc.local file is executed every time you start up the OLPC XO. To return the XO to the original condition, just remove those lines. You can edit the /etc/rc.local file in the Terminal application, using this command (without double-quotes): "sudo nano /etc/rc.local"

Chieh Cheng
Wed, 31 Dec 2008 05:38:43 +0000

Add Comment | Related Links | TrackBack
Related Content

Did your message disappear? Read the Forums FAQ.

Add Comment

Spam Control | * indicates required field
Your Name: *
E-mail:
Remember Me!
Comment: *
File attachment is optional. Please do not attach a file to your submission unless it is relevent.
Attach File:
(20 MB Max)
Spam Protection: * Answer of 10 + 2?
Click button only once, please!

TrackBack

TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.

Send Ping | TrackBack URL | Spam Control

No TrackBacks yet. TrackBack can be used to link this thread to your weblog, or link your weblog to this thread. In addition, TrackBack can be used as a form of remote commenting. Rather than posting the comment directly on this thread, you can posts it on your own weblog. Then have your weblog sends a TrackBack ping to the TrackBack URL, so that your post would show up here.

Messages, files, and images copyright by respective owners.


Articles | Wiki
Forums | Latest | RSS
Library | Links | News
Search | Store | Help

138 Users Online

Hacking Digital Cameras
Fun for Photographers


Get Our

Memecoins!



Hacking Digital Cameras
Fun for Photographers

Amazon Associate

Copyright © 2004 - 2024. All Rights Reserved.