11/06/2015


Status




Last updated on 11/04/2021 08:53 by Matthieu Guenebaud
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.

Prepare BIOS for Ubuntu installation

Reboot the computer while clicking on F2.

In the BIOS, change the following settings:

Boot -> Fast boot -> Disabled
Security -> Secure Boot menu -> Secure Boot Control -> Disabled
Advanced -> USB Configuration -> Legacy USB Support -> Auto

Save and restart.

Press ECHAP on startup to choose to boot from your Ubuntu USB key.

To avoid issues with the graphic card during the installation, on the grub menu, press e.

Edit the command line by replacing "quiet splash" by "nomodeset". Click on F10 to boot.

Follow the installation instructions.

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

Uncompress the file "applications.tar.gz" attached to this procedure 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.

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
Fix screen brightness

Type:

sudo vi /etc/default/grub

Replace the line

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

By

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi="

Made the change permanent with

sudo update-grub2

A reboot is needed

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
DNS configuration

In order to use google DNS, type:

sudo vi /etc/dhcp/dhclient.conf

Then add:

prepend domain-name-servers 8.8.8.8;
prepend domain-name-servers 8.8.4.4;

Type the following command to register the modifications:

sudo dhclient -r
Install softwares

• Cheese

• VLC

• MPlayer

• Filezilla

• Greffons divers avec codecs vidéos

• Comix

• Puddletag

• Subtitle editor

• Gimp

• MP3 Diags

• Convertisseur de sons

• Evince

• Unity Tweak Tool

• FBReader

• Pyrenamer

• GParted

• SubDownloader

Google Chrome

Download the latest google chrome at:

Then type:

sudo aptitude install libappindicator1
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 Steam

Download the latest version at:

Then execute:

sudo dpkg -i stream_latest.deb

Move the local Stream folder:

mv /home/guenmat/.local/share/Steam /data/Applications/Steam
ln -s /data/Applications/Steam /home/guenmat/.local/share/Steam
Configure transmission

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 Conky

Type:

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

Then download the conky scripts "conkytheme.tar.gz" attached to the procedure and type:

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

To try manually the configuration, type:

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

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 -d -c /home/guenmat/.conkytheme/conkyrc-rogmat
sleep 1&&
conky -d -c /home/guenmat/.conkytheme/conkyrc-rogmat-weather

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.

In case ls-sensors messes up the screen settings (dim colors, flickering ...) then type:

i2cdetect -l

Note the bus number in the result list for DPDDC-A.

Exécuter la commande (6 being the bus number in this exemple):

sudo i2cset -y 6 0x4f 175

If everything is back to normal, make the change persistent with:

sudo i2cset -y 6 0x4f 176
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 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.

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']"
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-java8-installer
sudo aptitude install oracle-java8-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-8-oracle"
export JAVA_HOME

Then reload the configuration:

source ~/.bashrc
Install network tools

Type

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';
CREATE DATABASE portail;
grant all on portail.* to 'login'@'localhost' identified by 'password';
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 from the marketplace are :

• eGit

• Gradle IDE pack

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.

Gradle

Type :

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

To check installation, just enter:

gradle -v

To change gradle version :

sudo update-alternatives --config gradle

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/log-retriever
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 -p 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.

Once installed, an external library might be necessary:

sudo apt-get install libgl1-mesa-dev

Close Android studio.

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/.AndroidStudio1.2 /data/Applications/AndroidStudio
ln -s /data/Applications/AndroidStudio /home/guenmat/.AndroidStudio1.2

And finally the Android SDK

mv /home/guenmat/Android /data/Applications/Android
ln -s /data/Applications/Android /home/guenmat/Android

The environment variable ANDROID_HOME must be set by editing:

sudo vi ~/.bashrc

in order to add the following lines at the end of the file:

ANDROID_HOME="/home/guenmat/Android/Sdk"
export ANDROID_HOME

Reload with:

source ~/.bashrc

To install the SDK completely, type:

/home/guenmat/Android/Sdk/tools/android update sdk --no-ui --force

Type the following commands to configure the main phones recognition for the computer:

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

Finally reload the settings with:

sudo service udev reload

Check your devices after connecting them with the usb port with the command:

adb devices

The phones must appears (accept the certificate first, and activate USB debugging).