Page 2 of 2

Re: When was my Pi-Star booted

Posted: Mon Feb 04, 2019 8:25 pm
by kb5wck
That would be great. Thanks a bunch.

Re: When was my Pi-Star booted

Posted: Tue Feb 05, 2019 12:02 am
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 9424 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 9424 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.

Re: When was my Pi-Star booted

Posted: Tue Feb 05, 2019 12:05 am
by N7HHI
2019-02-04colors.txt.jpg
2019-02-04colors.txt.jpg (24.73 KiB) Viewed 9424 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 9424 times
Here are the codes for those colors.

Re: When was my Pi-Star booted

Posted: Tue Feb 05, 2019 12:06 am
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 9424 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 9424 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.

Re: When was my Pi-Star booted

Posted: Fri Feb 08, 2019 7:52 pm
by kb5wck
Thanks for al the info. I will work on it this weekend and see if I can get it to work.

Re: When was my Pi-Star booted

Posted: Wed Aug 14, 2019 7:03 pm
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?