Archive for the ‘ Shell ’ Category

Author : beriba | 09/16/2016

Installing agilo error:

protagonist@1.5.0 install: `node-gyp rebuild`

Installing protagonist error:

gyp: Call to 'node -e "require('nan')"' returned exit status 127 while in binding.gyp. while trying to load binding.gyp


sudo apt-get install nodejs-legacy

Do it even if you have nodejs installed!

Just install:

sudo apt-get install kio-extras

It works on Kubuntu 16.04 so it’ll probably also work on Ubuntu 16.04. I also found out that it may work on Ubuntu 15.04.

Author : beriba | 08/08/2016
sudo apt-get install exfat-fuse exfat-utils

Then just mount exFAT device.

Author : beriba | 02/01/2014

Using virtual machines is a very common practice. I’ll not tell you here the pros and cons of using them because it’s not the point of this post. One of the most popular VM tools is VirtualBox. While using linux VM you sometimes need to share some data between host and VM. Of course VirtualBox has a functionality to do that. From host (assuming that it is Windows) this folder is instantly accessible. But from VM this folder is only accessible by root. Adding sudo to every cp or any other command using shared folder isn’t what we really want. There is a solution. You just need to add your user to vboxsf group. You can do that by executing

sudo usermod -a -G vboxsf myusername

But that’s not everything. Now you just have to re-login (or reboot). But sometimes there are reasons to not reboot the VM. There’s also solution for that. You just have to do an explicit login.

su - myusername

There’s only one thing you have to remember. Until doing a re-login, you have to do an explicit login in every terminal session you open.

Author : beriba | 10/11/2012

This will be just a quick tip. If you want to change device/partition label in linux you just have to execute this command

sudo e2label <device> <label>

For example:

sudo e2label /dev/sda1 projects


Author : beriba | 08/20/2012

To track newly added lines to file in Linux you can use command

tail -f filename.txt

It will show you every line added at the end of the filename.txt, exactly when it will be added to this file. It is very useful to make some new lines (after executing the command) to separate existing content from the one that will show up later. But don’t worry. Those new lines won’t be added to file.