E: Unable to locate package npm

From the official Node.js documentation: A Node.js package is also available in the official repo for Debian Sid (unstable), Jessie (testing) and Wheezy (wheezy-backports) as “nodejs”. It only installs a nodejs binary. So, if you only type sudo apt-get install nodejs , it does not install other goodies such as npm. You need to type: Optional: install build tools … Read more

How to use the command update-alternatives –config java

You will notice a big change when selecting options if you type in “java -version” after doing so. So if you run update-alternatives –config java and select option 3, you will be using the Sun implementation.Also, with regards to auto vs manual mode, making a selection should take it out of auto mode per this page stating: When using the –config option, alternatives will list all of the choices … Read more

Setting Django up to use MySQL

MySQL support is simple to add. In your DATABASES dictionary, you will have an entry like this: You also have the option of utilizing MySQL option files, as of Django 1.7. You can accomplish this by setting your DATABASES array like so: You also need to create the /path/to/my.cnf file with similar settings from above With this new method of connecting in Django … Read more

What is difference between arm64 and armhf?

armhf stands for “arm hard float”, and is the name given to a debian port for arm processors (armv7+) that have hardware floating point support. On the beaglebone black, for example: Although other commands (such as uname -a or arch) will just show armv7l The vfpv3 listed under Features is what refers to the floating point support. Incidentally, armhf, if your processor supports it, basically supersedes Raspbian, which … Read more

what is the multicast doing on 224.0.0.251?

On my debian server (squeeze) I get this message every few seconds: Sep 18 21:28:14 myhost kernel: [7903784.720091] AIF:UNPRIV connect attempt: IN=eth0 OUT= MAC= SRC=my_serverip_eth0 DST=224.0.0.251 LEN=72 TOS=0x00 PREC=0x00 TTL=255 ID=0 DF PROTO=UDP SPT=5353 DPT=5353 LEN=52 the packets are coming from inside my server (i replaced it with my_serverip_eth0) and seem to be blocked going out to … Read more