Go to advanced search

by thagrol
Fri Sep 13, 2019 8:27 pm
Forum: Automation, sensing and robotics
Topic: How to connect different sensors in Caravan
Replies: 6
Views: 266

Re: How to connect different sensors in Caravan

A few more suggestions for you. On the software front, if you're happy using python have a look at gpiozero (https://gpiozero.readthedocs.io/en/stable/). That has built in support for a range of sensors and output devices. And example code. If you don't want to be running cables around your 'van to ...
by thagrol
Fri Sep 13, 2019 6:11 pm
Forum: Automation, sensing and robotics
Topic: How to connect different sensors in Caravan
Replies: 6
Views: 266

Re: How to connect different sensors in Caravan

How reecent is your caravan? And how upmarket? Touring or static? You may find that the onboard control systems already cover 1, 4, & 5. I'd advise against doing anything that involves mains voltage yourself unless you know exactly what you're doing. You don't want to injure yourself or knock out th...
by thagrol
Wed Sep 11, 2019 12:12 pm
Forum: Beginners
Topic: [SOLVED]How to "auto run" an executable file from rc.local ?
Replies: 6
Views: 135

Re: How to "auto run" an executable file from rc.local ?

No one has suggested the first step: capture the output and error message from your program. Change you rc.local entry to

Code: Select all

/var/www/html/4panel/exec_file > /tmp/exec_file.log 2>&1 &
Reboot then look at the contents of /tmp/exec_file.log
by thagrol
Wed Sep 11, 2019 11:46 am
Forum: Troubleshooting
Topic: [headless] Set usb0 ip in cmdline
Replies: 6
Views: 157

Re: [headless] Set usb0 ip in cmdline

Thanks! But I want to set it up before the first boot, in the cmdline.txt, I'm not at all sure that you can, and why do you need to? It wouldn't take effect until the network is up anyway. Is you aim to be able to write an SD card from an image then set a static IP address before ever inserting the...
by thagrol
Tue Sep 10, 2019 9:25 pm
Forum: Troubleshooting
Topic: [headless] Set usb0 ip in cmdline
Replies: 6
Views: 157

Re: [headless] Set usb0 ip in cmdline

Hi, I'm currently wondering how to setup a static IP for the USB OTG connection to my PI Zero W/ PI 4? I don't want to depend on the bonjour/ .local addresses, but rather have a static IP for the usb0 connection. Is it somehow possible to set a static IP for it in the cmdline in order to set it hea...
by thagrol
Mon Sep 09, 2019 3:35 pm
Forum: Advanced users
Topic: Network boot over WiFi
Replies: 19
Views: 616

Re: Network boot over WiFi

That's an interesting idea and could work although that brings back the SD card and increased chance of corruption that I was wanting to avoid. What I was hoping to do was to avoid corruption and having to get physical access to the Pis was to host the OS on a server of some description, have it bo...
by thagrol
Mon Sep 09, 2019 12:26 pm
Forum: Advanced users
Topic: Network boot over WiFi
Replies: 19
Views: 616

Re: Network boot over WiFi

A thought occurs. it should be possible to use a zeroW to boot anything that supports booting via USB mass storage over WiFi instead. It'd go something like this: Requirements A computer you want to netboot that supports USB mass storage booting A zeroW, uSD card, and cables A file server containing...
by thagrol
Sun Sep 08, 2019 3:34 pm
Forum: Networking and servers
Topic: USB Ethernet into Pi Zero W AP?
Replies: 5
Views: 176

Re: USB Ethernet into Pi Zero W AP?

I understand the article, but could it be used to connect a pi 1 to the pi 0 ap? No. 'Ethernet gadget' mode via the usb connector requires a usb cable. It will not give a path to the Access Point function on the RPiZero. To access the WiFi access point on your RPiZero you will need a device with a ...
by thagrol
Sun Sep 08, 2019 3:15 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C, SPI, Wake-up, GPIO in a project
Replies: 2
Views: 105

