Ubuntu Based MineCraft

Good Morning from my Robotics Lab! This is Shadow_8472, and today, I am setting up a MineCraft server on Linux. Let’s get started.

First off, WOW! I never would have expected it. I had heard Android was a version of Linux before, but, WOW! So, Ubuntu MATE is designed to be beginner friendly and easy for Windows users to find their way around, but there are still some “cultural differences.” The first of these cultural differences I is the file system. Where Windows has their C drive, Linux might have /dev/sda/ or something else. I don’t have it figured out yet, but it apparently can let someone know what partition of what drive they are looking in. The other major difference I noticed is the Software Boutique. It looks just like a miniature version of Android’s Play Store would if it were meant for a desktop. Only now when I look it up do I find that it’s a relatively new feature.

The aforementioned Software Boutique is where you get your programs. Windows users are in the habit of going out and downloading programs from online, hopefully from a trustworthy source. If you end up with something less than honest, your virus scanner will hopefully catch it before it can do any damage.

Good Linux users are in the habit of using package managers. All I know about them so far is that they are databases of trusted software that can also keep your software up to date with spontaneous security patches and things. That brings up the other comparison, security. Windows is the big target when making viruses. Linux was designed with security in mind, and it isn’t the go to OS for most desktop users. Both factors make it less tempting to aim at Linux when building a virus. Long story short, if you maintain good habits when playing with Linux, you don’t need to run a virus scanner.

Another thing I noticed, performance. When Windows 7 was running on there, It was chugging along as if burdened by old age. Now, I’d say it’s running like a middle-aged system. It has its slowdowns, sure, but that was running two clients of MineCraft off internal graphics. I think this computer will do nicely for my purposes.

This brings me over to setting up a MineCraft server. The client was happy with OpenJDK, the free and open source version of Java. When looking through the Software Boutique, I spotted the server and grabbed that. Too bad it wasn’t as care-free as it’s resource happy counterpart, Client. So far, I have learned that I will need to assemble a .bat file to put the server files where I want them. If only I knew how to do it, I could be done in 30 seconds…. The thing about obsolete tutorials, though, I’m going to need to assemble my own instruction set.

***

OK… It looks like I am learning about bash files and the command line before I get too far.

***

I have seen things I rightfully shouldn’t know until about a year from now. Too much to rightly cover. All I wanted to do was automatically start and stop the server after startup and before shutdown respectively.

Backing up a little, I got onto a help session with another Linux user. I don’t remember his screen name, but he advised me that not all software need be downloaded from a software repository. Big enough names, like MineCraft, should be safe enough to download directly

On that note, I used Firefox to download Discord as well, and was given a package file to deal with. It was either that or a tar.gz file I wasn’t sure what to do with, even after looking up the format.

Looking up server automation techniques, I came across powerful features that, after thinking about it, might have ruined my system if I played around with them too much. I kind of felt like I was staring into an active reactor, knowing I could stick my hand in to either disrupt everything, or find out nothing happened after all. For the curious, Linux has a different Runlevel for various functions, such as boot up, shutdown, restart, single-user, etc. At this point in my exploration, I had to gather most of my information from bits and pieces from scattered around forums and the like, so I don’t have any links to share. I did come across a few terms, many of which are obviously important, yet none of which I have fully sorted out/differentiated. I’ll just be happy to get my Spigot MineCraft server running and updating, then I think I’ll call it a week; scripting can wait, I have a more hands on project for next week.

***

The Spigot server is up. It turns out it had nothing to do with packages. When I first went through the process of getting the tools to compile the server, I accidentally disregarded the file I was in. All the mess ended up on my desktop. I sent the offending files to the trash and redownloaded and recompiled in a special folder for building such files: a ‘factory’ so to speak.

***

There is still much to explore with just this one distro. After I get a little more comfortable looking at the foreign grammar that is that which is used in the Linux terminal, I’m planning on reevaluating the lazy computer. I see two likely paths for it. After redoing its thermal paste, I’m planning on moving it over to Ubuntu and leaving it running for a few days, possibly under stress test conditions. If it holds up, I will move it in as my toy desktop and my current toy desktop gets moved to a server version to run the family’s MineCraft worlds. On the other hand, If the stress test fails, I can see the computer being parted. I know its BlueRay reader is superior to my current DVD reader. The Ubuntu machine has already inherited its old screen and speakers, which were surround sound, if there was a discrete sound card. I ended up pulling the rear speakers from the setup because they were buzzing otherwise.

I learned a lot this week, and I will say: it pays to know what it is you are supposedly doing. A series of instructions may be just someone’s preference or the way things must be done. If you ever find yourself maintaining anything, go ahead and learn a little bit more about it. You might pick up a few new tricks. Final Questions: Do you play MineCraft? If so, what was the version you started playing? And do you run a server?

A New Tower to Play With

Good Morning from my Robotics Lab. This is Shadow_8472 and today, I’m inspecting a new to the lab, quality used computer. Let’s get started.

