-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrobust.def
101 lines (88 loc) · 2.23 KB
/
robust.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
Bootstrap: docker
From: ubuntu:22.04
%setup
# No additional setup required outside the container.
%environment
export DISPLAY=localhost:10.0
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
export XDG_RUNTIME_DIR=/tmp/xdg-runtime
%post
# Create XDG runtime directory for D-Bus
mkdir -p /tmp/xdg-runtime
chmod 700 /tmp/xdg-runtime
# Update and install essential packages
apt-get update && apt-get install -y \
xfce4 \
xorg \
dbus-x11 \
xauth \
curl \
wget \
firefox \
vim \
nano \
htop \
build-essential \
python3 \
python3-pip \
openjdk-11-jdk \
net-tools \
iputils-ping \
gnupg2 \
software-properties-common \
unzip \
zip \
tmux \
zsh \
git \
jq \
lynx \
traceroute \
mtr \
fish \
mc \
neovim \
p7zip-full \
unrar \
gnome-screenshot \
evolution \
dconf-editor \
gparted \
keepassxc \
nodejs \
npm
# Install multimedia and web browsing capabilities
apt-get install -y vlc \
gimp \
inkscape \
gedit \
filezilla \
libreoffice
# Add fun utilities and games
apt-get install -y \
fortune \
sl \
cowsay \
neofetch \
x11-apps \
bsdgames
# Clean up to save space
apt-get clean
%runscript
echo "Welcome to the robust Ubuntu container!"
xfce4-session
%startscript
# Set up runtime directory and start D-Bus for GUI functionality
mkdir -p /tmp/xdg-runtime
export XDG_RUNTIME_DIR=/tmp/xdg-runtime
chmod 700 /tmp/xdg-runtime
eval $(dbus-launch --sh-syntax)
export DBUS_SESSION_BUS_ADDRESS
# Start XFCE session in background
startxfce4 &
%labels
Author "Nitrous Support Manager"
Version "2.1"
%help
This container includes a full desktop environment (XFCE) along with web browsing, multimedia, development tools, and many other tools to enhance the user experience.