[X2Go-Commits] [[X2Go Wiki]] page changed: doc:howto:nx-libs-betatesting

wiki-admin at x2go.org wiki-admin at x2go.org
Tue Jan 14 17:16:46 CET 2020


A page in your DokuWiki was added or changed. Here are the details:

Date        : 2020/01/14 16:16
Browser     : Mozilla/5.0 (X11; Linux x86_64; rv:68.9) Gecko/20100101 Goanna/4.4 Firefox/68.9 PaleMoon/28.8.1
IP-Address  : 2.205.169.115
Hostname    : dslb-002-205-169-115.002.205.pools.vodafone-ip.de
Old Revision: https://wiki.x2go.org/doku.php/doc:howto:nx-libs-betatesting?rev=1522662739
New Revision: https://wiki.x2go.org/doku.php/doc:howto:nx-libs-betatesting
Edit Summary: WIP: Updated Info and turned steps into a script
User        : stefanbaur

@@ -3,7 +3,5 @@
  ===== What is Arctica and what do they have to do with X2Go and NX-Libs? =====
- 
- <note warning>The information on this page is outdated. X2Go now uses nx-libs as released by Arctica Project.</note>
  
  The [[https://arctica-project.org/|Arctica Project]] is a fork/spin-off of X2Go, and overlapping with X2Go in several goals as well as the names of the volunteers involved.
  
  Currently, one of the most important
sub-projects within the Arctica project is the task of updating the NX-Libraries (the code that NoMachines was forced to release under GPL, on which FreeNX, NeatX, X2Go etc. all depend).
@@ -19,43 +17,64 @@
  
  If you're able and willing to test, then please read on.
  ===== Installation Instructions =====
  
- This should work for Debian Jessie as well as for Ubuntu Server 16.04 - please take note of the distribution-specific differences marked within the text.
+ This should work for Debian (starting with Jessie) as well as for Ubuntu Server (starting with 16.04 LTS).
  
- It has been tested with Ubuntu Server 16.04, with the "regular" (non-nightly) Arctica repository.
+ It has been tested with Ubuntu Server 16.04 and 18.04, as well as Debian Buster with the "regular" (non-nightly) Arctica repository.
  Everything else is still awaiting tests by volunteers like you.
  
  <code>
- # add the X3Go repo key (Debian only)
- apt-key adv --recv-keys --keyserver keys.gnupg.net
E1F958385BFE2B6E # for Debian
+ #!/bin/bash
+ # https://wiki.x2go.org/doku.php/doc:howto:nx-libs-betatesting
+ set -e # abort on all errors
+ 
+ if ! [ $(id -u) -eq 0 ] ; then
+ 	echo 'This script must be run as root, or with sudo prefixed to its call.'
+ 	exit 1
+ fi
+ 
+ . /etc/os-release
+ 
+ if [ 'debian' != "$ID" ] && [ "ubuntu" != "$ID" ]; then
+ 	echo 'Unsupported distribution. Only Debian and Ubuntu are supported at the moment.'
+ 	exit 1
+ fi
+ 
+ apt install gnupg -y
+ 
+ if [ 'debian' = "$ID" ] ; then
+ 	# add the X3Go repo key (Debian only)
+ 	apt-key adv --recv-keys --keyserver keys.gnupg.net E1F958385BFE2B6E
+ fi
  
  # add the X2Go repo
- add-apt-repository ppa:x2go/ppa # for Ubuntu
- echo 'deb http://packages.x2go.org/debian jessie main' >>/etc/apt/sources.list.d/x2go.list # for Debian
+ if [ 'ubuntu' = "$ID" ] ; then
+ 	add-apt-repository ppa:x2go/ppa # for Ubuntu
+ elif [ 'debian' = "$ID" ] ; then
+ 	echo 'deb http://packages.x2go.org/debian '$VERSION_CODENAME'
main' >/etc/apt/sources.list.d/x2go.list # for Debian
+ fi
  
  # add the Arctica repo key
- wget -qO - http://packages.arctica-project.org/archive.key | sudo apt-key add -
+ wget -qO - http://packages.arctica-project.org/archive.key | apt-key add -
  
  # add the Arctica repo
- echo "deb http://packages.arctica-project.org/ubuntu xenial main" >> /etc/apt/sources.list.d/arctica.list # for Ubuntu
- echo "deb http://packages.arctica-project.org/debian jessie main" >> /etc/apt/sources.list.d/arctica.list # for Debian
+ echo 'deb http://packages.arctica-project.org/'$ID' '$VERSION_CODENAME' main' > /etc/apt/sources.list.d/arctica.list
  
  # OR try the Arctica nightly repo
- echo "deb http://packages.arctica-project.org/ubuntu-nightly xenial main" >> /etc/apt/sources.list.d/arctica.list # for Ubuntu Nightly
- echo "deb http://packages.arctica-project.org/debian-nightly jessie main" >> /etc/apt/sources.list.d/arctica.list # for Debian Nightly
+ # echo 'deb
http://packages.arctica-project.org/'$ID'-nightly '$VERSION_CODENAME' main' > /etc/apt/sources.list.d/arctica.list
  
  # update the package list before installing anything
- apt-get update
+ apt update
  
  # update the base system to the current package versions
  # Download everything first, then upgrade, then dist-upgrade
- apt-get dist-upgrade -d -y && \
- apt-get upgrade -y && \
- apt-get dist-upgrade -y
+ apt dist-upgrade -d -y
+ apt upgrade -y
+ apt dist-upgrade -y
  
  # Install X2Go packages, a minimal MATE Desktop, and Firefox as test application
- apt-get install -y \
+ apt install -y \
      x2goserver \
      x2goserver-xsession \
      x2gomatebindings \
      mate-core \
@@ -63,16 +82,22 @@
      mate-notification-daemon \
      mate-screensaver \
      libcanberra-pulse
  
- apt-get install -y firefox ubuntu-mate-themes # for Ubuntu
- apt-get install -y firefox-esr mate-themes # for Debian
- 
+ if [ 'ubuntu' = "$ID" ] ; then
+ 	apt install -y firefox
ubuntu-mate-themes # for Ubuntu
+ fi
+ if [ 'debian' = "$ID" ] ; then
+ 	apt install -y firefox-esr mate-themes # for Debian
+ fi
  
  # add a user
- useradd -m -s /bin/bash <username>
- passwd <username>
- </code>
+ if ! id -u x2gotestaccount ; then
+ 	useradd -m -s /bin/bash x2gotestaccount
+ 	echo 'Please set a password for user "x2gotestaccount".'
+ 	passwd x2gotestaccount
+ fi
+ echo 'Setup complete.'</code>
  
  On the X2GoServer, edit /etc/x2go/x2goagent.options:
    * Search for the String "xinerama", and when you encounter a line like this one, make sure there's the plus sign in front of "xinerama": ''X2GO_NXAGENT_DEFAULT_OPTIONS+=" +xinerama"''
    * Search for the String "XFIXES", and when you encounter a line like this one, make sure there's the plus sign in front of "extension": ''X2GO_NXAGENT_DEFAULT_OPTIONS+=" +extension XFIXES"''


-- 
This mail was generated by DokuWiki at
https://wiki.x2go.org/



More information about the x2go-commits mailing list