Update BIOS

Download the latest version at:

Decompress the downloaded file and copy its content into the root folder of an USB key.

Restart the laptop in BIOS mode (keep pressing ESC on startup), then use the displayed menu to activate the option "Easy Flash".

Pick the usb key, and the BIOS file.

Wait for the update to be done and the computer to restart.

Install aptitude

Type:

sudo apt-get install aptitude
sudo aptitude install bash-completion
Improve unity

Create some folder in /data :

sudo chown -R guenmat /data
mkdir /data/Téléchargements
mkdir /data/Projets
mkdir /data/Documents
mkdir /data/Images
mkdir /data/Musique
mkdir /data/Vidéos
mkdir /data/Applications

Activate the display of hidden and backup files in nautilus settings, then type:

sudo aptitude install nautilus-image-converter nautilus-open-terminal

Uncompress the following file content:

in the user shortcuts folder:

/home/guenmat/.local/share/applications

Then, reorganize your home folders to put them in another disk drive:

rm -rf /home/guenmat/Documents
rm -rf /home/guenmat/Images
rm -rf /home/guenmat/Musique
rm -rf /home/guenmat/Vidéos
rm -rf /home/guenmat/Téléchargements
ln -s /data/Documents /home/guenmat/Documents
ln -s /data/Images /home/guenmat/Images
ln -s /data/Musique /home/guenmat/Musique
ln -s /data/Vidéos /home/guenmat/Vidéos
ln -s /data/Téléchargements /home/guenmat/Téléchargements

And type:

sudo apt-get install compizconfig-settings-manager

Launch "CompizConfig Settings Manager", click on "Ubuntu Unity Plugin", then on tab "Launcher" and make sure "Minimize single window applications (unsupported)" is ticked.

Finally, in order to use the new global menu in Java applications, type:

sudo add-apt-repository ppa:danjaredg/jayatana
sudo apt-get update
sudo apt-get install jayatana
Configure ufw firewall

Install ufw firewall:

sudo aptitude install ufw

Then apply the following rules:

Generic rules:

sudo ufw default deny incoming
sudo ufw default allow outgoing

Domain:

sudo ufw allow domain

Internet:

sudo ufw allow ssh
sudo ufw allow ftp
sudo ufw allow www
sudo ufw allow https
sudo ufw allow http-alt

Emails:

sudo ufw allow imaps
sudo ufw allow ssmtp
sudo ufw allow xmpp-client

Remote desktop:

sudo ufw allow 5900

Printer sharing:

sudo ufw allow 631

Samba:

sudo ufw allow 113
sudo ufw allow proto tcp from 192.168.0.0/24 to 192.168.0.0/24 port 135
sudo ufw allow proto tcp from 192.168.0.0/24 to 192.168.0.0/24 port 139
sudo ufw allow proto tcp from 192.168.0.0/24 to 192.168.0.0/24 port 445
sudo ufw allow proto udp from 192.168.0.0/24 to 192.168.0.0/24 port 137
sudo ufw allow proto udp from 192.168.0.0/24 to 192.168.0.0/24 port 138

Transmission:

sudo ufw allow 9091
sudo ufw allow 9099
sudo ufw allow 20500:20599/tcp
sudo ufw allow 20500:20599/udp

NTP (serveur de temps) :

sudo ufw allow ntp

FreeTV:

sudo ufw allow proto udp from 212.27.38.253

Before applying the new rules, the logging can be activated with:

sudo ufw logging on

Then reload the configuration with:

sudo ufw enable

The firewall status is visible with:

sudo ufw status

To stop the firewall, the command is:

sudo ufw disable

All the existing rules can be removed with:

sudo ufw reset

And finally, to display the log, type:

sudo tail -f /var/log/ufw.log
Optimise SSD

Type:

sudo vi /etc/fstab

The goal is to add options "noatime,nodiratime" to / and /data:

# / was on /dev/sda1 during installation
UUID=7545e63d-b518-44e8-96af-0a9271f0f018 / ext4 errors=remount-ro 0 1
# /data was on /dev/sda6 during installation
UUID=58f299cf-6c78-4031-b9b3-102526e2cad3 /data ext4 defaults 0 2

