*** Build Emacs from source
1. gnutls error, to fix, install =gnutls-dev= and =pkg-config=
+
+configure emacs =-without-x=
+
+#+BEGIN_EXAMPLE
+
+Does Emacs use -lgnutls? no
+#+END_EXAMPLE
+
** others package
htop, lftp, apache2, vsftpd, silversearcher-ag,
* Issue
** HostOnly and NAT
** Port forward, web server
+
+** Shared folder
+- Install Guest Addition,
+https://forums.virtualbox.org/viewtopic.php?t=15679
+- Create folder to share in host machine
+- add user to virtualbox group
+
+* Apache config
+** Enabled Cgi mode
+To enable cgi mdoule, create symbolic link to mods-available/cgid.conf /etc/apache2/mods-enabled/
+https://perlmaven.com/perl-cgi-script-with-apache2
+
+Add sample perl script to test, put under =/usr/lib/cgi-bin/= and chmod a+x, troubleshooting see the log =/var/log/apache2/error.log=
+#+BEGIN_SRC perl
+ #!/usr/bin/perl -w
+
+ use strict;
+
+ use CGI qw/:standard/;
+
+ print header,
+ start_html ("hello world"),
+ h1 ("hello"),
+ end_html;
+
+#+END_SRC
+** cgi directory config
+#+BEGIN_SRC sh
+ ScriptAlias /cgi-bin/ /var/cgi-bin/
+ <Directory "/var/cgi-bin">
+ AllowOverride None
+ Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
+ Require all granted
+ </Directory>
+#+END_SRC
* Raspberry raspbian
** start sshd on boot and vnc server
http://www.raspberrypi-spy.co.uk/2012/05/enable-secure-shell-ssh-on-your-raspberry-pi/