Go to advanced search

by Milliways
Sat Feb 02, 2019 10:33 am
Forum: Raspbian
Topic: IP address of my Pi in .../16 subnet?
Replies: 12
Views: 750

Re: IP address of my Pi in .../16 subnet?

Ping hostname.local will works on most networks. Even on Windows there are variants that work. PS Maybe the Foundation should have this in its Documentation. Already done. See https://www.raspberrypi.org/documentation/remote-access/ip-address.md Resolving raspberrypi.local with mDNS On Raspbian, mu...
by Milliways
Sat Feb 02, 2019 10:18 am
Forum: Raspbian
Topic: IP address of my Pi in .../16 subnet?
Replies: 12
Views: 750

Re: IP address of my Pi in .../16 subnet?

If you don't want replies, why ask the question? :roll: But this is not an answer. It doesn't explain why so many (the majority?) of Pi users WANT to know their IP address, or why the Foundation doesn't seem to see this as part of their educational role. Windows, macOS and users of other Linux OS s...
by Milliways
Sat Feb 02, 2019 7:25 am
Forum: Raspbian
Topic: IP address of my Pi in .../16 subnet?
Replies: 12
Views: 750

Re: IP address of my Pi in .../16 subnet?

Can someone explain the obsession Pi users have with static IP addresses? I have about 7 Pi and 15 SD Cards. I don't know the addresses any of them use. (On the odd occasion I need to debug a protocol it is easy enough to find the actual address.) Use Zero Conf. If the network will allow devices to ...
by Milliways
Sat Feb 02, 2019 6:59 am
Forum: General discussion
Topic: Be careful with Pi Zero and CSI slot
Replies: 39
Views: 10959

Re: Be careful with Pi Zero and CSI slot

This is an example of poor design. The connector should NEVER have overhung the edge of the board! I purchased a Pi Zero W and noticed one side of the camera connector seemed to be floating. I should have returned it, but as I was not planning to use it didn't worry. BUT this was a mistake. It is al...
by Milliways
Thu Jan 31, 2019 1:32 am
Forum: Troubleshooting
Topic: mysql (mariadb) sends daily "error" emails
Replies: 10
Views: 600

Re: mysql (mariadb) sends daily "error" emails

The problem is that the log rotate function by default assumes the SQL root user has no password. You can create a file /root/.my.cnf using sudo nano /root/.my.cnf with [mysqladmin] password = password user = root [mysql] password = password Put the MySQL root user password in here in quotes and se...
by Milliways
Thu Jan 31, 2019 1:26 am
Forum: Troubleshooting
Topic: mysql (mariadb) sends daily "error" emails
Replies: 10
Views: 600

Re: mysql (mariadb) sends daily "error" emails

... or if you don't want to write the root password in plain text into a config file: grant all privileges on *.* to 'root'@'localhost' identified with 'unix_socket' with grant option; This removes the root password in MariaDB and allows login as root only if you are root. If wordpress stops workin...
by Milliways
Wed Jan 30, 2019 6:00 am
Forum: General discussion
Topic: Moving from a 8GB micro SD card to a 32 GB micro SD card
Replies: 4
Views: 392

Re: Moving from a 8GB micro SD card to a 32 GB micro SD card

You can copy to a larger SD Card using the SD Copier in Raspbian. "Removing" NOOBS is a bit more problematic. It is possible to move a Raspbian installation to a new SD Card, but not exactly straightforward, The easiest is to do a fresh installation of Raspbian (any flavour), then use `rsync` to cop...
by Milliways
Wed Jan 30, 2019 12:37 am
Forum: Raspbian
Topic: Incorrect Assumptions Made in Setup of Stretch
Replies: 2
Views: 229

Re: Incorrect Assumptions Made in Setup of Stretch

If you look at /etc/locale.gen you can see the supported locales, but you can build your own custom locale. I haven't done this for years, but it should still be possible, if a little tedious. Read man locale-gen If you want to follow this, I suggest you find the UK and Dutch files and combine them....
by Milliways
Wed Jan 30, 2019 12:14 am
Forum: Beginners
Topic: Raspberry time sync with another raspberry
Replies: 5
Views: 294

Re: Raspberry time sync with another raspberry

You can copy the date from the host by running

Code: Select all

ssh [email protected] sudo date -s$(date -Ins)
before connection.
by Milliways
Tue Jan 29, 2019 11:26 pm
Forum: Troubleshooting
Topic: mysql (mariadb) sends daily "error" emails
Replies: 10
Views: 600

mysql (mariadb) sends daily "error" emails

Some time ago I installed NGINX, php7, mariaDB and Wordpress on my Raspberry Pi running Raspbian. I created a Wordpress database - which is working. Recently I installed ssmtp and mailutils on my system to send mail. Now I get a daily email with the following error /etc/cron.daily/logrotate: mysqlad...
by Milliways
Sun Jan 27, 2019 7:16 am
Forum: Raspbian
Topic: Theme & Appearance Settings broken
Replies: 8
Views: 1142

Re: Theme & Appearance Settings broken

I think I'll go through and copy the desktop pager rc.xml settings from the broken file into the new default one, that should at least allow me to keep the settings until this this obconf bug can be sorted out properly. I was initially inclined to respond to the disappointing answer to my original ...
by Milliways
Thu Jan 24, 2019 1:50 am
Forum: Raspbian
Topic: Rpimonitor running cron
Replies: 0
Views: 127

Rpimonitor running cron

