SKS deployment on Debian (my way...)

Deploy the Debian LXC template from ProxMox

(Oh, I need somebody to help me with the needed theme/etc. to have the Blogger editor/etc. provide me nice [code] type formatting)

check and make sure the networking/firewalls/etc. works
add a
  1. /sks resource/mountpoint
  2.  

Install byobu:

  1. dpkg-reconfigure locales
  2. #Select UTF-8
  3. apt-get install byobu sudo
  4. apt-get purge nano
  5. #I hate that editor ;( VI!
  6. visudo #for NOPASSWD (Like I do)
  7. useradd -m USER
  8. passwd USER
  9. chsh -s `which bash` USER
  10. vi /etc/group (add user to sudo group)
  11. passwd USER
  12. copy ssh keys (I usually does it with ssh-copy-id)
  13. passwd -l USER (USer without password, only ssh)
  14. byobuRight now you can do the rest in byobu/etc.
  15.  
  1. sudo su -
  2.  
  3. echo "deb http://ftp.debian.org/debian stretch-backports main contrib" /etc/apt/sources.list.d/backports.list
  4. apt-get update
  5. apt-get dist-upgrade -y
  6. apt-get install -y zlib1g-dev libdb5.3-dev curl build-essential ocaml procmail socat
  7. #I also need some newer that stock stretch versions of:
  8. apt-get -t stretch-backports install nginx-extras sshguard
  9.  
  1. useradd -m -s `which bash` -d /sks/home sks
  2. sudo su - sks
  3. wget https://bitbucket.org/skskeyserver/sks-keyserver/downloads/sks-1.1.6.tgz
  4. tar -axvf sks-1.1.6.tgz
  5. cd sks-1.1.6/
  6.  
  7. cat << EOF > Makefile.local
  8. BDBLIB=-L/usr/lib
  9. BDBINCLUDE=-I/usr/include
  10. PREFIX=/sks2/sks
  11. LIBDB=-ldb-5.3
  12. MANDIR=/sks2/sks/share/man
  13. export BDBLIB
  14. export BDBINCLUDE
  15. export PREFIX
  16. export LIBDB
  17. export MANDIR
  18. EOF
  19.  

Mac OSX settings to not forget

[pre class="prettyprint"] sudo spctl --master-disable [/pre]