Last active
July 11, 2021 10:17
-
-
Save Useless-Programer/26d9344797c39c836f802bdfad9ee68a to your computer and use it in GitHub Desktop.
This file contains 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 | |
while [ 1 ] | |
do | |
reset | |
echo 'VirtualBox OpenSores Commandline. Release Version:. 2.0-ESR "os2-ception"' | |
echo " VirtualBox GUI " | |
echo " VirtualBox exit " | |
echo " VirtualBox Overview " | |
echo "# VirtualBox ResetConfig# " | |
echo && VBoxManage list vms | |
echo " start " | |
echo " start/-sdl " | |
echo " revert " | |
echo " revert/-sel " | |
echo " snapget " | |
echo " snapget/-list " | |
echo " snapdel " | |
echo " snapdel/-sel " | |
echo " fakebios " | |
echo " fakebios/-del " | |
echo " createvm " | |
echo " createvm/-del " | |
echo -e "insert command here:. \c" && read "vmname" "command" | |
if [ "$command" == "fakebios" ] | |
then | |
echo "fake bios setup:. "$vmname"" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVendor" "American Megatrends Inc" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVersion" "string:1501" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSReleaseDate" "10/09/2012" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSReleaseMajor" "15" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSReleaseMinor" "01" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSFirmwareMajor" "8" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSFirmwareMinor" "15" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiSystemVendor" "Asus" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiSystemProduct" "R.O.G. AMD240X2" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiSystemVersion" "AM2II" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiSystemSerial" "To Be Filled By O.E.M." | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiSystemSKU" "To Be Filled By O.E.M." | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiSystemFamily" "X64-based-PC" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiSystemUuid" "40F43128-D273-DE11-AFDF-0026187A48E9" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiBoardVendor" "ASUSTeK Computer INC" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiBoardProduct" "Asus M4N78 SE" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiBoardVersion" "Rev X.0x" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiBoardSerial" "string:100888160000609" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiBoardAssetTag" "To Be Filled By O.E.M." | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiBoardLocInChass" "To Be Filled By O.E.M." | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiBoardBoardType" "10" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiChassisVendor" "To Be Filled By O.E.M." | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiChassisType" "3" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiChassisVersion" "To Be Filled By O.E.M." | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiChassisSerial" "To Be Filled By O.E.M." | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiChassisAssetTag" "Asset-1234567890" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiProcManufacturer" "AMD" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiProcVersion" "AMD Athlon(tm) II X2 240 Processor" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiOEMVBoxVer" "OEM-Ver_4.2.36" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiOEMVBoxRev" "OEM-Rev_104064" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/piix3ide/0/Config/PrimaryMaster/SerialNumber" "ST2458972" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/piix3ide/0/Config/PrimaryMaster/FirmwareRevision" "REV10ST" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/piix3ide/0/Config/PrimaryMaster/ModelNumber" "Seagate ST2458972" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/piix3ide/0/Config/PrimarySlave/SerialNumber" "VRT873487" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/piix3ide/0/Config/PrimarySlave/FirmwareRevision" "REV01" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/piix3ide/0/Config/PrimarySlave/ModelNumber" "LoopVirtualDrive" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/piix3ide/0/Config/SecondaryMaster/ATAPIProductId" "OEM278347" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/piix3ide/0/Config/SecondaryMaster/ATAPIRevision" "REV2" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/piix3ide/0/Config/SecondaryMaster/ATAPIVendorId" "OEM" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/piix3ide/0/Config/SecondarySlave/ATAPIProductId" "OEM278347" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/piix3ide/0/Config/SecondarySlave/ATAPIRevision" "REV2" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/piix3ide/0/Config/SecondarySlave/ATAPIVendorId" "OEM" | |
VBoxManage setextradata "$vmname" "VBoxInternal/CPUM/CMPXCHG8B" "1" | |
VBoxManage setextradata "$vmname" "VBoxInternal/CPUM/CMPXCHG16B" "1" | |
VBoxManage modifyvm "$vmname" "--largepages" "off" | |
VBoxManage modifyvm "$vmname" "--vram" "256" | |
read && reset | |
else | |
if [ "$command" == "fakebios/-del" ] | |
then | |
echo "fake bios reset:. "$vmname"" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVendor" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVersion" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSReleaseDate" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSReleaseMajor" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSReleaseMinor" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSFirmwareMajor" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSFirmwareMinor" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiSystemVendor" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiSystemProduct" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiSystemVersion" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiSystemSerial" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiSystemSKU" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiSystemFamily" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiSystemUuid" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiBoardVendor" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiBoardProduct" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiBoardVersion" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiBoardSerial" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiBoardAssetTag" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiBoardLocInChass" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiBoardBoardType" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiChassisVendor" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiChassisType" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiChassisVersion" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiChassisSerial" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiChassisAssetTag" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiProcManufacturer" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiProcVersion" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiOEMVBoxVer" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/pcbios/0/Config/DmiOEMVBoxRev" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/piix3ide/0/Config/PrimaryMaster/SerialNumber" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/piix3ide/0/Config/PrimaryMaster/FirmwareRevision" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/piix3ide/0/Config/PrimaryMaster/ModelNumber" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/piix3ide/0/Config/PrimarySlave/SerialNumber" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/piix3ide/0/Config/PrimarySlave/FirmwareRevision" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/piix3ide/0/Config/PrimarySlave/ModelNumber" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/piix3ide/0/Config/SecondaryMaster/ATAPIProductId" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/piix3ide/0/Config/SecondaryMaster/ATAPIRevision" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/piix3ide/0/Config/SecondaryMaster/ATAPIVendorId" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/piix3ide/0/Config/SecondarySlave/ATAPIProductId" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/piix3ide/0/Config/SecondarySlave/ATAPIRevision" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/Devices/piix3ide/0/Config/SecondarySlave/ATAPIVendorId" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/CPUM/CMPXCHG8B" "" | |
VBoxManage setextradata "$vmname" "VBoxInternal/CPUM/CMPXCHG16B" "" | |
VBoxManage modifyvm "$vmname" "--largepages" "off" | |
VBoxManage modifyvm "$vmname" "--vram" "256" | |
read && reset | |
else | |
if [ "$command" == "start" ] | |
then | |
VirtualBox --startvm "$vmname" & | |
read && reset | |
else | |
if [ "$command" == "start/-sdl" ] | |
then | |
VBoxSDL --startvm "$vmname" & | |
read && reset | |
else | |
if [ "$command" == "revert" ] | |
then | |
VBoxManage snapshot "$vmname" restorecurrent | |
read && reset | |
else | |
if [ "$command" == "revert/-sel" ] | |
then | |
VBoxManage snapshot "$vmname" list | |
read "snapname" | |
VBoxManage snapshot "$vmname" restore "$snapname" | |
read && reset | |
else | |
if [ "$command" == "snapget" ] | |
then | |
VBoxManage snapshot "$vmname" take "$vmname" | |
read && reset | |
else | |
if [ "$command" == "snapget/-list" ] | |
then | |
VBoxManage snapshot "$vmname" list | |
read && reset | |
else | |
if [ "$command" == "snapdel" ] | |
then | |
VBoxManage snapshot "$vmname" delete "$vmname" | |
read && reset | |
else | |
if [ "$command" == "snapdel/-sel" ] | |
then | |
VBoxManage snapshot "$vmname" list | |
read "snapname" | |
VBoxManage snapshot "$vmname" delete "$snapname" | |
read && reset | |
else | |
if [ "$command" == "createvm" ] | |
then | |
VBoxManage createvm --register --name "$vmname" | |
read && reset | |
else | |
if [ "$command" == "createvm/-del" ] | |
then | |
VBoxManage unregistervm --delete "$vmname" | |
read && reset | |
else | |
echo && reset | |
fi | |
fi | |
fi | |
fi | |
fi | |
fi | |
fi | |
fi | |
fi | |
fi | |
fi | |
fi | |
if [ "$vmname" == "VirtualBox" ] | |
then | |
if [ "$command" == "GUI" ] | |
then | |
VirtualBox | |
read && reset | |
else | |
if [ "$command" == "exit" ] | |
then | |
echo && reset | |
reset && exit | |
else | |
if [ "$command" == "ResetConfig" ] | |
then | |
rm -vrf '//home/debian/.config/VirtualBox' | |
read && reset | |
else | |
if [ "$command" == "Overview" ] | |
then | |
reset && echo 'how to use the program :...double-click an OS (listed with hash besides them) and middle-click to select it. triple-click a command (after the OS list) and middle-click to execute on the selected OS. to execute the "VirtualBox" commands you just triple-click and middle-click. when you see the cursor waiting after a command, just hit enter to reload and continue | |
VirtualBox GUI :. start the GUI manager | |
VirtualBox exit :. exit this thing | |
VirtualBox Overview :. display this info | |
VirtualBox ResetConfig :. reset virtualbox (added # for safety. remove to run) | |
start :. start VM in standard window mode | |
start/-sdl :. start VM in SDL mode (hosted graphics) | |
revert :. revert the VM to the last snapshot | |
revert/-sel :. select a snapshot to revert the VM | |
snapget :. get a new VM snapshot | |
snapget/-list :. get a list of VM snapshots | |
snapdel :. delete the last VM snapshot | |
snapdel/-sel :. select a VM snapshot to delete | |
fakebios :. set fakebios data to the VM (spoof real bios) | |
fakebios/-del :. delete the VM fakebios data | |
createvm :. create new generic VM (needs setup from the GUI) | |
createvm/-del :. delete an existing VM' | |
read && reset | |
else | |
echo && reset | |
fi | |
fi | |
fi | |
fi | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment