JSelec: a technical notes blog.
(Click on title of post to read the complete document)
-
Daily backup to external hdd
Goal Domoticz has a built in feature to automatically create hourly, daily and monthly database backups in the /home/pi/domoticz/backups/ directory. You just need to tick the Enable Automatic Backup option in System setup. However in the case the SD-card crashes and is no longer accessible, a lot of work still could be lost. This page…
-
OpenSSH server install Ubuntu
1. To install it, open terminal (Ctrl+Alt+T) or log in Ubuntu server and run command: sudo apt-get install openssh-server 2. After that, you should have SSH service enabled in your system, you may check its status by running command: sudo service ssh status 3. You may change some settings (e.g., the listening port, and root…
-
Redirect domain to directory in other domain.
# Redirect all pages from olddomain.com # to newdomain.com Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^www.olddomain.com$ [OR] RewriteCond %{HTTP_HOST} ^olddomain.com$ RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]
-
Mount Windows Shares Permanently
CIFS installation sudo apt-get install cifs-utils Mounting unprotected (guest) network folders First, let’s create the mount directory. You will need a separate directory for each mount. sudo mkdir /media/windowsshare Then edit your /etc/fstab file (with root privileges) to add this line:
-
Traccar in docker
Run the following command: docker run -d –privileged -p 8082:8082 -p 5005:5013 -p 5055:5055 magnaz/traccar Webserver adres: 808 RF-V16 tracker: Send by tracker on port 5013, received by Traccar on port 5005. (needed to use the right protocol) Traccar Android client: 5055
-
Pi-Hole DNS AdBlocker
Install Run the following script: curl -sSL https://install.pi-hole.net | bash Update Just run the following script: pihole -up
-
Running Ubuntu full-screen in Virtualbox
Install Ubuntu in Virtualbox. It’s not directly possible to run Native full-screen resolution. Follow the next steps to solve this problem: Select from ‘Devices’ in the titlebar the option ‘Guest additions’. Reboot the virtual machine. Press the host-key (by default right-CTRL) and F simultainously. The screen turns full-screen Ubuntu in native resolution.
-
Traccar installation on Raspberry Pi
Download and install Traccar Download Traccar wget https://github.com/tananaev/traccar/releases/download/v3.4/traccar-linux-arm-3.4.zip Unzip downloadfile unzip traccar-linux-arm-3.4.zip Remove zipfile rm traccar-linux-arm-3.4.zip Run install script sudo ./traccar.run Start Traccar Server sudo java -jar /opt/traccar/tracker-server.jar Optional configuration Make autostart on boot Start crontab crontab -e Add following line to the bottom of the file @reboot /usr/bin/nohup /usr/bin/java -jar /opt/traccar/tracker-server.jar Exit crontab and…
-
SSH port change
Ubuntu / Debian Open the SSH configuration file with your favorite text editor and find the lines that specifies the SSH port. nano /etc/ssh/sshd_config Default value: #Port 22 Uncomment the relevant line by removing the # sign and change the default port 22 to the one that you want to use. In this article we…
Got any recommendations?