Skip to content
← Back to Community
COYOTE OS
Profile icon
CodeLongAndPros

A 'OS' in python. Can't run on real hardware, but is still cool.

The default credentials are:
Cinco (Username)
Coyote (Password)

I recommend forking this so I can't access your data if you make an account.

Use help to get commands. Use man [command] to get more info.

Feedback is greatly appreciated.
My favorite part are the *.ledger files.

This is the extension -reincarnation- of Salmon-dev-chronos

UPDATE: I just added an editor. Call it using jedi, with the filename as the first argument.

Use a to append at the current pos. When appending, press ` to exit.

Use w to write to disk.

Use p to print the current line.

Use l to show the whole file,

Use d to delete the current line.

Use q to quit.

Enter any int to goto that line.

An example session:

Screenshot_20200401_142255

Voters
Profile icon
G0RG3
Profile icon
programmeruser
Profile icon
HahaYes
Profile icon
SBCKing
Profile icon
Leroy01010
Profile icon
catherinebish
Profile icon
Anoki21
Profile icon
CodeLongAndPros
Profile icon
SkywayDeveloper
Profile icon
N3rdL0rd
Comments
hotnewtop
Profile icon
JustAWalrus

Hello, I like the idea and the execution is just great. I was wondering @Coder100 and I are making an OS. A bit like this but we will make it much more complex. It will use Python and probably some json/yml. If you wanted to join that’d be great. Reply for more info.

Profile icon
CodeLongAndPros

@Wuru Sure.

Profile icon
JustAWalrus

K I’ll invite rn and explain. @CodeLongAndPros

Profile icon
JustAWalrus
Profile icon
VMTU

my genius brain just tried to type a unix command

Profile icon
Leroy01010

CAN I HAVE A USERNAME

Profile icon
CodeLongAndPros

@Leroy01010 Sure! Login with "Cinco" and "Coyote", enter cconfig, and press (4)

Profile icon
JoeyLent

This is just one thing, there may be more, but this is the one I found. When you type ls la, it gives an error. Yes, I was thinking about ls -la from Unix.

Also, you can see the hash if you type in the wrong password. This can be or is a security flaw.

Profile icon
CodeLongAndPros

@JoeyLent You can type la to achieve the same as ls -la When you type ls la, you are trying to list directory la

Profile icon
JoeyLent

@CodeLongAndPros You should still add checks to see if the input is going to create an error. This is the error I get:
FileNotFoundError: [Errno 2] No such file or directory: 'os/Cinco/la'

Profile icon
CodeLongAndPros

@JoeyLent It is trying to list dir la

Profile icon
Evanlicious

@JoeyLent The hash is SHA2-256, and it just translates to "C". I'm not sure why that would pop up, but it does somehow.

Profile icon
CodeLongAndPros

@Evanlicious The hash is SHA-256, but the hashed text is Coyote.

Profile icon
Evanlicious

@CodeLongAndPros Ah, so I must have gotten something wrong. Thanks for the correction.

Profile icon
CodeLongAndPros

@Evanlicious It's fine, as long as you didn't break SHA-256 :D

Profile icon
staticvoidliam7

this is cool

Profile icon
CodeLongAndPros

@LiamDonohue, thanks.

Profile icon
Navinor

wow what did I start

Profile icon
CodeLongAndPros

@Warhawk947 A project that was sitting in my repls untouched for 6 months.
But still very good.

Profile icon
Navinor
Profile icon
CodeLongAndPros

@Warhawk947 Thanks.

Profile icon
AphixDev

I see, you used Json. Good choice! It would be cool if for the password system, you can hash and salt the passwords.

Profile icon
CodeLongAndPros

@nt998302 Actually, I just wrote a python dict to the file, and loaded it with ast.literal_eval

Profile icon
CodeLongAndPros

@nt998302 But I am working on the hash

Profile icon
sylashur

I would suggest allowing the user to retry the sign in if they fail to sign in.

Profile icon
CodeLongAndPros

@sylashur Good idea, I'll work on it.

Profile icon
CodeLongAndPros

@sylashur Done! You now have unlimited login attempts.

Profile icon
sylashur

@CodeLongAndPros Yay, thank you.

Profile icon
sylashur

@sylashur Ooh, one more, probably a quick one, some people might not recognize the difference in color, and this would just feel all that more professional. I think there should be a message saying that you messed up the password.

Profile icon
CodeLongAndPros
Profile icon
sylashur

@CodeLongAndPros 1. Awesome, well done. 2. Lol that's the same wrong password I used, are you keeping a log?

Profile icon
CodeLongAndPros

@sylashur Nope. I almost typed the correct password in, and remembered that I had to enter a bad password.

Profile icon
sylashur

@CodeLongAndPros Nice, I may or may not have gone through pretty much the same thought process.