From The Blog

Error running npm command

12 September 2017, in

If you already faced this error:

/usr/bin/env: ‘node’: No such file or directory

Then you are probably installed npm on Ubuntu using package manager.

The issue is simple, it just a naming issue nodejs instead of node, all you need to do is adding a symlink:

ln -s /usr/bin/nodejs /usr/bin/node

Cheers :)

Post a Comment

How to test RSYNC before already syncing

21 October 2016, in

Wrong execution of rsync command can result a mess that you may cost you some precious time to fix later, so you can test the rsync command before already executing it using the (-n) parameter or (--dry-run):

rsync -anv path/to/file/with/trailing/slash/  path/to/file/without/trailing/slash

Then you can execute it by removing the dry run parameter:

rsync -av path/to/file/with/trailing/slash/  path/to/file/without/trailing/slash


Post a Comment

PHP - Ubuntu: supported locales

26 November 2013, in

1. First of all list supported locales:

cat /usr/share/i18n/SUPPORTED

2. Copy the locales for your region. I will copy the following lines:

sv_SE.UTF-8 UTF-8

sv_SE ISO-8859-1

3. Edit the list of 'supported locales' and paste your locales that you've copied. (See step above)

gedit /var/lib/locales/supported.d/local


Post a Comment

How to start/stop/restart Apache service

15 August 2012, in

Task: Start Apache 2 Server

# /etc/init.d/apache2 start
$ sudo /etc/init.d/apache2 start

Task: Restart Apache 2 Server

# /etc/init.d/apache2 restart
$ sudo /etc/init.d/apache2 restart

Task: Stop Apache 2 Server

# /etc/init.d/apache2 stop
$ sudo /etc/init.d/apache2 stop

Post a Comment

Secure copy via ssh connection

4 February 2012, in

scp allows files to be copied to, from, or between different hosts. It uses ssh for data transfer and provides the same authentication and same level of security as ssh.

Post a Comment