WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Help - replace getty with FBTerm on boot  (Read 259 times)

Offline dohnjoe

  • Newbie
  • *
  • Posts: 2
Help - replace getty with FBTerm on boot
« on: December 15, 2024, 02:22:55 PM »
I am using piCore based on v14.1, with only the barebone CLI and no GUI.

Though FBTerm is not available as a package in the TC repository, I have managed to load FBTerm package on boot.

On boot, I would like to launch fbterm directly instead of getty.

So far, I've tried editing /etc/inittab and replacing the first tty1 line with
 
Code: [Select]
tty1::respawn:/usr/local/bin/fbterm -- /bin/login
And editing the /opt/.filetool.lst file to include etc/inittab and then run backup to persist these changes, followed by a reboot. However, this still loads into getty and not fbterm.

Currently, I have added launching fbterm at the end of my .ashrc file, which basically means that the system first loads getty, and then runs fbterm inside that.

Though this just about works, I would like to replace getty with fbterm so that on boot, the TTY1 runs in FBTerm and not in getty.

Am I on the right track, or am I missing something? Any help with this will be greatly appreciated.

Online patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 726
Re: Help - replace getty with FBTerm on boot
« Reply #1 on: December 15, 2024, 06:27:03 PM »
To edit the inittab file with picore or tc you have to unpack the initrd and repack the initrd.
I think I have some old threads talking about that, let me search a little bit on this forum to find these.

Here you go.
https://forum.tinycorelinux.net/index.php/topic,21129.msg133912.html#msg133912

And here is all of them:

https://forum.tinycorelinux.net/index.php?action=search2&search=inittab&userspec=patrikg

Happy hacking!! :)

Offline dohnjoe

  • Newbie
  • *
  • Posts: 2
Re: Help - replace getty with FBTerm on boot
« Reply #2 on: December 16, 2024, 11:35:29 AM »
Wow, thank you. I was under the impression that the first thing that loads after boot is the init.

I followed your suggestion and it works! Thank you again for the help.