55 places you can download tens of thousands books, plays and other literary texts completely legally for free

January 30, 2019

via 55 places you can download tens of thousands books, plays and other literary texts completely legally for free

Installation Issue with Kirby 2 on Nginx

September 29, 2017

Kirby 2.5.5 requires additional configuration for running on Nginx 1.10.

First, configure Nginx to find the Kirby panel. Refer to “Running Kirby with Nginx”:

location / {
 if (!-e $request_filename) {
 rewrite ^/(.*)$ /index.php last;
 break;
 }
}

location /panel {
 if (!-e $request_filename) {
 rewrite ^/(.*)$ /panel/index.php last;
 break;
 }

try_files $uri $uri/ /index.html;
}

///////////////////////////////
//For subdirectory use this one:
////////////////////////////////

location /subdirectory/ {
 if (!-e $request_filename) {
 rewrite ^/(.*)$ /subdirectory/index.php last;
 break;
 }
}

location /subdirectory/panel {
 if (!-e $request_filename) {
 rewrite ^/(.*)$ /subdirectory/panel/index.php last;
 break;
 }

try_files $uri $uri/ /index.html;
}

Choose one of the code blocks above and restart Nginx.

Then, to resolve the error occurring during Kirby setup. Refer to “Issues with panel install”:

Temporarily place c::set(‘panel.install’, true); in your site/config/config.php. The error should then go away. Please make sure to remove the option again afterwards.

 

Getting Started with LEMP at DO

September 26, 2017

Here are quick links to resources for getting started with a LEMP stack on a Debian 9 droplet at Digital Ocean:

  1. Create the droplet.
    “How To Create Your First DigitalOcean Droplet”
    Record the IP of the droplet for use in third-party DNS configuration (if necessary).
  2. Secure the droplet.
    “How To Use SSH Keys with DigitalOcean Droplets”
    “How To Setup a Firewall with UFW on an Ubuntu and Debian Cloud Server”
    Allow SSH to avoid getting locked out of the droplet.
  3. Install the stack.
    “How To Install Linux, Nginx, MySQL, PHP (LEMP stack) in Ubuntu 16.04”
    “How to setup Let’s Encrypt for Nginx on Ubuntu 16.04”
    Check the comments section for automated installation options.
  4. Configure the server.
    “How To Secure Nginx with Let’s Encrypt on Debian 8”
    Clean up the firewall rules.
    Create the referenced snippets for Nginx.
    Configure the server for www/non-www and http/https handling.

Install Korean Fonts in Debian 8

April 20, 2017

Refer to “Setup Korean fonts on Linux Debian“:

sudo aptitude install ttf-unfonts-core ttf-unfonts-extra

Restart browser.

To test, Navigate to a web page containing Korean text.

Share (LAN) Folder with Samba on Ubuntu 16.04

February 26, 2017

Remove previous samba installations:

sudo apt-get remove --purge samba-common
sudo apt-get remove --purge samba

 

Refer to “Anonymous Samba Sharing”:

1. Install samba.

sudo apt-get install -y samba samba-common python-glade2 system-config-samba

2. Back up samba configuration file.

sudo cp -pf /etc/samba/smb.conf /etc/samba/smb.conf.bak

3. Edit the samba configuration file.

sudo nano /etc/samba/smb.conf
[global]
workgroup = WORKGROUP
server string = Samba Server %v
netbios name = ubuntu
security = user
map to guest = bad user
dns proxy = no

[Anonymous]
path = /samba/anonymous
browsable =yes
writable = yes
guest ok = yes
read only = no
force user = nobody

4. Create the samba share.

mkdir -p /samba/anonymous
chmod -R 0775 /samba/anonymous
chown -R nobody:nogroup /samba/anonymous

5. Restart samba.

service smbd restart