Ubuntu

How to find out _POSIX2_VERSION using Ubuntu 14.04.1 LTS

Currently I find out, that newer versions of POSIX are occasionally incompatible with older versions. What I understand is that I can define the _POSIX2_VERSION environment variable to a value of the form yyyymm specifying the year and month the standard was adopted. Three values are currently supported for _POSIX2_VERSION: 199209 stands for POSIX 1003.2-1992, 200112 stands for POSIX 1003.1-2001,…
Read more

Google compute engine storage problems

I have a ubuntu VM instance created on google compute engine with storage is 60GB Standard persistent disk. I just use it for web server for a while but i just storage about 5GB data. But today, when i access to VM instance, disk almost full. When i run command : df -mh the results is: -> Filesystem Size Used…
Read more

Install Ubuntu using grub4dos

I had a window 7(64) on my computer and was trying to install ubuntu using grub4dos. I tried both version 12.04 and 14.04 and put the iso file under both C: and an USB driver. The problem is, it seemed that it could not read the partition of the hard disk, and regard the whole disk as a free space…
Read more

Bower: invalid option: –allow-root

I’m having this issue on ubuntu 14.04LTS: When I do rake bower:install:dev I get: Error: EACCES, permission denied ‘home/MyName/.config/configstore/bower-github.yml’ You don’t have access to this file. When I do sudo rake bower:install:dev I get: bower ESUDO Cannot be run with sudo Additional error details: Since bower is a user command, there is no need to execute it with superuser permissions….
Read more

Mongodb not able to start in Ubuntu 15.04

I have installed MongoDB 3.0.6 in Ubuntu 15.04 using the following commands. sudo apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv 7F0CEB10 echo “deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.0 main” | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list sudo apt-get update sudo apt-get install -y mongodb-org After that when I start the server using the below command I get an error and the server is not started. sudo service mongod…
Read more

MongoDB installation error: "mongod: error while loading shared libraries: libc++.so.1…"

I use this tutorial to install mongodb on my 64 bit Ubuntu OS: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-linux/ After finish the installation i enter: mongo Since then, an error message appear: mongod: error while loading shared libraries: libc++.so.1: cannot open shared object file: No such file or directory Do you have any idea to solve this problem ? Here is my system information: OS:…
Read more

Why nodejs command line always install an old version?

My questions are Whenever i tried to install nodejs using command line # apt-get install nodejs it installs the older version (in my case it installed 0.10.x),where as the current version till date is 4.1.2 .Why this command do not gives me a latest version.Is there any other way to install the latest version though i tried using nvm. I…
Read more

How to change startup command of "dhclient"

I want to add some extra flags to “dhclient” command running ubuntu 14.04, dhclient starts at bootup and the default command I get using “ps” is as follows , /sbin/dhclient -d -q -sf /usr/lib/NetworkManager/nm-dhcp-helper -pf /run/sendsigs.omit.d/network-manager.dhclient-eth0.pid -lf /var/lib/NetworkManager/dhclient-cf3e1c07-94fa-44b7-a44b-5987b9ec596a-eth0.lease I want to add “-w” flag to this. I am looking in “/etc/apparmor.d/sbin.dhclient” but couldn’t find place where can i add this…
Read more