Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
public:informatique:ordinateur_perso [2019/11/06 00:39]
rom1
public:informatique:ordinateur_perso [2020/05/07 02:13] (current)
rom1
Line 2: Line 2:
  
 <​code>​ <​code>​
-sudo david +su david
 lsb_release -a lsb_release -a
 +
 </​code>​ </​code>​
  
Line 14: Line 14:
 <​code>​ <​code>​
 sudo add-apt-repository "deb http://​archive.ubuntu.com/​ubuntu $(lsb_release -sc) main universe restricted multiverse"​ sudo add-apt-repository "deb http://​archive.ubuntu.com/​ubuntu $(lsb_release -sc) main universe restricted multiverse"​
 +
 </​code>​ </​code>​
  
-===== Webmin ​=====+===== color prompt ​=====
  
-[[https://​www.digitalocean.com/​community/​tutorials/​how-to-install-webmin-on-ubuntu-16-04|https://​www.digitalocean.com/​community/​tutorials/​how-to-install-webmin-on-ubuntu-16-04]]+ajoutezr dans le bashrc
  
 <​code>​ <​code>​
-sudo cat ''​'deb http://​download.webmin.com/​download/​repository sarge contrib'>>​ ''​ /​etc/​apt/​sources.list+export PS1="​\[\e[32m\][\[\e[m\]\[\e[31m\]\u\[\e[m\]\[\e[33m\]@\[\e[m\]\[\e[32m\]\h\[\m\]]\[\e[m\]\[\e[32;​47m\]\\$\[\e[m\] " 
 +alias ls='ls --color'
  
-wget http://​www.webmin.com/​jcameron-key.asc+</code>
  
-sudo apt-key add jcameron-key.asc+===== Chrome desactive trousseau =====
  
-sudo apt-get update+<​code>​ 
 +sudo chmod a-x /​usr/​bin/​gnome-keyring*
  
-sudo apt-get install webmin 
 </​code>​ </​code>​
  
Line 44: Line 46:
 sudo mount /​dev/​disk/​by-label/​magneto ​ /​mnt/​magneto sudo mount /​dev/​disk/​by-label/​magneto ​ /​mnt/​magneto
 sudo mount /​dev/​disk/​by-label/​diablo ​ /mnt/diablo sudo mount /​dev/​disk/​by-label/​diablo ​ /mnt/diablo
 +
 +</​code>​
 +
 +===== SSH =====
 +
 +<​code>​
 +sudo apt install openssh-server
 +sudo apt install fail2ban
 +sudo cp /​etc/​fail2ban/​jail.conf /​etc/​fail2ban/​jail.local
 +
 +</​code>​
 +
 +<WRAP center round download 60%>\\
 +ssh-keygen -t rsa -b 4096 -C david20180919@home.server\\
 +</​WRAP>​
 +
 +==== restaure config ====
 +
 +<​code>​
 +cat /​mnt/​magneto/​warehouse/​backup_sickrage/​id_rsa.pub>>​ ~/​.ssh/​authorized_keys​​​
 +sudo cp /​mnt/​magneto/​warehouse/​backup_sickrage/​authorized_keys​​​ /​home/​david/​.ssh
 +chmod 600 /​home/​david/​.ssh/​authorized_keys
 +sudo cp /​mnt/​magneto/​warehouse/​backup_sickrage/​sshd_config ​ /etc/ssh/
 +sudo cp /​mnt/​magneto/​warehouse/​backup_sickrage/​jail.local ​ /​etc/​fail2ban/​
 +systemctl restart sshd.service
 +
 +</​code>​
 +
 +installer la clé prive sur le clients (windows putty)
 +
 +==== sauvegarde config ====
 +
 +<​code>​
 +cp /​home/​david/​.ssh/​authorized_keys /​mnt/​magneto/​warehouse/​backup_sickrage
 +cp /​home/​david/​.ssh/​id_rsa /​mnt/​magneto/​warehouse/​backup_sickrage
 +cp /​home/​david/​.ssh/​id_rsa.pub /​mnt/​magneto/​warehouse/​backup_sickrage
 +cp /​etc/​ssh/​sshd_config /​mnt/​magneto/​warehouse/​backup_sickrage
 +sudo cp /​etc/​fail2ban/​jail.local ​ /​mnt/​magneto/​warehouse/​backup_sickrage
 +
 </​code>​ </​code>​
  
Line 50: Line 91:
 <​code>​ <​code>​
 sudo apt-get install trash-cli sudo apt-get install trash-cli
 +
 </​code>​ </​code>​
  
-===== Path Bin =====+===== desactiver ecran de veille ​=====
  
 <​code>​ <​code>​
-sudo echo '​export PATH=$PATH:/​mnt/​diablo/​kitchen/​bin'​>>  ~/.bashrc +sur le desktop ubuntu ​launch parametre puis  energie -ecran noir jamais 
-sudo nano /​etc/​environment +
- ​export PATH=$PATH:/​mnt/​diablo/​kitchen/​bin +
-Ctrl-X+
 </​code>​ </​code>​
  
Line 73: Line 113:
 sudo swapon -a sudo swapon -a
 free -h free -h
 +
 </​code>​ </​code>​
  
-===== pkg tmux-cpulimit-php ​=====+===== Transmission ​=====
  
 <​code>​ <​code>​
-sudo apt-get install tmux +sudo add-apt-repository ppa:​transmissionbt/​ppa 
-sudo apt-get ​install cpulimit +sudo apt-get ​update 
-sudo apt-get ​install ocrmypdf +sudo apt-get ​upgrade -y 
-sudo apt-get install ​tesseract-ocr-fra +sudo apt-get install ​transmission-cli transmission-common transmission-daemon 
-sudo apt-get install php7.2-cli + 
-sudo apt-get install php7.2-curl +sudo usermod ​--G debian-transmission david 
-sudo apt-get install php7.2-dom +sudo usermod ​-a -G syslog debian-transmission 
-sudo apt-get install inotify-tools+sudo service transmission-daemon stop 
 +sudo adduser david debian-transmission 
 +sudo chown david:david -R /​var/​lib/​transmission-daemon/​info/​ 
 +sudo chown david:david -R /​etc/​transmission-daemon/​settings.json 
 +sudo chown david:​david ​-R /​mnt/​magneto/​videoclub/​_complet/​ 
 +sudo chown david:​david ​-R /​mnt/​magneto/​videoclub/​_incomplet/​ 
 +sudo chown -R david:david /​var/​lib/​transmission-daemon/​downloads 
 +sudo chown -R david:david /​var/​lib/​transmission-daemon/​info 
 +sudo chown -R david:david /​var/​lib/​transmission-daemon/​.config/​transmission-daemon/​settings.json 
 + 
 +chmod +x /​mnt/​diablo/​kitchen/​source_code/​GestionnaireDownloadScript/​transmission-purge-completed.sh 
 +chmod +r /​mnt/​diablo/​kitchen/​source_code/​GestionnaireDownloadScript/​transmission-purge-completed.sh 
 + 
 +sudo touch /​var/​log/​transmission.log 
 +sudo chown debian-transmission /​var/​log/​transmission.log 
 +sudo chmod 644 /​var/​log/​transmission.log 
 + 
 +sudo nano /​lib/​systemd/​system/​transmission-daemon.service ​ #​ExecStart=/​usr/​bin/​transmission-daemon -f --log-debug --logfile /​var/​log/​transmission.log 
 + 
 +sudo service transmission-daemon start 
 </​code>​ </​code>​
 +
 +==== restaure config ====
  
 <​code>​ <​code>​
-sudo apt-get install linux-tools-common linux-tools-generic linux-tools-`uname -r`+sudo service transmission-daemon stop 
 +sudo cp /​mnt/​magneto/​warehouse/​backup_sickrage/​settings.json ​ /​etc/​transmission-daemon/ 
 +sudo chmod 777 /​etc/​transmission-daemon/​settings.json 
 +sudo service transmission-daemon start 
 </​code>​ </​code>​
 +
 +==== sauvegarde config ====
  
 <​code>​ <​code>​
-sudo apt install dos2unix+cp  /​etc/​transmission-daemon/​settings.json /​mnt/​magneto/​warehouse/​backup_sickrage 
 </​code>​ </​code>​
 +
 +===== Timeshift =====
  
 <​code>​ <​code>​
-sudo apt install ​lynx+sudo add-apt-repository -y ppa:​teejee2008/​timeshift 
 +sudo apt-get update 
 +sudo apt-get ​install ​timeshift 
 +mkdir /​90-warehouse/​backup_system/​timeshift 
 +ln -s /​90-warehouse/​backup_system/​timeshift /​mnt/​cyclops/​timeshift
  
-sudo apt  install ffmpeg 
 </​code>​ </​code>​
  
-===== parametrage kitchen ​=====+===== Emby =====
  
 <​code>​ <​code>​
-ln -s /mnt/diablo/kitchen/source_code/.secret /home/david/.secret+cd ~/ 
 +cp /mnt/magneto/warehouse/backup_sickrage/emby-server-deb_4.3.1.0_amd64.deb ~/ 
 +sudo dpkg -i emby-server-deb_4.3.1.0_amd64.deb 
 </​code>​ </​code>​
  
-===== Transmission ​=====+===== Webmin ​=====
  
 +[[https://​www.digitalocean.com/​community/​tutorials/​how-to-install-webmin-on-ubuntu-16-04|https://​www.digitalocean.com/​community/​tutorials/​how-to-install-webmin-on-ubuntu-16-04]]
 <​code>​ <​code>​
-sudo add-apt-repository ppa:transmissionbt/ppa+ 
 +echo "deb http://​download.webmin.com/​download/​repository sarge contrib"​ | sudo tee -a /etc/apt/​sources.list 
 +wget http://​www.webmin.com/​jcameron-key.asc 
 +sudo apt-key add jcameron-key.asc
 sudo apt-get update sudo apt-get update
-sudo apt-get upgrade -y +sudo apt-get install ​webmin
-sudo apt-get install ​transmission-cli transmission-common transmission-daemon+
  
-sudo usermod -a -G debian-transmission david 
-sudo service transmission-daemon stop 
-sudo adduser david debian-transmission 
-sudo chown david -R /​var/​lib/​transmission-daemon/​info/​ 
-sudo chown david -R /​etc/​transmission-daemon/​settings.json 
-sudo chown david -R /​mnt/​magneto/​videoclub/​_complet/​ 
-sudo chown david -R /​mnt/​magneto/​videoclub/​_incomplet/​ 
-sudo service transmission-daemon start 
 </​code>​ </​code>​
  
 +===== Path Bin =====
 <​code>​ <​code>​
-sudo nano  ~/​.config/​transmission-daemon/​settings.json "​download-dir"​"/mnt/magneto/videoclub/_complet",​ "​incomplete-dir":​ "/mnt/​magneto/​videoclub/​_incomplet",​ "​rpc-authentication-required":​ true, "​rpc-bind-address":​ "​192.168.1.237", "​rpc-enabled"​true, "​rpc-host-whitelist":​ "",​ "​rpc-host-whitelist-enabled":​ true, "​rpc-password":​ "​clement",​ "​rpc-port":​ 9091, "​rpc-url":​ "/​transmission/",​ "​rpc-username":​ "​romain",​ "​rpc-whitelist":​ "​192.168.1.*",​ "​rpc-whitelist-enabled":​ true, "​script-torrent-done-enabled":​ true, "​script-torrent-done-filename":​ "/​mnt/​diablo/​kitchen/​source_code/​GestionnaireDownloadScript/​transmission-purge-completed.sh",​sudo service transmission-daemon reload+ 
 +sudo echo '​export PATH=$PATH:/mnt/diablo/kitchen/bin'>> ​ ~/.bashrc 
 +export PATH=$PATH:/​mnt/​diablo/​kitchen/​bin 
 </​code>​ </​code>​
  
-==== restaure config ​====+===== Organisation Répertoire =====
  
 <​code>​ <​code>​
-sudo service transmission-daemon stop +sudo apt-get install samba 
-sudo cp /​mnt/​magneto/​warehouse/​backup_sickrage/settings.json  ~/.config/transmission-daemon+ 
-sudo service transmission-daemon start+</​code>​ 
 + 
 +<​code>​ 
 +sudo ln -s /​mnt/​cyclops /​mnt/​colossus 
 +sudo ln -s /​mnt/​cyclops/​home-desk /​10-home-desk 
 +sudo ln -s /​mnt/​cyclops/​photo /20-photo 
 +sudo ln -s /​mnt/​magneto/​videoclub /​23-videoclub 
 +sudo ln -s /​mnt/​diablo/​kitchen /​50-kitchen 
 +sudo ln -s /​mnt/​cyclops/​home-desk/​80-Photocopie /​80-photocopie 
 +sudo ln -s /​mnt/​diablo/​kitchen/​source_code /​82-source_code 
 +sudo ln -s /​mnt/​magneto/​warehouse /90-warehouse 
 + 
 +sudo ln -s /mnt/​magneto/​warehouse /​home/​david/​OneDrive/​ 
 + 
 +sudo ln -s /​mnt/​cyclops/​office /​30-office 
 +sudo ln -s /​mnt/​diablo/​locker /​40-locker 
 +sudo ln -s /​mnt/​magneto/​mediarack /​70-mediarack 
 + 
 +</​code>​ 
 + 
 +[[https://​websiteforstudents.com/share-files-on-ubuntu-16-04-lts-with-windows-10-systems/​|https://​websiteforstudents.com/share-files-on-ubuntu-16-04-lts-with-windows-10-systems/]] 
 + 
 +==== restaure config ==== 
 +<​code>​ 
 + 
 +sudo cp /​mnt/​magneto/​warehouse/​backup_sickrage/​smb.conf ​ /​etc/​samba/​ 
 </​code>​ </​code>​
  
Line 141: Line 244:
  
 <​code>​ <​code>​
-cp  ~/.config/transmission-daemon/settings.json /​mnt/​magneto/​warehouse/​backup_sickrage+sudo cp /etc/samba/smb.conf /​mnt/​magneto/​warehouse/​backup_sickrage 
 + 
 +</​code>​ 
 + 
 +==== sur windows ==== 
 + 
 +{{:​public:​informatique:​repertroiereseaux.png?​200}} 
 + 
 +  * netsh advfirewall firewall set rule group="​File and Printer Sharing"​ new enable=Yes 
 +  * netsh advfirewall firewall set rule group="​Network Discovery"​ new enable=Yes 
 + 
 +---- 
 + 
 +=====   ​===== 
 + 
 +=====   ​===== 
 + 
 +===== pkg a installer ===== 
 + 
 +<​code>​ 
 +sudo apt-get install tmux cpulimit ocrmypdf tesseract-ocr-fra php7.2-cli php7.2-curl php7.2-dom inotify-tools linux-tools-common linux-tools-generic linux-tools-`uname -r` dos2unix lynx ffmpeg curl dialog toilet 
 + 
 +</​code>​ 
 + 
 +===== parametrage kitchen ===== 
 + 
 +<​code>​ 
 +ln -s /​mnt/​diablo/​kitchen/​source_code/​.secret /​home/​david/​.secret 
 </​code>​ </​code>​
  
Line 147: Line 278:
  
 [[https://​github.com/​SickRage/​SickRage/​wiki/​Sickrage-installation-Ubuntu-15|https://​github.com/​SickRage/​SickRage/​wiki/​Sickrage-installation-Ubuntu-15]] [[https://​github.com/​SickRage/​SickRage/​wiki/​Sickrage-installation-Ubuntu-15|https://​github.com/​SickRage/​SickRage/​wiki/​Sickrage-installation-Ubuntu-15]]
- 
 <​code>​ <​code>​
 +
 sudo apt-get update && sudo apt-get install unrar-free git-core openssl libssl-dev python2.7 sudo apt-get update && sudo apt-get install unrar-free git-core openssl libssl-dev python2.7
 +
 </​code>​ </​code>​
  
 <​code>​ <​code>​
-sudo addgroup --system ​sickrage +sudo addgroup --system ​sickchill 
-sudo adduser --disabled-password --system --home /var/lib/sickrage ​--gecos "SickRage" --ingroup ​sickrage sickrage+sudo adduser --disabled-password --system --home /var/lib/sickchill ​--gecos "SickChill" --ingroup ​sickchill sickchill 
 </​code>​ </​code>​
  
 <​code>​ <​code>​
-sudo adduser ​sickrage ​david +sudo adduser ​sickchill ​david 
-sudo usermod -a -G david sickrage+sudo adduser sickchill debian-transmission 
 +sudo usermod -a -G david sickchill 
 </​code>​ </​code>​
  
 <​code>​ <​code>​
-sudo mkdir /opt/sickrage ​&& sudo chown sickrage:sickrage ​/opt/sickrage +sudo mkdir /opt/sickchill ​&& sudo chown sickchill:sickchill  ​/opt/sickchill 
-sudo -u sickrage ​git clone https://​github.com/​SickChill/​SickChill.git /opt/sickrage+sudo -u sickchill ​git clone https://​github.com/​SickChill/​SickChill.git /opt/sickchill 
 </​code>​ </​code>​
  
 <​code>​ <​code>​
-sudo cp -v /opt/sickrage/​runscripts/​init.systemd /​etc/​systemd/​system/​sickrage.service+sudo cp -v /opt/sickchill/​runscripts/​init.systemd /​etc/​systemd/​system/​sickchill.service 
 </​code>​ </​code>​
  
 <​code>​ <​code>​
-sudo chown root:root /​etc/​systemd/​system/​sickrage.service +sudo chown root:root /​etc/​systemd/​system/​sickchill.service 
-sudo chmod 644 /​etc/​systemd/​system/​sickrage.service+sudo chmod 644 /​etc/​systemd/​system/​sickchill.service 
 </​code>​ </​code>​
  
 <​code>​ <​code>​
-sudo systemctl enable ​sickrage +sudo systemctl enable ​sickchill 
-sudo systemctl start sickrage +sudo systemctl start sickchill 
-sudo systemctl status ​sickrage+sudo systemctl status ​sickchill 
 </​code>​ </​code>​
  
 <​code>​ <​code>​
-sudo ln -s  /​usr/​bin/​python /opt/sickrage/python+sudo ln -s  /​usr/​bin/​python /opt/sickchill/python 
 </​code>​ </​code>​
  
Line 191: Line 331:
  
 ==== restaure config ==== ==== restaure config ====
- 
 <​code>​ <​code>​
 +
 curl http://​192.168.1.237:​8081/​config/​backuprestore/​restore?​backupFile="/​90-warehouse/​backup_sickrage/​sickrage-20180921183800.zip"​ curl http://​192.168.1.237:​8081/​config/​backuprestore/​restore?​backupFile="/​90-warehouse/​backup_sickrage/​sickrage-20180921183800.zip"​
 +
 </​code>​ </​code>​
  
 <​code>​ <​code>​
-sudo systemctl restart ​sickrage+sudo systemctl restart ​sickchill 
 </​code>​ </​code>​
  
Line 204: Line 346:
 <​code>​ <​code>​
 curl http://​192.168.1.237:​8081/​config/​backuprestore/​backup?​backupDir="/​mnt/​magneto/​warehouse/​backup_sickrage/"​ curl http://​192.168.1.237:​8081/​config/​backuprestore/​backup?​backupDir="/​mnt/​magneto/​warehouse/​backup_sickrage/"​
 +
 </​code>​ </​code>​
  
Line 213: Line 356:
 sudo apt-get install nodejs -y sudo apt-get install nodejs -y
  
-sudo cp /​etc/​nzbget.conf ~/.nzbget/+sudo cp /​etc/​nzbget.conf ~/.nzbget
 sudo chown david:david ~/.nzbget sudo chown david:david ~/.nzbget
 +
 </​code>​ </​code>​
  
-​​​<​WRAP center round download 60%>\\ +​​​<​WRAP center round download 60%> \\ sudo nano ~/​.nzbgetMainDir=/​mnt/​magneto/​videoclub/​_nzbgetDaemonUsername=davidControlIP=192.168.1.237ControlUsername=nzbgetControlPassword=nzbgetMainDir=/​mnt/​magneto/​videoclub/​_nzbgetDestDir=/​mnt/​magneto/​videoclub/​_DownSickRage \\ [Unit]Description=NZBGet Daemon[Service]User=davidGroup=davidType=forkingExecStart=/​usr/​bin/​nzbget –daemonExecStop=/​usr/​bin/​nzbget -QExecReload=/​bin/​kill -HUP $MAINPIDKillMode=processRestart=on-failure[Install]WantedBy=multi-user.target \\ </​WRAP>​
-sudo nano ~/​.nzbgetMainDir=/​mnt/​magneto/​videoclub/​_nzbgetDaemonUsername=davidControlIP=192.168.1.237ControlUsername=nzbgetControlPassword=nzbgetMainDir=/​mnt/​magneto/​videoclub/​_nzbgetDestDir=/​mnt/​magneto/​videoclub/​_DownSickRage\\ +
-[Unit]Description=NZBGet Daemon[Service]User=davidGroup=davidType=forkingExecStart=/​usr/​bin/​nzbget –daemonExecStop=/​usr/​bin/​nzbget -QExecReload=/​bin/​kill -HUP $MAINPIDKillMode=processRestart=on-failure[Install]WantedBy=multi-user.target\\ +
-</​WRAP>​+
  
 ==== restaure config ==== ==== restaure config ====
Line 228: Line 369:
 sudo chown david:david ~/.nzbget sudo chown david:david ~/.nzbget
 sudo cp /​mnt/​magneto/​warehouse/​backup_sickrage/​nzbget.service /​etc/​systemd/​system sudo cp /​mnt/​magneto/​warehouse/​backup_sickrage/​nzbget.service /​etc/​systemd/​system
 +
 </​code>​ </​code>​
  
Line 235: Line 377:
 cp ~/.nzbget /​mnt/​magneto/​warehouse/​backup_sickrage/​file.nzbget cp ~/.nzbget /​mnt/​magneto/​warehouse/​backup_sickrage/​file.nzbget
 cp /​etc/​systemd/​system/​nzbget.service /​mnt/​magneto/​warehouse/​backup_sickrage cp /​etc/​systemd/​system/​nzbget.service /​mnt/​magneto/​warehouse/​backup_sickrage
 +
 </​code>​ </​code>​
  
-<​del>​==== ​ = MiniDLNA =====  https://​doc.ubuntu-fr.org/​minidlna#​configuration_de_minidlna ​ ''​ sudo nano /​etc/​minidlna.conf media_dir=/​var/​lib/​minidlna media_dir=V,/​mnt/​magneto/​videoclub/​Film/​ media_dir=V,/​mnt/​magneto/​videoclub/​Anime/​ media_dir=V,/​mnt/​magneto/​videoclub/​Series/​ media_dir=V,/​mnt/​magneto/​videoclub/​Insanity/​ media_dir=V,/​mnt/​magneto/​videoclub/​Video/​ media_dir=P,/​mnt/​cyclops/​photo/​50_Phototheque/​ log_dir=/​var/​log '' ​ ==== restaure config ==== ''​ cp /​mnt/​magneto/​warehouse/​backup_sickrage/​minidlna.conf /etc/ ''​ ==== sauvegarde config ==== ''​ cp /​etc/​minidlna.conf /​mnt/​magneto/​warehouse/​backup_sickrage ''​ </​del>​+<​del>​==== ​ = MiniDLNA =====  https://​doc.ubuntu-fr.org/​minidlna#​configuration_de_minidlna ​ ''​ sudo nano /​etc/​minidlna.conf media_dir=/​var/​lib/​minidlna media_dir=V,/​mnt/​magneto/​videoclub/​Film/​ media_dir=V,/​mnt/​magneto/​videoclub/​Anime/​ media_dir=V,/​mnt/​magneto/​videoclub/​Series/​ media_dir=V,/​mnt/​magneto/​videoclub/​Insanity/​ media_dir=V,/​mnt/​magneto/​videoclub/​Video/​ media_dir=P,/​mnt/​cyclops/​photo/​50_Phototheque/​ log_dir=/​var/​log '' ​  ​==== restaure config ==== ''​ cp /​mnt/​magneto/​warehouse/​backup_sickrage/​minidlna.conf /etc/ '' ​ ==== sauvegarde config ==== ''​ cp /​etc/​minidlna.conf /​mnt/​magneto/​warehouse/​backup_sickrage '' ​ </​del>​ 
 ===== java JRE ===== ===== java JRE =====
  
 <​code>​ <​code>​
 sudo apt-get install default-jre sudo apt-get install default-jre
 +
 </​code>​ </​code>​
  
Line 249: Line 394:
 curl -L -O https://​downloads.sourceforge.net/​project/​filebot/​filebot/​FileBot_4.7.9/​filebot_4.7.9_amd64.deb curl -L -O https://​downloads.sourceforge.net/​project/​filebot/​filebot/​FileBot_4.7.9/​filebot_4.7.9_amd64.deb
 sudo dpkg -i filebot_4.7.9_amd64.deb sudo dpkg -i filebot_4.7.9_amd64.deb
 +
 </​code>​ </​code>​
  
Line 255: Line 401:
 <​code>​ <​code>​
 filebot -script fn:​preferences /​mnt/​magneto/​warehouse/​backup_sickrage/​david.prefs.xml filebot -script fn:​preferences /​mnt/​magneto/​warehouse/​backup_sickrage/​david.prefs.xml
 +
 </​code>​ </​code>​
  
Line 261: Line 408:
 <​code>​ <​code>​
 filebot -script fn:​preferences --output /​mnt/​magneto/​warehouse/​backup_sickrage/​ filebot -script fn:​preferences --output /​mnt/​magneto/​warehouse/​backup_sickrage/​
 +
 </​code>​ </​code>​
  
Line 266: Line 414:
  
 [[https://​www.dropbox.com/​fr/​install-linux|https://​www.dropbox.com/​fr/​install-linux]] [[https://​www.dropboxwiki.com/​tips-and-tricks/​install-dropbox-in-an-entirely-text-based-linux-environment|https://​www.dropboxwiki.com/​tips-and-tricks/​install-dropbox-in-an-entirely-text-based-linux-environment]] [[https://​www.dropbox.com/​fr/​install-linux|https://​www.dropbox.com/​fr/​install-linux]] [[https://​www.dropboxwiki.com/​tips-and-tricks/​install-dropbox-in-an-entirely-text-based-linux-environment|https://​www.dropboxwiki.com/​tips-and-tricks/​install-dropbox-in-an-entirely-text-based-linux-environment]]
- 
 <​code>​ <​code>​
 +
 cd ~ && wget -O - "​https://​www.dropbox.com/​download?​plat=lnx.x86_64"​ | tar xzf - cd ~ && wget -O - "​https://​www.dropbox.com/​download?​plat=lnx.x86_64"​ | tar xzf -
 ~/​.dropbox-dist/​dropboxd ~/​.dropbox-dist/​dropboxd
Line 282: Line 430:
 #sudo ln -s /​mnt/​cyclops/​photo/​00_NEW ~/​Dropbox/​StudioPhotoIntrants #sudo ln -s /​mnt/​cyclops/​photo/​00_NEW ~/​Dropbox/​StudioPhotoIntrants
 #sudo ln -s /​mnt/​magneto/​warehouse/​backup_sickrage/​id_rsa.putty.ppk ~/Dropbox/ #sudo ln -s /​mnt/​magneto/​warehouse/​backup_sickrage/​id_rsa.putty.ppk ~/Dropbox/
 +
 </​code>​ </​code>​
  
 Lien de chaque projet en cours Lien de chaque projet en cours
 +<​code>​
  
-<​code>​ 
 sudo ln -s /​mnt/​colossus/​home-desk/​950-Construction\ Maison/​2018-06-19\ PC\ SketchUp ~/Dropbox/ sudo ln -s /​mnt/​colossus/​home-desk/​950-Construction\ Maison/​2018-06-19\ PC\ SketchUp ~/Dropbox/
-</​code>​ 
  
-===== Organisation Répertoire ===== 
- 
-<​code>​ 
-sudo apt-get install samba 
 </​code>​ </​code>​
  
-<​code>​ +===== Spotify =====
-sudo ln -s /​mnt/​cyclops /​mnt/​colossus +
-sudo ln -s /​mnt/​cyclops/​home-desk /​10-home-desk +
-sudo ln -s /​mnt/​cyclops/​photo /20-photo +
-sudo ln -s /​mnt/​magneto/​videoclub /​23-videoclub +
-sudo ln -s /​mnt/​diablo/​kitchen /​50-kitchen +
-sudo ln -s /​mnt/​cyclops/​home-desk/​80-Photocopie /​80-photocopie +
-sudo ln -s /​mnt/​diablo/​kitchen/​source_code /​82-source_code +
-sudo ln -s /​mnt/​magneto/​warehouse /​90-warehouse +
- +
-sudo ln -s /​mnt/​magneto/​warehouse /​home/​david/​OneDrive/​ +
- +
-sudo ln -s /​mnt/​cyclops/​office /​30-office +
-sudo ln -s /​mnt/​diablo/​locker /​40-locker +
-sudo ln -s /​mnt/​magneto/​mediarack /​70-mediarack +
-</​code>​ +
- +
-[[https://​websiteforstudents.com/​share-files-on-ubuntu-16-04-lts-with-windows-10-systems/​|https://​websiteforstudents.com/​share-files-on-ubuntu-16-04-lts-with-windows-10-systems/​]] +
- +
-==== restaure config ​====+
  
 <​code>​ <​code>​
-cp /​mnt/​magneto/​warehouse/​backup_sickrage/​smb.conf ​ /​etc/​samba/​ +sudo snap install spotify
-</​code>​+
  
-==== sauvegarde config ==== 
- 
-<​code>​ 
-cp /​etc/​samba/​smb.conf /​mnt/​magneto/​warehouse/​backup_sickrage 
-</​code>​ 
- 
-==== sur windows ==== 
- 
-{{:​public:​informatique:​repertroiereseaux.png?​200}} 
- 
-  * netsh advfirewall firewall set rule group="​File and Printer Sharing"​ new enable=Yes 
-  * netsh advfirewall firewall set rule group="​Network Discovery"​ new enable=Yes 
- 
-===== SSH ===== 
- 
-[[https://​doc.fedora-fr.org/​wiki/​SSH_:​_Authentification_par_clé|https://​doc.fedora-fr.org/​wiki/​SSH_:​_Authentification_par_cl%C3%A9]] 
- 
-<​code>​ 
-sudo apt install openssh-server 
-</​code>​ 
- 
-<WRAP center round download 60%> \\ ssh-keygen -t rsa -b 4096 -C david20180919@home.server \\ </​WRAP>​ 
- 
-==== restaure config ==== 
- 
-<​code>​ 
-cat /​mnt/​magneto/​warehouse/​backup_sickrage/​id_rsa.pub>>​ ~/​.ssh/​authorized_keys​​​ 
-sudo cp /​mnt/​magneto/​warehouse/​backup_sickrage/​authorized_keys​​​ /​home/​david/​.ssh 
-sudo cp /​mnt/​magneto/​warehouse/​backup_sickrage/​sshd_config ​ /etc/ssh/ 
-systemctl restart sshd.service 
-</​code>​ 
- 
-installer la clé prive sur le clients (windows putty) voir doc fedora 
- 
-==== sauvegarde config ==== 
- 
-<​code>​ 
-cp /​home/​david/​.ssh/​authorized_keys /​mnt/​magneto/​warehouse/​backup_sickrage 
-cp /​home/​david/​.ssh/​id_rsa /​mnt/​magneto/​warehouse/​backup_sickrage 
-cp /​home/​david/​.ssh/​id_rsa.pub /​mnt/​magneto/​warehouse/​backup_sickrage 
-cp /​etc/​ssh/​sshd_config /​mnt/​magneto/​warehouse/​backup_sickrage 
-</​code>​ 
- 
-==== SSH en html5 ==== 
- 
-[[https://​memo-linux.com/​gate-one-un-client-ssh-en-html5/​|https://​memo-linux.com/​gate-one-un-client-ssh-en-html5/​]] 
- 
-<​code>​ 
-sudo nano /​lib/​systemd/​system/​gateone.service 
- 
-[Unit] 
-Description=Web-based terminal 
-After=network.target remote-fs.target nss-lookup.target 
- 
-[Service] 
-Type=simple 
-PIDFile=/​var/​run/​gateone.pid 
-WorkingDirectory=/​home/​david/​GateOne/​ 
-ExecStart=/​home/​david/​GateOne/​run_gateone.py 
-Restart=on-abort 
- 
-[Install] 
-WantedBy=multi-user.target 
-</​code>​ 
- 
-===== Kodi ===== 
- 
-<​code>​ 
-<​del>​sudo apt install kodi xinit 
- 
-</​del>​ 
-</​code>​ 
- 
-==== restaure config ==== 
- 
-<​code>​ 
-<​del>​cp ​ /​mnt/​magneto/​warehouse/​backup_sickrage/​.kodi ~/  -r 
- 
-</​del>​ 
-</​code>​ 
- 
-==== sauvegarde config ==== 
- 
-<​code>​ 
-<​del>​cp ​ ~/.kodi /​mnt/​magneto/​warehouse/​backup_sickrage/​ -r 
- 
-</​del>​ 
-</​code>​ 
- 
-===== Spotify ===== 
- 
-<​code>​ 
-sudo apt-key adv --keyserver hkp://​keyserver.ubuntu.com:​80 --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410 
-sudo add-apt-repository "deb http://​repository.spotify.com stable non-free"​ 
-sudo apt install spotify-client 
 </​code>​ </​code>​
  
Line 423: Line 452:
 sudo apt install xrdp sudo apt install xrdp
 sudo apt install x11vnc sudo apt install x11vnc
 +sudo apt install dconf-editor
 +
 +  sur le desktop ubuntu : launch dconf puis  org -> gnome -> desktop -> remote-access -> remove encryption
 +
 </​code>​ </​code>​
  
Line 428: Line 461:
  
 relancer gnome apres un freeze relancer gnome apres un freeze
 +<​code>​
  
-<​code>​ 
 DISPLAY=:0 gnome-shell --replace DISPLAY=:0 gnome-shell --replace
-</​code>​ 
  
-===== plex ===== 
- 
-[[https://​linuxize.com/​post/​how-to-install-plex-media-server-on-ubuntu-18-04/​|https://​linuxize.com/​post/​how-to-install-plex-media-server-on-ubuntu-18-04/​]] 
- 
-<​code>​ 
-curl https://​downloads.plex.tv/​plex-keys/​PlexSign.key | sudo apt-key add - 
-echo deb https://​downloads.plex.tv/​repo/​deb public main | sudo tee /​etc/​apt/​sources.list.d/​plexmediaserver.list 
-sudo apt update 
-sudo apt install plexmediaserver 
 </​code>​ </​code>​
  
-==== restaure config ​==== +=====   ​=====
- +
-<​code>​ +
-sudo cp /​mnt/​magneto/​warehouse/​backup_sickrage/​PlexPreferences.xml /​var/​lib/​plexmediaserver/​Library/​Application\ Support/​Plex\ Media\ Server/​Preferences.xml +
-sudo cp /​mnt/​magneto/​warehouse/​backup_sickrage/​Plug-ins /​var/​lib/​plexmediaserver/​Library/​Application\ Support/​Plex\ Media\ Server/ ​ -r +
-</​code>​ +
- +
-==== sauvegarde config ==== +
- +
-<​code>​ +
-sudo cp /​var/​lib/​plexmediaserver/​Library/​Application\ Support/​Plex\ Media\ Server/​Preferences.xml /​mnt/​magneto/​warehouse/​backup_sickrage/​PlexPreferences.xml +
-sudo cp /​var/​lib/​plexmediaserver/​Library/​Application\ Support/​Plex\ Media\ Server/​Plug-ins /​mnt/​magneto/​warehouse/​backup_sickrage/​ -r +
-</​code>​+
  
-====== Server startup ​appmlication ​======+====== Server startup ​application ​======
  
 ==== restaure config ==== ==== restaure config ====
Line 464: Line 475:
 <​code>​ <​code>​
 cp  /​mnt/​magneto/​warehouse/​backup_sickrage/​*.desktop ~/​.config/​autostart/​ cp  /​mnt/​magneto/​warehouse/​backup_sickrage/​*.desktop ~/​.config/​autostart/​
 +
 </​code>​ </​code>​
  
Line 470: Line 482:
 <​code>​ <​code>​
 cp  ~/​.config/​autostart/​*.desktop /​mnt/​magneto/​warehouse/​backup_sickrage/​ cp  ~/​.config/​autostart/​*.desktop /​mnt/​magneto/​warehouse/​backup_sickrage/​
 +
 </​code>​ </​code>​
  
Line 477: Line 490:
 curl https://​rclone.org/​install.sh | sudo bash curl https://​rclone.org/​install.sh | sudo bash
 rclone config rclone config
 +
 </​code>​ </​code>​
  
Line 482: Line 496:
  
 ==== restaure config ==== ==== restaure config ====
 +<​code>​
  
-<​code>​ 
 cp /​mnt/​magneto/​warehouse/​backup_sickrage/​rclone.conf /​home/​david/​.config/​rclone/​ cp /​mnt/​magneto/​warehouse/​backup_sickrage/​rclone.conf /​home/​david/​.config/​rclone/​
 +
 </​code>​ </​code>​
  
Line 491: Line 506:
 <​code>​ <​code>​
 cp /​home/​david/​.config/​rclone/​rclone.conf /​mnt/​magneto/​warehouse/​backup_sickrage/​ cp /​home/​david/​.config/​rclone/​rclone.conf /​mnt/​magneto/​warehouse/​backup_sickrage/​
 +
 </​code>​ </​code>​
  
Line 503: Line 519:
 <​code>​ <​code>​
 /​mnt/​diablo/​kitchen/​source_code/​start_and_stop/​start.sh /​mnt/​diablo/​kitchen/​source_code/​start_and_stop/​start.sh
-#tweet "start "​$(curl ​http://​icanhazip.com)+#tweet "​start ​ "​$(curl ​https://ipv4.icanhazip.com/) 
 </​code>​ </​code>​
  
Line 521: Line 538:
 #==== auto shutdow ==== #==== auto shutdow ====
 cd /​mnt/​diablo/​kitchen/​source_code/​start_and_stop/;​bash shutdown.sh cd /​mnt/​diablo/​kitchen/​source_code/​start_and_stop/;​bash shutdown.sh
 +
 </​code>​ </​code>​
  
Line 527: Line 545:
 <​code>​ <​code>​
 /​mnt/​diablo/​kitchen/​source_code/​start_and_stop/​stop.sh /​mnt/​diablo/​kitchen/​source_code/​start_and_stop/​stop.sh
-#tweet "​stop ​ "​$(curl ​http://​icanhazip.com)+#tweet "​stop ​ "​$(curl ​https://ipv4.icanhazip.com/) 
 </​code>​ </​code>​
  
Line 536: Line 555:
 crontab -u david /​mnt/​magneto/​warehouse/​backup_sickrage/​backup.crontab crontab -u david /​mnt/​magneto/​warehouse/​backup_sickrage/​backup.crontab
 sudo crontab -u root /​mnt/​magneto/​warehouse/​backup_sickrage/​backuproot.crontab sudo crontab -u root /​mnt/​magneto/​warehouse/​backup_sickrage/​backuproot.crontab
 +
 </​code>​ </​code>​
  
Line 544: Line 564:
 crontab -l> /​mnt/​magneto/​warehouse/​backup_sickrage/​backup.crontab crontab -l> /​mnt/​magneto/​warehouse/​backup_sickrage/​backup.crontab
 sudo crontab -u root -l> /​mnt/​magneto/​warehouse/​backup_sickrage/​backuproot.crontab sudo crontab -u root -l> /​mnt/​magneto/​warehouse/​backup_sickrage/​backuproot.crontab
 +
 </​code>​ </​code>​
  
Line 552: Line 573:
 sudo apt install net-tools sudo apt install net-tools
 sudo ethtool -s enp3s0 wol g sudo ethtool -s enp3s0 wol g
 +
 </​code>​ </​code>​
  
 [[https://​www.howtogeek.com/​94110/​wake-up-your-computers-using-your-android-phone/​|https://​www.howtogeek.com/​94110/​wake-up-your-computers-using-your-android-phone/​]] [[https://​www.howtogeek.com/​94110/​wake-up-your-computers-using-your-android-phone/​|https://​www.howtogeek.com/​94110/​wake-up-your-computers-using-your-android-phone/​]]
  
-===== clonezilla ​=====+===== redmine ​=====
  
-sdd1 et sdd2 ⇒ sdb1/warehouse/backup_system+[[https://www.server-world.info/​en/​note?​os=Ubuntu_18.04&​p=redmine|https://​www.server-world.info/​en/​note?​os=Ubuntu_18.04&​p=redmine]]
  
-===== emby client ​=====+===== mysql =====
  
-[[https://emby.media/community/index.php?/​topic/​42868-emby-theater-for-linux/|https://emby.media/community/index.php?/​topic/​42868-emby-theater-for-linux/]]+[[https://linuxize.com/post/how-to-install-mysql-on-ubuntu-18-04/|https://linuxize.com/post/how-to-install-mysql-on-ubuntu-18-04/]] 
 +<​code>​
  
-===== redmine =====+''​sudo apt autoremove --purge mysql\* mariadb\* 
 +sudo apt clean 
 +sudo mv /​var/​lib/​mysql /​var/​lib/​mysql_bak 
 +sudo mv /etc/mysql /​etc/​mysql_bak 
 +sudo apt install mysql-server''​
  
-[[https://www.server-world.info/en/note?​os=Ubuntu_18.04&​p=redmine|https://www.server-world.info/en/note?os=Ubuntu_18.04&​p=redmine]]+</​code>​ 
 + 
 +===== retropie ===== 
 + 
 +[[https://retropie.org.uk/docs/Debian/|https://retropie.org.uk/docs/Debian/]] 
 +<​code>​ 
 + 
 +ln -s /​40-locker/​30-Salle\ de\ Jeux/roms ~/​RetroPie/​ 
 + 
 +</​code>​ 
 + 
 +===== django gnucash ===== 
 + 
 +[[https://​github.com/​nylen/​gnucash-django|https://​github.com/​nylen/​gnucash-django]]
  
  
  • public/informatique/ordinateur_perso.1572997170.txt.gz
  • Last modified: 2019/11/06 00:39
  • by rom1