This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
The_Puzzlemaker's profile picture

Linux Port to CC

Started by The_Puzzlemaker, 03 December 2016 - 11:34 PM
The_Puzzlemaker #1
Posted 04 December 2016 - 12:34 AM
NOTE: This is not complete! Suggest features from Linux you want and I will add them!

To get it, type this:

wget http://thepuzzlemaker.info/cc/zinclinux/installer installer
installer

This will install it into the "/" directory.

The default username/password combination is the username "root" and password "toor"

Documentation:
Spoiler"adduser": Will prompt you to add a user.
"bash": Will run SH files (coming soon), or if you use "bash login", then it will prompt you to log in.
"/ZincLinux/login": login API, to prompt for username/password, use the function "passwdUserIn()". It will return in this format: "{[login successful?], [if login successful, username]}"
"/ZincLinux/var": Variables of the system, be careful with some. The one marked "hostname" can be changed to anything else, because it is your computer's name.

Package manager added. (called ZPM)
To keep from reinstalling the system (if you do not have ZPM), use these commands.

rm /startup
wget http://thepuzzlemaker.info/cc/zinclinux/ZincLinux/zpm /ZincLinux/zpm
wget http://thepuzzlemaker.info/cc/zinclinux/startup /startup
Create a file in the /ZincLinux folder called "currentver" with the content "1.0".
Once I add the package manager, you will be able to use the argument "update-system"

Roadmap:
Spoiler
  • Add web server (run with Rednet, using a custom browser)
  • Custom "Redweb" browser
  • Add more Linux functionality.
Edited on 04 December 2016 - 12:26 AM
The_Puzzlemaker #2
Posted 04 December 2016 - 01:27 AM
Finally, the package manager is live! It is called ZPM.
X3ME #3
Posted 04 December 2016 - 08:32 PM
Erm, this really isn't accurate if you were going for a Linux port, look at cLinux.
Nice work for a starter program though!
Piorjade #4
Posted 08 December 2016 - 06:09 PM
I suggest you using TLCO like me :)/>

It's more complicated to implement stuff like the shell API and rednet but currently it looks like you've just made a new commandline? Didn't look into the code tho.
electrodeyt #5
Posted 22 April 2017 - 08:45 PM
Erm, this is not secure. You might as well not bother with the password. Simply type 2 and youre past it.