Go to advanced search

by Bosse_B
Fri Jul 27, 2018 6:38 am
Forum: Raspbian
Topic: OpenVPN connection from Raspbian to remote server
Replies: 7
Views: 224

Re: OpenVPN connection from Raspbian to remote server

I might add that this particular RPi box runs Jessie...

Code: Select all

lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 8.0 (jessie)
Release:        8.0
Codename:       jessie
by Bosse_B
Thu Jul 26, 2018 4:06 pm
Forum: Raspbian
Topic: OpenVPN connection from Raspbian to remote server
Replies: 7
Views: 224

Re: OpenVPN connection from Raspbian to remote server

Are you talking about logs on the VPN server (Ubuntu) or client (Raspbian) Where should I set the verb, on the server or in the ovpn file? My suggestion was to add "verb 6" to your client config file and see if the process is wedged or if it is alive but fails to connect. Looking at the server log ...
by Bosse_B
Thu Jul 26, 2018 9:49 am
Forum: Raspbian
Topic: OpenVPN connection from Raspbian to remote server
Replies: 7
Views: 224

Re: OpenVPN connection from Raspbian to remote server

Look at the log and push to "verb 6" or more, there might be some information there. Are you talking about logs on the VPN server (Ubuntu) or client (Raspbian) Where should I set the verb, on the server or in the ovpn file? If this machine is already used for other tunnels, make sure this config do...
by Bosse_B
Wed Jul 25, 2018 10:35 pm
Forum: Raspbian
Topic: OpenVPN connection from Raspbian to remote server
Replies: 7
Views: 224

Re: OpenVPN connection from Raspbian to remote server

Well, I opened a command prompt and used the command: sudo openvpn--config /home/pi/xxxx.ovpn I had to type in the encryption password and then the connection completed. At this stage the command window did not return to the prompt but stayed on a blank line. So I started another command window and ...
by Bosse_B
Wed Jul 25, 2018 8:55 pm
Forum: Raspbian
Topic: OpenVPN connection from Raspbian to remote server
Replies: 7
Views: 224

OpenVPN connection from Raspbian to remote server

I have an OpenVPN server at my home LAN (Ubuntu Server 16.04-3 LTS). I can connect fine from my Windows clients and also from my phone and tablet. But for the life of me I cannot find out how I can connect from a Raspbian box (RPi3B)... This RPi3B box runs an openvpn server itself which I use to con...
by Bosse_B
Sun Jun 17, 2018 5:09 pm
Forum: Raspbian
Topic: Scripting problem extracting IP address
Replies: 23
Views: 642

Re: Scripting problem extracting IP address

My bad! I thought that I had upgraded all of my RPi3 units to Stretch by now, but: cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)" NAME="Raspbian GNU/Linux" VERSION_ID="8" VERSION="8 (jessie)" ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.ras...
by Bosse_B
Sun Jun 17, 2018 3:04 pm
Forum: Raspbian
Topic: Scripting problem extracting IP address
Replies: 23
Views: 642

Re: Scripting problem extracting IP address

This is the exact replies to your test commands as copied from the terminal ("nothing" describes it well): [email protected]:~$ ifconfig wlan0 | awk 'sub(/.*inet addr:/,"") { print $1 }' [email protected]:~$ ifconfig wlan0 | grep "inet addr:" [email protected]:~$ awk -W version mawk 1.3.3 Nov 1996, Copyright...
by Bosse_B
Sun Jun 17, 2018 2:20 pm
Forum: Raspbian
Topic: Scripting problem extracting IP address
Replies: 23
Views: 642

Re: Scripting problem extracting IP address

Gosh, stirred up some discussion... Thanks to all participants! My problem is solved and I don't need any efficiency improvement, after all it runs once 60 seconds after boot... Summary: What I discovered when I fired up the OSMC box at my summer home was that the IP address was not part of the emai...
by Bosse_B
Sun Jun 17, 2018 8:39 am
Forum: Raspbian
Topic: Scripting problem extracting IP address
Replies: 23
Views: 642

