Astra linux ltsp server

Installation¶

All the terminal commands in the documentation should be run as root, which means you should initially run sudo -i on Ubuntu or su — on Debian.

Server OS installation¶

The LTSP server can be headless, but it’s usually better to install the operating system using a «desktop» .iso and not a «server» one. All desktop environments should work fine, but MATE receives the most testing. Any .deb-based distribution that uses systemd should work; i.e. from Ubuntu Xenial and Debian Jessie and onward. If you choose Ubuntu, you may also consider removing snap to avoid some issues.

Adding the LTSP PPA¶

The LTSP PPA is where stable upstream LTSP releases are published. It’s mandatory for distributions before 2020 that have the older LTSP5, and optional but recommended to have in newer distributions. Follow the ppa page to add it to your sources, then continue reading here.

Installing LTSP server packages¶

The usual way to transform a normal installation into an LTSP server is to run:

apt install --install-recommends ltsp ltsp-binaries dnsmasq nfs-kernel-server openssh-server squashfs-tools ethtool net-tools epoptes gpasswd -a administrator epoptes 

Replace administrator with the administrator username. If you’re not using the PPA, also replace ltsp-binaries with ipxe . Description of the aforementioned packages:

  • ltsp: contains the LTSP code, it’s common for both LTSP servers and LTSP clients.
  • ltsp-binaries: contains iPXE and memtest binaries.
  • dnsmasq: provides TFTP and optionally (proxy)DHCP and DNS services. Possible alternatives are isc-dhcp-server and tftpd-hpa, but only dnsmasq can do proxyDHCP, so it’s the recommended default.
  • nfs-kernel-server: exports the virtual client disk image over NFS.
  • openssh-server: allows clients to authenticate and access /home via SSHFS.
  • ethtool, net-tools: allow disabling Ethernet flow control, to improve LAN speed when the server is gigabit and some clients are 100 Mbps.
  • epoptes: optional; allows client monitoring and remote control; the gpasswd command allows the sysadmin to run epoptes.

All those packages can also be displayed with apt show ltsp | grep ^Suggests .

Network configuration¶

There are two popular methods to configure LTSP networking. One is to avoid any configuration; this usually means that you have a single NIC on the LTSP server and an external DHCP server, for example a router, pfsense, or a Windows server. In this case, run the following command:

Читайте также:  Linux роутинг между интерфейсами

Another method is to have a dual NIC LTSP server, where one NIC is connected to the normal network where the Internet is, and the other NIC is connected to a separate switch with just the LTSP clients. For this method to work automatically, assign a static IP of 192.168.67.1 to the internal NIC using Network Manager or whatever else your distribution has, and run:

You can read about more ltsp dnsmasq options, like —dns or —dns-servers, in its man page.

Maintaining a client image¶

LTSP supports three methods to maintain a client image. They are documented in the ltsp image man page. You can use either one or all of them. In short, they are:

  • Chrootless (previously pnp): use the server root (/) as the template for the clients. It’s the easiest method if it suits your needs, as you maintain only one operating system, not two (server and image).
  • Raw virtual machine image: graphically maintain e.g. a VirtualBox VM.
  • Chroot: manually maintain a chroot directory using console commands.

In the virtual machine and chroot cases, you’re supposed to install the ltsp package to the image, by adding the LTSP PPA and running apt install —install-recommends ltsp epoptes-client , without specifying any other services. In the chrootless and virtual machine cases, if you’re using separate partitions for some directories like /boot or /var, see the ltsp image man page EXAMPLES section for how to include them. When the image is ready, to export it in squashfs format and make it available to the clients over NFS, run the following commands.

Virtual machines need to be symlinked before running ltsp image :

ln -s "/home/user/VirtualBox VMs/debian/debian-flat.vmdk" /srv/ltsp/debian.img ltsp image debian 

For a chroot in /srv/ltsp/x86_32:

You need to run these commands every time you install new software or updates to your image and want to export its updated version.

Configuring iPXE¶

After you create your initial image, or if you ever create additional images, run the following command to generate an iPXE menu and copy the iPXE binaries in TFTP:

In LTSP5, syslinux was used, but iPXE replaced it as it’s much more powerful. You can read more about it in the ltsp ipxe man page.

NFS server configuration¶

To configure the LTSP server to serve the images or chroots over NFS, run:

For finetuning options, see the ltsp nfs man page.

Generate ltsp.img¶

A new procedure that wasn’t there in LTSP5 is provided by the following command:

Читайте также:  Видеорегистратор своими руками linux

This compresses /usr/share/ltsp, /etc/ltsp, /etc/ and the server public SSH keys into /srv/tftp/ltsp/ltsp.img, which is transferred as an «additional initrd» to the clients when they boot. You can read about its benefits in its man page, for now keep in mind that you need to run ltsp initrd after each LTSP package update, or when you add new users, or if you create or modify /etc/ltsp/ltsp.conf, which replaced the LTSP 5 «lts.conf».

Questions¶

Questions? Start a discussion or come to the online chat room.

Источник

Установка LTSP

Вот и я о том же — там в составе некоторый Linux, т.е. уже есть X-терминал (X-сервер), и просто вообще ничего доделывать не надо.

А на компы 10-летней давности ставите Lnux (любой), X-сервер (вы и сами не заметите как он встанет) и всё: у вас готовые удалённые X рабочие места.

Ставил на старые компы линуксы разные, проблема была с видеодрайвером, не ставился, не находился. нагрузка шла вся на проц, без видеодрайвера. ускорения графики вообще не было. а в LTSP драйвера не нужны.

Olej

New member

Да ну?!
(такое можно утверждать если только очень сильно не понимать как это происходит)

