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
13
13
## Utilities
14
14
15
15
``` 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
21
17
```
22
18
23
19
## Don't use root
@@ -32,16 +28,15 @@ passwd patrick
32
28
33
29
## Make the CLI more fun
34
30
35
- ``` bash
36
- nano /etc/bash.bashrc
37
- ```
38
-
39
31
Add the following lines to [ add color to bash] ( https://wiki.debian.org/BashColors ) :
40
32
41
- ``` conf
33
+ ``` bash
34
+ cat << EOF >> nano /etc/bash.bashrc
35
+
42
36
export LS_OPTIONS='--color=auto'
43
37
eval "` dircolors` "
44
38
alias ls='ls $LS_OPTIONS '
39
+ EOF
45
40
```
46
41
47
42
## SSH Configuration
@@ -110,17 +105,4 @@ Unattended-Upgrade::Origins-Pattern {
110
105
- // "o=Debian,a=proposed-updates";
111
106
- // "o=Debian Backports,a=${distro_codename}-backports,l=Debian Backports";
112
107
};
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";
126
108
```
You can’t perform that action at this time.
0 commit comments