<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.7west.org/index.php?action=history&amp;feed=atom&amp;title=Raspberry_Pi</id>
	<title>Raspberry Pi - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.7west.org/index.php?action=history&amp;feed=atom&amp;title=Raspberry_Pi"/>
	<link rel="alternate" type="text/html" href="https://wiki.7west.org/index.php?title=Raspberry_Pi&amp;action=history"/>
	<updated>2026-05-06T07:57:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://wiki.7west.org/index.php?title=Raspberry_Pi&amp;diff=6&amp;oldid=prev</id>
		<title>Animationb: Created page with &quot;This is a page full of first-time set up instructions and how to&#039;s for the Raspberry Pi.  == First-Time Setup == ==== Headless Operations ==== Place a file titled &#039;&#039;&#039;ssh&#039;&#039;&#039; in the &quot;boot&quot; directory, when the SD Card is plugged in to a desktop computer.  Place a file titled &#039;&#039;&#039;wpa_supplicant.conf&#039;&#039;&#039; in the same &quot;boot&quot; directory with the following code:  &lt;nowiki&gt; country=US ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1  network={  ssid=&quot;&lt;SSID&gt;&quot;  sc...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.7west.org/index.php?title=Raspberry_Pi&amp;diff=6&amp;oldid=prev"/>
		<updated>2025-06-27T15:35:09Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This is a page full of first-time set up instructions and how to&amp;#039;s for the Raspberry Pi.  == First-Time Setup == ==== Headless Operations ==== Place a file titled &amp;#039;&amp;#039;&amp;#039;ssh&amp;#039;&amp;#039;&amp;#039; in the &amp;quot;boot&amp;quot; directory, when the SD Card is plugged in to a desktop computer.  Place a file titled &amp;#039;&amp;#039;&amp;#039;wpa_supplicant.conf&amp;#039;&amp;#039;&amp;#039; in the same &amp;quot;boot&amp;quot; directory with the following code:  &amp;lt;nowiki&amp;gt; country=US ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1  network={  ssid=&amp;quot;&amp;lt;SSID&amp;gt;&amp;quot;  sc...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This is a page full of first-time set up instructions and how to&amp;#039;s for the Raspberry Pi.&lt;br /&gt;
