Go to advanced search

by rpdom
Fri Apr 20, 2018 7:33 pm
Forum: Raspbian
Topic: Unable to access Raspberry Pi shares
Replies: 8
Views: 128

Re: Unable to access Raspberry Pi shares

The NFS config lines may be a bit cryptic, but you only need one line on the server in /etc/exports per share, and one in the /etc/fstab on the client.
by rpdom
Fri Apr 20, 2018 5:38 pm
Forum: General discussion
Topic: Has anyone been able to successfully take a 128gb sd card from ex to fat32???
Replies: 4
Views: 114

Re: Has anyone been able to successfully take a 128gb sd card from ex to fat32???

If using Win32DiskImager or Etcher, it shouldn't be necessary to format the card before use. The image file will overwrite the existing formatting anyway.
by rpdom
Fri Apr 20, 2018 5:35 pm
Forum: Raspbian
Topic: Unable to access Raspberry Pi shares
Replies: 8
Views: 128

Re: Unable to access Raspberry Pi shares

For sharing from Pi to other Linux systems I always use NFS instead of Samba. The two can co-exist and NFS gives better speed and control.
by rpdom
Fri Apr 20, 2018 5:34 pm
Forum: General discussion
Topic: Heatsink required for Raspberry Pi 3 B+?
Replies: 54
Views: 2058

Re: Heatsink required for Raspberry Pi 3 B+?

Anyway, as has been pointed out in this thread already, a heatsink in an enclosed case only prolongs the inevitable. A heatsink has to do two things to be effective. It has to absorb heat from the device it is protecting, and it has to radiate that heat away. When a heatsink is in an enclosed space...
by rpdom
Fri Apr 20, 2018 5:23 pm
Forum: Troubleshooting
Topic: Update crash
Replies: 2
Views: 38

Re: Update crash

Uncertain.

The commands you entered are correct and should not have caused any problems.

Did you do anything else between this and the previous reboot?
Can you remember the messages that showed on the screen just before the emergency mode ones?
by rpdom
Fri Apr 20, 2018 6:12 am
Forum: General discussion
Topic: Raspbian Stretch Headless Setup Procedure
Replies: 61
Views: 92846

Re: Raspbian Stretch Headless Setup Procedure

gagz wrote:
Thu Apr 19, 2018 9:29 pm
I have tried at least ten times, creating the file as root, as 1000:1000, in the /boot directory of the rootfs partition, … bref, nothing seems to make it work as expected !
You don't create the file in the /boot directory of the rootfs partition. You create it in the boot partition.
by rpdom
Thu Apr 19, 2018 6:38 pm
Forum: Troubleshooting
Topic: Official Sense Hat - not fitting correctly!
Replies: 10
Views: 208

Re: Official Sense Hat - not fitting correctly!

RaTTuS wrote:
Thu Apr 19, 2018 11:58 am
you have never needed on on the lan9514 chip the one on the SOC will help when it is pushed to max
I did put one on my original Pi1B as that board has a design fault with two voltage regulators fighting and the LAN chip got very hot. Hotter than the SoC and RAM stack. Still working.
by rpdom
Thu Apr 19, 2018 6:10 pm
Forum: Python
Topic: Have the date show April 19th instead of April 19
Replies: 5
Views: 92

Re: Have the date show April 19th instead of April 19

scotty101 wrote:
Thu Apr 19, 2018 12:59 pm
I seem to remember reading the documentation for a language and noticing that the data format function supported this but I can't remember what it was. Certainly wasn't python.
Could be PHP. That has a date function that doesn't follow the strftime format standard and has "th" etc.
by rpdom
Wed Apr 18, 2018 10:13 pm
Forum: Beginners
Topic: help plz compiling xscreensaver from source
Replies: 11
Views: 194

Re: help plz compiling xscreensaver from source

n67 wrote:
Tue Apr 17, 2018 10:44 pm
bc is supposed to be stock Unix, so I'm surprised that Raspbian Lite omits it.
Check the status of bc in Raspbian, Debian and Ubuntu (for a start)

Code: Select all

Package: bc
Priority: optional
So, it may be installed on some distros, but isn't part of the base Linux.
by rpdom
Mon Apr 16, 2018 5:42 pm
Forum: Raspbian
Topic: Under-voltage detected! (0x00050005) ... how to disable?
Replies: 50
Views: 1690

Re: Under-voltage detected! (0x00050005) ... how to disable?

Unlike a fridge light, when you cover it up, it does not go out, and your engine may die as a result. Same with the Pi, although replacing an SD card won't be as expensive as replacing an engine. Not disagreeing with you at all. The engine warning light on my car has been on and off for over a year...
by rpdom
Mon Apr 16, 2018 8:06 am
Forum: Troubleshooting
Topic: Retropi with 5" screen running on batterys
Replies: 3
Views: 66

Re: Retropi with 5" screen running on batterys

I wouldn't use a 7805, they are linear regulators and waste a lot of energy as heat. Get a buck regulator instead. Modules can be found very cheaply on the usual auction sites and will give you a significant improvement in run time.
by rpdom
Sun Apr 15, 2018 12:37 pm
Forum: General programming discussion
Topic: installing Lighttpd
Replies: 3
Views: 117

Re: installing Lighttpd

