zzyzx Posted December 5, 2023 Posted December 5, 2023 3 hours ago, ~Brian~ said: MAINTENANCE: Today I added some necessary lines to my sshd_config. I wanted to be sure that only certain user groups can login, and no one else. I was having problems with this earlier, because there seems to be a newer version than I was using on Debian Jessie (8.3), so I'll have to play with that a little. @~Brian~: Did you get what you wanted? I set up a single group that each user that has ssh access to the system must be a member of. Don't remember the specific commands used, and I'm not going to login from work to here to list the info.... From memory, yes, there are some changes to the default sshd_config file from Debian 8 to Debian 11 (or from Ubuntu 18 to 20 or 22). Sometimes it is good to let a new default config file get installed (such as when building a new system) and then adding changes back to that file. I do remember having to rework the sshd_config file after some of the more recent upgrades -- after grabbing the new "default" config file. Memory says if you left your old config file in place in an upgrade, there is another file in the directory containing a copy of what the new default config file is.... But that file can get clobbered with system updates. 3 hours ago, ~Brian~ said: BANNER/MOTD FOR CARDINAL: I added additional lines to sshd_config, so that I can restore previous behavior. where I had a banner that would warn and welcome people. One line that I had to change was to UNCOMMENT '#Banner none,' and put in '/etc/issue.net'. In order for this to work right, i had to update some of the older /etc/motd* files, as they were aged. i updated the motd file, and then made s mymotd.sh file to call it. Now, I know that I will be able to have these work correctly, and I can change this message on the fly. Ah, yes.... Some of my "standard" editing in the sshd_config file is to re-enable printing the banner file, again typically pointing to /etc/issue.net . Its been a while since I've played with the motd file since its only a small group of us that get shell access to my systems..... I assume all of this is working as you expect it to.... Take care..... 1
~Brian~ Posted December 10, 2023 Author Posted December 10, 2023 DECEMBER 10. 2023: 12:28PM EST: BANNER AND MOTD FILES: This week, I added a couple things. I edited the files /etc/motd, /etc/issue, and /etc/issue.net. These provide the systems MOTD (Message Of The Day) file, and the banner file that load prior to login. I also edited the /etc/sshd.config and activated the Banner option in the file. Doing further research, I remembered that there are 2 issue files. It was showing when I was ssh'ing in, but, I wanted the banner on the console: /etc/issue is for LOCAL machines, and /etc/issue.net is for machines that ssh to my address. I laughed when I realized what I had done, and tried to add the same info, (minus the ascii art for local machines) and VIOLA - Banners and motd file working: I deleted the older info from 2018, and made changes as necessary, and will add info if i need to in the future I also added an ASCII file to the MOTD: It Reads: "Cardinal Dot Buddy-Baker.us" I used an Ascii text generator. I made 2 files, and I will also add color to it at some point. That's all for now Brian
~Brian~ Posted December 17, 2023 Author Posted December 17, 2023 WINDOWS 10 64 BIT (22H2) INSTALLED TO AN HP (HP LAPTOP 15-3063ST) FOR MY ROOMIE During the last 3 weekends, I have been attempting to clear a bitlockered HP Laptop of that. I KNOW my neighbor did NOT put that in there, and it happened after a BIOS update. I was searching the net for the drivers for this model, and I needed the Intel RST drivers, because Windows 10 would NOT find the HDD - so I had to go looking for them, and found a *.zip file that had them. I was able to install using the Windows 10 22H2 Media Creation Tool, and when I was done with creating that on a USB stick, I dropped the RST-Drivers folder on there, and attached a USB-A to USB-C adapter, and loaded it with the new MCT I used. I was able to not ONLY install Windows without a problem, I was able to use the RST VMD drivers to locate the drive after I diskparted it and set it to primary. Once I was able to boot the installer, I was able to load the driver from the folder I created with the RST-drivers i downloaded this week. Once I did that, I chose the driver for the storage device, and then, It Picked UP and I was able to clear the partitions and make unallocated space and BOOM, install Windows 10. I Saved a machine I thought was DEAD because I could NOT find the drive, and I had to find the drivers I needed by doing some intense digging, because I needed a set of drivers that Intel must have removed: I used the drivers that I downloaded and used the MCT to make the media, and it WORKED!! Thank GOD I don't give up My Buddy will be happy now .....and so am I Brian 1
~Brian~ Posted February 1, 2024 Author Posted February 1, 2024 (edited) GPG Key Error: https://repo.mysql.com NO PUBLIC KEY ERROR / APT-KEY DEPRECIATED Over the past week, I have been trying to do apt-get update, and I thought that the problem was the sury.org repo, but then realized that it was the mysql repo. I had the key I needed, but was lost, so I had to post to linux questions, as this is a CRITICAL FUNCTION (apt-get update/apt-get upgrade/apt-update) that needs to be done. so I posted on Linux questions: This question Doing as they suggested I then today tried again when logging in to Cardinal: brian@cardinal:~$ sudo apt-get update [sudo] password for brian: Get:1 http://security.debian.org/debian-security bullseye-security InRelease [48.4 kB] Hit:2 http://deb.debian.org/debian bullseye InRelease Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB] Get:4 http://repo.mysql.com/apt/debian bullseye InRelease [17.9 kB] Err:4 http://repo.mysql.com/apt/debian bullseye InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C Hit:5 https://packages.sury.org/php bullseye InRelease Ign:6 https://download.webmin.com/download/newkey/repository stable InRelease Hit:7 https://download.webmin.com/download/newkey/repository stable Release Hit:9 https://packagecloud.io/varnishcache/varnish60lts/debian bullseye InRelease Fetched 110 kB in 7s (14.9 kB/s) Reading package lists... Done W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://repo.mysql.com/apt/debian bullseye InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C W: Failed to fetch http://repo.mysql.com/apt/debian/dists/bullseye/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C W: Some index files failed to download. They have been ignored, or old ones used instead. brian@cardinal:~$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B7B3B788A8D3785C Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)). Executing: /tmp/apt-key-gpghome.XSuPZqf9nu/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys B7B3B788A8D3785C gpg: key B7B3B788A8D3785C: public key "MySQL Release Engineering <mysql-build@oss.oracle.com>" imported gpg: Total number processed: 1 gpg: imported: 1 brian@cardinal:~$ sudo apt update Hit:1 http://security.debian.org/debian-security bullseye-security InRelease Hit:2 http://deb.debian.org/debian bullseye InRelease Hit:3 http://deb.debian.org/debian bullseye-updates InRelease Get:4 http://repo.mysql.com/apt/debian bullseye InRelease [17.9 kB] Get:5 http://repo.mysql.com/apt/debian bullseye/mysql-8.0 Sources [949 B] Get:6 http://repo.mysql.com/apt/debian bullseye/mysql-apt-config amd64 Packages [566 B] Hit:7 https://packages.sury.org/php bullseye InRelease Ign:8 https://download.webmin.com/download/newkey/repository stable InRelease Hit:9 https://download.webmin.com/download/newkey/repository stable Release Get:10 http://repo.mysql.com/apt/debian bullseye/mysql-8.0 amd64 Packages [12.6 kB] Get:12 http://repo.mysql.com/apt/debian bullseye/mysql-tools amd64 Packages [4,114 B] Hit:13 https://packagecloud.io/varnishcache/varnish60lts/debian bullseye InRelease Fetched 36.1 kB in 7s (4,821 B/s) Reading package lists... Done Building dependency tree... Done Reading state information... Done 16 packages can be upgraded. Run 'apt list --upgradable' to see them. brian@cardinal:~$ sudo apt-get update Hit:1 http://deb.debian.org/debian bullseye InRelease Hit:2 http://security.debian.org/debian-security bullseye-security InRelease Hit:3 http://deb.debian.org/debian bullseye-updates InRelease Hit:4 http://repo.mysql.com/apt/debian bullseye InRelease Hit:5 https://packages.sury.org/php bullseye InRelease Ign:6 https://download.webmin.com/download/newkey/repository stable InRelease Hit:7 https://download.webmin.com/download/newkey/repository stable Release Hit:9 https://packagecloud.io/varnishcache/varnish60lts/debian bullseye InRelease Reading package lists... Done brian@cardinal:~$ Questions: 1. So I used the key it called for, and ran the update again. Problem is: is there a way to make sure that they keyserver is pulling keys from debian sites, as opposed to ubuntu sites? that can cause problems sometimes. as debian and ubuntu are similar in some ways, different in others? 2. How do you deal with "apt-key is depreciated?? Not sure how to fix that, and may need some help on that Thanks, Brian Edited February 1, 2024 by ~Brian~ added and edited some information and added codeboxes
zzyzx Posted February 2, 2024 Posted February 2, 2024 On 1/31/2024 at 9:32 PM, ~Brian~ said: GPG Key Error: https://repo.mysql.com NO PUBLIC KEY ERROR / APT-KEY DEPRECIATED Over the past week, I have been trying to do apt-get update, and I thought that the problem was the sury.org repo, but then realized that it was the mysql repo. I had the key I needed, but was lost, so I had to post to linux questions, as this is a CRITICAL FUNCTION (apt-get update/apt-get upgrade/apt-update) that needs to be done. so I posted on Linux questions: This question Doing as they suggested I then today tried again when logging in to Cardinal: brian@cardinal:~$ sudo apt-get update [sudo] password for brian: Get:1 http://security.debian.org/debian-security bullseye-security InRelease [48.4 kB] Hit:2 http://deb.debian.org/debian bullseye InRelease Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB] Get:4 http://repo.mysql.com/apt/debian bullseye InRelease [17.9 kB] Err:4 http://repo.mysql.com/apt/debian bullseye InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C Hit:5 https://packages.sury.org/php bullseye InRelease Ign:6 https://download.webmin.com/download/newkey/repository stable InRelease Hit:7 https://download.webmin.com/download/newkey/repository stable Release Hit:9 https://packagecloud.io/varnishcache/varnish60lts/debian bullseye InRelease Fetched 110 kB in 7s (14.9 kB/s) Reading package lists... Done W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://repo.mysql.com/apt/debian bullseye InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C W: Failed to fetch http://repo.mysql.com/apt/debian/dists/bullseye/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C W: Some index files failed to download. They have been ignored, or old ones used instead. brian@cardinal:~$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B7B3B788A8D3785C Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)). Executing: /tmp/apt-key-gpghome.XSuPZqf9nu/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys B7B3B788A8D3785C gpg: key B7B3B788A8D3785C: public key "MySQL Release Engineering <mysql-build@oss.oracle.com>" imported gpg: Total number processed: 1 gpg: imported: 1 brian@cardinal:~$ sudo apt update Hit:1 http://security.debian.org/debian-security bullseye-security InRelease Hit:2 http://deb.debian.org/debian bullseye InRelease Hit:3 http://deb.debian.org/debian bullseye-updates InRelease Get:4 http://repo.mysql.com/apt/debian bullseye InRelease [17.9 kB] Get:5 http://repo.mysql.com/apt/debian bullseye/mysql-8.0 Sources [949 B] Get:6 http://repo.mysql.com/apt/debian bullseye/mysql-apt-config amd64 Packages [566 B] Hit:7 https://packages.sury.org/php bullseye InRelease Ign:8 https://download.webmin.com/download/newkey/repository stable InRelease Hit:9 https://download.webmin.com/download/newkey/repository stable Release Get:10 http://repo.mysql.com/apt/debian bullseye/mysql-8.0 amd64 Packages [12.6 kB] Get:12 http://repo.mysql.com/apt/debian bullseye/mysql-tools amd64 Packages [4,114 B] Hit:13 https://packagecloud.io/varnishcache/varnish60lts/debian bullseye InRelease Fetched 36.1 kB in 7s (4,821 B/s) Reading package lists... Done Building dependency tree... Done Reading state information... Done 16 packages can be upgraded. Run 'apt list --upgradable' to see them. brian@cardinal:~$ sudo apt-get update Hit:1 http://deb.debian.org/debian bullseye InRelease Hit:2 http://security.debian.org/debian-security bullseye-security InRelease Hit:3 http://deb.debian.org/debian bullseye-updates InRelease Hit:4 http://repo.mysql.com/apt/debian bullseye InRelease Hit:5 https://packages.sury.org/php bullseye InRelease Ign:6 https://download.webmin.com/download/newkey/repository stable InRelease Hit:7 https://download.webmin.com/download/newkey/repository stable Release Hit:9 https://packagecloud.io/varnishcache/varnish60lts/debian bullseye InRelease Reading package lists... Done brian@cardinal:~$ Questions: 1. So I used the key it called for, and ran the update again. Problem is: is there a way to make sure that they keyserver is pulling keys from debian sites, as opposed to ubuntu sites? that can cause problems sometimes. as debian and ubuntu are similar in some ways, different in others? 2. How do you deal with "apt-key is depreciated?? Not sure how to fix that, and may need some help on that Thanks, Brian @~Brian~ On # 1, I'm not sure. If there is a difference between the two, I would expect the key numbers to be different and either get a not found or the a download of a key that won't work from the wrong site. Usually i find a way to download the key from the command line and then go from there to install it. I thought the keynumber was a hash for the key, so I would expect a not found or download a good key if the key is found on that server. On # 2, I'm starting to deal with that.... I believe it is still working (for now), but there is a new way to handle the keys used by apt-get. Since I've only done this on a work computer, I'd have to google to help you here.... But basically the keys can now go in their own file (in a directory under /etc/apt/ , I forget if there is currently a convention for the directory name), and then define an entry in the appropriate sources.list file that contains a pointer to the key to be used. Again, I'd have to goggle to come up with the correct syntax. Basically you add [ <meaningful text> ] in front of the deb line in the sources.list file (possibly in a file under /etc/apt/sources.list.d/ directory). Best wishes. 1
tuffy Posted February 7, 2024 Posted February 7, 2024 I've run into this as well. Here's a good explanation of the problem and how to deal with it: https://stackoverflow.com/questions/68992799/warning-apt-key-is-deprecated-manage-keyring-files-in-trusted-gpg-d-instead/71384057#71384057 2
~Brian~ Posted February 15, 2024 Author Posted February 15, 2024 I’ve looked at that site and there’s a lot of information. The problem I have is that I need to find out which way to do it, and in order to make this work, right I have to be able to transfer all of the keys that are in the old file to the new directory and it doesn’t seem like it’s very simple to do. I’ll have to look at it again! for the last 2 1/2 weeks I felt like somebody hit me with a truck. The reason is is because I’ve had the injections for my neck and then I had to recover from that and I’ve had to fight Medicaid to get medicine they’ve taken away all of the over-the-counter medicines they won’t cover anymore invested $40 to get 1200 of my Claritin tablets so I don’t have to worry about that for at least two or three years. And then I ended up finding out from the people on the board that is doing the fair hearing that if I don’t set it up so that it says that serious dental health consequences are even mentioned in the first question and then not check a box. It says does not apply. They won’t even read the documents and they’ll just throw them away. I was flabbergasted and I was not only upset, but I’m like because inside myself going where the hell would they throw it away. Told him that. They looked at the documents rather than just throwing them away. You would see that the doctor has implied that I need what I need, and not exactly stated it exactly as they had. In January I went right to the doctor after calling him and telling him what to write so that I could get this approval put together Instead of that, I had to go back to him in January show him the letter and his form that he filled out along with the one I filled out, told him what to do and he said he would take care of it by taking whatever I had copying it, and then having them redo it. Now I have to end up re-filing the appeal with that material in it and give all of the necessary medical back up for whatever I need to say that I need it for my condition once that is done I should be OK but the problem is I don’t sure what to do. They don’t really tell you, but they tell you that they will throw your stuff away if you don’t do it right. so here I am at crossroads: I’m trying to do what I’m supposed to do trying to follow all the rules that they sat, and it feels like I’m just getting kicked in the head! They know that I need this medicine I’ve been taking it for 34 years and they try to play games with me. I tried to hold them accountable at this thing and say at the fair hearing, I said to these late these people that if they took the time and actually read the documents rather than throw them away, it would be a lot easier for me to be able to win my case, because I need what I need and I can’t end up fooling around and playing word games. someday some guy is some guy or some young lady is going to die because of these stupid regulations. Sometimes I dream that someone would come in here: somebody that is from DD, somebody that would step on these people like bugs, and make things happen: but that will never happen, and it makes me upset sometimes! I try really hard to do what they ask it feels like I get hit in the head every single time, like I hit a brick wall every single time, I won one of my last appeals on grounds that they didn’t give me enough time or notice. I feel as if I’m gonna lose this appeal because of Medicaid regulations, and when I call for assistance from the legal aid department they tell me that I have no chance of winning and they tell me basically according to the law, I’m going to not be successful and I’m going to lose. Talk about telling somebody that first thing this morning, and I’m trying to get a hold of my doctor to have him write the necessary documentation so that I can make my case. It really hurts when they try to do that and I can’t do it, so I have to resent the whole thing and make sure that everything is exactly what it supposed to be without any checkboxes with that work with those words, serious detrimental health consequences if I can have that putting there with the proper evidence should be able to win . i’m a strong man, but this is causing me problems! If I can’t trust my Medicaid to be able to cover what I need, and I can’t trust the guys that are supposed to be customer service to tell me what the heck is going on, then the system doesn’t really work very well. They need to look at everything they just don’t do that and throw it away. That really bothered me and it still got me wound up a little. right now I’m feeling a little better, but I have to go to the doctor on Monday the 19th. Feel like I got run over by a truck: need some cough medicine to be able to help me cough up whatever’s in my lungs, need to talk to the doctor about my eyes constantly running constantly burning and everything else because everything that I am spelling is making my face feel like a piece of sandpaper after everything is done and it really is a pain in the neck. Hopefully he can help me get whatever I need and I’ll make sure that this stupid Medicaid stuff doesn’t happen again if I tell the doctor that they will throw it out if they don’t have it, come in exactly as they want. Maybe that will also save him some running time or others that are Medicaid that require the exemption and have to fill out the same for at least I know that now I didn’t before. I talk to my case manager today. I told her about all of the troubles I’ve been having, told her about my story that I wrote in about my magic island. Told her that this is driving me crazy and that I feel like I want to go to this island to be able to find some solace something that makes me happy. It really burns me when I can’t get what I need and nobody will help me get what I need or want and it’s just really hard. she told me that if I wanted to order some stuff I could do that and I have enough money to do it so I probably will do a couple of things if they can help me, because it would help me keep my apartment clean and organized. I miss the days when something simple as this wasn’t so hard and I even asked the department i when I was questioning them. Why it’s so hard to get to someone to be able to ask a question, why we have to use GREEN MOUNTAIN CARE which is a contractor to handle that people there sometimes are rude. They don’t know what they’re talking about and basically it’s useless. I’m gonna call Senator Bernie Sanders in the morning. He is my senator from Vermont. We will see what they can do because this is driving me crazy. I do everything that I’m supposed to do and I get stepped on like a bug, I wish I had some help from people so that I can get this done, I bring the marines: and some of them that I really respect from they would put these guys to shame @Evelyn Dellcerro would tell these idiots where to go and how fast to go and how to get there! I’m sick and tired of playing games because of stupid idiotic responses that don’t help me and then to add insult injury when I ask for help nobody responds. Yesterday I ended up being on the phone all day, today I was on the phone for over an hour and a half trying to get that taken care of for the hearing I got that done about 12 my case manager, and I had a discussion for about two hours this afternoon. It made me feel better, but it still made me want to shake that department down to its core, I told them that I understand that they have rules and regulations, but I don’t understand why every time there is a decision and they want more information. I gotta go read the Medicaid manual because it’s like asking somebody to read Portuguese when they don’t understand it! If they would cut all the crap, and they would get to work and not just throw, my evidence in the garbage would be a hell of a lot more productive . so here I am now trying to relax and trying to make sure that I’m not gonna be having a problem with my vision or my breathing. Hopefully when I talk to the doctor on Monday, I will be able to get something that will take care of this drain out my sinuses and help me with other things I wish I could get a little bit of help but it’s hard really hard when the place that you need to ask for help just throws your evidence in the trash and doesn’t even look at it because of a mistake! I’m glad I have a good team of medical professionals at my command to be able to help me take care of it. They’ve done it and they’ve done it well but it makes no sense I have 25 years of , at least halfway decent evidence to help me with my claim and I’ve been taking the same medicine for 34 years! I am still gob smacked that they would even go as far as they have and then just wanna say I can’t get what I need and they throw it away. The doctor will take care of this and so will the team, and I’ll make sure this never ever ever ever happens again ! I’m hoping that something good will happen to me because I need something good to happen soon. Brian 1
~Brian~ Posted February 17, 2024 Author Posted February 17, 2024 (edited) UPDATE: (2/17/2024: 17:00) BBUS: Somehow, was having problems with BBUS, and the blog worked on my phone. Then I go to the console, and it was bringing up a page where EVERYTHING was BLUE, and I could not see anything. I backed up the site from the most current backup that I had, and then from another directory, UnTarred the cardinal-7-22-23.tgz file, and then tarred the blog/ directory of that backup, and moved it to /var/www/html/blog/. Did a Database Update that Wordpress wanted, and brought the version from 5.9 to current. Tomorrow, will add the plugins I need to make the site faster. (Caching programs) CERTIFICATES: Using 'certbot certificate' I redid the certificates for .us .com and .org. Safari, on my Iphone, was complaining of not having a current certificate, so I just reauthorized the certificates on my websites for another 90 days. I have to make sure that the cron for this is functioning normally, as I have never seen this behavior before. My phone and my brothers phone somehow was having problems with connecting to 5G, and after resetting them (Power Cycling), I spent about 1.5 hours on the phone with tech support, and there was nothing wrong with the towers. HEALTH UPDATE (2/17/2024: 17:20) I've been dealing with: Allergies and fighting Medicaid, asking them to continue to pay for the Loratadine that I use for dealing with that, and if I don't have that medication, I have itchy watery Eyes, my eyes are red as stoplights, and I end up with all the sandy junk in my eyes. If I don't have this, my acid reflux can cause trouble, and my asthma can cause me not to be able to breathe, and this is dangerous. Will resubmit the request for coverage with additional evidence. I also take Vitamin D. I have not taken it since mid 2023, since I had to deal with the pain clinic and the diagnostic procedures that we have been using to help with my neck and head pain. Pain Clinic: Been going there since fall 2023. I have had them do Injections: One set was Trigger point, the others were part of 2-4 "diagnostic injections" which simulate what it would feel like when they do a Radio Frequency Abaision. They will find the nerves that are causing my neck and head pain, and burn them off. Supposed to work for about 2 years. During all of these, I have been tired, and recovering from these procedures, which happen on Fridays. The next ones will be March 8 and April 12, and then we will have completion there. Headache Clinic: Scheduled for this for March 27th, to find out why my headaches seem constant and recurring: Right now I'm taking 800MG Ibuprofin every 8 hours, 650MG acetaminifin every 6 Hours, Gabapentin for nerve pain 2x a day, and baclofen for pain 2x a day. I hope to find out what is causing these headaches as well. We will find out soon. Sickness: Been deaiing with sinuses, and plugged up nose, and now there is stuff in my lungs, and what I am coughing up is the consistancy of Mobil-1 MOTOR OIL. I also don't seem to feel that I have as much energy as I once had, so will see my physician on Monday, and we will deal with that. Hopefully, he'll give me something to clear all this out, and help the cough - I don't need pneumonia! I think we will catch it early enough though That's all from here Brian Edited February 18, 2024 by ~Brian~ added () where needed
~Brian~ Posted March 2, 2024 Author Posted March 2, 2024 (edited) UPDATE: (3/2/2024 @15:17 EST DOMAIN NEWS Today, I was able to RENEW BBDC - For about $35, so I have that until March 2025. I was also shocked to discover that the domain that I RELEASED (BBDI) was ONLY $4.17! I ended up grabbing that one back, so now I have: buddy-baker DOT US, DOT COM, DOT ORG, DOT INFO, and bbus.info! So I have FIVE domains, and will be working on what I want to see there Now, I have to decide what to do with the .info domains I own any ideas? Brian Edited March 4, 2024 by ~Brian~ added additional information
~Brian~ Posted March 4, 2024 Author Posted March 4, 2024 UPDATE: (3/4/2024 @14:40 EST DOMAIN NEWS BBUS DOT INFO: This site has been Configured, Installed, IP has been pointed to Cardinal, and SSL certificates have been obtained for all 10 of the domains in my network: It took me a while to get it working, as there are 2 sites that have 301's that redirect people to the .us/blog section, and to .com/Main, so that they don't have to TYPE anything in the address bar. Apparently, there was a DUPE of the instructions when I started, so bbus.info was going to bbdc/Main, and I had to track that down and fix that - Now, BBUS Dot Info runs in its own directory, and is responding nicely. Now, all I have to do is decide what I want to put there Brian
~Brian~ Posted March 14, 2024 Author Posted March 14, 2024 (edited) GPG/APT-KEY CONVERSION/MIGRATION MARCH 13, 2024 @23:58 EDT GPG Keys for Myself: Had to make those, and then upload them to GitHub: One Secret Key, One public Key, using <root@> Used information on the github site to make these keys, and I will have to check these to see if there is anything else I need to do there. I will be monitoring it also. GPG Public Keys for BBUS: I will work to get those uploaded sometime this week, so that if it is needed, I have it there. Public and Secret keys were made and public keys just need to be able to match, so I will check that later today or tomorrow MIGRATION OF APT-KEY TO GPG: This seems to be completed successfully. Used a script I downloaded from Github to make the changes, as apt-key was One, Giving me errors about apt-key being depreciated, and using /etc/apt/trusted.gpg.d/ instead. Two: It would give me warnings when apt-get update was commanded. Seems to be corrected, and now, I have to solve a problem that happens when I do an 'apt-get update && apt-get upgrade', where some packages are 'held back' and it asks me to delete some: Gonna leave them there for now Script: I downloaded a script I call gpg-migration.zip - It takes the old apt-key format, and migrates it over to the gpg format. It is called migrate-apt-keys.sh - when done, it takes all of the keys it finds, converts them from apt-key format to gpg format, using the /etc/apt/trusted.gpg, and the /etc/apt/sources.list.d/ directories listed below: brian@cardinal:/etc/apt/trusted.gpg.d$ ls -l total 88 -rw-r--r-- 1 root root 8700 Mar 18 2023 debian-archive-bookworm-automatic.gpg -rw-r--r-- 1 root root 8709 Mar 18 2023 debian-archive-bookworm-security-automatic.gpg -rw-r--r-- 1 root root 280 Mar 18 2023 debian-archive-bookworm-stable.gpg -rw-r--r-- 1 root root 8700 Feb 25 2021 debian-archive-bullseye-automatic.gpg -rw-r--r-- 1 root root 8709 Feb 25 2021 debian-archive-bullseye-security-automatic.gpg -rw-r--r-- 1 root root 2453 Feb 25 2021 debian-archive-bullseye-stable.gpg -rw-r--r-- 1 root root 8132 Feb 25 2021 debian-archive-buster-automatic.gpg -rw-r--r-- 1 root root 8141 Feb 25 2021 debian-archive-buster-security-automatic.gpg -rw-r--r-- 1 root root 2332 Feb 25 2021 debian-archive-buster-stable.gpg -rw-r--r-- 1 root root 2292 Jan 31 23:54 php.gpg -rw-r--r-- 1 root root 1769 Jan 2 06:48 php.gpg~ -rw-r--r-- 1 root root 2836 Nov 15 12:45 varnishcache_varnish60lts.gpg brian@cardinal:/etc/apt/trusted.gpg.d$ and the /etc/apt/sources.list.d/ directory: brian@cardinal:/etc/apt/sources.list.d$ ls -l total 16 -rw-r--r-- 1 root root 746 Mar 13 23:22 mysql.list -rw-r--r-- 1 root root 106 Mar 13 23:23 php.list -rw-r--r-- 1 root root 313 Mar 13 23:23 varnishcache_varnish60lts.list -rw-r--r-- 1 root root 135 Nov 15 08:40 webmin.list brian@cardinal:/etc/apt/sources.list.d$ Looking at the list files here they look like this: ### THIS FILE IS AUTOMATICALLY CONFIGURED ### # You may comment out entries below, but any other modifications may be lost. # Use command 'dpkg-reconfigure mysql-apt-config' as root for modifications. deb [ signed-by=/usr/share/keyrings/mysql-archive-keyring.gpg] http://repo.mysql.com/apt/debian/ bullseye mysql-apt-config deb [ signed-by=/usr/share/keyrings/mysql-archive-keyring.gpg] http://repo.mysql.com/apt/debian/ bullseye mysql-8.0 deb [ signed-by=/usr/share/keyrings/mysql-archive-keyring.gpg] http://repo.mysql.com/apt/debian/ bullseye mysql-tools #deb http://repo.mysql.com/apt/debian/ bullseye mysql-tools-preview deb-src [ signed-by=/usr/share/keyrings/mysql-archive-keyring.gpg] http://repo.mysql.com/apt/debian/ bullseye mysql-8.0 Each file in the sources.list.d/ directory appears to be correct after the gpg conversion. the /usr/share/keyrings directory also seems to be correct as well - Now to see if there is anything I need to do after that. For those interested in the apt-key-migration script, I will place a link where you can download it from the BBUS Network of sites: I am not sure where I want to place it yet, but I will decide soon. (Note that it will create a bunch of files that have apt.key after them, and you HAVE to remove those after the conversion or apt-get update will error and throw warnings). That's all for now, long day for me today Thanks for all the comments and suggestions: I have had to make this apt-key to gpg upgrade now, because apt-key will NOT work in Bookworm or any other distro after it. As Always, comments/suggestions are welcomed Brian Edited March 14, 2024 by ~Brian~ made several edits to the text and added additional space and codebox
~Brian~ Posted March 19, 2024 Author Posted March 19, 2024 MESSAGE OF THE DAY INFORMATION RESOUCE (ADDED MARCH 19 13:46 EDT) SITE: Creating Custom MOTD Login Screens How to Make Ascii Art Login Banner If you are interested in making something like the above, follow these steps. Use an online ascii art generator to create your desired art and copy all of the characters to the clipboard. Create a file and paste in the characters copied above and save the file. Now run the following command and replace filename with the name of the file you created in the previous step. This will generate your login script. echo '#!/bin/bash'; while IFS= read -r line; do echo "echo '$line'"; done < filename > mymotd.sh Now copy mymotd.sh to /etc/profile.d and make it executable. sudo cp mymotd.sh /etc/profile.d/ && chmod +x /etc/profile.d/mymotd.sh Now when you log in, you will see the banner in your terminal. You can modify this file anyway you like. Using neofetch To Create a Custom Login Banner The neofetch utility is a command line tool that displays the distribution logo and system information for whatever system it is installed on. You can use this as a neat way to create a custom login banner. Installing neofetch Utility You can install neofetch easily with most package managers. To install neofetch on Fedora: $ sudo dnf install neofetch To install neofetch on Ubuntu: sudo apt-get install neofetch Using neofetch Although neofetch has a ton of options, you only need to invoke it without any arguments to get a nice looking ascii logo and some system information (as seen above). $ neofetch To use neofetch as your login banner simply run the following command to create a script that runs at login. sudo bash -c $'echo "neofetch" >> /etc/profile.d/mymotd.sh && chmod +x /etc/profile.d/mymotd.sh' The Ubuntu/Debian Specify Method Ubuntu and Debian users can use a method that is specific to these distributions. Ubuntu uses scripts in the /etc/update-motd.d directory to show you information when you login by default. Here is a screenshot from a fresh Ubuntu 18 install. You can edit or add a file to the /etc/update-motd.d folder to run different scripts. To create a custom login banner or motd you can simply use the techniques above and place your scripts here. Each script starts with a double digit number that determines the run order. For example 00 runs first, 99 runs last. root@UbunutDev:/etc/update-motd.d# ls -l total 44 -rwxr-xr-x 1 root root 1220 Apr 9 2018 00-header -rwxr-xr-x 1 root root 1157 Apr 9 2018 10-help-text -rwxr-xr-x 1 root root 4264 Aug 20 2018 50-motd-news -rwxr-xr-x 1 root root 604 Mar 21 2018 80-esm -rwxr-xr-x 1 root root 3017 Mar 21 2018 80-livepatch -rwxr-xr-x 1 root root 97 Jun 27 2018 90-updates-available -rwxr-xr-x 1 root root 299 May 18 2017 91-release-upgrade -rwxr-xr-x 1 root root 129 Jun 27 2018 95-hwe-eol -rwxr-xr-x 1 root root 142 Jun 27 2018 98-fsck-at-reboot -rwxr-xr-x 1 root root 144 Jun 27 2018 98-reboot-required Conclusion Creating a custom login banner or motd is a lot of fun and looks pretty cool. You can also use it the old fashioned way to show users important information they need to know. Bob the Unix admin used the motd to tell people when the system would be down for maintenance or to scold users who did something he didn't approve of. I hope I covered everything in this article. If you have any questions or comments you can leave them below. Have fun! Resources and Links Neofetch Project on Github MOTD on Wikipedia
~Brian~ Posted March 19, 2024 Author Posted March 19, 2024 MESSAGE OF THE DAY UPDATED (3/19/2024 @16:38 EDT) Today, I went "Hunting" for the information I needed to update my Message of the Day file on Cardinal. I added it to the post above, as I do with most information that I don't want to lose. I updated the motd file, and found what I needed at /etc/profile.d/mymotd.sh, which I updated in the file, and then ran the command: Quote echo '#!/bin/bash'; while IFS= read -r line; do echo "echo '$line'"; done < filename > mymotd.sh changing the filename from mymotd.sh to motd.sh, so that I KNOW what it it, and also that the motd.sh is the file to EDIT, making sure to follow the conventions: adding the echo ' ' for each thing I wanted quoted through the echo command: each quote needs echo, the beginning single quote, and the ending single quote, and you can tell you are all set with that line, when the line turns YELLOW: any WHITE lines you see mean you need to check to see that there is a quote on the frontend after the echo, and on the backend after the LAST thing you typed. Doing this, you get: brian@cardinal:/etc/profile.d$ ./motd.sh _______ _______ _______ ______ _________ _ _______ _ ______ _______ _________ ( ____ \( ___ )( ____ )( __ \ \__ __/( ( /|( ___ )( \ ( __ \ ( ___ )\__ __/ | ( \/| ( ) || ( )|| ( \ ) ) ( | \ ( || ( ) || ( | ( \ )| ( ) | ) ( | | | (___) || (____)|| | ) | | | | \ | || (___) || | | | ) || | | | | | | | | ___ || __)| | | | | | | (\ \) || ___ || | | | | || | | | | | | | | ( ) || (\ ( | | ) | | | | | \ || ( ) || | | | ) || | | | | | | (____/\| ) ( || ) \ \__| (__/ )___) (___| ) \ || ) ( || (____/\ | (__/ )| (___) | | | (_______/|/ \||/ \__/(______/ \_______/|/ )_)|/ \|(_______/ (______/ (_______) )_( ______ ______ ______ ______ _______ _ _______ _______ _______ ( ___ \ |\ /|( __ \ ( __ \ |\ /| ( ___ \ ( ___ )| \ /\( ____ \( ____ ) |\ /|( ____ \ | ( ) )| ) ( || ( \ )| ( \ )( \ / ) | ( ) )| ( ) || \ / /| ( \/| ( )| | ) ( || ( \/ | (__/ / | | | || | ) || | ) | \ (_) /_____ | (__/ / | (___) || (_/ / | (__ | (____)| | | | || (_____ | __ ( | | | || | | || | | | \ /(_____)| __ ( | ___ || _ ( | __) | __) | | | |(_____ ) | ( \ \ | | | || | ) || | ) | ) ( | ( \ \ | ( ) || ( \ \ | ( | (\ ( | | | | ) | | )___) )| (___) || (__/ )| (__/ ) | | | )___) )| ) ( || / \ \| (____/\| ) \ \__ _ | (___) |/\____) | |/ \___/ (_______)(______/ (______/ \_/ |/ \___/ |/ \||_/ \/(_______/|/ \__/(_)(_______)\_______) ---------------------------------------------------------------------------------------------------------------------- ----cardinal.buddy-baker.us Message of the Day---- 3/20/2017 --------- Please be advised that anyone who logs on to cardinal will have thier IP addresses tracked and logged. --bsb ----------------------------------------------------------------- GENERAL ANNOUNCEMENTS [NOVEMBER 3, 2021 0:13EDT] ----------------------------------------------------------------- SERVICES: ssh/sftp, [shell] apache2, mysql, php, fail2ban, webmin SSL, and phpmyadmin services have been reinstalled, configured and are currently responding all all domains. [80/443] MOTD: [3/19/24] I fixed the ASCII here, as there was a line of text that was supposed to be centered over the "cardinal.buddy.baker.us" text that was rendering the text left justified instead of being centered in the ASCII text: realized that today and corrected ~bsb ----------------------------------------------------------------- WEBSITE STATUS [UPDATED MARCH 19, 2024] ---------------------------------------------------------------- BBUS: *ONLINE AND FUNCTIIONING: [UPDATES COMPLETE 11/3/23] BBDC: *ONLINE AND FUNCTIONING: [UPDATES CONTINUING AS OF 11/3/23] BBDO: *ONLINE AND FUNCTIONING: [UPDATES COMPLETE 11/3/23] BBDI: * ONLINE: [awaiting updates 3/14/24] BBUSDI: **ONLINE: [awaiting updates 3/14/24] * = sites have been RENEWED for the year 2024 ** = site has been AQUIRED for our use in 2024 --------------------------------------------------------------- Thank You!! brian ----------------------------------------------------------------- Did you miss this message: type ./motd.sh to see it again, then use a mouse or arrrow keys to scroll up or down ~bsb brian@cardinal:/etc/profile.d$ There you Go folks: My motd as seen as a user logging in on a terminal! I also had neofetch showing this: _,met$$$$$gg. brian@cardinal ,g$$$$$$$$$$$$$$$P. -------------- ,g$$P" """Y$$.". OS: Debian GNU/Linux 11 (bullseye) x86_64 ,$$P' `$$$. Host: OptiPlex 780 ',$$P ,ggs. `$$b: Kernel: 5.10.0-28-amd64 `d$$' ,$P"' . $$$ Uptime: 1 day, 4 hours, 12 mins $$P d$' , $$P Packages: 2803 (dpkg), 4 (snap) $$: $$. - ,d$$' Shell: bash 5.1.4 $$; Y$b._ _,d$P' Resolution: 1440x900 Y$$. `.`"Y$$$$P"' Terminal: /dev/pts/1 `$$b "-.__ CPU: Intel Core 2 Duo E7600 (2) @ 1.727GHz `Y$$ GPU: Intel 4 Series Chipset `Y$$. Memory: 1263MiB / 7782MiB `$$b. `Y$$b. `"Y$b._ `""" brian@cardinal:/etc/profile.d$ But, since motd.sh is long, I didn't want it run from there, and anyone who wants that tech info can command 'neofetch' from the shell prompt, and get that. I will add that to the shell file as well! That's all from here! Brian
~Brian~ Posted March 27, 2024 Author Posted March 27, 2024 OUTLOOK 365 AND IMAP INTERGRATION USING ALPINE 2.24 For the last couple of days, I have been trying to use information about how to access O365 using IMAP and ALPINE Mailer, which would allow me to access and compose mail FROM cardinal, rather than to use the web interface for the Office 365 mail system. I have used PINE and ALPINE since 3.89, and have used alpine 1.0, which was made in 2007. and now I am using alpine 2.24 on cardinal. it had worked before, when GD had their own server, and i was able to authenticate. When GD "farmed out" email services to Microsoft, setting up email became impossible for me to understand because You have to use tokens and codes, and I think that MS and Google make it harder to do this than it should be. Hopefully the Maintainer/Developer of ALPINE, who told me to email him off list will be able to fix this: i was able to get mail from there, but I cant accept and save the tokens that I need so i don't have to reauthorize every time: if done right, it should always be the same token, so I am hoping he can help me here Wish me luck! Brian
tuffy Posted March 27, 2024 Posted March 27, 2024 I had add 2FA to Roundcube for a project a few years ago. By itself, not so bad, but adding a 3rd party app for Windows desktop integration required using tokens for 2FA to work. I feel your pain! 1
~Brian~ Posted March 31, 2024 Author Posted March 31, 2024 ALPINE 2.24 RUNNING (AS OF 3/30/24 19:50 EDT) Thanks to the ALPINE Author, Eduardo Chappa, and his patience, I NOW have ALPINE 2.24 RUNNING from shell level. What I was MISSING was 2 things: 1. You NEED an SSL key for your email, so you have to use Openssl to make it, and once you do that, you check n your ~/.alpine-smime/ directory, There should be files like this: brian@cardinal:~/.alpine-smime$ ls -al total 24 drwx------ 6 brian brian 4096 Mar 30 12:24 . drwxr-xr-x 81 brian brian 4096 Mar 30 15:18 .. drwxr-xr-x 2 brian brian 4096 Mar 29 13:24 ca drwxr-xr-x 2 brian brian 4096 Mar 29 13:23 private drwxr-xr-x 2 brian brian 4096 Mar 29 13:25 public drwx------ 2 brian brian 4096 Mar 30 12:25 .pwd brian@cardinal:~/.alpine-smime$ cd .pwd brian@cardinal:~/.alpine-smime/.pwd$ ls MasterPassword.crt MasterPassword.key brian@cardinal:~/.alpine-smime/.pwd$ If there is ANYTHING in that directory, that you don't recognize, like the date on the .pwd keys directory, you should delete rm -rf ~/.alpine-smime/.pwd make sure you have a ca/ a private/ and a public/ directory with the right keys in it. 2. You need to set the smtp-server and the inbox path. Once this is right, You will do 'alpine' and then you will see it try to authorize you: Choose Outlook (Device) and when you hit RETURN, it will ask you to open a java supported browser (Firefox for me) and you see a window: It will ask you to goto microsoft.com/devicelogin in your Address Bar: It will ask you in ALPINE to copy that code, which you then paste in that window. It may ask you what account you want to use: for me, I chose brian@mydomain, then hit NEXT, it will show you your mail client login screen, so just logon: then it tells you that you should Only accept the connection if you are attempting a connection. If you do want to proceed, hit NEXT again, and it will then tell you that you are signed into ALPINE and can close the window. NOW: In the ALPINE window, it will ask you if you want to accept the Tokens, Say Yes (Y). Then, it will ask you to create a Master Password. Remember this one, as you will need it to login to alpine EACH time you run it. If you do that, and you are successful, you may see the connection to the imap server close. Don't Worry, all you need to do now is close ALPINE and then open it again, and enter the Master Password that you created. if successful, it will open the INBOX If You don't accept the tokens, you will have to REAUTHORIZE EVERY TIME you want to login. The files you need are made for you when you run ALPINE for the First time, so as long as you have the master password, you ONLY have to go through the devicelogin thing ONCE, because the Master Password is ENCRYPTED, and once you enter it right, and hit enter, it will open right up for you Working well, thanks to Eduardo Chappa Brian
~Brian~ Posted April 3, 2024 Author Posted April 3, 2024 ALPINE MAILER 2.24 (April 3, 2024 @17:05 EDT( UPDATE: My Mailboxes can now be accessed via IMAP Today, I worked on the server again, and all mail that I have to access, with exception of my thrift store mailbox can now be accessed using ALPINE! my personal mail, my primary mail for BBUS (brian@) and (root.bbus@.) Now, I can send and receive mail on root, and mail OUT from that outlook address. I set up the alpine in the shells for root and wizkid38 on cardinal, so I can become root, check mail if I am there at the shell, but if I am in my own account, I have roles for dealing with mail I want to send out. Eduardo Chappa has been helping me with this, and I think I'm ALMOST there. If I could add a collection for my personal mailbox in my brian@ account, I could have the mail checks an responses and roles set so it would work: I have a problem somewhere with syntax, so I am sure that I will be able to add it once I figure oiut what way you have to have the syntax. All in all, a Good Day: I have NOT used Alpine for 21 years, so it feels GOOD to have it running and be able to use alpine to send and receive email. Thank GOD for guys like Mr. Chappa, who now maintains alpine! He is really patient! That's all from here! Brian
~Brian~ Posted April 4, 2024 Author Posted April 4, 2024 SETTING UP ALPINE FOR IMAP AND FOLDER COLLECTIONS (resource for alpine mail setup: Added April 3, 2024 20:02 EDT) SITE: Alpine Setup: IMAP/POP3 and Folder Collections To configure for POP3 or IMAP in Incoming-Folders, one needs to first enable "Enable Incoming Folders Collection" in Main Menu→Setup→Config→Folder Preferences. Close Alpine and open it again IMAP To create a new incoming folder for IMAP, use Main Menu→Folder List→Incoming-Folders→Add. It will prompt to ask you the Name of server to contain added folder: Name of server to contain added folder : mail.domain.com/novalidate-cert/user=email@domain.com It will then prompt to ask for the 'Folder on 'mail.domain.com…" to add: Folder on "mail.domain.com..." to add: INBOX Fill in a nickname: Nickname for folder "INBOX" : INBOX at domain.com It will then connect to the domain mail server and will prompt for the email@domain.com password. Enter it, and the INBOX will open. POP3 This is an example of using POP3 from Gmail. You will need to enable POP3 from your Gmail account under Settings→Forwarding and POP/IMAP. To create a new incoming folder for POP, use Main Menu→Folder List→Incoming-Folders→Add. It will prompt to ask you the Name of server to contain added folder: Name of server to contain added folder : pop.gmail.com:995/novalidate-cert/user=username@gmail.com/pop3/ssl It will then prompt to ask for the 'Folder on 'pop.gmail.com…" to add: Folder on "pop.gmail.com.." to add: INBOX Fill in a nickname: Nickname for folder "INBOX" : INBOX at gmail.com It will then connect to gmail server and will prompt for the username@gmail.com password. Enter it, and the INBOX will open. Role When you have multiple e-mail accounts, it is important to define a Role for each, so you decide from which From: does your e-mail is sent and to use which SMTP server. To create a Role, navigate through Main Menu→Setup→Rules→Role, and press A to Add. Enter a nickname Nickname = domain.com In the Current Folder Type enable Specific, and Folder List to your Incoming Folder, say, INBOX at domain.com if you have used the IMAP account above. You can set the Recip pattern which matches the To: and CC: from your incoming e-mail. For example: email@domain.com. Under ACTIONS BEGINS HERE section set the Set From field. For example: User <email@domain.com>. Update the Use SMTP server. For example: mail.domain.com/novalidate-cert/user=email@domain.com In the OPTIONS BEGIN HERE section, set Without confirmation for Reply Use, Forward Use, and Compose Use. Exit Setup (E) and confirm to save the settings. Brian
~Brian~ Posted April 5, 2024 Author Posted April 5, 2024 IMAP FUNCTIONING: OUTLOOK IMAP only for now) FOR ALL BBUS IMAP MAILBOXES (As of 4/5/24 @18:31 EDT) DOT US: It took me a couple weeks to get this set up: brian@buddy dash baker dot us is the primary mailbox, and from where I will be sending most outbound mail. Thanks to Mr. Chappa, I have the primary address configured, roled and configured as buddy-baker.us, and then I have a configuration where I can send and receive mail from root. I had to set up an outlook mailbox for that function, and define the SMTP-server in the role. HOTMAIL DOT COM (personal mailbox): This is set up so that I can pull mail using IMAP to see mail sent to my widkid38@ address. I will have to add a role for it later, just in case I need to SEND mail using that account. ALPINE can do that and I can set the roles, rules, and servers it uses. FOLDERS on mail/ This is a config that ALPINE sets to allow mail that is IMAPPED or POP'ed to save mail in folders like sent-mail, saved-messages, Read, etc. You configure that with (S), (C) and then find: # If set, specifies where already-read messages will be moved upon quitting. read-message-folder=Read For me, I set it to Read, so each time I exit, it'll take anything I read in that session and move it to whatever folder is set OUTLOOK DOT COM (work mailbox): This mailbox is the one I use for work at the Thrift Store. Primarily, the account is set up so that I can communicate with work colleagues, and deal with church business. As with the Hotmail address, I will have to add a role and a set of rules so I can send mail FROM this account, as well as receive it, ROOT: (bbus mailbox set on root account): Since I can alias anything to bbus, it stands to reason that I might, no MUST have a way to send and receive mail that is sent to root@bbus. I made this outlook mailbox because BBUS has been around since 2008, and does NOT run a mailserver: its just too time consuming, and security is also something I cant mess with here, as mail servers can go nuts and cause trouble if they are NOT carefully monitored and checked, so I'll let godaddy and Micosoft365 mail help me here. Roles and Rules and server has been set in (M), (S), (R), (R) This mailbox is accessible from alpine in roots shell . Now, that I have INBOXES for IMAP configured, I want to be able to manage things for the other folders. SET UP FOLDER-COLLECTIONS IN ALPINE To do that, all you need is to do is press (M), (S), (L) Once Letter at a Time) You have to enable folder-collections option In (S), (C) first for this to work. You will see the folder collections list Press "A" to Add a folder Collection, a screen comes up to add info: Nickname: Name this Collection (IMAP FOLDERS: Outlook or whatever you want) Server: outlook.office365.com/ssl/user=user@domain.tld/auth=xoauth2 This will be the same syntax as your inbox-path= value. NOTE: Inbox path has the {curley braces} around it, DO NOT include the {} braces around it: outlook.office365.com/ssl/user=/auth=xoauth2 [put your username between the user= and the /auth=xoauth2] Path: This will be the location of the folders you want to access. (Note that when you made the IMAP connection for your primary INBOX you put INBOX, all caps in the path variable). We Need to CHANGE the path here, because once you authenticate, you want to SEE all your IMAP folders for the account defined after user= put two brackets [] and then hit enter. That is [ and ] together so it looks like a square ([]) no spaces here, or alpine will complain View: You can mess with this to only show the folders you wanna see in view. the [] in path will give you access to the other folders, and the view lets you set the folders you want to see. You want to see "ALL" folders: so, put a star (*) in there and nothing else, then press control +X and follow the prompts, Hit (E) and make sure that you are at the main menu, and for extra assurance, Type (M) to be sure you are at the Main Menu if necessary, (Q) to quite Alpine, then command 'alpine' from shell, it will attempt to authenticate you now by asking for your master password: Give that, and you will be at the Main Menu From the Main Menu, choose (L) Folder list, and this assumes you have enabled "folder collections". If you don't, Go into (S)etup, (C)onfigure and search for "enable-folder-collections" and when you are in the box over that option, put an X in that box, and then save the configs. Then, Quit ALPINE, and close it, then launch again: command 'alpine' without (quotes). Give Master Password, then when ALPINE opens to Main Menu, Choose (L) for Folder List and you will see what is in box below: (This is what my alpine folder collections screen looks like when done): ALPINE 2.24 COLLECTION LIST Folder: INBOX 4 Messages + Incoming-Folders Incoming Message Folders Mail Local folders in mail/ IMAP FOLDERS: store-director Folders on outlook.office365.com/ssl/user=store-director@outlook.com/auth=xoauth2 in home directory IMAP FOLDERS: wizkid38 Folders on outlook.office365.com/ssl/user=wizkid38@hotmail.com/auth=xoauth2 in home directory As you can see: The incoming Message folders will have any configs that you added, and when you set that up, its pretty simple, if you've done SSL certs, and authenticated to outlook for each account, and saved the tokens. You ADD all your Incoming Folders there, and you will also see the Mail 'Local Folders in mail/' as well as any Imap folders from the accounts you authenticated and set up. If you've done it right, your gonna see something like this: Pay attention to the command line options below, and that will help you navigate: ALPINE 2.24 FOLDER LIST Folder: INBOX 4 Messages + Folders on outlook.office365.com/ssl/user=store-director@outlook.com/auth=xoauth2 in home directory -------------------------------------------------------------------------------------------------------------------------------------------------- Inbox/ ADVERTISING[/] AIMEE_CHHHH[/] Archive[/] BHA[/] CHECK_THESE[/] DAILY DIAPERS[/] DICK_SMITH[/] DONATION_LETTERS[/] Deleted[/] Drafts[/] GMT[/] HERRON_SMITH[/] INTUIT_QUICKBOOKS[/] Junk[/] MICROSOFT REWARDS[/] MS_SUPPORT[/] Notes[/] OFFICE[/] OPS[/] OTHER[/] Outbox[/] SALES[/] SALE_TOTALS[/] SURFACE[/] Sent[/] Sync Issues[/] TCTS_MINUTES[/] TEAMVIEWER[/] TECH[/] TECH_SOUP[/] VOLUNTEER_CALL[/] [][/] All You do is manage the folders and their contents here. To make it so you could have mail in a folder, you would create it in an outlook session, OR you could use your commands in the ALPINE taskbar, and create the folder and then move the messages you want within the web interface. The files you move to the folders you create will be there the next time you run alpine. HOWEVER, if you MOVE files to a folder, you are MOVING them, as opposed to COPYING them: One moves messages from INBOX to whatever folder you choose, and they move to that folder, while copying will keep copies of email in INBOX and put a copy in the folder you choose. You can cruise around, and delete mail from any folder now! Add new Imap folders the same way, just change the information,Nickname, the server, the path and view as above. Thats all for now: Next, gonna work on gmail authentication hehehe what a pain Brian
~Brian~ Posted April 8, 2024 Author Posted April 8, 2024 ALPINE UPGRADED TO 2.26 / IMAP FUNCTIONING ON ALL BBUS IMAP BOXES, AND ALL GMAIL ACCOUNTS 4/8/2024 @ 02:11 EDT After struggling for over a week, and with the help of Mr. Chappa, He suggested that the problem was that I was running Alpine 2.24, which was ONE problem I was having: The way that you authorize is to either choose "device" for those authenticating on one device, or "authorize" if using gmail accounts. With his help, i completed the Outlook (office365) authentication with my bbus accounts (brian@, and root.bbus@ for my domain and the outlook accounts. I had to download alpine2.26 from the developers website, then untar and unzip the resulting archive. Then, using instructions I found online, I compiled and made alpine binaries for the programs: alpine. pico, pilot, etc, and then once that was done, backed up my .pinerc, and then moved them from ~/alpine-2.26/bin/ to /usr/bin, for all of the programs. Easy way for me to do that was to ln -s alpine2 ~./alpine-2.26/bin/alpine. I did that for all binaries, and then made a directory in /usr/local/bin/alpine-2.26 coped the binaries for alpine, pico, and pilot to that directory. Since I had alpine 2.24 installed, I made each program distinct by adding a "2" (i.e. alpine2, pico2, pilot2, etc. I also copied the help files too, moving those as well. I then did 'apt-get remove alpine' to remove the 2.24 version and with the Links I made to the new programs, and then moved the resulting binaries from /usr/local/bin/alpine-2.26 /usr/bin, that way I don't have to mess with the path variable, since the /usr/bin directory is in the path, and so is /usr/local/bin. Job Done! ALPINE 2.26 COLLECTION LIST Folder: INBOX 22 Messages + Incoming-Folders Incoming Message Folders Mail Local folders in mail/ IMAP FOLDERS: store-director Folders on outlook.office365.com/ssl/user=store-director@outlook.com/auth=xoauth2 in home directory IMAP FOLDERS: wizkid38 Folders on outlook.office365.com/ssl/user=wizkid38@hotmail.com/auth=xoauth2 in home directory IMAP FOLDERS: BBUS Mail (Gmail) Folders on imap.gmail.com/ssl/user=bbus.brian@gmail.com/auth=xoauth2 in home directory IMAP FOLDERS: (Wizkid3878@gmail) Folders on imap.gmail.com/user=wizkid3878@gmail.com/auth=xoauth2 in home directory NOW you can see ALL Imap setups for the accounts, and in Incoming Folders there is an INBOX for brian@ and one for wizkid38, and one for each of my accounts I need: I cleared about 3,100 messages out of my Personal Gmail Inbox, which was piling up BAD: Gmail does NOT use the same conventions as outlook or conventional email providers, so they have a folder setup that is a tad strange. It wasn't too painful, but MY GOD, the authentication process was a NIGHTMARE, until Mr. Chappa sent me a client-id that would allow me to authenticate properly. This is the reason I had to download, decompress, and install Alpine 2.26 - There was a change that google made that he said was causing problems, and the authentication was trying to send a code to another host, and so he made Alpine 2.26 so that when you sign in to google, it allows you to choose your account, enter the password, and then it will drop out and say that it cant connect to localhost - Then you COPY the URL that you get from the desktop browser (Firefox for me) and what happens is the ALPINE 2.26 program will then tell you to copy the "code" from the URL you received: You Copy that whole URL from the Address bar (all of it has to be blue: it will start with something like https://localhost [blablabla) and it will have a code, and you go BACK to Alpine. Then, Press "C" and it will ask you for the code: Paste the whole URL right there, hit Enter, and when it asks if you want "thunderbird" granted access to gmail, in my case, even though using alpine, click OK, THEN go back to ALPINE: It will say: Perserve access token(s) for next login? (Y)/(N. Hit "Y" and alpine will save the tokens. Then, all you have to do, is Q(uit) Alpine, and then Hit "Y", then it wlll drop you to shell. open alpine again, give the Master Password, and you will be sitting at the main menu. From there, Press (S)etup/(L)Folder Collections and create your folder collections: You have to have a client-id and client-secret key for this to work: Add that using (S), and (U)) to put those in, then save them, then add your collections: 1. Add ALL Incoming Mail folders to "Incoming Folders: Press (A)dd to add the folder AFTER you have opened the Incoming Folders and you are seeing the white cursor ON INBOX. Hit "A" and follow the prompts.. when done, a connection will be attempted to your server [where your inbox is), and once it does, you will be able to read email from ALPINE. You can manage your mailbox folders too. [Will finish later on:) Brian
zzyzx Posted April 9, 2024 Posted April 9, 2024 23 hours ago, ~Brian~ said: ALPINE UPGRADED TO 2.26 / IMAP FUNCTIONING ON ALL BBUS IMAP BOXES, AND ALL GMAIL ACCOUNTS 4/8/2024 @ 02:11 EDT After struggling for over a week, and with the help of Mr. Chappa, He suggested that the problem was that I was running Alpine 2.24, which was ONE problem I was having: The way that you authorize is to either choose "device" for those authenticating on one device, or "authorize" if using gmail accounts. With his help, i completed the Outlook (office365) authentication with my bbus accounts (brian@, and root.bbus@ for my domain and the outlook accounts. I had to download alpine2.26 from the developers website, then untar and unzip the resulting archive. Then, using instructions I found online, I compiled and made alpine binaries for the programs: alpine. pico, pilot, etc, and then once that was done, backed up my .pinerc, and then moved them from ~/alpine-2.26/bin/ to /usr/bin, for all of the programs. Easy way for me to do that was to ln -s alpine2 ~./alpine-2.26/bin/alpine. I did that for all binaries, and then made a directory in /usr/local/bin/alpine-2.26 coped the binaries for alpine, pico, and pilot to that directory. Since I had alpine 2.24 installed, I made each program distinct by adding a "2" (i.e. alpine2, pico2, pilot2, etc. I also copied the help files too, moving those as well. I then did 'apt-get remove alpine' to remove the 2.24 version and with the Links I made to the new programs, and then moved the resulting binaries from /usr/local/bin/alpine-2.26 /usr/bin, that way I don't have to mess with the path variable, since the /usr/bin directory is in the path, and so is /usr/local/bin. Job Done! ALPINE 2.26 COLLECTION LIST Folder: INBOX 22 Messages + Incoming-Folders Incoming Message Folders Mail Local folders in mail/ IMAP FOLDERS: store-director Folders on outlook.office365.com/ssl/user=store-director@outlook.com/auth=xoauth2 in home directory IMAP FOLDERS: wizkid38 Folders on outlook.office365.com/ssl/user=wizkid38@hotmail.com/auth=xoauth2 in home directory IMAP FOLDERS: BBUS Mail (Gmail) Folders on imap.gmail.com/ssl/user=bbus.brian@gmail.com/auth=xoauth2 in home directory IMAP FOLDERS: (Wizkid3878@gmail) Folders on imap.gmail.com/user=wizkid3878@gmail.com/auth=xoauth2 in home directory NOW you can see ALL Imap setups for the accounts, and in Incoming Folders there is an INBOX for brian@ and one for wizkid38, and one for each of my accounts I need: I cleared about 3,100 messages out of my Personal Gmail Inbox, which was piling up BAD: Gmail does NOT use the same conventions as outlook or conventional email providers, so they have a folder setup that is a tad strange. It wasn't too painful, but MY GOD, the authentication process was a NIGHTMARE, until Mr. Chappa sent me a client-id that would allow me to authenticate properly. This is the reason I had to download, decompress, and install Alpine 2.26 - There was a change that google made that he said was causing problems, and the authentication was trying to send a code to another host, and so he made Alpine 2.26 so that when you sign in to google, it allows you to choose your account, enter the password, and then it will drop out and say that it cant connect to localhost - Then you COPY the URL that you get from the desktop browser (Firefox for me) and what happens is the ALPINE 2.26 program will then tell you to copy the "code" from the URL you received: You Copy that whole URL from the Address bar (all of it has to be blue: it will start with something like https://localhost [blablabla) and it will have a code, and you go BACK to Alpine. Then, Press "C" and it will ask you for the code: Paste the whole URL right there, hit Enter, and when it asks if you want "thunderbird" granted access to gmail, in my case, even though using alpine, click OK, THEN go back to ALPINE: It will say: Perserve access token(s) for next login? (Y)/(N. Hit "Y" and alpine will save the tokens. Then, all you have to do, is Q(uit) Alpine, and then Hit "Y", then it wlll drop you to shell. open alpine again, give the Master Password, and you will be sitting at the main menu. From there, Press (S)etup/(L)Folder Collections and create your folder collections: You have to have a client-id and client-secret key for this to work: Add that using (S), and (U)) to put those in, then save them, then add your collections: 1. Add ALL Incoming Mail folders to "Incoming Folders: Press (A)dd to add the folder AFTER you have opened the Incoming Folders and you are seeing the white cursor ON INBOX. Hit "A" and follow the prompts.. when done, a connection will be attempted to your server [where your inbox is), and once it does, you will be able to read email from ALPINE. You can manage your mailbox folders too. [Will finish later on:) Brian @~Brian~ Just don't ever accidentally install the stock alpine package with apt-get. You would destroy the binary files you moved into /usr/bin. Links instead of moving may have been a better choice in case of an accidental package installation of alpine.... 1 1
~Brian~ Posted April 30, 2024 Author Posted April 30, 2024 UPDATES: APRIL 30, 2024: 17:18 EDT Server: Today I did some more work on the server: I uploaded several images I snapped off of youtube, then used the WordPress Multi-File Uploader to upload them to my website. I was in the middle of a post to my blog, when I heard a strange noise: My server (Cardinal's) Monitor fizzled out - so I took a second, saved that post as a draft, and then lucky for me, I saved a Dell monitor, I just undid the screw connectors on the back of the Monitor, pulled the power cable from the back of the old monitor, and replaced it, then reconnected the power cord, and hit the power button - all set DD ALBUMS: Also have added several things to my album "Sage Advice and Sayings". Check it out. Brian
~Brian~ Posted April 30, 2024 Author Posted April 30, 2024 On 4/9/2024 at 2:45 AM, zzyzx said: @~Brian~ Just don't ever accidentally install the stock alpine package with apt-get. You would destroy the binary files you moved into /usr/bin. Links instead of moving may have been a better choice in case of an accidental package installation of alpine.... @zzyzx@tuffy Noted: Because /usr/bin is in the path of the system, the easiest way to deal with that is to link, BUT: I wanted to REMOVE the Alpine 2.24, and UPGRADE to Alpine 2.26. Eduardo Chappa, the developer of Alpine suggested that I should upgrade the version to 2.26, because the newer version has been upgraded to make it easier to connect to IMAP Servers: He said the Code for 2.24 lacked this, and was throwing errors. My workaround for this is to: change all binaries: ln -s alpine2 /usr/local/bin/alpine2.26 (then after that, do that step for each of the other ones [Pico, Pilot, etc]) THEN move the Binaries I linked to /usr/bin after that, I tested the new binaries: all of the 2.26 binaries have a '2' after them. All I do is make sure all of the binaries I created launch Alpine 2.26, then after that, I REMOVED the 2.24 version of Alpine and all its support programs with 'sudo apt-get remove alpine' That way, 'alpine' would throw an error, while 'alpine2' launches the program Thanks for the advice Brian
tuffy Posted May 1, 2024 Posted May 1, 2024 4 hours ago, ~Brian~ said: and then lucky for me, I saved a Dell monitor, I just undid the screw connectors on the back of the Monitor, pulled the power cable from the back of the old monitor, and replaced it, then reconnected the power cord, and hit the power button - all set My wife always asks "do we have to keep all this old equipment?" and I usually respond with "that's the solution to countless problems I haven't encountered yet". 1
~Brian~ Posted July 25, 2024 Author Posted July 25, 2024 (edited) BBUS STATUS (7/25/2024 @12:00) BBUS network devices have been reset, and the modem and the router have been reset. To do this, we shutdown all devices connected, and then reconnected the router to the network. Once this was done, I power cycled everything connected again, and then reconnected the router: Once connected, I then turned my router on, and power cycled cardinal again: Everything seems to be running normally, but I was having a problem with the network manager, which was telling me that we had no connection to cardinal's IP addresses. After the last restart. everything is showing up in the router, and all devices that are active and ON are showing a connection. WHAT HAPPENED THIS MONTH?: This month (July 2024) we had a repeat of the floods that we had in 2023, exactly to the day: We had to deal with getting mud and silt and junk under control, and I am happy to say that I was not affected this time either, but during the first few weeks of July, I decided to Power cardinal DOWN during the thunder/lightning and heavy rain. Today, I have been dealing with power outages: Our generator will bring the power back up in the building when we lose the main power, but the Disk Drives that are connected don't like to deal with sudden power drops. I also don't like to see the power come back up so fast, so I try to bring down the system during rainy or inclement weather, especially during rain and thunder and lightning events. Cardinal is now running, all systems appear to be responding OK on the Internal and External IP addresses Brian Edited July 25, 2024 by ~Brian~ added additional information
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now