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

CraftOS Debian (v0.1 alpha)

Started by MineRobber___T, 23 November 2015 - 04:42 AM
MineRobber___T #1
Posted 23 November 2015 - 05:42 AM
This has been supplanted by MineRobberOS (now using GitHub!)

Original Post:
SpoilerCraftOS Debian
version 0.1 alpha


This is my first ComputerCraft program, still in alpha stages.

How to get:

To install CraftOS Debian, you need lyqyd's packman package manager. Install that with "pastebin run 4zyreNZy". After running that command, use "packman fetch install craftos-debian". Then, restart the computer. If, for whatever reason, you don't like CraftOS Debian, simply type "exit" at the prompt, and then, at the shell, type "del startup". Now, it shall be uninstalled.


Changelog:

0.1
-Cringeworthy programming (first OS program)
-planned to be rehauled soon (this version will become the package craftos-debian-legacy)
Edited on 29 December 2015 - 12:08 PM
Waitdev_ #2
Posted 23 November 2015 - 09:55 AM
eh, slightly really broken. the "easy shell" doesn't do anything
Creator #3
Posted 23 November 2015 - 02:07 PM
Is there a github where I can view the code?
Lyqyd #4
Posted 23 November 2015 - 04:38 PM
eh, slightly really broken. the "easy shell" doesn't do anything

If the easy-shell script isn't doing what it's supposed to do (mainly, add /usr/bin to the shell path), please post a bug report on the main packman thread.
MineRobber___T #5
Posted 23 November 2015 - 09:14 PM
Is there a github where I can view the code?

Not exactly, but here is the code that I made. (it's very messy btw, panning on overhauling the code base soon)

Oh, by the way, Lyqyd, what's the packman command to purge a package? I forgot while writing the OP and went with a "delete the startup file" solution.
Lyqyd #6
Posted 23 November 2015 - 10:27 PM
You'd use the remove keyword: packman remove craftos-debian

Also, since your package replaces the startup file entirely, you might be interested in adding setup/cleanup scripts to preserve a pre-existing startup file (if one exists), and restore it when your package is removed. Up to you, of course, but your users might appreciate it.
MineRobber___T #7
Posted 24 November 2015 - 10:18 PM
You'd use the remove keyword: packman remove craftos-debian

Also, since your package replaces the startup file entirely, you might be interested in adding setup/cleanup scripts to preserve a pre-existing startup file (if one exists), and restore it when your package is removed. Up to you, of course, but your users might appreciate it.

I'll work on that when I get more done on it, but in the meantime, I'll add a warning to the OP.

About that, though:

I tried installing it on a computer, and it didn't work. How do you install a file to the root instead of the usr/bin folder.

Here's the repository section:

name = craftos-debian
type = pastebin
url = h4uwy8JK
filename = startup
category = os
version = 0.1
dependencies = none
size = 50
end
Lyqyd #8
Posted 24 November 2015 - 11:53 PM
You'd use the target attribute:

target = /
MineRobber___T #9
Posted 25 November 2015 - 05:48 PM
You'd use the target attribute:

target = /

ok, thanks