FAQ:Linux: Difference between revisions
Jump to navigation
Jump to search
(Add system stuff) |
(→ System: Add iptables geoip) |
||
Line 59: | Line 59: | ||
= System = |
= System = |
||
== Iptables + GeoIP == |
|||
apt install xtables-addons-dkms libtext-csv-xs-perl |
|||
(SCREEN):root@tidus:[~]# vim /etc/cron.monthly/geoip |
|||
#/bin/bash |
|||
mkdir -p /usr/share/xt_geoip/Archives |
|||
cd /usr/share/xt_geoip |
|||
/usr/lib/xtables-addons/xt_geoip_dl |
|||
/usr/lib/xtables-addons/xt_geoip_build -D /usr/share/xt_geoip *.csv |
|||
== Postfix == |
== Postfix == |
Revision as of 20:16, 2 October 2016
Install
Install all my basic usful tools
Here is a command to install all the small tools that are quite useful
apt install vim screen zsh htop iftop iotop subversion git ndisc6 debian-goodies sipcalc pwgen lshw apt-file sudo lvm2 lshell
Multimedia
Be able to RIP DVDs with Handbrake
- Follow http://www.videolan.org/developers/libdvdcss.html to install libdvdcss
- Install and use Handbrake
Backend
LDAP uSer backend
- Install slapd
apt install slapd dpkg-reconfigure slapd
- Restore backup ( delete 2 first entries before )
(SCREEN):root@tidus:[~]# slapadd < slapcat_20161002.ldiff -#################### 100.00% eta none elapsed spd 25.7 k/s Closing DB...
- Install libpam-ldap and libnss-ldap
apt install libnss-ldap libpam-ldap
- Update /etc/nsswitch.conf to add ldap
--- /etc/nsswitch.conf.old 2016-10-02 15:48:45.655784710 +0200
+++ /etc/nsswitch.conf 2016-10-02 15:41:07.844051229 +0200
@@ -4,9 +4,9 @@
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
-passwd: compat
-group: compat
-shadow: compat
+passwd: compat ldap
+group: compat ldap
+shadow: compat ldap
gshadow: files
hosts: files dns
Web
Owncloud
System
Iptables + GeoIP
apt install xtables-addons-dkms libtext-csv-xs-perl
(SCREEN):root@tidus:[~]# vim /etc/cron.monthly/geoip #/bin/bash mkdir -p /usr/share/xt_geoip/Archives cd /usr/share/xt_geoip /usr/lib/xtables-addons/xt_geoip_dl /usr/lib/xtables-addons/xt_geoip_build -D /usr/share/xt_geoip *.csv
Postfix
apt install postfix
Dovecot
apt install dovecot-imapd dovecot-managesieved dovecot-pop3d dovecot-sieve
bind9
apt install bind9