Go to advanced search

by thagrol
Sun Jan 05, 2020 3:35 pm
Forum: Networking and servers
Topic: Issues with samba guest account
Replies: 22
Views: 735

Re: Issues with samba guest account

Last time I tried was on a 3B and now with a Pi 4 it gave a perception of slow with a new USB3 WD 5Tb external hard drive from/to a new 3900X PC with WD Black drives over a gigabit network. I'll do some tests and post here if you like. Do you have a link to your results so I can compare ? There's a...
by thagrol
Sun Jan 05, 2020 3:02 pm
Forum: Networking and servers
Topic: Issues with samba guest account
Replies: 22
Views: 735

Re: Issues with samba guest account

Last time I tried it (yesterday), minidlna was a cpu hog (96% and upwards cpu usage) and it failed to find any video. And yes, it was properly configured. Interesting, I'll re-try and let you know (I have just rebuilt) - however the minidlna log says it indexed all of the >4000 media I had , after ...
by thagrol
Sun Jan 05, 2020 10:55 am
Forum: Networking and servers
Topic: Connection with Windows Remote Deskop over internet fails
Replies: 2
Views: 143

Re: Connection with Windows Remote Deskop over internet fails

There's two things in that screen grab that leap out: You're connecting to the wrong port: 3350 not 3389 You're connecting to the wrong IP address. 127.0.0.1 is the loopback address. You're trying to connect to the machine you're running the RDP client on. Make sure you're using the same IP address ...
by thagrol
Sun Jan 05, 2020 12:36 am
Forum: Troubleshooting
Topic: Pi4 not booting after chmod command
Replies: 1
Views: 84

Re: Pi4 not booting after chmod command

Then in the terminal, I typed in sudo chmod -x /usr and my taskbar disappeared, and I wasn't able to open the main menu with the windows key and said permission was denied, I couldn't open another terminal window either, permission was denied for that as well. I typed in 'reboot' in the terminal wi...
by thagrol
Sun Jan 05, 2020 12:12 am
Forum: Troubleshooting
Topic: Autossh in RC.local not working
Replies: 17
Views: 362

Re: Autossh in RC.local not working

It's probably running before the network is up. When you say "I tried using sleep", what exactly did you try? How long did you have it sleep for? First thing to do is to remove "sudo" as you don't need it. rc.local is run by root. Next add some logging: sh /home/pi/autossh_startup.sh > /home/pi/auto...
by thagrol
Sat Jan 04, 2020 12:50 pm
Forum: Networking and servers
Topic: Issues with samba guest account
Replies: 22
Views: 735

Re: Issues with samba guest account

Basically, I want gmsguest to be a login I give to friends who can play the videos on the server. I have found that samba is particularly slow, for some reason. Especially when copying large video files around. Are you sure samba is the problem? There are many factor that can affect transfer speeds...
by thagrol
Fri Jan 03, 2020 4:09 pm
Forum: Beginners
Topic: Getting the Pi's camera to work
Replies: 4
Views: 218

Re: Getting the Pi's camera to work

Two other things to check:
  1. Have you enabled the camera via

    Code: Select all

    sudo raspi-config
  2. Have you allocated enough RAM to the GPU?
by thagrol
Fri Jan 03, 2020 4:05 pm
Forum: Python
Topic: Python library to get EXIF tags from camera?
Replies: 6
Views: 461

Re: Python library to get EXIF tags from camera?

AIUI, EXIF tags are a property of the image file not of the camera. What are you actually wanting to get from the camera? Have you tried RPF/RPT's picamera module? https://picamera.readthedocs.io/en/release-1.13/index.html https://www.google.com/search?q=read+exif+tags+python&oq=read+exif+tags+python
by thagrol
Fri Jan 03, 2020 12:09 pm
Forum: Troubleshooting
Topic: Managing permissions for devices
Replies: 2
Views: 133

Re: Managing permissions for devices

