Skip to content

Commit 2cc93aa

Browse files
author
Patrick M
committed
fix: update doc
1 parent 859fdf0 commit 2cc93aa

File tree

1 file changed

+5
-23
lines changed

1 file changed

+5
-23
lines changed

_posts/2022-12-18-debian-lxc-setup.md

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ A list of the first commands I run on a new Debian LXC to homogenize and secure
1313
## Utilities
1414

1515
```bash
16-
apt update && apt upgrade -y
17-
```
18-
19-
```bash
20-
apt install curl nano openssl rsync fail2ban unattended-upgrades apt-listchanges lm-sensors command-not-found sudo -y
16+
apt update && apt upgrade -y && apt install curl nano openssl rsync fail2ban unattended-upgrades apt-listchanges lm-sensors command-not-found sudo -y
2117
```
2218

2319
## Don't use root
@@ -32,16 +28,15 @@ passwd patrick
3228

3329
## Make the CLI more fun
3430

35-
```bash
36-
nano /etc/bash.bashrc
37-
```
38-
3931
Add the following lines to [add color to bash](https://wiki.debian.org/BashColors):
4032

41-
```conf
33+
```bash
34+
cat <<EOF >> nano /etc/bash.bashrc
35+
4236
export LS_OPTIONS='--color=auto'
4337
eval "`dircolors`"
4438
alias ls='ls $LS_OPTIONS'
39+
EOF
4540
```
4641

4742
## SSH Configuration
@@ -110,17 +105,4 @@ Unattended-Upgrade::Origins-Pattern {
110105
-// "o=Debian,a=proposed-updates";
111106
-// "o=Debian Backports,a=${distro_codename}-backports,l=Debian Backports";
112107
};
113-
114-
<--->
115-
116-
+ Unattended-Upgrade::InstallOnShutdown "false";
117-
- Unattended-Upgrade::InstallOnShutdown "true";
118-
119-
<--->
120-
121-
+ Unattended-Upgrade::Remove-Unused-Dependencies "true";
122-
- Unattended-Upgrade::Remove-Unused-Dependencies "false";
123-
124-
+ Unattended-Upgrade::Automatic-Reboot "true";
125-
- Unattended-Upgrade::Automatic-Reboot "false";
126108
```

0 commit comments

Comments
 (0)