Re: Scripting problem extracting IP address

Thanks, that fixed it!
by Bosse_B
Sun Jun 17, 2018 5:57 am
Forum: Raspbian
Topic: Scripting problem extracting IP address
Replies: 23
Views: 642

Re: Scripting problem extracting IP address

Thanks, this worked as used in my script: IPAddrWiFi=$(ifconfig wlan0 | grep inet | sed 's/addr://' | awk '{ print $2 }') However this also worked: IPAddrWiFi=$(ifconfig wlan0|sed -n "s/^ *inet [^0-9.]*\([0-9.]*\) .*$/\1/p") What happened when I tested the last line above was that I had a typo in th...
by Bosse_B
Sat Jun 16, 2018 8:41 pm
Forum: Raspbian
Topic: Scripting problem extracting IP address
Replies: 23
Views: 642

Re: Scripting problem extracting IP address

When I add the trailing ) on the Raspbian version of the script I get this output when echoing the WiFi IP address: WiFi addr: 192.168.117.174 Trying the hexdump On OSMC: ifconfig wlan0 | grep -m 1 inet | hexdump -C -bash: hexdump: command not found I could not install hexdump via apt-get on OSMC: E...
by Bosse_B
Sat Jun 16, 2018 6:25 pm
Forum: Raspbian
Topic: Scripting problem extracting IP address
Replies: 23
Views: 642

Re: Scripting problem extracting IP address

