A page in your DokuWiki was added or changed. Here are the details: Date : 2017/02/10 16:50 Browser : Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0 IP-Address : 78.43.90.159 Hostname : HSI-KBW-078-043-090-159.hsi4.kabel-badenwuerttemberg.de Old Revision: http://wiki.x2go.org/doku.php/doc:howto:x2gobroker?rev=1486745387 New Revision: http://wiki.x2go.org/doku.php/doc:howto:x2gobroker Edit Summary: added x2goserver2.xgo.example.com User : stefanbaur @@ -1267,8 +1267,256 @@ echo 'x2godbadmin --adduser user4' >>/target/etc/rc.local ;\ echo 'x2godbadmin --adduser user5' >>/target/etc/rc.local ;\ echo "COMMENT: This is the cleanup job for the x2godbadmin stuff, so it doesn't run more than once." ;\ echo 'sed -i -e "/x2godbadmin/d" /etc/rc.local' >>/target/etc/rc.local ;\ + echo "COMMENT: This is the routine that 'fakes' what x2go-pubkeyauthorizer does" ;\ + echo "COMMENT: by copying the authorized_keys file created on x2gobroker to its destination." ;\ + echo 'if [ -s /home/root/x2gobroker/.ssh/authorized_keys ] ; then' >>/target/etc/rc.local ;\ + echo -e "\t"'cp -a /home/root/x2gobroker/.ssh /var/lib/x2gobroker/' >>/target/etc/rc.local ;\ + echo "COMMENT: This is the cleanup job for the x2gobroker stuff, so it doesn't run more than once." ;\ + echo "COMMENT: Note that it will only run if the authorized_keys file has been found." ;\ + echo -e "\t"'sed -i -e "/x2gobroker/d" /etc/rc.local' >>/target/etc/rc.local ;\ + echo 'fi #x2gobroker' >>/target/etc/rc.local ;\ + echo "COMMENT: Finally, rc.local must terminate with 'exit 0' again." ;\ + echo 'exit 0' >>/target/etc/rc.local ;\ + echo "COMMENT: Finally, take out the trash - sadly, systemd must stay because of MATE and LXDE." ;\ + in-target apt-get autoremove --purge -y ;\ + in-target apt-get clean ;\ + echo "End Post-Install Setup/Config" + + # Shut down and power off after installation + d-i debian-installer/exit/poweroff boolean true + + # preseed key-value pairs for the packages we intend to install + dash dash/sh boolean false + exim4-config exim4/no_config boolean true + libnss-ldapd libnss-ldapd/nsswitch multiselect passwd, shadow, group, hosts, services, networks, protocols, rpc, ethers, netgroup + libnss-ldapd libnss-ldapd/clean_nsswitch boolean false + libpam-runtime libpam-runtime/profiles multiselect unix, ldap + mdadm mdadm/autostart boolean false + mdadm mdadm/mail_to string root + mdadm mdadm/initrdstart string all + mdadm mdadm/initrdstart_notinconf boolean true + mdadm mdadm/autocheck boolean true + mdadm mdadm/start_daemon boolean true + nslcd nslcd/ldap-bindpw password + nslcd nslcd/ldap-sasl-secprops string + nslcd nslcd/ldap-sasl-krb5-ccname string /var/run/nslcd/nslcd.tkt + nslcd nslcd/ldap-sasl-authcid string + nslcd nslcd/ldap-binddn string + nslcd nslcd/ldap-cacertfile string /etc/ssl/certs/ca-certificates.crt + nslcd nslcd/ldap-sasl-authzid string + nslcd nslcd/ldap-uris string ldap://ldap1.x2go.example.com/ + nslcd nslcd/ldap-sasl-mech select + nslcd nslcd/ldap-auth-type select none + nslcd nslcd/ldap-base string dc=x2go,dc=example,dc=com + nslcd nslcd/ldap-sasl-realm string + nslcd nslcd/ldap-reqcert select + nslcd nslcd/ldap-starttls boolean false + </file> + + ==== x2goserver2.xgo.example.com ==== + <file - preseed_x2goserver2> + # There are two sets of parameters you can use as the append line: + # The minimum required is: + # hostname=x2goserver2 domain=x2go.example.com + # url=http://192.168.0.224/preseed_x2goserver2 + # (all in one line, and without the leading "#" marks) + # If you only use these, you will have to answer a few questions + # - mainly regarding country, keyboard and locale - interactively. + # For a fully automated installation, add these parameters + # *in addition to the ones listed above* + # (again, all in one line, and without the leading "#" marks): + # priority=critical netcfg/use_dhcp=true netcfg/choose_interface=eth0 + # debian-installer/locale=de_DE keymap=de-latin1 + # debian-installer/locale=de_DE.UTF-8 DEBCONF_DEBUG=5 + + # We prefer to stay anonymous ;-) + popularity-contest popularity-contest/participate boolean false + + # Load non-free firmware, if possible + d-i hw-detect/load_firmware boolean true + + # Repository + # CHANGE THIS to your nearest mirror + d-i mirror/http/hostname string ftp.de.debian.org + d-i mirror/http/directory string /debian/ + d-i mirror/suite string jessie + + # Post install APT setup + d-i apt-setup/uri_type select d-i + # CHANGE THIS to your nearest mirror + d-i apt-setup/hostname string ftp.de.debian.org + d-i apt-setup/directory string /debian/ + d-i apt-setup/another boolean false + d-i apt-setup/security-updates boolean true + d-i finish-install/reboot_in_progress note + d-i prebaseconfig/reboot_in_progress note + + d-i apt-setup/non-free boolean true + d-i apt-setup/contrib boolean true + + # Network-related settings + # Every hostname and domain name assigned via DHCP + # takes priority over these values + # however, if they are left empty, the installer will query them interactively + d-i netcfg/get_hostname string x2goserver2 + d-i netcfg/get_domain string x2go.example.com + d-i netcfg/disable_dhcp boolean false + d-i mirror/http/proxy string + d-i netcfg/choose_interface select eth0 + d-i netcfg/wireless_wep string + + # Partitioning and Bootloader settings + d-i partman-auto/disk string /dev/sda + d-i partman-auto/method string regular + + # Do not use UUIDs in fstab (and not in bootloader config, either) + d-i partman/mount_style string traditional + + # This silences an interactive "are you sure?" query + d-i partman/confirm boolean true + d-i partman-partitioning/confirm_write_new_label boolean true + d-i partman/choose_partition select finish + d-i partman/confirm_nooverwrite boolean true + d-i partman-lvm/device_remove_lvm boolean true + d-i partman-lvm/confirm boolean true + d-i partman-md/device_remove_md boolean true + d-i partman-md/confirm boolean true + + d-i partman-auto/choose_recipe select atomic + #d-i partman-auto/choose_recipe select home + #d-i partman-auto/choose_recipe select multi + + d-i debian-installer/add-kernel-opts string nomodeset gfxpayload=vga=normal + + d-i grub-installer/only_debian boolean true + d-i grub-installer/with_other_os boolean true + d-i grub-installer/bootdev string /dev/sda + + # Country, keyboard, locale settings - CHANGE THIS + d-i debian-installer/locale string de_DE + d-i debian-installer/keymap select de-latin1 + d-i debian-installer/keymap string de-latin1 + + d-i languagechooser/language-name-fb select German + d-i countrychooser/country-name select Germany + d-i console-setup/layoutcode string de_DE + d-i debian-installer/locale select de_DE.UTF-8 + + # Time zone settings - CHANGE THIS + d-i tzconfig/gmt boolean false + d-i tzconfig/choose_country_zone/Europe select Berlin + d-i tzconfig/choose_country_zone_single boolean true + d-i time/zone select Europe/Berlin + d-i clock-setup/utc boolean true + d-i mirror/country string manual + d-i clock-setup/ntp boolean false + + # Root Account + # this says "start" in MD5 - CHANGE THIS + d-i passwd/root-password-crypted passwd $1$ekONVtC5$rTbjMaMA6cqFpbWu7UXWN. + + # Do not create a regular user account when installing a server + d-i passwd/make-user boolean false + #d-i passwd/user-fullname string Local User + #d-i passwd/username string localuser + #d-i passwd/user-password-crypted passwd $1$ekONVtC5$rTbjMaMA6cqFpbWu7UXWN. + + + # Additional repositories, local[0-9] available + # this is where we add the X2Go repo + d-i apt-setup/local0/repository string \ + http://packages.x2go.org/debian jessie main + d-i apt-setup/local0/comment string X2Go Repository + + # URL to the public key of the local repository; you must provide a key or + # apt will complain about the unauthenticated repository and so the + # sources.list line will be left commented out + + # CHANGE THIS - you need to download this keyfile onto your web server + # run these gpg commands to download it: + # gpg --keyserver keys.gnupg.net --recv-keys E1F958385BFE2B6E + # gpg -a --export E1F958385BFE2B6E > x2go.key.gpg + d-i apt-setup/local0/key string http://192.168.0.224/x2go.key.gpg + + # Task and Package Selection + tasksel tasksel/first multiselect standard, xfce-desktop, mate-desktop, lxde-desktop + d-i pkgsel/include string ssh \ + console-setup \ + cups-client \ + cups-x2go \ + debconf-i18n \ + gimp \ + ldap-utils \ + libnss-ldapd \ + libpam-ldapd \ + libreoffice \ + mc \ + nslcd \ + ntp \ + pidgin \ + postgresql-client-9.4 \ + postgresql-client-common \ + rsync \ + screen \ + sysvinit-core \ + sysvinit-utils \ + unattended-upgrades \ + vim \ + x2go-keyring \ + x2gobroker-agent \ + x2goserver \ + x2goserver-extensions \ + x2goserver-printing \ + x2goserver-xsession + + # Commands to be executed after package installation + # Note: The only way to insert comments below is to add an "echo COMMENT" + d-i preseed/late_command string echo "COMMENT: Begin Post-Install Setup/Config" ;\ + echo "COMMENT: Configure SSH" ;\ + mkdir -p /target/root/.ssh ; \ + chmod 700 /target/root/.ssh ;\ + touch /target/root/.ssh/authorized_keys ; \ + chmod 600 /target/root/.ssh/authorized_keys ;\ + sed -i '/^PermitRootLogin/c PermitRootLogin without-password' /target/etc/ssh/sshd_config ;\ + echo -n 'ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA0d0QRUMzhozXPzFe79t+/xcdmNPe2rf5LirW5IzOuFrJlY8WaZCOWLJXrpn724TNRLf+v+88lOsXlrQLBom4FjOpgCpDvxZzQIG7tcURZbUO1nAdKsDdZ6Nt0e91h1UuDpya6E74VMuB9krG1FjJRABMfMDhKweMUUkkq4yQ34jqUZhJv97' >>/target/root/.ssh/authorized_keys ;\ + echo -n '+sRzkh5DJ/pZlpCaa3pXT3MI5RCR7elC59hzueqlOjvrIAjYo4KRz3j3OUPNa3NnT0tM1QNdy/3dF6yJhobmd5GspMRDV0TSBGBG+Jg1Tbg/gpEHf/0NyUCoS2o1Tonfgbf/dHwIZuWX17seAQsDw/yR+7YkU2CKHOQ== Wartungszugang Stefan Baur' >>/target/root/.ssh/authorized_keys ;\ + echo "COMMENT: Fixing shortcomings of netcfg here..." ;\ + sed -i "s/$(cat /etc/hostname)/x2goserver2/" /target/etc/hosts ;\ + echo "x2goserver2" >/target/etc/hostname ;\ + echo "COMMENT: Fix ends here." ;\ + echo "COMMENT: This is said to be required for LDAP UID/GID sync." ;\ + sed -i '/^NEED_IMAPD/cNEED_IMAPD=yes' /target/etc/default/nfs-common ;\ + echo "COMMENT: This fixes some annoyances regarding UTF-8 and MidnightCommander" ;\ + echo "export LANG=de_DE.UTF-8"
/target/etc/bash.bashrc ;\
-- This mail was generated by DokuWiki at http://wiki.x2go.org/