Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Wednesday, December 11, 2019

Installing nodejs 13 on linux mint



Installing nodejs 13 on linux mint

by default the  sudo apt-get install -y nodejs will install v8.10.0
in order to install version 13 you need to add the v13 repository to the update manager


In the terminal type:
curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -

then run:
sudo apt-get install -y nodejs



That's it,



Tuesday, September 3, 2019

Creating local virtual directory




#Create soft link:
ln -s /path/to/real/folder /path/to/symbolic/link

# Example:
ln -s /path/to/real/folder /var/www/html/symbolic_link
------------------------------------------------------------------------------------------------

#add virtual domain to yor local machine (hosts file)

sudo nano /etc/hosts
------------------------------------------------------------------------------------------------
# add to follow line and save the file:

127.0.0.1 the-domain-that-you-want-to-add.com

------------------------------------------------------------------------------------------------
#configure your apache to work with the new configured domain in the hosts file

sudo nano /etc/apache2/sites-available/000-default.conf
------------------------------------------------------------------------------------------------
#add the following configuration
<VirtualHost *:80>

    ServerAdmin your@email.com

    ServerName the-domain-that-you-want-to-add.com

    ServerAlias www.the-domain-that-you-want-to-add.com

    DocumentRoot /var/www/html/symbolic_link

    ErrorLog ${APACHE_LOG_DIR}/error.log

    CustomLog ${APACHE_LOG_DIR}/access.log combined

                <Directory /var/www/html/symbolic_link>

                                Options Indexes FollowSymLinks MultiViews

                                AllowOverride All

                                Order allow,deny

                                allow from all

                </Directory>

</VirtualHost>

------------------------------------------------------------------------------------------------

that's it
Now open your browser and navigate to http://the-domain-that-you-want-to-add.com

Thursday, December 3, 2015

Upgrading from Linux Mint 17.2 “Rafaela” to Linux Mint 17.3 “Rosa”


ORIGIN : http://sourcedigit.com/17812-linux-mint-17-3-rosa-download-upgrade/
linux-mint-17-3-rosa
First of all, run the following commands to update the system to the current stable state:

$ sudo apt update
$ sudo apt upgrade
$ sudo reboot

After updating the system, we need to update the distribution code (change the name of the official repositories for Rosa packages). Run the following commands to do so:

$ sudo sed -i 's/rafaela/rosa/' /etc/apt/sources.list
$ sudo sed -i 's/rafaela/rosa/' /etc/apt/sources.list.d/official-package-repositories.list

Finally, run the commands to update the system files and the distribution package:

$ sudo apt update
$ sudo apt upgrade
$ sudo apt dist-upgrade

Once the system-update process is complete, restart the system – manually or use the command “sudo reboot” (without quotes).

Sunday, August 2, 2015

Getting the windows serial number from the BIOS while running Linux mint*



Copy & paste (ctrl+shift+V) into your terminal window

sudo hd /sys/firmware/acpi/tables/MSDM 














*Might work on other Linux distributions.

linux bulk prefix filenames

  In order to bulk add prefix to filenames  in a directory run the following comnmand for f in * ; do mv -- "$f" "2018-05-24_...