Quick Tips
How to Use ddclient to Update Dynamic DNS Settings on Google Domains
If you are running a web server, VPN, or any other device at home which you want to access over the internet using a domain or subdomain name, you either need a static IP address (which many ISPs do not provide or charge extra for) or you will need a Dynamic DNS setup that changes your DNS records every time your IP address changes.
How to Mount a Windows Network Drive On Boot as Systemd Service on Ubuntu
Assuming you want to mount 192.168.1.9/files to /home/username/files, create a file matching the name of your local directory where you want to mount to as below: Its content should be the following with the remote (assuming you want 755 file permissions): Then create another file with the same name but with automount extension: Add this…
Mounting a Network Drive (SMB) on Ubuntu
You can mount a shared folder on Windows to a Linux machine with smbclient: Assuming the documents folder is shared with Windows user james on the Windows machine at 192.168.1.5, it can be mounted on the filesFromWindows directory of user ubuntu’s home directory: If you get an error saying “mount: /home/ubuntu/filesFromWindows/: cannot mount //192.168.1.5/documents read-only.”,…
How to Run GUI Programs on Startup on Raspberry Pi
Create a new .desktop file in autostart directory: For running a python script on startup, type and save this into the file:
How to Solve “add-apt-repository: command not found” Problem
The add-apt-repository command is part of package software-properties-common so we need to install this package:
How to Solve the “Unable to connect to VNC Server using your chosen security setting.” Error on VNC Connection Attempt
When you are trying to connect to Gnome’s screen sharing feature with a VNC client, if you get this error message, disable the encrypted connection setting with: Note: VNC is not a secure connection, even with encryption, unless used with SSH tunnelling! Encryption only encrypts the passwords sent, it does not encrypt the traffic (source).
Ubuntu 20.04 LTS Can’t Enable Screen Sharing
This happens if the internet connection is shown as “unmanaged“. So you need to edit this file to make it “managed“: Change managed=false to true. Then restart the network-manager: Make sure network is managed by network-manager: Apply changes Then reboot.
How to Install Ubuntu Desktop Components (and to check if you have them)
When you install Ubuntu with Raspberry PI Imager, the installed image doesn’t come with Ubuntu desktop components. You can check if your Ubuntu installation has them by this command: If you see the following, you don’t have them: You can install them by:
How to Remote-Desktop into Raspberry Pi with VNC
Enable VNC on Raspberry Pi Raspberry Pi OS comes with a VNC server installed. To enable it: 1. Open configurations: 2. Select Interfacing Options, 3. Select VNC, 4. Confirm enabling VNC, click OK, click Finish. Connect with VNC Viewer Download and install VNC Viewer and follow the instructions. It is free for personal use.
How to Enable WiFi If You Get “Wi-Fi is currently blocked by rfkill.” Message on Boot.
I have set up a Raspberry Pi 4 without a monitor using this guide, but it wasn’t connecting to my wifi. When I connected it with ethernet and ssh’d into into it I saw this message on boot: “Wi-Fi is currently blocked by rfkill.”. Apparently, rfkill is a “tool for enabling and disabling wireless devices”….