Table des matières

NFS

install nfs on ubuntu
sudo apt-get install nfs-common
Edit the file /etc/fstab
sudo vi /etc/fstab
192.168.1.8:/volume1/video /mnt/GwenDiskStation/video nfs rw,nosuid,intr,rsize=8192,wsize=8192 0 0
192.168.1.8:/volume1/music /mnt/GwenDiskStation/music nfs rw,nosuid,intr,rsize=8192,wsize=8192 0 0
192.168.1.8:/volume1/ebook /mnt/GwenDiskStation/book nfs rw,nosuid,intr,rsize=8192,wsize=8192 0 0
192.168.1.8:/volume1/photo /mnt/GwenDiskStation/photo nfs rw,nosuid,intr,rsize=8192,wsize=8192 0 0
192.168.1.8:/volumeUSB1/usbshare/video /mnt/GwenDiskStation/usbshare/video nfs rw,nosuid,intr,rsize=8192,wsize=8192 0 0
Load/refresh contents from file /etc/fstab
cd /mnt
sudo mkdir GwenDiskStation
cd GwenDiskStation
mkdir video
mkdir music
sudo mount -a
mount NFS Synology
#sudo mount -o nosuid,intr,rsize=8192,wsize=8192 192.168.1.8:/volume1/video /mnt/GwenDiskStation/video
sudo mount -t nfs -o rw,nosuid,intr,rsize=8192,wsize=8192 192.168.1.8:/volume1/video /mnt/GwenDiskStation/video
#sudo umount /mnt/GwenDiskStation/video

Torrent

Use magnets in Google Chrome
# via xdg-open
xdg-mime default transmission-gtk.desktop x-scheme-handler/magnet
Ajouter transmission au demarrage (minimisé)
transmission -m

Camera driver

r5u87x
cd /usr/share
sudo add-apt-repository ppa:r5u87x-loader/ppa
sudo apt-get update
sudo apt-get install r5u87x
sudo /usr/share/r5u87x/r5u87x-download-firmware.sh

Couch Potato

Ou utiliser le script d'install CouchPotato-installer.sh


Mise a jour

# Mettre a jour les upgrade de securite automatiquement
sudo dpkg-reconfigure -plow unattended-upgrades

----
=== Synology cloud station ===

# patch apres install
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update && sudo apt-get dist-upgrade

Crontab

# Every monday at 4:00 AM
0 4 * * 1 sshpass -p "rasplex" ssh root@192.168.1.25 "killall plexhometheater"
0 4 * * 1 sshpass -p "rasplex" ssh root@192.168.1.26 "killall plexhometheater"
# Every monday at 4:10 AM
10 4 * * 1 /home/frankette/Documents/Scripts/UnixShell/archivePerlScriptsLogs.sh
# Every tuesday at 4:27 AM
27 4 * * 2 shutdown now
# Every day at 5:00 AM
0 5 * * * /home/frankette/Documents/Scripts/Perl/bin/DownloadShowFromRss.pl

Miscellanous

#desactiver le pad
xinput list
xinput set-prop 12 "Device Enabled" 0

Perl

# pour pouvoir installer Net::SSH:Perl
sudo apt-get install libgmp3-dev
sudo cpan Net::SSH:Perl

# pour pouvoir installer XML::Simple
sudo apt-get install libexpat1-dev
sudo cpan XML::Simple


# avant perl il faut gcc et make
sudo apt-get install gcc
sudo apt-get install make

sudo cpan -i YAML
sudo cpan App::cpanminus

sudo cpanm DateTime
sudo cpanm DBIx::Class::Schema
sudo cpanm TryCatch
sudo cpanm Log::Log4perl
sudo cpanm Net::SCP::Expect
sudo cpanm Net::OpenSSH
sudo cpanm Log::Dispatch::File
sudo cpanm Log::Dispatch::File::Stamped
sudo cpanm Transmission::Client
sudo cpanm XML::Simple
sudo cpanm File::Find::Rule

sudo cpanm DBD::mysql
# installer les 2 paquets nécessaires
sudo apt-get i nstall mysql-client libmysqlclient-dev