Some time ago I installed Rpimonitor - which provides a convenient stats page. I was looking at cron jobs on my Pi and found the following:- sudo cat /etc/cron.d/rpimonitor # run at 03:05 to update local repository database 05 03 * * * root /usr/bin/apt-get update > /dev/null 2>&1 # run at 03:10 to ...
by Milliways
Tue Jan 22, 2019 4:27 am
Forum: General discussion
Topic: Using low level commands written with shell scripts commanded straight from a HTML page
Replies: 4
Views: 256

Re: Solved

Ha ha, I got it to work. I had to get creative though. The gpio read is for getting the status of an input pin so I tied my output pin to a spare input pin. :) So my relay is connected to both an output pin and an input pin. Then i just read the value of the input pin and if it is low if [ $(gpio -...
by Milliways
Tue Jan 22, 2019 1:59 am
Forum: General discussion
Topic: STICKY: Making your own custom burn-n-boot Raspbian image
Replies: 35
Views: 9894

Re: Making your own custom burn-n-boot Raspbian image

Wouldn't it be nice to have SSH enabled by default, or automatically connect to your WiFi without needing a screen and keyboard? How about some custom settings in config.txt or cmdline.txt, or some scripts to automate things? You can do all these by simply copying a few files to the boot partition....
by Milliways
Wed Jan 16, 2019 10:51 am
Forum: Beginners
Topic: Multiple partitions on SD card that came with RPi2?
Replies: 56
Views: 1922

Re: Multiple partitions on SD card that came with RPi2?

Ok. So in which partition do I write the Raspbian image? Does it matter? None! You don't install in a partition but onto the SD Card. What are you trying to use to copy the image? If you attempted to use a partition it won't work. As I explained when I insert the SD card into the PC three windows o...
by Milliways
Wed Jan 16, 2019 10:47 am
Forum: Beginners
Topic: Multiple partitions on SD card that came with RPi2?
Replies: 56
Views: 1922

Re: Multiple partitions on SD card that came with RPi2?

ChurChontime wrote:
Wed Jan 16, 2019 10:29 am

Ok. So in which partition do I write the Raspbian image? Does it matter?
None! You don't install in a partition but onto the SD Card. What are you trying to use to copy the image?

If you attempted to use a partition it won't work.
by Milliways
Wed Jan 16, 2019 10:13 am
Forum: Beginners
Topic: Multiple partitions on SD card that came with RPi2?
Replies: 56
Views: 1922

Re: Multiple partitions on SD card that came with RPi2?

"the very first thing one needs to do is mount Rasbpian to the SD card" NO they don't - they may tell you to to install the image.

What did you try that didn't work.
by Milliways
Fri Jan 04, 2019 12:37 am
Forum: General discussion
Topic: My Sons first Pi
Replies: 10
Views: 610

Re: My Sons first Pi

by Milliways
Wed Jan 02, 2019 5:05 am
Forum: Advanced users
Topic: How to detect shutdown state?
Replies: 9
Views: 1036

Re: How to detect shutdown state?

On the Pi3B+ (and probably the 3A+) there is a PEN (Power ENable) header which can be used to power down the regulator. The Pi3A+ doesn't have the 4-pin header with that. It's part of the PoE pins...and the Pi3A+ doesn't have anything related to Ethernet. It is NOT a 4 pin header - there are 2 sold...
by Milliways
Tue Jan 01, 2019 11:22 pm
Forum: Advanced users
Topic: How to detect shutdown state?
Replies: 9
Views: 1036

Re: How to detect shutdown state?

Hey thanks, that's exactly what I'm looking for. After your hint, I found this Thread about the same issue and questions, which helps a lot! I added dtoverlay=gpio-poweroff,gpiopin=4,active_low=1 to my /boot/config.txt and gpio4 now goes high at the moment I connect the USB and it goes back to low ...
by Milliways
Tue Jan 01, 2019 4:05 am
Forum: Raspbian
Topic: Problems accessing VNC Server
Replies: 1
Views: 561

Re: Problems accessing VNC Server

I think I solved my own problem.

Doing further tests I did a netstat and discovered port 5900 was open, and I could connect on port :0

I don't even have to boot to Desktop, but do need to run startx to connect.
by Milliways
Tue Jan 01, 2019 2:50 am
Forum: Raspbian
Topic: Problems accessing VNC Server
Replies: 1
Views: 561

Problems accessing VNC Server

I have normally used tightvncserver on my Pi but decided to try realvnc so I could share desktop on a remote machine. I had tried Realvnc when it was first included in Raspbian but it did not suit my MO (which is running several headless Pi). I installed the new VNC Viewer on my Mac (which still has...
by Milliways
Fri Dec 28, 2018 12:48 am
Forum: Beginners
Topic: Transfer Pictures From IPhone to Raspberry Pi 3
Replies: 6
Views: 1308

Re: Transfer Pictures From IPhone to Raspberry Pi 3

If you have a Mac you can use the Image Capture.app to transfer pictures from the iPhone to a Directory on the Mac. netatalk on the Pi lets you mount directories on the Pi (home by default) in Finder on the Mac. I haven't tried this, but you may be able to use Image Capture.app to transfer directly ...
by Milliways
Tue Dec 25, 2018 11:07 am
Forum: General discussion
Topic: Naming of Pi's
Replies: 16
Views: 1080

Re: Naming of Pi's

Maybe the foundation should have read https://en.wikipedia.org/wiki/The_Naming_of_Cats
by Milliways
Sun Dec 16, 2018 11:23 am
Forum: Raspbian
Topic: Theme & Appearance Settings broken
Replies: 8
Views: 1142

Re: Theme & Appearance Settings broken

I fixed it by copying .config/openbox/ from another installation.

If it doesn't work it should be removed from the menu, although there should be a graphical configuration option.

There are other items e.g. Display Settings which seem to have no function in Raspbian.

Go to advanced search