should become

# / was on /dev/sda1 during installation
UUID=7545e63d-b518-44e8-96af-0a9271f0f018 / ext4 noatime,nodiratime,errors=remount-ro 0 1
# /data was on /dev/sda6 during installation
UUID=58f299cf-6c78-4031-b9b3-102526e2cad3 /data ext4 noatime,nodiratime,defaults 0 2

Then add the following line to add all system cache in RAM memory:

# Adding system cache in RAM
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
Configure swap

Set swap activation at 5% of remaining RAM space, instead of 40% by default

echo vm.swappiness=5 | sudo tee -a /etc/sysctl.conf

Redémarrer.

Mount network drives

First create the destination folders:

sudo mkdir /nas
sudo mkdir /nas/Documents
sudo mkdir /nas/Livres
sudo mkdir /nas/Musique
sudo mkdir /nas/Photos
sudo mkdir /nas/Projets
sudo mkdir /nas/Sauvegardes
sudo mkdir /nas/Video
sudo mkdir /nas/Tmp
sudo mkdir /nas/Download
sudo mkdir /nas/Freebox
sudo mkdir /nas/Android

With the proper rights:

sudo chown -R guenmat /nas

Give administrator privileges to the current user:

sudo visudo

Add the following line at the end of the file:

%guenmat ALL=(ALL) NOPASSWD: /bin/mount,/bin/umount

Reload with:

sudo -v

Create a script to mount the NAS drives manually:

vi ~/mountnas.sh

And copy this content (replace LOGIN with the NAS user login and PASSWORD with its password):

#!/bin/bash
# Add Buffalo NAS HDD mount
sudo mount -t cifs //192.168.0.100/Documents /nas/Documents -o username=LOGIN,password=PASSWORD,iocharset=utf8,file_mode=0777,dir_mode=0777
sudo mount -t cifs //192.168.0.100/Livres /nas/Livres -o username=LOGIN,password=PASSWORD,iocharset=utf8,file_mode=0777,dir_mode=0777
sudo mount -t cifs //192.168.0.100/Musique /nas/Musique -o username=LOGIN,password=PASSWORD,iocharset=utf8,noserverino,file_mode=0777,dir_mode=0777
sudo mount -t cifs //192.168.0.100/Photos /nas/Photos -o username=LOGIN,password=PASSWORD,iocharset=utf8,file_mode=0777,dir_mode=0777
sudo mount -t cifs //192.168.0.100/Projets /nas/Projets -o username=LOGIN,password=PASSWORD,iocharset=utf8,file_mode=0777,dir_mode=0777
sudo mount -t cifs //192.168.0.100/Sauvegardes /nas/Sauvegardes -o username=LOGIN,password=PASSWORD,iocharset=utf8,file_mode=0777,dir_mode=0777
sudo mount -t cifs //192.168.0.100/Video /nas/Video -o username=LOGIN,password=PASSWORD,iocharset=utf8,file_mode=0777,dir_mode=0777
sudo mount -t cifs //192.168.0.100/Tmp /nas/Tmp -o username=LOGIN,password=PASSWORD,iocharset=utf8,file_mode=0777,dir_mode=0777
sudo mount -t cifs //192.168.0.100/Download /nas/Download -o username=LOGIN,password=PASSWORD,iocharset=utf8,file_mode=0777,dir_mode=0777

The option "noserverino" is usefull only for Google music in order to detect changes on drive.

Change script file execution rights:

chmod +x ~/mountnas.sh

Create a script to umount the NAS drives manually:

vi ~/umountnas.sh

And paste the content:

#!/bin/bash
sudo umount -t cifs /nas/Documents
sudo umount -t cifs /nas/Livres
sudo umount -t cifs /nas/Musique
sudo umount -t cifs /nas/Photos
sudo umount -t cifs /nas/Projets
sudo umount -t cifs /nas/Sauvegardes
sudo umount -t cifs /nas/Video
sudo umount -t cifs /nas/Tmp
sudo umount -t cifs /nas/Download

