Initial commit
This commit is contained in:
4
overlay/etc/fstab
Normal file
4
overlay/etc/fstab
Normal file
@@ -0,0 +1,4 @@
|
||||
tmpfs /var/lib/rsyslog tmpfs defaults 0 0
|
||||
tmpfs /var/log tmpfs defaults 0 0
|
||||
tmpfs /var/lib/systemd tmpfs defaults 0 0
|
||||
tmpfs /var/lib/NetworkManager tmpfs defaults 0 0
|
||||
17
overlay/etc/pam.d/xinit
Normal file
17
overlay/etc/pam.d/xinit
Normal file
@@ -0,0 +1,17 @@
|
||||
#%PAM-1.0
|
||||
auth substack system-auth
|
||||
auth include postlogin
|
||||
account required pam_nologin.so
|
||||
account include system-auth
|
||||
password include system-auth
|
||||
# pam_selinux.so close should be the first session rule
|
||||
session required pam_selinux.so close
|
||||
session required pam_loginuid.so
|
||||
# pam_selinux.so open should only be followed by sessions to be executed in the user context
|
||||
session required pam_selinux.so open
|
||||
session required pam_namespace.so
|
||||
session optional pam_keyinit.so force revoke
|
||||
session include system-auth
|
||||
session required pam_exec.so /usr/local/libexec/home-overlay.sh
|
||||
session include postlogin
|
||||
-session optional pam_ck_connector.so
|
||||
4
overlay/etc/rsyslog.conf
Normal file
4
overlay/etc/rsyslog.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
global(workDirectory="/var/lib/rsyslog")
|
||||
module(load="imjournal"
|
||||
StateFile="imjournal.state")
|
||||
*.* @172.30.0.28
|
||||
21
overlay/etc/systemd/system/xinit@.service
Normal file
21
overlay/etc/systemd/system/xinit@.service
Normal file
@@ -0,0 +1,21 @@
|
||||
[Unit]
|
||||
Description=Start X.org for user %I
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
Wants=time-sync.target
|
||||
After=time-sync.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=%I
|
||||
WorkingDirectory=~
|
||||
PAMName=xinit
|
||||
TTYPath=/dev/tty7
|
||||
StandardInput=tty
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
ExecStart=/usr/bin/startx
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical.target
|
||||
9
overlay/etc/systemd/user/firefox.service
Normal file
9
overlay/etc/systemd/user/firefox.service
Normal file
@@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Firefox web browser
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/firefox
|
||||
Restart=always
|
||||
StandardInput=null
|
||||
StandardOutput=journal
|
||||
4
overlay/etc/systemd/user/graphical.target
Normal file
4
overlay/etc/systemd/user/graphical.target
Normal file
@@ -0,0 +1,4 @@
|
||||
[Unit]
|
||||
Description=Graphical Interface
|
||||
After=default.target
|
||||
AllowIsolate=yes
|
||||
1
overlay/etc/systemd/user/graphical.target.wants/firefox.service
Symbolic link
1
overlay/etc/systemd/user/graphical.target.wants/firefox.service
Symbolic link
@@ -0,0 +1 @@
|
||||
../firefox.service
|
||||
7
overlay/home/user/.xinitrc
Normal file
7
overlay/home/user/.xinitrc
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
xset s off
|
||||
xset -dpms
|
||||
systemctl --user import-environment DISPLAY
|
||||
systemctl --user start graphical.target
|
||||
exec matchbox-window-manager -use_titlebar no
|
||||
1
overlay/root/.ssh/authorized_keys
Normal file
1
overlay/root/.ssh/authorized_keys
Normal file
@@ -0,0 +1 @@
|
||||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJsL5fSylmiJmBtW0DH/viAAmtU2E/2M17GPvysiyRs+ dustin@rosalina
|
||||
2
overlay/usr/lib64/firefox/defaults/pref/autoconfig.js
Normal file
2
overlay/usr/lib64/firefox/defaults/pref/autoconfig.js
Normal file
@@ -0,0 +1,2 @@
|
||||
pref("general.config.filename", "firefox.cfg");
|
||||
pref("general.config.obscure_value", 0);
|
||||
10
overlay/usr/lib64/firefox/distribution/policies.json
Normal file
10
overlay/usr/lib64/firefox/distribution/policies.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"policies": {
|
||||
"BlockAboutConfig": true,
|
||||
"Extensions": {
|
||||
"Install": [
|
||||
"https://addons.mozilla.org/firefox/downloads/file/1105247/auto_fullscreen-1.0.0.2-fx.xpi"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
2
overlay/usr/lib64/firefox/firefox.cfg
Normal file
2
overlay/usr/lib64/firefox/firefox.cfg
Normal file
@@ -0,0 +1,2 @@
|
||||
// Load preferences from remote
|
||||
pref("autoadmin.global_config_url","http://rosalina.pyrocufflink.blue/~dustin/autoconfigfile.js");
|
||||
17
overlay/usr/local/libexec/home-overlay.sh
Executable file
17
overlay/usr/local/libexec/home-overlay.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
if mountpoint -q "${HOME}"; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
upperdir="${XDG_RUNTIME_DIR}"/home/rw
|
||||
workdir="${XDG_RUNTIME_DIR}"/home/.work
|
||||
|
||||
mkdir -p "${upperdir}"
|
||||
mkdir -p "${workdir}"
|
||||
|
||||
mount overlay \
|
||||
-t overlay \
|
||||
-o lowerdir="${HOME}",upperdir="${upperdir}",workdir="${workdir}" \
|
||||
"${HOME}"
|
||||
chown "${PAM_USER}": "${HOME}"
|
||||
Reference in New Issue
Block a user