Go to advanced search

by rpdom
Tue Jun 25, 2019 5:44 am
Forum: General discussion
Topic: exploring uses of nginx with rpi 2+ / rpi zero w
Replies: 14
Views: 305

Re: exploring uses of nginx with rpi 2+ / rpi zero w

DougieLawson wrote:
Tue Jun 25, 2019 5:29 am
rpdom wrote:
Tue Jun 25, 2019 5:19 am
Lack of output won't give a 500 Server Error. It will just return a blank page.
It will if there's no HTML wrapped round the PHP code as nothing will trigger PHP to generate the headers.
Nope. It just serves a blank page. No errors.
by rpdom
Tue Jun 25, 2019 5:38 am
Forum: Beginners
Topic: Running/executing bash scripts
Replies: 6
Views: 83

Re: Running/executing bash scripts

Code: Select all

chmod +x /home/pi/bin/wolpc.sh
That command doesn't need sudo, as you "pi" are the owner. You do need to specify the correct location of the file.

Now try typing wolpc.sh
by rpdom
Tue Jun 25, 2019 5:35 am
Forum: Automation, sensing and robotics
Topic: Motor for Pulley System
Replies: 1
Views: 39

Re: Motor for Pulley System

Just some observations.

The lights also must not drop in case of power failure, or a problem with the Pi. A worm drive motor would work for this.

You should have some limit switches, so that if the lights hit the top or bottom of the runners they will stop and possibly alert you.
by rpdom
Tue Jun 25, 2019 5:19 am
Forum: General discussion
Topic: exploring uses of nginx with rpi 2+ / rpi zero w
Replies: 14
Views: 305

Re: exploring uses of nginx with rpi 2+ / rpi zero w

DougieLawson wrote:
Tue Jun 25, 2019 4:29 am
None of that PHP creates any output. Where's the SQL statement? Where's the mysqli fetch() call? Where's the PHP echo/print statements to do stuff with the rows you've fetched?

Small wonder you get HTTP 500 returned.
Lack of output won't give a 500 Server Error. It will just return a blank page.
by rpdom
Tue Jun 25, 2019 5:08 am
Forum: General discussion
Topic: Pi for a HTTP server?
Replies: 2
Views: 71

Re: Pi for a HTTP server?

Stick with Raspbian. It has more support than any other OS for the Pi.

Yes, they can run HTTP web servers like Apache, Lighttp and NginX and others quite well.
by rpdom
Tue Jun 25, 2019 5:01 am
Forum: Beginners
Topic: Running/executing bash scripts
Replies: 6
Views: 83

Re: Running/executing bash scripts

I've tried sudo chmod +x wolpc.sh to make it executable, and ./wolpc.sh , but all i get is 'No such file or directory'. What the heck am i doing wrong? lol If the file is in a directory specified in your PATH you just type the name of the file to run it, the same as any other command: wolpc.sh You ...
by rpdom
Tue Jun 25, 2019 4:27 am
Forum: General discussion
Topic: Pi4: 5Ghz wireless lan connection kills Virgin Media Superhub
Replies: 8
Views: 342

Re: Pi4: 5Ghz wireless lan connection kills Virgin Media Superhub

It shouldn't be necessary to use the pass-through modem mode. It should be possible to just connect an AP or another router which can handle the Pi 4B 5GHz. I recently helped a friend set similar up and it was pretty easy, everything on the network could access the internet and see everything else ...
by rpdom
Mon Jun 24, 2019 8:27 pm
Forum: General discussion
Topic: Pricing of Pi models
Replies: 6
Views: 246

Re: Pricing of Pi models

Continuity. If a company had designed a product around the Pi 3B+ they would want to keep using that version, otherwise they may have to redesign their case and also would have to upgrade to Buster which may not be compatible with their application.
by rpdom
Mon Jun 24, 2019 6:54 pm
Forum: General discussion
Topic: Raspberry Pi 4 Thread - general discussion
Replies: 278
Views: 12215

Re: Raspberry Pi 4 Thread - general discussion

k-pi wrote:
Mon Jun 24, 2019 6:17 pm
Ok, from what I've read so far.....

It doesn't boot from USB
It doesn't boot from the network
So, it only boots from micro SDHC cards
At the moment, yes. Those options will be available later.
by rpdom
Mon Jun 24, 2019 6:06 pm
Forum: General discussion
Topic: Raspberry Pi 4 Thread - general discussion
Replies: 278
Views: 12215

Re: Raspberry Pi 4 Thread - general discussion

Has the maximum number of USB endpoints been increased? It would be good to be able to hook up more than half a dozen USB peripherals.
by rpdom
Mon Jun 24, 2019 12:51 pm
Forum: Networking and servers
Topic: Raspberry Pi 4 as an AP with external USB WiFi card
Replies: 2
Views: 172

Re: Raspberry Pi 4 as an AP with external USB WiFi card

Is there a reason you don't want to use the built-in WiFi adaptor?
by rpdom
Mon Jun 24, 2019 6:30 am
Forum: General discussion
Topic: Raspberry Pi 4 Model B
Replies: 1
Views: 344

Re: Raspberry Pi 4 Model B

See the Blog
by rpdom
Sun Jun 23, 2019 7:52 pm
Forum: Weather station
Topic: Wiring the BMN280 to an element14 RPi
Replies: 4
Views: 88

Re: Wiring the BMN280 to an element14 RPi

