Category : Unix

Scenario; set up ssh keys to machine so that you do not require a password for use with something like scp. First you need a slave user. If you ‘adduser’ on both machines and pick a user name. Make sure they have a shell account but do not require authentication using a password. On the ..

Read more

I needed to configure some NAT rules on a Mikrotik, but the rules only worked from outside in. The customer uses split DNS for the domain, so a local address on the mail client, and it needed a loopback rule. In the end I wrote the rules into the router using the terminal, or ssh. Here’s an ..

Read more

I recently installed FreeBSD 10, as I broke my server by trying to install a 32bit ESET av, which is actually all they provide for FreeBSD. Anyway, I couldn’t see anything in the source /usr/src/ so I tried to install it using sysinstall. # sysinstall bash: sysinstall: command not found sysinstall for FreeBSD 10 has ..

Read more

Installing TLS on sendmail Freebsd  – cd /usr/ports/security/cyrus-sasl2-saslauthd && make install echo ‘saslauthd_enable=”YES”‘ >> /etc/rc.conf Start the saslauthd – /usr/local/etc/rc.d/saslauthd.sh start Changing sendmail build options – vi /etc/make.conf #Add the following – # SASL (cyrus-sasl v2) sendmail build flags… SENDMAIL_CFLAGS=-I/usr/local/include -DSASL=2 SENDMAIL_LDFLAGS=-L/usr/local/lib SENDMAIL_LDADD=-lsasl2 # Adding to enable alternate port (smtps) for sendmail… SENDMAIL_CFLAGS+= -D_FFR_SMTP_SSL   ..

Read more

I use vi a lot on nix machines and there’s a lot of useful tricks you can do to edit files.   A good trick to get rid of those annoying ^M characters from a dos file is –   :%s/(ctrl-v)(ctrl-m)//g   So you want to type :%s/  and then ctrl & v and without ..

Read more