I get this reply when running on both Raspbian and OSMC: ./ipreport.sh: line 17: unexpected EOF while looking for matching `)' The script contains this on that line: IPAddrWiFi=$(ifconfig wlan0|sed -n "s/^ *inet [^0-9.]*\([0-9.]*\) .*$/\1/p" EDIT: If I add a trailing closing ) at the end of the line...
by Bosse_B
Sat Jun 16, 2018 5:29 pm
Forum: Raspbian
Topic: Scripting problem extracting IP address
Replies: 23
Views: 642

Scripting problem extracting IP address

I have a script that extracts the IP address and MAC of eth0 and wlan0 and sends this to my website. I am putting this script on every RPi box I build so I will get a report of its IP address so I can connect to it when it is moved between networks. This has worked very well for several years on a h...
by Bosse_B
Sat Jun 02, 2018 1:11 pm
Forum: Raspbian
Topic: Jessie 2 Stretch questions
Replies: 8
Views: 343

Re: Jessie 2 Stretch questions

Do you have any scripts running or scheduled that access the network devices like eth0? When I installed a new RPi using the stretch image all of my scripts had problems until I realized that Stretch had changed the names of the network interfaces to something totally undecipherable... Had to google...
by Bosse_B
Fri Jun 01, 2018 6:40 pm
Forum: Raspbian
Topic: Jessie 2 Stretch questions
Replies: 8
Views: 343

Re: Jessie 2 Stretch questions

OK, thanks. I will leave it alone for the time being then...
by Bosse_B
Fri Jun 01, 2018 5:54 pm
Forum: Raspbian
Topic: Jessie 2 Stretch questions
Replies: 8
Views: 343

Re: Jessie 2 Stretch questions

OK, so if I do dist-upgrade what will happen is that Jessie will go to the latest release, right? This is what it looks like now: $ uname -a Linux rpi3-aspo 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Raspbian Desc...
by Bosse_B
Fri Jun 01, 2018 3:58 pm
Forum: Raspbian
Topic: Jessie 2 Stretch questions
Replies: 8
Views: 343

Jessie 2 Stretch questions

I have an RPi3 headless system running on a remote location accessible by OpenVPN (RPi3 is the server) and SSH through the router. I feel like it should be upgraded to Stretch, but I don't want to cause a major hangup in the process, for example if scripts relying on network names fail etc. In that ...
by Bosse_B
Fri May 25, 2018 12:04 pm
Forum: Raspbian
Topic: Moving SD-card from RPi3B to RPi3B+ issues?
Replies: 7
Views: 614

Re: Moving SD-card from RPi3B to RPi3B+ issues?

I have done the dist-upgrade now and moved the card to the RPi3B+ and started it. Seems to have worked OK as far as I can see. However, the Pi now has a different IP address than it had before... This is because there is a reservation in my router to hand out address x.y.z.173 to this unit, but sinc...
by Bosse_B
Fri May 25, 2018 5:46 am
Forum: Raspbian
Topic: Moving SD-card from RPi3B to RPi3B+ issues?
Replies: 7
Views: 614

Re: Moving SD-card from RPi3B to RPi3B+ issues?

Do you mean that even if I have Stretch (which I wrote in my original post) then I still need to start from scratch and download the new Raspbian image because of the "significant hardware changes"? I am getting confused by this statement. I want to use my old system but on the new platform since I ...
by Bosse_B
Thu May 24, 2018 9:53 pm
Forum: Raspbian
Topic: Moving SD-card from RPi3B to RPi3B+ issues?
Replies: 7
Views: 614

Moving SD-card from RPi3B to RPi3B+ issues?

I just noticed the new RPi3B+ and I am going to try it out tomorrow. I have an SD-card which I used in an RPi3 last summer up until October when I used that RPi as a backup OpenVPN server using a different SD-card. It is configured with Raspbian Stretch. Can I use the SD-card from the RPi3B in the R...
by Bosse_B
Sat Feb 24, 2018 9:04 pm
Forum: Raspbian
Topic: Different key maps for users in console
Replies: 3
Views: 295

Re: Different key maps for users in console

OK, that makes sense! So if the RPi is accessed via PuTTY all is well. But if one works on the console of the RPi (display connected to the HDMI and a keyboard attached via USB) the characters actually appearing will be dependent on the keyboard settings. Very good, one less thing to worry about. Th...
by Bosse_B
Sat Feb 24, 2018 8:35 am
Forum: Raspbian
Topic: Different key maps for users in console
Replies: 3
Views: 295

Different key maps for users in console

I want to set up my multiple systems such that if I log on myself the keyboard should be set to Swedish but if the pi user logs on then the keyboard should be US English. Is this possible or must each user run some keyboard switch command after logging on? If so what is the command? And what will th...
by Bosse_B
Sun Feb 04, 2018 5:03 pm
Forum: Graphics, sound and multimedia
Topic: Newbie on audio: How do I get a mini usb mic to record audio
Replies: 4
Views: 1241

Re: Newbie on audio: How do I get a mini usb mic to record audio

Thanks, but as I said I am running a headless RPi, so the only user interface is an SSH command prompt via PuTTY. In most places I have looked the descriptions assume I have a GUI so there are screenshots with buttons to click, boxes to check etc. This does not apply for my application, though. I th...
by Bosse_B
Sat Feb 03, 2018 11:05 am
Forum: Graphics, sound and multimedia
Topic: Newbie on audio: How do I get a mini usb mic to record audio
Replies: 4
Views: 1241

Re: Newbie on audio: How do I get a mini usb mic to record audio

So I found that there is a description page for arecord that supplies an example command using more arguments, so I tried with this instead: arecord -D plughw:1,0 -d 5 -f S16_LE -c1 -r44100 test3.wav Now the recorded audio does not contain such a lot of noise, but it is still very low volume. The pa...
by Bosse_B
Fri Feb 02, 2018 11:17 pm
Forum: Graphics, sound and multimedia
Topic: Newbie on audio: How do I get a mini usb mic to record audio
Replies: 4
Views: 1241

Newbie on audio: How do I get a mini usb mic to record audio

I have gotten a few of these mini microphones in order to try to make a RPi3 able to record audio: https://i.ebayimg.com/images/g/0I0AAOSwB-1YrWK6/s-l500.jpg I am running the latest Raspbian Stretch and there is no screen attached (running headless). All commands are via PuTTY ssh console. I could d...

Go to advanced search