When was my Pi-Star booted

Post your tips and tricks here
kb5wck
Posts: 34
Joined: Fri Jan 25, 2019 3:00 pm
Location: Texas
Contact:

Re: When was my Pi-Star booted

Post by kb5wck »

That would be great. Thanks a bunch.
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 »

2019-02-04pi-starV4.0.0-RC3_original_motd_cat.jpg
2019-02-04pi-starV4.0.0-RC3_original_motd_cat.jpg (39.82 KiB) Viewed 9419 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.74 KiB) Viewed 9419 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: 65
Joined: Thu Apr 12, 2018 11:33 pm
Location: Wentzville, MO
Contact:

Re: When was my Pi-Star booted

Post by N7HHI »

2019-02-04colors.txt.jpg
2019-02-04colors.txt.jpg (24.73 KiB) Viewed 9419 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.12 KiB) Viewed 9419 times
Here are the codes for those colors.
73...
Scott - N7HHI
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 »

2019-02-04pi-starV4.0.0-RC3_custom_motd_cat.jpg
2019-02-04pi-starV4.0.0-RC3_custom_motd_cat.jpg (54.93 KiB) Viewed 9419 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.05 KiB) Viewed 9419 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: 34
Joined: Fri Jan 25, 2019 3:00 pm
Location: Texas
Contact:

Re: When was my Pi-Star booted

Post by kb5wck »

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

Re: When was my Pi-Star booted

Post by kb5wck »

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