This is going to be another progress update post. If nobody objects, I think these will end up being the defacto standard post type. Anyway, the first thing I noticed about it was the Dell name brand. From what I have read, they tend to make good Linux machines.

My plan at this moment:

  1. Boot the machine as it is.
  2. Burn a CD or DVD with an image of its hard drive.
  3. Install Ubuntu MATE.
  4. Get the system stable.
  5. MineCraft server

I expect to finish through item 3 this week. Eventually, I’d like to learn the command line and how to remote in. After I get an idea of the command line, I can see about turning it into a server version and/or find a more appropriate distro for running a MineCraft server.

***

Well, I was not expecting this…. The computer boots just fine, if I had a VGA cable (I think). My current setup is the box, a monitor running off a DVI adapted from a DisplayPort. The wireless keyboard and mouse are working fine, and sounds are coming from an on-board speaker.

The computer is booting to Win7, but it loses the monitor signal after the Windows logo disappears. Even so, I am not letting a little problem like that keep me from shutting it down correctly. There is no account password, so I hit Enter, then Alt+F4 to bring up the shutdown menu, then Enter again to confirm shutdown.

While diagnosing the problem, I had the computer booted to both Linux Mint and Safe Mode. Safe Mode was particularly annoying because I had to mash F8 to get there, while F12 brought up it’s boot menu by simply holding it. In either case, the DisplayPort worked correctly, and I’m inclined to just proceed to installing Ubuntu MATE. I don’t know yet. Maybe I will go ahead and image the drive onto a disk.

***

I really don’t think I will ever be putting Windows back on this machine. Honestly, I doubt it. The only thing I might consider saving is Access, but I’m not sure if the license follows the computer with it, or the person or organization who originally bought it. Also of note, for the past two days, every word I type in here has been underlined by the spell checker (unless it happens to have a number in it, like F8 or F12). It’s kind of annoying. I think I’m going to go straight to 3 now. The computer is booted to Ubuntu’s install drive now, and I’m eager to get started… but it’s just I get the feeling I’m crossing a one-way bridge with no return, and I don’t like that feeling. I just want someone else to be responsible for it, but that would undermine the whole point of doing it mostly on my own… I don’t know what I’d need to make a backup and I doubt I would use it anyway, so I guess It should work now.

Now that is weird… no more underlines under most new words. I don’t know what is wrong with my spell check. Nonsense words are also being cleared in clear sections. Before, I thought Firefox was punting spellcheck off to a glitchy database, but now, I’m not sure… I can only hope I can arrange for things to work out. Undo and redo seem to reevaluate the underlines. (I am so off topic…). Anyway, I’m going to just go for it.

***

This is it, I’m at the moment of decision and I just can’t cross. Maybe I can talk myself into it… I just need some support to do a clean install. Dual booting is harder to maintain, and I don’t see any reason to keep that copy of Windows around except to have the option open… I think I will wait a few hours and continue my work then.

***

I backed out. The VGA cable arrived and Windows 7 did a full boot. I told it to do whatever updates it’s going to do, then I’m making that CD and I’m giving that drive a full startover.

***

It’s done. My father did talk me into making a system image and repair disk, though. Protip: make sure your power cord is firmly connected when you try updating and someone is likely to bump the tower with a broken arm chair. I did not learn this lesson the first time, so it happened again. But the important thing is that Ubuntu MATE is now installed and running as the exclusive OS on the new server.

I think that’s enough for this week. I’d like to poke around and learn some more about setting up a proper Linux desktop. Eventually, I will be wanting to dual boot my personal system, but that can wait until later. Final Question: I did a lot of back and forth in this one. Would you rather read an end of week report, or a progress log?

P.S. Restarting Firefox took care of the spellcheck problem. I wonder how it started though…

The Lost Post (Hard Drive Rescue Saga Continued)

Good Morning from my Robotics Lab! This is Shadow_8472, and today, I’m continuing my work on the failed computer system from last week. Let’s get started.

Lesson #1 for me today: SAVE YOUR WORK WHEN YOU STAND UP! I had a 3/4 finished post waiting to be finished. I must have gotten up for something, and I later had to reboot for something covered later on. WordPress does not auto save. With that out of the way, I’ll try to recreate something resembling my lost post.

So, last week, I covered how I used Linux Mint to do a memory dump of a failing HDD (Hard Disk Drive). This week, I plugged it into my tower and checked it for errors. My copy of Windows gave it a clean bill of health. “Only 4KB of data in bad sectors,” was the worst report I got from it. 4KB is tiny, but if it includes the boot sector, I’m out of luck when trying to boot to it. My PEBKaC (just look it up, it’s funny) moment happened as I went to shut down and boot into the suspected drive.