Начиная с 5-й версии LTSP, клиент сначала устанавливает SSH-туннель к графическому окружению LTSP-сервера, через который локально запускает LDM (LTSP Display Manager). С этого момента, программы запускаются на LTSP-сервере, а отображаются и управляются на клиенте.

Т.е., при понимании, ясно, что там не происходит ничего более, чем туннель через SSH. Что можно замечательно сделать и руками ровно за 7 минут.

Art74

New member

замечательно можно сделать.
а вот возьмите и подскажите пошагово как это всё сделать? раз это так для вас всё просто и легко. не сложно пошагово накидать инструкцию?

Art74

New member

ну да. жесткого диска на клиенте нет. куда драйвера ставить? там просто выставляется в биосе загрузка по PXE. и грузится операционка с образа с TFTP сервера по сети.

AFilippov

New member
sudo apt-get install ltsp-server-standalone sudo ltsp-build-client --mirror http://download.astralinux.ru/astra/testing/orel/repository

Была маленькая проблемка: в /etc/apt/sources.list указан репозиторий https://download.astralinux.ru/astra/testing/orel/repository. Если в таком виде передать —mirror-у будет ошибка «Драйвер для метода /usr/lib/apt/methods/https не найден». Меняем протокол https на http и образ создается.
Дело не в Астре, раньше заморочек с https столько не было.
Образ размером 515 Мб, лежит в /opt/ltsp/images.
Еще, у ltsp-build-client много ключей, посмотри sudo ltsp-build-client —extra-help
Дальше сам ковыряй, добавляй-удаляй, что тебе нужно.

Art74

New member

Olej

New member

Тут попутно возник интересный вопрос, относительно видеодрайвера: клиент собирается на сервере, видеоподсистема клиента неизвестна . что там за видео вставляется в клиента? vesa?
Специально пересмотрел:

olej@astra:~$ sudo ltsp-build-client --extra-help . 

Там много любопытных деталей сборки . но ничего относительно параметров Xorg там нет, да и быть, пожалуй, не может: видеоподсистема клиента неизвестна и может независимо изменяться.
Но тогда ни о каком графическом ускорении 2D/3D речи быть вообще не может?

Читайте также:  Tomcat install linux mint

Art74

New member
sudo apt-get install ltsp-server-standalone sudo ltsp-build-client --mirror http://download.astralinux.ru/astra/testing/orel/repository

Была маленькая проблемка: в /etc/apt/sources.list указан репозиторий https://download.astralinux.ru/astra/testing/orel/repository. Если в таком виде передать —mirror-у будет ошибка «Драйвер для метода /usr/lib/apt/methods/https не найден». Меняем протокол https на http и образ создается.
Дело не в Астре, раньше заморочек с https столько не было.
Образ размером 515 Мб, лежит в /opt/ltsp/images.
Еще, у ltsp-build-client много ключей, посмотри sudo ltsp-build-client —extra-help
Дальше сам ковыряй, добавляй-удаляй, что тебе нужно.

Благодарю за помощь! Образ создался! Теперь испытать загрузку по сетевой карте PXE. В виртуал боксе когда-то я это делал.

Источник

Установка LTSP

да Windows Server только как запускался браузера, чтобы процессоры в старых компах не так напрягать. Локально же вообще невозможно в браузере работать.
хочется в LTSP попробовать. без жестких дисков.

Art74

New member

да, всё это мучали уже, аппаратное ускорение и прочее. просто сама ИС нагружает. за счет сервака работать можно.

Art74

New member

после обновления до 16 процесс sudo ltsp-build-client пошел но закончился вот этим:
Добавляется «отклонение /sbin/start-stop-daemon в /sbin/start-stop-daemon.real из-за ltsp-client»
update-alternatives: используется /usr/sbin/policy-rc.d.ltsp для предоставления /usr/sbin/policy-rc.d (policy-rc.d) в автоматическом режиме
Добавляется «отклонение /etc/mtab в /etc/mtab.real из-за ltsp-client»
‘/opt/ltsp/amd64/etc/apt/sources.list’ -> ‘/opt/ltsp/amd64/etc/apt/sources.list.old’
Пол:1 http://dl.astralinux.ru/astra/current/orel/repository orel InRelease [11,5 kB]
Игн:1 http://dl.astralinux.ru/astra/current/orel/repository orel InRelease
Сущ:2 http://dl.astralinux.ru/astra/current/orel/repository orel Release
Ошк:3 http://dl.astralinux.ru/astra/current/orel/repository orel Release.gpg
Найдена как минимум одна неправильная подпись.
Чтение списков пакетов… Готово
W: Произошла ошибка при проверке подписи. Репозиторий не обновлён и будут использованы предыдущие индексные файлы. Ошибка GPG: http://dl.astralinux.ru/astra/current/orel/repository orel Release: Найдена как минимум одна неправильная подпись.
W: Не удалось получить http://dl.astralinux.ru/astra/current/orel/repository/dists/orel/Release.gpg Найдена как минимум одна неправильная подпись.
W: Некоторые индексные файлы не скачались. Они были проигнорированы или вместо них были использованы старые версии.
Чтение списков пакетов… Готово
Построение дерева зависимостей… Готово
Пакет ltsp-client недоступен, но упомянут в списке зависимостей другого пакета.
Это может означать, что пакет отсутствует, устарел, или доступен из источников, не упомянутых в sources.list

E: Для пакета «ltsp-client» не найден кандидат на установку
ошибка: установка клиента LTSP завершена некорректно

lsb_release -a
No LSB modules are available.
Distributor ID: AstraLinuxCE
Description: Astra Linux CE 2.12.16 (Orel)
Release: 2.12.16
Codename: orel

Источник

Оцените статью
Adblock
detector