Sinhala (si_LK) is the only locale available for Sri Lanka in Ubuntu OS. While the Sinhala locale is not bad in itself, displaying “රු” in currencies, “පෙ.ව” and “ප.ව.” and Sinhala month and date names are a distraction, specially in terminal where Sinhala unicode rendering is not that good. So I created a Sri Lankan English locale (en_LK). It has ...
Sinhala (si_LK) is the only locale available for Sri Lanka in Ubuntu OS. While the Sinhala locale is not bad in itself, displaying “රු” in currencies, “පෙ.ව” and “ප.ව.” and Sinhala month and date names are a distraction, specially in terminal where Sinhala unicode rendering is not that good. So I created a Sri Lankan English locale (en_LK). It has ...
In my previous post, I told the story of buying a new laptop [1]. I immediately burned an Ubuntu 16.04 ISO to a USB Flash Drive and began the installing process. I tried to install it several times, but it failed at the final stage of the installation process, saying that it failed to install the bootloader. As it turns ...
In my previous post, I told the story of buying a new laptop [1]. I immediately burned an Ubuntu 16.04 ISO to a USB Flash Drive and began the installing process. I tried to install it several times, but it failed at the final stage of the installation process, saying that it failed to install the bootloader. As it turns ...
I have been using a Singer branded Clevo laptop for the past 5 years. It had 4 GB of RAM (Which I upgraded to 8 GB.), an Intel Dual Core 2.13 GHz processor, and 320 GB HDD. It was by no means a top range laptop, but it served me well for my work coding, hobby coding, web browsing, ...
I have been using a Singer branded Clevo laptop for the past 5 years. It had 4 GB of RAM (Which I upgraded to 8 GB.), an Intel Dual Core 2.13 GHz processor, and 320 GB HDD. It was by no means a top range laptop, but it served me well for my work coding, hobby coding, web browsing, ...
Let’s Encrypt is a great service that provide SSL Certificates free of charge. It intends to make more data transferred through the WWW secure. This assumes websites running in LXCs, to which HTTP requests are reverse proxyed to using NGINX, as described in Hosting Multiple Applications in a Server, with Linux Containers (LXC). Install the Let’s Encrypt Certificate Generator sudo apt install letsencrypt Stop ...
Let’s Encrypt is a great service that provide SSL Certificates free of charge. It intends to make more data transferred through the WWW secure. This assumes websites running in LXCs, to which HTTP requests are reverse proxyed to using NGINX, as described in Hosting Multiple Applications in a Server, with Linux Containers (LXC). Install the Let’s Encrypt Certificate Generator sudo apt install letsencrypt Stop ...
Using Linux Containers (LXC) is a good way to host multiple applications in a single server with separation of resources and applications. You may think that running several Linux Containers and multiple instances of same service is very resource heavy. But I currently have 3 LXCs running in a VPS with only 512 MB RAM! I prefer to run all ...
Using Linux Containers (LXC) is a good way to host multiple applications in a single server with separation of resources and applications. You may think that running several Linux Containers and multiple instances of same service is very resource heavy. But I currently have 3 LXCs running in a VPS with only 512 MB RAM! I prefer to run all ...
By default, it’s not possible to SSH into LXCs from outside, but we can accomplish that by setting up a SSH server in LXC and some port forwarding magic. Setup SSH Server in LXC We assume that the internal IP address of your LXC is 10.0.3.2 (See Assign Static Internal IP Addresses to LXC.). Log in to the LXC from the host ...
By default, it’s not possible to SSH into LXCs from outside, but we can accomplish that by setting up a SSH server in LXC and some port forwarding magic. Setup SSH Server in LXC We assume that the internal IP address of your LXC is 10.0.3.2 (See Assign Static Internal IP Addresses to LXC.). Log in to the LXC from the host ...
LXCs don’t normally auto start when the host server starts. We have to manually configure them to auto start. Go to the LXC directory from your host server. All LXCs are stored in the /var/lib/lxc/ directory of the host, and all LXCs have a directory with their name inside that directory. So, if the name of your LXC is com-budhajeewa, that LXC’s ...
LXCs don’t normally auto start when the host server starts. We have to manually configure them to auto start. Go to the LXC directory from your host server. All LXCs are stored in the /var/lib/lxc/ directory of the host, and all LXCs have a directory with their name inside that directory. So, if the name of your LXC is com-budhajeewa, that LXC’s ...
If you have a website or a web application in a LXC, you need a way to let people access it. We can do it by assigning a domain to the LXC. This requires NGINX to be installed in your host server. Imagine the static IP of your LXC is 10.0.3.2 (See Assign Static Internal IP Addresses to LXC.) and you need ...
If you have a website or a web application in a LXC, you need a way to let people access it. We can do it by assigning a domain to the LXC. This requires NGINX to be installed in your host server. Imagine the static IP of your LXC is 10.0.3.2 (See Assign Static Internal IP Addresses to LXC.) and you need ...
LXC assigns random internal IP addresses to Containers by default. But it can be hard to refer to them that way. A good practice is to set static IPs. Imagine your LXC’s name is my-lxc. We have to open the network interfaces file and make some modifications to it. You can do this from inside the LXC by attaching (lxc-attach ...
Here’s how to do it: This is the command: lxc-create -t download -n [New LXC Name] -- --dist [Distribution Name] --release [Release Name] --arch [Architecture] Explanation: New LXC Name is the name that you wish to call your new Linux container. I usually name my LXCs using Reverse Domain Name Notation of the domain I wish to use for that ...
Want to host a Laravel application in a shared hosting server, but can’t figure out how to point the domain to the public directory?Put the following in a .htaccess file in the project root which is probably the public_html directory. RewriteEngine on RewriteCond %{HTTP_HOST} ^domain-name.com$ [NC,OR] RewriteCond %{HTTP_HOST} ^www.domain-name.com$ RewriteCond %{REQUEST_URI} !public/ RewriteRule (.*) /public/$1 [L] The post Host Laravel ...