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

OS '16 - The 2016 programmed OS. [Alpha 2.0]

Started by rdmGAMER, 28 June 2016 - 05:30 PM
rdmGAMER #1
Posted 28 June 2016 - 07:30 PM
After days of coding, it's finally here : OS '16!! :D/> (Version Alpha 2.0)

FeaturesDesktop:
-clickable Icons
- dragable Icons
- clickable Start Menu

- custom Icons (run nPaintPro with this args: ".sys/icons/xxx.nfp". To edit the icons, nPaintpro: ".sys/icons/icon1.nfp", FileBrowser: ".sys/icons/icon2.nfp and ccYouTube: ".sys/icons/icon3.nfp")

Login:
- up to 5 custom user accounts

Config (For the desktop)

and more!…


CreditsNitrogenFingers: nPaintPro

BigSHinyToys: FileBrowser

remiX: ccYouTube

ScreenshotsThe OS is booting:
[attachment=2617:os16_1.png]

The login screen:
[attachment=2618:os16_2.png]

The desktop:
[attachment=2619:os16_3.png]

The config file:
[attachment=2620:os16_4.png]

ChangelogAlpha 2.0:
-Passwords are now hashable
-The account file was moved
and more…

Alpha 1.02:
Bugs were fixed

Alpha 1.01:
Bugs were fixed

Alpha 1.0:
Release

Download:
Version Alpha 2.0 :
Installer: pastebin get nk4WwCP7 install
pastebin run nk4WwCP7

Zip: Link

Version Alpha 1.02 :
Installer: pastebin get kf0TkVCR install
pastebin run kf0TkVCR

Zip: Link

BugsYou have to wait until the installer says (text from the code): "OS'16 is succesfully installed. Rebooting.." It's hanging at the download of the images, so so just wait until the installer is finished!
Edited on 13 August 2016 - 04:38 PM
Mumbai #2
Posted 28 June 2016 - 07:37 PM
your installer failed to fetch. Good job

[1] – Gets stuck fetching images
[2] – Rebooting and loaded the annoying screen that reminds me of a terminal in Fallout
[3] – error "bootloader:16: Expected image, x, y"
rdmGAMER #3
Posted 28 June 2016 - 07:43 PM
you have to wait until the installer is finished. when its finished it says (text from the code): "OS'16 is succesfully installed. Rebooting.."
Mumbai #4
Posted 28 June 2016 - 07:44 PM
The fact that im still waiting for it to finish reminds me of installing Windows..
EDIT: LOL im just too impatient works now
Edited on 28 June 2016 - 05:46 PM
Mumbai #5
Posted 28 June 2016 - 07:52 PM
OK last of my annoying comments

[1] – Would it not be better to instead have a one time user setup? This would be better to prevent any malicious users from going to the file browser and messing with your stuff
[2] – yep its windows style…yay….
[3] – in /.opt/logon the username and password are unencrypted.
[4] – also in /.opt/logon there seems to be a backdoor login called "guest" ?
Edited on 28 June 2016 - 05:53 PM
rdmGAMER #6
Posted 28 June 2016 - 07:56 PM
OK last of my annoying comments

[1] – Would it not be better to instead have a one time user setup? This would be better to prevent any malicious users from going to the file browser and messing with your stuff
[2] – yep its windows style…yay….
[3] – in /.opt/logon the username and password are unencrypted.
[4] – also in /.opt/logon there seems to be a backdoor login called "guest" ?

[1] Comming in the next update :)/>
[2] :D/>
[3] EDIT: Idk how to encrypt+decrypt password, so I think you won't be able to encrypt your passwords
[4] This should be so, but I can remove it.
Edited on 28 June 2016 - 06:35 PM
Mumbai #7
Posted 28 June 2016 - 08:02 PM
yep the guest backdoor login works.

just type Guest then nothing for pass lel

You might want to remove it. unless there were user privileges system.
rdmGAMER #8
Posted 28 June 2016 - 08:05 PM
ok, I removed it now.
Luca_S #9
Posted 28 June 2016 - 08:21 PM
Ok, several things.

1. You could make your installer show the files it's already got(Downloaded x/y)
2. Why on earth is your password visible when registering? Make the user enter the password twice and only allow registering if the passwords match.
-snip-
[3] – in /.opt/logon the username and password are unencrypted.
-snip-
Which isn't bad, don't encrypt passwords! Hashing is the way to go!
3. No one likes fake loading times(Talking about the "bios")
4. If you terminate you get into a shell(Make it not terminate-able until the user is logged in)
Mumbai #10
Posted 28 June 2016 - 08:38 PM
Ok, several things.