&lt;br /&gt;
== First-Time Setup ==&lt;br /&gt;
==== Headless Operations ====&lt;br /&gt;
Place a file titled &amp;#039;&amp;#039;&amp;#039;ssh&amp;#039;&amp;#039;&amp;#039; in the &amp;quot;boot&amp;quot; directory, when the SD Card is plugged in to a desktop computer.&lt;br /&gt;
&lt;br /&gt;
Place a file titled &amp;#039;&amp;#039;&amp;#039;wpa_supplicant.conf&amp;#039;&amp;#039;&amp;#039; in the same &amp;quot;boot&amp;quot; directory with the following code:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
country=US&lt;br /&gt;
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev&lt;br /&gt;
update_config=1&lt;br /&gt;
&lt;br /&gt;
network={&lt;br /&gt;
 ssid=&amp;quot;&amp;lt;SSID&amp;gt;&amp;quot;&lt;br /&gt;
 scan_ssid=1&lt;br /&gt;
 psk=&amp;quot;&amp;lt;PASSWORD&amp;gt;&amp;quot;&lt;br /&gt;
 key_mgmt=WPA-PSK&lt;br /&gt;
}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These steps will allow the Raspberry Pi to be reachable via ssh on the first boot. Use Window&amp;#039;s PuTTY or Linux&amp;#039;s ssh to remote in. Use your router&amp;#039;s webpage to find the IP Address of the newly minted Raspberry Pi.&lt;br /&gt;
If you do not have access, try ssh&amp;#039;ing to the hostname &amp;quot;raspberrypi&amp;quot;. On the first boot, the password will be the same as the hostname.&lt;br /&gt;
&lt;br /&gt;
==== First Time Essential Commands ====&lt;br /&gt;
Enter &amp;#039;&amp;#039;&amp;#039;passwd&amp;#039;&amp;#039;&amp;#039; to change the password. Enter the following to always require password when using &amp;#039;&amp;#039;&amp;#039;sudo&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;sudo visudo /etc/sudoers.d/010_pi-nopasswd&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Then &amp;#039;&amp;#039;&amp;#039;NOPASSWD&amp;#039;&amp;#039;&amp;#039; to &amp;#039;&amp;#039;&amp;#039;PASSWD&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
Enter &amp;#039;&amp;#039;&amp;#039;sudo raspi-config&amp;#039;&amp;#039;&amp;#039; to edit several key Raspberry Pi configurations:&lt;br /&gt;
* Change the hostname&lt;br /&gt;
* Reduce GPU memory (optional)&lt;br /&gt;
* Expand the file system&lt;br /&gt;
* (Optional) Boot / Auto Login&lt;br /&gt;
&lt;br /&gt;
Lastly run &amp;#039;&amp;#039;&amp;#039;sudo apt-get update&amp;#039;&amp;#039;&amp;#039; then &amp;#039;&amp;#039;&amp;#039;sudo apt-get upgrade&amp;#039;&amp;#039;&amp;#039; to update all the software. This will take a while.&lt;br /&gt;
&lt;br /&gt;
==== SD Card Longevity====&lt;br /&gt;
SD Cards are not meant to be written to so many times (i.e. log files). To ensure the SD Card lasts as long as possible, we will do two things.&lt;br /&gt;
&lt;br /&gt;
This will disable the swap file setup on the SD Card by default&amp;lt;ref&amp;gt;[https://raspberrypi.stackexchange.com/questions/169/how-can-i-extend-the-life-of-my-sd-card#:~:text=Leave%20plenty%20of%20free%20space,larger%20area%20of%20free%20space. Stack Exchange: Extending SD Card lifespan]&amp;lt;/ref&amp;gt;:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;sudo swapoff --all&lt;br /&gt;
sudo apt-get remove dphys-swapfile&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will install log2ram&amp;lt;ref&amp;gt;[https://levelup.gitconnected.com/extend-the-lifespan-of-your-raspberry-pis-sd-card-with-log2ram-5929bf3316f2 Installing log2ram]&amp;lt;/ref&amp;gt;, which tries to delegate all log file writing to RAM:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;sudo apt-get install git&lt;br /&gt;
git clone https://github.com/azlux/log2ram &amp;amp;&amp;amp; cd log2ram&lt;br /&gt;
chmod +x install.sh &amp;amp;&amp;amp; sudo ./install.sh&lt;br /&gt;
cd .. &amp;amp;&amp;amp; rm -r log2ram&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How to&amp;#039;s ==&lt;br /&gt;
====Aliases====&lt;br /&gt;
Editing &amp;#039;&amp;#039;&amp;#039;.bashrc&amp;#039;&amp;#039;&amp;#039; (located in the pi home directory) will let you add aliases. At the bottom of the file add the following:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
alias &amp;lt;shortcut&amp;gt;=&amp;quot;&amp;lt;what you want the shortcut to do&amp;gt;&amp;quot;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Make sure there is a carriage return after the last line in the file.&lt;br /&gt;
&lt;br /&gt;
====Uncomplicated Firewall====&lt;br /&gt;
This lets you set up a firewall and add exceptions easily. Enter the following into the terminal&amp;lt;ref&amp;gt;Rasperry Pi Networking Cookbook, by Rick Golden&amp;lt;/ref&amp;gt;:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;sudo apt-get install ufw&lt;br /&gt;
sudo ufw allow ssh&lt;br /&gt;
sudo ufw enable&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Now you can only reach the Raspberry Pi via SSH. You can enter &amp;#039;&amp;#039;&amp;#039;sudo ufw app list&amp;#039;&amp;#039;&amp;#039; to see other services to add exceptions for. (www = http and https)&lt;br /&gt;
&lt;br /&gt;
====NTFS External HDD====&lt;br /&gt;
If you are headless and mounting an external drive with the NTFS file system, you will need to do the following. External drives will probably not mount if you are headless. First use &amp;#039;&amp;#039;&amp;#039;fdisk -l&amp;#039;&amp;#039;&amp;#039; to find the sda of the external drive. Then in &amp;#039;&amp;#039;&amp;#039;/etc/rc.local&amp;#039;&amp;#039;&amp;#039; add the following line:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
sudo mount /dev/sda# -t ntfs-3g -o permissions /mount/point/folder&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Now you can see the drive on reboots and can edit permissions with &amp;#039;&amp;#039;&amp;#039;chown&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;chmod&amp;#039;&amp;#039;&amp;#039;. By default, the drive is owned by root. You can change this with:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
sudo chown -R USER /mount/point/folder&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Modify permissions as you please with &amp;#039;&amp;#039;&amp;#039;chmod&amp;#039;&amp;#039;&amp;#039;. &amp;#039;&amp;#039;&amp;#039;700&amp;#039;&amp;#039;&amp;#039; is recommended.&lt;br /&gt;
&lt;br /&gt;
====Samba Server: Network File Server====&lt;br /&gt;
This will set up a shared folder on the Raspberry Pi that will be editable from Windows computers on the same network. Enter the following code on the Raspberry Pi&amp;lt;ref&amp;gt;[https://www.raspberrypi.org/documentation/remote-access/samba.md Official Raspberry Pi Tutorial for Samba]&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;[https://raspberrypihq.com/how-to-share-a-folder-with-a-windows-computer-from-a-raspberry-pi/ Share a folder with a Windows Computer]&amp;lt;/ref&amp;gt;:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;sudo apt-get install samba samba-common-bin smbclient cifs-utils&lt;br /&gt;
sudo smbpasswd -a pi&lt;br /&gt;
mkdir ~/shared&lt;br /&gt;
sudo nano /etc/samba/smb.conf&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Inside the config file, ensure there is a line &amp;#039;&amp;#039;&amp;#039;workgroup = WORKGROUP&amp;#039;&amp;#039;&amp;#039; and add the following at the end:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[share]&lt;br /&gt;
     path = /home/pi/shared&lt;br /&gt;
     browseable=yes&lt;br /&gt;
     writeable=yes&lt;br /&gt;
     only guest=no&lt;br /&gt;
     create mask=0777&lt;br /&gt;
     directory mask=0777&lt;br /&gt;
     public=no&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Finally, in Windows File Explorer, right click on &amp;quot;This PC&amp;quot; and select &amp;quot;Map Network Drive...&amp;quot;. Chose a drive letter and set Folder to &amp;#039;&amp;#039;&amp;#039;\\&amp;lt;hostname&amp;gt;\share&amp;#039;&amp;#039;&amp;#039;. Ensure &amp;quot;Connect using different credentials&amp;quot; is checked. Click finish and enter the credentials for user &amp;#039;&amp;#039;&amp;#039;pi&amp;#039;&amp;#039;&amp;#039; twice.&lt;br /&gt;
&lt;br /&gt;
If you&amp;#039;d like to setup an external HDD, change the &amp;#039;&amp;#039;&amp;#039;[share]&amp;#039;&amp;#039;&amp;#039; to another name and the path to the drive: &amp;#039;&amp;#039;&amp;#039;/media/pi/&amp;lt;Drive Name&amp;gt;&amp;#039;&amp;#039;&amp;#039;. This is better for lots of storage as an HDD has much better endurance than an SD Card.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Note: sometimes you get lucky and this folder appears in &amp;quot;Network&amp;quot; in File Explorer without having to map the drive, but it&amp;#039;s been inconsistent.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
====Disabling WiFi====&lt;br /&gt;
Used if you have the Raspberry Pi only used for its Ethernet connection and WiFi is useless. In the file &amp;#039;&amp;#039;&amp;#039;/boot/config.txt&amp;#039;&amp;#039;&amp;#039; add the following line&amp;lt;ref&amp;gt;[https://raspberrypi.stackexchange.com/questions/43720/disable-wifi-wlan0-on-pi-3 Stack Exchange: disabling Wifi]&amp;lt;/ref&amp;gt;:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;dtoverlay=disable-wifi&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Flask Python Webserver: Run Python from a website====&lt;br /&gt;
Haven&amp;#039;t done this yet, so figure it out: [https://www.hackster.io/mjrobot/python-webserver-with-flask-and-raspberry-pi-41b5fc  Flask]&lt;br /&gt;
&lt;br /&gt;
====Raspberry Pi Watchdog====&lt;br /&gt;
If you need the Raspberry Pi to run nonstop, you can set up the Watchdog Timer to trigger a reboot if the system hangs. Enter the following in the terminal &amp;lt;ref&amp;gt;[https://diode.io/raspberry%20pi/running-forever-with-the-raspberry-pi-hardware-watchdog-20202/ Setting up Watchdog on Raspberry Pi]&amp;lt;/ref&amp;gt;:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;sudo su&lt;br /&gt;
echo &amp;#039;dtparam=watchdog=on&amp;#039; &amp;gt;&amp;gt; /boot/config.txt&lt;br /&gt;
reboot&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get install watchdog&lt;br /&gt;
sudo su&lt;br /&gt;
echo &amp;#039;watchdog-device = /dev/watchdog&amp;#039; &amp;gt;&amp;gt; /etc/watchdog.conf&lt;br /&gt;
echo &amp;#039;watchdog-timeout = 15&amp;#039; &amp;gt;&amp;gt; /etc/watchdog.conf&lt;br /&gt;
echo &amp;#039;max-load-1 = 24&amp;#039; &amp;gt;&amp;gt; /etc/watchdog.conf&lt;br /&gt;
sudo systemctl enable watchdog&lt;br /&gt;
sudo systemctl start watchdog&lt;br /&gt;
sudo systemctl status watchdog&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
It will start itself at boot as well.&lt;br /&gt;
&lt;br /&gt;
====Remote Desktop====&lt;br /&gt;
This will allow you to use the GUI Desktop of the Raspberry Pi remotely. Install xrdp:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;sudo apt-get install xrdp&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
From Windows, launch Remote Desktop Connection and connect to the IP Address or hostname of the Raspberry Pi. [https://unix.stackexchange.com/questions/523152/xrdp-disconnects-immediately-after-connection-from-windows10-centos-to-centos7 Maybe?]&lt;br /&gt;
&lt;br /&gt;
====rclone and Google Drive====&lt;br /&gt;
This will let you backup folders to Google Drive. [https://rclone.org/install/ rclone Install] offers a simple walkthrough and can help with any questions. Enter the following in the terminal:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;curl https://rclone.org/install.sh | sudo bash&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Use rclone&amp;#039;s [https://rclone.org/drive/ Google Drive specific setup page] to install a new remote. Be sure to enter a Client ID and Client Secret; setting it up is shown [https://rclone.org/drive/#making-your-own-client-id here]. If your name is Adriano, you&amp;#039;ve already set most of that up.&lt;br /&gt;
&lt;br /&gt;
Two commands are the most important: &amp;#039;&amp;#039;&amp;#039;copy&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;sync&amp;#039;&amp;#039;&amp;#039;. &amp;#039;&amp;#039;&amp;#039;Copy&amp;#039;&amp;#039;&amp;#039; moves all files from the source to the destination, &amp;#039;&amp;#039;&amp;#039;sync&amp;#039;&amp;#039;&amp;#039; forces the destination to look like the source (&amp;lt;u&amp;gt;including deleting files&amp;lt;/u&amp;gt;). I recommend &amp;#039;&amp;#039;&amp;#039;sync&amp;#039;&amp;#039;&amp;#039;, just because I don&amp;#039;t like clutter. Create a shell script &amp;#039;&amp;#039;&amp;#039;rclone_cron.sh&amp;#039;&amp;#039;&amp;#039; somewhere:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#!/bin/bash&lt;br /&gt;
if pidof -o %PPID -x “rclone_cron.sh”; then&lt;br /&gt;
exit 1&lt;br /&gt;
fi&lt;br /&gt;
rclone sync -v -u /media/pi/Elements/gdrive rgdrive:sync&lt;br /&gt;
rclone sync -v -u rgdrive:sync /media/pi/Elements/gdrive&lt;br /&gt;
exit&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
The first part makes sure the &amp;#039;&amp;#039;syncing&amp;#039;&amp;#039; isn&amp;#039;t already running. The script syncs &amp;quot;twice&amp;quot;, once to make the Google Drive the same as the Network Drive (ignoring more recent files). The second sync can bring more recent files from Google Drive to the Network Drive. Be sure to modify the script to be executable (&amp;#039;&amp;#039;&amp;#039;chmod a+x&amp;#039;&amp;#039;&amp;#039;) Place this script in crontab (&amp;#039;&amp;#039;&amp;#039;crontab -e&amp;#039;&amp;#039;&amp;#039;):&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;0 */4 * * * &amp;lt;path&amp;gt;/rclone_cron.sh &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Now it will sync every 4 hours and log nothing. If you need an immediate sync, just run &amp;#039;&amp;#039;&amp;#039;rclone_cron.sh&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
====Setting up MediaWiki====&lt;br /&gt;
Kinda moot because it&amp;#039;s set up here, and if this crashes and I have to set it up again, I can&amp;#039;t read this. However, I will back this page up somewhere. Enter the following into the terminal&amp;lt;ref&amp;gt;[https://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Debian_or_Ubuntu MediaWiki&amp;#039;s Guide on Raspberry Pi installation]&amp;lt;/ref&amp;gt;:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;sudo apt-get install -y mediawiki&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
This will take a while. Once it is done, we must setup the &amp;quot;SQL Database&amp;quot; (except the package is called mariadb on Raspberry Pi):&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;sudo mariadb -u root -p&lt;br /&gt;
CREATE USER &amp;#039;wikiUser&amp;#039;@&amp;#039;localhost&amp;#039; IDENTIFIED BY &amp;#039;THISpasswordSHOULDbeCHANGED&amp;#039;;&lt;br /&gt;
quit;&lt;br /&gt;
sudo mariadb -u root -p&lt;br /&gt;
CREATE DATABASE my_wiki;&lt;br /&gt;
use my_wiki;&lt;br /&gt;
GRANT ALL ON my_wiki.* TO &amp;#039;wikiUser&amp;#039;@&amp;#039;localhost&amp;#039;;&lt;br /&gt;
quit;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;That password set for wikiUser will be stored in plaintext, so don&amp;#039;t pick a good one&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
No in a browser go to &amp;#039;&amp;#039;&amp;#039;&amp;lt;hostname&amp;gt;/mediawiki&amp;#039;&amp;#039;&amp;#039;. Set up, mostly keeping defaults. Be sure to use the wikiUser and not root for the database user.&lt;br /&gt;
&lt;br /&gt;
Move the &amp;#039;&amp;#039;&amp;#039;LocalSettings.php&amp;#039;&amp;#039;&amp;#039; file to the instructed directory and edit it to change what you want to change. &lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;IMPORTANT:&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; change &amp;#039;&amp;#039;&amp;#039;$wgMainCacheType = CACHE_ACCEL&amp;#039;&amp;#039;&amp;#039; to &amp;#039;&amp;#039;&amp;#039;$wgMainCacheType = CACHE_ANYTHING&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;/mediawiki&amp;#039;&amp;#039;&amp;#039; used as the main directory for the Wiki, is at &amp;#039;&amp;#039;&amp;#039;/var/lib/mediawiki&amp;#039;&amp;#039;&amp;#039;. It&amp;#039;s all protected, so I recommend running &amp;#039;&amp;#039;&amp;#039;sudo su&amp;#039;&amp;#039;&amp;#039; before editing any of it.&lt;br /&gt;
&lt;br /&gt;
To setup TLS/HTTPS, visit [https://certbot.eff.org/ Certbot] and be sure to forward port 443.&lt;br /&gt;
&lt;br /&gt;
====Setting up a Dynamic DNS====&lt;br /&gt;
I use a Google Domain for this website, so I have to set up a Dynamic DNS in order for the domain to redirect to the Raspberry Pi. First we have to install ddclient&amp;lt;ref&amp;gt;[https://samhobbs.co.uk/2015/01/dynamic-dns-ddclient-raspberry-pi-and-ubuntu ddclient on Raspberry Pi]&amp;lt;/ref&amp;gt;:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;sudo apt-get install ddclient&lt;br /&gt;
sudo nano /etc/ddclient.conf&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Now modify the .conf file you just opened. &amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; during the install process ddclient probably prompted you to enter all this info already, but modify this .conf file to show this&amp;lt;ref&amp;gt;[https://support.google.com/domains/answer/6147083?hl=en Dynamic DNS with Google Domains]&amp;lt;/ref&amp;gt;:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;protocol=dyndns2&lt;br /&gt;
use=web&lt;br /&gt;
server=domains.google.com&lt;br /&gt;
ssl=yes&lt;br /&gt;
login=&amp;lt;username&amp;gt;&lt;br /&gt;
password=&amp;#039;&amp;lt;password&amp;gt;&amp;#039;&lt;br /&gt;
7west.org&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Use the &amp;#039; around the password. You get the username and password from the DNS settings of your Google Domain.&lt;br /&gt;
&lt;br /&gt;
ddclient will now update your IP Address every 5 minutes.&lt;br /&gt;
&lt;br /&gt;
====Git Remote Server====&lt;br /&gt;
On the server, cd to the &amp;#039;&amp;#039;&amp;#039;parent directory&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;mkdir RepoName&lt;br /&gt;
cd RepoName&lt;br /&gt;
git init --bare&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
Now on the machine with the code and local git repository:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;git remote add RemoteName ssh://USER@DOMAIN.com:PORT/file/path/to/RepoName&lt;br /&gt;
git push -u RemoteName main&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
If it fails, it might be your known_hosts file. Look there and delete the applicable row. You also will have to log into USER@DOMAIN.com every time you push.&lt;br /&gt;
&lt;br /&gt;
To clone this remote repo, cd to the desired &amp;#039;&amp;#039;&amp;#039;parent directory&amp;#039;&amp;#039;&amp;#039; and enter the following on the destination machine:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;git clone ssh://USER@DOMAIN.com:PORT/file/path/to/RepoName&lt;br /&gt;
git checkout main&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Dwarf Fortress Server====&lt;br /&gt;
This is pretty silly to have here, but here it is. Download and install Dwarf Fortress as the [https://dwarffortresswiki.org/index.php/DF2014:Installation wiki] says. Get the dependancies as [https://www.reddit.com/r/dwarffortress/comments/f0rcn6/libstdcso6_cxxabi_138_not_found/ needed].&lt;br /&gt;
&lt;br /&gt;
Modify init.txt in df_linux/data/init. Turn off sound and change PRINT_MODE to TEXT. Ensure your terminal is set to &amp;#039;&amp;#039;&amp;#039;Use bright colors for bold text&amp;#039;&amp;#039;&amp;#039; (this is in Preferences for the terminal). Then run the following:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;sudo apt install xvfb&lt;br /&gt;
Xvfb :1 -screen 0 1024x768x16 &amp;amp; &lt;br /&gt;
export DISPLAY=:1&lt;br /&gt;
/path/to/df&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You might also want to change some key bindings, like the Plus key.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Animationb</name></author>
	</entry>
</feed>