• Advertisement

Diskless boot (lstp)

Have any guides you would like to share with others, then this is the place for them.

Diskless boot (lstp)

Postby Dave » Wed Oct 21, 2009 6:53 pm

For f13 see this bug here if you encounter the ERROR: fc13 is unsupported. viewtopic.php?f=13&t=2086


Well networking is not my thing :roll: in fact im totally rubbish at it, but i saw this in fedora forums http://www.youtube.com/watch?v=tq6QlsYNDMc where someone wanted to do it, so here it is!, my version way of doing it, if anyone has any easier or better ways or improvements then by all means say so.

This guide was using a fresh default install of f11 (64bit) from install media not livedc, and i also did it on f12 (64bit beta) and it worked fine, your mileage may vary but this is what i did to get it to work for me.
My machine has two ethernet cards in it, one connected to my router(internet) the other was connected to my laptop (patch cable = comp to router, crossover cable = comp to comp direct)

The first thing i did was to fully update the default install and disable package kit update applet in startup applications
Code: Select all
su
yum -y update

Restart comp after updates

Now to install the programs needed
Code: Select all
su
yum install ltsp-server -y


See next post
User avatar
Dave
Founder
 
Posts: 252
Joined: Wed Sep 02, 2009 8:53 pm
Location: UK West Midlands

Advertisement

Re: Diskless boot (lstp)

Postby Dave » Wed Oct 21, 2009 7:05 pm

Now we need to do
Code: Select all
su
echo "/opt/ltsp *(ro,async,no_root_squash)" >> /etc/exports
ifup ltspbr0
chkconfig network on
for service in xinetd ltsp-dhcpd rpcbind nfs sshd; do chkconfig $service on; service $service restart; done
for server in ldminfod nbdrootd nbdswapd tftp; do chkconfig $server on; done

Now we need to install the rest of the stuff needed
Code: Select all
su
ltsp-build-client

Now this will take a while to do downloading and installing all the bits etc needed, and in theory if all went well you will end up with a screen like below.
Screenshot-root@localhost_~.png
Screenshot-root@localhost_~.png (69.9 KiB) Viewed 771 times


Restart computer
See next post
User avatar
Dave
Founder
 
Posts: 252
Joined: Wed Sep 02, 2009 8:53 pm
Location: UK West Midlands

Re: Diskless boot (lstp)

Postby Dave » Wed Oct 21, 2009 7:18 pm

The rest of this guide i just copied from fedora, but since it works just fine and is easy to follow i saw no point in changing it.

This Quick Start Guide explains how to quickly configure the server's networking to support thin clients. It assumes that the server has two wired network ports, or one wired port & one wireless. One interface, either wired or wireless, is for accessing the Internet on your normal network. The other interface, wired, is dedicated to serving an isolated network segment for thin clients. Other methods of configuration such as "Single Network Card" are more advanced and require manual configuration beyond the scope of this guide. Please see K12Linux.org or ask on our mailing list for more information about other ways to configure networking.

CAUTION: The bridge interface, ltspbr0, should only be connected to the network interface that is connected to an isolated switch serving the thin clients, such as a lab, as described below. It must not be connected to your regular network because it has a DHCP server running on it and can cause serious problems for your network.

1. Upon booting the K12Linux server, NetworkManager has control over all network interfaces. This can be good if one Ethernet port has Internet access or if you want the wireless to connect to the Internet. After logging into the Live desktop, the NetworkManager icon in the top right panel will tell you if it already connected to the Internet and through which interface. If you have wireless, you can use this interface to connect to a wireless network at this time. Once you have done that, continue on to the next step.
1.jpg
1.jpg (10.39 KiB) Viewed 771 times

2. We need to edit the configuration so NetworkManager no longer controls the Ethernet interface serving the thin clients. Go to System -> Administration -> Network.
2.jpg
2.jpg (18.84 KiB) Viewed 771 times

3. In the Network Configuration window, click the "New" button.
3.jpg
3.jpg (11.31 KiB) Viewed 771 times

4. In the Device Type column, choose 'Ethernet connection' and then click the Forward button.

5. Select the desired Ethernet card to serve your isolated LTSP network segment. Be absolutely sure that this interface is NOT the one currently in use to connect to the Internet. You can click on the NetworkManager icon to verify which interface is currently in use. Click the Forward button when you have highlighted the desired interface.
5.jpg
5.jpg (14.12 KiB) Viewed 771 times

6. Select "Statically set IP addresses:". DO NOT FILL OUT ANYTHING IN THESE FIELDS. Click the Forward button.
6.jpg
6.jpg (16.56 KiB) Viewed 771 times

