Jump to content




cLinux [now with OPTIONAL Desktop Enviroment] [Bye CraftOS, kappa]

computer lua lua pocket

90 replies to this topic

#41 Piorjade

  • Members
  • 244 posts
  • LocationComputer, Germany

Posted 07 October 2016 - 09:59 PM

Information about this project

I'm currently remaking the OS, to make it more modular and compatible towards window managers / desktop enviroments and programs in general.
The thing is, I'm taking it easy meaning that I'm not very far ATM.

Who is kinda working on this too? thecrimulo. (Tho he only helped me out, I'll still ship it as ours)

I'll also consider implementing Sewbacca's own FS API (don't know how yet)

#42 Piorjade

  • Members
  • 244 posts
  • LocationComputer, Germany

Posted 08 October 2016 - 07:57 PM

STATUS UPDATE ON REWRITE:

Spoiler


#43 Sewbacca

  • Members
  • 450 posts
  • LocationStar Wars

Posted 08 October 2016 - 09:46 PM

Hey, i tested your system a bit right now.
Here are some things, i would improve:
  • A help or cmdlist command to list all available commands
  • Improve resolving paths (like '..', '.') (you can use fs.combine())
  • A edit program or a view program to view a file.


#44 Piorjade

  • Members
  • 244 posts
  • LocationComputer, Germany

Posted 08 October 2016 - 09:49 PM

 Sewbacca, on 08 October 2016 - 09:46 PM, said:

Hey, i tested your system a bit right now.
Here are some things, i would improve:
  • A help or cmdlist command to list all available commands
  • Improve resolving paths (like '..', '.') (you can use fs.combine())
  • A edit program or a view program to view a file.
Ty for testing! And I think you used the normal version, which isn't being worked on right now :)
I'm currently making a rewrite, thank you for your ideas, going to implement them in the rewrite tho.

If you want to test the rewritten code, go to the github page and then choose the rewrite branch :)

#45 Sewbacca

  • Members
  • 450 posts
  • LocationStar Wars

Posted 08 October 2016 - 09:51 PM

I didn't looked into yet, but you can use the shell API to interact with your shell. Maybe you are doing this right now, i dunno.

#46 Sewbacca

  • Members
  • 450 posts
  • LocationStar Wars

Posted 08 October 2016 - 10:00 PM

You can simplify following code in startup.lua:
str = string.reverse(str)
str = string.sub(str, 2)
str = string.reverse(str)

to

str = string.sub(str, -2)

or

str = string.sub(str, 1, -2)

Edited by Sewbacca, 08 October 2016 - 10:00 PM.


#47 Piorjade

  • Members
  • 244 posts
  • LocationComputer, Germany

Posted 08 October 2016 - 10:04 PM

 Sewbacca, on 08 October 2016 - 10:00 PM, said:

You can simplify following code in startup.lua:
str = string.reverse(str)
str = string.sub(str, 2)
str = string.reverse(str)

to

str = string.sub(str, -2)

or

str = string.sub(str, 1, -2)

Wow I'm good at math in shool but totally forgot about it while programming :D
Ty for that remind

#48 Sewbacca

  • Members
  • 450 posts
  • LocationStar Wars

Posted 08 October 2016 - 10:11 PM

 Piorjade, on 08 October 2016 - 10:04 PM, said:

 Sewbacca, on 08 October 2016 - 10:00 PM, said:

You can simplify following code in startup.lua:
str = string.reverse(str)
str = string.sub(str, 2)
str = string.reverse(str)

to

str = string.sub(str, -2)

or

str = string.sub(str, 1, -2)

Wow I'm good at math in shool but totally forgot about it while programming :D
Ty for that remind

Yeah, i didn't know it for a while as well.

#49 Piorjade

  • Members
  • 244 posts
  • LocationComputer, Germany

Posted 09 October 2016 - 06:27 PM

STATUS UPDATE ON REWRITE:

Spoiler


EDIT:
Currently almost no documentation at all LMAO
Had been stuck with multitasking for about 2 hours....

NOTE:
The commandline currently writes this:
#[a number]
This number indicates, how many tasks are running on commandline-level
When you enter a command it first prints the names/paths of the running tasks and then executes your command

For example after reboot:
#2 *presses enter*
CommandLine
RedNet
#2 *enters path to a file*
CommandLine
RedNet
<executes code of that file, the code decides to sleep for 2 seconds>
#3 _ (waits 2 seconds) --> #2 hello world (it printed the part after sleep)
#2 _


ANOTHER UPDATE ON THE REWRITE:

Spoiler

Edited by Piorjade, 11 October 2016 - 07:45 PM.


#50 Piorjade

  • Members
  • 244 posts
  • LocationComputer, Germany

Posted 14 October 2016 - 07:08 PM

REWRITE IS NOW THE OFFICIAL VERSION

Please report bugs here or on GitHub, I will work on this more often now <3

EDIT:
Some things on the first post are completely changed now, but I can't rewrite it right now, maybe later.

Edited by Piorjade, 14 October 2016 - 07:09 PM.


#51 Piorjade

  • Members
  • 244 posts
  • LocationComputer, Germany

Posted 14 October 2016 - 11:31 PM

UPDATE:

Spoiler

Edited by Piorjade, 15 October 2016 - 11:37 AM.


#52 Piorjade

  • Members
  • 244 posts
  • LocationComputer, Germany

Posted 15 October 2016 - 10:16 PM

KINDA HUGE UPDATE: (literally)

Spoiler

KNOWN BUG IN doorX:

Spoiler

Edited by Piorjade, 15 October 2016 - 10:43 PM.


#53 Piorjade

  • Members
  • 244 posts
  • LocationComputer, Germany

Posted 16 October 2016 - 03:28 AM

BUGFIX (on doorX):

Spoiler


EDIT:
Ugh I can't believe that something crashes now again when loading the languagefile...

EDIT2:
Well nvm I was dumb, fixed it.

Edited by Piorjade, 16 October 2016 - 03:38 AM.


#54 Piorjade

  • Members
  • 244 posts
  • LocationComputer, Germany

Posted 16 October 2016 - 04:40 AM

MINOR UPDATE:

Spoiler


#55 Piorjade

  • Members
  • 244 posts
  • LocationComputer, Germany

Posted 21 October 2016 - 07:06 PM

Upcoming feature(s) in cLinux (and doorX):
  • Add new users <-- in about 2-4 days (I'm currently very busy with school)
  • Filebrowser (as packman package) <-- in about 0-2 days <--- already there (package fsexpose), but quite buggy, works flawless in CraftOS tho...
  • Packman GUI, for every DE you want (may take longer, I'll have to think whether I want to make my own (preffered)) <-- don't know when
  • Maybe read-only homedirectory, if it's not YOUR directory <-- don't know when
  • Maybe home directory encrypting, but would kill the point above <-- don't know when

EDIT: INFORMATION

Well I didn't touch this for about 1-2 weeks and yesterday I was trying to fix the filebrowser, but then I found out that there is a critical bug in the thread manager, allowing a program to simply access the old FS API, which SHOULD be removed when starting a program (it even should've been removed after shell.lua finishes) but somehow they still have access to it.
So now I'm slowly starting to rewrite the system once again (not FULLY but still much) to prevent that kind of thing to happen...

(maybe I'll even know how to fix the filebrowser while coding...)

Also I may not be that active here for a couple of weeks, as I got stuff in school to do and I'm thinking of starting to program with Löve2D or even Unity.

Edited by Piorjade, 25 October 2016 - 04:56 PM.


#56 Stevan

  • New Members
  • 2 posts

Posted 21 November 2016 - 09:03 PM

Help! i dont know how to reboot! the reboot command dosent work :/ (yeah i know im a noob)

#57 Piorjade

  • Members
  • 244 posts
  • LocationComputer, Germany

Posted 23 November 2016 - 11:46 AM

 Stevan, on 21 November 2016 - 09:03 PM, said:

Help! i dont know how to reboot! the reboot command dosent work :/ (yeah i know im a noob)

Hold CTRL + R is currently the only "built-in" function.


If you want to add a reboot command do this:
sudo edit /bin/reboot
--This is inside of editor
os.reboot()
--Press CTRL, go to save, press CTRL again, go to exit
--This is in the console again
reboot



NOTE:
(I'm currently not working on the re-rewrite, as I have many exams coming up and I want to learn Unity3D. (Currently I'm completely stuck with saving a whole environment, which can be edited while playing... look Animal Crossing))

Edited by Piorjade, 23 November 2016 - 11:47 AM.


#58 X3ME

  • Members
  • 82 posts
  • LocationBeing the stereotypical kid in forums.

Posted 28 November 2016 - 07:14 PM

How would I go about contributing to this project? I'm a linux developer irl so this is something that satisfies me :D

#59 Piorjade

  • Members
  • 244 posts
  • LocationComputer, Germany

Posted 29 November 2016 - 05:27 PM

 X3ME, on 28 November 2016 - 07:14 PM, said:

How would I go about contributing to this project? I'm a linux developer irl so this is something that satisfies me :D
You can fork from GitHub if you want or make Pull Requests. I'm sure you probably already know this, but this is not linux and just tries to mimic it right?
Anyways, if you help me I'd be really happy (I can't currently work on it as I stated above)

EDIT: Had nothing to do... so I worked on the re-rewrite quite a bit again..he..he..

Edited by Piorjade, 29 November 2016 - 10:01 PM.


#60 Piorjade

  • Members
  • 244 posts
  • LocationComputer, Germany

Posted 30 November 2016 - 09:46 PM

Stable Update (for rewrite branch):


- Removed unnecessary threadmanagers (only using one, remade threadmanager for everything EXCEPT services, which use sThread.l)
- Got commandline working
- Got argument-passing working again
- Blah
- Things that I mentioned above are mostly fixed / done (for example programs have no access to old.fs anymore)

TODO:

- Move sThread.l to /sys/ (noticed that while writing this)
- Test out everything
- Polish commandline

Things that I can't fix:

- fsexpose (sudo packman install fsexpose) flickers (I think that has to do with the many threadmanagers, cuz there is no real multitasking)

Edited by Piorjade, 30 November 2016 - 09:47 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users