Skip to content

Category: Servers

Adding Unraid Mount Share via Tag to FSTAB

Create a share on the VM machine itself in Unraid.

Let’s assume your mount tag is “test”.

Make sure you create your mount folder within the VM. In our case its “/whatever”. Modify your /etc/fstab file like this to mount the share. Then reboot.

test        /whatever            9p         trans=virtio,version=9p2000.L,_netdev,rw 0 0

Leave a Comment

Network stopped working in Ubuntu 18.04

I had a Ubuntu VM that lost its ability to get an IP. I have no idea why but I finally found the issue and it seems that the interface name changed.

Maybe its a bug : https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/1881832

So I found out that the network interface that was trying to do DHCP did not exist. You’ll find this in /etc/netplan/50-cloud-init.yaml . For some reason, it showed that my interface was enp1s0 but it wasn’t, it was enp3s0. So I modified the file and rebooted the server. Everything is fine now.

Leave a Comment

UnRaid Expanding qcow2 drive, Windows 10

To expand your drive size in UnRaid.

  • Go to VMs
  • Click on the name of the VM you want to expand
  • A new bar will appear, disk devices. Click on the capacity.
  • Set a new size and hit enter.
  • Start the machine, log in, etc.
  • Go to administrative tools, computer management, storage, disk management
  • Right click “disk management” and hit refresh
  • You should now see the additional space
  • Expand your disk
  • Done
Leave a Comment

Duplicati on Ubuntu 16.04 – Headless

Install Mono
https://www.mono-project.com/download/stable/#download-lin-ubuntu

sudo apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
sudo apt install apt-transport-https ca-certificates
echo “deb https://download.mono-project.com/repo/ubuntu stable-xenial main” | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update

sudo apt install mono-devel

Install Duplicati
wget https://updates.duplicati.com/beta/duplicati_2.0.5.1-1_all.deb
apt install ./duplicati_2.0.5.1-1_all.deb

To Test
duplicati-server –webservice-interface=any –webservice-port=8200 –webservice-allowed-hostnames=*

Modify the following file, /etc/default/duplicati, to allow access for any IP
DAEMON_OPTS=”–webservice-interface=any –webservice-port=8200 –webservice-allowed-hostnames=*”

Add the following as /etc/systemd/system/duplicati.service
[Unit]
Description=Duplicati web-server
After=network.target

[Service]
EnvironmentFile=-/etc/default/duplicati
ExecStart=/usr/bin/duplicati-server $DAEMON_OPTS

[Install]
WantedBy=multi-user.target

To enable duplicati
systemctl enable duplicati

Check if the service is now running
systemctl status duplicati.service

If its not, try the following then check the status again
systemctl start duplicati.service

Leave a Comment

Pi-hole static DNS entry

This is more docker related but should be similar to just a plain jane install. You can add your static entries to the /etc/hosts file or you can add it the the dnsmasq.d configuration file.

Create a file under /etc/dnsmasq.d, something like myhosts.conf and add the following. Keep adding entries until your done.

host-record=hostname.com,192.168.1.1

Find your pi-hole dns configuration under /etc/dnsmasq.d. Open the file and add the following line to end of your the configuration file.

conf-file= /etc/dnsmasq.d/ myhosts .conf

Go back to the pi-hole GUI and restart the DNS under settings/system “restart DNS resolver”.

Leave a Comment

UNRAID – Increase Storage for Windows 10 VM

  1. Go to your UNRAID GUI
  2. Click on VMs
  3. Make sure the VM you want to make the modifications to is stopped
  4. Click the Name of the VM
  5. Disk devices should display
  6. Under capacity there should be links to the drive you want to add space too, click that link and enter the new capacity. Hit Enter.
  7. Start the VM
  8. Now reboot the VM (this is necessary for it to find the new space available – not sure why)
  9. Log in to your Windows VM
  10. Open Computer Management
  11. Go to Disk Management
  12. You can now expand the partition to its capacity
Leave a Comment

Unraid 6.7 – Backing up VMs (KVM)

This is short summary of Spaceinvader One’s video and a little more up to date. https://www.youtube.com/watch?v=ntjQphOSPPI

  1. Install Community Applications, if not already installed
    1. Forum with more information –
      https://forums.unraid.net/topic/38582-plug-in-community-applications/
    2. Direct Link to the plugin – https://raw.githubusercontent.com/Squidly271/community.applications/master/plugins/community.applications.plg
  2. Install CA User Scripts from Community Applications
  3. After its installed, click Settings in the top nav bar of UNRAID
  4. Go down to User Utilities, click on User Scripts
  5. Click Add New Script
  6. Call the script whatever you want, i.e. “Backup VMs”. Click ok.
  7. Click the title of the script you just added, you should see a popup.
  8. Edit Description if you’d like
  9. Click Edit Script and paste everything from this page
    https://raw.githubusercontent.com/danioj/unraid-autovmbackup/master/unraid-autovmbackup-0-4.sh to that window
  10. Follow the instructions in the file or in the video to set up the script

