Skip to content

Commit f8182d3

Browse files
committed
A few minor updates
1 parent e9bc8df commit f8182d3

File tree

2 files changed

+24
-8
lines changed

2 files changed

+24
-8
lines changed

BaseInstall.md

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,16 @@ Basic Setup
9696
3. `sudo apt update && sudo apt full-upgrade -y && sudo apt autoremove -y && echo Done`
9797
(reboot afterward is usually necessary)
9898

99-
4. `sudo apt install --no-install-recommends rsyslog aptitude ufw vim git screen moreutils minicom ntpdate socat lsof tshark dnsutils elinks lftp jq zip tofrodos proxychains4 build-essential cpanminus liblocal-lib-perl perl-doc python3-pip python3-dev`
99+
4. `sudo apt install --no-install-recommends aptitude ufw vim git screen moreutils minicom ntpdate socat lsof tshark dnsutils elinks lftp jq zip tofrodos proxychains4 build-essential cpanminus liblocal-lib-perl perl-doc python3-pip python3-dev`
100100
- These are my preferred tools on top of the Lite edition, you may of course modify this list as you like
101101
- Note: The installation of `tshark` will ask whether non-superusers should be able to capture packets, I usually say yes
102102
- Note: The following packages were already installed on the Lite edition last time I checked: `zip build-essential`
103103
(but it doesn't hurt to list them above anyway)
104-
- The installation of `rsyslog` is not strictly necessary, but newer versions of Debian/Raspbian use `journalctl`
105-
and `/var/log/syslog` doesn't exist by default anymore; this installation brings it back.
106104

107105
5. Misc.
108106

107+
- Newer versions of Debian/Raspbian use `journalctl` and `/var/log/syslog` doesn't exist by default anymore,
108+
to bring it back: `sudo apt install rsyslog`
109109
- Edit `/etc/ssh/sshd_config` and set `PermitRootLogin no`
110110
- `sudo adduser $USER wireshark`
111111
- `perl -Mlocal::lib >>~/.profile`
@@ -255,15 +255,18 @@ Basic Setup
255255
For example, over a remote connection, `sudo patch -r- -d/ -p0` and then paste the patch into the terminal (Ctrl-D after).
256256
Note the patch needs to be reapplied when `raspi-config` gets updated!
257257

258-
5. Later, after completing the installation, you can enable the "Overlay File System"
258+
5. To integrate information on whether the overlay filesystem is enabled or not into
259+
your prompt, see `overlaycheck.sh` in this repository.
260+
261+
6. Later, after completing the installation, you can enable the "Overlay File System"
259262
(and optionally the "write-protected boot partition")
260263
in the "Performance Options" of `raspi-config`. Remember that if making changes
261264
that need to persist across reboots, you'll need to disable and re-enable this
262265
option, rebooting each time.
263266

264267
This can also be done from the command line:
265268

266-
- To enable, `for x in enable_overlayfs enable_bootro; do sudo raspi-config nonint $x; done; sudo reboot`
269+
- To enable, `for x in enable_overlayfs enable_bootro; do sudo raspi-config nonint $x; done && sudo reboot`
267270
(alternative: `sudo raspi-config nonint do_overlayfs 0`)
268271

269272
- To disable, `sudo raspi-config nonint disable_overlayfs && sudo reboot`
@@ -277,9 +280,6 @@ Basic Setup
277280
`for x in get_overlay_conf get_bootro_conf get_overlay_now get_bootro_now; do echo -n "$x="; sudo raspi-config nonint $x; done`
278281
where 1=false and 0=true (*NIX process exit codes)
279282

280-
6. To integrate information on whether the overlay filesystem is enabled or not into
281-
your prompt, see `overlaycheck.sh` in this repository.
282-
283283
9. **Miscellaneous**
284284

285285
- To add a Wi-Fi network later, either use `sudo nmtui`, or run `nmcli --ask device wifi connect <SSID>`
@@ -313,6 +313,19 @@ Basic Setup
313313
- Making a backup of an SD card from another system (where `/dev/sdb` is the SD card):
314314
`sudo dd if=/dev/sdb | gzip -9 >backup.img.gz`
315315

316+
- Though the following is a **security risk**, it may be acceptable in certain limited circumstances,
317+
such as devices not connected to a network. To prevent being prompted for a password when doing
318+
administrative tasks (esp. in the GUI):
319+
320+
cat <<'EOF' | sudo tee /etc/polkit-1/rules.d/49-sudo-nopasswd.rules
321+
polkit.addRule(function(action, subject) {
322+
if (subject.isInGroup("sudo")) {
323+
return polkit.Result.YES;
324+
}
325+
});
326+
EOF
327+
328+
316329

317330
Author, Copyright, and License
318331
------------------------------

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ Raspberry Pi Notes
33

44
These are my notes on setting up Raspberry Pis.
55

6+
The best place to start is probably
7+
[my notes on a base installation of Raspberry Pi OS](./BaseInstall.md).
8+
69
Author, Copyright, and License
710
------------------------------
811

0 commit comments

Comments
 (0)