2018年7月12日 星期四

Samba on Ubuntu

Ref

# apt install samba
# edit /etc/samba/smb.conf
create folder
# mkdir /var/samba
# chmod 777 /var/samba

Add this:
[public]
  comment = public anonymous access
  path = /var/samba/
  browsable =yes
  create mask = 0666
  directory mask = 0777
  writable = yes
  guest ok = yes

# systemctl restart smbd

2018年7月10日 星期二

HTTPS on Ubuntu 1804 (use default-ssl.conf)

# sudo -i
# apt install apache2
# a2enmod ssl
# a2ensite default-ssl.conf
# systemctl restart apache2

config files in /etc/apache2/sites-available
log files in /var/log/apache2/

use browser to browse https://