Ltps

From Radio Amteur Station OH5BZR - WIKI
Jump to: navigation, search

LTSP5 ASENNUS

GO: LTSpedia http://wiki.ltsp.org/wiki/LTSPedia

Below is notes from my system installation, take's time to get it wiki!


  1. /etc/fstab: static file system information.
  2. Use 'blkid' to print the universally unique identifier for a
  3. device; this may be used with UUID= as a more robust way to name devices
  4. that works even if disks are added and removed. See fstab(5).
  5. <file system> <mount point> <type> <options> <dump> <pass>

proc /proc proc nodev,noexec,nosuid 0 0

  1. / was on /dev/md0 during installation

UUID=24d52ebb-9a49-4949-831a-0702ca032406 / ext4 errors=remount-ro 0 1

  1. /boot/efi was on /dev/sda1 during installation

UUID=9AD9-4C15 /boot/efi vfat defaults 0 1

  1. /home was on /dev/md1 during installation

UUID=a9091c8f-31e2-43af-8167-88d8191a4f2c /home ext4 usrquota,grpquota 0 2

  1. /var was on /dev/md2 during installation

UUID=3dae13d4-6310-417a-bc67-e987638dbe54 /var ext4 defaults 0 2

  1. swap was on /dev/sda5 during installation

UUID=c5de965b-1adc-40e4-ab8b-cddb8bd153c6 none swap sw 0 0

  1. swap was on /dev/sdb5 during installation

UUID=bc109a85-d598-41e4-8805-a8bce1c68aa2 none swap sw 0 0 /dev/md127 /mpi4 ext4 rw,nosuid,nodev,uhelper=udisks 0 0 /dev/sr0 /media/cdrom iso9660 defaults,noauto,ro,user 0 0

  1. 192.168.0.40:/myjohn2 /media/myjohn2 nfs4 _netdev,auto 0 0

//192.168.0.51/OpenShare /media/ST1 cifs guest,rw,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0 //192.168.0.51/backup /media/BACKUPST1 cifs user=backup,password=backup73,rw,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0

/home /export/home none bind 0 0 /mpi2 /export/mpi2 none bind 0 0 /mpi3 /export/mpi3 none bind 0 0 /mpi4 /export/mpi4 none bind 0 0 /media/cdrom /export/cdrom none bind 0 0

  1. /windows /export/windows none bind 0 0
  2. //path to your windows share/ /your_mount_path cifs username=your_username,password=your_password,workgroup=your_workgroup,users,auto,user_xattr 0 0


iptables -A INPUT -s 192.168.0.0/24 -j ACCEPT iptables -A OUTPUT s 192.168.0.0/24 -j ACCEPT


file:///etc/fstab

  1. The chroot architecture.

ARCH=amd64 LOCALE="fi_FI.UTF-8"

  1. ubuntu-desktop and edubuntu-desktop are tested.
  2. If you test with [k|x]ubuntu-desktop, edit this page and mention if it worked OK.
  3. kubuntu lucid (10.10) working okay.

FAT_CLIENT_DESKTOPS="ubuntu-desktop"

  1. Space separated list of programs to install.
  2. The java plugin installation contained in ubuntu-restricted-extras
  3. needs some special care, so let's use it as an example.

LATE_PACKAGES=" kde-l10n-fi

language-selector-gnome language-selector-common

language-pack-gnome-fi-base language-pack-gnome-en-base language-pack-gnome-de-base language-pack-gnome-fr-base

language-pack-fi-base language-pack-de-base language-pack-fr-base language-pack-fen-base

language-pack-fi language-pack-fr language-pack-de language-pack-en

language-pack-gnome-de language-pack-gnome-fr language-pack-gnome-en language-pack-gnome-fi

language-pack-en-base language-pack-fi-base language-pack-de-base language-pack-fr-base


firefox-locale-fi thunderbird-locale-fi

voikko-fi

libreoffice-l10n-fr libreoffice-l10n-de libreoffice-l10n-sv libreoffice-l10n-fi libreoffice-help-fi hyphen-de hyphen-fr mythes-de mythes-de-ch mythes-fr mythes-en-us hyphen-en-us


"

  1. This is needed to answer "yes" to the Java EULA.
  2. We'll create that file in the next step.

DEBCONF_SEEDS="/etc/ltsp/debconf.seeds"

  1. This uses the server apt cache to speed up downloading.
  2. This locks the servers dpkg, so you can't use apt on
  3. the server while building the chroot.

MOUNT_PACKAGE_DIR="/var/cache/apt/archives/"


  1. created to /opt/ltsp
  2. sudo ltsp-build-client