7. A confirmation box will come up. Click the Apply button.
7.jpg
7.jpg (11.93 KiB) Viewed 771 times

8. You'll be back at the Network Configuration window, but now the Ethernet device you just added should be listed. Select that new device and click the Edit button.
8.jpg
8.jpg (17.13 KiB) Viewed 771 times

9. Be sure that "Controlled by NetworkManager" is unchecked, then click the OK button.
9.jpg
9.jpg (23.11 KiB) Viewed 771 times

10. In the Network Configuration window, make a note of the name in the Device column (the name in the Nickname column is probably the same) for the new device you just created. You'll need to know this name for the next step. In this guide, we will assume the device name is eth0.
10.jpg
10.jpg (22.15 KiB) Viewed 771 times

From the File menu, choose Save (Ctrl+S) to save the configuration.

Next, you'll get a dialog box saying the changes have been saved, and suggesting that you reboot. Click the OK button but do not reboot at this time.

11. Under the Applications menu, go to System Tools -> Terminal to bring up a command line.
11.jpg
11.jpg (14.88 KiB) Viewed 771 times

12. In the terminal window, type 'su - ' to become root. Then type 'gedit' and a graphical text editor will come up in a separate window.
--->
12a.jpg
12a.jpg (5.53 KiB) Viewed 771 times
12b.jpg
12b.jpg (8.44 KiB) Viewed 771 times


13. In the gedit window, click the Open button, and then in the Open Files window in the Places pane on the left, click File System; in the right pane, click 'etc', then 'sysconfig', then 'network-scripts'. (As you drill down, the path will be shown at the top of the window.) In the right pane, probably at or near the top, you should see a file called 'ifcfg-ethX' where the ethX part is the same as the Device Name mentioned in step 10; in this case, the file name is ifcfg-eth0. Select that file and click the Open button.
13.jpg
13.jpg (19.23 KiB) Viewed 771 times

14. Add BRIDGE=ltspbr0 to the bottom of the file. Save the file and exit from gedit.
14.jpg
14.jpg (16.17 KiB) Viewed 771 times

15. Back in the terminal window, type ifdown eth0; you may get a message saying "device eth0 is not a slave of ltspbr0"--you can ignore this. Next type ifup eth0 where eth0 is the name of the Device you created in step 10. (Yours may have a different name.) Then type brctl show to verify that this interface is attached to the ltspbr0 bridge.
15.jpg
15.jpg (13.34 KiB) Viewed 771 times

16. Now it's time to create a user ID that can be used for logging in on a thin client. If you're running K12Linux from a hard disk, you have already created at least one user ID during the installation; you can either skip to the end of the guide, or use the steps below to create more user IDs. (For more information on creating user IDs, see the Fedora Installation Guide.)

By default, this K12Linux Quick Start Guide that you are reading will automatically appear on the desktop of any users you create. If you don't want this to happen, type the following in the terminal window:

su -c "rpm -e k12linux-quick-start-guide"

You may (or may not) be prompted for the root password. Close the terminal window when finished.

17. Back on the Desktop, go to the System menu and choose Administration -> Users and Groups.
17.jpg
17.jpg (18.57 KiB) Viewed 771 times


18. In the User Manager window, click the Add User button and add a test user.
18.jpg
18.jpg (11.15 KiB) Viewed 771 times


19. Just use the default settings for this user. Once finished, close the User Manager window.
19.jpg
19.jpg (10.69 KiB) Viewed 771 times
User avatar
Dave
Founder
 
Posts: 252
Joined: Wed Sep 02, 2009 8:53 pm
Location: UK West Midlands

Re: Diskless boot (lstp)

Postby Dave » Wed Feb 03, 2010 6:23 am

Known problems that i have had are below assuming that you have done all above right.

1.) Not able to boot off lan etc..
Have you got the right cable connected crossover for comp to comp and patch if going via a router, also is the router configured properly
Delete all network connections except ltspb then try setting the connections again in post #2

2.) Unable to login when you know you have the right username and passowrd, run the command below
Code: Select all
su
ltsp-update-sshkeys


3.) make sure the ethX you are using and ltspbr0 is in the trusted devices in the firewall .

4.)If you are using a router disable dhcp in the router
User avatar
Dave
Founder
 
Posts: 252
Joined: Wed Sep 02, 2009 8:53 pm
Location: UK West Midlands



  • Advertisement

Return to Fedora Guides and Tutorials



  • Advertisement