mirror of
https://github.com/edu4rdshl/linuxscripts.git
synced 2026-07-17 23:24:52 +00:00
Upload nspawn configs
This commit is contained in:
parent
eebf758172
commit
41d10ee8f6
6 changed files with 85 additions and 0 deletions
5
etc/systemd/nspawn/20-machines-profile.sh
Executable file
5
etc/systemd/nspawn/20-machines-profile.sh
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
export DISPLAY=":0.0"
|
||||
export LC_ALL="en_US.UTF-8"
|
||||
export PULSE_SERVER="/tmp/snr_PULSE_SERVER"
|
||||
# Fix Qt4 GUIs ("invalid Pixmap or Window parameter")
|
||||
export QT_X11_NO_MITSHM=1
|
||||
16
etc/systemd/nspawn/ArchLinux.nspawn
Normal file
16
etc/systemd/nspawn/ArchLinux.nspawn
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
[Exec]
|
||||
Boot=true
|
||||
Capability=CAP_NET_ADMIN
|
||||
|
||||
[Files]
|
||||
Bind=/dev/dri
|
||||
Bind=/dev/shm
|
||||
Bind=/dev/snd
|
||||
Bind=/dev/nvidia0
|
||||
Bind=/dev/nvidiactl
|
||||
Bind=/dev/nvidia-modeset
|
||||
Bind=/dev/nvidia-uvm
|
||||
Bind=/dev/nvidia-uvm-tools
|
||||
Bind=/run/user/1000/pulse/native:/tmp/pulse_server
|
||||
Bind=/etc/systemd/nspawn/20-machines-profile.sh:/etc/profile.d/20-machines-profile.sh
|
||||
BindReadOnly=/tmp/.X11-unix
|
||||
16
etc/systemd/nspawn/BlackArch.nspawn
Normal file
16
etc/systemd/nspawn/BlackArch.nspawn
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
[Exec]
|
||||
Boot=true
|
||||
Capability=CAP_NET_ADMIN
|
||||
|
||||
[Files]
|
||||
Bind=/dev/dri
|
||||
Bind=/dev/shm
|
||||
Bind=/dev/snd
|
||||
Bind=/dev/nvidia0
|
||||
Bind=/dev/nvidiactl
|
||||
Bind=/dev/nvidia-modeset
|
||||
Bind=/dev/nvidia-uvm
|
||||
Bind=/dev/nvidia-uvm-tools
|
||||
Bind=/run/user/1000/pulse/native:/tmp/pulse_server
|
||||
Bind=/etc/systemd/nspawn/20-machines-profile.sh:/etc/profile.d/20-machines-profile.sh
|
||||
BindReadOnly=/tmp/.X11-unix
|
||||
16
etc/systemd/nspawn/Debian.nspawn
Normal file
16
etc/systemd/nspawn/Debian.nspawn
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
[Exec]
|
||||
Boot=true
|
||||
Capability=CAP_NET_ADMIN
|
||||
|
||||
[Files]
|
||||
Bind=/dev/dri
|
||||
Bind=/dev/shm
|
||||
Bind=/dev/snd
|
||||
Bind=/dev/nvidia0
|
||||
Bind=/dev/nvidiactl
|
||||
Bind=/dev/nvidia-modeset
|
||||
Bind=/dev/nvidia-uvm
|
||||
Bind=/dev/nvidia-uvm-tools
|
||||
Bind=/run/user/1000/pulse/native:/tmp/pulse_server
|
||||
Bind=/etc/systemd/nspawn/20-machines-profile.sh:/etc/profile.d/20-machines-profile.sh
|
||||
BindReadOnly=/tmp/.X11-unix
|
||||
16
etc/systemd/nspawn/KaliLinux.nspawn
Normal file
16
etc/systemd/nspawn/KaliLinux.nspawn
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
[Exec]
|
||||
Boot=true
|
||||
Capability=CAP_NET_ADMIN
|
||||
|
||||
[Files]
|
||||
Bind=/dev/dri
|
||||
Bind=/dev/shm
|
||||
Bind=/dev/snd
|
||||
Bind=/dev/nvidia0
|
||||
Bind=/dev/nvidiactl
|
||||
Bind=/dev/nvidia-modeset
|
||||
Bind=/dev/nvidia-uvm
|
||||
Bind=/dev/nvidia-uvm-tools
|
||||
Bind=/run/user/1000/pulse/native:/tmp/pulse_server
|
||||
Bind=/etc/systemd/nspawn/20-machines-profile.sh:/etc/profile.d/20-machines-profile.sh
|
||||
BindReadOnly=/tmp/.X11-unix
|
||||
16
etc/systemd/nspawn/ParrotSec.nspawn
Normal file
16
etc/systemd/nspawn/ParrotSec.nspawn
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
[Exec]
|
||||
Boot=true
|
||||
Capability=CAP_NET_ADMIN
|
||||
|
||||
[Files]
|
||||
Bind=/dev/dri
|
||||
Bind=/dev/shm
|
||||
Bind=/dev/snd
|
||||
Bind=/dev/nvidia0
|
||||
Bind=/dev/nvidiactl
|
||||
Bind=/dev/nvidia-modeset
|
||||
Bind=/dev/nvidia-uvm
|
||||
Bind=/dev/nvidia-uvm-tools
|
||||
Bind=/run/user/1000/pulse/native:/tmp/pulse_server
|
||||
Bind=/etc/systemd/nspawn/20-machines-profile.sh:/etc/profile.d/20-machines-profile.sh
|
||||
BindReadOnly=/tmp/.X11-unix
|
||||
Loading…
Add table
Add a link
Reference in a new issue