Change script file execution rights:

chmod +x ~/umountnas.sh

To add the Freebox V6 NAS drive, type:

sudo aptitude install cifs-utils
sudo vi /etc/fstab

Then add at the end:

# Add freebox NAS
//mafreebox.freebox.fr/Disque\040dur /nas/Freebox cifs _netdev,rw,users,iocharset=utf8,uid=1000,sec=none,file_mode=0777,dir_mode=0777 0 0

To apply the new configuration without reboot:

sudo mount -a

To disable the configuration:

sudo umount -a

Finally create a launcher for unity:

vi /home/guenmat/.local/share/applications/NAS.desktop

Paste the following content:

[Desktop Entry]
Version=1
Type=Application
Categories=System;
Name=Monter et démonter les périphériques externes
GenericName=Monter et démonter les périphériques externes
Comment=Monter et démonter les périphériques externes (NAS, ...)
Icon=/usr/share/pixmaps/gksu-root-terminal.png
Exec=nautilus /nas

X-Ayatana-Desktop-Shortcuts=MountNAS;UnmountNAS

[MountNAS Shortcut Group]
Name=Monter le disque NAS
Exec=/home/guenmat/mountnas.sh
TargetEnvironment=Unity

[UnmountNAS Shortcut Group]
Name=Démonter le disque NAS
Exec=/home/guenmat/umountnas.sh
TargetEnvironment=Unity

Change script file execution rights:

sudo chmod +x /home/guenmat/.local/share/applications/NAS.desktop
Reduce screen luminosity on startup

Edit the file:

sudo vi /home/guenmat/brightness.sh

And paste the following content:

#!/bin/bash
chmod a+w /sys/class/backlight/intel_backlight/brightness
echo 59 > /sys/class/backlight/intel_backlight/brightness

Change the file execution rights:

