Created
June 10, 2021 09:24
-
-
Save benjjo/9a12019d83ca0b9297be34843ede8406 to your computer and use it in GitHub Desktop.
A small script to display the IP address of your Raspberry Pi, on start up. Requires figlet, lxterm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Encoding=UTF-8 | |
Name=Terminal autostart | |
Comment=Start a terminal and list directory | |
Exec=/usr/bin/lxterm -e 'sleep 60 ; figlet `hostname -I` ; sleep 600' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Display IP address on startup
Hi all, thought i'd share this as it was another thing I found that was harder than it feels it should be.
If you're like me and you log into your Pi with VNC at the office, its a bit of pain to have to locate the IP address of the Pi when your IT department refuses to give you a static IP.
I use the following:
vim ~/.config/autostart/lxterm-autostart.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Terminal autostart
Comment=Start a terminal and list directory
Exec=/usr/bin/lxterm -e 'sleep 60 ; figlet
hostname -I
; sleep 600'It works for me. Obviously iv'e installed figlet for a bit of flare because without flare we are simply just animals.