I'm trying to move some files to there but i am getting '/var/www/html/*' is not a directory. sudo mv /home/pi/transfer/* /var/www/html/* Does that look correct? Leave off the last * sudo mv /home/pi/transfer/* /var/www/html/ if that doesn't work, it suggests you haven't created the /var/www/html d...
by rpdom
Sun Apr 15, 2018 8:07 am
Forum: Networking and servers
Topic: Turn off Ethernet / LAN LEDs
Replies: 4
Views: 168

Re: Turn off Ethernet / LAN LEDs

So you didn't find this thread? viewtopic.php?t=72070

The code on there works on my B+ People also report it working on a 2B. It fails on a 3B+
by rpdom
Sun Apr 15, 2018 5:33 am
Forum: Other languages
Topic: PHP date_diff question
Replies: 4
Views: 111

Re: PHP date_diff question

Probably because date() returns a string, while date_diff requires a datetime object (see http://php.net/manual/en/datetime.diff.php for some examples of use). I wouldn't do it that way. I'd convert the dates to unix timestamps (seconds since the "Epoch", 01/10/1970 00:00:00) and subtract one from t...
by rpdom
Sat Apr 14, 2018 6:01 am
Forum: General discussion
Topic: Newbie Questions
Replies: 4
Views: 240

Re: Newbie Questions

And finally is there a testing distribution in the works for Raspbian Buster? Raspbian lags several months behind Debian releases. You won't hear anything about Raspbian Buster until it is released. While the RPF/RPT may not have support for Buster in their packages yet, the Raspbian Buster repo ex...
by rpdom
Thu Apr 12, 2018 6:41 pm
Forum: Networking and servers
Topic: Nginx offline web-server issues
Replies: 2
Views: 126

Re: Nginx offline web-server issues

You need the first rewrite in the 'listen *:80' to point to https. You don't need a rewrite in the 'listen *:443'. Server { listen *:80; server_name Lionsgate.Garden; rewrite ^ https://Lionsgate.Garden$request_uri? permanent; server { listen *:443 default_server ssl; server_name Lionsgate.Garden; ss...
by rpdom
Thu Apr 12, 2018 6:13 am
Forum: General discussion
Topic: Question on pull up resistor
Replies: 5
Views: 187

Re: Question on pull up resistor

Does it set the state if the Input channel, when there is no signal applied, therefore no actual input applied? Pretty much, yes. It's also use in situations like open-collector devices where the the input gets pulled low when a device is active, but left floating when not, so the pull-up maintains...
by rpdom
Thu Apr 12, 2018 5:06 am
Forum: General discussion
Topic: Question on pull up resistor
Replies: 5
Views: 187

Re: Question on pull up resistor

When a GPIO is configured for Output, the pull resistors serve no purpose. Best to set them to "Off". They only have real purpose when the GPIO is set to "Input".
by rpdom
Wed Apr 11, 2018 4:54 am
Forum: Beginners
Topic: Downloading Stretch "image file corrupted"
Replies: 24
Views: 473

Re: Downloading Stretch "image file corrupted"

Where in the install instructions does it say to open the file by double clicking on it? The usual install method is to use Etcher (https://etcher.io) to unzip the file and write it to a micro SD card. Then safely eject the card, put it in the Raspberry Pi, connect a monitor and keyboard to the Pi (...
by rpdom
Wed Apr 11, 2018 4:47 am
Forum: Troubleshooting
Topic: First Timer Pi Zero W Setup Issues (Headless)
Replies: 7
Views: 217

Re: First Timer Pi Zero W Setup Issues (Headless)

It is now recommended to use Etcher (https://etcher.io) to write the card. With Etcher you don't need to format the card first, or unzip the image file. Did you remember to create the ssh or ssh.txt file before trying to boot? SSH is disabled by default, but putting that file on the card will enable...
by rpdom
Tue Apr 10, 2018 9:06 pm
Forum: Networking and servers
Topic: Raspberry Pi As a Router problem
Replies: 6
Views: 400

Re: Raspberry Pi As a Router problem

The dhcp-range is a list of addresses that will be offered to other devices when they connect to your network. You have set the range to the same address as the dnsmasq server (I think) only! Also, the dnsmasq server should not be listed in the "server=" lines. That is a list of servers it will cont...
by rpdom
Tue Apr 10, 2018 5:17 am
Forum: Networking and servers
Topic: Raspberry Pi As a Router problem
Replies: 6
Views: 400

Re: Raspberry Pi As a Router problem

I have never configured dnsmasq so cannot help you with specific details. Search for some tutorials. It is quite easy to configure. I've been using it for over ten years now. You set dnsmasq up with your dhcp details and disable dhcp on your router. Then dnsmasq will announce that it is the server ...
by rpdom
Mon Apr 09, 2018 5:37 am
Forum: Beginners
Topic: battery pack for "Physical Computing" tutorial
Replies: 3
Views: 90

Re: battery pack for "Physical Computing" tutorial

I searched for "AA switched battery holder". I think a 4-cell version is what you need.
by rpdom
Sat Apr 07, 2018 8:37 pm
Forum: Raspbian
Topic: Can I format these empty partitions?
Replies: 2
Views: 124

Re: Can I format these empty partitions?

I wouldn't bother changing it. The partitions are possibly sized to start on a particular block number for efficiency with the flash media.
by rpdom
Fri Apr 06, 2018 7:37 pm
Forum: Beginners
Topic: Send file by Wi-Fi
Replies: 6
Views: 193

Re: Send file by Wi-Fi

Set up a Share on the Windows computer. Use Samba on the Pi to mount it locally. Copy files into that directory/folder and they will be on the Windows PC.

Or set up a Samba share on the Pi and have the Windows machine access it. That is what I do here so my wife can access files on one of my Pi.

Go to advanced search