Reformat the drives as ext4 and everything will work as expected. Possibly not. Won't permissions on the mounted device need to be set correctly first? If you insist on leaving them as FAT, exFAT or NTFS then the permissions are set on the mount command. There are ugly hacks you can do with uid= an...
by thagrol
Fri Jan 03, 2020 12:00 pm
Forum: Advanced users
Topic: Battery powered webcam - how increase boot speed
Replies: 3
Views: 160

Re: Battery powered webcam - how increase boot speed

however, it takes approximately 55 seconds from the transistor to turn on the GPIO pin. Is it possible to speed up even more? Last project I needed fast booting for I ended up using a custom OS build via buildroot (https://buildroot.org/). From power on to starting the python script was two to thre...
by thagrol
Fri Jan 03, 2020 11:35 am
Forum: Networking and servers
Topic: Issues with samba guest account
Replies: 22
Views: 735

Re: Issues with samba guest account

If you are going to go down the guest access path then Thagrol's example is a good starting point, it just requires a few mods :D Oops. I bow to your superior knowledge sir. Though in my defense (weakly if at all), that was copied from the OP's config. That said, I often fail to remember what the d...
by thagrol
Thu Jan 02, 2020 11:09 pm
Forum: Networking and servers
Topic: Issues with samba guest account
Replies: 22
Views: 735

Re: Issues with samba guest account

Well, if you're gonna do this I'd suggest doing it "properly". That means one of two ways: Use samba's built in guest access. An smb.conf similar to this should do it (assuming you're happy with default options for eveything else). [global] map to guest = bad user [gmsguest] path = /media/pi/Media s...
by thagrol
Thu Jan 02, 2020 12:54 pm
Forum: Beginners
Topic: USB-C Hub?
Replies: 3
Views: 203

Re: USB-C Hub?

Now the playfulness and testing is over and I've decided to make it into a NAS, even with 2 usb3.0 and 2 usb2.0 ports, and a 7 port usb3 hub I am just not getting enough speed out of it. That's not really surprising. The USB controller is connected to the CPU via a single PCIe lane that tops out at...
by thagrol
Thu Jan 02, 2020 12:32 pm
Forum: Other projects
Topic: Making an avionics package for far 103 aircraft.
Replies: 12
Views: 607

Re: Making an avionics package for far 103 aircraft.

Just an FYI, FAR103 is the FAA's classification in the USA of a type of aircraft that by definition, doesn't have instruments to start with, so he won't be hiding or blocking his vision to existing instruments. Also, by definition, if you fall under FAR103 you aren't allowed to carry passengers. An...
by thagrol
Thu Jan 02, 2020 1:43 am
Forum: Networking and servers
Topic: Issues with samba guest account
Replies: 22
Views: 735

Re: Issues with samba guest account

What LTolledo said plus: In the samba world that isn't a guest share. It's a standard samba share that has been restricted to access with a single user account. Shares are not accounts. They're parts of you directory hierarchy that have been shared to other machines on your network via samba. Accoun...
by thagrol
Wed Jan 01, 2020 12:40 am
Forum: Other projects
Topic: Making an avionics package for far 103 aircraft.
Replies: 12
Views: 607

Re: Making an avionics package for far 103 aircraft.

Disregarding the question of why you would want to do this; there is no airspeed input. I think the other instruments could be created from the data provided. It is not clear to me what a 10dof is however? I don't know enough about how the gyroscopes in this work to know if it is possible to get a ...
by thagrol
Wed Jan 01, 2020 12:16 am
Forum: Troubleshooting
Topic: Pi not starting after soft shutdown
Replies: 3
Views: 143

Re: Pi not starting after soft shutdown

GPIO Pin 4, physical pin 7. And there's your problem right there. With the right software any pin can be used to trigger a shutdown. But only GPIO 3 can wake a Pi. An alternative approach on some models is to use the run header. Shorting those two pins momentarily will rest the SoC but if the syste...
by thagrol
Tue Dec 31, 2019 12:37 pm
Forum: Troubleshooting
Topic: Pi not starting after soft shutdown
Replies: 3
Views: 143

