Diskless LTSP Frontend

From MythTV Official Wiki
Revision as of 02:05, 27 December 2013 by Wagnerrp (Talk | contribs)

Jump to: navigation, search

This guide is based on Ubuntu 12.04

There are two parts to this guide. One part will have commands to install a 32-bit client, the other part will have commands to install a 64-bit client.

When you see this

 root@ltsp-server:~#

It means the commands should be executed on the LTSP server.

When you see this

 root@ltsp-server-chroot:/#

It means the commands should be executed on the LTSP server, but after you have run the chroot command ltsp-chroot. Chroot is type of isolated environment.

Assumptions

  1. Your mythtv server has an IP address of 192.168.1.100
  2. Your mythtv frontend is diskless, it will use a dhcp client address of 192.168.1.150
  3. You will create a new user called mythltsp
  4. Your mythtv server resolves DNS queries
  5. Your default router IP is 192.168.1.1
  6. Your mythtv server is not already serving DHCP
  7. You mythtv frontend has a mac address of 87:01:2a:ab:08:56


Install the LTSP Server Software

root@ltsp-server:~# apt-get install ltsp-server-standalone

Configure DHCP

Installing the ltsp server software will create a dhcpd config file /etc/ltsp/dhcpd.conf

You already have dhcpd running, this new file will override it.

Dhcpd is used to provide the client frontend with an IP address.


Script.png dhcpd.conf
authoritative;

# This will be the subnet your client will use.  Your server must have an interface serving this range.
subnet 192.168.1.0 netmask 255.255.255.0 {
    range 192.168.1.150 192.168.1.200;
    option domain-name "example.com";
    option domain-name-servers 192.168.1.100;
    option broadcast-address 192.168.1.255;
    option routers 192.168.1.1;
#    next-server 192.168.0.1;
#    get-lease-hostnames true;
    option subnet-mask 255.255.255.0;
    option root-path "/opt/ltsp/i386";
    if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient" {
        filename "/ltsp/i386/pxelinux.0";
    } else {
        filename "/ltsp/i386/nbi.img";
    }

  host mythfront {
  # tftp client hardware address
  hardware ethernet 87:01:2a:ab:08:56;
  fixed-address 192.168.1.150;
  # Uncomment the line below if your client is 32-bit
  # filename "/ltsp/i386/pxelinux.0";
  # Uncomment the line below if your client is 64-bit
  filename "/ltsp/amd64/pxelinux.0";

 }

}

Restart DHCP

 root@ltsp-server:~# service isc-dhcpd-server restart