To upload iso to proxmox, so that the iso can be used to create VM, please follow below steps
Wednesday, April 8, 2020
Uploading iso to Proxmox
Friday, April 3, 2020
Install and Use Vagrant on Linux Mint 19 with Virtualbox
Vagrant is a tool for building and managing virtual machine environments in a single workflow. With an easy-to-use workflow and focus on automation, Vagrant lowers development environment setup time, increases production parity, and makes the "works on my machine" excuse a relic of the past.
Thursday, February 13, 2020
Installing Wordpress on Ubuntu 18.04 Using LEMP Stack
Installing wordpress on LEMP stack is not much different from installing in LAMP stack. For those who do not know, LEMP stands for Linux + Nginx + Mariadb + PHP stack, and LAMP stands for Linux + Apache + Mariadb/mysql + PHP stack. Check out my other post on how to install wordpress on LAMP stack on ubuntu.
As per the stack definition, there are 3 main components to be installed: nginx, mariadb and php.
Install nginx:
$ sudo apt install nginx -y
Install mariadb:
$ sudo apt install mariadb-server -y
Install php, php-mysql and php-fpm
$ sudo apt install php php-mysql php-fpm -y
Download wordpress code
$ wget https://wordpress.org/latest.tar.gz
Start mariadb
$ sudo systemctl start mariadb
Secure mariadb installation
$ sudo mysql_secure_installation
Create a database for wordpress
$ sudo mariadb -u root
MariaDB [none]> create database wpdb;
MariaDB [none]> grant all on wpdb.* to wpuser@localhost identified by 'wppassword';
MariaDB [none]> flush privileges;
MariaDB [none]> exit
Test the newly created user and db
$ mariadb -u wpuser -p wpdb
MariaDB [wpdb]> exit
Download wordpress
$ wget https://wordpress.org/latest.tar.gz
Extract wordpress
$ tar -xvf latest.tar.gz
Move wordpress directory to /var/www/html
$ sudo mv wordpress /var/www/html
Change ownership of the wordpress directory
$ sudo chown -R www-data /var/www/html/wordpress
Create nginx virtualhost configuration for wordpress
$ sudo nano /etc/nginx/conf.d/wordpress.conf
Add in below code (change the server name to refer to your ip address, since we do not have any domain at the moment)
server {
listen 80;
root /var/www/html/wordpress;
index index.php index.html;
server_name wordpress.10.0.0.5.nip.io;
location / {
try_files $uri $uri/ /index.php?q=$request_uri;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/www;
}
location ~ .php$ {
try_files $uri =404;
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
Monday, February 10, 2020
Expediting Files Copy to USB
Copying to usb is quite troublesome in linux, whereby the "cp" command or file manager reports that the file has been copied successfully, but if your usb drive has LED, you can see that the LED is flashing frantically as if it is doing some hard work in the background.
Monday, December 16, 2019
Replacing Single Line Spacing with Double Line Spacing in VIM
Thanks to this post, I learned on how to replace blank lines in my text document into 2 blank lines, to make it neat and clear.
The original document, with single line spacing
My objective is to replace all single blank lines representing new lines, into 2 new lines instead. To do that in vim, I just need to press "escape" to enter command mode and type the command below, which is ":%s/^$/\r/g", where
%s is to replace all occurrence of the selection in a line
^$ for single blank lines
\r carriage return, which will print double blank lines







