Linux/Mint18/systemd: VNC on loginscreen

problem: need VNC Access to your Linux machine before user log in?


apt-get -y remove vino
apt-get -y install x11vnc
mkdir /etc/x11vnc
x11vnc --storepasswd /etc/x11vnc/vncpwd
# *******
# *******
# Y
nano /lib/systemd/system/x11vnc.service
Description=x11vnc VNC Server for X11

ExecStart=/usr/bin/x11vnc -auth /var/run/lightdm/root/:0 -display WAIT:0 -ncache 10 -forever -nevershared -bg -o /var/log/x11vnc.log -rfbauth /etc/x11vnc/vncpwd -rfbport 5900 -xkb -norc -noxrecord -noxdamage -nomodtweak
ExecStop=/usr/bin/killall x11vnc

systemctl daemon-reload
systemctl enable x11vnc.service
systemctl start x11vnc.service || reboot

on OSX, for example, connect with RealVNC Viewer

Server Umzug – Traffic an neuen Server weiterleiten während DNS Updates sich verteilen

Den HTTP und HTTPS Traffic mit iptables an den neuen Server weiterleiten:


# redirect traffic on specified ports to other IP

# own/old IP

# new/destination IP

echo 1 > /proc/sys/net/ipv4/ip_forward

iptables -F
iptables -t nat -F
iptables -X

#port 80 forwarding (http)
iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination $NEW:80
iptables -t nat -A POSTROUTING -p tcp -d $NEW --dport 80 -j SNAT --to-source $ME

#port 443 forwarding (https)
iptables -t nat -A PREROUTING -p tcp --dport 443 -j DNAT --to-destination $NEW:443
iptables -t nat -A POSTROUTING -p tcp -d $NEW --dport 443 -j SNAT --to-source $ME


youtube-dl: ValueError: insecure string pickle (OSX 10.11.6 homebrew)


$ youtube-dl
[youtube]xX4321ZZYY: Downloading webpage
[youtube]xX4321ZZYY: Downloading video info webpage
[youtube]xX4321ZZYY: Extracting video information
[youtube]xX4321ZZYY: Downloading MPD manifest
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 72, in _run_code
exec code in run_globals
File "/usr/local/bin/youtube-dl/", line 19, in <module>
File "/usr/local/bin/youtube-dl/youtube_dl/", line 465, in main
File "/usr/local/bin/youtube-dl/youtube_dl/", line 455, in _real_main
File "/usr/local/bin/youtube-dl/youtube_dl/", line 1919, in download
File "/usr/local/bin/youtube-dl/youtube_dl/", line 773, in extract_info
File "/usr/local/bin/youtube-dl/youtube_dl/", line 827, in process_ie_result
File "/usr/local/bin/youtube-dl/youtube_dl/", line 1518, in process_video_result
File "/usr/local/bin/youtube-dl/youtube_dl/postprocessor/", line 60, in __init__
File "/usr/local/bin/youtube-dl/youtube_dl/postprocessor/", line 117, in _determine_executables
File "/usr/local/bin/youtube-dl/youtube_dl/postprocessor/", line 117, in <genexpr>
File "/usr/local/bin/youtube-dl/youtube_dl/", line 1907, in get_exe_version
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 710, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 1334, in _execute_child
child_exception = pickle.loads(data)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 1382, in loads
return Unpickler(file).load()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 858, in load
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 966, in load_string
raise ValueError, "insecure string pickle"
ValueError: insecure string pickle


$ brew install libav ffmpeg rtmpdump