I decided to try and get a small minecraft server running on a Linux server because, why not?
So I spun up a new VM of Ubuntu 18.04 and went to work.
First update everything
apt update && apt install git build-essential
Then get Java installed, but the headless version of Java, cause, well, server
apt install openjdk-8-jre-headless
Create a new user to run the minecraft instance instead of the root
sudo useradd -r -m -U -d /opt/minecraft -s /bin/bash minecraft
switch to the minecaft user
su - minecraft
Although in my case, during the installation of the VM I created a user "minecraft" so I didn't need to manually create one.
Navigate to the /server directory and download a new server jar. I used BuildTool to create a new jar file. using
wget https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar to download the new tools and then I ran
java -jar BuildTools.jar --rev 1.13.2 to get a new server build and move that into the /server directory if it isn't already.
From there run
java -Xmx4G -Xms2G -d64 -jar server.jar nogui in the /server directory and then it will generate the initial files for the server.
Edit the server.properties file and change the following values
Now from there everything should be good to go. I ended up adding plugins to the generated plug in folder using a new sftp connection from another computer on my network. I'm still in the process of configuring those plugins and such but overall the server is up and running.
Things to still do are port forward the re correct port on my router to access the server outside of the local network.
Reference Install Guide
Server Jar Builder
On my Proxmox box there is a daily apt-get update task run. However it has been erring out every time it has run since I installed Proxmox. So hopefully this will fix it.
There are various package repositories for Proxmox and those are listed in File /etc/apt/sources.list
The listings in that file influence what is checked for during the update process.
My concern is that I have this listing when I run "apt-get update"
Err:8 https://enterprise.proxmox.com/debian/pve stretch/pve-enterprise amd64 Packages
W: The repository 'https://enterprise.proxmox.com/debian/pve stretch Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch https://enterprise.proxmox.com/debian/pve/dists/stretch/pve-enterprise/binary-amd64/Packages 401 Unauthorized
E: Some index files failed to download. They have been ignored, or old ones used instead.
Now this most likely have an issue with my /etc/apt/sources.list
I am currently running Proxmox 5.4-3 so ideally I should have the following in my sources.list:
deb http://ftp.debian.org/debian stretch main contrib
# PVE pve-no-subscription repository provided by proxmox.com,
# NOT recommended for production use
deb http://download.proxmox.com/debian/pve stretch pve-no-subscription
# security updates
deb http://security.debian.org stretch/updates main contrib
However this is the case already so after some checking it looks like there is another file that is in another directory. This file is located at "/etc/apt/aources.list.d/pve-enterprise.list" This is an enterprise only sources list with a single entry
deb https://enterprise.proxmox.com/debian/pve stretch pve-enterprise So I commented that out and saved the file.
I reran the command "apt-get update" and encountered no errors. So hopefully it should all be working correctly now.
Proxmox Package Repositoires
Since I needed a way to document my installations and such on my personal server and websites because I'll eventually mess up and have to rebuild the whole thing (already happened once) I started looking for a blogging platform.
I decided to go with Chyrp Lite for my blog of choice. Hopefully it'll work out (if this site is currently not using Chyrp then you'll know it didn't.
I first created a new subdomain and SQL database on my website seanpmcmillin.com
Then I downloaded the latest release of Chyrp from the github repository. At the time of writing it was v2019.02. After downloading I used FileZilla to connect via FTP to my website's new subdomain folder and uploaded the contents of the release to it.
After that I just entered the line
blog.seanpmcmillin.com/install.php into my browsers url bar and I was taken to the installation page. I typed in the information of the database I created earlier and voila, I had a working blog.
This was a very simple install and I'm glad I was able to get it working. What took the longest was determining what software to use and that running it on an LXC wouldn't be the best idea right now. Good thing I already had a website through an outside host!
I realize now that blogging/documenting my projects is going to be a lot of work. But it has to be done so I'll just have to get used to it!
Chyrp Quick Start Guide