At this point, I went into various fuzzily related details to create suspense, such as how I couldn’t find my other SATA cable or how I didn’t have the correct mounting for my case for this HDD. I yanked the unformatted SSD and connected the HDD and let it rest just outside the case. (The picture is from just now, not then.) Anyway, at one point, the drive was putting its weight on the power cable, so I started turning it over. My father cringed as I slowly rotated the box to avoid too strong of a gyroscopic effect on the spinning disks. He told me that Hard drives used to be sensitive to the orientation they were in when they were first formatted: they must not have had as good motor control for the read heads. While this is an aging HDD, it isn’t 90’s technology, the latest example cited as not being up to being turned on end.

Also of note, I stuck Ubuntu MATE on another USB thumb drive. I actually had emptied a few others as well, but I only went through with the one.

At this point, I rebooted and lost my earlier post. Now for the results.

I first tried to get into the boot order to adjust it. That didn’t help too much, but I did find the boot menu. I selected the 2TB drive available and “Windows is getting used to its new hardware,” or something to that effect. It took a while. I ended up not being there when it rebooted itself, and I had to get back into the BIOS and back and forth… I eventually pulled my main hard drive, the green one in the picture, and let the HDD at it. With nothing else in the way, it booted. To black. It’s like the login screen was stuck loading after giving me the mouse pointer. Startup repair didn’t do much for me.

At present, (the time a depicted by the picture) I have three hard drives connected to my computer. I managed to find the lost SATA cable in a drawer I’d forgotten it was stashed. The configuration of the power cables is maxed out. Sure, I might be able to use a little trickery and rerouting to fit a few more things, but the geometric shape and lack of cable elasticity is making things difficult.

***

P.S. Edit: Guess what I found after writing the final two paragraphs. Yes, the lost post in question. I need to pick a single browser for composing my posts. The only reason I even recognized it as the lost post was because it lacked the picture. I like this a little better, so I’m still using it instead of going back. At the same this post missed some stuff. Instead of merging them though, I’m just going to post it as a page and link it HERE.

P.P.S. It was a page all along.

***

The final results are in: the little Chkdsk stunt with repair stunt worked. I was able to boot the drive successfully two consecutive times. I won’t vouch for its speed or the fact that that copy of Windows somehow missed my bigger monitor, and had the audacity to call it older than the one it actually found. Jokes aside, it did say some older monitors might not automatically connect. Detect monitors didn’t find it either. I don’t really care. The problem I set out to solve is fixed, and the drive is now pulled from my system.

Final Question: I know I said I would like to do a monthly video, but at this time, I don’t know if I can keep up on the ideas. Until I get a bigger project, I will probably just make a video when I am doing something new and hardware related. What would would you like to see in such a video?

Desktop Data Rescue

Good Morning from my Robotics Lab, this is Shadow_8472, and today, I am going over my first trot into actually using Linux for something. Let’s get started.

So, my family’s main computer is an aging system. This week, it decided to just not work anymore. Taking an opportunity to exercise my skills, I went ahead and emptied a USB thumb drive and started learning. And by learning, I mean failing and researching why things kept going wrong.

I started by considering the problem. I had heard Linux Mint is supposed to be stable. I used Chrome to surf over to linuxmint.com and went to downloads. I was confronted with four desktop environments. I went with MATE, as I had heard nothing to do with with Cinnamon, Xfce, or KDE. The next page gave way too many options in terms of mirrors to download from. I tried out two different links; the first mirror estimated almost an hour, and the second one, just five minutes. Another five minutes were spent moving the ISO file I had just downloaded over to the drive I had waiting (I still do not fully ISO yet, just that it is some sort of disk image).

After looking up a tutorial on setting up the bootable hard drive, I moved the ISO back to the downloads folder and formatted the drive. I followed the instructions and, soon enough, had a stick that was supposed to work. I prayed a silent thank-you prayer after the boot order was overridden in the BIOS and I saw Mint working for the first time.

Next step in the plan: get into the failed hard drive and dump everything to a new drive. Oops. Newer versions of Windows like to hibernate themselves instead of actually shutting down. Linux gave me a super long error message informing me about something like this happening. The proper fix would be to get into Windows and disable it from merely hibernating – not an option here. Another look at that error message hinted to trying to mount the drive as read only. I went to the command line and had no idea where to start. It was getting late, so I messaged a friend; he linked me to a forum post for my exact problem.

The fix worked beautifully. I connected an external drive and compared the used space on the bad drive to the empty space on the backup drive. I was pleasantly surprised to find enough space. I set the system to doing a dump and left it overnight.

Somehow, the system held up long enough to finish the dump. I was thrilled when the last of the data was saved. My father told me I had helped diagnose the cause of the crashes; he was thinking it was a blunder with the thermal paste for the CPU and cooling system. Of course, it went and crashed again shortly after.

The old system has been replaced. I’m waiting to do a checkdisk on the failed drive using my tower, and I think I can safely say my next post will be on tinkering with the old system.

Final Question: Up until now, I have only been studying up on Linux, taking it slowly, getting ready to do something while waiting for a computer I can brush off and start over on if I ruin things completely. Now that I have an available workspace, I find myself reaching for results using tutorials. Do you learn better by first doing, then learning what you are supposedly doing; or learn what you should do first, then do it?