To Download google Chrome Type wget http://www.google.com/chrome
To Search downloaded files
$ apt-cache search google-chrome
wget -qO- https://deb.opera.com/archive.key | sudo apt-key a
sudo add-apt-repository "deb [arch=i386,amd64] https://deb.opera.com/opera-stable/ stable non-free"
$ sudo dpkg -i google-chrome-stable_current_amd64.deb
List Processes using ps and grep to select process related to apt command
ps aux | grep -i apt
To kill multiple processes (using pIds)causing Lock or error and flag -9 to force kill
+sudo kill -9 5313 5314 20070
lsblk
to list disk devices for viewing disk usages and disk free space.cfdisk
to format disk or make disk partitionsnamraj@linux:~$sudo ufw enable
or
$ sudo ufw status verbose
$ sudo ufw status
Status: active
hit Alt+F2
, type in gconf-editor
and hit Enter.
namraj@linux:~/Documents/sites/node-test$ sudo apt install tree
namraj@linux:~/Documents/sites/node-test$ npm install left-pad --save
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
sudo add-apt-repository "deb https://download.sublimetext.com/ apt/stable/"
sudo apt update
sudo apt install sublime-text
enjoy sublime text next
https://linuxize.com/post/how-to-install-wordpress-with-apache-on-ubuntu-18-04/
sudo apt update
sudo apt install apache2
sudo systemctl status apache2 # check apache service status
sudo ufw allow ‘Apache Full’ #If your Ubuntu server is protected by a firewall you’ll need to open HTTP (80) and HTTPS (443) ports.
sudo ufw status
http://localhost/ #verify
Apache Configuration File’s Structure and Best Practices All Apache configuration files are located in the /etc/apache2 directory. The main Apache configuration file is /etc/apache2/apache2.conf. The ports that Apache will listen to are specified in the /etc/apache2/ports.conf.
You can set your domain document root directory to any location you want. The most common locations for webroot include:
/home/
https://linuxize.com/post/how-to-install-apache-on-ubuntu-18-04/#install-apache https://linuxize.com/post/secure-apache-with-let-s-encrypt-on-ubuntu-18-04/
how-to-install-mysql-on-ubuntu
Next only left to install wordpress as follow below link put your username and password on grant user and pasword mistake is GRANT ALL ON wordpress.* TO ‘wordpressuser’@’localhost’ IDENTIFIED BY ‘change-with-strong-password’;
GRANT ALL ON wordpress.* TO ‘namraj’@’localhost’ IDENTIFIED BY ‘codingkode23’;
how-to-install-wordpress-with-apache-on-ubuntu-18-04
sudo apt install php7.2 php7.2-cli php7.2-mysql php7.2-json php7.2-opcache php7.2-mbstring php7.2-xml php7.2-gd php7.2-curl
Create a directory to hold wordpress eg.
sudo mkdir -p /var/www/example.com
cd /tmp
wget https://wordpress.org/latest.tar.gz
tar xf latest.tar.gzsudo
sudo mv /tmp/wordpress/* /var/www/example.com/
sudo chown -R www-data: /var/www/example.com
sudo nano /etc/apache2/sites-available/example.com.conf
copy ssl licence
sudo a2ensite example.com
Enabling module socache_shmcb. Enabling module ssl. See /usr/share/doc/apache2/README.Debian.gz on how to configure SSL and create self-signed certificates. To activate the new configuration, you need to run: systemctl restart apache2 namraj@linux:~$ sudo a2enmod headers Enabling module headers. To activate the new configuration, you need to run: systemctl restart apache2 namraj@linux:~$ sudo a2enconf letsencrypt
systemctl restart apache2
namraj@linux:~$ sudo systemctl reload apache2
namraj@linux:~$ sudo certbot certonly --agree-tos --email
admin@example.com --webroot -w /var/lib/letsencrypt/ -d example.com -d www.example.com
Saving debug log to /var/log/letsencrypt/letsencrypt.log Plugins selected: Authenticator webroot, Installer None There seem to be problems with that address. Enter email address (used for urgent renewal and security notices)
If you really want to skip this, you can run the client with –register-unsafely-without-email but make sure you then backup your account key from /etc/letsencrypt/accounts
(Enter ‘c’ to cancel): Invalid email address: . Enter email address (used for urgent renewal and security notices)
If you really want to skip this, you can run the client with –register-unsafely-without-email but make sure you then backup your account key from /etc/letsencrypt/accounts
##### Setting up Virtual Hosts
Ubuntu Home folder in windows subsystem C:\Users\onesi\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc\LocalState\rootfs cd /mnt/c to go to c dir namraj@Namraj-4GZ7:/mnt/c/Users/onesi/Documents$
To install xampp with wordpress
-Install xampp with php7 open
###$ To setup domain in vhost
####<VirtualHost *:80> -ServerAdmin webmaster@dummy-host2.example.com -DocumentRoot “C:/xampp_new/htdocs/dummy-host2.example.com” -ServerName dummy-host2.example.com -ErrorLog “logs/dummy-host2.example.com-error.log” -CustomLog “logs/dummy-host2.example.com-access.log” common ####</VirtualHost>
<VirtualHost *:80> DocumentRoot “C:/xampp_new/htdocs/wordpress” ServerName woocommerce.test </VirtualHost>
C:\Windows\System32\drivers\etc drag into desktop and edit add line 127.0.0.1 woocommerce.test and drag back—due to permissions to edit there itself.