Re: I2C, SPI, Wake-up, GPIO in a project

I have a 2B set up with I2C enabled and a push button for wakeup here. Though I currently have no i2C devices connected, using the button to pull GPIO 3 low when shutdown but powered does boot the Pi as expected. The gpio-shutdown device tree overlay does not work on the default pin (GPIO 3) with I2...
by thagrol
Sat Sep 07, 2019 10:40 am
Forum: Compute Module
Topic: PI 4 Compute module with pci-e?
Replies: 45
Views: 12104

Re: PI 4 Compute module with pci-e?

Whiterat wrote:
Fri Sep 06, 2019 9:57 pm
However, ff there isn't room to expose PCIE over the SODIMM200 connector then the only *real* gains would be CPU and USB3 OTG - which then begs the question, does that alone warrant a new CM?
Let's not forget more RAM.
by thagrol
Fri Sep 06, 2019 12:57 pm
Forum: Advanced users
Topic: Network boot over WiFi
Replies: 19
Views: 616

Re: Network boot over WiFi

hippy wrote:
Fri Sep 06, 2019 11:39 am
https://ipxe.org
Interesting but looks like it's aimed at the x86 PC world :(
by thagrol
Fri Sep 06, 2019 11:07 am
Forum: Beginners
Topic: Want to Telnet from Android to Multiple Raspberry Pi's
Replies: 12
Views: 385

Re: Want to Telnet from Android to Multiple Raspberry Pi's

Use ssh rather than telnet. Telnet is plain text so easily monitored. ssh is encrypted so much more difficult to monitor.
by thagrol
Thu Sep 05, 2019 9:46 pm
Forum: Networking and servers
Topic: NGINX, SAMBA, USB drive Install order
Replies: 11
Views: 309

Re: NGINX, SAMBA, USB drive Install order

Are you planning to cache the map tiles on your own server? If you're not I can't see any advantage in going via your own server to get to OSM. You'll just slow things down for your clients. I'd also suggest that unless you're going to be putting a very large load onto their servers it's probably no...
by thagrol
Thu Sep 05, 2019 6:20 pm
Forum: Networking and servers
Topic: NGINX, SAMBA, USB drive Install order
Replies: 11
Views: 309

Re: NGINX, SAMBA, USB drive Install order

1) Mounting USB drives in fstab using the partition ID and the nofail option - use the output from the command blkid 2) Adding init=/bin/sh to config.txt if the mount fails and hangs your system It looks like item 1 is for automatically mounting the drive at start up which is preferred in this case...
by thagrol
Thu Sep 05, 2019 12:10 pm
Forum: General discussion
Topic: Raspberry PI as a Host to send data to PC
Replies: 4
Views: 201

Re: Raspberry PI as a Host to send data to PC

Why not setup SAMBA on your PI? you can make it as a file server. but either the USB2.0 ports or 100M network on RPI3 is too slow for file shareing applications. RPI4B seems better That's not any easier The OP may already have the socket based software. If so that would need a re-write. For sending...
by thagrol
Thu Sep 05, 2019 12:01 pm
Forum: Troubleshooting
Topic: [solved] No FSTAB error but entry not processed?
Replies: 9
Views: 209

Re: No FSTAB error but entry not processed?

Will restart and perform thargols proposal And it fails with "wrong fs type, bad option, bad superblock on /dev/sda2, missing codepage or helper program, or other error." That's what I'd expect if the drive is indeed formatted with ext4. The key thing is "bad option". The options "uid=1002,gid=1002...
by thagrol
Wed Sep 04, 2019 11:04 pm
Forum: Advanced users
Topic: Network boot over WiFi
Replies: 19
Views: 616

Re: Network boot over WiFi

With a wired connection you need physical access to the network to get in. With wifi you just need to sniff some packets and crack the password. Which is not specific to booting. If you're using WiFi you've already accepted this risk. Thus booting over WiFi is no more of a risk than doing anything ...
by thagrol
Wed Sep 04, 2019 10:51 pm
Forum: General discussion
Topic: Raspberry PI as a Host to send data to PC
Replies: 4
Views: 201

