0

Could anyone help me blank the local terminal on bootup? I need the screen completely blank before a fullscreen app opens. I've removed everything but I still have -

pi@raspberryPi:~$ 

I can manually remove it using

sudo sh -c "TERM=linux setterm -foreground black -clear all >/dev/tty0" 

but putting this in sudo crontab -e, a systemctl script, or /etc/rc.local isn't working.

The service works if I run it manually, sudo systemctl start black.service so I think it's just a timing issue, can I make it wait for the user to logon?

7
  • If I recall, that prompt can be modified via an environment variable. PS1? So export PS1='' Commented Nov 29, 2023 at 12:10
  • not sure where I'd put that? I tried it in terminal and nothing happened, whereas the command above works if typed in manually Commented Nov 29, 2023 at 12:17
  • I've got it work in a hacky way, but not the most elegant. Ideally would like a nicer soloution. I've added /bin/sleep 0.1 before the commands in the sh file and just repeated all it about 50 times. Commented Nov 29, 2023 at 12:36
  • You can try putting it in ~/.bashrc Commented Nov 29, 2023 at 13:23
  • I also tried that, it didn't work Commented Nov 29, 2023 at 15:02

1 Answer 1

0

The pi@raspberryPi:~$ is created in .bashrc which is called by the .profile file. Those two file can be changed to to do something else.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.