Installing a new server: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
= After installing the base system = | = After installing the base system = | ||
[[Debian Standard Packages to install afterwards]] | [[Debian Standard Packages to install afterwards]] | ||
usermod -a -G sudo razor | |||
= Set up Networking = | = Set up Networking = | ||
Line 6: | Line 8: | ||
= files to check if you've spun up a clone = | = files to check if you've spun up a clone = | ||
/etc/ | /etc/hostname | ||
<pre> | |||
mymachinename | |||
</pre> | |||
/etc/hosts | |||
<pre> | |||
127.0.0.1 localhost | |||
127.0.1.1 srvname.edgarbv.int srvname | |||
# The following lines are desirable for IPv6 capable hosts | |||
::1 localhost ip6-localhost ip6-loopback | |||
ff02::1 ip6-allnodes | |||
ff02::2 ip6-allrouters | |||
</pre> | |||
/etc/resolv.conf | |||
<pre> | |||
domain edgarbv.int | |||
search edgarbv.int | |||
nameserver 192.168.0.10 | |||
nameserver 84.116.46.21 | |||
nameserver 84.116.46.20 | |||
</pre> | |||
NB This file can be overwritten by the resolvconf and networkmanager packages. If possible leave them alone, but pdnsd may require resolvconf | |||
~/.bashrc | |||
<pre> | |||
export LS_OPTIONS='--color=auto' | |||
eval "`dircolors`" | |||
alias ls='ls $LS_OPTIONS' | |||
alias ll='ls $LS_OPTIONS -l' | |||
alias l='ls $LS_OPTIONS -lA' | |||
</pre> | |||
~/.vimrc (to get vi out of visual editing mode when it starts up) | |||
<pre> | |||
set mouse-=a | |||
</pre> | |||
postfix configuration (see standard packages setup above) | |||
= SNMP = | = SNMP = | ||
[[SNMP]] | |||
= Firewall = | = Firewall = | ||
Use Shorewall for more complex environments, and ULF (Uncomplicated firewall) when you need a few simple rules, eg after you've just spun up or cloned a VM | |||
==Shorewall== | ==Shorewall== | ||
[[Shorewall]] | |||
==ULF== | ==ULF== | ||
[[ULF]] |
Latest revision as of 12:28, 31 January 2021
After installing the base system
Debian Standard Packages to install afterwards
usermod -a -G sudo razor
Set up Networking
files to check if you've spun up a clone
/etc/hostname
mymachinename
/etc/hosts
127.0.0.1 localhost 127.0.1.1 srvname.edgarbv.int srvname # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters
/etc/resolv.conf
domain edgarbv.int search edgarbv.int nameserver 192.168.0.10 nameserver 84.116.46.21 nameserver 84.116.46.20
NB This file can be overwritten by the resolvconf and networkmanager packages. If possible leave them alone, but pdnsd may require resolvconf
~/.bashrc
export LS_OPTIONS='--color=auto' eval "`dircolors`" alias ls='ls $LS_OPTIONS' alias ll='ls $LS_OPTIONS -l' alias l='ls $LS_OPTIONS -lA'
~/.vimrc (to get vi out of visual editing mode when it starts up)
set mouse-=a
postfix configuration (see standard packages setup above)
SNMP
Firewall
Use Shorewall for more complex environments, and ULF (Uncomplicated firewall) when you need a few simple rules, eg after you've just spun up or cloned a VM