Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "D:bin",
- "{\
- \"F:GKSH\",\
- \"\\\"shell.run(\\\\\\\"/system/Programs/GKSH/gksh\\\\\\\")\\\"\",\
- \"F:NetCMD\",\
- \"\\\"shell.run(\\\\\\\"/system/Programs/NetDrv/NetCMD\\\\\\\")\\\"\",\
- \"F:preview-mode\",\
- \"\\\"shell.run(\\\\\\\"clear\\\\\\\")\\\\\\\
- write(\\\\\\\"Press <Enter> to reboot\\\\\\\")\\\\\\\
- read()\\\\\\\
- os.reboot()\\\"\",\
- \"F:recovery\",\
- \"\\\"shell.run(\\\\\\\"/system/recovery\\\\\\\")\\\"\",\
- }",
- "D:boot",
- "{\
- \"D:Bootloaders\",\
- \"{\\\
- \\\"F:BootSelect\\\",\\\
- \\\"\\\\\\\"shell.run(\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"cd /boot/Bootloaders\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"GRUB Boot Menu\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Select Bootloader:\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- os.loadAPI(\\\\\\\\\\\\\\\"/system/lib/MenuAPI\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local a={\\\\\\\\\\\\\\\"Debian\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Debian Recovery\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"CraftOS Mode\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Shutdown\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Reboot\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Settings\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Boot from floppy (run /disk/startup)\\\\\\\\\\\\\\\"}\\\\\\\\\\\\\\\
- local gmn=MenuAPI.CreateMenu(a, \\\\\\\\\\\\\\\">\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\", 1, 5)\\\\\\\\\\\\\\\
- os.unloadAPI(\\\\\\\\\\\\\\\"MenuAPI\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- if gmn == 1 then shell.run(\\\\\\\\\\\\\\\"Debian\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if gmn == 2 then shell.run(\\\\\\\\\\\\\\\"Debian_Recovery\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if gmn == 3 then shell.run(\\\\\\\\\\\\\\\"CraftOS\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if gmn == 4 then os.shutdown()\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if gmn == 5 then os.reboot()\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if gmn == 6 then shell.run(\\\\\\\\\\\\\\\"/boot/grubsm\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if gmn==7 then \\\\\\\\\\\\\\\
- if fs.exists(\\\\\\\\\\\\\\\"/disk/startup\\\\\\\\\\\\\\\") then shell.run(\\\\\\\\\\\\\\\"/disk/startup\\\\\\\\\\\\\\\") \\\\\\\\\\\\\\\
- else\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"No startup file on disk!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- sleep(0.5)\\\\\\\\\\\\\\\
- os.reboot()\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- end\\\\\\\"\\\",\\\
- \\\"F:CraftOS\\\",\\\
- \\\"\\\\\\\"shell.run(\\\\\\\\\\\\\\\"cd /\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"shell\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"shutdown\\\\\\\\\\\\\\\")\\\\\\\"\\\",\\\
- \\\"F:Debian\\\",\\\
- \\\"\\\\\\\"shell.run(\\\\\\\\\\\\\\\"/system/start\\\\\\\\\\\\\\\")\\\\\\\"\\\",\\\
- \\\"F:Debian_Recovery\\\",\\\
- \\\"\\\\\\\"shell.run(\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Debian ComputerCraft Recovery Mode\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- sleep(1)\\\\\\\\\\\\\\\
- syscfg={\\\\\\\\\\\\\\\
- autologin=\\\\\\\\\\\\\\\"none\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\
- computername=\\\\\\\\\\\\\\\"Debian-Recovery\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\
- defaultusername=\\\\\\\\\\\\\\\"recovery\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- }\\\\\\\\\\\\\\\
- debmode=\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- os.loadAPI(\\\\\\\\\\\\\\\"/system/lib/DebAPI\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- login=\\\\\\\\\\\\\\\"root\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"/system/recovery\\\\\\\\\\\\\\\")\\\\\\\"\\\",\\\
- }\",\
- \"F:grub\",\
- \"\\\"if debmode==\\\\\\\"1\\\\\\\" then print(\\\\\\\"You can't start BootLoaders in Debian!\\\\\\\")\\\\\\\
- shell.run(config.shell)\\\\\\\
- end\\\\\\\
- print(\\\\\\\"ComputerCraft BootLoader\\\\\\\")\\\\\\\
- sleep(1)\\\\\\\
- write(\\\\\\\"Reading properties file\\\\\\\")\\\\\\\
- sleep(0.1)\\\\\\\
- write(\\\\\\\".\\\\\\\")\\\\\\\
- sleep(0.1)\\\\\\\
- write(\\\\\\\".\\\\\\\")\\\\\\\
- os.loadAPI(\\\\\\\"/boot/grubcfg\\\\\\\")\\\\\\\
- sleep(0.1)\\\\\\\
- print(\\\\\\\".\\\\\\\")\\\\\\\
- if grubcfg.reqpasswd==\\\\\\\"1\\\\\\\" then passwdc=\\\\\\\"0\\\\\\\"\\\\\\\
- while true do\\\\\\\
- write(\\\\\\\"Enter boot password: \\\\\\\")\\\\\\\
- password=read(\\\\\\\"*\\\\\\\")\\\\\\\
- if password==grubcfg.bootpassword then print(\\\\\\\"Access granted, booting..\\\\\\\")\\\\\\\
- passwdc=\\\\\\\"1\\\\\\\"\\\\\\\
- break\\\\\\\
- end\\\\\\\
- if passwdc==\\\\\\\"0\\\\\\\" then print(\\\\\\\"Incorrect password, try again!\\\\\\\")\\\\\\\
- end\\\\\\\
- end\\\\\\\
- end\\\\\\\
- print(\\\\\\\"Current boot priority is \\\\\\\", grubcfg.bootpriority)\\\\\\\
- sleep(0.5)\\\\\\\
- print(\\\\\\\"Starting up \\\\\\\", grubcfg.bootpriority)\\\\\\\
- sleep(0.1)\\\\\\\
- shell.run(\\\\\\\"cd /boot/Bootloaders\\\\\\\")\\\\\\\
- shell.run(grubcfg.bootpriority)\\\"\",\
- \"F:grubcfg\",\
- \"\\\"reqpasswd=\\\\\\\"0\\\\\\\"\\\\\\\
- bootpassword=\\\\\\\"\\\\\\\"\\\\\\\
- bootpriority=\\\\\\\"Debian\\\\\\\"\\\"\",\
- \"F:grubsm\",\
- \"\\\"shell.run(\\\\\\\"clear\\\\\\\")\\\\\\\
- print(\\\\\\\"GRUB Settings Menu\\\\\\\")\\\\\\\
- print(\\\\\\\"\\\\\\\")\\\\\\\
- os.loadAPI(\\\\\\\"/system/lib/MenuAPI\\\\\\\")\\\\\\\
- local a={\\\\\\\"Open GRUB Config file\\\\\\\", \\\\\\\"Edit MBR code\\\\\\\", \\\\\\\"Exit\\\\\\\"}\\\\\\\
- local gsus=MenuAPI.CreateMenu(a, \\\\\\\">\\\\\\\", \\\\\\\" \\\\\\\", 1, 3)\\\\\\\
- os.unloadAPI(\\\\\\\"MenuAPI\\\\\\\")\\\\\\\
- if gsus==1 then shell.run(\\\\\\\"edit /boot/grubcfg\\\\\\\")\\\\\\\
- end\\\\\\\
- if gsus==2 then shell.run(\\\\\\\"edit /startup\\\\\\\")\\\\\\\
- end\\\\\\\
- if gsus==3 then shell.run(\\\\\\\"/boot/Bootloaders/BootSelect\\\\\\\")\\\\\\\
- end\\\\\\\
- shell.run(\\\\\\\"/boot/grubsm\\\\\\\")\\\"\",\
- }",
- "D:doc",
- "{\
- \"F:DebianCC\",\
- \"\\\"Debian CC is a my OS for ComputerCraft computers, with Debian Look,\\\\\\\
- CREATED JUST FOR FUN and make one distribution of needed software.\\\\\\\
- RePack by utkabobr 2015\\\\\\\
- Licensed under GNU General Pubic License v3 (see in file /doc/License)\\\\\\\
- Documentation of Debian CC\\\\\\\
- Author of software: MelnikovSM(RePack by utkabobr)\\\\\\\
- Warn! In that OS has included MenuAPI lib by 1Ridav. API is installed with the consent of the author.\\\\\\\
- System is free for use and OpenSource.\\\\\\\
- Archive (zipped by 1Ridav's archiver) with latest image of system you can found on MelnikovSM's PasteBin account:\\\\\\\
- http://pastebin.com/u/MelnikovSM2\\\\\\\
- dpkg installer programs can setup the components to which author I'm not. All author rights is reserved.\\\\\\\
- If you want to add new program to dpkg repository, send reqest with program ULR to my email: melnikovsm000@mail.ru\\\\\\\
- Help for DebAPI and MenuAPI:\\\\\\\
- DebAPI.error(\\\\\\\"Error text\\\\\\\") - return error with text \\\\\\\"Error text\\\\\\\"\\\\\\\
- DebAPI.shutdown() - shutdown computer\\\\\\\
- DebAPi.reboot() - reboot computer\\\\\\\
- DebAPi.clear() - clear screen\\\\\\\
- DebAPi.id - varrible with computer id\\\\\\\
- DebAPi.time - varrible with in game time\\\\\\\
- DebAPi.day - varrible with in game day\\\\\\\
- DebAPI.request(\\\\\\\"Complete this request\\\\\\\") show request Complete this request? (Y/n) and user must select; this returns true if user entered y or false if user entered n or nil if he not entered anywhere\\\\\\\
- DebAPI.getPath(\\\\\\\"file\\\\\\\") returns full path to entered file\\\\\\\
- MenuAPI.CreateMenu(array, active-state, inactive-state, pos_x, pos_y)\\\\\\\
- function returing selected button number\\\\\\\
- code example: \\\\\\\
- local a={\\\\\\\"Button 1\\\\\\\", \\\\\\\"Button 2\\\\\\\", \\\\\\\"Button3\\\\\\\"}\\\\\\\
- local select=MenuAPI.CreateMenu(a, \\\\\\\">\\\\\\\", \\\\\\\" \\\\\\\", 3, 3)\\\\\\\
- if select=1 then print(\\\\\\\"You've pressed Button 1\\\\\\\") end\\\\\\\
- if select=2 then print(\\\\\\\"You've pressed Button 2\\\\\\\") end\\\\\\\
- if select=3 then print(\\\\\\\"You've pressed Button 3\\\\\\\") end\\\\\\\
- DialogAPI.select(\\\\\\\"Title\\\\\\\", \\\\\\\"Discription\\\\\\\", array_with_menu_options) makes semi-graphical window with reqest select option, returns option number\\\\\\\
- DialogAPI.enter(\\\\\\\"Title\\\\\\\", \\\\\\\"Discription\\\\\\\") show semi-graphical window with reqest enter anythink (set in discription), returns entered data(in string)\\\\\\\
- DialogAPI.enterPasswd(\\\\\\\"Title\\\\\\\", \\\\\\\"Discription\\\\\\\") show emi-graphical window with reqest enter secret data (for example: passwords) all entered symbols viewed as \\\\\\\"*\\\\\\\", returns entered data\\\\\\\
- DialogAPI.request(\\\\\\\"Title\\\\\\\", \\\\\\\"Description\\\\\\\") returns 1 if selected Yes or 2 if not\\\"\",\
- \"F:ReleaseNotes\",\
- \"\\\"Debian CC v0.3.6\\\\\\\
- Date of imaging: 09.10.2014\\\\\\\
- Changes:\\\\\\\
- * Added /etc/ dir use\\\\\\\
- * Added function request() to MenuAPI\\\\\\\
- * Added function request() and msg() to DialogAPI\\\\\\\
- * Advanced wget program\\\\\\\
- * Advanced libs loader\\\\\\\
- * Added black-white-only computers in DialogAPI\\\\\\\
- * dcc-configure and grub-configure now use DialogAPI\\\\\\\
- * motd and syscfg file are moved to /etc\\\\\\\
- * Added distro modifier file /etc/distro, file structure:\\\\\\\
- name=\\\\\\\"Name of Your distro\\\\\\\"\\\\\\\
- version=\\\\\\\"Version of Your distro\\\\\\\"\\\\\\\
- author=\\\\\\\"Name or Nickname of author\\\\\\\"\\\\\\\
- site=\\\\\\\"site of author or modifycation\\\\\\\"\\\\\\\
- * Added package manager pm and apt-get\\\\\\\
- * GPL license file are not included to distro\\\\\\\
- * Added make command\\\\\\\
- \\\\\\\
- UPDATE #1: 12.10.2014\\\\\\\
- \\\\\\\
- * Fixed apt-get errors.\\\\\\\
- * Added support for /etc/hostname\\\\\\\
- * Added hostname command\\\\\\\
- \\\\\\\
- UPDATE #2: 13.11.2014\\\\\\\
- \\\\\\\
- * Fixed log write API (DebAPI.writeLog(text)).\\\\\\\
- * Modified auth\\\\\\\
- \\\\\\\
- Version 0.3.7\\\\\\\
- Date of imaging: 19.03.2015\\\\\\\
- \\\\\\\
- * HTTP-API integration\\\\\\\
- \\\\\\\
- Version 0.3.8\\\\\\\
- Date of Imaging: 18.04.2015\\\\\\\
- \\\\\\\
- * apt-get fix\\\\\\\
- * default File Manager improvement\\\"\",\
- }",
- "D:home",
- "{\
- \"D:MelnikovSM\",\
- \"{\\\
- \\\"F:autorun\\\",\\\
- \\\"\\\\\\\"shell.run(\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Hello, user. Welcome to Debian CC port by MelnikovSM(RePack by utkabobr).\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Now you must configure your system.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Press <s> and <Enter> to skip configuring.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\"Press <Enter> to continue\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local text=read(\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- if text==\\\\\\\\\\\\\\\"s\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"rm autorun\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"cp /system/defaults/autorun autorun\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"You can configure your computer at anytime using command dcc-configure\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- else\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"/system/bin/dcc-configure\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- sleep(1)\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Computer will reboot now to complete configuring operation.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\"Press <Enter> to reboot\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- read(\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"rm autorun\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"cp /system/defaults/autorun autorun\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- os.reboot()\\\\\\\\\\\\\\\
- end\\\\\\\"\\\",\\\
- \\\"F:config\\\",\\\
- \\\"\\\\\\\"passwdreq='1'\\\\\\\\\\\\\\\
- password='Debian'\\\\\\\\\\\\\\\
- home='/home/MelnikovSM'\\\\\\\\\\\\\\\
- shell='/system/bin/sh'\\\\\\\"\\\",\\\
- }\",\
- }",
- "D:root",
- "{\
- \"F:autorun\",\
- \"\\\"--Paste your code here\\\"\",\
- \"F:config\",\
- \"\\\"passwdreq='1'\\\\\\\
- password='Debian'\\\\\\\
- home='/root'\\\\\\\
- shell='/system/bin/sh'\\\"\",\
- }",
- "F:startup",
- "\"if debmode==\\\"1\\\" then print(\\\"You can't start MBR binary on Debian\\\")\\\
- shell.run(usrshell)\\\
- end\\\
- peventback=os.pullEvent\\\
- os.pullEvent = os.pullEventRaw\\\
- shell.run(\\\"clear\\\")\\\
- print(\\\"Starting up MBR Code..\\\")\\\
- sleep(0.5)\\\
- shell.run(\\\"clear\\\")\\\
- shell.run(\\\"/boot/grub\\\")\"",
- "D:system",
- "{\
- \"D:Programs\",\
- \"{\\\
- \\\"D:GKSH\\\",\\\
- \\\"{\\\\\\\
- \\\\\\\"F:about\\\\\\\",\\\\\\\
- \\\\\\\"\\\\\\\\\\\\\\\"shell.run(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"System Information v0.1 by MelnikovSM(RePack by utkabobr):\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Computer Arch: ComputerCraft\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"OS: Debian CC v0.3 Alpha\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Computer IDentifier: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- local id=os.getComputerID()\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- print(id)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Computer IP: 192.168.0.\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- print(id)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Username: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- print(login)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Password: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- print(config.password)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Press <Enter> to close.\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- read()\\\\\\\\\\\\\\\"\\\\\\\",\\\\\\\
- \\\\\\\"F:gksh\\\\\\\",\\\\\\\
- \\\\\\\"\\\\\\\\\\\\\\\"local background=paintutils.loadImage(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"/system/background\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- while true do\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- a = {\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Open Command line\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Settings\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"About\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Exit\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Reboot\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Shutdown\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"}\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- paintutils.drawImage(background, 1, 1)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- term.setCursorPos(1, 1)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Debian CC Graphical Menu v0.1 by MelnikovSM(RePack by utkabobr)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- local select=MenuAPI.CreateMenu(a, \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\">\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", 1, 3)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- if select==1 then shell.run(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\") shell.run(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"/system/bin/sh\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\") end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- if select==2 then shell.run(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"/system/Programs/GKSH/settings\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\") end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- if select==3 then shell.run(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"/system/Programs/GKSH/about\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\") end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- if select==4 then break end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- if select==5 then DebAPI.reboot() end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- if select==6 then DebAPI.shutdown() end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\"\\\\\\\",\\\\\\\
- \\\\\\\"F:settings\\\\\\\",\\\\\\\
- \\\\\\\"\\\\\\\\\\\\\\\"local background=paintutils.loadImage(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"/system/background\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- while true do\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- local a = {\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Run Debian CC Configurer\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Run GRUB Configurer\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Run Network Configurer\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Open Recovery Menu\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Exit\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"}\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- paintutils.drawImage(background, 1, 1)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- term.setCursorPos(1, 1)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Debian CC Settings Menu v0.3.5 by MelnikovSM(RePack by utkabobr)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- local select=MenuAPI.CreateMenu(a, \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\">\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", 1, 3)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- if select==1 then shell.run(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"/system/bin/dcc-configure\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\") end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- if select==2 then shell.run(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"/system/bin/grub-configure\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\") end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- if select==3 then shell.run(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"/system/Programs/NetDrv/configure\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\") end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- if select==4 then shell.run(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"/system/recovery\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\") end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- if select==5 then break end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\"\\\\\\\",\\\\\\\
- }\\\",\\\
- \\\"D:NetDrv\\\",\\\
- \\\"{\\\\\\\
- \\\\\\\"F:NetCMD\\\\\\\",\\\\\\\
- \\\\\\\"\\\\\\\\\\\\\\\"print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"NetCMD v0.1 by MelnikovSM(RePack by utkabobr)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Press help to get commands list\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- while true==true do\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"NetCMD> \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- cmd=read()\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- cmdcor=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"0\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- if cmd==\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"help\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"NetCMD commands list:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"exit - exit from NetCMD\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"enable - enable rednet network functions\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"disable - disable rednet network functions\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"reload - reload rednet modem\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"config - open NetDrv config file\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- cmdcor=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- if cmd==\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"exit\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" then break end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- if cmd==\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"enable\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- network.open()\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- cmdcor=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- if cmd==\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"disable\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- network.close()\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- cmdcor=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- if cmd==\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"reload\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- network.restart()\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- cmdcor=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- if cmd==\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"config\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"/system/Programs/NetDrv/configure\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- cmdcor=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- if cmdcor==\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"0\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" then print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Unknown command. Press <help> to get list of commands.\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\") end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\"\\\\\\\",\\\\\\\
- \\\\\\\"F:configure\\\\\\\",\\\\\\\
- \\\\\\\"\\\\\\\\\\\\\\\"shell.run(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"NetDrv Configurer\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Select side of modem:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- local modemsides={\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"top\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"bottom\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"left\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"right\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"}\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- local select=MenuAPI.CreateMenu(modemsides, \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\">\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", 1, 3)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- local side=modemsides[select]\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Enable modem on boot? (Y/n) \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- enable=read()\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- if enable==\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Y\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- enable=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"true\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- else enable=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"false\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- local f=fs.open(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"/system/Programs/NetDrv/netcfg\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- local line1=(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"side='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" .. side .. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- local line2=(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"boot='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" .. enable .. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- f.writeLine(line1)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- f.writeLine(line2)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- f.close()\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Configuring done!\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\"\\\\\\\",\\\\\\\
- \\\\\\\"F:netcfg\\\\\\\",\\\\\\\
- \\\\\\\"\\\\\\\\\\\\\\\"side='top'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- boot='false'\\\\\\\\\\\\\\\"\\\\\\\",\\\\\\\
- \\\\\\\"F:network\\\\\\\",\\\\\\\
- \\\\\\\"\\\\\\\\\\\\\\\"id=os.getComputerID()\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- side=netcfg.side\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- boot=netcfg.boot\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- function open()\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Opening rednet modem at side\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- write(network.side)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"..\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- rednet.open(network.side)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Done! [OK]\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- function close()\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Closing rednet moden at side\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- write(network.side)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"..\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- rednet.close(network.side)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Done! [OK]\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- function restart()\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Restarting rednet modem..\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- network.close()\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- network.open()\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\"\\\\\\\",\\\\\\\
- \\\\\\\"F:startup\\\\\\\",\\\\\\\
- \\\\\\\"\\\\\\\\\\\\\\\"print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Network Driver v0.1 for Debian CC\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- os.loadAPI(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"/system/Programs/NetDrv/netcfg\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- os.loadAPI(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"/system/Programs/NetDrv/network\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- if network.boot==\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"true\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Enabling network functions..\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Opening rednet modem at side \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- write(network.side)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"..\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- rednet.open(network.side)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Done! [OK]\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Your computer identifier is \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- print(network.id)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Your computer IP is 192.168.0.\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- print(network.id)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Network driver loaded successfuly.\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\"\\\\\\\",\\\\\\\
- }\\\",\\\
- \\\"D:man\\\",\\\
- \\\"{\\\\\\\
- \\\\\\\"D:doc\\\\\\\",\\\\\\\
- \\\\\\\"{\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\"F:.index\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Welcome to Debian CC Manual software!\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- Here you can get info about included commands.\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- Run \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"man\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" without arguments for this page.\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- Run \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"man\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" <help_page> for get help page with index \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"help_page\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\".\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- Run \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"man Debian_CC\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" to get help about Debian CC Project.\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- Run \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"man ReleaseNotes\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" to get Debian CC Release Notes.\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\"F:DebianCC\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Debian CC is a my OS for ComputerCraft computers,\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- with Debian Look,\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- CREATED JUST FOR FUN \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- and make one distribution of needed software.\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- RePack by utkabobr 2015\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- Licensed under GNU General Pubic License v3 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- (see in file /doc/License)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- Documentation of Debian CC\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- Author of software: MelnikovSM\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- Warn! In that OS has included MenuAPI lib by 1Ridav. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- API is installed with the consent of the author.\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- System is free for use and OpenSource.\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- Archive (zipped by 1Ridav's archiver) with latest \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- image of system you can found on\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- MelnikovSM's PasteBin account:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- http://pastebin.com/u/MelnikovSM2\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- dpkg installer programs can setup \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- the components to which author I'm not. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- All author rights is reserved.\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- If you want to add new program to dpkg repository, \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- send reqest with program ULR to my email: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- melnikovsm2@gmail.com\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- Help for DebAPI and MenuAPI:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- DebAPI.error(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Error text\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\") - return error \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- with text \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Error text\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- DebAPI.shutdown() - shutdown computer\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- DebAPi.reboot() - reboot computer\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- DebAPi.clear() - clear screen\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- DebAPi.id - varrible with computer id\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- DebAPi.time - varrible with in game time\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- DebAPi.day - varrible with in game day\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- DebAPI.request(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Complete this request\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\") \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- show request Complete this request? (Y/n) and user \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- must select; this returns true if user entered y \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- or false if user entered n or nil if he not e\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- ntered anywhere\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- DebAPI.getPath(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"file\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\") returns full path to \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- entered file\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- MenuAPI.CreateMenu(array, active-state, \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- inactive-state, pos_x, pos_y)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- function returing selected button number\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- code example: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- local a={\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Button 1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Button 2\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Button3\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"}\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- local select=MenuAPI.CreateMenu(a, \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\">\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", 3, 3)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- if select=1 then print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"You've pressed\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- Button 1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- if select=2 then print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"You've pressed\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- Button 2\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- if select=3 then print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"You've pressed \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- Button 3\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- DialogAPI.select(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Title\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Discription\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- array_with_menu_options) makes semi-graphical \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- window with reqest select option, returns \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- option number\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- DialogAPI.enter(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Title\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Discription\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\") show \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- semi-graphical window with reqest enter \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- anythink (set in discription), returns \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- entered data(in string)\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- DialogAPI.enterPasswd(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Title\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Discription\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\") \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- show emi-graphical window with reqest enter secret \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- data (for example: passwords) all entered \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- symbols viewed as \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- returns entered data\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- DialogAPI.request(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Title\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Description\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\") returns 1 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- if selected Yes or 2 if not\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\"F:ReleaseNotes\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Debian CC v0.3.5\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- Date of imaging: 09.10.2014\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- Changes:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- * Added /etc/ dir use\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- * Added function request() to MenuAPI\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- * Added function request() and msg() to DialogAPI\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- * Advanced wget program\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- * Advanced libs loader\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- * Added black-white-only computers in DialogAPI\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- * dcc-configure and grub-configure now use \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- DialogAPI\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- * motd and syscfg file are moved to /etc\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- * Added distro modifier file /etc/distro, \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- file structure:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- name=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Name of Your distro\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- version=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Version of Your distro\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- author=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"Name or Nickname of author\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- site=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"site of author or modifycation\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- * Added package manager pm and apt-get\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- * GPL license file are not included to distro\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- * Added make command\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- UPDATE #1: 12.10.2014\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- * Fixed apt-get errors.\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- * Added support for /etc/hostname\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- * Added hostname command\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- UPDATE #2: 13.11.2014\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- * Fixed log write API (DebAPI.writeLog(text)).\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- * Modified auth\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- UPDATE #3: v0.3.6 at 23.11.2014\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\
- }\\\\\\\",\\\\\\\
- }\\\",\\\
- \\\"F:startup\\\",\\\
- \\\"\\\\\\\"print(\\\\\\\\\\\\\\\"Loading startup programs..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- --This is a autorun file for Debian CC\\\\\\\\\\\\\\\
- --That can help for autoload drivers, utilities\\\\\\\\\\\\\\\
- --and other programs what must start pre loging in\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"/system/Programs/NetDrv/startup\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Done!\\\\\\\\\\\\\\\")\\\\\\\"\\\",\\\
- }\",\
- \"F:auth\",\
- \"\\\"fauth=nil\\\\\\\
- syslogr=fs.open(\\\\\\\"/var/syslog\\\\\\\", \\\\\\\"r\\\\\\\")\\\\\\\
- local all=syslogr.readAll()\\\\\\\
- syslogr.close()\\\\\\\
- syslog=fs.open(\\\\\\\"/var/syslog\\\\\\\", \\\\\\\"w\\\\\\\")\\\\\\\
- syslog.writeLine(all)\\\\\\\
- syslog.writeLine(\\\\\\\"Starting up auth..\\\\\\\")\\\\\\\
- if fs.exists(\\\\\\\"/etc/motd\\\\\\\")==false then fs.copy(\\\\\\\"/system/defaults/motd\\\\\\\", \\\\\\\"/etc/motd\\\\\\\") end\\\\\\\
- while true do\\\\\\\
- if syscfg.autologin==\\\\\\\"user\\\\\\\" then\\\\\\\
- syslog.writeLine(\\\\\\\"[Auth] Using Autologin.\\\\\\\")\\\\\\\
- print(\\\\\\\" \\\\\\\")\\\\\\\
- print(\\\\\\\"[Warning] Autologin enabled!\\\\\\\")\\\\\\\
- print(\\\\\\\"[Warning] That can take computer avilable for everyone.\\\\\\\")\\\\\\\
- print(\\\\\\\"[Warning] You can change it in file /system/syscfg\\\\\\\")\\\\\\\
- sleep(3)\\\\\\\
- os.loadAPI(\\\\\\\"/home/MelnikovSM/config\\\\\\\")\\\\\\\
- login=syscfg.defaultusername\\\\\\\
- shell.run(\\\\\\\"cd \\\\\\\", config.home)\\\\\\\
- shell.run(\\\\\\\"/system/bin/cat /etc/motd\\\\\\\")\\\\\\\
- local path=shell.path()\\\\\\\
- local path2=path .. \\\\\\\":/bin:/system/bin\\\\\\\"\\\\\\\
- shell.setPath(path2)\\\\\\\
- shell.run(\\\\\\\"/home/MelnikovSM/autorun\\\\\\\")\\\\\\\
- syslog.close()\\\\\\\
- \\\\\\\
- shell.run(config.shell)\\\\\\\
- DebAPI.shutdown()\\\\\\\
- end\\\\\\\
- if syscfg.autologin==\\\\\\\"none\\\\\\\" then\\\\\\\
- syslog.writeLine(\\\\\\\"[Auth] Using login.\\\\\\\")\\\\\\\
- if fauth==nil then \\\\\\\
- print(\\\\\\\" \\\\\\\")\\\\\\\
- print(distro.name .. \\\\\\\" \\\\\\\" .. distro.version .. \\\\\\\" \\\\\\\" .. syscfg.computername)\\\\\\\
- print(\\\\\\\" \\\\\\\")\\\\\\\
- fauth='d'\\\\\\\
- end\\\\\\\
- write(syscfg.computername)\\\\\\\
- write(\\\\\\\" login: \\\\\\\")\\\\\\\
- login = read()\\\\\\\
- syslog.writeLine(\\\\\\\"[Auth] Try to login as \\\\\\\" .. login)\\\\\\\
- usrcorr=\\\\\\\"0\\\\\\\"\\\\\\\
- if login == syscfg.defaultusername then\\\\\\\
- syslog.writeLine(\\\\\\\"[Auth] Try to login as default user\\\\\\\")\\\\\\\
- syslog.writeLine(\\\\\\\"[Auth] Loading user config..\\\\\\\")\\\\\\\
- os.loadAPI(\\\\\\\"/home/MelnikovSM/config\\\\\\\")\\\\\\\
- syslog.close()\\\\\\\
- shell.run(\\\\\\\"/system/auth2\\\\\\\")\\\\\\\
- usrcorr=\\\\\\\"1\\\\\\\"\\\\\\\
- end\\\\\\\
- if login==\\\\\\\"root\\\\\\\" then \\\\\\\
- syslog.writeLine(\\\\\\\"[Auth] Try to login as root.\\\\\\\")\\\\\\\
- syslog.close()\\\\\\\
- shell.run(\\\\\\\"/system/rootmode\\\\\\\")\\\\\\\
- usrcorr=\\\\\\\"1\\\\\\\"\\\\\\\
- end\\\\\\\
- if usrcorr==\\\\\\\"0\\\\\\\" then\\\\\\\
- syslog.writeLine(\\\\\\\"[Auth] Username incorrect!\\\\\\\")\\\\\\\
- print(\\\\\\\"Username incorrect, try again!\\\\\\\")\\\\\\\
- end\\\\\\\
- end\\\\\\\
- end\\\"\",\
- \"F:auth2\",\
- \"\\\"local syslogr=fs.open(\\\\\\\"/var/syslog\\\\\\\", \\\\\\\"r\\\\\\\")\\\\\\\
- local syslogold=syslogr.readAll()\\\\\\\
- syslogr.close()\\\\\\\
- syslog=fs.open(\\\\\\\"/var/syslog\\\\\\\", \\\\\\\"w\\\\\\\")\\\\\\\
- syslog.writeLine(syslogold)\\\\\\\
- if config.passwdreq==\\\\\\\"1\\\\\\\" then\\\\\\\
- while true do\\\\\\\
- syslog.writeLine(\\\\\\\"[Auth] Reqesting user's password!\\\\\\\")\\\\\\\
- write(\\\\\\\"Password: \\\\\\\")\\\\\\\
- password2=read(\\\\\\\"*\\\\\\\")\\\\\\\
- syslog.writeLine(\\\\\\\"[Auth] Entered password\\\\\\\" .. password2)\\\\\\\
- if config.password==password2 then break\\\\\\\
- else \\\\\\\
- syslog.writeLine(\\\\\\\"[Auth] Enterd incorrect password!\\\\\\\")\\\\\\\
- print \\\\\\\"Incorrect Password, try again!\\\\\\\"\\\\\\\
- end\\\\\\\
- end\\\\\\\
- end\\\\\\\
- syslog.writeLine(\\\\\\\"[Auth] User \\\\\\\" .. login .. \\\\\\\" logged in.\\\\\\\")\\\\\\\
- shell.run(\\\\\\\"cd \\\\\\\", config.home)\\\\\\\
- shell.run(\\\\\\\"/system/bin/cat /etc/motd\\\\\\\")\\\\\\\
- if fs.exists(\\\\\\\"/etc/syscfg\\\\\\\")==false then print(\\\\\\\"[!] System configuration file is not founded. Please run dcc-configure to generate it!\\\\\\\") end\\\\\\\
- shell.run(\\\\\\\"autorun\\\\\\\")\\\\\\\
- syslog.writeLine(\\\\\\\"[Auth] Starting user shell..\\\\\\\")\\\\\\\
- local path=shell.path()\\\\\\\
- local path2=path .. \\\\\\\":/bin:/system/bin\\\\\\\"\\\\\\\
- shell.setPath(path2)\\\\\\\
- local defail=shell.run(config.shell)\\\\\\\
- if defail==false then\\\\\\\
- syslog.writeLine(\\\\\\\"[Fatal Error] Could'nt start user shell!\\\\\\\")\\\\\\\
- syslog.writeLine(\\\\\\\"Crash report:\\\\\\\")\\\\\\\
- syslog.writeLine(\\\\\\\"Shell: \\\\\\\" .. config.shell)\\\\\\\
- syslog.writeLine(\\\\\\\"System cannot continue runtime!\\\\\\\")\\\\\\\
- syslog.writeLine(\\\\\\\"Reboot required! Reboot in 10 sec.\\\\\\\")\\\\\\\
- shell.run(\\\\\\\"clear\\\\\\\")\\\\\\\
- print(\\\\\\\"Debian CC Crash Report\\\\\\\")\\\\\\\
- print(\\\\\\\" \\\\\\\")\\\\\\\
- print(\\\\\\\"Debian CC Cannot start command promt.\\\\\\\")\\\\\\\
- print(\\\\\\\" \\\\\\\")\\\\\\\
- print(\\\\\\\"Debug info:\\\\\\\")\\\\\\\
- print(\\\\\\\"Shell: \\\\\\\" .. config.shell)\\\\\\\
- print(\\\\\\\" \\\\\\\")\\\\\\\
- print(\\\\\\\"If you seen that message after editing\\\\\\\")\\\\\\\
- print(\\\\\\\"~/config file you must check path to shell\\\\\\\")\\\\\\\
- print(\\\\\\\"or errors in your shell program.\\\\\\\")\\\\\\\
- print(\\\\\\\" \\\\\\\")\\\\\\\
- print(\\\\\\\"Reboot in 10 sec\\\\\\\")\\\\\\\
- sleep(10)\\\\\\\
- syslog.writeLine(\\\\\\\"[Info] Will now reboot.\\\\\\\")\\\\\\\
- syslog.close()\\\\\\\
- DebAPI.reboot()\\\\\\\
- end\\\\\\\
- syslog.writeLine(\\\\\\\"[Info] Will now halt\\\\\\\")\\\\\\\
- DebAPI.shutdown()\\\"\",\
- \"F:background\",\
- \"\\\"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\"\",\
- \"D:bin\",\
- \"{\\\
- \\\"F:about\\\",\\\
- \\\"\\\\\\\"shell.run(\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(distro.name .. \\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\" .. distro.version .. \\\\\\\\\\\\\\\" by \\\\\\\\\\\\\\\" .. distro.author)\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Developer's web-site: \\\\\\\\\\\\\\\" .. distro.site)\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Information about this computer:\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- if term.isColour()==true and turtle==nil then\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Platform Arch: Advanced Computer\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- elseif term.isColour()==false and turtle==nil then\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Platform Arch: Default Computer\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- elseif term.isColour()==false and not turtle==nil then\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Platform Arch: Default Turlte\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- elseif term.isColour() and not turtle==nil then\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Platform Arch: Advanced Turtle\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"OS: Debian ComputerCraft\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Current User: \\\\\\\\\\\\\\\", login)\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Computer IP: 192.168.0.\\\\\\\\\\\\\\\", DebAPI.id)\\\\\\\"\\\",\\\
- \\\"F:apt-get\\\",\\\
- \\\"\\\\\\\"args={...}\\\\\\\\\\\\\\\
- if #args==2 or #args==1 then\\\\\\\\\\\\\\\
- if args[1]==\\\\\\\\\\\\\\\"list\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"pm list\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- elseif args[1]==\\\\\\\\\\\\\\\"install\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- if args[1]==\\\\\\\\\\\\\\\"install\\\\\\\\\\\\\\\" and args[2]==nil then\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Usage: apt-get install <package name>\\\\\\\\\\\\\\\") else\\\\\\\\\\\\\\\
- local repo=\\\\\\\\\\\\\\\"http://debiancc.melnikovsm.tk/packages/\\\\\\\\\\\\\\\" --repository\\\\\\\\\\\\\\\
- local debpath=(\\\\\\\\\\\\\\\"/tmp/\\\\\\\\\\\\\\\" .. math.random(0000, 9999) .. \\\\\\\\\\\\\\\".deb\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"wget \\\\\\\\\\\\\\\" .. repo .. args[2] .. \\\\\\\\\\\\\\\".deb --full-path \\\\\\\\\\\\\\\" .. debpath)\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"pm install \\\\\\\\\\\\\\\" .. debpath)\\\\\\\\\\\\\\\
- DebAPI.clearCache() end\\\\\\\\\\\\\\\
- elseif args[1]==\\\\\\\\\\\\\\\"remove\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- if args[2]==nil then\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Usage apt-get remove <package index>\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- else shell.run(\\\\\\\\\\\\\\\"pm remove \\\\\\\\\\\\\\\" .. args[2]) end\\\\\\\\\\\\\\\
- else print(\\\\\\\\\\\\\\\"Usage:\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"apt-get list\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"apt-get install <package>\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"apt-get remove <package>\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- end\\\\\\\"\\\",\\\
- \\\"F:archiver\\\",\\\
- \\\"\\\\\\\"print(\\\\\\\\\\\\\\\"Debian CC Archiver v0.1 by 1Ridav\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- tArgs = {...}\\\\\\\\\\\\\\\
- local function getPath(input)\\\\\\\\\\\\\\\
- if string.sub(input, 1, 1)==\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" then path=input else\\\\\\\\\\\\\\\
- path=(\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. shell.dir() .. \\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. input) end\\\\\\\\\\\\\\\
- return path\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if tArgs[2] then\\\\\\\\\\\\\\\
- tArgs[2]=getPath(tArgs[2])\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- local FFormat = \\\\\\\\\\\\\\\".arch\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- local nFile, nDir, size = 0, 0\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- if #tArgs < 3 then \\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Usage:\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- ..\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\narchive zip <DIR> <ZIPname> <DIRtoSkip>\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- ..\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\narchive unzip <ZIPname> <DIR>\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- local function fopen(path, mode)\\\\\\\\\\\\\\\
- local f = fs.open(path, mode)\\\\\\\\\\\\\\\
- if not f then \\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"ERROR: Could not open \\\\\\\\\\\\\\\"..path..\\\\\\\\\\\\\\\" with mode \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\"..mode..\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- exit()\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- return f\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- local function skip(df)\\\\\\\\\\\\\\\
- for i = 3, #tArgs do\\\\\\\\\\\\\\\
- if tArgs[i] == fs.getName(df) then\\\\\\\\\\\\\\\
- return true\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- return false\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- local function zip(file)\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"zipping: \\\\\\\\\\\\\\\".. file)\\\\\\\\\\\\\\\
- local f = fopen(file, \\\\\\\\\\\\\\\"r\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local z = textutils.serialize(f.readAll())\\\\\\\\\\\\\\\
- f.close()\\\\\\\\\\\\\\\
- return z\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- local function ZIP(path)\\\\\\\\\\\\\\\
- local list = fs.list(path)\\\\\\\\\\\\\\\
- local array = {}\\\\\\\\\\\\\\\
- local t, name, d = 0, \\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\", 0\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- for i = 2, #list * 2, 2 do\\\\\\\\\\\\\\\
- t = i/2\\\\\\\\\\\\\\\
- local tpath = path..\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\"..list[t]\\\\\\\\\\\\\\\
- if fs.isDir(tpath) then\\\\\\\\\\\\\\\
- if not skip(tpath) then\\\\\\\\\\\\\\\
- name = \\\\\\\\\\\\\\\"D:\\\\\\\\\\\\\\\"..list[t]\\\\\\\\\\\\\\\
- array[i] = ZIP(tpath)\\\\\\\\\\\\\\\
- nDir = nDir + 1\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- else\\\\\\\\\\\\\\\
- name = \\\\\\\\\\\\\\\"F:\\\\\\\\\\\\\\\"..list[t]\\\\\\\\\\\\\\\
- array[i] = zip(tpath)\\\\\\\\\\\\\\\
- nFile = nFile + 1\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- array[i - 1] = name\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- return textutils.serialize(array)\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- local function unzip(text, path)\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"unzipping: \\\\\\\\\\\\\\\"..path)\\\\\\\\\\\\\\\
- local f = fopen(path, \\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- f.write(textutils.unserialize(text))\\\\\\\\\\\\\\\
- f.close()\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- local function UNZIP(text, path)\\\\\\\\\\\\\\\
- local array = textutils.unserialize(text)\\\\\\\\\\\\\\\
- local unz, dp\\\\\\\\\\\\\\\
- local d = 0\\\\\\\\\\\\\\\
- for i = 2, #array, 2 do\\\\\\\\\\\\\\\
- if string.sub(array[i-1], 1, 1) == \\\\\\\\\\\\\\\"D\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- dp = string.sub(array[i-1], 3, #array[i-1])\\\\\\\\\\\\\\\
- fs.makeDir(path..\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\"..dp)\\\\\\\\\\\\\\\
- UNZIP(array[i], path..\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\"..dp)\\\\\\\\\\\\\\\
- nDir = nDir + 1\\\\\\\\\\\\\\\
- elseif string.sub(array[i-1], 1, 1) == \\\\\\\\\\\\\\\"F\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- local p = string.sub(array[i-1], 3, #array[i-1])\\\\\\\\\\\\\\\
- unzip(array[i], path..\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\"..p)\\\\\\\\\\\\\\\
- nFile = nFile + 1\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- local function result()\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\nDone\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- ,\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\n size: \\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- ,size, \\\\\\\\\\\\\\\" B \\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- ,math.floor(size/1024), \\\\\\\\\\\\\\\" KB\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- ,\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\n Files: \\\\\\\\\\\\\\\", nFile\\\\\\\\\\\\\\\
- ,\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\n Folders: \\\\\\\\\\\\\\\", nDir\\\\\\\\\\\\\\\
- )\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- if tArgs[1] == \\\\\\\\\\\\\\\"zip\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- if fs.exists(tArgs[2]) and fs.isDir(tArgs[2]) then\\\\\\\\\\\\\\\
- local zipped = ZIP(shell.resolve(tArgs[2]))\\\\\\\\\\\\\\\
- local f = fs.open(tArgs[3]..FFormat, \\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- f.write(zipped)\\\\\\\\\\\\\\\
- f.close()\\\\\\\\\\\\\\\
- zipped = nil\\\\\\\\\\\\\\\
- size = fs.getSize(tArgs[3]..FFormat)\\\\\\\\\\\\\\\
- result() \\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- elseif tArgs[1] == \\\\\\\\\\\\\\\"unzip\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- local f = fopen(tArgs[2], \\\\\\\\\\\\\\\"r\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- if not fs.exists(tArgs[3]) then \\\\\\\\\\\\\\\
- fs.makeDir(tArgs[3]) \\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- UNZIP(f.readAll(), tArgs[3])\\\\\\\\\\\\\\\
- size = fs.getSize(tArgs[2])\\\\\\\\\\\\\\\
- result()\\\\\\\\\\\\\\\
- end\\\\\\\"\\\",\\\
- \\\"F:autorun-disk\\\",\\\
- \\\"\\\\\\\"print(\\\\\\\\\\\\\\\"Disk autorun file launcher v0.1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- while true do\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\"Are you want to open disk file?(Y/n) \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local switch=read()\\\\\\\\\\\\\\\
- if switch==\\\\\\\\\\\\\\\"Y\\\\\\\\\\\\\\\" then \\\\\\\\\\\\\\\
- local cor=\\\\\\\\\\\\\\\"0\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- local cor=\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- break \\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if switch==\\\\\\\\\\\\\\\"n\\\\\\\\\\\\\\\" then \\\\\\\\\\\\\\\
- local cor=\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- break\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if cor==\\\\\\\\\\\\\\\"0\\\\\\\\\\\\\\\" then print(\\\\\\\\\\\\\\\"Unexperted nomber! Press enter <Y> or <n>\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if switch==\\\\\\\\\\\\\\\"Y\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Loading..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"/disk/autorun\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if switch==\\\\\\\\\\\\\\\"n\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Terminated by User!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\"\\\",\\\
- \\\"F:backup\\\",\\\
- \\\"\\\\\\\"if false==fs.exists(\\\\\\\\\\\\\\\"/var/backup\\\\\\\\\\\\\\\") then\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"mkdir /var/backup\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Debian CC Backup Tool by MelnikovSM(RePack by utkabobr)\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Backup Tool using Archiver by 1Ridav\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Enter name of this image:\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- bname=read()\\\\\\\\\\\\\\\
- command=(\\\\\\\\\\\\\\\"/system/bin/archiver zip / /var/backup/\\\\\\\\\\\\\\\" .. bname .. \\\\\\\\\\\\\\\" rom tmp treasure backup\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Saving backup image us /var/backup/\\\\\\\\\\\\\\\", bname)\\\\\\\\\\\\\\\
- shell.run(command)\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Computer image successfuly saved as \\\\\\\\\\\\\\\", bname)\\\\\\\"\\\",\\\
- \\\"F:bash\\\",\\\
- \\\"\\\\\\\"local historyfile=fs.open(config.home ..\\\\\\\\\\\\\\\"/.bash_history\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local history={}\\\\\\\\\\\\\\\
- if fs.exists(config.home .. \\\\\\\\\\\\\\\"/.bash_history\\\\\\\\\\\\\\\")==true then\\\\\\\\\\\\\\\
- local hr=fs.open(config.home .. \\\\\\\\\\\\\\\"/.bash_history\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"r\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- while true do\\\\\\\\\\\\\\\
- insert=hr.readLine()\\\\\\\\\\\\\\\
- if insert==nil then break end\\\\\\\\\\\\\\\
- table.insert(history, insert)\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- while true do\\\\\\\\\\\\\\\
- sush=\\\\\\\\\\\\\\\"0\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- if (\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. shell.dir())==config.home then\\\\\\\\\\\\\\\
- upath=\\\\\\\\\\\\\\\"~\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- else\\\\\\\\\\\\\\\
- upath=fs.getName(\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" ..shell.dir())\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if login==\\\\\\\\\\\\\\\"root\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- write(login .. \\\\\\\\\\\\\\\"@\\\\\\\\\\\\\\\" .. syscfg.computername .. \\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\" .. upath .. \\\\\\\\\\\\\\\" # \\\\\\\\\\\\\\\") \\\\\\\\\\\\\\\
- sush=\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- else\\\\\\\\\\\\\\\
- write(login .. \\\\\\\\\\\\\\\"@\\\\\\\\\\\\\\\" .. syscfg.computername .. \\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\" .. upath .. \\\\\\\\\\\\\\\" $ \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- local command = read(nil, history)\\\\\\\\\\\\\\\
- historyfile.writeLine(command)\\\\\\\\\\\\\\\
- table.insert(history, command)\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- shcor=\\\\\\\\\\\\\\\"0\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- if command==\\\\\\\\\\\\\\\"exit\\\\\\\\\\\\\\\" then \\\\\\\\\\\\\\\
- historyfile.close()\\\\\\\\\\\\\\\
- break\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if command==\\\\\\\\\\\\\\\"su\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"/system/rootmode\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if command==\\\\\\\\\\\\\\\"grubsm\\\\\\\\\\\\\\\" then shell.run(\\\\\\\\\\\\\\\"/boot/grubsm\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shcor=\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if command==\\\\\\\\\\\\\\\"reboot --bs\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- debmode=\\\\\\\\\\\\\\\"0\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"/boot/Bootloaders/BootSelect\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if command==\\\\\\\\\\\\\\\"reboot --force\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- os.reboot()\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if command==\\\\\\\\\\\\\\\"help\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- shcor=\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"/system/bin/help\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if command==\\\\\\\\\\\\\\\"about\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"/system/bin/about\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shcor=\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if command==\\\\\\\\\\\\\\\"path\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- print(path2)\\\\\\\\\\\\\\\
- shcor=\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if command==\\\\\\\\\\\\\\\"cd ~\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"cd \\\\\\\\\\\\\\\", config.home)\\\\\\\\\\\\\\\
- shcor=\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if command==\\\\\\\\\\\\\\\"7a\\\\\\\\\\\\\\\" then print('[Easter Egg] 7th \\\\\\\\\\\\\\\"A\\\\\\\\\\\\\\\" class at school No. 109 is a zoopark, circus and hell in one place.')\\\\\\\\\\\\\\\
- shcor=\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\" end\\\\\\\\\\\\\\\
- if shcor==\\\\\\\\\\\\\\\"0\\\\\\\\\\\\\\\" then shell.run(command)\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- end\\\\\\\"\\\",\\\
- \\\"F:browser\\\",\\\
- \\\"\\\\\\\"local args={...}\\\\\\\\\\\\\\\
- if #args==1 then\\\\\\\\\\\\\\\
- DebAPI.clearCache()\\\\\\\\\\\\\\\
- DebAPI.getFile(args[1], \\\\\\\\\\\\\\\"/tmp/browser\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"edit /tmp/browser\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- DebAPI.clearCache()\\\\\\\\\\\\\\\
- else\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Usage: browser <http://website.net/index.html>\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\"\\\",\\\
- \\\"F:cat\\\",\\\
- \\\"\\\\\\\"arg = {...}\\\\\\\\\\\\\\\
- if #arg == 1 then\\\\\\\\\\\\\\\
- if fs.exists(arg[1])==true then\\\\\\\\\\\\\\\
- if fs.isDir(arg[1])==false then\\\\\\\\\\\\\\\
- local f=fs.open(arg[1], \\\\\\\\\\\\\\\"r\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(f.readAll())\\\\\\\\\\\\\\\
- f.close()\\\\\\\\\\\\\\\
- else\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"<Error> \\\\\\\\\\\\\\\", arg[1], \\\\\\\\\\\\\\\" is dir!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- else\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"<Error> No such file: \\\\\\\\\\\\\\\", arg[1])\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- else\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Debian CC Viewer\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Usage: cat /path/to/file\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\"\\\",\\\
- \\\"F:dcc-configure\\\",\\\
- \\\"\\\\\\\"print(\\\\\\\\\\\\\\\"Debian CC Configurer by MelnikovSM(RePack by utkabobr)\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Configuring system..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- sleep(1)\\\\\\\\\\\\\\\
- args={...}\\\\\\\\\\\\\\\
- if args[1]==\\\\\\\\\\\\\\\"--gui\\\\\\\\\\\\\\\" or not args[1] then\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- local hostname=DialogAPI.enter(\\\\\\\\\\\\\\\"Debian CC System Configurer\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Enter your computer name (hostname) :\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local autologin=DialogAPI.request(\\\\\\\\\\\\\\\"Debian CC System Configurer\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Enable user auto log-in\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local username=DialogAPI.enter(\\\\\\\\\\\\\\\"Debian CC System Configurer\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Enter your name (username) :\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local useuserpasswd=DialogAPI.request(\\\\\\\\\\\\\\\"Debian CC System Configurer\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Request password on log-in\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Enter user password:\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- while true do\\\\\\\\\\\\\\\
- local password1=DialogAPI.enterPasswd(\\\\\\\\\\\\\\\"Debian CC System Configurer\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Enter your password:\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local password2=DialogAPI.enterPasswd(\\\\\\\\\\\\\\\"Debian CC System Configurer\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Confirm your password:\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- if password1==password2 then\\\\\\\\\\\\\\\
- password=password1\\\\\\\\\\\\\\\
- break\\\\\\\\\\\\\\\
- else\\\\\\\\\\\\\\\
- DebAPI.error(\\\\\\\\\\\\\\\"Passwords does not match!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- local promt=DialogAPI.select(\\\\\\\\\\\\\\\"Select Command Promt\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Name: Look:\\\\\\\\\\\\\\\", {\\\\\\\\\\\\\\\"bash - user@hostname:~ $ _\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"sh - $\\\\\\\\\\\\\\\"})\\\\\\\\\\\\\\\
- if promt==1 then promt=\\\\\\\\\\\\\\\"/system/bin/bash\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- else promt=\\\\\\\\\\\\\\\"/system/bin/sh\\\\\\\\\\\\\\\" end\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- if hostname==\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- hostname=\\\\\\\\\\\\\\\"<Default>\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Please confirm your changes:\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"====================================\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Hostname: \\\\\\\\\\\\\\\", hostname)\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Autologin: \\\\\\\\\\\\\\\", autologin)\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Username: \\\\\\\\\\\\\\\", username)\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Use user password: \\\\\\\\\\\\\\\", useuserpasswd)\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Password: \\\\\\\\\\\\\\\", password)\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"====================================\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- if hostname==\\\\\\\\\\\\\\\"<Default>\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- hostname=nil\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- local select=DebAPI.request(\\\\\\\\\\\\\\\"Confirm this changes\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- if select==true then\\\\\\\\\\\\\\\
- if fs.exists(\\\\\\\\\\\\\\\"/etc/\\\\\\\\\\\\\\\")==false then fs.makeDir(\\\\\\\\\\\\\\\"/etc\\\\\\\\\\\\\\\") end\\\\\\\\\\\\\\\
- local f=fs.open(\\\\\\\\\\\\\\\"/etc/syscfg\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- if hostname==nil then\\\\\\\\\\\\\\\
- hostname=\\\\\\\\\\\\\\\"Debian\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- local line1=(\\\\\\\\\\\\\\\"computername='\\\\\\\\\\\\\\\" .. hostname .. \\\\\\\\\\\\\\\"'\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local line2=(\\\\\\\\\\\\\\\"defaultusername='\\\\\\\\\\\\\\\" .. username .. \\\\\\\\\\\\\\\"'\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- if autologin==1 then\\\\\\\\\\\\\\\
- autologin=\\\\\\\\\\\\\\\"user\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- else\\\\\\\\\\\\\\\
- autologin=\\\\\\\\\\\\\\\"none\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- local line3=(\\\\\\\\\\\\\\\"autologin='\\\\\\\\\\\\\\\" .. autologin .. \\\\\\\\\\\\\\\"'\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- f.writeLine(line1)\\\\\\\\\\\\\\\
- f.writeLine(line2)\\\\\\\\\\\\\\\
- f.writeLine(line3)\\\\\\\\\\\\\\\
- f.close()\\\\\\\\\\\\\\\
- f=fs.open('/etc/hostname', 'w')\\\\\\\\\\\\\\\
- f.writeLine(hostname)\\\\\\\\\\\\\\\
- f.close()\\\\\\\\\\\\\\\
- f=fs.open(\\\\\\\\\\\\\\\"/root/config\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- if useuserpasswd==1 then\\\\\\\\\\\\\\\
- line1=(\\\\\\\\\\\\\\\"passwdreq='1'\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- else\\\\\\\\\\\\\\\
- line1=(\\\\\\\\\\\\\\\"passwdreq='0'\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- line2=(\\\\\\\\\\\\\\\"password='\\\\\\\\\\\\\\\" .. password .. \\\\\\\\\\\\\\\"'\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- line3=\\\\\\\\\\\\\\\"home='/root'\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- line4=\\\\\\\\\\\\\\\"shell='\\\\\\\\\\\\\\\" .. promt .. \\\\\\\\\\\\\\\"'\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- f.writeLine(line1)\\\\\\\\\\\\\\\
- f.writeLine(line2)\\\\\\\\\\\\\\\
- f.writeLine(line3)\\\\\\\\\\\\\\\
- f.writeLine(line4)\\\\\\\\\\\\\\\
- f.close()\\\\\\\\\\\\\\\
- f=fs.open(\\\\\\\\\\\\\\\"/home/MelnikovSM/config\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- line3=\\\\\\\\\\\\\\\"home='/home/MelnikovSM'\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- f.writeLine(line1)\\\\\\\\\\\\\\\
- f.writeLine(line2)\\\\\\\\\\\\\\\
- f.writeLine(line3)\\\\\\\\\\\\\\\
- f.writeLine(line4)\\\\\\\\\\\\\\\
- f.close()\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Configuring done!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- else\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Aborted by user.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- elseif args[1]==\\\\\\\\\\\\\\\"--text\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\"Enter your computer name (hostname) : \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local hostname=read()\\\\\\\\\\\\\\\
- local autologin=DialogAPI.request(\\\\\\\\\\\\\\\"Debian CC System Configurer\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Enable user auto log-in\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local username=DialogAPI.enter(\\\\\\\\\\\\\\\"Debian CC System Configurer\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Enter your name (username) :\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local useuserpasswd=DialogAPI.request(\\\\\\\\\\\\\\\"Debian CC System Configurer\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Request password on log-in\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Enter user password:\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- while true do\\\\\\\\\\\\\\\
- local password1=DialogAPI.enterPasswd(\\\\\\\\\\\\\\\"Debian CC System Configurer\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Enter your password:\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local password2=DialogAPI.enterPasswd(\\\\\\\\\\\\\\\"Debian CC System Configurer\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Confirm your password:\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- if password1==password2 then\\\\\\\\\\\\\\\
- password=password1\\\\\\\\\\\\\\\
- break\\\\\\\\\\\\\\\
- else\\\\\\\\\\\\\\\
- DebAPI.error(\\\\\\\\\\\\\\\"Passwords does not match!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- local promt=DialogAPI.select(\\\\\\\\\\\\\\\"Select Command Promt\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Name: Look:\\\\\\\\\\\\\\\", {\\\\\\\\\\\\\\\"bash - user@hostname:~ $ _\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"sh - $\\\\\\\\\\\\\\\"})\\\\\\\\\\\\\\\
- if promt==1 then promt=\\\\\\\\\\\\\\\"/system/bin/bash\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- else promt=\\\\\\\\\\\\\\\"/system/bin/sh\\\\\\\\\\\\\\\" end\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- if hostname==\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- hostname=\\\\\\\\\\\\\\\"<Default>\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Please confirm your changes:\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"====================================\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Hostname: \\\\\\\\\\\\\\\", hostname)\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Autologin: \\\\\\\\\\\\\\\", autologin)\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Username: \\\\\\\\\\\\\\\", username)\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Use user password: \\\\\\\\\\\\\\\", useuserpasswd)\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Password: \\\\\\\\\\\\\\\", password)\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"====================================\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- if hostname==\\\\\\\\\\\\\\\"<Default>\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- hostname=nil\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- local select=DebAPI.request(\\\\\\\\\\\\\\\"Confirm this changes\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- if select==true then\\\\\\\\\\\\\\\
- if fs.exists(\\\\\\\\\\\\\\\"/etc/\\\\\\\\\\\\\\\")==false then fs.makeDir(\\\\\\\\\\\\\\\"/etc\\\\\\\\\\\\\\\") end\\\\\\\\\\\\\\\
- local f=fs.open(\\\\\\\\\\\\\\\"/etc/syscfg\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- if hostname==nil then\\\\\\\\\\\\\\\
- hostname=\\\\\\\\\\\\\\\"Debian\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- local line1=(\\\\\\\\\\\\\\\"computername='\\\\\\\\\\\\\\\" .. hostname .. \\\\\\\\\\\\\\\"'\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local line2=(\\\\\\\\\\\\\\\"defaultusername='\\\\\\\\\\\\\\\" .. username .. \\\\\\\\\\\\\\\"'\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- if autologin==1 then\\\\\\\\\\\\\\\
- autologin=\\\\\\\\\\\\\\\"user\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- else\\\\\\\\\\\\\\\
- autologin=\\\\\\\\\\\\\\\"none\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- local line3=(\\\\\\\\\\\\\\\"autologin='\\\\\\\\\\\\\\\" .. autologin .. \\\\\\\\\\\\\\\"'\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- f.writeLine(line1)\\\\\\\\\\\\\\\
- f.writeLine(line2)\\\\\\\\\\\\\\\
- f.writeLine(line3)\\\\\\\\\\\\\\\
- f.close()\\\\\\\\\\\\\\\
- f=fs.open('/etc/hostname', 'w')\\\\\\\\\\\\\\\
- f.writeLine(hostname)\\\\\\\\\\\\\\\
- f.close()\\\\\\\\\\\\\\\
- f=fs.open(\\\\\\\\\\\\\\\"/root/config\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- if useuserpasswd==1 then\\\\\\\\\\\\\\\
- line1=(\\\\\\\\\\\\\\\"passwdreq='1'\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- else\\\\\\\\\\\\\\\
- line1=(\\\\\\\\\\\\\\\"passwdreq='0'\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- line2=(\\\\\\\\\\\\\\\"password='\\\\\\\\\\\\\\\" .. password .. \\\\\\\\\\\\\\\"'\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- line3=\\\\\\\\\\\\\\\"home='/root'\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- line4=\\\\\\\\\\\\\\\"shell='\\\\\\\\\\\\\\\" .. promt .. \\\\\\\\\\\\\\\"'\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- f.writeLine(line1)\\\\\\\\\\\\\\\
- f.writeLine(line2)\\\\\\\\\\\\\\\
- f.writeLine(line3)\\\\\\\\\\\\\\\
- f.writeLine(line4)\\\\\\\\\\\\\\\
- f.close()\\\\\\\\\\\\\\\
- f=fs.open(\\\\\\\\\\\\\\\"/home/MelnikovSM/config\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- line3=\\\\\\\\\\\\\\\"home='/home/MelnikovSM'\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- f.writeLine(line1)\\\\\\\\\\\\\\\
- f.writeLine(line2)\\\\\\\\\\\\\\\
- f.writeLine(line3)\\\\\\\\\\\\\\\
- f.writeLine(line4)\\\\\\\\\\\\\\\
- f.close()\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Configuring done!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- else\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Aborted by user.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- end\\\\\\\"\\\",\\\
- \\\"F:dmesg\\\",\\\
- \\\"\\\\\\\"if not syslog==nil then\\\\\\\\\\\\\\\
- syslog.close()\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"/system/bin/cat /var/syslog\\\\\\\\\\\\\\\")\\\\\\\"\\\",\\\
- \\\"F:dpkg\\\",\\\
- \\\"\\\\\\\"if fs.exists(\\\\\\\\\\\\\\\"/tmp\\\\\\\\\\\\\\\")==true then\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"rm /tmp\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"mkdir /tmp\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if fs.exists(\\\\\\\\\\\\\\\"/tmp\\\\\\\\\\\\\\\")==false then\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"mkdir /tmp\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Debian CC Packages manager v0.1 by MelnikovSM(RePack by utkabobr)\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Use <help> to get help.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- while true do\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\"DPKG-CC> \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local cmd=read()\\\\\\\\\\\\\\\
- cmdcor=0\\\\\\\\\\\\\\\
- if cmd==\\\\\\\\\\\\\\\"exit\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- cmdcor=1\\\\\\\\\\\\\\\
- break\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if cmd==\\\\\\\\\\\\\\\"help\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Avilable commands:\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"install <package> - install package <package>\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"install other - install programs from pastebin*\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"* - that's just copy file from pastebin to /bin\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"remove <package> - remove package <package>\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"list - packages list\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"update - update packages list (dpkg restart required)\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"exit - exit from DPKG\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- cmdcor=1\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if cmd==\\\\\\\\\\\\\\\"install\\\\\\\\\\\\\\\" then print(\\\\\\\\\\\\\\\"Usage: install <package>\\\\\\\\\\\\\\\") \\\\\\\\\\\\\\\
- cmdcor=1\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if cmd==\\\\\\\\\\\\\\\"list\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Avilable packages list:\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"rft - rednet file transfer\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"cftp - ftp client/server\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"ccchat - chat program\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"lemonfm - touch file manager\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"mc - file manager with Norton Commander skin\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"rc - remote control tool\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Need install other program? use <install other>.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- cmdcor=1\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if cmd==\\\\\\\\\\\\\\\"install other\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"[!] Warn! Programs from other sources can corrupt system or user's files!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Install program only if you know that program or developer.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\"Enter Pastebin Code of program: \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local pbcode=read()\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\"Enter program name: \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local name=read()\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Please check program's source code at www.pastebin.com/\\\\\\\\\\\\\\\", pbcode)\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\"Are you sure want to install that program?(Y/n) \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local switch=read()\\\\\\\\\\\\\\\
- if switch==\\\\\\\\\\\\\\\"Y\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- program=(\\\\\\\\\\\\\\\"pastebin get \\\\\\\\\\\\\\\" .. pbcode .. \\\\\\\\\\\\\\\" /bin/\\\\\\\\\\\\\\\" .. name)\\\\\\\\\\\\\\\
- shell.run(program)\\\\\\\\\\\\\\\
- else print(\\\\\\\\\\\\\\\"Installation aborted by user.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- cmdcor=1\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if cmd==\\\\\\\\\\\\\\\"remove\\\\\\\\\\\\\\\" then print(\\\\\\\\\\\\\\\"Usage: remove <package>\\\\\\\\\\\\\\\") \\\\\\\\\\\\\\\
- cmdcor=1\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if cmd==\\\\\\\\\\\\\\\"update\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- cmdcor=1\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"rm /system/bin/dpkg\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"pastebin get ASkFgzQ7 /system/bin/dpkg\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- break\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if cmd==(\\\\\\\\\\\\\\\"install rft\\\\\\\\\\\\\\\") then\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"pastebin get TLUaFUgr /tmp/pkg1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"/tmp/pkg1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"rm /tmp/pkg1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- cmdcor=1\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if cmd==(\\\\\\\\\\\\\\\"remove rft\\\\\\\\\\\\\\\") then\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\"Remove package? (Y/n) \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local input=read()\\\\\\\\\\\\\\\
- if input==\\\\\\\\\\\\\\\"Y\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Removing RednetFileTransfer..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"rm /bin/receive\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"rm //bin/send\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Done!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- cmdcor=1\\\\\\\\\\\\\\\
- else print(\\\\\\\\\\\\\\\"Installation aborted by user.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if cmd==(\\\\\\\\\\\\\\\"install cftp\\\\\\\\\\\\\\\") then\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"pastebin get Tv0PGSUk /tmp/pkg1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"/tmp/pkg1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"rm /tmp/pkg1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- cmdcor=1\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if cmd==(\\\\\\\\\\\\\\\"remove cftp\\\\\\\\\\\\\\\") then\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\"Remove package? (Y/n) \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local input=read()\\\\\\\\\\\\\\\
- if input==\\\\\\\\\\\\\\\"Y\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Removing CFTP..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"rm /bin/cftp-client\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"rm /bin/cftp-server\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Done!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- else print(\\\\\\\\\\\\\\\"Installation aborted by user.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- cmdcor=1\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if cmd==(\\\\\\\\\\\\\\\"install ccchat\\\\\\\\\\\\\\\") then\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"pastebin get H5tgCCc4 /tmp/pkg1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"/tmp/pkg1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"rm /tmp/pkg1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- cmdcor=1\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if cmd==\\\\\\\\\\\\\\\"remove ccchat\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\"Remove package? (Y/n) \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local input=read()\\\\\\\\\\\\\\\
- if input==\\\\\\\\\\\\\\\"Y\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Removing CCChat..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"rm /bin/ccchat\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Done!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- else print(\\\\\\\\\\\\\\\"Installation aborted by user.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- cmdcor=1\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if cmd==(\\\\\\\\\\\\\\\"install lemonfm\\\\\\\\\\\\\\\") then\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"pastebin get 6yjq0zvs /tmp/pkg1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"/tmp/pkg1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"rm /tmp/pkg1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- cmdcor=1\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if cmd==\\\\\\\\\\\\\\\"remove lemonfm\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\"Remove package? (Y/n) \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local input=read()\\\\\\\\\\\\\\\
- if input==\\\\\\\\\\\\\\\"Y\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Removing Lemon File Manager..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"rm /bin/lemonfm\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Done!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- else print(\\\\\\\\\\\\\\\"Installation aborted by user.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- cmdcor=1\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if cmd==(\\\\\\\\\\\\\\\"install mc\\\\\\\\\\\\\\\") then\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"pastebin get GuFByPjn /tmp/pkg1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"/tmp/pkg1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"rm /tmp/pkg1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- cmdcor=1\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if cmd==\\\\\\\\\\\\\\\"remove mc\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\"Remove package? (Y/n) \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local input=read()\\\\\\\\\\\\\\\
- if input==\\\\\\\\\\\\\\\"Y\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Removing Midday Commander..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"rm /bin/mc\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Done!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- else print(\\\\\\\\\\\\\\\"Installation aborted by user.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- cmdcor=1\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if cmd==(\\\\\\\\\\\\\\\"install rc\\\\\\\\\\\\\\\") then\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"pastebin get YP13dhpX /tmp/pkg1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"/tmp/pkg1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"rm /tmp/pkg1\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- cmdcor=1\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if cmd==(\\\\\\\\\\\\\\\"remove rc\\\\\\\\\\\\\\\") then\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\"Remove package? (Y/n) \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local input=read()\\\\\\\\\\\\\\\
- if input==\\\\\\\\\\\\\\\"Y\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Removing Remote Commander..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"rm /bin/rc\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Done!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- cmdcor=1\\\\\\\\\\\\\\\
- else print(\\\\\\\\\\\\\\\"Installation aborted by user.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if cmdcor==0 then print(\\\\\\\\\\\\\\\"Unknown command. Press <help> to get commands list\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"rm /tmp\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"mkdir /tmp\\\\\\\\\\\\\\\")\\\\\\\"\\\",\\\
- \\\"F:echo\\\",\\\
- \\\"\\\\\\\"local args={ ... }\\\\\\\\\\\\\\\
- if #args==0 then\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Usage: echo <text>\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- else\\\\\\\\\\\\\\\
- local i=1\\\\\\\\\\\\\\\
- while true do\\\\\\\\\\\\\\\
- if args[i]==nil then\\\\\\\\\\\\\\\
- break\\\\\\\\\\\\\\\
- else\\\\\\\\\\\\\\\
- write(args[i] .. \\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- i=i+1\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\"\\\",\\\
- \\\"F:fm\\\",\\\
- \\\"\\\\\\\"local function clear()\\\\\\\\\\\\\\\
- term.clear()\\\\\\\\\\\\\\\
- term.setCursorPos(1,1)\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- local current=\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. shell.dir()\\\\\\\\\\\\\\\
- while true do\\\\\\\\\\\\\\\
- clear()\\\\\\\\\\\\\\\
- dir = (\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. shell.dir())\\\\\\\\\\\\\\\
- local list=fs.list(dir)\\\\\\\\\\\\\\\
- table.insert(list,1, \\\\\\\\\\\\\\\"..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- table.insert(list, \\\\\\\\\\\\\\\"[Exit from File Manager]\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Debian CC File Manager\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Current dir: /\\\\\\\\\\\\\\\" .. shell.dir())\\\\\\\\\\\\\\\
- local filenum=MenuAPI.CreateMenu(list, \\\\\\\\\\\\\\\">\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\", 3,4)\\\\\\\\\\\\\\\
- local filepath=(dir .. \\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. list[filenum])\\\\\\\\\\\\\\\
- if filepath==dir..\\\\\\\\\\\\\\\"/[Exit from File Manager]\\\\\\\\\\\\\\\" then \\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"cd \\\\\\\\\\\\\\\" .. current)\\\\\\\\\\\\\\\
- break end\\\\\\\\\\\\\\\
- if fs.isDir(filepath) then shell.run(\\\\\\\\\\\\\\\"cd \\\\\\\\\\\\\\\" .. filepath) \\\\\\\\\\\\\\\
- else \\\\\\\\\\\\\\\
- clear()\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Select action\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"File: \\\\\\\\\\\\\\\" .. filepath)\\\\\\\\\\\\\\\
- local fa={\\\\\\\\\\\\\\\"Run\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"Edit\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"Delete\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"Exit\\\\\\\\\\\\\\\"}\\\\\\\\\\\\\\\
- local fas=MenuAPI.CreateMenu(fa, \\\\\\\\\\\\\\\">\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\", 3,3)\\\\\\\\\\\\\\\
- if fas==1 then shell.run(filepath) end\\\\\\\\\\\\\\\
- if fas==2 then shell.run(\\\\\\\\\\\\\\\"edit \\\\\\\\\\\\\\\" .. filepath) end\\\\\\\\\\\\\\\
- if fas==3 then shell.run(\\\\\\\\\\\\\\\"rm \\\\\\\\\\\\\\\" .. filepath) end\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- end\\\\\\\"\\\",\\\
- \\\"F:grub-configure\\\",\\\
- \\\"\\\\\\\"shell.run(\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- prebootloader=DialogAPI.select(\\\\\\\\\\\\\\\"Grub CC Configurer\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Select bootloader type:\\\\\\\\\\\\\\\", {\\\\\\\\\\\\\\\"BootSelect\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Debian CC\\\\\\\\\\\\\\\"})\\\\\\\\\\\\\\\
- if prebootloader==1 then\\\\\\\\\\\\\\\
- bootloader=\\\\\\\\\\\\\\\"BootSelect\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- else bootloader=\\\\\\\\\\\\\\\"Debian\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- local usepasswd=DialogAPI.request(\\\\\\\\\\\\\\\"Grub CC Configurer\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"Use password on boot?\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- if usepasswd==1 then\\\\\\\\\\\\\\\
- usepasswd=\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- while true do\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\"Enter password: \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- password=read(\\\\\\\\\\\\\\\"*\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\"Confirm password: \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local password2=read(\\\\\\\\\\\\\\\"*\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- if password==password2 then\\\\\\\\\\\\\\\
- break\\\\\\\\\\\\\\\
- else\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Passwords not match!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- else\\\\\\\\\\\\\\\
- usepasswd=\\\\\\\\\\\\\\\"0\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- password=\\\\\\\\\\\\\\\"none\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- local select=DialogAPI.request(\\\\\\\\\\\\\\\"Grub CC Configurer\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"Confirm this changes?\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- if select==1 then\\\\\\\\\\\\\\\
- local f=fs.open(\\\\\\\\\\\\\\\"/boot/grubcfg\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local line1=(\\\\\\\\\\\\\\\"reqpasswd='\\\\\\\\\\\\\\\" .. usepasswd .. \\\\\\\\\\\\\\\"'\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local line2=(\\\\\\\\\\\\\\\"bootpassword='\\\\\\\\\\\\\\\" .. password .. \\\\\\\\\\\\\\\"'\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local line3=(\\\\\\\\\\\\\\\"bootpriority='\\\\\\\\\\\\\\\" .. bootloader .. \\\\\\\\\\\\\\\"'\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- f.writeLine(line1)\\\\\\\\\\\\\\\
- f.writeLine(line2)\\\\\\\\\\\\\\\
- f.writeLine(line3)\\\\\\\\\\\\\\\
- f.close()\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Configuring done!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- else\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Aborted by user.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- usepasswd=nil\\\\\\\\\\\\\\\
- password=nil\\\\\\\"\\\",\\\
- \\\"F:help\\\",\\\
- \\\"\\\\\\\"print(\\\\\\\\\\\\\\\"Debian CC Help page\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"help - get this page\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"cd <dir> - change directory to <dir>\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"shutdown - shutdown computer\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"reboot - reboot computer\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"reboot --force - force reboot\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"reboot --bs - reboot in BootSelect Mode\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"grubsm - open grub configurator\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"edit <filename> - open for edit <filename>\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"su - get SuperUser permissions\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"about - see information about this PC\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"gksh - start text user interface\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"NetCMD - open NetDrv command console\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"achiver - files archiver\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"dpkg - open packages manager\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"backup - open System Backup manager\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\"Press <Enter> to continue..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- read(\\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"restore - open System Restore manager\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"cat </path/to/file> - show data in file </path/to/file>\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"dcc-configure - run Debian CC configurer\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"grub-configure - run Grub CC configurer\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"logout - logout from session\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"cc-devel - Debian CC Programs Builder\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"pwd - show path to current dir\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"uname - information about distro\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"echo <text> - print <text>\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"script </path/to/file> - execute commands in file (bash-like scripts)\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"pm - packages manager\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"wget <http://filestorage.org/file.lua> <program.lua> - get file <program.lua> to current folder from <http://filestorage.org/file.lua>\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- write('Press <Enter> to cotinue..') read(' ') DebAPI.clear()\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"browser <http://computercraft.info> - open <http://computercraft.info> for read (not support html!)\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"motd - MOTD Edit Tool - more: motd --help\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"fm - Debian CC File Manager\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"make - rootfs and package builder and installer\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print('hostname - hostname edit tool')\\\\\\\"\\\",\\\
- \\\"F:hostname\\\",\\\
- \\\"\\\\\\\"args={...}\\\\\\\\\\\\\\\
- local function showHelp()\\\\\\\\\\\\\\\
- print('Debian CC Hostname Edit Tool')\\\\\\\\\\\\\\\
- print('hostname - show hostname')\\\\\\\\\\\\\\\
- print('hostname <name> - set hostname to <name> (reset after reboot)')\\\\\\\\\\\\\\\
- print('hostname -u (or --update) - save current hostname to system')\\\\\\\\\\\\\\\
- print('hostname -e (or --edit) - edit hostname file manualy')\\\\\\\\\\\\\\\
- print('hostname -h (or --help, or run without args) - this text')\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- if #args==1 or #args==2 then\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- succ=0\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- if args[1]=='--help' or args[1]=='-h'then\\\\\\\\\\\\\\\
- showHelp()\\\\\\\\\\\\\\\
- succ=1\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- if args[1]=='--update' or args[1]=='-u' then\\\\\\\\\\\\\\\
- local hf=fs.open('/etc/hostname', 'w')\\\\\\\\\\\\\\\
- hf.writeLine(syscfg.computername)\\\\\\\\\\\\\\\
- hf.close()\\\\\\\\\\\\\\\
- succ=1\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- if args[1]=='--edit' or args[1]=='-e' then\\\\\\\\\\\\\\\
- shell.run('edit /etc/hostname')\\\\\\\\\\\\\\\
- succ=1\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- if succ==0 then\\\\\\\\\\\\\\\
- if string.sub(args[1],1,1)=='-' then showHelp()\\\\\\\\\\\\\\\
- else\\\\\\\\\\\\\\\
- syscfg.computername=args[1] end\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- else print(syscfg.computername)\\\\\\\\\\\\\\\
- end\\\\\\\"\\\",\\\
- \\\"F:logout\\\",\\\
- \\\"\\\\\\\"write(\\\\\\\\\\\\\\\"Are you sure want logout? (Y/n) \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- check=read(\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- if check==\\\\\\\\\\\\\\\"Y\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- check=nil\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"/system/auth\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- else\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Logout aborted.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- check=nil\\\\\\\\\\\\\\\
- end\\\\\\\"\\\",\\\
- \\\"F:make\\\",\\\
- \\\"\\\\\\\"args={...}\\\\\\\\\\\\\\\
- if #args==0 then\\\\\\\\\\\\\\\
- print('Debian CC Source-code Management Tool')\\\\\\\\\\\\\\\
- print('Usage:')\\\\\\\\\\\\\\\
- print('make rootfs - create image of current dir as ro rootfs (image save seted to ~)')\\\\\\\\\\\\\\\
- print('make package - generate .deb package (see make.package --help for more)')\\\\\\\\\\\\\\\
- print('make install.package - install package from source without compilation')\\\\\\\\\\\\\\\
- print('make install.rootfs - install rootfs.arch rootfs file from current dir')\\\\\\\\\\\\\\\
- else\\\\\\\\\\\\\\\
- if args[1]=='rootfs' then\\\\\\\\\\\\\\\
- shell.run('/system/bin/make.rootfs')\\\\\\\\\\\\\\\
- elseif args[1]=='package' then\\\\\\\\\\\\\\\
- shell.run('/system/bin/make.package')\\\\\\\\\\\\\\\
- elseif args[1]=='install.package' then\\\\\\\\\\\\\\\
- shell.run('/system/bin/make.package')\\\\\\\\\\\\\\\
- ipath=(config.home .. '/' .. fs.getName(shell.dir) .. '.deb')\\\\\\\\\\\\\\\
- if fs.exists(ipath) then shell.run('/system/bin/dpkg install ' .. ipath) else\\\\\\\\\\\\\\\
- print('Package build error: read text up for help')\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- elseif args[1]=='install.rootfs' and args[2]==nil then\\\\\\\\\\\\\\\
- ipath=('/' .. shell.dir() .. '/rootfs.arch')\\\\\\\\\\\\\\\
- if fs.exists(ipath) then shell.run('/system/bin/archiver unzip ' .. ipath .. ' /') else print('RootFS File not founded!') end\\\\\\\\\\\\\\\
- else\\\\\\\\\\\\\\\
- print('DCCSCMT: Unknown command!')\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- end\\\\\\\"\\\",\\\
- \\\"F:make.package\\\",\\\
- \\\"\\\\\\\"args={...}\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Debian CC Package Generator\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- if #args==0 then\\\\\\\\\\\\\\\
- if fs.exists(\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. shell.dir() .. \\\\\\\\\\\\\\\"/rootfs.arch\\\\\\\\\\\\\\\") and fs.exists(\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. shell.dir() .. \\\\\\\\\\\\\\\"/postinstall\\\\\\\\\\\\\\\") and fs.exists(\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. shell.dir() .. \\\\\\\\\\\\\\\"/postremove\\\\\\\\\\\\\\\") then\\\\\\\\\\\\\\\
- local build=fs.open(\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. config.home .. \\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. fs.getName(shell.dir()) .. \\\\\\\\\\\\\\\".deb\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local rootfsfile=fs.open(\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. shell.dir() .. \\\\\\\\\\\\\\\"/rootfs.arch\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"r\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local rootfs=rootfsfile.readAll()\\\\\\\\\\\\\\\
- rootfsfile.close()\\\\\\\\\\\\\\\
- local installfile=fs.open(\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. shell.dir() .. \\\\\\\\\\\\\\\"/postinstall\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"r\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local install=installfile.readAll()\\\\\\\\\\\\\\\
- installfile.close()\\\\\\\\\\\\\\\
- local removefile=fs.open(\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. shell.dir() .. \\\\\\\\\\\\\\\"/postremove\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"r\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local remove=removefile.readAll()\\\\\\\\\\\\\\\
- removefile.close()\\\\\\\\\\\\\\\
- local filesfile=fs.open(\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. shell.dir() .. \\\\\\\\\\\\\\\"/postinstall\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"r\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local files=filesfile.readAll()\\\\\\\\\\\\\\\
- filesfile.close()\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Please enter info about package:\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\"Name: \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local name=read()\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\"Author: \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local author=read()\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\"Package index: \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local index=read()\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\"Building Package.. \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- package={\\\\\\\\\\\\\\\
- name=name,\\\\\\\\\\\\\\\
- author=author,\\\\\\\\\\\\\\\
- index=index,\\\\\\\\\\\\\\\
- rootfs=rootfs,\\\\\\\\\\\\\\\
- install=install,\\\\\\\\\\\\\\\
- remove=remove,\\\\\\\\\\\\\\\
- files=files\\\\\\\\\\\\\\\
- }\\\\\\\\\\\\\\\
- build.writeLine(textutils.serialize(package))\\\\\\\\\\\\\\\
- build.close()\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Done!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Package saved as ~/\\\\\\\\\\\\\\\" .. fs.getName(shell.dir()) .. \\\\\\\\\\\\\\\".deb\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- else print(\\\\\\\\\\\\\\\"[!] All needed files not founded in current dir! Please run <mp --help> to get help.\\\\\\\\\\\\\\\") end\\\\\\\\\\\\\\\
- else\\\\\\\\\\\\\\\
- if args[1]==\\\\\\\\\\\\\\\"--help\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Debian CC Package Manager Packages Generation Structure:\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"rootfs.arch - archive with rootfs (can be created using make rootfs)\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"postinstall - program executed after installing package\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"postremove - program executed for remove package (remove all program files, update libs index if needed)\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"To make your package, please create and prepare all that files and run <mp> in dir with thats.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- end\\\\\\\"\\\",\\\
- \\\"F:make.rootfs\\\",\\\
- \\\"\\\\\\\"print(\\\\\\\\\\\\\\\"Making image of \\\\\\\\\\\\\\\" .. fs.getName(shell.dir()) .. \\\\\\\\\\\\\\\"..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local impath=(\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. shell.dir())\\\\\\\\\\\\\\\
- local imdir=config.home .. \\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. fs.getName(shell.dir())\\\\\\\\\\\\\\\
- local s=shell.run(\\\\\\\\\\\\\\\"/system/bin/archiver zip \\\\\\\\\\\\\\\" .. impath .. \\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\" .. imdir)\\\\\\\\\\\\\\\
- if s==true then\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Image created successfuly!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- else print(\\\\\\\\\\\\\\\"Error while building image..\\\\\\\\\\\\\\\") end\\\\\\\"\\\",\\\
- \\\"F:man\\\",\\\
- \\\"\\\\\\\"local args={...}\\\\\\\\\\\\\\\
- local function wroteManual(index)\\\\\\\\\\\\\\\
- if fs.exists('/system/Programs/man/doc/' .. index) then\\\\\\\\\\\\\\\
- DebAPI.clear()\\\\\\\\\\\\\\\
- textutils.pagedTabulate(DebAPI.readFromFile('/system/Programs/man/doc/' .. index))\\\\\\\\\\\\\\\
- write('Press <Enter> to continue..') read(' ')\\\\\\\\\\\\\\\
- a=true\\\\\\\\\\\\\\\
- else a=false\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- return a\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if args[1]==nil then\\\\\\\\\\\\\\\
- wroteManual('.index')\\\\\\\\\\\\\\\
- else\\\\\\\\\\\\\\\
- if fs.exists('/system/Programs/man/doc/' .. args[1]) then\\\\\\\\\\\\\\\
- wroteManual(args[1])\\\\\\\\\\\\\\\
- else print('man: help page \\\\\\\\\\\\\\\"' .. args[1] .. '\\\\\\\\\\\\\\\" is not exists')\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- end\\\\\\\"\\\",\\\
- \\\"F:motd\\\",\\\
- \\\"\\\\\\\"local args={...}\\\\\\\\\\\\\\\
- if #args==1 then\\\\\\\\\\\\\\\
- if args[1]==\\\\\\\\\\\\\\\"--help\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Debian CC MOTD Edit Tool\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"motd -e - edit motd\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"motd --help - this page\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"motd - print current motd\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if args[1]==\\\\\\\\\\\\\\\"-e\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"edit /etc/motd\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- else\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"/system/bin/cat /etc/motd\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\"\\\",\\\
- \\\"F:pm\\\",\\\
- \\\"\\\\\\\"local function getPath(input)\\\\\\\\\\\\\\\
- if string.sub(input, 1, 1)==\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" then path=input else\\\\\\\\\\\\\\\
- path=(\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. shell.dir() .. \\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. input) end\\\\\\\\\\\\\\\
- return path\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Debian CC Packages Manager\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local args={...}\\\\\\\\\\\\\\\
- if #args==1 or #args==2 then\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- if args[1]==\\\\\\\\\\\\\\\"install\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- if fs.isDir(\\\\\\\\\\\\\\\"/system/Programs/index\\\\\\\\\\\\\\\")==false then\\\\\\\\\\\\\\\
- fs.makeDir(\\\\\\\\\\\\\\\"/system/Programs/index\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- if fs.exists(\\\\\\\\\\\\\\\"/tmp\\\\\\\\\\\\\\\")==false then fs.makeDir(\\\\\\\\\\\\\\\"/tmp\\\\\\\\\\\\\\\") end\\\\\\\\\\\\\\\
- args[2]=getPath(args[2])\\\\\\\\\\\\\\\
- if fs.exists(args[2]) then\\\\\\\\\\\\\\\
- local targetf=fs.open(args[2], \\\\\\\\\\\\\\\"r\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local pack=textutils.unserialize(targetf.readAll())\\\\\\\\\\\\\\\
- targetf.close()\\\\\\\\\\\\\\\
- if fs.exists(\\\\\\\\\\\\\\\"/system/Programs/index/\\\\\\\\\\\\\\\" .. pack.index)==false then\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Installing package..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Package: \\\\\\\\\\\\\\\" .. pack.name)\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Author: \\\\\\\\\\\\\\\" .. pack.author)\\\\\\\\\\\\\\\
- if DebAPI.request(\\\\\\\\\\\\\\\"Install this package\\\\\\\\\\\\\\\") then\\\\\\\\\\\\\\\
- local rfs=fs.open(\\\\\\\\\\\\\\\"/tmp/rfs.arch\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- rfs.writeLine(pack.rootfs)\\\\\\\\\\\\\\\
- rfs.close()\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"/system/bin/archiver unzip /tmp/rfs.arch /\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local pi=fs.open(\\\\\\\\\\\\\\\"/tmp/pi\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- pi.writeLine(pack.install)\\\\\\\\\\\\\\\
- pi.close()\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Configuring package..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"/tmp/pi\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local removew=fs.open(\\\\\\\\\\\\\\\"/system/Programs/index/\\\\\\\\\\\\\\\" .. pack.index, \\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- removew.writeLine(pack.remove)\\\\\\\\\\\\\\\
- removew.writeLine(\\\\\\\\\\\\\\\"fs.delete('/system/Programs/index/\\\\\\\\\\\\\\\" .. pack.index .. \\\\\\\\\\\\\\\"')\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- removew.close() \\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Package installed successfuly!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- DebAPI.clearCache()\\\\\\\\\\\\\\\
- else print(\\\\\\\\\\\\\\\"Terminated by user..\\\\\\\\\\\\\\\") end\\\\\\\\\\\\\\\
- else print(\\\\\\\\\\\\\\\"Package with index \\\\\\\\\\\\\\\" .. pack.index .. \\\\\\\\\\\\\\\" already installed!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- else print(\\\\\\\\\\\\\\\"Package file not exists!\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- .. '\\\\\\\\\\\\\\\\nIf you seen this text while using apt-get then requested package is not founded in repository.') end\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- elseif args[1]==\\\\\\\\\\\\\\\"remove\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- if fs.exists(\\\\\\\\\\\\\\\"/system/Programs/index/\\\\\\\\\\\\\\\" .. args[2]) then\\\\\\\\\\\\\\\
- if DebAPI.request(\\\\\\\\\\\\\\\"Are you sure want remove index \\\\\\\\\\\\\\\" .. args[2] .. \\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\") then\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\"Removing package.. \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"/system/Programs/index/\\\\\\\\\\\\\\\" .. args[2]) else print(\\\\\\\\\\\\\\\"Terminated by user.\\\\\\\\\\\\\\\") end\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Done!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- else print(\\\\\\\\\\\\\\\"Package not installed..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- elseif args[1]==\\\\\\\\\\\\\\\"list\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"ls /system/Programs/index/\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- else print(\\\\\\\\\\\\\\\"Usage: pm install </path>\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"pm remove <index>\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- end\\\\\\\"\\\",\\\
- \\\"F:pwd\\\",\\\
- \\\"\\\\\\\"print(\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. shell.dir())\\\\\\\"\\\",\\\
- \\\"F:reboot\\\",\\\
- \\\"\\\\\\\"if DebAPI then\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"OK\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- read()\\\\\\\\\\\\\\\
- DebAPI.reboot()\\\\\\\\\\\\\\\
- else\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Not OK\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- read()\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Rebooting computer..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- sleep(1)\\\\\\\\\\\\\\\
- os.reboot()\\\\\\\\\\\\\\\
- end\\\\\\\"\\\",\\\
- \\\"F:restore\\\",\\\
- \\\"\\\\\\\"print(\\\\\\\\\\\\\\\"Debian CC Restore Tool by MelnikovSM(RePack by utkabobr)\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Restore Tool using Archiver by 1Ridav\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Enter Backup name:\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- rname=read()\\\\\\\\\\\\\\\
- rpath=(\\\\\\\\\\\\\\\"/var/backup/\\\\\\\\\\\\\\\" .. rname .. \\\\\\\\\\\\\\\".arch\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- if true==fs.exists(rpath) then\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Warning! That action remove all your files!\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\"Are you sure want continue?(Y/n) \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- switch=read()\\\\\\\\\\\\\\\
- if switch==\\\\\\\\\\\\\\\"Y\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Copying restore data to temporary folder..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"rm /tmp\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"mkdir /tmp\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"cp /system/bin/archiver /tmp/archiver\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Restoring..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"rm /system\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"rm /bin\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"rm /boot\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"rm /doc\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"rm /home\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"rm /root\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"rm /startup\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- cmd=(\\\\\\\\\\\\\\\"/tmp/archiver unzip \\\\\\\\\\\\\\\" .. rpath .. \\\\\\\\\\\\\\\" /\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(cmd)\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"rm /tmp\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- else\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Aborted by user.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- else\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"No such Backup file, aborting..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\"\\\",\\\
- \\\"F:script\\\",\\\
- \\\"\\\\\\\"local function getPath(input)\\\\\\\\\\\\\\\
- if string.sub(input, 1, 1)==\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" then path=input else\\\\\\\\\\\\\\\
- path=(\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. shell.dir() .. \\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. input) end\\\\\\\\\\\\\\\
- return path\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- local args={ ... }\\\\\\\\\\\\\\\
- if #args>=1 then\\\\\\\\\\\\\\\
- if fs.exists(getPath(args[1]))==true then\\\\\\\\\\\\\\\
- if fs.isDir(getPath(args[1]))==false then\\\\\\\\\\\\\\\
- --script exec\\\\\\\\\\\\\\\
- local ccscript=fs.open(getPath(args[1]), \\\\\\\\\\\\\\\"r\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- while true do\\\\\\\\\\\\\\\
- local secmd=ccscript.readLine()\\\\\\\\\\\\\\\
- if secmd==nil then break else\\\\\\\\\\\\\\\
- if args[2]==\\\\\\\\\\\\\\\"--debug\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"> \\\\\\\\\\\\\\\" .. secmd)\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- shell.run(secmd)\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- ccscript.close()\\\\\\\\\\\\\\\
- else print(\\\\\\\\\\\\\\\"Error: \\\\\\\\\\\\\\\" .. args[1] .. \\\\\\\\\\\\\\\" is a directory!\\\\\\\\\\\\\\\") end\\\\\\\\\\\\\\\
- else print(\\\\\\\\\\\\\\\"Error: No such file: \\\\\\\\\\\\\\\" .. args[1]) end\\\\\\\\\\\\\\\
- else\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Debian CC Scripts Executor\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"This tool has executing commands in file.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Usage: script </path/to/file>\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Or: script </path/to/file> --debug for show executed cmds.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\"\\\",\\\
- \\\"F:sh\\\",\\\
- \\\"\\\\\\\"while true do\\\\\\\\\\\\\\\
- sush=\\\\\\\\\\\\\\\"0\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- if username==\\\\\\\\\\\\\\\"root\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\"# \\\\\\\\\\\\\\\") \\\\\\\\\\\\\\\
- sush=\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if sush==\\\\\\\\\\\\\\\"0\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\"$ \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- local command = read()\\\\\\\\\\\\\\\
- shcor=\\\\\\\\\\\\\\\"0\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- if command==\\\\\\\\\\\\\\\"exit\\\\\\\\\\\\\\\" then break\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if command==\\\\\\\\\\\\\\\"su\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"/system/rootmode\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if command==\\\\\\\\\\\\\\\"grubsm\\\\\\\\\\\\\\\" then shell.run(\\\\\\\\\\\\\\\"/boot/grubsm\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shcor=\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if command==\\\\\\\\\\\\\\\"reboot --bs\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- debmode=\\\\\\\\\\\\\\\"0\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"/boot/Bootloaders/BootSelect\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if command==\\\\\\\\\\\\\\\"reboot --force\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- os.reboot()\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if command==\\\\\\\\\\\\\\\"help\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- shcor=\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"/system/bin/help\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if command==\\\\\\\\\\\\\\\"about\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"/system/bin/about\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shcor=\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if command==\\\\\\\\\\\\\\\"path\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- print(path2)\\\\\\\\\\\\\\\
- shcor=\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if command==\\\\\\\\\\\\\\\"cd ~\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"cd \\\\\\\\\\\\\\\", config.home)\\\\\\\\\\\\\\\
- shcor=\\\\\\\\\\\\\\\"1\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if shcor==\\\\\\\\\\\\\\\"0\\\\\\\\\\\\\\\" then shell.run(command)\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- end\\\\\\\"\\\",\\\
- \\\"F:uname\\\",\\\
- \\\"\\\\\\\"local args={ ... }\\\\\\\\\\\\\\\
- if #args==0 then\\\\\\\\\\\\\\\
- print(distro.name)\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if #args==1 then\\\\\\\\\\\\\\\
- if args[1]==\\\\\\\\\\\\\\\"-a\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- print(distro.name .. \\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\" .. distro.version .. \\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\" .. syscfg.computername .. \\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\" ..DebAPI.id)\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if args[1]==\\\\\\\\\\\\\\\"-v\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- print(distro.version)\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Lua version: \\\\\\\\\\\\\\\" .. _VERSION)\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if args[1]==\\\\\\\\\\\\\\\"--help\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Usage:\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"uname -v - get version of Debian CC\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"uname -a - get all information about distro\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"uname - distro name\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"uname --help - this help page\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- end\\\\\\\"\\\",\\\
- \\\"F:wget\\\",\\\
- \\\"\\\\\\\"local args={...}\\\\\\\\\\\\\\\
- if #args==2 or #args==1 then\\\\\\\\\\\\\\\
- if args[2]==nil then args[2]=fs.getName(args[1]) end\\\\\\\\\\\\\\\
- path=(\\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. shell.dir() .. \\\\\\\\\\\\\\\"/\\\\\\\\\\\\\\\" .. args[2])\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Saving file as: \\\\\\\\\\\\\\\" .. path)\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\"Downloading file.. \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- DebAPI.getFile(args[1], path)\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Done\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- elseif #args==3 and args[2]==\\\\\\\\\\\\\\\"--full-path\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Saving file as: \\\\\\\\\\\\\\\" .. args[3])\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\"Downloading file.. \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- DebAPI.getFile(args[1], args[3])\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Done\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- else\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Usage: wget <http://filestorage.org/files/file.lua> [Optional: <file name>]\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Or wget http://filestorage.org/files/file.lua --full-path /disk/other-file.lua to save file with absolutely full path\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\"\\\",\\\
- }\",\
- \"D:defaults\",\
- \"{\\\
- \\\"F:autorun\\\",\\\
- \\\"\\\\\\\"--Paste your code here\\\\\\\"\\\",\\\
- \\\"F:autorun-welcome\\\",\\\
- \\\"\\\\\\\"shell.run(\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Hello, user. Welcome to Debian CC port by MelnikovSM(RePack by utkabobr).\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Now you must configure your system.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Press <s> and <Enter> to skip configuring.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\"Press <Enter> to continue\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local text=read(\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- if text==\\\\\\\\\\\\\\\"s\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"rm autorun\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"cp /system/defaults/autorun autorun\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"You can configure your computer at anytime using command dcc-configure\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- else\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"/system/bin/dcc-configure\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- sleep(1)\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"clear\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Computer will reboot now to complete configuring operation.\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\"Press <Enter> to reboot\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- read(\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"rm autorun\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- shell.run(\\\\\\\\\\\\\\\"cp /system/defaults/autorun autorun\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- os.reboot()\\\\\\\\\\\\\\\
- end\\\\\\\"\\\",\\\
- \\\"F:motd\\\",\\\
- \\\"\\\\\\\"Documentation: man\\\\\\\\\\\\\\\
- Release notes: man ReleaseNotes\\\\\\\\\\\\\\\
- Like this OS? Share it with friends and players on servers with ComputerCraft Mod.\\\\\\\\\\\\\\\
- Pastebin code: wBEKVa9k\\\\\\\\\\\\\\\
- You can change this text in /etc/motd.\\\\\\\"\\\",\\\
- \\\"F:syscfg\\\",\\\
- \\\"\\\\\\\"--Computer Settings\\\\\\\\\\\\\\\
- computername=\\\\\\\\\\\\\\\"MelnikovSM-PC\\\\\\\\\\\\\\\" --Name of that computer\\\\\\\\\\\\\\\
- defaultusername=\\\\\\\\\\\\\\\"MelnikovSM\\\\\\\\\\\\\\\" --Default username\\\\\\\\\\\\\\\
- autologin=\\\\\\\\\\\\\\\"user\\\\\\\\\\\\\\\" --Autologin on computer. May be <user> or <none>\\\\\\\"\\\",\\\
- \\\"F:version\\\",\\\
- \\\"\\\\\\\"0.3.6\\\\\\\"\\\",\\\
- }\",\
- \"D:lib\",\
- \"{\\\
- \\\"F:DebAPI\\\",\\\
- \\\"\\\\\\\"function error(errreq)\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"[Error!] \\\\\\\\\\\\\\\", errreq)\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- function shutdown()\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Shuting down computer..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- sleep(1)\\\\\\\\\\\\\\\
- os.shutdown()\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- function reboot()\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Rebooting computer..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- sleep(1)\\\\\\\\\\\\\\\
- os.reboot()\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- function clear()\\\\\\\\\\\\\\\
- term.clear()\\\\\\\\\\\\\\\
- term.setCursorPos(1, 1)\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- id=os.getComputerID()\\\\\\\\\\\\\\\
- function clearCache()\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"[Debian] Cleaning cache..\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- pcall(\\\\\\\\\\\\\\\"fs.delete\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"/tmp\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- pcall(\\\\\\\\\\\\\\\"fs.makeDir\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"/tmp\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- function time()\\\\\\\\\\\\\\\
- local nTime=os.time()\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- return textutils.formatTime( nTime, false )\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- day=os.day\\\\\\\\\\\\\\\
- function pastebinGet(paste)\\\\\\\\\\\\\\\
- local response = getFile(\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\"http://pastebin.com/raw.php?i=\\\\\\\\\\\\\\\"..textutils.urlEncode( paste )\\\\\\\\\\\\\\\
- )\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- if response then\\\\\\\\\\\\\\\
- local sResponse = response.readAll()\\\\\\\\\\\\\\\
- response.close()\\\\\\\\\\\\\\\
- return sResponse\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- function getFile(paste, file)\\\\\\\\\\\\\\\
- local response = getFile(paste)\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- if response then\\\\\\\\\\\\\\\
- local sResponse = response.readAll()\\\\\\\\\\\\\\\
- response.close()\\\\\\\\\\\\\\\
- local f=fs.open(file, \\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- \\\\\\\\9f.writeLine(sResponse)\\\\\\\\\\\\\\\
- \\\\\\\\9f.close()\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- function writeLog(text)\\\\\\\\\\\\\\\
- local syslogr=fs.open(\\\\\\\\\\\\\\\"/var/syslog\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"r\\\\\\\\\\\\\\\").readAll()\\\\\\\\\\\\\\\
- local syslog=fs.open(\\\\\\\\\\\\\\\"/var/syslog\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- syslog.writeLine(syslogr)\\\\\\\\\\\\\\\
- syslog.writeLine(msg)\\\\\\\\\\\\\\\
- syslog.close()\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- function request(req)\\\\\\\\\\\\\\\
- write(req .. \\\\\\\\\\\\\\\"? (Y/n) \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local presel=read()\\\\\\\\\\\\\\\
- if presel==\\\\\\\\\\\\\\\"Y\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- reqselect=true\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if presel==\\\\\\\\\\\\\\\"y\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- reqselect=true\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if presel==\\\\\\\\\\\\\\\"n\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- reqselect=false\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- return reqselect\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- function write2file(path, array)\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- f = fs.open(path, \\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- for i = 1, #array do\\\\\\\\\\\\\\\
- f.writeLine(array[i]) \\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- f.close()\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- function readFromFile(path)\\\\\\\\\\\\\\\
- f = fs.open(path, \\\\\\\\\\\\\\\"r\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local array = {}\\\\\\\\\\\\\\\
- local i = 1\\\\\\\\\\\\\\\
- local temp\\\\\\\\\\\\\\\
- while true do\\\\\\\\\\\\\\\
- temp = f.readLine()\\\\\\\\\\\\\\\
- if not temp then break end\\\\\\\\\\\\\\\
- array[i] = temp\\\\\\\\\\\\\\\
- i = i + 1\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- f.close()\\\\\\\\\\\\\\\
- return array\\\\\\\\\\\\\\\
- end\\\\\\\"\\\",\\\
- \\\"F:DialogAPI\\\",\\\
- \\\"\\\\\\\"local cs=term.isColour()\\\\\\\\\\\\\\\
- function select(title, text, a)\\\\\\\\\\\\\\\
- term.clear()\\\\\\\\\\\\\\\
- if cs==true then\\\\\\\\\\\\\\\
- local background=paintutils.loadImage(\\\\\\\\\\\\\\\"/system/lib/DialogAPI.data/dialog-select\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- paintutils.drawImage(background, 1, 1)\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- term.setCursorPos(15, 1)\\\\\\\\\\\\\\\
- print(title)\\\\\\\\\\\\\\\
- if cs==false then\\\\\\\\\\\\\\\
- term.setCursorPos(10, 2)\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Black-White-only mode\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- term.setCursorPos(6, 4)\\\\\\\\\\\\\\\
- if cs==true then\\\\\\\\\\\\\\\
- term.setBackgroundColor(256)\\\\\\\\\\\\\\\
- term.setTextColor(32768)\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- print(text)\\\\\\\\\\\\\\\
- local select=MenuAPI.CreateMenu(a, \\\\\\\\\\\\\\\">\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\" \\\\\\\\\\\\\\\", 6, 6)\\\\\\\\\\\\\\\
- term.setCursorPos(1,1)\\\\\\\\\\\\\\\
- if cs==true then\\\\\\\\\\\\\\\
- term.setBackgroundColor(32768)\\\\\\\\\\\\\\\
- term.setTextColor(1)\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- term.clear()\\\\\\\\\\\\\\\
- return select\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- function enter(title, text)\\\\\\\\\\\\\\\
- term.clear()\\\\\\\\\\\\\\\
- if cs==true then\\\\\\\\\\\\\\\
- local background=paintutils.loadImage(\\\\\\\\\\\\\\\"/system/lib/DialogAPI.data/dialog-enter\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- paintutils.drawImage(background, 1, 1)\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- term.setCursorPos(15, 1)\\\\\\\\\\\\\\\
- print(title)\\\\\\\\\\\\\\\
- if cs==false then\\\\\\\\\\\\\\\
- term.setCursorPos(10, 2)\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Black-White-only mode\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if cs==true then\\\\\\\\\\\\\\\
- term.setBackgroundColor(256)\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- term.setCursorPos(6, 4)\\\\\\\\\\\\\\\
- if cs==true then\\\\\\\\\\\\\\\
- term.setTextColor(32768)\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- print(text)\\\\\\\\\\\\\\\
- if cs==true then\\\\\\\\\\\\\\\
- term.setTextColor(1)\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- term.setCursorPos(7, 9)\\\\\\\\\\\\\\\
- if cs==true then\\\\\\\\\\\\\\\
- term.setBackgroundColor(2048)\\\\\\\\\\\\\\\
- term.setTextColor(1)\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- local enter=read()\\\\\\\\\\\\\\\
- term.setCursorPos(1,1)\\\\\\\\\\\\\\\
- if cs==true then\\\\\\\\\\\\\\\
- term.setBackgroundColor(32768)\\\\\\\\\\\\\\\
- term.setTextColor(1)\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- term.clear()\\\\\\\\\\\\\\\
- return enter\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- function enterPasswd(title, text)\\\\\\\\\\\\\\\
- term.clear()\\\\\\\\\\\\\\\
- if cs==true then\\\\\\\\\\\\\\\
- local background=paintutils.loadImage(\\\\\\\\\\\\\\\"/system/lib/DialogAPI.data/dialog-enter\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- paintutils.drawImage(background, 1, 1)\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- term.setCursorPos(15, 1)\\\\\\\\\\\\\\\
- print(title)\\\\\\\\\\\\\\\
- if cs==false then\\\\\\\\\\\\\\\
- term.setCursorPos(10, 2)\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Black-White-only mode\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- if cs==true then\\\\\\\\\\\\\\\
- term.setBackgroundColor(256)\\\\\\\\\\\\\\\
- term.setCursorPos(6, 4)\\\\\\\\\\\\\\\
- term.setTextColor(32768)\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- print(text)\\\\\\\\\\\\\\\
- term.setCursorPos(7, 9)\\\\\\\\\\\\\\\
- if cs==true then\\\\\\\\\\\\\\\
- term.setBackgroundColor(2048)\\\\\\\\\\\\\\\
- term.setTextColor(1)\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- local enter=read(\\\\\\\\\\\\\\\"*\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- term.setCursorPos(1,1)\\\\\\\\\\\\\\\
- if cs==true then\\\\\\\\\\\\\\\
- term.setBackgroundColor(32768)\\\\\\\\\\\\\\\
- term.setTextColor(1)\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- term.clear()\\\\\\\\\\\\\\\
- return enter\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- function request(title, text)\\\\\\\\\\\\\\\
- return select(title, text, {\\\\\\\\\\\\\\\"Yes\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"No\\\\\\\\\\\\\\\"})\\\\\\\\\\\\\\\
- end\\\\\\\"\\\",\\\
- \\\"D:DialogAPI.data\\\",\\\
- \\\"{\\\\\\\
- \\\\\\\"F:dialog-enter\\\\\\\",\\\\\\\
- \\\\\\\"\\\\\\\\\\\\\\\"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- bbbb88bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb88bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\\\\\\\\\"\\\\\\\",\\\\\\\
- \\\\\\\"F:dialog-select\\\\\\\",\\\\\\\
- \\\\\\\"\\\\\\\\\\\\\\\"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- bbbb8888888888888888888888888888888888888888888bbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
- bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\\\\\\\\\\\\\\\"\\\\\\\",\\\\\\\
- }\\\",\\\
- \\\"F:MenuAPI\\\",\\\
- \\\"\\\\\\\"--MenuAPI by 1Ridav\\\\\\\\\\\\\\\
- --Modified for Debian ComputerCraft by MelnikovSM\\\\\\\\\\\\\\\
- local function mprint(array, this, s1, s2, x, y)\\\\\\\\\\\\\\\
- for i = 1, #array do\\\\\\\\\\\\\\\
- term.setCursorPos(x, y)\\\\\\\\\\\\\\\
- --Check if option selected\\\\\\\\\\\\\\\
- if i == this then \\\\\\\\\\\\\\\
- --Option selected \\\\\\\\\\\\\\\
- write(s1)\\\\\\\\\\\\\\\
- else \\\\\\\\\\\\\\\
- --Option NOT selected\\\\\\\\\\\\\\\
- write(s2)\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- --Print the string\\\\\\\\\\\\\\\
- print(array[i])\\\\\\\\\\\\\\\
- y = y + 1 \\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- function CreateMenu(array, state1, state2, pos_x, pos_y)\\\\\\\\\\\\\\\
- local select = 1\\\\\\\\\\\\\\\
- local x, y = term.getCursorPos()\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- while true do\\\\\\\\\\\\\\\
- term.setCursorPos(x, y)\\\\\\\\\\\\\\\
- mprint(array, select, state1, state2, pos_x, pos_y)\\\\\\\\\\\\\\\
- event, key = os.pullEvent(\\\\\\\\\\\\\\\"key\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- --Enter\\\\\\\\\\\\\\\
- if key == 28 then \\\\\\\\\\\\\\\
- return select \\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- if #array > 1 then\\\\\\\\\\\\\\\
- --Arrow UP or W key\\\\\\\\\\\\\\\
- if key == 200 or key == 17 then \\\\\\\\\\\\\\\
- \\\\\\\\9\\\\\\\\9 select = select - 1 \\\\\\\\\\\\\\\
- \\\\\\\\9\\\\\\\\9\\\\\\\\9\\\\\\\\\\\\\\\
- if select < 1 then \\\\\\\\\\\\\\\
- select = #array \\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- --Arrow Down or S key\\\\\\\\\\\\\\\
- elseif key == 208 or key == 31 then \\\\\\\\\\\\\\\
- \\\\\\\\9\\\\\\\\9 select = select + 1 \\\\\\\\\\\\\\\
- \\\\\\\\9\\\\\\\\9\\\\\\\\9 if select > #array then select = 1 end\\\\\\\\\\\\\\\
- \\\\\\\\9 end\\\\\\\\\\\\\\\
- end \\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- end\\\\\\\"\\\",\\\
- \\\"F:startup\\\",\\\
- \\\"\\\\\\\"local args={...}\\\\\\\\\\\\\\\
- array=fs.list(\\\\\\\\\\\\\\\"/system/lib/\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- if args[1]==\\\\\\\\\\\\\\\"--update-index\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Updating system libs index.. \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- f = fs.open(\\\\\\\\\\\\\\\"/system/lib/libs.index\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"w\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- for i = 1, #array do\\\\\\\\\\\\\\\
- if string.sub(array[i], #array[i]-4, #array[i])==\\\\\\\\\\\\\\\".data\\\\\\\\\\\\\\\" or array[i]==\\\\\\\\\\\\\\\"libs.index\\\\\\\\\\\\\\\" or array[i]==\\\\\\\\\\\\\\\"startup\\\\\\\\\\\\\\\" then sleep(0) else\\\\\\\\\\\\\\\
- f.writeLine(array[i]) \\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Library \\\\\\\\\\\\\\\" .. array[i] .. \\\\\\\\\\\\\\\" detected\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- sleep(0) end\\\\\\\\\\\\\\\
- sleep(0)\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- f.close()\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- elseif #args==0 or #args[1]==\\\\\\\\\\\\\\\"--reload\\\\\\\\\\\\\\\" then\\\\\\\\\\\\\\\
- if fs.exists(\\\\\\\\\\\\\\\"/system/lib/libs.index\\\\\\\\\\\\\\\")==false then shell.run(\\\\\\\\\\\\\\\"/system/lib/startup --update-index\\\\\\\\\\\\\\\") end\\\\\\\\\\\\\\\
- print(\\\\\\\\\\\\\\\"Loading system libs.. \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- \\\\\\\\\\\\\\\
- f = fs.open(\\\\\\\\\\\\\\\"/system/lib/libs.index\\\\\\\\\\\\\\\", \\\\\\\\\\\\\\\"r\\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- local array = {}\\\\\\\\\\\\\\\
- local i = 1\\\\\\\\\\\\\\\
- local temp\\\\\\\\\\\\\\\
- while true do\\\\\\\\\\\\\\\
- temp = f.readLine()\\\\\\\\\\\\\\\
- if not temp then break end\\\\\\\\\\\\\\\
- write(\\\\\\\\\\\\\\\"Loading lib \\\\\\\\\\\\\\\" .. temp .. \\\\\\\\\\\\\\\"... \\\\\\\\\\\\\\\")\\\\\\\\\\\\\\\
- load=os.loadAPI(\\\\\\\\\\\\\\\"/system/lib/\\\\\\\\\\\\\\\" .. temp)\\\\\\\\\\\\\\\
- sleep(0.2)\\\\\\\\\\\\\\\
- if load==true then load=\\\\\\\\\\\\\\\"Success!\\\\\\\\\\\\\\\" else load=\\\\\\\\\\\\\\\"Error!\\\\\\\\\\\\\\\" end\\\\\\\\\\\\\\\
- print(load)\\\\\\\\\\\\\\\
- i = i + 1\\\\\\\\\\\\\\\
- end\\\\\\\\\\\\\\\
- f.close()\\\\\\\\\\\\\\\
- end\\\\\\\"\\\",\\\
- }\",\
- \"F:recovery\",\
- \"\\\"function getFile(paste, file)\\\\\\\
- local response = getFile(paste)\\\\\\\
- \\\\\\\
- if response then\\\\\\\
- local sResponse = response.readAll()\\\\\\\
- response.close()\\\\\\\
- local f=fs.open(file, \\\\\\\"w\\\\\\\")\\\\\\\
- f.writeLine(sResponse)\\\\\\\
- f.close()\\\\\\\
- end\\\\\\\
- end\\\\\\\
- shell.run(\\\\\\\"rm /tmp\\\\\\\")\\\\\\\
- while true do\\\\\\\
- shell.run(\\\\\\\"clear\\\\\\\")\\\\\\\
- print(\\\\\\\"Debian CC Recovery Menu\\\\\\\")\\\\\\\
- print(\\\\\\\"Select action:\\\\\\\")\\\\\\\
- if MenuAPI== nil then\\\\\\\
- os.loadAPI(\\\\\\\"/system/lib/MenuAPI\\\\\\\")\\\\\\\
- end\\\\\\\
- local a={\\\\\\\"Repair Autorun files\\\\\\\", \\\\\\\"Start SH\\\\\\\", \\\\\\\"Edit MelnikovSM account settings\\\\\\\", \\\\\\\"Edit root account settings\\\\\\\", \\\\\\\"Open Grub Settings Menu\\\\\\\", \\\\\\\"Change computer settings\\\\\\\", \\\\\\\"Repair computer settings\\\\\\\", \\\\\\\"Uninstall OS\\\\\\\", \\\\\\\"Update/Reinstall OS\\\\\\\", \\\\\\\"Install patch from ARCH\\\\\\\", \\\\\\\"Reboot computer\\\\\\\"}\\\\\\\
- local option=MenuAPI.CreateMenu(a, \\\\\\\">\\\\\\\", \\\\\\\" \\\\\\\", 1, 4)\\\\\\\
- if option==1 then\\\\\\\
- print(\\\\\\\"Repairing autorun files..\\\\\\\")\\\\\\\
- shell.run(\\\\\\\"rm /home/MelnikovSM/autorun\\\\\\\")\\\\\\\
- shell.run(\\\\\\\"cp /system/defaults/autorun /home/MelnikovSM/autorun\\\\\\\")\\\\\\\
- shell.run(\\\\\\\"rm /root/autorun\\\\\\\")\\\\\\\
- shell.run(\\\\\\\"cp /system/defaults/autorun /root/autorun\\\\\\\")\\\\\\\
- print(\\\\\\\"Done!\\\\\\\")\\\\\\\
- sleep(1)\\\\\\\
- end\\\\\\\
- if option==2 then\\\\\\\
- shell.run(\\\\\\\"/system/rootmode\\\\\\\")\\\\\\\
- end\\\\\\\
- if option==3 then\\\\\\\
- shell.run(\\\\\\\"edit /home/MelnikovSM/config\\\\\\\")\\\\\\\
- end\\\\\\\
- if option==4 then\\\\\\\
- shell.run(\\\\\\\"edit /root/config\\\\\\\")\\\\\\\
- end\\\\\\\
- if option==5 then\\\\\\\
- shell.run(\\\\\\\"/boot/grubsm\\\\\\\")\\\\\\\
- end\\\\\\\
- if option==6 then\\\\\\\
- shell.run(\\\\\\\"edit /etc/syscfg\\\\\\\")\\\\\\\
- end\\\\\\\
- if option==7 then\\\\\\\
- shell.run(\\\\\\\"rm /etc/syscfg\\\\\\\")\\\\\\\
- shell.run(\\\\\\\"cp /system/defaults/syscfg /system/syscfg\\\\\\\")\\\\\\\
- end\\\\\\\
- if option==8 then\\\\\\\
- shell.run(\\\\\\\"rm /bin\\\\\\\")\\\\\\\
- shell.run(\\\\\\\"rm /boot\\\\\\\")\\\\\\\
- shell.run(\\\\\\\"rm /system\\\\\\\")\\\\\\\
- shell.run(\\\\\\\"rm /doc\\\\\\\")\\\\\\\
- shell.run(\\\\\\\"rm /tmp\\\\\\\")\\\\\\\
- shell.run(\\\\\\\"rm /startup\\\\\\\")\\\\\\\
- shell.run(\\\\\\\"rm /var\\\\\\\")\\\\\\\
- os.reboot()\\\\\\\
- end\\\\\\\
- if option==9 then\\\\\\\
- if fs.exists(\\\\\\\"/tmp\\\\\\\")==false then\\\\\\\
- fs.makeDir(\\\\\\\"/tmp\\\\\\\")\\\\\\\
- end\\\\\\\
- getFile(\\\\\\\"http://debiancc.melnikovsm.tk/tools/updater\\\\\\\",\\\\\\\"/tmp/updater\\\\\\\")\\\\\\\
- shell.run(\\\\\\\"/tmp/updater\\\\\\\")\\\\\\\
- read()\\\\\\\
- fs.delete(\\\\\\\"/tmp\\\\\\\")\\\\\\\
- os.reboot()\\\\\\\
- end\\\\\\\
- if option==10 then\\\\\\\
- shell.run(\\\\\\\"clear\\\\\\\")\\\\\\\
- print(\\\\\\\"Debian CC Patcher\\\\\\\")\\\\\\\
- print(\\\\\\\" \\\\\\\")\\\\\\\
- print(\\\\\\\"Enter path to patch:\\\\\\\")\\\\\\\
- local path=read()\\\\\\\
- if fs.exists(path) then\\\\\\\
- if fs.isDir(path)==false then\\\\\\\
- fs.makeDir(\\\\\\\"/testdir\\\\\\\")\\\\\\\
- local installable=shell.run(\\\\\\\"/system/bin/archiver unzip \\\\\\\" .. path .. \\\\\\\" /testdir\\\\\\\")\\\\\\\
- fs.delete(\\\\\\\"/testdir\\\\\\\")\\\\\\\
- if installable==true then\\\\\\\
- print(\\\\\\\"Patching system..\\\\\\\")\\\\\\\
- shell.run(\\\\\\\"/system/bin/archiver unzip \\\\\\\" .. path .. \\\\\\\" /\\\\\\\")\\\\\\\
- else\\\\\\\
- shell.run(\\\\\\\"clear\\\\\\\")\\\\\\\
- print(\\\\\\\"Debian CC Patcher\\\\\\\")\\\\\\\
- print(\\\\\\\" \\\\\\\")\\\\\\\
- print(\\\\\\\"Error: Entered file is not archive or corrupted!\\\\\\\")\\\\\\\
- end\\\\\\\
- else print(path, \\\\\\\" is a dir!\\\\\\\") end\\\\\\\
- else print(\\\\\\\"No such file: \\\\\\\", patch) end \\\\\\\
- sleep(2)\\\\\\\
- end\\\\\\\
- if option==11 then os.reboot() end\\\\\\\
- end\\\"\",\
- \"F:rootmode\",\
- \"\\\"login=\\\\\\\"root\\\\\\\"\\\\\\\
- os.loadAPI(\\\\\\\"/root/config\\\\\\\")\\\\\\\
- shell.run(\\\\\\\"/system/auth2\\\\\\\")\\\"\",\
- \"F:start\",\
- \"\\\"shell.run(\\\\\\\"clear\\\\\\\")\\\\\\\
- print(\\\\\\\"Starting up Debian CC v0.3.8..\\\\\\\")\\\\\\\
- print(\\\\\\\"Copyright (C) MelnikovSM 2013-2015 - Licensed under GNU GPL v3\\\\\\\")\\\\\\\
- if fs.exists(\\\\\\\"/var\\\\\\\")==false then\\\\\\\
- fs.makeDir(\\\\\\\"/var\\\\\\\")\\\\\\\
- end\\\\\\\
- syslog=fs.open(\\\\\\\"/var/syslog\\\\\\\", \\\\\\\"w\\\\\\\")\\\\\\\
- syslog.writeLine(\\\\\\\"Debian CC Startup\\\\\\\")\\\\\\\
- sleep(2)\\\\\\\
- debmode=\\\\\\\"1\\\\\\\"\\\\\\\
- syslog.writeLine(\\\\\\\"Loading system libs..\\\\\\\")\\\\\\\
- if os.loadAPI(\\\\\\\"/system/lib/DebAPI\\\\\\\")==true then\\\\\\\
- syslog.writeLine(\\\\\\\"[Load Lib] Load lib DebAPI [Successful]\\\\\\\")\\\\\\\
- else\\\\\\\
- syslog.writeLine(\\\\\\\"[Load Lib] Load lib DebAPI [Error]\\\\\\\")\\\\\\\
- syslog.writeLine(\\\\\\\"[Fatal Error] Could'nt load system lib!\\\\\\\")\\\\\\\
- end\\\\\\\
- if fs.exists(\\\\\\\"/etc/\\\\\\\")==false then fs.makeDir(\\\\\\\"/etc\\\\\\\") end\\\\\\\
- if fs.exists(\\\\\\\"/etc/syscfg\\\\\\\")==false then\\\\\\\
- syscfg={\\\\\\\
- autologin=\\\\\\\"user\\\\\\\",\\\\\\\
- computername=\\\\\\\"Debian\\\\\\\",\\\\\\\
- defaultusername=\\\\\\\"debian\\\\\\\"\\\\\\\
- } --parameters for no-configfile \\\\\\\
- end\\\\\\\
- if fs.exists(\\\\\\\"/etc/distro\\\\\\\")==true then os.loadAPI(\\\\\\\"/etc/distro\\\\\\\") else\\\\\\\
- distro={\\\\\\\
- name=\\\\\\\"Debian\\\\\\\",\\\\\\\
- version=\\\\\\\"0.3.8\\\\\\\",\\\\\\\
- author=\\\\\\\"MelnikovSM\\\\\\\",\\\\\\\
- site=\\\\\\\"http://melnikovsm.tk\\\\\\\"\\\\\\\
- }\\\\\\\
- end\\\\\\\
- if os.loadAPI(\\\\\\\"/etc/syscfg\\\\\\\")==true then\\\\\\\
- syslog.writeLine(\\\\\\\"[SysCfg] Load system config [Successful]\\\\\\\")\\\\\\\
- else\\\\\\\
- syslog.writeLine(\\\\\\\"[SysCfg] Load system config [Error]\\\\\\\")\\\\\\\
- syslog.writeLine(\\\\\\\"[Error] Could'nt load system config\\\\\\\")\\\\\\\
- syslog.writeLine(\\\\\\\"[Solution] Running system with default params.\\\\\\\")\\\\\\\
- end\\\\\\\
- if syscfg.computername==nil then syscfg.computername='debian' end\\\\\\\
- if fs.exists('/etc/hostname') then\\\\\\\
- local hfile=fs.open('/etc/hostname', 'r')\\\\\\\
- syscfg.computername=hfile.readLine()\\\\\\\
- hfile.close()\\\\\\\
- end\\\\\\\
- shell.run(\\\\\\\"label set \\\\\\\", syscfg.computername)\\\\\\\
- if fs.exists(\\\\\\\"/tmp\\\\\\\") then\\\\\\\
- print(\\\\\\\"Cleaning cache..\\\\\\\")\\\\\\\
- shell.run(\\\\\\\"rm /tmp\\\\\\\")\\\\\\\
- end\\\\\\\
- shell.run(\\\\\\\"mkdir /tmp\\\\\\\")\\\\\\\
- syslog.writeLine(\\\\\\\"Loading startup programs and libs..\\\\\\\")\\\\\\\
- syslog.close()\\\\\\\
- shell.run(\\\\\\\"/system/Programs/startup\\\\\\\")\\\\\\\
- shell.run(\\\\\\\"/system/lib/startup\\\\\\\")\\\\\\\
- shell.run(\\\\\\\"/system/auth\\\\\\\")\\\"\",\
- }",
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement