User Tools

Site Tools


doc:howto:nx-libs-betatesting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
doc:howto:nx-libs-betatesting [2017/01/13 14:57]
stefanbaur [Installation Instructions]
doc:howto:nx-libs-betatesting [2020/01/14 16:16]
stefanbaur WIP: Updated Info and turned steps into a script
Line 19: Line 19:
 ===== Installation Instructions ===== ===== 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 Jessieas 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. Everything else is still awaiting tests by volunteers like you.
  
 <code> <code>
 +#!/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 the X2Go repo
-add-apt-repository ppa:x2go/ppa # for Ubuntu+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
  
-apt-key adv --recv-keys --keyserver keys.gnupg.net E1F958385BFE2B6E # for Debian +# add the Arctica repo key 
-echo 'deb http://packages.x2go.org/debian jessie main' >>/etc/apt/sources.list.d/x2go.list # for Debian+wget -qO - http://packages.arctica-project.org/archive.key | apt-key add -
  
 # add the Arctica repo # add the Arctica repo
-wget -qO - http://packages.arctica-project.org/archive.key | sudo apt-key add - +echo 'deb http://packages.arctica-project.org/'$ID' '$VERSION_CODENAME' main> /etc/apt/sources.list.d/arctica.list
-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+
  
 # OR try the Arctica nightly repo # 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/'$ID'-nightly '$VERSION_CODENAME' main> /etc/apt/sources.list.d/arctica.list
-echo "deb http://packages.arctica-project.org/debian-nightly jessie main" >> /etc/apt/sources.list.d/arctica.list # for Debian Nightly+
  
 # update the package list before installing anything # update the package list before installing anything
-apt-get update+apt update
  
 # update the base system to the current package versions # update the base system to the current package versions
 # Download everything first, then upgrade, then dist-upgrade # Download everything first, then upgrade, then dist-upgrade
-apt-get dist-upgrade -d -y && \ +apt dist-upgrade -d -y 
-apt-get upgrade -y && \ +apt upgrade -y 
-apt-get dist-upgrade -y+apt dist-upgrade -y
  
 # Install X2Go packages, a minimal MATE Desktop, and Firefox as test application # Install X2Go packages, a minimal MATE Desktop, and Firefox as test application
-apt-get install -y \+apt install -y \
     x2goserver \     x2goserver \
     x2goserver-xsession \     x2goserver-xsession \
Line 58: Line 82:
     mate-notification-daemon \     mate-notification-daemon \
     mate-screensaver \     mate-screensaver \
-    libcanberra-pulse +    libcanberra-pulse
-    firefox +
- +
-apt-get install -y ubuntu-mate-themes # for Ubuntu +
-apt-get install -y 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 # add a user
-useradd -m -s /bin/bash <username> +if ! id -u x2gotestaccount ; then 
-passwd <username> + useradd -m -s /bin/bash x2gotestaccount 
-</code>+ echo 'Please set a password for user "x2gotestaccount".' 
 + passwd x2gotestaccount 
 +fi 
 +echo 'Setup complete.'</code>
  
 On the X2GoServer, edit /etc/x2go/x2goagent.options: On the X2GoServer, edit /etc/x2go/x2goagent.options:
doc/howto/nx-libs-betatesting.txt · Last modified: 2020/01/14 16:46 by stefanbaur