Select different available java and javac versions in Ubuntu with...
It’s possible to have more than one version of Java in the same machine. If you have more than one Java JRE or JDK installed you can switch between them with the update-alternatives command: $ sudo...
View ArticleInstall MongoDB in Ubuntu 12.04 with PHP driver
Install MongoDB: sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee...
View ArticleInstall Raspbian RAW image into an SD Card in Mac OS X
First download a Raspbian RAW image from here: http://www.raspberrypi.org/downloads Plug-in your SD card into your Mac. Then use diskutil to see the name of the disk device of it: $ diskutil list...
View ArticleMake Raspbian run from an external USB hard drive or USB memory stick
Raspberry Pi can ONLY boot from the SD Card. If you want to use your Raspberry Pi from an external USB hard drive or memory stick, either way have to install Raspbian in an SD Card an boot from it. You...
View ArticleCompile, Install, Configure and make start on boot the noip.com client in...
First sign up for a no-ip account in http://www.noip.com/ and create a hostname for your Raspberry Pi. In your Raspberry Pi download the Linux client from http://www.noip.com/download?page=linux,...
View ArticleMongoDB: Recover Data after an Unexpected Shutdown in Ubuntu
If you try to run mongod but it fails to start and have this error in the log file (/var/log/mongodb/mongodb.log) you’ll have to repair your db. ************** Unclean shutdown detected. Please visit...
View ArticleFix locale problems in Raspbian
If you get errros like this while running commands on your Raspbian: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset),...
View ArticleUsing screen to leave processes running in a terminal
If you are using an SSH connection and run a command that takes very long to process you can use nohup to prevent that process to be terminated when you logut from the SSH session: nohup command >...
View Article“AttributeError: ‘module’ object has no attribute ‘MongoClient’” error with...
I’m currently doing the M101P: MongoDB for Developers online course. I had this error while running one of the homeworks with pymongo in Ubuntu 12.04: AttributeError: 'module' object has no attribute...
View ArticleInstall JDownloader in Ubuntu 12.04
sudo add-apt-repository ppa:jd-team/jdownloader sudo apt-get update sudo apt-get install jdownloader
View ArticleBackup and restore hard drive with “dd”
Look for the hard drives device with mount or sudo fdisk -l and unmount it. In my case it’s going to be sda. Backup uncompressed image: sudo dd if=/dev/sda of=/home/sda.bin bs=1024 Backup compressed...
View ArticleUse sudo without being asked for your password
Run in a terminal: sudo visudo The sudoers file will be opened with your default editor. There add this line at the end of the file: username ALL=(ALL) NOPASSWD: ALL Then safe and exit.
View ArticleMTP support for Nexus 4 in Ubuntu 12.04
Add the langdalepl/gvfs-mtp package repository and update: sudo add-apt-repository ppa:langdalepl/gvfs-mtp sudo apt-get update Then upgrade the system and you should see some GVFS packages. sudo...
View ArticleAdd support for exFAT in Ubuntu 12.04
sudo apt-add-repository ppa:relan/exfat sudo apt-get update sudo apt-get install fuse fuse-exfat
View ArticleInstall latest VirtualBox 4.3 in Ubuntu 12.04
Latest version of VirtualBox in 12.04 repositories is 4.1.* at the moment. If you want latest 4.3.* version you have to install from their repositories: echo 'deb...
View ArticleInstall Raspbian RAW image into an SD Card in Linux
First download a Raspbian RAW image from here: http://www.raspberrypi.org/downloads Plug-in your SD card into your PC. Then use df -h to see the name of the disk device of it: $ df -h S.ficheros Tamaño...
View ArticleTP-Link TL-WN725N version 2 in Raspbian 2014-01-07-wheezy-raspbian with...
Thanks to http://www.mendrugox.net I’ve been able to use the TP-Link TL-WN725N version 2 in the latest Raspbian 2014-01-07-wheezy-raspbian with kernel 3.10.25+. This was the procedure: wget -O...
View ArticleConfigure the locale and keyboard layout in Raspbian
I have a keyboard with the spanish layout (with the “ñ” key, etc.) but Raspbian comes by default only with the english locale and keyboard layout. To make my keyboard work correctly I first added the...
View Article