Go to advanced search

by thagrol
Sat Sep 21, 2019 11:57 am
Forum: Beginners
Topic: modifying files on a mounted network share
Replies: 2
Views: 63

Re: modifying files on a mounted network share

Is the windows server stopping me somehow? Very possibly. Windows and linux handle permissions very differently. What you see on linux is translated (and sometime fabricated) from the way windows does things. In a network environment, it's possible for the linux client to show remote files as write...
by thagrol
Sat Sep 21, 2019 11:52 am
Forum: Troubleshooting
Topic: VNC grey screen, x cursor, with android client, nothing helps
Replies: 2
Views: 25

Re: VNC grey screen, x cursor, with android client, nothing helps

Sounds like your vnc server has nothing to serve. A grey scrren with cursor is what you get from a X server (desktop) with nothing running on it.

check your vnc server config and try to st it to start the desktop on connection from a remote client.
by thagrol
Sat Sep 21, 2019 11:33 am
Forum: Networking and servers
Topic: How to use a fixed MAC address for usb tethering device?
Replies: 5
Views: 112

Re: How to use a fixed MAC address for usb tethering device?

The g_ether related stuff is for when using a pi zero as a USB ethernet device connected to a USB host. If I understand you use case, you'll have one, or more, android devices connected as USB slaves to a host Pi with each android device acting as an ethernet link. What you want to do may not be dir...
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: 307

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: 307

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: 140

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: 160

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: 160

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: 637

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: 637

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: 191

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: 123

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: 12349

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: 637

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: 398

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: 315

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: 315

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: 204

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: 219

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: 637

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: 204

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: 309

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: 219

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: 219

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: 315

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...

Go to advanced search