The GPIO connector pins are on the right hand side of the board when you look at the top of the board with the USB sockets at the bottom.
by rpdom
Sun Jun 23, 2019 3:47 pm
Forum: Raspbian
Topic: Use UART for a barcode scanner
Replies: 1
Views: 47

Re: Use UART for a barcode scanner

Is it possible to use UART to read scanned barcodes from the scanner? Only if the Scanner has a serial port mode, as some do. It will need a different cable. Without knowing the scanner type it is hard to say. It may need a level shifter too. An alternative might be to to use two Pi Zero Ws connect...
by rpdom
Sun Jun 23, 2019 3:42 pm
Forum: Python
Topic: Python code for Maxbotix HrXL-Wr (MB7360) Ultrasonic Sensor in I2C with raspberry pi.
Replies: 4
Views: 420

Re: Python code for Maxbotix HrXL-Wr (MB7360) Ultrasonic Sensor in I2C with raspberry pi.

Option 3 : power all chips from 5V, but then you need a level shifter for the I2C signals. Something like a "4-channel I2C-safe Bi-directional Logic Level Converter", example adafruit PRODUCT ID: 757. R1, R2 are then needed on 5V side. You shouldn't need to worry about a level shifter. I2C is an op...
by rpdom
Sat Jun 22, 2019 12:03 pm
Forum: General discussion
Topic: Networking and SSH problems
Replies: 10
Views: 703

Re: Networking and SSH problems

The ~/.ssh/known_hosts file that is causing the problem is on your fedora box. You need to remove line 2 from that file.
by rpdom
Sat Jun 22, 2019 9:32 am
Forum: HATs and other add-ons
Topic: I try to run TV HAT
Replies: 5
Views: 403

Re: I try to run TV HAT

DougieLawson wrote:
Sat Jun 22, 2019 6:54 am
That overlay loads the kernel driver. So I don't know how you got it working otherwise.
Because it is a HAT and the eeprom has the relevant DT stuff on it? I don't have any entries in config.txt and my TV HAT has been working fine.
by rpdom
Fri Jun 21, 2019 10:13 am
Forum: Raspbian
Topic: upgrade error
Replies: 3
Views: 365

Re: upgrade error

I got a near idenrical issue from a different mirror not long ago (couple of hours) Seems to be a file hash mismatch somewhere and the package manager is refusing to fetch the update because of it. The hash mismatch is because the file failed to download. Look at the file sizes. "Filesize:0" is a c...
by rpdom
Fri Jun 21, 2019 9:35 am
Forum: Troubleshooting
Topic: USB Auto mount - Raspbian Stretch Lite [Solved]
Replies: 20
Views: 50205

Re: USB Auto mount - Raspbian Stretch Lite [Solved]

There's no need to be nasty!

No one "owes" you an answer. If we can answer, we will.
by rpdom
Fri Jun 21, 2019 6:02 am
Forum: Raspbian
Topic: upgrade error
Replies: 3
Views: 365

Re: upgrade error

I edited the sources list: sudo nano /etc/apt/sources.list and commented de default deb and added the mirror from UK Oxford University. It seems to be working fine now, but I am not sure if this is a correct thing to do... Yes, what you did is a correct temporary solution. It looks like the espejit...
by rpdom
Fri Jun 21, 2019 5:55 am
Forum: Advanced users
Topic: How to span one volume across multiple drives?
Replies: 4
Views: 324

Re: How to span one volume across multiple drives?

LVM2 (Logical Volume Manager v2) is possibly the software that you are thinking of. It allows you to create Logical Volumes that can span several devices, which are called Physical volumes, although that can get confusing because a PV can be a device or a partition. It is quite flexible and allows o...
by rpdom
Fri Jun 21, 2019 5:50 am
Forum: Beginners
Topic: Raspberry Pi Upgrading.
Replies: 6
Views: 457

Re: Raspberry Pi Upgrading.

The recommended language for programming the Pi is Python. (Many others can be used, but that is the one that has best support). There are a few libraries available for it to control the GPIO pins. WiringPi, pigpio and gpiozero. There are tutorials on the Raspberry Pi website that cover the basics. ...
by rpdom
Fri Jun 21, 2019 5:30 am
Forum: Python
Topic: System using Python 3.5 instead of Python 3.7
Replies: 1
Views: 174

Re: System using Python 3.5 instead of Python 3.7

You can do it this way, but it may cause problems later on with upgrades

Code: Select all

sudo ln -sf python3.7 /usr/bin/python3
How did you install Python 3.7? I bet it wasn't using the standard package manager, otherwise that should have been taken care of for you.
by rpdom
Fri Jun 21, 2019 5:25 am
Forum: General discussion
Topic: My Raspberry Home Server
Replies: 7
Views: 430

Re: My Raspberry Home Server

If you do something boneheaded, like not changing the default password, then all bets are off. If you do something boneheaded, like not changing the default password AND connecting the Pi to an insecure network or exposing it directly to the Internet (via port port forwarding or directly), then all...
by rpdom
Fri Jun 21, 2019 5:19 am
Forum: General discussion
Topic: Back of Raspberry Pi Zero W
Replies: 3
Views: 193

Re: Back of Raspberry Pi Zero W

Other models of Pi have a similar set of pads on the other side of the board to the HDMI connector. I believe it has been stated that it is for a test connector for diagnostics during the early release and testing phases.

Go to advanced search