Last active
April 23, 2020 22:46
-
-
Save bafxyz/bd2cfc40d5ed434c8f49d2c03f6b2f52 to your computer and use it in GitHub Desktop.
Raspberry pi
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
sudo vim /etc/avahi/services/afpd.service | |
<?xml version="1.0" standalone='no'?><!--*-nxml-*--> | |
<!DOCTYPE service-group SYSTEM "avahi-service.dtd"> | |
<service-group> | |
<name replace-wildcards="yes">%h</name> | |
<service> | |
<type>_afpovertcp._tcp</type> | |
<port>548</port> | |
</service> | |
</service-group> |
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
password |
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
pi@raspberrypi:~ $ sudo cat /etc/openvpn/de.conf | |
..... | |
remote-cert-tls server | |
#mute 10000 | |
auth-user-pass auth.txt | |
...... |
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
pi@raspberrypi:~ $ sudo cat /etc/dhcpcd.conf | |
static domain_name_servers=103.86.96.100 |
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
# This is a static resolv.conf file for connecting local clients to | |
# systemd-resolved via its DNS stub listener on 127.0.0.53. | |
# | |
# Third party programs must not access this file directly, but only through the | |
# symlink at /etc/resolv.conf. To manage resolv.conf(5) in a different way, | |
# replace this symlink by a static file or a different symlink. | |
# | |
# See systemd-resolved.service(8) for details about the supported modes of | |
# operation for /etc/resolv.conf. | |
nameserver 127.0.0.53 |
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
sudo vim /etc/avahi/services/rfb.service | |
<?xml version="1.0" standalone='no'?> | |
<!DOCTYPE service-group SYSTEM "avahi-service.dtd"> | |
<service-group> | |
<name replace-wildcards="yes">%h</name> | |
<service> | |
<type>_rfb._tcp</type> | |
<port>5901</port> | |
</service> | |
</service-group> |
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
sudo vim /etc/init.d/tightvncserver | |
case "$1" in | |
start) | |
su pi -c '/usr/bin/vncserver -geometry 1440x900' | |
echo "Starting VNC server " | |
;; | |
stop) | |
pkill vncserver | |
echo "VNC Server has been stopped (didn't double check though)" | |
;; | |
*) | |
echo "Usage: /etc/init.d/blah {start|stop}" | |
exit 1 | |
;; | |
esac | |
exit 0 |
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
- ssh [email protected] | |
1 sudo apt-get update | |
2 sudo apt-get install tightvncserver | |
3 vncserver :1 | |
4 sudo apt-get install netatalk | |
5 ifconfig | |
7 sudo apt-get install avahi-daemon | |
8 sudo update-rc.d avahi-daemon defaults | |
9 sudo vim /etc/avahi/services/afpd.service | |
10 sudo apt-get install vim | |
12 sudo /etc/init.d/avahi-daemon restart | |
13 sudo vim /etc/init.d/tightvncserver | |
15 sudo chmod +x /etc/init.d/tightvncserver | |
16 sudo pkill Xtightvnc | |
17 sudo /etc/init.d/tightvncserver start | |
22 sudo update-rc.d tightvncserver defaults | |
23 sudo vim /etc/avahi/services/rfb.service | |
24 sudo /etc/init.d/avahi-daemon restart | |
25 ifconfig | |
26 run raspi-config | |
27 raspi-config | |
28 sudo raspi-config | |
29 ifconfig | |
30 top | |
31 sudo apt-get update | |
32 sudo /etc/init.d/avahi-daemon restart | |
33 sudo /etc/init.d/tightvncserver start | |
34 sudo /etc/init.d/avahi-daemon restart | |
35 sudo apt-get update | |
36 sudo apt-get install openvpn | |
37 cd /etc/openvpn/ | |
38 sudo wget https://nordvpn.com/api/files/zip | |
39 sudo unzip zip | |
40 sudo openvpn de534.nordvpn.com.udp1194.ovpn | |
41 sudo /etc/init.d/tightvncserver start | |
42 sudo /etc/init.d/avahi-daemon restart | |
43 sudo apt install network-manager network-manager-gnome openvpn \openvpn-systemd-resolved network-manager-openvpn \network-manager-openvpn-gnome | |
44 sudo apt purge openresolv dhcpcd5 | |
45 sudo ln -sf /lib/systemd/resolv.conf /etc/resolv.conf | |
48 sudo openvpn uk941.nordvpn.com.udp1194.ovpn | |
59 sudo killall openvpn; sudo openvpn /etc/openvpn/us801.nordvpn.com.udp1194.ovpn | |
68 cd /etc/openvpn/ | |
69 sudo openvpn uk941.nordvpn.com.udp1194.ovpn | |
70 sudo /etc/init.d/tightvncserver start | |
71 sudo /etc/init.d/avahi-daemon restart | |
72 sudo killall openvpn; sudo openvpn /etc/openvpn/us801.nordvpn.com.udp1194.ovpn | |
77 sudo nano /etc/openvpn/auth.txt | |
78 sudo cp /etc/openvpn/de435.nordvpn.com.tcp443.ovpn /etc/openvpn/de.conf | |
79 sudo nano /etc/openvpn/de.conf | |
80 sudo nano /etc/default/openvpn | |
81 sudo reboot | |
82 sudo nano /etc/dhcpcd.conf | |
83 sudo reboot | |
92 sudo nano /etc/resolv.conf | |
93 sudo chattr +i /etc/resolv.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment