====== Joshua, Linux Server =======
Purchased a small Intel NUC computer, which has a Intel Core i7 Processor, 8 Gb RAM (32 Gb maximum), 40 Gb SSD as a possible Minecraft server.
**Drives**
^Device^Mounted^Size^Usage^
^/dev/sda1|/|47G|OS|
^/dev/sdd1|/var/nas|1T|NAS Misc.|
^/dev/sdc1|/var/backup|5T|Backup|
^/dev/sdg1|/var/nas2|8T|Backup whole System|
^Desc|Intel NUC|
^S/N|G6BN81900H2Z|
^SA|J31153-311|
^Product Code|BOXNUC 7i7BNH|
^Manu.|5/2018|
^Comment|Intel NUC 7 Mainstream Kit\\ Core 7|
dwheele@joshua:~$ uname -a
Linux joshua 6.1.0-15-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.66-1 (2023-12-09) x86_64 GNU/Linux
[as of 9/10/2025]
===== Setup =====
Added git with this command:
''apt-git install git-all''
===== Oracle XE =====
For work, installed Oracle XE
The download was an rpm, so had to install ''alien'' to install the rpm. ''sudo rpm -i package-to-install.rpm''
Also had to install libaio:
sudo apt-get install libaio1
https://docs.oracle.com/en/database/oracle/oracle-database/18/xeinl/starting-and-stopping-oracle-database.html
^Start|sudo systemctl start oracle-xe-18c|
^Stop|sudo systemctl stop oracle-xe-18c|
^Restart|sudo systemctl restart oracle-xe-18c|
==== Troubleshooting ====
^Problem|Could not access outside of the local network|
^Solution|Made change to ''NetworkManager.conf'' (added ''dns=none'' in the [main] section) to turn off its overwriting of /etc/resolv.conf, followed by creating the resolv.conf file to have literally ''nameserver 192.168.0.1''|
https://askubuntu.com/questions/623940/network-manager-how-to-stop-nm-updating-etc-resolv-conf
Helpful: to temporarily to restore network service, long enough to install some tools (the ethernet card is "eno1":
dhclient eno1
This will help troubleshoot network:
# apt-get install ifupdown-extra
network-test
===== Kept going to sleep =====
After doing some upgrades, server Joshua kept going to sleep. I read this, and tried it:
* https://unix.stackexchange.com/questions/529471/debian-10-adjust-sleep-settings-via-command-line
//There is possibly a better way: edit /etc/systemd/sleep.conf and activate the following two lines://
AllowSuspend=no
AllowHibernation=no
2/9/2022
===== Installed minidlna, a DLNA/UPNP Server =====
Wanted to serve photos to the Oculus from the file system. So installed MiniDLNA, a.k.a. ReadyMedia.
See https://www.bananatronics.org/installation-and-configuration-of-minidlna-readymedia/
sudo apt install minidlna
vi /etc/minidlna.conf (adjusting media_dir=/var/nas/Videos)
sudo service minidlna restart
sudo systemctl enable minidlna (not sure what this does)
Visible from Windows Media Player, Oculus Pigasus, Oculus DeoVR
===== Couldn't log in with SSH key =====
Received this error in /var/log/auth.log
sshd[167454]: userauth_pubkey: signature algorithm ssh-rsa not in PubkeyAcceptedAlgorithms
Fixed by running these:
root@someserver~]# vim /etc/ssh/sshd_config
// Add this to end of file
PubkeyAcceptedKeyTypes +ssh-rsa
root@someserver ~]# systemctl restart sshd
Reason? //This error occurs because the SHA RSA 1 algorithm that DeployHQ traditionally used for key generation, is no longer supported out the box in newer Linux systems.//
https://www.ezeelogin.com/kb/article/userauth_pubkey-signature-algorithm-ssh-rsa-not-in-pubkeyacceptedalgorithms-518.html
====== Had problems when booting, apt upgrade'ing ======
Ran this:
sudo apt full-upgrade
Errors were encountered while processing:
linux-image-6.1.0-13-amd64
linux-headers-6.1.0-13-amd64
linux-headers-amd64
linux-image-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
Trying this:
sudo apt remove aufs-dkms
====== Wouldn't Boot after fstab change ======
I bought a large external HDD, modified fstab incorrectly. Kept getting errors on start up.
It kept asking me for the root password for maintenance. Unfortunately I didn't supply the right one (see usual KeePass for the server name). That allowed me to edit the /etc/fstab value to look like this instead:
UUID=135260b9-26cd-41b9-8e69-9489a5d3fe32 /var/nas2 auto rw,user 0 1
(I had left off the rw,user value, causing the 0 and 1 to be in the wrong positions. [5/6/2025])