Created a PXE server with NetBoot
This commit is contained in:
parent
386bb4d7e6
commit
859d1e7920
3 changed files with 39 additions and 0 deletions
37
netbootxyz_install.sh
Normal file
37
netbootxyz_install.sh
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
#!/bin/bash
|
||||
|
||||
## Define admin user account
|
||||
if [ -z "$ADMIN_ACCOUNT"]
|
||||
then
|
||||
ADMIN_ACCOUNT=root
|
||||
fi
|
||||
su - ${ADMIN_ACCOUNT}
|
||||
|
||||
## Define bulk storage location
|
||||
if [ -z "$ZFS_DIR" ]
|
||||
then
|
||||
ZFS_DIR=/data
|
||||
fi
|
||||
|
||||
echo "Installing Netboot-xyz ..."
|
||||
NETBOOTXYZ_HOME=${ZFS_DIR}/netboot_xyz
|
||||
|
||||
NETBOOT_EXTERN_HTTP=11080
|
||||
|
||||
sudo docker run -d \
|
||||
--name netbootxyz \
|
||||
-p 3000:3000 \
|
||||
-p 69:69/udp \
|
||||
--publish ${NETBOOT_EXTERN_HTTP}:80 \
|
||||
--env PUID=1000 \
|
||||
--env PGID=1000 \
|
||||
--env TZ=America/Los_Angeles \
|
||||
--env MENU_VERSION=1.9.9 \
|
||||
--env PORT_RANGE=30000-30010 \
|
||||
--env SUBFOLDER=/ \
|
||||
--volume ${NETBOOTXYZ_HOME}/config:/config \
|
||||
--volume ${NETBOOTXYZ_HOME}/assets:/assets \
|
||||
--restart unless-stopped \
|
||||
lscr.io/linuxserver/netbootxyz:latest
|
||||
|
||||
echo "Successfully installed Netboot-xyz"
|
||||
|
|
@ -19,5 +19,6 @@ zfs create tank/gitlab
|
|||
zfs create tank/home
|
||||
zfs create tank/jupyter
|
||||
zfs create tank/mineos
|
||||
zfs create tank/netbootxyz
|
||||
zfs create tank/nextcloud
|
||||
zfs create tank/plex
|
||||
|
|
@ -60,6 +60,7 @@ sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin dock
|
|||
./gitlab_install.sh
|
||||
./jupyterhub_install.sh
|
||||
./mineos_install.sh
|
||||
./netbootxyz_install.sh
|
||||
./nextcloud_install.sh
|
||||
./plex_install.sh
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue