w,h = term.getSize() local GUIsCode = "gjdhi8" local OSCode = "gjdhi7" local UCode = "gjdhi9" local key = "" local UpCode = "gjdhj5" local CoCode = "gjdhlk" local aUCode = "gjdhlm" function sClear(x,y) term.clear() term.setCursorPos(x,y) end function cLine(y) term.setCursorPos(1,y) term.clearLine() end function cPos(x,y) term.setCursorPos(x,y) end function printCentered(str, ypos) term.setCursorPos(w/2 - #str/2, ypos) term.write(str) term.setCursorPos(1,ypos+1) end function printRight(str, ypos) term.setCursorPos(w - #str, ypos) term.write(str) term.setCursorPos(1,ypos+1) end function mainLogo() term.setBackgroundColor(colors.white) term.setTextColor(colors.red) sClear(1,1) local mainLogo = { [[ __ __ ]], [[ / \ / \ ]], [[ / \/ \ _______ __ ____ __ ]], [[ / /\ /\ \ | ___ | \ \ / /\ \ / / ]], [[ / / \__/ \ \ | | | | \ \/ / \ \/ / ]], [[ / / \ \ | |___| |_ / /\ \ / /\ \ ]], [[ /__/ \__\|_________| /_/ \_\/_/ \_\ ]], [[ __________ _______ ]], [[ _______________ | ______ | | _____| ]], [[ | | | | | | | |_____ ]], [[ | SETUP | | | | | |_____ | ]], [[ |_______________| | |______| | _____| | ]], [[ |__________| |_______| ]], [[ by: Marreman ]], [[ ]], } for i = 1, 15 do print(mainLogo[i]) end term.setBackgroundColor(colors.black) term.setTextColor(colors.white) end function main1() term.setBackgroundColor(colors.blue) term.setTextColor(colors.black) sClear(1,1) term.setBackgroundColor(colors.lightBlue) cLine(1) cLine(2) cLine(3) printCentered(string.rep("-", w), 1) printCentered("Wealcome to the setup of MaxxOS", 2) printCentered(string.rep("-", w), 3) term.setBackgroundColor(colors.blue) cPos(1,5) print("MaxxOS is a Operative System for Computercraft and it is like Windows XP in many ways, so if you like Windows, i think you will like MaxxOS!") printRight("//Marreman", 8) cPos(1,h-4) print("If you got a startup file, it will be renamed to startup2") printRight("Press 'INSTALL' to continue", h-2) printCentered(string.rep("-", w), h-3) printRight("[INSTALL]",h-1) end function startupCreate() if shell.dir("startup") then shell.run("rename startup startup2") else print("No startup file found.") end print("Creating startup file..") sfile = io.open("/startup", "w") sfile:write('shell.run("MaxxOS/MaxxOS")') sfile:close() end function install() sClear(1,1) print("Downloading market for www.turtlescripts.com") shell.run("pastebin get w1RtfqFd market") fs.makeDir("MaxxOS") print("Downloading MaxxOS. Please wait...") shell.run("market get "..GUIsCode.." MaxxOS/GUIs "..key.." [y]") shell.run("market get "..OSCode.." MaxxOS/MaxxOS "..key.." [y]") shell.run("market get "..UCode.." MaxxOS/Uninstall "..key.." [y]") shell.run("market get "..UpCode.." MaxxOS/Update "..key.." [y]") shell.run("market get "..CoCode.." MaxxOS/Command "..key.." [y]") shell.run("market get "..aUCode.." MaxxOS/autoUpdate "..key.." [y]") print("Download complete!") print("Creating startup file...") print("If you got a startup file, it will be renamed to startup2") startupCreate() print("Successfully created startup file!") print("Everything looks normal.") print("Press 'ENTER' on youre keyboard to run MaxxOS.") while true do event, scancode = os.pullEvent("key") if scancode == 28 then os.reboot() end end end mainLogo() sleep(3) main1() while true do event, button, xPos, yPos = os.pullEvent("mouse_click") if xPos >41 and xPos <52 and yPos == 18 then term.setBackgroundColor(colors.blue) install() end end

setup #gjdhi6

by MarremanMaxxOS v 3.5.2


Installation Instructions

Step 1

Install our market:

pastebin get w1RtfqFd market

The HTTP API must be enabled.

Step 2

Pull down the file:

market get gjdhi6 setup y
*y = override file

Step 3

Profit! Run file:

setup

View Code Download (3,937 bytes)