When was my Pi-Star booted

Post your tips and tricks here
User avatar
N7HHI
Posts: 65
Joined: Thu Apr 12, 2018 11:33 pm
Location: Wentzville, MO
Contact:

When was my Pi-Star booted

Post by N7HHI »

Here is an alias I created for the SSH client to display when the Pi-Star was last booted:
boottime alias.jpg
boottime alias.jpg (69.16 KiB) Viewed 11380 times
73...
Scott - N7HHI
User avatar
MW0MWZ
Site Admin
Posts: 1505
Joined: Wed Apr 04, 2018 9:15 pm
Location: Wales, UK
Contact:

Re: When was my Pi-Star booted

Post by MW0MWZ »

Good job with the ASCII art too :)
Andy

73 de MW0MWZ
http://pistar.uk
oz1cbk
Posts: 57
Joined: Wed Apr 11, 2018 11:59 am

Re: When was my Pi-Star booted

Post by oz1cbk »

I just have to try that ;) and it works.
Thank You.

Ole - OZ1CBK
User avatar
N7HHI
Posts: 65
Joined: Thu Apr 12, 2018 11:33 pm
Location: Wentzville, MO
Contact:

Re: When was my Pi-Star booted

Post by N7HHI »

FYI;

I put all of my aliases in a file called:

Code: Select all

~/.bash_aliases
And I put the following in my ~/.bashrc file:

Code: Select all

if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi
Of course you have to do that in RW (rpi-rw) mode. Then the next time you login, your aliases will be there for your use...
73...
Scott - N7HHI
n5amd
Posts: 37
Joined: Wed Apr 11, 2018 9:05 pm
Location: San Antonio Texas
Contact:

Re: When was my Pi-Star booted

Post by n5amd »

This is awesome! Thank you for sharing!

This is what I was hoping with pi-star. With Linux, it makes it easy to configure and tailor, which will open opportunities. Thank you again for sharing!
Ben
N5AMD
www.n5amd.com
kb5wck
Posts: 34
Joined: Fri Jan 25, 2019 3:00 pm
Location: Texas
Contact:

Re: When was my Pi-Star booted

Post by kb5wck »

Very Nice!!! What file did you edit to get your callsign in banner for SSH?
Thanks,
KB5WCK
DMR ID: 3158487
User avatar
N7HHI
Posts: 65
Joined: Thu Apr 12, 2018 11:33 pm
Location: Wentzville, MO
Contact:

Re: When was my Pi-Star booted

Post by N7HHI »

It is /etc/motd, be careful with it though so as not to break the update procedure.
That file changes whenever there is an update.

To get the callsign in ASCII Art use the following link:
http://patorjk.com/software/taag/#p=dis ... urCallsign

Replace "YourCallsign" with your callsign. Then use the "Select & Copy" button to copy the result to your clipboard...
73...
Scott - N7HHI
kb5wck
Posts: 34
Joined: Fri Jan 25, 2019 3:00 pm
Location: Texas
Contact:

Re: When was my Pi-Star booted

Post by kb5wck »

Thanks for the reply. I will try that AFTER making a backup copy of file.
Thanks,
KB5WCK
DMR ID: 3158487
kb5wck
Posts: 34
Joined: Fri Jan 25, 2019 3:00 pm
Location: Texas
Contact:

Re: When was my Pi-Star booted

Post by kb5wck »

One more question.... ok, two more... :-) I tried changing colors and it doesn't work right. How do I do that? Also, how did you get the border to copy down/ Did you just copy and paste that also?
Thanks,
KB5WCK
DMR ID: 3158487
User avatar
N7HHI
Posts: 65
Joined: Thu Apr 12, 2018 11:33 pm
Location: Wentzville, MO
Contact:

Re: When was my Pi-Star booted

Post by N7HHI »

You can't just use cut & paste for the color codes because there are control characters included in the codes and "cut & paste" can't copy control characters.

The border can be done with cut & paste.

When I get home from work, I will put together some more detailed instructions.

I use vi/vim as my text editor. I know how to enter control characters using that text editor. If you use a different text editor, I do not know how to do that. That would be beyond my ability to help you. If you do not already know how to use vim, it is not an easy editor to use/learn. I would not classify it as user friendly, rather I would say it is expert friendly. If you do already know vim, I can provide you with details about adding the control characters for the colors.

73,

~~Scott/N7HHI
73...
Scott - N7HHI
Post Reply