-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxfce.def
86 lines (79 loc) · 2.79 KB
/
xfce.def
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
From: rockylinux:8.6
%environment
SHELL=/bin/bash
export SHELL
export "PATH=/opt/TurboVNC/bin:${PATH}"
# https://stackoverflow.com/questions/2499794/how-to-fix-a-locale-setting-warning-from-perl
export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
%post
# Only here to allow rootless building of container
cp /usr/bin/true /usr/sbin/groupadd
cp /usr/bin/true /usr/sbin/useradd
dnf -y install unbound-libs
dnf -y install libnsl
dnf -y install dnf-plugins-core
yum -y install epel-release
dnf -y install firefox
dnf -y install emacs
dnf -y install gedit
dnf -y install glibc-all-langpacks
dnf -y config-manager --set-enabled powertools
dnf -y update
dnf -y install glibc-all-langpacks
yum -y install Lmod
yum -y install xorg-x11-fonts-Type1 xorg-x11-fonts-misc
yum -y install libglvnd-opengl
yum install -y freeglut-devel
dnf -y groupinstall "xfce"
yum -y install xterm
yum -y install xkeyboard-config
yum -y install hostname
yum -y install which
yum -y install python3
yum -y install python3-pip
yes | pip3 install numpy
yum -y install xkbcomp
yum -y install xorg-x11-xkb-utils
yum -y install xauth
yum -y install wget
yum -y install tar
yum -y install xz
yum install -y \
less \
vim \
libxkbcommon-x11 \
libglvnd \
libXv \
xorg-x11-server-Xvfb \
tcsh \
motif \
libXp \
libXpm \
xterm \
git \
xdg-user-dirs
wget http://www.TurboVNC.org/key/VGL-GPG-KEY
rpm --import VGL-GPG-KEY
yum -y install git
export TURBOVNC_VERSION=2.2.6
wget --no-check-certificate https://sourceforge.net/projects/turbovnc/files/${TURBOVNC_VERSION}/turbovnc-${TURBOVNC_VERSION}.x86_64.rpm
yum -y install turbovnc-${TURBOVNC_VERSION}.x86_64.rpm
rm turbovnc-${TURBOVNC_VERSION}.x86_64.rpm
mkdir -p /opt/websockify
wget https://github.com/novnc/websockify/archive/master.tar.gz -q -O - | tar xzf - -C /opt/websockify --strip-components=1
yum clean all && rm -rf /var/cache/yum
dbus-uuidgen > /etc/machine-id
# Hide the non-host terminal
echo -e '#!/bin/bash\n
if [[ -z "$@" ]];then
ssh -t $HOSTNAME "export DISPLAY=$DISPLAY;export TMPDIR=$TMPDIR;export XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR;bash -l"
else
ssh -t $HOSTNAME "export DISPLAY=$DISPLAY;export TMPDIR=$TMPDIR;export XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR; $@ "
fi
' > /usr/bin/host_terminal
chmod +x /usr/bin/host_terminal
cp /usr/bin/xterm /usr/bin/real-xterm
cp /usr/bin/xfce4-terminal /usr/bin/real-xfce4-terminal
echo -e '#!/bin/bash\n/usr/bin/real-xterm -e "bash /usr/bin/host_terminal"' > /usr/bin/xterm
echo -e '#!/bin/bash\n/usr/bin/real-xfce4-terminal -e "/usr/bin/host_terminal \"$(echo $@ | sed 's/-x//g' )\""' > /usr/bin/xfce4-terminal