Every time I boot my RPi, I want a terminal open. I'd love to be able to include that in the boot process.
I'm running Raspian.
How can this be done?
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It only takes a minute to sign up.Sign up to join this community
You question does not specify whether by 'terminal' you mean the classic terminal
or a graphical session with XTerm opening up automatically.
I'm going to assume the first.
If you're using
wheezyyou can log in automatically by editing
Search for the line:
1:23:respawn:/sbin/getty 38400 tty1
Add a hash tag in front of it
#1:23:respawn:/sbin/getty 38400 tty1
This will disable the line. Next you need to add a new entry:
1:2345:respawn:/bin/login -f pi tty1 </dev/tty1 >/dev/tty1 2>&1
pi is the username of the account you want to use for automatic log in.
Note that this bypasses security, allowing access to your PI without the password of the user.
If you want to revert, just redo the above steps and remove text
Your question has been answered for if you're talking about just booeting into a tty instead of your DM, so I'll answer how you'd just start your terminal emulator on X startup.
This is just as easy. Edit your /home/user/.xinitrc:
exec gnome-terminal &
and add the above line. Replace gnome-terminal with your term of choice. The ampersand is to make it execute and send to the background so it doesn't lock up X when it starts.