User Tools

Site Tools


system_administration

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
system_administration [2019/07/24 13:33]
c0rn3j
system_administration [2020/05/01 15:03] (current)
c0rn3j
Line 153: Line 153:
  
  
-Dependencies:​ lsof, mediainfo, qt5-3d, ffmpeg, vapoursynth,​ mpv-git(AUR)+Dependencies:​ lsof, mediainfo, qt5-3d, ffmpeg, vapoursynth,​ mpv-git(AUR), svp(AUR)
  
 Pre-requisites(optional):​ proprietary GPU drivers already installed. ​ Pre-requisites(optional):​ proprietary GPU drivers already installed. ​
Line 165: Line 165:
 EOF EOF
 </​code>​ </​code>​
- 
-[Download](https://​www.svp-team.com/​wiki/​Download) and install SVP manager. 
  
  Note: There'​s currently a small bug in SVP causing video stuttering - go to SVP control panel > Utilities > Application settings; and play with the number of "​threads"​ which are set to 0 by default. Setting it to 15 fixed the stuttering issues for me.   Note: There'​s currently a small bug in SVP causing video stuttering - go to SVP control panel > Utilities > Application settings; and play with the number of "​threads"​ which are set to 0 by default. Setting it to 15 fixed the stuttering issues for me. 
Line 178: Line 176:
 Dependencies:​ smplayer Dependencies:​ smplayer
  
-Launch SMplayer > open Preferences > Advanced > Options for MPlayer/mpv and add this to Options <​code>​--input-unix-socket=/​tmp/​mpvsocket</​code>​+Launch SMplayer > open Preferences > Advanced > Options for MPlayer/mpv and add this to Options <​code>​--input-ipc-server=/​tmp/​mpvsocket</​code>​
  
  
Line 244: Line 242:
 http://​blog.wikichoon.com/​2014/​07/​enabling-hyper-v-enlightenments-with-kvm.html http://​blog.wikichoon.com/​2014/​07/​enabling-hyper-v-enlightenments-with-kvm.html
  
-# More stuff +# More stuff 
 +## Webserver in current folder 
 + 
 +You can instantly create a webserver hosting contents of the folder you're currently in via python: 
 + 
 +  python -m http.server 8080 
 ## Tmux ## Tmux
  
Line 637: Line 641:
 [dolphin] [dolphin]
 comment = dolphin ISOs comment = dolphin ISOs
-path = /mountables/​3tbRED/​DOLPHIN ISOs   # SAMBA DOESN'​T NEED ESCAPE SEQUENCES FOR SPACES AND SUCH+path = /mnt/​3tbRED/​DOLPHIN ISOs   # SAMBA DOESN'​T NEED ESCAPE SEQUENCES FOR SPACES AND SUCH
 read only = yes read only = yes
 valid users = c0rn3j valid users = c0rn3j
Line 655: Line 659:
 Now on the client side... Now on the client side...
 ``` ```
-smbclient -L //192.168.0.100 -U% - list public shares on a server+smbclient -L //192.168.1.10 -U% - list public shares on a server
  
-sudo mount //192.168.0.100/homes /mountables/DOLPHIN/ -o user=c0rn3j - example: Mount the home of user c0rn3j to /mountables/DOLPHIN/+sudo mount //192.168.1.10/homes /mnt/dolphin/ -o user=c0rn3j - example: Mount the home of user c0rn3j to /mnt/dolphin/
 ``` ```
 Mounting every time is tedious though, let's add an entry to fstab to mount it on boot. First we'll need to store the credentials safely though. Mounting every time is tedious though, let's add an entry to fstab to mount it on boot. First we'll need to store the credentials safely though.
  
-**sudo nano /mountables/​credentials**+**sudo nano /mnt/​credentials**
 ``` ```
 username=c0rn3j username=c0rn3j
 password=supersafepassword password=supersafepassword
 ``` ```
-**sudo chmod 600 /mountables/​credentials** - secure it so it's not readable by anyone but root or owner.+**sudo chmod 600 /mnt/​credentials** - secure it so it's not readable by anyone but root or owner.
  
  
Line 672: Line 676:
  
 ``` ```
-//​192.168.1.100/dolphin /mountables/DOLPHIN ​cifs auto,​x-systemd.automount,​_netdev,​credentials=/​mountables/​credentials 0 0+//​192.168.1.10/dolphin /mnt/dolphin ​cifs auto,​x-systemd.automount,​_netdev,​credentials=/​mnt/​credentials 0 0
 ``` ```
  
Line 712: Line 716:
 **sudo gpg --batch --passphrase-file _password.txt_ -o _file_ -d _file.gpg_** **sudo gpg --batch --passphrase-file _password.txt_ -o _file_ -d _file.gpg_**
  
-## fcron  
-Packages: fcron 
- 
-Documentation:​ http://​fcron.free.fr/​doc/​en/​fcrontab.5.html 
- 
-**sudo systemctl enable fcron**  ​ 
- 
-**sudo systemctl start fcron** ​ - enable fcron at startup and run it now. 
- 
-**fcrontab -e**  - edit the fcron tab of current user 
- 
-**sudo fcrontab -e**  - edit root's fcron tab, executing commands as root 
-``` 
- # set default for scripts to run if they did not run during down time 
- ​!bootrun(1) 
-``` 
-One of the possible syntaxes 
-``` 
- &​options min hrs day-of-month month day-of-week command 
-``` 
-I want to run my backup script every 12 hours. And my script needs root, so I'm using sudo. 
- 
-**sudo fcrontab -e** 
-``` 
- 0 0,12 * * * /bin/bash /​home/​c0rn3j/​backupscript.sh 
-``` 
system_administration.1563975205.txt.gz · Last modified: 2019/07/24 13:33 by c0rn3j