WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Getty and MinGetty  (Read 5132 times)

Offline Zendrael

  • Sr. Member
  • ****
  • Posts: 363
    • Zendrael's home of projects
Getty and MinGetty
« on: January 10, 2013, 09:25:51 AM »
Hello!

Is there any particular reason to use getty instead of mingetty on Core?

Using mingetty would not make the Core even lighter or still consume less memory?

Is there some way to replace getty?

Thanks!

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Getty and MinGetty
« Reply #1 on: January 10, 2013, 09:52:14 AM »
/sbin/getty is part of busybox.
mingetty would be a separate program and consume more memory.
Why do you want to replace getty?

Offline Zendrael

  • Sr. Member
  • ****
  • Posts: 363
    • Zendrael's home of projects
Re: Getty and MinGetty
« Reply #2 on: January 10, 2013, 10:46:43 AM »
Hi Mr. Gerald_Clark!

It's because a few years ago, when I didn't use Core yet, I had a Debian System runnng Xvesa with mingetty. This way the overall system needed just 30MB of RAM after boot. So I was wondering if it could be useful on Core. I didn't knew that getty is part of busybox!

I think I have some sort of "old pc syndrome" - everytime trying to use less resources... That's why I like Core!


Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Getty and MinGetty
« Reply #3 on: January 10, 2013, 09:59:03 PM »
The best way to replace getty is not to have any instances of it running ;)
I've never observed getty running under TC, do you have any particular need for it or are you perhaps using the multivt boot code?
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Zendrael

  • Sr. Member
  • ****
  • Posts: 363
    • Zendrael's home of projects
Re: Getty and MinGetty
« Reply #4 on: January 11, 2013, 07:33:43 AM »
The best way to replace getty is not to have any instances of it running ;)
I've never observed getty running under TC, do you have any particular need for it or are you perhaps using the multivt boot code?

Aha!

This was my mistake! I was using multivt! Without it I do not see more occurrences of getty when I use ps!

So, busybox acts like init and getty too?

Thanks Tinypoodle!

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Getty and MinGetty
« Reply #5 on: January 11, 2013, 10:54:19 AM »
busybox --list
or busybox with no options will show you what busybox provides.

Offline Zendrael

  • Sr. Member
  • ****
  • Posts: 363
    • Zendrael's home of projects
Re: Getty and MinGetty
« Reply #6 on: January 11, 2013, 12:57:55 PM »
Hey gerald_clark!

I just did not know that it could be used as init and getty by default. I was thinking that it was working in Core in some sort of special form or compilation like we do with crunchgen on BSD systems.

So, to finish this topic, busybox works like a single tty on Core by default. There is no need to use getty or mingetty at all. Right?

Thanks!

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Getty and MinGetty
« Reply #7 on: January 13, 2013, 12:24:03 AM »
crunchgen vs. busybox are totally different approaches.
There is no need to have a getty running without a particular purpose of usage - that's totally independent from busybox and getty flavors.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)