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/12/28 19:56]
c0rn3j [Samba(file sharing)]
system_administration [2020/05/01 15:03] (current)
c0rn3j
Line 176: 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 242: 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 710: 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.1577563014.txt.gz · Last modified: 2019/12/28 19:56 by c0rn3j