Re: Raspberry PI as a Host to send data to PC

lintdeveloper wrote:
Wed Sep 04, 2019 11:17 am
Hi guys, I want to setup my raspberry PI as a server to send data to laptop using socket connect do I setup my raspberry PI to as an hotspot first?
Only if you need to use WiFi and don't have a hotspot available.

If you do have an existing WiFi network just connect both Pi and laptop to that.
by thagrol
Wed Sep 04, 2019 10:46 pm
Forum: General discussion
Topic: raspbian stretch on rapi 3 not work on raspi 4
Replies: 7
Views: 299

Re: raspbian stretch on rapi 3 not work on raspi 4

1 does raspbian stretch run on raspi 4? No. 2 what wrong Stretch doesn't support the new hardware. and how to fix black screen trouble when raspbian stretch boots on raspi 4? Get the buster source code and the stretch source code. Backport the changes and recompile. I'm guessing that's not somethin...
by thagrol
Wed Sep 04, 2019 10:40 pm
Forum: Troubleshooting
Topic: [solved] No FSTAB error but entry not processed?
Replies: 9
Views: 209

Re: No FSTAB error but entry not processed?

So, auto can be used. It can, be don't rely on ubuntu documentation if using a different flavour of linux, e.g. Raspbian. I decided to replace the auto with ext4, which the partition is. But it is still not processed properly. My guess would be the options "uid=1002,gid=1002,umask=0022,dmask=0022"....
by thagrol
Wed Sep 04, 2019 10:33 pm
Forum: Troubleshooting
Topic: [solved] No FSTAB error but entry not processed?
Replies: 9
Views: 209

Re: No FSTAB error but entry not processed?

I don't think "auto" is a valid filesystem type. It is an option, but it is subsumed in option "defaults" if memory serves. I would try UUID=319d71bc-3d6e-48c2-a5c0-62152e5ce8d2 /media/FTP <FS_TYPE> defaults,nofail,uid=1002,gid=1002,umask=0022,dmask=0022,noatime 0 0 replacing <FS_TYPE> with the app...
by thagrol
Wed Sep 04, 2019 10:29 pm
Forum: Networking and servers
Topic: NGINX, SAMBA, USB drive Install order
Replies: 11
Views: 309

Re: NGINX, SAMBA, USB drive Install order

As Andyroo suggests get the HDD working first. This includes getting permissions set up. Next get Samba set up and working on your local network. Both read/write and read only. The last thing to do is to get the internet stuff set up. This is likely to be the most problematic. Some stuff to consider...
by thagrol
Wed Sep 04, 2019 10:00 pm
Forum: Advanced users
Topic: Network boot over WiFi
Replies: 19
Views: 616

Re: Network boot over WiFi

I would caution that, from a security perspective, booting over wifi is a really bad idea. Care to elaborate? I would think that booting over an encryted WiFI (WPA) network via a know AP would be no less secure than booting over a wired network. With the possible exception of a spoofed AP/SSID but ...
by thagrol
Wed Sep 04, 2019 11:48 am
Forum: Networking and servers
Topic: How much data each device use on my network ?
Replies: 3
Views: 174

Re: How much data each device use on my network ?

Firstly, I don't have your router so this is somewhat speculative. Your router won't be telling you about all data usage but only about internet data usage. Traffic between two machine on your network won't be counted. It can do this because all traffic to and from the internet goes through the rout...
by thagrol
Tue Sep 03, 2019 2:44 pm
Forum: Beginners
Topic: Running GUI Program through Something like Putty
Replies: 7
Views: 271

Re: Running GUI Program through Something like Putty

Due to your suggestion, I went looking up how to get and run mobaxterm. Yes, I can run mobaxterm on a windoze machine but not from my iPhone, Fire or ipad. Search the relevant app store for "X server" and/or "X11 server". Install onr of the apps that finds then use it in conjunction with putty or s...

Go to advanced search