Cours:DocsLTSP : Différence entre versions
(→grub) |
(→firefox) |
||
| Ligne 154 : | Ligne 154 : | ||
defaultPref("browser.cache.memory.enable", true); | defaultPref("browser.cache.memory.enable", true); | ||
lockPref("browser.cache.offline.enable", false); | lockPref("browser.cache.offline.enable", false); | ||
| + | |||
| + | </source> | ||
Version du 3 avril 2026 à 19:37
Sommaire
mise à jour
- préparer les mises à jour
- dans le menu de bootreseau
- choisir "installer mise a jour Ubuntu"
- mettre à jour le noyau avec : updateKernelReseau
- vérifier les mises à jour
- dans le menu de bootreseau
- choisir "verifier apres mise a jour Ubuntu"
- passer sur la nouvelle version
- après vérifications
- lancer la commande : updateBootReseau
Installation
https://wiki.defis.info/?LTSPInstall
- installation ltsp https://ltsp.org/docs/installation/
- debootstrap ubuntu
mkdir /srv/ltsp
cd /srv/ltsp
debootstrap --include ubuntu-minimal noble noble
//config schroot
schroot
// continuer avec l'installation de paquets, par ex https://help.ubuntu.com/community/DebootstrapChroot
- config ltsp
- ltsp dnsmasq
- ltsp ipxe
- ltsp initrd
- ltsp kernel
- ltsp nfs
- ltsp initrd :
- update ltsp.img
- modifie users
groupes utilisateurs
modifier le fichier : /etc/security/group.conf
tftp from grub
virt-viewer
#!/bin/bash
set -e
# Set auth options
PASSWORD='xxxxxxxx'
USERNAME='spiceUser@pve'
# Set VM ID
VMID="102"
# Set Node
# This must either be a DNS address or name of the node in the cluster
NODE="geii-node2-svr"
# Proxy equals node if node is a DNS address
# Otherwise, you need to set the IP address of the node here
PROXY="10.98.35.249"
#The rest of the script from Proxmox
NODE="${NODE%%\.*}"
DATA="$(curl -f -s -S -k --data-urlencode "username=$USERNAME" --data-urlencode "password=$PASSWORD" "https://$PROXY:8006/api2/json/access/ticket")"
echo "AUTH OK"
TICKET="${DATA//\"/}"
TICKET="${TICKET##*ticket:}"
TICKET="${TICKET%%,*}"
TICKET="${TICKET%%\}*}"
CSRF="${DATA//\"/}"
CSRF="${CSRF##*CSRFPreventionToken:}"
CSRF="${CSRF%%,*}"
CSRF="${CSRF%%\}*}"
curl -f -s -S -k -b "PVEAuthCookie=$TICKET" -H "CSRFPreventionToken: $CSRF" "https://$PROXY:8006/api2/spiceconfig/nodes/$NODE/qemu/$VMID/spiceproxy" -d "proxy=$PROXY" > spiceproxy
#Launch remote-viewer with spiceproxy file, in kiosk mode, quit on disconnect
#The run loop will get a new ticket and launch us again if we disconnect
exec remote-viewer -k --kiosk-quit on-disconnect spiceproxy
initrd nfs v4
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=409272
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=409272
divers
The most common iPXE boot loaders are undionly.kpxe (for bios) and snp.efi/snponly.efi (for usefi). Just be aware you can not boot a bios bootloader (undionly.kpxe) on a uefi system unless CSM is enabled. But then CSM would boot in bios mode. The same is the case for snp.efi, it will not boot on a bios based computer.
https://wiki.fogproject.org/wiki/index.php?title=ProxyDHCP_with_dnsmasq
https://wiki.ubuntu.com/LTSPLocalAppSetup
http://wiki.bluelightav.org/pages/viewpage.action?pageId=23626143
grub
menuentry "LTSP Network Boot"
{
insmod net
insmod efinet
insmod tftp
insmod pxeboot
net_bootp linux (tftp,<IP_SERVEUR>)/ltsp/x86_64/vmlinuz initrd=/ltsp/x86_64/initrd.img root=/dev/nfs nfsroot=<IP_SERVEUR>:/opt/ltsp rootfstype=nfs ip=dhcp
initrd (tftp,<IP_SERVEUR>)/ltsp/x86_64/initrd.img
}
optimisation
firefox
nano /usr/lib/firefox/distribution/policies.json
{
"policies": {
"DisableTelemetry": true,
"Preferences": {
"browser.cache.disk.enable": false,
"browser.cache.memory.enable": true,
"browser.cache.offline.enable": false
}
}
}
nano /usr/lib/firefox/mozilla.cfg
lockPref("browser.cache.disk.enable", false);
defaultPref("browser.cache.memory.enable", true);
lockPref("browser.cache.offline.enable", false);