![]() |
|
|||||||
| Home | Forums | Register | Blogs | FAQ | Live Leaderboard | Search | Today's Posts | Mark Forums Read |
| Water Cooler Off-topic general discussion forums for all things non Xbox. |
![]() |
|
|
#1 | ||||||||
Senior Member
![]()
|
I will use this thread to provide updates to the current status of my OS.
Name: Undecided. Possibly Erminix, Punix, or RuSiFix. Stage: Planning Logo: None yet. Hoping for someone to submit a Ermine one. Kernel Type: Microkernel planned. Not 100% solid. Architecture: i386 Current Version: 0.0.0 License: Undecided. Most likely GPL. Website: Non-existant. Must decide name first. Planned Features:
Needs To Be Done: Everything. Bugs: None yet. Estimated 0.0.1 Release Date: Unknown. Contributers: None. You may also use this thread to make suggestions, comments, and otherwise discuss the OS. |
||||||||
|
|||||||||
| Last edited by paintba||er; 06-27-2008 at 08:40 PM. | |||||||||
|
|
#2 | ||||||||
Senior Member
![]()
|
I'm getting way ahead again, but do you guys think that there should be a re-reincarnation server? The reincarnation server is what keeps track of the other servers, (drivers and stuff) and relaunches them if they crash. But I'm not sure if I should have a re-reincarnation server that just keeps track of the reincarnation server incase it crashes...
|
||||||||
|
|
|
#3 | ||||||||
Senior Member
![]()
|
Thanks guys, your suggestions have been very insightful.
![]() Anyway, I've come up with another idea that is much further out than my other ones. When the OS gets to a full release version (1.0) I could offer PCs preloaded with it. I'm not suggesting a lock in like Apple does, but some people would like to have a reasonably priced PC with an open source operating system. And other people would like reassurance that they won't have to deal with incompatible hardware. I could build the PCs and sell them at prices competitive to retail prices of Windoze PCs while still making a small profit. Well, I could do that as long as it didn't get too popular. If that happened then I'd have to hire some people, and get contracts with some manufacturers of PC components. But I don't see that happening... I know that I would purchase something from someone who did that...I would buy PCs with Linux if anyone sold them at reasonable prices. But the few people who offer such services generally charge a few hundred dollars more than a Windoze PC with the same specs. Which is just insane. |
||||||||
|
|
|
#4 | ||||||||
Senior Member
![]()
|
that is way to out there, who would buy from u? and where would u get the money to buy all those pcs?
__________________
2 guys
1 girl and a disrupted forum in which every other member is close to suicidal actions just listening to them ramble about soup and dicks. This is just real life made for sitcom.. -Canadian Gamer4 |
||||||||
|
|||||||||
| Last edited by IllBashU; 06-27-2008 at 02:57 AM. | |||||||||
|
|
#5 | ||||||||
Senior Member
![]()
|
Plenty of people buy from places like I mentioned above. It's not much different. Except that they would be buying it from the creator of the OS. If I were looking for something that is compatible with an OS, the one that the creator of the OS is selling would be my first choice.
|
||||||||
|
|
|
#6 | |||||||||
Senior Member
![]()
|
What do you think of using msh as the default shell? It doesn't really have any features at all, but it definitely follows the simplicity goal. Here's the complete source code:
Code:
/* Minimal shell C source - (c) 1999, Spock (Oscar Portela Arjona) */
#include <sys/wait.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdlib.h>
#include <signal.h>
#include <string.h>
#define chkerr(c,msg) if (c < 0) {perror("ERROR (" msg ")"); exit(-1);}
#define mvdesc(d1,d2) {close(d1); dup(d2); close(d2);}
#define redir(n,f) {close(n); chkerr(open(fv[n],f,0666),"open");}
#define size(v,s,u,n) {(v = realloc(v,s))[u] = n;}
#define l2 l1[vc]
#define l3 l2[p[0]]
int main(void) {
char ***l1 = NULL, *fv[3] ,dir[50] ,c;
int vc, bg, id, p[2], d;
signal(SIGINT, SIG_IGN); signal(SIGQUIT,SIG_IGN);
while (1) {
getcwd(dir,50); write(1,dir,strlen(dir)); write(1," $ ",d = bg = 3);
for (;bg; fv[bg] = NULL) realloc(fv[--bg],0); size(l1,4,0,NULL);
for (vc = p[0] = 0; read(0,&c,1) && (c != 'n');)
switch(c) {
case '<': d = 0; break;
case '>': d = 1; break;
case '|': if (l2) {vc++; p[0] = 0;} d = 3; break;
case '&': if (d < 3) d++; else bg = 1; break;
case ' ': if (d < 3) {if (fv[d]) d = 3;} else if (l2 && l3) p[0]++; break;
default: if (d < 3) {if (!fv[d]) size(fv[d],1,0,'');
size(fv[d],(id=strlen(fv[d]))+2,id,c); fv[d][id+1]='';}
else { if (!l2) {size(l1,vc*4+8,vc+1,NULL); size(l2,4,0,NULL);}
if (!l3) {size(l2,p[0]*4+8,p[0]+1,NULL); size(l3,1,0,'');}
size(l3,(id=strlen(l3))+2,id,c); l3[id+1] = '';}}
for (vc = 0; l2;) {
if (!vc) d = dup(0);
if (l1[vc+1]) chkerr(pipe(p),"pipe");
if (!strcmp(l2[0],"exit")) exit(0);
if (!strcmp(l2[0],"cd")) {if (chdir(l2[1]) < 0) chdir(getenv("HOME"));}
else {if (!(id = fork())) {
if (fv[0] && !vc) redir(0,O_RDONLY) else mvdesc(0,d);
if (fv[1]) redir(1,O_CREAT|O_WRONLY|O_TRUNC);
if (fv[2]) redir(2,O_CREAT|O_WRONLY|O_TRUNC);
if (l1[vc+1]) {mvdesc(1,p[1]); close(p[0]);}
if (!bg) {signal(SIGINT,SIG_DFL); signal(SIGQUIT,SIG_DFL);}
chkerr(execvp(l2[0],l2),"exec");}
if (!l1[vc+1] && !bg) while (wait(NULL) != id);}
for (id = 0; l2[id]; realloc(l2[id++],0)); realloc(l2,0);
close(d); if (l1[++vc]) {d = dup(p[0]); close(p[0]); close(p[1]);}}}}
And the description that goes along with it: Quote:
|
|||||||||
|
|
|
#7 | ||||||||
Senior Member
![]()
|
Can somebody with some legal knowledge tell me, based on the above quote and source code, could I legally edit and GPL that shell as I mention his name? I was thinking of modifying it to add tab completion, wildcard parsing, and maybe a few other things, but I'd really rather have only GPLed apps in the default distribution. I'd contact this Spock guy, but he seems to have disappeared from teh interwebz. I could try to contact him through one of the emails that he provided, but I'm not very confident that I'd get a response. His geocities site is down, so he likely doesn't check that email, bbvnet is down, so the email server is most likely down as well, and the last one is at a Spanish school, which I'm sure he's graduated from by now.
I guess that I could use the Ash shell, but it is quite a lot more complicated. And I don't like it's tab completion. It only works for locations, not for the commands themselves. Edit: I looked at some web archives of his site, and I found that the site went down in 2004. I want to see if there is a newer version than the one from 1999 that I currently have, but the archives don't include anything besides HTML and image files, so I can't download an updated version from the archives. Anyway, I noticed that the site said "Minimal Shell: A tiny linux shell (6Kb) presented at the Xunta Party 2000 (Mar 2000) Best Linux GPL App compr - Ranked 3th", so I searched "xuna party", which brought up a bunch of political shit, so I searched for "xuna party gpl", and well, look at the suggested correction: ![]() LMAO Edit: I can't decide whether or not to use the GNU Coreutils...it's a lot of code if I wanted to implement them myself, (GNU used a few hundred thousand lines) but I really don't want to include GNU software. It's not that the software is bad, Stallman and friends probably did a better job than I could, but I just don't like GNU. They're evangelist douches. Then if it did happen to be successful, they'd come along and horde the credit like they did with Linux. I'd shave RMS's ugly beard if he called it GNU/WhateverTheFu¢kICallIt. I guess I could use (and GPL) the BSD versions. Edit: I think I'm just going to go with Zsh. The shell isn't something that should lack functionality for size. Edit: You know, I think Zsh is a bit overkill...Bash is probably the way to go...I'm very indecisive... |
||||||||
|
|||||||||
| Last edited by paintba||er; 07-01-2008 at 08:39 AM. | |||||||||
|
|
#8 | ||||||||
Senior Member
![]()
|
LOL @ correction...
so how is your os coming?
__________________
2 guys
1 girl and a disrupted forum in which every other member is close to suicidal actions just listening to them ramble about soup and dicks. This is just real life made for sitcom.. -Canadian Gamer4 |
||||||||
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Operating System Logo | paintba||er | Water Cooler | 85 | 07-05-2008 07:40 AM |
| Operating System Name Suggestions | paintba||er | Water Cooler | 3 | 06-30-2008 09:34 PM |
| Top 5 game sales per system worldwide in week 20 | Xbox 360 News | Xbox 360 News | 0 | 05-18-2008 12:41 AM |
| Microsoft Announces new XBOX 360 Points Gifting System | TTR Dr Payne | Xbox 360 Chat | 9 | 01-07-2008 12:12 AM |