Re: Pi not starting after soft shutdown

Which gpio pin are you using? If it ain't #3 (broadcom numbering, see https://pinout.xyz) it won't wake the Pi.

If it is gpio #3, in my experience it needs to be pulled low then released for the Pi to start not held low.
by thagrol
Tue Dec 31, 2019 12:20 pm
Forum: Beginners
Topic: Serial over usb on RPI Zero W
Replies: 7
Views: 1956

Re: Serial over usb on RPI Zero W

Thanx for the reply. The micro usb to micro usb OTG cable that the dealer supplied me, as the link in my post, is a little unusual, rather than having a USB A plug on one end, it has two Micro B USB connections. https://www.adafruit.com/product/3610 So if I understand you, I use this cable from the...
by thagrol
Tue Dec 31, 2019 12:49 am
Forum: Beginners
Topic: Serial over usb on RPI Zero W
Replies: 7
Views: 1956

Re: Serial over usb on RPI Zero W

Gonna do my best to answer but soem of this is based on guess work. Asumptions: Your arduino has a micro USB female port. This would normally be used to connect it as a device to a PC so it's a slave port. You want to use the zero as a USB master As the arduino is a USB slave, it will expect to draw...
by thagrol
Mon Dec 30, 2019 10:17 pm
Forum: Other projects
Topic: Making an avionics package for far 103 aircraft.
Replies: 12
Views: 607

Re: Making an avionics package for far 103 aircraft.

As long as it's not permanently mounted it will be okay. Are you keeping the original instruments too? And will they be visible? The question you need to answer is not whether doing this is technically possible, not even whetther it'll pass regulations but do you trust your own electronics and codi...
by thagrol
Mon Dec 30, 2019 4:28 pm
Forum: Beginners
Topic: Shutdown a specific GPIO pin when Pi shuts down
Replies: 3
Views: 139

Re: Shutdown a specific GPIO pin when Pi shuts down

Hi there, I have a question? I have a Raspberry Pi 4 with a Fan shim. When I shut down my Pi the script, that controls the Fan shim also stop and the fan keeps on spinning. How can I shutdown GPIO pin 18 which is controlling the fan? Or has someone a solution for this? Thanks a lot! Check the docum...
by thagrol
Mon Dec 30, 2019 2:23 am
Forum: General discussion
Topic: Wake on LAN
Replies: 2
Views: 134

Re: Wake on LAN

That instructabile is out of date and assumes your PC is capable of WoL. My desktop claims to be but I've never got it to work correctly. My solution can be found here: https://github.com/thagrol/fakewake A Pi zero with a WiFi dongles mounted inside the PC chassis powered from the PC's 5v stand by l...
by thagrol
Sun Dec 29, 2019 8:16 pm
Forum: Beginners
Topic: Mini PC with DVD and HDD
Replies: 12
Views: 513

Re: Mini PC with DVD and HDD

A Pi is unlikely to power a hard drive or a DVD drive. Gonna have to disagree with you here. Assuming the recommended PSU, 1.2amps is enough to run a single 2.5"HDD. It may be enough to run a slimline DVD drive though probably not to write with and not both at the same time. Personally I would buy ...
by thagrol
Sun Dec 29, 2019 8:07 pm
Forum: Other projects
Topic: Pi with ATX PSU on 5vStandBy, wants to control other outputs using GPIO
Replies: 2
Views: 142

Re: Pi with ATX PSU on 5vStandBy, wants to control other outputs using GPIO

A standard transistor as a switch circuit should do the trick. See https://elinux.org/RPi_GPIO_Interface_Circuits#Using_an_NPN_transistor Green wire to collector. GPIO to base Ground to emitter Set GPIO high to turn on PSU, low to turn it off. Current flow should be minimal so you don't need a high ...

Go to advanced search