Go to advanced search

by Bosse_B
Sun Nov 22, 2020 11:58 am
Forum: General discussion
Topic: Can apache on rpi4 serve markdown documents?
Replies: 18
Views: 671

Re: Can apache on rpi4 serve markdown documents?

I got it working now except for the style sheet, which I downloaded from github separately. The problem is that I have a lot of RPi code samples in my md documents and these are written within backtick markers ( ``` ) like this example: Alt 2: Edit files manually (works on all Linux machines): ``` s...
by Bosse_B
Sat Nov 21, 2020 11:44 pm
Forum: General discussion
Topic: Can apache on rpi4 serve markdown documents?
Replies: 18
Views: 671

Re: Can apache on rpi4 serve markdown documents?

dickon wrote:
Sat Nov 21, 2020 11:24 pm
So you hadn't even bothered looking at DougieLawson's suggestion, then.
Yes, I had.
But the instructions on github were not full so I did not know how to go about it.
With the Stack Overflow answer the way to install it became clear.
Incomplete suggestion, at least for a dummie like me...
by Bosse_B
Sat Nov 21, 2020 10:52 pm
Forum: General discussion
Topic: Can apache on rpi4 serve markdown documents?
Replies: 18
Views: 671

Re: Can apache on rpi4 serve markdown documents?

I was advised by my son-in-law to have a look at this stack overflow thread and lo-and-behold there was a stepwise instruction on how to create and install a markdown module in apache2! Have a look at the answer in this thread.... I replicated the instructions as well as I understand them but unfort...
by Bosse_B
Sat Nov 21, 2020 12:50 pm
Forum: General discussion
Topic: Can apache on rpi4 serve markdown documents?
Replies: 18
Views: 671

Re: Can apache on rpi4 serve markdown documents?

It looks like there's a mod_perl2 handler -- a trivial google will find it -- which will render the thing before sending it to the browser, which should do what you want for reading. Otherwise, try a Wiki engine: most of them use a variant of it. By what I can see mod_perl2 is a module that makes A...
by Bosse_B
Sat Nov 21, 2020 10:07 am
Forum: General discussion
Topic: Can apache on rpi4 serve markdown documents?
Replies: 18
Views: 671

Re: Can apache on rpi4 serve markdown documents?

Revitalizing this thread again since I am now overwhelmed with a lot of new md files where I keep notes/instructions/howtos on my laptop. I can open them in Firefox using URL:s pointing to the local file system. It works reasonably with the MD plug-in to Firefox, but it is a PITA to have to add file...
by Bosse_B
Thu Nov 19, 2020 8:12 pm
Forum: General discussion
Topic: How do I stop a script started from 'at'?
Replies: 6
Views: 213

Re: How do I stop a script started from 'at'?

Find PID of your process from "ps aux" and then "kill -SIGINT PIDgoeshere" After starting the script that calls youtube-dl via at: $ ls -la -rw-rw-r-- 1 bosse bosse 177471536 Nov 19 21:00 msnbcstr_2020119_2013.mp4.part -rw-rw-r-- 1 bosse bosse 1835056 Nov 19 21:00 msnbcstr_2020119_2100.mp4.part <==...
by Bosse_B
Thu Nov 19, 2020 7:31 pm
Forum: General discussion
Topic: How do I stop a script started from 'at'?
Replies: 6
Views: 213

Re: How do I stop a script started from 'at'?

Why does this run for 6 hours anyway? You trying to download a livestream or something like that? The 6 hours is a max time for youtube-dl as far as I can see, it is not something I have set. So when I could not stop it after starting via at, I waited until the 6h had passed and sure enough it stop...
by Bosse_B
Thu Nov 19, 2020 6:33 pm
Forum: General discussion
Topic: How do I stop a script started from 'at'?
Replies: 6
Views: 213

Re: How do I stop a script started from 'at'?

Find PID of your process from "ps aux" and then "kill -SIGINT PIDgoeshere" killall also works without the ps step but you need to be careful with the name or you'll send signals to the wrong processes. There are multiple related PID. My script calls youtube-dl, which probably calls ffmpeg (since I ...
by Bosse_B
Thu Nov 19, 2020 4:20 pm
Forum: General discussion
Topic: How do I stop a script started from 'at'?
Replies: 6
Views: 213

How do I stop a script started from 'at'?

I have a script that simplifies a command for downloads I often use. Now I wanted to start it at a selected time in the middle of the night, so I used the at command to set it up to start at the early time. The script when executed in a command window, like PuTTY from Windows to RaspberryPi, runs un...
by Bosse_B
Sun Nov 15, 2020 9:07 am
Forum: General discussion
Topic: How to secure RPi device WiFi access?
Replies: 4
Views: 239

Re: How to secure RPi device WiFi access?

OK, I have sent back a number of questions to sales about this. I also did not really understand what they are worried about concerning the WiFi, so they have to expand on that. But one part of this might be a concern about someone duplicating the system illegally and here I think the only remedy is...
by Bosse_B
Fri Nov 13, 2020 4:52 pm
Forum: General discussion
Topic: How to secure RPi device WiFi access?
Replies: 4
Views: 239

How to secure RPi device WiFi access?

We are looking at using an RPi4 as the controller of a system which we want to lock down to avoid piracy. Now the question has arisen if there is some way we can configure the WiFi (the RPi will act as an access point) such that the SSID and the passphrase would not be stored in clear text in any co...
by Bosse_B
Tue Oct 27, 2020 6:10 pm
Forum: General discussion
Topic: Running a Digi Xbee module to get IoT connectivity?
Replies: 0
Views: 74

Running a Digi Xbee module to get IoT connectivity?

I am looking for ways to get my RPi project connected to the Internet whilst being on batteries in the wilderness. I have seen that Digihas a range of products named XBee which are modules for IoT use and I am wondering if someone here has experience or knowledge about if such a device can be used t...
by Bosse_B
Wed Oct 21, 2020 3:52 pm
Forum: General discussion
Topic: 4G broadband dongle attached ti RPi4 - how to enable network
Replies: 11
Views: 510

Re: 4G broadband dongle attached ti RPi4 - how to enable network

I am back at this now but with an older Huawei 4G modem E3276. I don't know if it has been mentioned but one IMPORTANT thing about picocom: How to exit picocom? I have googled and found a page where they suggested Ctrl-A X, but that does not work. In the end I unplugged the modem from the RPi USB an...
by Bosse_B
Wed Oct 21, 2020 9:05 am
Forum: Raspberry Pi OS
Topic: Scripting problem extracting IP address
Replies: 27
Views: 2354

Re: Scripting problem extracting IP address

OK, fair enough! :D :P
by Bosse_B
Wed Oct 21, 2020 5:54 am
Forum: Raspberry Pi OS
Topic: Scripting problem extracting IP address
Replies: 27
Views: 2354

Re: Scripting problem extracting IP address

Did you notice the date of the post you commented?
It is from June 2018 - 2 years 4 months ago....
by Bosse_B
Mon Oct 19, 2020 4:51 pm
Forum: General discussion
Topic: Any way to reach an RPi sitting behind an ISP NAT router?
Replies: 11
Views: 359

Re: Any way to reach an RPi sitting behivd an ISP NAT router?

You could try a reverse vpn tunnel. I managed to do this in a case where my isp didn't have a public ip for my rpi. Can't remember the guide I used but it is possible. Basically the raspberry initiates a vpn connection to your computer instead of the other way around. I helped a friend of mine set ...
by Bosse_B
Sun Oct 18, 2020 8:08 pm
Forum: General discussion
Topic: Any way to reach an RPi sitting behind an ISP NAT router?
Replies: 11
Views: 359

Re: Any way to reach an RPi sitting behind an ISP NAT router?

That might be possible for the desktop, but I have services on the RPi, which I want to be reachable from outside the internal network. For example I have written a system that manages external equipment attached to the RPi and it uses a client interface over TCP/IP sockets that I have also written....
by Bosse_B
Sun Oct 18, 2020 7:41 pm
Forum: General discussion
Topic: Any way to reach an RPi sitting behind an ISP NAT router?
Replies: 11
Views: 359

Any way to reach an RPi sitting behind an ISP NAT router?

I have an RPi unit located in my vacation home with a mobile broadband router as Internet connection. This RPi is managing a small monitoring system for temperatures etc in the house as well as intrusion detection. I have set up the router with port forward of the SSH port to the RPi and it has work...
by Bosse_B
Sat Oct 10, 2020 12:43 pm
Forum: General discussion
Topic: Problem using serial port /dev/ttyAMA0
Replies: 14
Views: 488

Re: Problem using serial port /dev/ttyAMA0

It's really just use raspi-config to set it up. I have 2 RPi units for this project: - One is my development device, an RPi4B in my office - The other is an RPi3B hooked up to the prototype test equipment at a remote location Now after the exercise above I have checked the state of the remote devic...
by Bosse_B
Sat Oct 10, 2020 8:40 am
Forum: General discussion
Topic: Problem using serial port /dev/ttyAMA0
Replies: 14
Views: 488

Solved: Problem using serial port /dev/ttyAMA0

Yes, I definitely did not know all the things you need to do in order to get the serial port working!
Needs to go into a setup document for the project.
:D
by Bosse_B
Fri Oct 09, 2020 8:37 pm
Forum: General discussion
Topic: Problem using serial port /dev/ttyAMA0
Replies: 14
Views: 488

Re: Problem using serial port /dev/ttyAMA0

if you unplug the adapter on the gpio header, and scope the tx pin again, does it give different results? maybe the rx and tx are swapped, and you have 2 tx's fighting over the line? :shock: :oops: :oops: :oops: After some work on re-configuring the RPi4 by editing the config.txt file and shutting ...
by Bosse_B
Fri Oct 09, 2020 2:29 pm
Forum: General discussion
Topic: Problem using serial port /dev/ttyAMA0
Replies: 14
Views: 488

Re: Problem using serial port /dev/ttyAMA0

I can't do the pin shorting because there is a board plugged into the header already. It carries the digital to RS232 converter plus all the relays and stuff. What happens when I try minicom: $ minicom -D /dev/ttyS0 -bash: minicom: command not found Seems like this is (no longer) part of PiOS... EDI...
by Bosse_B
Fri Oct 09, 2020 12:05 pm
Forum: General discussion
Topic: Problem using serial port /dev/ttyAMA0
Replies: 14
Views: 488

Re: Problem using serial port /dev/ttyAMA0

Now I have done all of this and used /dev/serial0 as the port and yet it does not work... Must get down to low-level debugging with an oscilloscope next... Is there some simple way to circumvent software and just from the command prompt make the serial port send out some text? I have never done that...
by Bosse_B
Fri Oct 09, 2020 8:41 am
Forum: General discussion
Topic: Problem using serial port /dev/ttyAMA0
Replies: 14
Views: 488

Re: Problem using serial port /dev/ttyAMA0

did you set enable_uart=1 in config.txt? No it was not set.. did you read http://raspberrypi.org/documentation/configuration/uart.md ? I was not aware of this document... I have now looked at it and I must say I am a bit confused still. Seems like bluetooth is involved too (I never use BT), could t...
by Bosse_B
Fri Oct 09, 2020 7:55 am
Forum: General discussion
Topic: Problem using serial port /dev/ttyAMA0
Replies: 14
Views: 488

Problem using serial port /dev/ttyAMA0

I have an application that uses serial communications and it can be configured to use 5 different ports. 4 of these are USB serial adapters connected to one of the 4 USB sockets on the RPi4. I have added rules on my RPi4 to make the serial ports available with device names associated to the USB sock...

Go to advanced search