I’m using UNRAID 6.7.0, CA User Scripts 2019.06.16

Leave a Comment

EdgeOSv1.10.6 – EdgeMax (EdgeRouter) installing vnstat to record bandwidth usage

I wanted to record how much bandwidth is being used during the month. I found these instructions to install vnstat, a traffic monitor.

  • open a ssh connection to your router
    • the credentials are the same that you use in the web admin portal
  • run the following lines to add the debian repo
    • configure
      set system package repository wheezy components 'main contrib non-free'
      set system package repository wheezy distribution wheezy
      set system package repository wheezy url http://http.us.debian.org/debian
      commit; save; exit
  • update cache
    • sudo apt-get update
  • install vnstat
    • sudo apt-get install -y vnstat vnstati
      • vnstati is a tool that creates images off of the data
  • run vnstat
    • sudo vnstat -i eth0
  • run this line to allow vnstat to start after reboot
    • ln -s /etc/init.d/vnstat /config/scripts/post-config.d/vnstat

More info can be found here:

http://tate.cx/edgeos-data-usage-monitor-using-vnstat
https://community.ubnt.com/t5/EdgeMAX-Feature-Requests/vnStat-vnStati-on-ERL/idi-p/819414

 

Leave a Comment

soyoustart – arm ufw error

If you get this error:

modprobe: ERROR: could not insert 'ip_tables': Exec format error
iptables v1.6.0: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

Run this:
$ wget http://last.public.ovh.hdaas.snap.mirrors.ovh.net/ubuntu/pool/main/l/linux-modules-armada375/linux-modules-armada375_4.5.2-4_armhf.deb
$ dpkg -i linux-modules-armada375_4.5.2-4_armhf.deb

Found on: https://www.lowendtalk.com/discussion/comment/2806769/#Comment_2806769

Leave a Comment

Reset Ubuntu password in Windows 10

I forgot my password to the Ubuntu app in Windows. Here is the way I reset it.

  • close the app if you have it open
  • open a command prompt as administrator, open ubuntu has root
    • ubuntu config –default-user root
  • you’ll be logged in as root, now change the password for your user name
    • passwd username
  • exit ubuntu
  • reset ubuntu back to your username
    • ubuntu config –default-user username
  • exit ubuntu
  • re-launch ubuntu

Got the steps here: https://askubuntu.com/questions/772050/reset-the-password-in-linux-bash-in-windows

Leave a Comment

CentOS 6 – Change System Language

I recently bought a server whose language was set to something other than English. Here is the way to change the language.

Run the following commands

 nano /etc/sysconfig/i18n

and replace with the following

LANG="en_US.UTF-8"
SYSFONT="latarcyrheb-sun16"

Log out and log back in. You should see the change.

Leave a Comment

How To Determine Your Linux Version

To determine what version of linux you are running enter the following command.

CentOS / RedHat

cat /etc/fedora-release

Debian / Ubuntu

cat /etc/issue

or

lsb_release -a

Run the following command to determine if you are running a 32-bit or 64-bit version.

# uname -a
Leave a Comment

X2Go – Hostkey for server changed.

I installed X2Go yesterday on a Ubuntu server of mine. Of course I didn’t get my configuration right the first time 🙂 but X2Go was working 😉 . Since it was a VPS I just re-installed from scratch. However, I wasn’t able to get my X2Go windows client to work after the re-install. I received something similar to the error below.

Hostkey for server changed. The host key is now xx xx xx xx
The connection is being closed now.

After doing some Google searches I finally found something that kind of helped. They recommend deleting the “.ssh” directory but that didn’t work for me. I had to delete the “known_hosts” file under the directory “C:\Users\XXXX\ssh”, XXXX of course being your username.

You can also edit the file and just delete the line that contains the IP address your trying to connect to.

I am running Windows 7 Professional.

Leave a Comment

Registering your license for VMware ESXi 5.0

I had the hardest time finding the place to enter my license.

  1. Go to the vSphere client
  2. Click on the host
  3. Click the “Configuration” tab in the window to the right
  4. Click the “Licensed Features” link underneath “Software”, 2nd box on the 5.0 client.
  5. Click on edit in the right corner of the pane
  6. Enter your license key
Leave a Comment