Last active
December 8, 2024 04:33
-
-
Save jas-/1062361 to your computer and use it in GitHub Desktop.
4.0GB Empty ISO
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dd if=/dev/zero of=file.iso bs=516096 seek=9182 count=0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# [email protected] | |
PATH="/bin:/usr/bin:/sbin:/usr/sbin" | |
Exec() | |
{ | |
if [ -f "os/$1" ] ; then | |
nohup qemu-system-x86_64 -m 1024 os/$1 -net user -net nic -redir tcp:8080::80 -redir tcp:2222::22 -redir tcp:4343::443 -vnc 127.0.0.1:1 -daemonize & | |
exit | |
else | |
echo "ISO not found, build it?" && ShowMenu | |
fi | |
} | |
ShowMenu() | |
{ | |
echo "What would you like to do?" | |
echo " 1 - LAMP Server" | |
echo " 2 - Ulteo OVD Server" | |
echo " 3 - DMZ Server" | |
echo " 4 - ISO Builder" | |
echo " 5 - Quit" | |
echo "Enter your selection:" | |
read DATA | |
if [ $DATA ] ; then | |
while [ $DATA ] ; do | |
case "$DATA" in | |
1 ) echo "Launching LAMP Server..." && Exec "lamp.iso" ;; | |
2 ) echo "Launching Ulteo OVD Server..." && Exec "ulteo.iso" ;; | |
3 ) echo "Launching DMZ Server..." && Exec "bsd.iso" ;; | |
4 ) echo "ISO Builder Menu" && ShowBuildMenu ;; | |
5 ) exit 0 ;; | |
* ) ShowMenu ;; | |
esac | |
done | |
else | |
ShowMenu; | |
fi | |
} | |
ShowBuildMenu() | |
{ | |
echo "Build menu not built..." | |
} | |
ShowMenu; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Where is the file