sudo ltsp-build-client --mirror http://192.168.0.40:3142/mirrors.nic.funet.fi/ubuntu/ sudo ltsp-update-sshkeys sudo ltsp-update-image sudo ltsp-update-kernels

  1. sudo cp /etc/apt/sources.list /opt/ltsp/amd64/etc/apt

sudo ltsp-chroot -c -p

  1. timezone

dpkg-reconfigure tzdata

  1. local languages

dpkg-reconfigure localeconf

  1. system softwareapt-get
  2. apt-get install openmpi-common openmpi-bin
  3. apt-get install libscotch-dev libopenmpi-dev

apt-get installnfs-client nfs-common cifs-utils

  1. powerwake powernap

apt-get install mythtv-frontend apt-get install gimp darktable apt-get install mytharchive mythgallery mythgame mythmusic mythnews mythweather

  1. IMAGE UPDATE

sudo ltsp-chroot -c -p adduser root adduser mpi passwd root passwd mpi apt-get update exit sudo mkdir /opt/ltsp/amd64/mpi sudo mkdir /opt/ltsp/amd64/home/mpi sudo cp -R /home/mpi/.ssh /opt/ltsp/amd64/home/mpi #enviroment

  1. sudo cp -R /root/.ssh /opt/ltsp/amd64/root

sudo ltsp-chroot -c -p

cd /home chown -R mpi:mpi mpi cd /home/mpi chmod 700 .ssh chmod 600 .ssh/id* chmod 644 .ssh/known_hosts chmod 644 .ssh/authorized_keys

cd /home chown -R joni:joni joni cd /home/joni chmod 700 .ssh chmod 600 .ssh/id* chmod 644 .ssh/known_hosts chmod 644 .ssh/authorized_keys

cd /root chmod 700 .ssh chmod 600 .ssh/id* chmod 644 .ssh/known_hosts chmod 644 .ssh/authorized_keys


  1. apt-get install quota

apt-get install wine jstest-gtk wine playonlinux ubuntu-restricted-extras mythplugins

  1. apt-get install ltsp-server-standalone

apt-get syslog-ng bacula-fd ntp libcr-dev gcc gfortran

  1. apt-get install skype
  1. sudo apt-get install libhypre* libmumps* libblacs-mpi1 libblacs-mpi-dev libscalapack-mpi1 libscalapack-mpi-dev libatlas3gf-amd64sse3 libatlas3gf-base libarpack2 libarpack2-dev libumfpac* libvtk5.4 libvtk5-dev libvtk5.4-qt4 libvtk5-qt4-dev libmumps-ptscotch-dev libmumps-ptscotch-4.9.2


sudo apt-get install qmake-qt4 qtcreator

  1. Google-Earth

dpkg -i /software/googleearth_6.0.3.2197+0.7.0-1_amd64.deb java 7

exit

sudo ltsp-update-sshkeys sudo ltsp-update-image sudo ltsp-update-kernels exportfs -ra

      1. removed mixing system

sudo apt-get install ssh openssh-server

  1. sofware to pre-build

sudo apt-get install googleearth-package sudo apt-get install -f make-googleearth-package sudo mkdir /opt/ltsp/amd64/software cd Ohjelmia sudo cp google*.deb /opt/ltsp/amd64/software sudo cp -R mendelay* /opt/ltsp/amd64/software

  1. nvidia
  2. apt-get install linux-source nvidia-current
  3. nvidia-reconfig

lts.conf [Default] INTERFACES="eth0" DNS_SERVER=193.229.0.42,193.229.0.40 SCREEN_02=shell SCREEN_03=shell SCREEN_04=shell SCREEN_05=shell SCREEN_06=shell SCREEN_07=ldm

LDM_DIRECTX=True LDM_SYSLOG=True

       LDM_LANGUAGE="fi_FI.UTF-8"
       LDM_SESSION="gnome-session --session=ubuntu-2d"

SSH_FOLLOW_SYMLINKS=False

       FSTAB_1="192.168.0.40:/export/mpi /mpi nfs _netdev,auto 0 0"
       FSTAB_2="//192.168.0.51/OpenShare /media/ST1 cifs guest,rw,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0"

NFS_HOME=/home LOCALDEV=True

[BC:5F:F4:36:10:19]

       HOSTNAME=ugh

X_HORZSYNC=30.0-88.0 X_VERTREFRESH=50.0-88.0 X_MODE_0=1680x1050


[BC:5F:F4:36:10:39]

       HOSTNAME=kaak

X_MODE_0=1280x1024

KERNEL UPDATE

export LTSP_HANDLE_DAEMONS=false sudo mount --bind /dev /opt/ltsp/amd64/dev sudo chroot /opt/ltsp/amd64 mount -t proc proc /proc apt-get update && apt-get dist-upgrade exit sudo ltsp-update-kernels sudo umount /opt/ltsp/amd64/proc sudo umount /opt/ltsp/amd64/dev