When was my Pi-Star booted

Post your tips and tricks here
kb5wck
Posts: 31
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 8:25 pm

That would be great. Thanks a bunch.
Thanks,
KB5WCK
DMR ID: 3158487

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

Re: When was my Pi-Star booted

Post by N7HHI » Tue Feb 05, 2019 12:02 am

2019-02-04pi-starV4.0.0-RC3_original_motd_cat.jpg
2019-02-04pi-starV4.0.0-RC3_original_motd_cat.jpg (39.93 KiB) Viewed 693 times
This is how the V4.0.0.0-RC3 /etc/motd looks when you login.

2019-02-04pi-starV4.0.0-RC3_original_motd_vim.jpg
2019-02-04pi-starV4.0.0-RC3_original_motd_vim.jpg (45.86 KiB) Viewed 693 times
This is how the same file looks like in the vim editor.
Notice that the color codes are in this file. Each one looks something like: ^[[0;31m
When the file is displayed, you don't see these characters, but instead you see the text following those codes in the color that they represent. The first "two" characters is actualy a single control character. So in the example above ^[ is a single CTRL-[ character. The following [ is an actual left square bracket which is simply typed from the keyboard as are the remaining characters. This is the part that I can't help with unless you are VERY familiar with vi/vim.
In the next post, I will include all of the color codes that I am aware of.
73...
Scott - N7HHI

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

Re: When was my Pi-Star booted

Post by N7HHI » Tue Feb 05, 2019 12:05 am

2019-02-04colors.txt.jpg
2019-02-04colors.txt.jpg (24.8 KiB) Viewed 693 times
This shows all of the colors that I am aware of.

2019-02-04colors.txt_in_vim.jpg
2019-02-04colors.txt_in_vim.jpg (33.24 KiB) Viewed 693 times
Here are the codes for those colors.
73...
Scott - N7HHI

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

Re: When was my Pi-Star booted

Post by N7HHI » Tue Feb 05, 2019 12:06 am

2019-02-04pi-starV4.0.0-RC3_custom_motd_cat.jpg
2019-02-04pi-starV4.0.0-RC3_custom_motd_cat.jpg (55.12 KiB) Viewed 693 times
Here is my custom motd file.

2019-02-04pi-starV4.0.0-RC3_custom_motd_vim.jpg
2019-02-04pi-starV4.0.0-RC3_custom_motd_vim.jpg (61.21 KiB) Viewed 693 times
And here is how it looks in the vi/vim editor.

Let me know if you are well versed in vi/vim and I will let you know how to add the control characters in. If not, you will have to research how to do that with whatever editor you are using.
73...
Scott - N7HHI

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

Re: When was my Pi-Star booted

Post by kb5wck » Fri Feb 08, 2019 7:52 pm

Thanks for al the info. I will work on it this weekend and see if I can get it to work.
Thanks,
KB5WCK
DMR ID: 3158487

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

Re: When was my Pi-Star booted

Post by kb5wck » Wed Aug 14, 2019 7:03 pm

I have tried and tried to change the banner to show my callsign but just can't figure it out. Can you help with instructions for VIM?
Thanks,
KB5WCK
DMR ID: 3158487

Post Reply