This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
login="root" | |
pass="PASSWORD" | |
ip="MY_IP_ADDRESS" | |
publicip=$(wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//') | |
sshpass -p $pass ssh $login@$ip "iptables -I INPUT -j ACCEPT -s $publicip" | |
sshpass -p $pass ssh $login@$ip | |
#this script will log you in and then add your publip ip to the allowed list in iptables. | |
#necessary because http is blocked by iptables for security reason |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cvt 1600 900 60 | |
xrandr --newmode "1600x900_60.00" 118.25 1600 1696 1856 2112 900 903 908 934 -hsync +vsync | |
xrandr --addmode VGA1 1600x900_60.00 | |
xrandr --output VGA1 --mode 1600x900_60.00 | |
xrandr --output VGA1 --right-of eDP1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xfwm4 --replace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xrandr --output DVI-I-0 --right-of DVI-I-1 |
NewerOlder