-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfedora_robust.def
107 lines (94 loc) · 2.33 KB
/
fedora_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
102
103
104
105
106
107
Bootstrap: docker
From: fedora:latest
%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
dnf install -y \
xfce4-panel \
xfce4-session \
xfce4-settings \
xfdesktop \
xfwm4 \
xorg-x11-server-Xorg \
dbus-x11 \
xauth \
curl \
wget \
firefox \
vim-enhanced \
nano \
htop \
make \
gcc \
gcc-c++ \
python3 \
python3-pip \
java-11-openjdk \
net-tools \
iputils \
gnupg2 \
dnf-plugins-core \
unzip \
zip \
tmux \
zsh \
git \
jq \
lynx \
traceroute \
mtr \
fish \
mc \
neovim \
p7zip \
unrar \
gnome-screenshot \
evolution \
dconf-editor \
gparted \
keepassxc \
nodejs \
npm
# Install multimedia and web browsing capabilities
dnf install -y vlc \
gimp \
inkscape \
gedit \
filezilla \
libreoffice
# Add fun utilities and games
dnf install -y \
fortune-mod \
sl \
cowsay \
neofetch \
xorg-x11-apps \
bsd-games
# Clean up to save space
dnf clean all
%runscript
echo "Welcome to the robust Fedora 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.