When was my Pi-Star booted

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

When was my Pi-Star booted

Post by N7HHI » Thu Apr 19, 2018 11:53 pm

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.33 KiB) Viewed 1247 times
73...
Scott - N7HHI

MW0MWZ
Site Admin
Posts: 627
Joined: Wed Apr 04, 2018 9:15 pm
Location: Wales, UK
Contact:

Re: When was my Pi-Star booted

Post by MW0MWZ » Fri Apr 20, 2018 7:44 am

Good job with the ASCII art too :)
Andy

73 de MW0MWZ
http://pistar.uk

oz1cbk
Posts: 1
Joined: Wed Apr 11, 2018 11:59 am

Re: When was my Pi-Star booted

Post by oz1cbk » Fri Apr 27, 2018 12:30 pm

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

Ole - OZ1CBK

User avatar
N7HHI
Posts: 28
Joined: Thu Apr 12, 2018 11:33 pm
Location: Wentzville, MO
Contact:

Re: When was my Pi-Star booted

Post by N7HHI » Fri Apr 27, 2018 7:00 pm

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: 29
Joined: Wed Apr 11, 2018 9:05 pm
Location: San Antonio Texas
Contact:

Re: When was my Pi-Star booted

Post by n5amd » Mon Apr 30, 2018 4:47 am

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!

kb5wck
Posts: 9
Joined: Fri Jan 25, 2019 3:00 pm
Location: Texas
Contact:

Re: When was my Pi-Star booted

Post by kb5wck » Fri Feb 01, 2019 7:29 pm

Very Nice!!! What file did you edit to get your callsign in banner for SSH?
Thanks,
KB5WCK
DMR ID: 3158487

User avatar
N7HHI
Posts: 28
Joined: Thu Apr 12, 2018 11:33 pm
Location: Wentzville, MO
Contact:

Re: When was my Pi-Star booted

Post by N7HHI » Fri Feb 01, 2019 8:30 pm

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: 9
Joined: Fri Jan 25, 2019 3:00 pm
Location: Texas
Contact:

Re: When was my Pi-Star booted

Post by kb5wck » Mon Feb 04, 2019 3:26 pm

Thanks for the reply. I will try that AFTER making a backup copy of file.
Thanks,
KB5WCK
DMR ID: 3158487

kb5wck
Posts: 9
Joined: Fri Jan 25, 2019 3:00 pm
Location: Texas
Contact:

Re: When was my Pi-Star booted

Post by kb5wck » Mon Feb 04, 2019 3:27 pm

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: 28
Joined: Thu Apr 12, 2018 11:33 pm
Location: Wentzville, MO
Contact:

Re: When was my Pi-Star booted

Post by N7HHI » Mon Feb 04, 2019 5:09 pm

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