Already a Week into 2019

While sitting in my chair working on a VM, I realized that the last blog post I did was on December 31st. So here’s a little review over the last week or so. There won’t be much technical content here, just a few musings.

We’ll start with the future. My cat, Lexis, will be having some dental work done at Duluth Animal Hospital on Thursday. This is the first time I’ve ever had a cat undergo a tooth cleaning; however, Dr. Diehl has discussed it with me in the past, and with his last visit, I’ve decided to go ahead and have it done. Dr. Diehl took the time to answer my questions and concerts, so I’m now comfortable putting Lexis through this procedure. He’s a good kitteh, and everyone wish him well!

Today I set a new personal record for jogging a mile: 13 minutes 17 seconds. I’ve been walking and jogging since September to try to fulfill a challenge my girlfriend gave me. She believes if I can jog two laps around a local park (2.5 miles), then I’m likely in good enough shape to return to Tae Kwon Do. Right now I’m jogging 1.25 miles and walking 1.25 miles four times a week. I crossed into 1.25 miles of jogging on January 1st, and I’m hoping by the end of February I’ll be ready to increase to 1.5 miles, which will decrease my walk to 0.75 miles.

And since the new year: I’ve been doing a good bit of planning and thinking about what I’d like to do with Eddie Jennings Services, LLC for 2019. A couple of things are in the works now (which involves the VM I was working on). I’ll do any relevant announcements on the business site.

Before I sign off, I do have to give one technical bit. --strip-components might be the best option available for tar.

Let’s say you have foo.tar.gz and within that is a folder foo and a ton of files. If you did this command tar -xzvf foo.tar.gz, then it’s going to expand everything into a folder named foo. This makes perfect sense, as the foo.tar archive is a folder plus files, and all the tar command did was decompress it (remove the .gz) and expand the resulting tar.

Now let’s say you want to extract just the files of foo.tar.gz into the /tmp directory, but not that top level folder. If you use the above command and add -C /tmp, then you’ll now have a folder named foo within /tmp with all of the files. Here’s where the magic happens. If you run this command, tar -xzvf foo.tar.gz --strip-components=1 -C /tmp, what will happen is the top-level will be removed, and /tmp will now have all of the files that were formerly within the foo directory. If file1 was a file within the folder foo, using this new command, the extracted file will now be /tmp/file1 rather than /tmp/foo/file1. Nifty right?

As I’m still learning my way through common applications like tar, feel free to comment if there’s a better way to do what I described.

RHCSA: Getting Back Into The Swing Of Things

Returning to Linux Academy almost feels like coming home. Everything I’ve worked on so far is a review of when I looked at this material about a year ago. It’s nice having things come back to me.

The observation of the day. I love the fact that, if needed, you can reset the root (or any password) without having to use any kind of third-party software or having boot media. You have to have console access, but that’s it. Here’s the procedure I was taught.

  1. At the GRUB menu, select the desired kernel and edit the configuration (press e).
  2. At the end of the linux16 line, add rd.break.
  3. Press ctrl+x to get into the initramfs shell.
  4. Remount the /sysroot directory using mount -o remount,rw /sysroot.
  5. Change root to /sysroot using chroot /sysroot.
  6. Use passwd to alter whatever user’s password.
  7. Create /.autorelabel for SELinux.
  8. Exit chroot and initramfs. Wait for the system to reboot.

Note: Dr. Google says that doing the SELinux relabel might not be the best thing to do. The above is what I was shown from the Linux Academy tutorial, and there may be a better way to do this.

On Nextcloud: I was able to get the script to work (by taking some ideas from Jared). I might revisit it one day, but the point of the exercise was to play with building a script, which I did.

Scripts for NextCloud

As mentioned in previous posts, I’m playing with NextCloud again. The end goal is to have an installer script that will complete a basic install of NextCloud on Fedora. There are guides and scripts out there, but this is also a learning exercise for me with Bash scripting. What I’m going is taking some guides and scripts out there and from them creating my own.

The project lives here: https://github.com/SerousDarkice/Nextcloud-Installer-Fedora

RHCSA Certification

I am one of these folks who would like to know everything, and sometimes, I must be brought back to reality and realize that I cannot know everything. The question then becomes with the limited time I have, what do I want to learn? Since “everything” isn’t an option, I’ve decided to spend time learning something that follows a flame of passion: Linux administration. Much like my desire to take a semester of Latin during undergrad, there really isn’t a reason for this outside I simply want to do it. I’m also interested in having a Linux admin job one day, but that’s simply the logical progression from learning about Linux administration.

I do not dislike Windows, and some of the stuff I poked around with in my cert book was useful. I look at it from this perspective. Each day at my job I’m working on honing Windows administration skills and / or research how to do something within the realm of Windows administration. When I’m at home spending my own time and money, I’d rather put that effort toward a personal interest, which right now is Linux administration.

Of course, I could make the argument that I should spend my personal training time working on skills that improve the skills used for my job. My problem with this is that makes the line blurry of when work-time ends and Eddie-time begins. Therein lies the beauty of what I’m doing. Some of the general knowledge and skills I’ve gained from my few Linux administration experiences helped me become a better Windows administrator. Having another way to do the same kind of task (another way meaning I’m doing the same task in a Linux environment rather than Windows) allows me to understand the why and how of the task a bit deeper. So when I return to my original environment, I can often troubleshoot a task better since I have a deeper understanding of whatever that task is supposed to do. I have no doubt that what I learn studying for the RHCSA exam will have a positive effect on what I can do in the Windows environment at my job.

