File tree Expand file tree Collapse file tree 1 file changed +5
-23
lines changed Expand file tree Collapse file tree 1 file changed +5
-23
lines changed Original file line number Diff line number Diff 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-
3931Add 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+
4236export LS_OPTIONS='--color=auto'
4337eval "` dircolors` "
4438alias 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```
You can’t perform that action at this time.
0 commit comments