1. You could make your installer show the files it's already got(Downloaded x/y)
2. Why on earth is your password visible when registering? Make the user enter the password twice and only allow registering if the passwords match.
-snip-
[3] – in /.opt/logon the username and password are unencrypted.
-snip-
Which isn't bad, don't encrypt passwords! Hashing is the way to go!
3. No one likes fake loading times(Talking about the "bios")
4. If you terminate you get into a shell(Make it not terminate-able until the user is logged in)
Check out SHA hashes. I hear Sha-3 is the best….
rdmGAMER #11
Posted 28 June 2016 - 08:40 PM
Idk how to encrypt+decrypt password, so I think you won't be able to encrypt your passwords :unsure:/>
rdmGAMER #12
Posted 28 June 2016 - 08:47 PM
Idk how to encrypt+decrypt password, so I think you won't be able to encrypt your passwords :unsure:/>

Check out SHA hashes. I hear Sha-3 is the best….

and how does that work? :huh:/>
Lemmmy #13
Posted 28 June 2016 - 08:49 PM
Idk how to encrypt+decrypt password, so I think you won't be able to encrypt your passwords :unsure:/>

Check out SHA hashes. I hear Sha-3 is the best….

and how does that work? :huh:/>

don't bother trying to implement an sha3 variant in CC, just find an sha256 implementation somewhere on this forums or on the internet

what you would so when creating an account is save the hashed password in a file, like
sha256(password)

then when you log in, you check if sha256(input) is equal to what is saved in the file, like
if sha256(input) == passwordFile.readAll() then

obviously your code should be cleaner and not stupid but that's how you'd implement it
rdmGAMER #14
Posted 28 June 2016 - 09:00 PM
Idk how to encrypt+decrypt password, so I think you won't be able to encrypt your passwords :unsure:/>

Check out SHA hashes. I hear Sha-3 is the best….

and how does that work? :huh:/>

don't bother trying to implement an sha3 variant in CC, just find an sha256 implementation somewhere on this forums or on the internet

what you would so when creating an account is save the hashed password in a file, like
sha256(password)

then when you log in, you check if sha256(input) is equal to what is saved in the file, like
if sha256(input) == passwordFile.readAll() then

obviously your code should be cleaner and not stupid but that's how you'd implement it

and how do I hash a password?
3d6 #15
Posted 28 June 2016 - 09:02 PM
hashedpassword = sha256(password)
rdmGAMER #16
Posted 28 June 2016 - 09:13 PM
ok, now I understand it. In the next update it's coming. :)/>
Anavrins #17
Posted 28 June 2016 - 10:23 PM
don't bother trying to implement an sha3 variant in CC, just find an sha256 implementation somewhere on this forums or on the internet
I have a BLAKE implementation on my profile, which is a sha3 finalist, the thing with sha3 is not that it's better than sha2, it's merely a replacement.
Heck for password storage, sha2 is actually better than sha3 since it's slower.
Lemmmy #18
Posted 28 June 2016 - 11:30 PM
don't bother trying to implement an sha3 variant in CC, just find an sha256 implementation somewhere on this forums or on the internet
I have a BLAKE implementation on my profile, which is a sha3 finalist, the thing with sha3 is not that it's better than sha2, it's merely a replacement.
Heck for password storage, sha2 is actually better than sha3 since it's slower.

exactly
Lyqyd #19
Posted 28 June 2016 - 11:40 PM
I've cleaned up this topic. You all know better. I'm disappointed that it went that far.
Piorjade #20
Posted 29 June 2016 - 12:19 PM
This is a very interesting concept :)/> (I mainly mean that icon-movement, which is still quite buggy)

But you could (as the others said) implement SHA-256 hashing and remove the fake loading times (maybe give the user 3 seconds on boot to press a button to open the config…)

Another nice thing would be multitasking (my idea was using the vanilla window API, tables and the coroutine API.. if you want you can look at my code), which is (in my opinion) not that hard to do… Still good job :D/>
Edited on 29 June 2016 - 10:19 AM
rdmGAMER #21
Posted 04 July 2016 - 02:17 PM
A new update is released! Get it at the first post.
Nothy #22
Posted 05 July 2016 - 11:45 PM
This is nice, the only thing that bugs me is that you have to press enter to get the OS to actually boot. Could you add like a small timer that just looks for input, then boots the OS?
rdmGAMER #23
Posted 06 July 2016 - 01:57 PM
This is nice, the only thing that bugs me is that you have to press enter to get the OS to actually boot. Could you add like a small timer that just looks for input, then boots the OS?
Yes, I'm already programming it. In the next update it's coming :)/>
xXcoolguyXx #24
Posted 16 August 2016 - 06:15 PM
Very bad os. Copies other peeps programs and uses them.
Elttob #25
Posted 30 August 2016 - 08:50 PM
Very bad os. Copies other peeps programs and uses them.
Most operating systems do this, and does not make it any worse. Sure, custom programs are nice, but are not required.