sudo chmod +x /home/guenmat/*.sh

Do the same on standbye wake:

sudo vi /usr/lib/pm-utils/sleep.d/97brightness

And paste the following content:

#!/bin/sh
case "$1" in
thaw|resume)
chmod a+w /sys/class/backlight/intel_backlight/brightness
(sleep 5 && echo 59 > /sys/class/backlight/intel_backlight/brightness) &
esac

Change the file execution rights:

sudo chmod +x /usr/lib/pm-utils/sleep.d/97brightness

As the previous commands must be executed with root rights, type:

sudo visudo

Then add a new alias with:

# Cmnd alias specification
Cmnd_Alias BRIGHTNESS=/home/guenmat/brightness.sh
%guenmat ALL=(ALL) NOPASSWD: /bin/mount,/bin/umount,BRIGHTNESS

To apply, type:

sudo -v

Finally, create a startup execution in ubuntu with the following settings:

Nom : Luminosité
Commande : sudo /home/guenmat/brightness.sh
Improve screen resolution

In the default Unity desktop, increase resolution from 96dpi to 138dpi with:

sudo vi /etc/X11/xinit/xinitrc

then add the following line

xrandr --dpi 138/eDP1

For Gnome 3, type instead::

gsettings set org.gnome.desktop.interface text-scaling-factor 1.4375
Install Intel drivers

Type:

echo "deb https://download.01.org/gfx/ubuntu/13.10/main saucy main #Intel Graphics drivers" | sudo tee /etc/apt/sources.list.d/intellinuxgraphics.list
wget --no-check-certificate https://download.01.org/gfx/RPM-GPG-KEY-ilg -O - | sudo apt-key add -
wget --no-check-certificate https://download.01.org/gfx/RPM-GPG-KEY-ilg-2 -O - | sudo apt-key add -
sudo aptitude update
sudo aptitude install intel-linux-graphics-installer

Then launch the Intel installer application.

Improve battery life

Type:

sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install tlp tlp-rdw
sudo tlp start
Install softwares

• Cheese

• VLC

• MPlayer

• Filezilla

• All greffons for vidéos codecs

• Comix

• Puddletag

• Subtitle editor

• Gimp

• MP3 Diags

• Convertisseur de sons

• Evince

• Unity Tweak Tool

• FBReader

• Pyrenamer

Google Chrome

Download the latest google chrome at:

Then type:

sudo dpkg -i google-chrome-stable_current_*.deb
Install latest Calibre

Install Calibre latest version:

sudo -v && wget -nv -O- https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py | sudo python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()"

Launch Calibre and change the backup model with:

{authors}/{series:||/}{authors} - {series_index:0>2s|| - }{title}

After exporting ebooks, remove all unnecessary files with:

find . -name "*.opf" -exec rm -rf {} \;
find . -name "*.jpg" -exec rm -rf {} \;
Install latest transmission

Add a new repository with:

sudo add-apt-repository ppa:transmissionbt/ppa

Do not forget to add blocking rules from the site:

http://www.iblocklist.com/lists.php

More precisely for France, apply:

http://list.iblocklist.com/?list=fr&fileformat=p2p&archiveformat=gz
Install teamviewer

Download the latest 32bits version at:

Then type:

sudo aptitude install gdebi
sudo gdebi teamviewer_linux.deb
sudo rm -f teamviewer_linux.deb

Validate and proceed with the installation.

Install crypting software

Download truecrypt at:

then type:

tar xzvf truecrypt-*-linux-x64.tar.gz
sh truecrypt-7.1a-setup-x64
rm -f truecrypt*
Install Conky

Type:

sudo apt-add-repository ppa:teejee2008/ppa
sudo aptitude update && sudo aptitude install conky lm-sensors conky-manager

Then download scripts at:

And type:

tar xzvf conkytheme.tar.gz
mv .conkytheme /home/guenmat

To try manually the configuration, type:

conky -c /home/guenmat/.conkytheme/conkyrc-zenbook

In order to start conky automatically on startup, create a new script with:

vi ~/conkystartup.sh

And paste the following content:

#!/bin/bash
sleep 15&&
conky -c /home/guenmat/.conkytheme/conkyrc-zenbook

Change the script execution rights:

sudo chmod +x ~/conkystartup.sh

Then use the ubuntu "Startupt applications" tool to create a new entry calling the previous script.

Startup applications

By default, ubuntu hides all startup applications in tool "Startup applications". To display them all, type:

cd /etc/xdg/autostart/
sudo sed --in-place 's/NoDisplay=true/NoDisplay=false/g' *.desktop

In order to hide them again, type:

cd /etc/xdg/autostart/
sudo sed --in-place 's/NoDisplay=false/NoDisplay=true/g' *.desktop
Install Google Play Music

Download the latest version at:

Then type:

sudo dpkg -i google*.deb
Enable Chromecast

Check the static Chromecast IP address with:

arp -a 192.168.0.134

Then check the port range allowed by ubuntu

cat /proc/sys/net/ipv4/ip_local_port_range

Use these information to add a new rule to the firewall, for exemple:

sudo ufw allow proto udp from 192.168.0.134 to any port 32768:61000
Install a Freebox revolution remote controller

Download the latest version at:

Uncompress then launch the following commands from the "src" folder:

sudo python setup.py install
sudo aptitude install python-xmltv
Install Virtualbox

Type:

sudo wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
sudo echo "deb http://download.virtualbox.org/virtualbox/debian `lsb_release -sc` contrib" | sudo tee -a /etc/apt/sources.list.d/virtualbox.list
sudo apt-get update
sudo aptitude install virtualbox-4.3

Do not forget to install the extension pack from within virtualbox.

Google calendar integration

Type:

sudo add-apt-repository ppa:atareao/atareao
sudo apt-get update
sudo apt-get install calendar-indicator
Disable adverts

Type:

gsettings set com.canonical.Unity.Lenses disabled-scopes "['more_suggestions-amazon.scope', 'more_suggestions-u1ms.scope', 'more_suggestions-populartracks.scope', 'music-musicstore.scope', 'more_suggestions-ebay.scope', 'more_suggestions-ubuntushop.scope', 'more_suggestions-skimlinks.scope']"
Install missing codecs

Type:

sudo apt-get install ubuntu-restricted-extras libavcodec-extra

Allow H.264 in Firefox with:

sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install gstreamer0.10-ffmpeg

Install Pipelight after closing all browsers:

sudo apt-add-repository ppa:pipelight/stable
sudo apt-get update
sudo apt-get install pipelight-multi
sudo pipelight-plugin --enable silverlight
sudo pipelight-plugin --enable widevine
Improve LibreOffice

Type:

sudo apt-get install libreoffice-style-sifr
Java JRE & JDK

Type:

sudo add-apt-repository ppa:webupd8team/java
sudo aptitude update
sudo aptitude install oracle-java7-installer
sudo aptitude install oracle-java7-set-default

Then define the JAVA_HOME variable by editing:

sudo vi ~/.bashrc

Add the following lines at the end of the file:

JAVA_HOME="/usr/lib/jvm/java-7-oracle"
export JAVA_HOME

Then reload the configuration:

source ~/.bashrc
Maven 3

Download the latest version at:

It should be "apache-maven-*.tar.gz". Uncompresse the file with:

tar xzvf apache-maven-*.tar.gz
mv apache-maven-* /data/Applications
sudo ln -s /data/Applications/apache-maven-3.2.2/bin/mvn /usr/bin/mvn

Then check the installation with:

which mvn
mvn -version

To configure maven, edit the file at:

/data/Applications/apache-maven-3.2.2/conf

In order to deploy artifacts with maven, install:

sudo aptitude install putty putty-tools
Mysql

Type:

sudo aptitude install mysql-server

Check the installation with the following command, the status must be "started"

sudo service mysql status

Then configure the database with:

sudo vi /etc/mysql/my.cnf

And add these two lines at the end of the file:

character-set-server=utf8
skip-character-set-client-handshake

Reboot the database:

sudo service mysql restart

The connect to the server and create the databases:

mysql -u root -p
CREATE DATABASE XXXXX

Et donner les droits à un utilisateur :

grant all on XXXXX.* to 'login'@'localhost' identified by 'password';

In my case:

mysql -u root -p
CREATE DATABASE guenmat;
grant all on guenmat.* to 'login'@'localhost' identified by 'password';
CREATE DATABASE notepad;
grant all on notepad.* to 'login'@'localhost' identified by 'password';
CREATE DATABASE notepadcore;
grant all on notepadcore.* to 'login'@'localhost' identified by 'password';
CREATE DATABASE mediacollection;
grant all on mediacollection.* to 'login'@'localhost' identified by 'password';
CREATE DATABASE mediacollectioncore;
grant all on mediacollectioncore.* to 'login'@'localhost' identified by 'password';
CREATE DATABASE weightmanager;
grant all on weightmanager.* to 'login'@'localhost' identified by 'password';
CREATE DATABASE weightmanagercore;
grant all on weightmanagercore.* to 'login'@'localhost' identified by 'password';
SVN

Type:

sudo aptitude install subversion

Then create the repositories:

cd /data/Projets/workspace
svn checkout --username mguenebaud http://svn.guenmat.com/trunk/
cd /data/Projets/job
svn checkout --username mguenebaud http://jobsvn.guenmat.com/trunk/

In Eclipse, the "SVNKit (Pure Java)" option must be checked.

Tomcat 7

Download the latest version at:

Then type:

sudo tar zxvf apache-tomcat-*.tar.gz
sudo cp -R apache-tomcat-7.0/* /usr/share/tomcat7
cd /usr/share/tomcat7/conf
sudo chmod a+rw *

In eclipse, declare this server with :

Windows->Preferences->Server->Runtime Environment and value (/usr/share/tomcat7)
Eclipse

Download the latest version at:

Then type:

tar xzvf eclipse*.tar.gz
mv eclipse /data/Applications
sudo ln -s /data/Applications/eclipse/eclipse /usr/bin/eclipse

Check startup settings:

vi /data/Applications/eclipse/eclipse.ini

The eclipse plugins to install manually are:

• Marketplace : http://download.eclipse.org/mpc/luna

• Google : https://dl.google.com/eclipse/plugin/4.4

And from the marketplace: § eGit

• EclipseWTP

Gradle
Gradle minimalist editor

On the first startup, eclipse should ask for a default browser. In order to user chrome, add the following settings

Location : /opt/google/chrome/google-chrome
Parameters : -url %URL%

Change the HTML formatter settings

Windows / Preferences / Web / HTML Files / Editor

And add the tags pre, h1, h2, h3, h4, h5 and h6 into the inline elements.

Import configuration settings in Eclipse preferences:

formatter.xml pour Java -> Code Style -> Formatter.
codetemplates.xml pour Java -> Code Style -> Code templates.
eclipse.importorder pour Java -> Code Style -> Organize imports.
cleanup.xml pour Java -> Code Style -> Clean Up.

Disable startup modules

Disable uneeded validations.

Show Java Heap.

Diplay line numbers.

Increase console size.

Install android SDK

Android SDK installation can now be done automatically within the eclipse google plugin.

Just specify an installation folder:

/data/Applications/android-sdk

To do it manually, prerequesites can be to install the following libraries:

sudo apt-get install libgl1-mesa-dev

Then download the latest version at:

Then type:

tar zxvf android-sdk_r21.1-linux.tgz
mv android-sdk-linux /data/Projets/android-sdk-linux

In order to install all android versions, simply type:

/data/Applications/android-sdk/tools/android update sdk --no-ui --force

This will take some time.

The ANDROID_HOME variable can be set with:

sudo vi ~/.bashrc

Add the following lines at the end of the file:

ANDROID_HOME="/data/Applications/android-sdk"
export ANDROID_HOME

And reload the configuration:

source ~/.bashrc

To automatically recognise android devices, type:

echo SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666" | sudo tee /etc/udev/rules.d/51-android.rules
echo SUBSYSTEM=="usb", SYSFS{idVendor}=="18d1", MODE="0666" | sudo tee /etc/udev/rules.d/52-android.rules
echo SUBSYSTEM=="usb", SYSFS{idVendor}=="1004", MODE="0666" | sudo tee /etc/udev/rules.d/53-android.rules
echo SUBSYSTEM=="usb", SYSFS{idVendor}=="04E8", MODE="0666" | sudo tee /etc/udev/rules.d/54-android.rules
echo SUBSYSTEM=="usb", SYSFS{idVendor}=="0B05", MODE="0666" | sudo tee /etc/udev/rules.d/55-android.rules

Then reload the settings with:

sudo service udev reload

Plug the devices, and type:

adb devices

The connected devices must appear in the list.

Gradle

Type :

sudo add-apt-repository ppa:cwchien/gradle
sudo aptitude update && sudo aptitude install gradle-1.10

To check installation, just enter:

gradle -v

Then move the home folder

mv /home/guenmat/.gradle /data/Applications/.gradle
ln -s /data/Applications/.gradle /home/guenmat/.gradle
GIT

Installer client with:

sudo aptitude install git
git config --global user.name "Matthieu Guenebaud"
git config --global user.email "GuenMat@gmail.com"

Then create all the projects:

cd /data/Projets/workspace
git clone mguenebaud@www.guenmat.com:/home/git/repositories/guenmat
git clone mguenebaud@www.guenmat.com:/home/git/repositories/guenmat-backup
git clone mguenebaud@www.guenmat.com:/home/git/repositories/guenmat-jdbc
git clone mguenebaud@www.guenmat.com:/home/git/repositories/guenmat-persistence
git clone mguenebaud@www.guenmat.com:/home/git/repositories/config
git clone mguenebaud@www.guenmat.com:/home/git/repositories/maven-bulk-uploader
git clone mguenebaud@www.guenmat.com:/home/git/repositories/mediacollection-client
git clone mguenebaud@www.guenmat.com:/home/git/repositories/mediacollection-core
git clone mguenebaud@www.guenmat.com:/home/git/repositories/mediacollection-web
git clone mguenebaud@www.guenmat.com:/home/git/repositories/music-manager
git clone mguenebaud@www.guenmat.com:/home/git/repositories/picturesonthenet
git clone mguenebaud@www.guenmat.com:/home/git/repositories/eurosteo
git clone mguenebaud@www.guenmat.com:/home/git/repositories/weightmanager-client
git clone mguenebaud@www.guenmat.com:/home/git/repositories/weightmanager-core
git clone mguenebaud@www.guenmat.com:/home/git/repositories/weightmanager-web
git clone mguenebaud@www.guenmat.com:/home/git/repositories/sites
git clone mguenebaud@www.guenmat.com:/home/git/repositories/portail
git clone mguenebaud@www.guenmat.com:/home/git/repositories/foscam-alarms
git clone mguenebaud@www.guenmat.com:/home/git/repositories/notepad-client
git clone mguenebaud@www.guenmat.com:/home/git/repositories/notepad-core
git clone mguenebaud@www.guenmat.com:/home/git/repositories/notepad-web
git clone mguenebaud@www.guenmat.com:/home/git/repositories/pdftocbrconverter
git clone mguenebaud@www.guenmat.com:/home/git/repositories/synchronizer
git clone mguenebaud@www.guenmat.com:/home/git/repositories/xmlsiteconverter

cd /data/Projets/workspace-android
git clone mguenebaud@www.guenmat.com:/home/git/repositories/guenmat-mobile
git clone mguenebaud@www.guenmat.com:/home/git/repositories/mediacollection-mobile
git clone mguenebaud@www.guenmat.com:/home/git/repositories/weightmanager-mobile
git clone mguenebaud@www.guenmat.com:/home/git/repositories/alarm-shortcut
git clone mguenebaud@www.guenmat.com:/home/git/repositories/bookmarks-manager
git clone mguenebaud@www.guenmat.com:/home/git/repositories/droidtools
git clone mguenebaud@www.guenmat.com:/home/git/repositories/foscam-mobile
git clone mguenebaud@www.guenmat.com:/home/git/repositories/notepad-mobile
git clone mguenebaud@www.guenmat.com:/home/git/repositories/subtitles-mobile
git clone mguenebaud@www.guenmat.com:/home/git/repositories/optimus2x
Configure SSH distant access from key

On client computer, create a public / private couple of keys with:

ssh-keygen -t rsa

Then backup the keys located at:

• /home/guenmat/.ssh/id_rsa

Finally, declare the public key on the distant server

ssh-copy-id mguenebaud@www.guenmat.com
ssh-copy-id guenmat@godefroy.guenmat.com:2222
Install Android Studio

Download the latest version at:

Then type:

unzip *.zip
mv android-studio /data/Applications/android-studio

Change startup settings:

vi /data/Applications/android-studio/bin/studio64.vmoptions

To start the application, type:

sh /data/Applications/android-studio/bin/studio.sh

Do not forget to change Android SDK and Java JVM paths on first startup with the "Project structure" menu.

Then move the home folder

mv /home/guenmat/.android /data/Applications/.android
ln -s /data/Applications/.android /home/guenmat/.android

And move android studio folder

mv /home/guenmat/.AndroidStudio /data/Applications/android-studio-data
ln -s /data/Applications/android-studio-data /home/guenmat/.AndroidStudio
Install Genymotion

Virtualbox must be installed.

Download latest version at:

Then type:

mv genymotion*.bin /data/Applications
cd /data/Applications
chmod +x genymotion-*.bin
sudo ./genymotion-*.bin
rm genymotion-2.2.2_x64.bin

To start, type:

/data/Applications/genymotion/genymotion

An eclipse plugin is available at:

Then move the home folder

mv /home/guenmat/.Genymobile /data/Applications/.Genymobile
ln -s /data/Applications/.Genymobile /home/guenmat/.Genymobile