个人工具

“UbuntuHelp:UbuntuLTSP/LTSPCrossArchSetup”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第2行: 第2行:
 
{{Languages|UbuntuHelp:UbuntuLTSP/LTSPCrossArchSetup}}
 
{{Languages|UbuntuHelp:UbuntuLTSP/LTSPCrossArchSetup}}
 
This page describes how to set up an ubuntu LTSP server with Thin Clients that use a different CPU architecture (for example iMacs as thin clients on an i386 server)
 
This page describes how to set up an ubuntu LTSP server with Thin Clients that use a different CPU architecture (for example iMacs as thin clients on an i386 server)
 
 
=== Preparing the Server ===
 
=== Preparing the Server ===
 
 
First you need to install the essential LTSP services on the server:
 
First you need to install the essential LTSP services on the server:
 
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get install ltsp-server-standalone openssh-server
 
sudo apt-get install ltsp-server-standalone openssh-server
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Now you need to temporary enable read/write access the the LTSP root to set up the Thin Client environment over the network.
 
Now you need to temporary enable read/write access the the LTSP root to set up the Thin Client environment over the network.
 
 
<pre><nowiki>
 
<pre><nowiki>
 
gksudo gedit /etc/exports
 
gksudo gedit /etc/exports
 
</nowiki></pre>
 
</nowiki></pre>
 
 
edit:
 
edit:
 
<pre><nowiki>
 
<pre><nowiki>
第25行: 第19行:
 
/opt/ltsp      *(rw,no_root_squash,async)
 
/opt/ltsp      *(rw,no_root_squash,async)
 
</nowiki></pre>
 
</nowiki></pre>
 
 
save the file and run:
 
save the file and run:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo /etc/init.d/nfs-kernel-server restart
 
sudo /etc/init.d/nfs-kernel-server restart
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Follow the instructions on [http://wiki.edubuntu.org/LTSPServerSetup LTSPServerSetup] and start the dhcp server.
 
Follow the instructions on [http://wiki.edubuntu.org/LTSPServerSetup LTSPServerSetup] and start the dhcp server.
 
 
Your server is now prepared for the installation of the Thin Client environment. Attach one of the clients to the network and boot it from an ubuntu live CD.  
 
Your server is now prepared for the installation of the Thin Client environment. Attach one of the clients to the network and boot it from an ubuntu live CD.  
 
 
=== Installing the Client Environment ===
 
=== Installing the Client Environment ===
 
 
Install the ltsp-server package on the liveCD to get the necessary tools you need.  
 
Install the ltsp-server package on the liveCD to get the necessary tools you need.  
 
<pre><nowiki>
 
<pre><nowiki>
第54行: 第43行:
 
</nowiki></pre>
 
</nowiki></pre>
 
This will install a Thin Client environment for the clients CPU architecture on the server. You can take a coffeebreak now, building the client takes some time.
 
This will install a Thin Client environment for the clients CPU architecture on the server. You can take a coffeebreak now, building the client takes some time.
 
 
After the building is finished, you can shut down the client again.
 
After the building is finished, you can shut down the client again.
 
 
=== Finishing and cleaning up after you ===
 
=== Finishing and cleaning up after you ===
 
 
Back on the server you need to do some cleanup and tell ltsp to use the right kernel for the installed Thin Client architecture. First revert the change you made in /etc/exports before and restart the nfs-kernel-server again, to make sure all is safe.  
 
Back on the server you need to do some cleanup and tell ltsp to use the right kernel for the installed Thin Client architecture. First revert the change you made in /etc/exports before and restart the nfs-kernel-server again, to make sure all is safe.  
 
Then run:
 
Then run:
第68行: 第54行:
 
sudo ltsp-update-sshkeys
 
sudo ltsp-update-sshkeys
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Thats it, now your ubuntu ltsp server should be able to serve Thin Clients of a different architecture than the LTSP server has.
 
Thats it, now your ubuntu ltsp server should be able to serve Thin Clients of a different architecture than the LTSP server has.
 
 
/!\ Note that powerpc clients need some special options in the servers dhcp setup.
 
/!\ Note that powerpc clients need some special options in the servers dhcp setup.
 
----
 
----

2007年11月30日 (五) 21:51的版本

This page describes how to set up an ubuntu LTSP server with Thin Clients that use a different CPU architecture (for example iMacs as thin clients on an i386 server)

Preparing the Server

First you need to install the essential LTSP services on the server:

sudo apt-get install ltsp-server-standalone openssh-server

Now you need to temporary enable read/write access the the LTSP root to set up the Thin Client environment over the network.

gksudo gedit /etc/exports

edit:

/opt/ltsp       *(ro,no_root_squash,async)

to be:

/opt/ltsp       *(rw,no_root_squash,async)

save the file and run:

sudo /etc/init.d/nfs-kernel-server restart

Follow the instructions on LTSPServerSetup and start the dhcp server. Your server is now prepared for the installation of the Thin Client environment. Attach one of the clients to the network and boot it from an ubuntu live CD.

Installing the Client Environment

Install the ltsp-server package on the liveCD to get the necessary tools you need.

sudo apt-get install ltsp-server

If /opt/ltsp does not exist locally, make it.

mkdir /opt/ltsp

Mount the /opt/ltsp directory from the server on the client via nfs:

sudo mount <yourserverip>:/opt/ltsp /opt/ltsp

Now run:

sudo ltsp-build-client

This will install a Thin Client environment for the clients CPU architecture on the server. You can take a coffeebreak now, building the client takes some time. After the building is finished, you can shut down the client again.

Finishing and cleaning up after you

Back on the server you need to do some cleanup and tell ltsp to use the right kernel for the installed Thin Client architecture. First revert the change you made in /etc/exports before and restart the nfs-kernel-server again, to make sure all is safe. Then run:

sudo ltsp-update-kernels

and

sudo ltsp-update-sshkeys

Thats it, now your ubuntu ltsp server should be able to serve Thin Clients of a different architecture than the LTSP server has. /!\ Note that powerpc clients need some special options in the servers dhcp setup.