How to boot EasyOS to TTY?

Moderator: BarryK

Post Reply
antithesis
Posts: 5
Joined: Wed Dec 22, 2021 9:46 pm
Been thanked: 1 time

How to boot EasyOS to TTY?

Post by antithesis »

Hello. I have to turn off distractions, that's why it's important for me that the graphical interface doesn't load automatically. How do I boot to TTY in EasyOS?

williwaw
Posts: 1595
Joined: Tue Jul 14, 2020 11:24 pm
Has thanked: 145 times
Been thanked: 291 times

Re: How to boot EasyOS to TTY?

Post by williwaw »

select 1 at the first pause after the bootloader runs

User avatar
BarryK
Posts: 2273
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 93 times
Been thanked: 564 times

Re: How to boot EasyOS to TTY?

Post by BarryK »

Or in the menu:
"Shutdown -> Rectify -> Reboot to commandline"

antithesis
Posts: 5
Joined: Wed Dec 22, 2021 9:46 pm
Been thanked: 1 time

Re: How to boot EasyOS to TTY?

Post by antithesis »

Sorry. What I mean is that it defaults to booting to TTY. Is this possible?

williwaw
Posts: 1595
Joined: Tue Jul 14, 2020 11:24 pm
Has thanked: 145 times
Been thanked: 291 times

Re: How to boot EasyOS to TTY?

Post by williwaw »

antithesis wrote: Mon Jun 05, 2023 11:30 am

Sorry. What I mean is that it defaults to booting to TTY. Is this possible?

I am sure there is an edit you can make to make it the default, but I am not sure the best place.
Easy, and Puppy for that matter, are optimized for the desktop and thus working from tty would at best need a few tweaks to be a pleasant way to access your shell.

viewtopic.php?t=6335

User avatar
BarryK
Posts: 2273
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 93 times
Been thanked: 564 times

Re: How to boot EasyOS to TTY?

Post by BarryK »

If you look in /root/.profile, if /root/bootcnt.txt exists then X will not start.
This mechanism comes from the Puppy days. It has this code:

Code: Select all

 if [ -f /root/bootcnt.txt ];then #161009 created by /usr/bin/wmreboot
  mv -f /root/bootcnt.txt /tmp/bootcnt.txt
  echo 'Type "xwin" to start X server'
 fi

...so you could comment-out that mv

Note, when you select "Reboot to commandline" in the menu, /usr/bin/wmreboot runs and does this:

Code: Select all

[ "${1}" == "nox" ] && touch /root/bootcnt.txt #161009 see /root/.profile at bootup.
antithesis
Posts: 5
Joined: Wed Dec 22, 2021 9:46 pm
Been thanked: 1 time

Re: How to boot EasyOS to TTY?

Post by antithesis »

That's very straightforward. Thanks for the help, guys.

Post Reply

Return to “EasyOS”