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
doc:raspi2 [2015/11/14 13:26]
stwn [Custom Configuration] update
doc:raspi2 [2015/11/14 23:30] (current)
stwn [Storage] minor fix
Line 54: Line 54:
     * Edit sshd_config and restart sshd.<​code>​$ sudo nano /​etc/​ssh/​sshd_config     * Edit sshd_config and restart sshd.<​code>​$ sudo nano /​etc/​ssh/​sshd_config
 PasswordAuthentication no</​code><​code>​$ sudo systemctl restart ssh</​code>​ PasswordAuthentication no</​code><​code>​$ sudo systemctl restart ssh</​code>​
-===== Pagekite ===== 
- 
-$ wget -c https://​pagekite.net/​pk/​pagekite.py 
-$ chmod +x pagekite.py 
-$ nano .pagekite.rc 
-$ ./​pagekite.py 
-$ screen -S pagekite 
- 
-When you upgrade the Raspbian to jessie, you will get an error message:<​code>​Traceback (most recent call last): 
-  File "​tmp/​scr/​pagekite.py",​ line 249, in <​module>​ 
-    exec __FILES["​.SELF/​sockschain/​__init__.py"​] in sys.modules["​sockschain"​].__dict__ 
-  File "<​string>",​ line 130, in <​module>​ 
-  File "<​string>",​ line 132, in SSL 
-AttributeError:​ '​module'​ object has no attribute '​PROTOCOL_SSLv3'</​code>​Install python-openssl 
- 
-  * Error<​code>​debug2:​ ssh_connect:​ needpriv 0 
-debug1: Connecting to somesite.pagekite.me [XXX.YYY.ZZZ.22] port 22. 
-debug1: Connection established. 
-debug1: SELinux support disabled 
-debug1: key_load_public:​ No such file or directory 
-debug1: identity file /​home/​stwn/​.ssh/​id_rsa type -1 
-debug1: key_load_public:​ No such file or directory 
-debug1: identity file /​home/​stwn/​.ssh/​id_rsa-cert type -1 
-debug1: key_load_public:​ No such file or directory 
-debug1: identity file /​home/​stwn/​.ssh/​id_dsa type -1 
-debug1: key_load_public:​ No such file or directory 
-debug1: identity file /​home/​stwn/​.ssh/​id_dsa-cert type -1 
-debug1: key_load_public:​ No such file or directory 
-debug1: identity file /​home/​stwn/​.ssh/​id_ecdsa type -1 
-debug1: key_load_public:​ No such file or directory 
-debug1: identity file /​home/​stwn/​.ssh/​id_ecdsa-cert type -1 
-debug1: key_load_public:​ No such file or directory 
-debug1: identity file /​home/​stwn/​.ssh/​id_ed25519 type -1 
-debug1: key_load_public:​ No such file or directory 
-debug1: identity file /​home/​stwn/​.ssh/​id_ed25519-cert type -1 
-debug1: Enabling compatibility mode for protocol 2.0 
-debug1: Local version string SSH-2.0-OpenSSH_6.7p1 Debian-3 
-ssh_exchange_identification:​ Connection closed by remote host</​code>​ 
-  * Debug with /​usr/​sbin/​sshd -ddd -p 22 and try to connect to it. 
-  * Install corkscrew and add .ssh/​config:<​code>​Host *.pagekite.me 
-CheckHostIP no 
-ProxyCommand /​usr/​bin/​corkscrew %h 443 %h %p</​code>​ 
-  * prun.sh 
- 
-===== Syncthing ===== 
- 
-$ wget -c https://​github.com/​syncthing/​syncthing/​releases/​download/​v0.10.29/​syncthing-linux-arm-v0.10.29.tar.gz 
-$ wget -c https://​github.com/​syncthing/​syncthing/​releases/​download/​v0.10.29/​sha1sum.txt.asc 
-$ cat sha1sum.txt.asc |grep arm 
-$ sha1sum syncthing-linux-arm-v0.10.29.tar.gz &gt; syncthing-linux-arm-v0.10.29.tar.gz.sha1 
-$ tar zxvf syncthing-linux-arm-v0.10.29.tar.gz 
-$ mv syncthing-linux-arm-v0.10.29 syncthing 
-$ syncthing/​syncthing 
-$ cd .config/​syncthing/​ 
-$ nano config.xml 
-$ screen -S syncthing 
  
 ===== Debmirror ===== ===== Debmirror =====
  
-  * $ sudo apt-get install debmirror +  * Install debmirror. <​code>​$ sudo apt-get install debmirror</​code>​ 
-  * $ nano debmirror-jessie +  * Edit debmirror scripts. <​code>​$ nano debmirror-debian 
-  * You can find the Debian and Raspbian archive keyrings on their official ​repository ​respectively +$ nano debmirror-raspbian</​code>​ 
-  * $ gpg --keyring debian-archive-keyring.gpg --export|gpg --no-default-keyring --keyring trustedkeys.gpg --import +  * Find the Debian and Raspbian archive keyrings on their official ​repositories ​respectively. 
-  ​* ​$ gpg --keyring raspbian.public.key --export|gpg --no-default-keyring --keyring trustedkeys.gpg --import +  * Add Debian and Raspbian archive keyrings. <​code>​$ gpg --keyring debian-archive-keyring.gpg --export|gpg --no-default-keyring --keyring trustedkeys.gpg --import 
-  * gpg --list-keys --with-colons +$ gpg --keyring raspbian.public.key --export|gpg --no-default-keyring --keyring trustedkeys.gpg --import</​code>​ 
-  * $ debmirror-raspbian +  * List the added keys. <​code>​$ ​gpg --list-keys --with-colons</​code>​ 
-  * $ nano /​etc/​cron.d/​debmirror or /​etc/​crontab +  * Test the scripts by running them. 
-  * $ sudo systemctl restart cron.service +  * Add crontab. <​code>​$ nano /​etc/​cron.d/​debmirror or /​etc/​crontab</​code>​ 
-  * $ sudo systemctl disable bla.service+  * Restart crontab service. <​code>​$ sudo systemctl restart cron</​code>​
 ===== Storage ===== ===== Storage =====
  
-# mkfs.ext4 /dev/sda1 +  * # mkfs.ext4 /dev/sda1 
-# mkdir /​media/​dir +  ​* ​# mkdir /​media/​dir 
-# mount /dev/sda1 /​media/​dir/​ +  ​* ​# mount /dev/sda1 /​media/​dir/​ 
-# nano /etc/fstab+  ​* ​# nano /etc/fstab
  
 ===== Cron ===== ===== Cron =====
 
doc/raspi2.1447507604.txt.gz · Last modified: 2015/11/14 13:26 by stwn · [Old revisions]
Recent changes RSS feed Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki