domain.com {
basicauth / {
test hashpassword_generated_by_caddy-hash-password
}
root * /www
file_server browse
}
All the junk I have in my head
domain.com {
basicauth / {
test hashpassword_generated_by_caddy-hash-password
}
root * /www
file_server browse
}
run the following
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql -p
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
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”.
This is short summary of Spaceinvader One’s video and a little more up to date. https://www.youtube.com/watch?v=ntjQphOSPPI
I’m using UNRAID 6.7.0, CA User Scripts 2019.06.16
You can find the location of a share among your disks by using the following command.
ls /mnt/disk*/Backup
sudo df -h show system image storage
delete system image
https://help.ubnt.com/hc/en-us/articles/205146110-EdgeRouter-Upgrading-EdgeOS-firmware
I wanted to record how much bandwidth is being used during the month. I found these instructions to install vnstat, a traffic monitor.
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
sudo vnstat -i eth0
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
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
I forgot my password to the Ubuntu app in Windows. Here is the way I reset it.
Got the steps here: https://askubuntu.com/questions/772050/reset-the-password-in-linux-bash-in-windows
https://www.digitalocean.com/community/articles/how-to-protect-ssh-with-fail2ban-on-centos-6
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.
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
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.
I had the hardest time finding the place to enter my license.
I just started playing around with VMware ESXi 5 which appears to be free! Yey! 🙂
You can download it at the VMware website, http://www.vmware.com/products/vsphere-hypervisor/overview.html. Don’t forget to apply for the license which is free, otherwise you get a 60-day trial.
The reason I choose VMware ESXi was because I’m pretty familiar with VMware. I’ve had their workstation as long as I can remember. I actually had a license for both Linux and windows at one point. And umm… because that’s really the only one I could use on my server, hardware restraints. 🙂
There are a few other free virtualization software packages.