Browsed by
Author: nico

Install/run Spark docker on Ubuntu

Install/run Spark docker on Ubuntu

Instalation sudo aptitude install docker.io You then have to add your user to the docker group. If you don’t do it, you’ll have to type a lot of command as sudo. sudo usermod -a -G docker [username] Restart your machine and you are good to go. Docker cheat sheet To see which containers are running : docker ps -a To restart a docker which has an exited status: docker start [id du docker] To open a bash on a docker:…

Read More Read More

Virtualbox kernel driver not installed issue

Virtualbox kernel driver not installed issue

I’ve ran twice into this problem. After doing an update on Ubuntu, Virtual Box gave me the message below : It seems that this happens when we update some headers. My problem was that running /sbin/vboxconfig did not solve the issue. Thanks to a post on the Untuntu Forum, here is how to fix it : sudo apt-get install linux-headers-generic build-essential dkms sudo apt-get remove –purge virtualbox-dkms sudo apt-get install virtualbox-dkms Restart the system and the problem should be fixed.

Install Spark on Ubuntu 15.05

Install Spark on Ubuntu 15.05

Install java JDK 8 Thanks http://askubuntu.com/a/106496 sudo add-apt-repository ppa:webupd8team/java sudo aptitude update sudo aptitude install oracle-jdk7-installer Install Spark Go to http://spark.apache.org/downloads.html. Choose “prebuild for Haddop xx and later” Untar the file From the source folder, run ./bin/pyspark    

Less than 5 minutes xampp installation on Ubuntu 15.10

Less than 5 minutes xampp installation on Ubuntu 15.10

Download xampp from apachefriends.org Go to your download directory. Change the file’s rights so that it can be executed chmod +x xampp-linux-[version of xampp].run Start the installer sudo ./xampp-linux-[version of xampp].run To work on a project you have on disk, the best is to create a symbolic link in the httpdocs directory of xampp (it should be in /opt/lampp/htdocs). cd /opt/lampp/htdocs sudo ln -s [path of the folder you want to work on] . Open your favorite web browser and…

Read More Read More

Create a qcow2 image of Kali

Create a qcow2 image of Kali

This tutorial has been inspired by flyingpenguin. I wanted to try to install a Kali on OpenStack but there was no images available. I do not know if it is only on this OpenStack installation but it  only accepted the upload of qcow2 formated images. I did not find an image with this file format and found a way to do it. Install the necessary dependencies. sudo aptitude install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils virt-goodies p7zip-full Get the image wget http://images.kali.org/Kali-Linux-2.0.0-vbox-amd64.7z…

Read More Read More

Solve WordPress Could Not Create Directory

Solve WordPress Could Not Create Directory

When installing wordpress in a public_html folder (and not in var/www), we can encounter ownership problems. For example, while trying to install a theme, we can have the following message : Installing the theme… Could not create directory public_html…. The problem comes from the fact that the owner of the folder should be www-data (thank you publishingwithwordpress). The solution is simple: chown -R www-data:www-data [the wordpress directory]

Automatic update of WordPress without ftp

Automatic update of WordPress without ftp

If you don’t want/can’t install an ftp on your server but still want to update your WordPress site automatically, you just have to add one line at the end of your wordpress/wp-config.php: define(‘FS_METHOD’,’direct’);. Thanks http://www.hongkiat.com/blog/update-wordpress-without-ftp/ for the tip.

Easy vpn install on Debian 7

Easy vpn install on Debian 7

A vpn lets you redirect all your traffic to a server and use this server to connect to the internet. It has numerous advantages if you are behind a proxy or a firewall: it will let you hide your traffic, go to restricted websites and use disabled services (ssh, webdav, etc…). One popular software used to to this is called openvpn. I have to admit that setting it up can be tedious but I came across a script (https://github.com/nicolargo/openvpnscripts/) that…

Read More Read More

Fix locales fresh en install vps ovh

Fix locales fresh en install vps ovh

For some reason, when I install an English version of Debian (7 or 8) on my ovh vps, I always have locales problems. To have a system using en_US.UTF-8, simply do the following : aptitude install debconf dpkg-reconfigure locales (as root) Choose en_US.UTF-8, press OK Choose en_US.UTF-8, press OK vim /etc/default/locale Add the correct LC_ALL. Ex: LC_ALL=”en_US.UTF-8″ reboot If these changes have not worked, you just have to add this line at the end of your .bashrc: export LC_ALL=en_US.utf8