User:Mistapotta: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
My name is Tony, and I bought an [http://wiki.laptop.org/go/XO:_The_Children%27s_Machine XO Laptop] for my son, Miguel. Although he's two, I'm hoping this will be a laptop he can grow older with.
My name is Tony, and I bought an [[XO:_The_Children%27s_Machine|XO Laptop]] for my son, Miguel. Although he's two, I'm hoping this will be a laptop he can grow older with.
<HR>
<HR>
21:55, 4 January 2008 (EST)
21:55, 4 January 2008 (EST)
I have a server at my house (currently a web/mail/file server for various websites I run) that I'm trying to add [http://wiki.laptop.org/go/School_server XS Server] capability on. I'm using [http://wiki.laptop.org/go/Ubuntu Ubuntu] though, and so I'm working to get the [http://wiki.laptop.org/go/XS_Server_Software XS Software] to work on it.
I have a server at my house (currently a web/mail/file server for various websites I run) that I'm trying to add [[School_server|XS Server]] capability on. I'm using [[Ubuntu]] though, and so I'm working to get the [[XS_Server_Software|XS Software]] to work on it.


The server's capabilities are: Intel Pentium D 930, 4 GB of memory, 500 GB of hd space (more will be added as needed should it be necessary.
The server's capabilities are: Intel Pentium D 930, 4 GB of memory, 500 GB of hd space (more will be added as needed should it be necessary.
Line 12: Line 12:
<HR>
<HR>
18:43, 5 January 2008 (EST)
18:43, 5 January 2008 (EST)
Had to use the [http://wiki.laptop.org/go/WPA_Manual_Setting WPA Fix] The final option, with the shell script, worked wonders for me (WPA2, 13 character passcode)
Had to use the [[WPA_Manual_Setting|WPA Fix]] The final option, with the shell script, worked wonders for me (WPA2, 13 character passcode)
<HR>
<HR>
01:19, 6 January 2008 (EST)
==Installing Hamachi==

Part of the reason I want to install [http://www.hamachi.cc Hamachi] is so my son will be able to view videos on our home server. I have DVD's ripped to the harddrive, and <code>[http://www.gnome.org/projects/totem/ totem]</code> is pre-installed on the OLPC. I've got Hamachi VPN on all the computers in the house, and would like to add it.

===Downloading Hamachi===

You need to get a copy of the code for Hamachi and put it in the <code>/usr/src</code> folder, We'll start by switching to the superuser, then getting the source code
<code><PRE>
su
wget http://files.hamachi.cc/linux/hamachi-0.9.9.9-20-lnx.tar.gz
tar -xvzf hamachi-0.9.9.9-20-lnx.tar.gz
</PRE></code>

This creates a folder <CODE>hamachi-0.9.9.9-20-lnx</CODE> which will hold the source code.

===Installing <code>make</code>===

To continue the install. you have to switch to the directory and type <code>make install</code>. <code>make</code> is not already installed on OLPC, so you need to install it by typing <code>yum install make</code>. It should install all the necessary parts to make.

===Installing the Hamachi program===

To install the hamachi executables (<code>hamachi</code>, <code>hamachi-init</code>, and <code>tuncfg</code>), you'll need to change to the directory and type <code>make install</code>. Then you need to type <code>tuncfg</code> to start the tunnel configuration (Hamachi uses ssh to tunnel to other members of the VPN.)

<code><PRE>
cd hamachi-0.9.9.9-20-lnx.tar.gz
make install
tuncfg
</PRE></CODE>

===Accessing the existing Hamachi VPN===

Set up a shell file (I called mine <code>hama.sh</code>) with the following lines of code:
<code><pre>
tuncfg
hamachi-init -c /etc/hamachi
hamachi -c /etc/hamachi start
hamachi -c /etc/hamachi set-nick olpc
hamachi -c /etc/hamachi login
hamachi -c /etc/hamachi join NETWORKNAME NETWORKPASSWORD
hamachi -c /etc/hamachi go-online NETWORKNAME
</pre></code>

In the code above, change olpc to whatever name you want, or leave it. Change <code>NETWORKNAME</code> and <code>NETWORKPASSWORD</code> to the VPM Network Name and Network Password.

Then type ./hama.sh to execute it. This will connect you to the network.

===At this point...===

If you type <code>ifconfig</code>, you should see something like this:

<code><pre>
bash-3.2# ifconfig
eth0 Link encap:Ethernet HWaddr 00:17:C4:0C:D8:DE
inet addr:192.168.1.28 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::217:c4ff:fe0c:d8de/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2884 errors:0 dropped:0 overruns:0 frame:0
TX packets:1942 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:613526 (599.1 KiB) TX bytes:234824 (229.3 KiB)

ham0 Link encap:Ethernet HWaddr 00:FF:95:1F:E7:34
inet addr:5.178.7.95 Bcast:5.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1200 Metric:1
RX packets:76 errors:0 dropped:0 overruns:0 frame:0
TX packets:76 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:12796 (12.4 KiB) TX bytes:17359 (16.9 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:37 errors:0 dropped:0 overruns:0 frame:0
TX packets:37 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1868 (1.8 KiB) TX bytes:1868 (1.8 KiB)

msh0 Link encap:Ethernet HWaddr 00:17:C4:0C:D8:DE
inet addr:169.254.9.122 Bcast:169.254.255.255 Mask:255.255.0.0
inet6 addr: fe80::217:c4ff:fe0c:d8de/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2887 errors:0 dropped:0 overruns:0 frame:0
TX packets:1951 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:613688 (599.3 KiB) TX bytes:237094 (231.5 KiB)
</PRE></CODE>

The important part is you now have <code>ham0</code> as a network adaptor.

===Mounting the directories===

Revision as of 06:19, 6 January 2008

My name is Tony, and I bought an XO Laptop for my son, Miguel. Although he's two, I'm hoping this will be a laptop he can grow older with.


21:55, 4 January 2008 (EST) I have a server at my house (currently a web/mail/file server for various websites I run) that I'm trying to add XS Server capability on. I'm using Ubuntu though, and so I'm working to get the XS Software to work on it.

The server's capabilities are: Intel Pentium D 930, 4 GB of memory, 500 GB of hd space (more will be added as needed should it be necessary.

I'm in the process of getting a WG111 USB Wireless Adaptor to serve as a School node. I'll post details of how it's going at some point.


02:51, 5 January 2008 (EST) Forum Postings from my part of the world. Huzzah!


18:43, 5 January 2008 (EST) Had to use the WPA Fix The final option, with the shell script, worked wonders for me (WPA2, 13 character passcode)


01:19, 6 January 2008 (EST)

Installing Hamachi

Part of the reason I want to install Hamachi is so my son will be able to view videos on our home server. I have DVD's ripped to the harddrive, and totem is pre-installed on the OLPC. I've got Hamachi VPN on all the computers in the house, and would like to add it.

Downloading Hamachi

You need to get a copy of the code for Hamachi and put it in the /usr/src folder, We'll start by switching to the superuser, then getting the source code

su
wget http://files.hamachi.cc/linux/hamachi-0.9.9.9-20-lnx.tar.gz
tar -xvzf hamachi-0.9.9.9-20-lnx.tar.gz

This creates a folder hamachi-0.9.9.9-20-lnx which will hold the source code.

Installing make

To continue the install. you have to switch to the directory and type make install. make is not already installed on OLPC, so you need to install it by typing yum install make. It should install all the necessary parts to make.

Installing the Hamachi program

To install the hamachi executables (hamachi, hamachi-init, and tuncfg), you'll need to change to the directory and type make install. Then you need to type tuncfg to start the tunnel configuration (Hamachi uses ssh to tunnel to other members of the VPN.)

cd hamachi-0.9.9.9-20-lnx.tar.gz
make install
tuncfg

Accessing the existing Hamachi VPN

Set up a shell file (I called mine hama.sh) with the following lines of code:

tuncfg
hamachi-init -c /etc/hamachi
hamachi -c /etc/hamachi start
hamachi -c /etc/hamachi set-nick olpc
hamachi -c /etc/hamachi login
hamachi -c /etc/hamachi join NETWORKNAME NETWORKPASSWORD
hamachi -c /etc/hamachi go-online NETWORKNAME

In the code above, change olpc to whatever name you want, or leave it. Change NETWORKNAME and NETWORKPASSWORD to the VPM Network Name and Network Password.

Then type ./hama.sh to execute it. This will connect you to the network.

At this point...

If you type ifconfig, you should see something like this:

bash-3.2# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:17:C4:0C:D8:DE
          inet addr:192.168.1.28  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::217:c4ff:fe0c:d8de/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2884 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1942 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:613526 (599.1 KiB)  TX bytes:234824 (229.3 KiB)

ham0      Link encap:Ethernet  HWaddr 00:FF:95:1F:E7:34
          inet addr:5.178.7.95  Bcast:5.255.255.255  Mask:255.0.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1200  Metric:1
          RX packets:76 errors:0 dropped:0 overruns:0 frame:0
          TX packets:76 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:12796 (12.4 KiB)  TX bytes:17359 (16.9 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:37 errors:0 dropped:0 overruns:0 frame:0
          TX packets:37 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1868 (1.8 KiB)  TX bytes:1868 (1.8 KiB)

msh0      Link encap:Ethernet  HWaddr 00:17:C4:0C:D8:DE
          inet addr:169.254.9.122  Bcast:169.254.255.255  Mask:255.255.0.0
          inet6 addr: fe80::217:c4ff:fe0c:d8de/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2887 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1951 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:613688 (599.3 KiB)  TX bytes:237094 (231.5 KiB)

The important part is you now have ham0 as a network adaptor.

Mounting the directories