I'm trying to follow this guide to install an OpenVPN server
http://jamesslootweg.com/view/Using_you ... cess_point
but I'm having problems with practically everything.
I'm using Putty to connect (and WinSCP which would be easier to edit the files with but that doesn't have permission to edit anything so I can't do much with it). I had to run sudo vi pptpd.conf to be able to write that file but vi is acting up and keeps doing weird things, like when I'm typing an IP address, it will suddenly duplicate it about 20 times, so that I have to go to the end and delete all this (Backspace doesn't seem to work to delete either, so that makes it more fiddly), or sometimes typing . will make it create a new line and I can't find a way to delete these blank lines, which I don't suppose affects the functioning of the file but makes it look messy and it annoying.
I've got as far as editing /etc/rc.local but I can't edit that at all, even though I'm running su vi rc.local, as it says it's read-only.
I tried some of the things suggested in this thread but "script myerrors" gives "~bash: /usr/bin/script/: cannot execute binary file" and "sudo script myerrors" gives "/usr/bin/script/: Syntax error: word unexpected (expecting ")")".
I've copied some of the output from Putty below to show what I'm getting.
Using username "pi".
pi@192.168.1.71's password:
Linux doveman-VPN 3.6.11+ #538 PREEMPT Fri Aug 30 20:42:08 BST 2013 armv6l
Last login: Wed Nov 27 17:30:46 2013 from 192.168.1.64
pi@doveman-VPN ~ $ script myerrors
-bash: /usr/bin/script: cannot execute binary file
pi@doveman-VPN ~ $ sudo script myerrors
/usr/bin/script: 1: /usr/bin/script: Syntax error: word unexpected (expecting ")")
pi@doveman-VPN ~ $ su script myerrors
-bash: /bin/su: cannot execute binary file
pi@doveman-VPN ~ $ sudo su
/bin/su: 1: /bin/su: : not found
/bin/su: 2: /bin/su: -P,K?:OA!@nlVi mBoUL1.j=EhI5%[`)4C
$
kJ_bM9H7&
ELF(À®4u4 PuTTYPuTTY (¤f¤æ444 TTT°f°fìnìnìhEønøn|||DDQåtdRåtdìnìnìn/lib/arm-linux-gnueabihf/ld-linux.so.3GNUGNU¯ñsÉÕ0çÙ`çLWnapQZTe"W3-P,K?:OA!@nlVi: not found
/bin/su: 5: /bin/su: PuTTYPuTTYSyntax error: ")" unexpected
PuTTYPuTTYpi@doveman-VPN ~ $ PuTTYPuTTYPuTTYPuTTYPuTTYPuTTYsi
-bash: PuTTYPuTTYPuTTYPuTTYPuTTYPuTTYsi: command not found
pi@doveman-VPN ~ $ si
-bash: si: command not found
pi@doveman-VPN ~ $ su
-bash: /bin/su: cannot execute binary file
pi@doveman-VPN ~ $ script errors
-bash: /usr/bin/script: cannot execute binary file
pi@doveman-VPN ~ $ script myerrors
-bash: /usr/bin/script: cannot execute binary file
pi@doveman-VPN ~ $ su script myerrors
-bash: /bin/su: cannot execute binary file
pi@doveman-VPN ~ $ sudo script myerrors
/usr/bin/script: 1: /usr/bin/script: Syntax error: word unexpected (expecting ")") â÷ÿëÀå¤+
pi@doveman-VPN ~ $ lâ: not found ådøÿë$ /usr/bin/apt-get: 3:/usr/bin/apt-get: 4: /usr/bin/apt-get: Syntax error: Unterminated quoted string
pi@doveman-VPN ~ $ sudo passwordinstall LeaåÀad
sudo: password: command not found-get: 0 áà
pi@doveman-VPN ~ $ sudo password
sudo: password: command not found â÷ÿëÀå¤+
pi@doveman-VPN ~ $ aâ: not founde/upgrade/distådøÿë$de /usr/bin/apt-get: 3:/usr/bin/apt-get: 4: /usr/bin/apt-get: Syntax error: Unterminated quoted string
pi@doveman-VPN ~ $ sudo apt-get install joeåÀ
/usr/bin/apt-get: 1: /usr/bin/apt-get: 0 áà
EDIT: I think I'll write the wheezy image to the SD card and start again, following this guide this time
http://unvexed.blogspot.dk/2012/08/how- ... d-vpn.html
EDIT2: OK, great that worked. It's up and running now but I can only connect to the OpenVPN server using the LAN IP, not the WAN IP/Dynamic DNS, so there's obviously something about my BT Home Hub 3 router that's causing problems. Hopefully there's a fix as it's not much use otherwise!