Another week is done

Well, the blog isn’t completely ignored. I could easily not be writing this post.

This has been a busy week. Thursday night had a performance with the Peachtree Symphonic Winds. I don’t remember much before Thursday, but work was busy. Tonight had me trying to cajole NextCloud into working. It’s tough when you have an error griping that something can’t write to a particular direcctory after I set the permissions to 777 just for fun. I’ll take another stab at it this week under the guidance of Jared Busch.

On a more positive note, some weight loss was experienced this week. I flirted with 269 a couple of times. Perhaps soon I can finally break out of the 270s consistently. I also jogged at 14’46” mile according to my Apple Watch. That’s probably a record for me.

I also did a bit of thinking about my learning lab I think I’m going to switch gears again to my original goal of the non-network side of the lab: Linux. I do not dislike Windows, but I always seem to have more fun poking around with Linux in my lab scenarios, and I figure this lab should serve two purposes: gain skills and have fun. So step one: Finally get NextCloud functioning — damn it! I’ll let you know if I’m ever successful with it. After that will be seeing what interests me at the Linux Academy. I’m grandfathered in at a good rate, and I remember enjoying using it in the past.

Unrelated note: Upgrade of my KVM host to Fedora 29 was successful!

Brief Derailment

Life and Final Fantasy VII have got in the way for the last week or so. I cannot complain, for I’m enjoying the distraction. I never did beat Final Fantasy VII back in the day. I know the ending, but I’m endeavoring to actually experience the ending. At the present, I’m trying to gather the Huge Materia.

While debating in my head about continuing to use Office 365 and Zoho for E-mail, I came to a decision. It’s time to deploy and play with NextCloud. Thus, that’ll be my new current project. This will also force me to determine a data backup strategy. Added bonus will be this for a Linux environment. I’ll update the progress here :).

Trying to Break A Windows Virtual Disk

One way I learn concepts is by trying to break something and then fix it. You can learn a good bit about how things work by observing error messages. Tonight I wanted to test what happened if I removed a physical disk that was being used as a part of a storage pool with Server 2016.

The behavior I expected to see comes from my understanding of RAID. With RAID 0 (all data striped across X disks), if you lose a disk, the array fails, and data is lost. Other forms of RAID have some fault tolerance by either mirroring disks or having a parity calculation. Here’s what I did.

  • Created a VM with three VHDX files. One for the OS and two that will be used for a stroage pool
  • Created a storage pool (totaling about 20 GB, since apparently physical disks must be at least 10 GB to be recognized).
  • Created a virtual disk that’s about 2 GB in size. This disk was configured as a simple disk, which I understand to mean it stripes the data among its block devices.
  • Created a volume on the virtual disk.
  • Created a text file on the Virtual disk.
  • Removed one of the two VHDX files being used for the storage pool.
  • Virtual Disk showed there was a problem; however, I could still access the file and create new files.
  • Obviously, I’m going to try to replicate this to make sure the results I saw were valid. It makes sense that removing a disk wouldn’t break the storage pool, since it would simply be less storage available to the pool. What’s curious though is if the Virtual Disk is striped among the physical disks in the storage pool, why didn’t the Virtual Disk completely fail once I removed a VHDX from the VM (trying to mimic just yanking out a drive while everything’s running)? Hopefully my replication of the above will lead me to answer.

On to storage services for Windows Server

It has been a challenge to focus this week on MSCA study — perhaps Thanksgiving is to blame, but I think it was a general lack of motivation, as well as fatigue. Only one way to cure that: get back to work. I stalled a bit on NFS, and decided to return to it later. Conceptually, I understand what’s going on, but trying to get a NFS share from a Windows server accessible from a Linux client will be completed at a later time. I was able to mount the share without a problem, but the directory was owned by nobody:nobody. A little quick Googling found that this isn’t too uncommon of an issue, but I’m really looking forward to playing with storage pools and such, so I’ll return to it.

I do want to take a moment and mention how great virtualization is for learning. It’s simple to make a VM and attach multiple drives to it, rather than having to do that on a physical machine for a lab.

Another week has come and gone

I promise I haven’t forgotten about the blog. Perhaps I should do servers small posts as the moment grabs me rather than try to write something significant each and every post. I am cautious about that, for I do not want this to be an extension of Twitter or the like. By the way, I’m experimenting with the WordPress app for iPhone. So far, it seems to live up to its intended functionality.

Not much has been accomplished with MSCA study this week. I did finish reading the storage chapter and have started making some flashcards. I do look forward to practicing the concepts introduced. One in particular is creating NFS shares on Windows Server. I’ve never actually made NFS shares on a Linux server, and I didn’t know Windows supported them. Also the idea of storage spaces seems interesting. However reading about it reminds me a good bit of LVM on Linux.

Typing on the phone is a bit tedious, so I’ll end this soon. I took a stab at installing a dev OSTicket server using a guide from Mangolassi. A while back I tried to create a script for installing it on a Fedora server (adapting the same guide) and ran into problems with PHP. Tonight’s attempts using CentOS weren’t successful, but I think after a night’s rest and with a clear head, I’ll get it done.