Go to advanced search

by Milliways
Sat Feb 09, 2019 4:23 am
Forum: Beginners
Topic: Is VNC Connection Secure from Laptop to RPi3B+?
Replies: 3
Views: 93

Re: Is VNC Connection Secure from Laptop to RPi3B+?

No!

As you can easily tell because on connection a popup appears saying "Unsecured connection"

There is an preference to enable encryption with 5 options (although I have never used it). I presume this is sticky.
by Milliways
Thu Feb 07, 2019 1:34 am
Forum: Troubleshooting
Topic: Low voltage warning on boot
Replies: 24
Views: 625

Re: Low voltage warning on boot

I've just upgraded to a Pi 3 B+. On boot I'm getting a low voltage warning about halfway through, though the boot process continues until log in and then displays the low voltage warning, whereupon everything then hangs. I have tried two different PSU's, (One Apple, One Generic) requiring 100 - 240...
by Milliways
Wed Feb 06, 2019 6:10 am
Forum: Beginners
Topic: meaning of results of blkid command
Replies: 3
Views: 130

Re: meaning of results of blkid command

You can change the partition name using any partition tool e.g. gparted or parted.

Alternatively you could create a /etc/fstab entry to mount the drive at any mount point.

I use

Code: Select all

UUID=4AF49046F4903663       /mnt/Seagate     ntfs    ro,noauto,relatime,umask=22,uid=0,gid=0,nls=utf8	0	0
by Milliways
Mon Feb 04, 2019 5:32 am
Forum: Troubleshooting
Topic: mysql (mariadb) sends daily "error" emails
Replies: 10
Views: 286

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

On the "Set up your WordPress Database" you can omit the "sudo mysql_secure_installation". It does nothing. Even after "mysql_secure_installation" you can login without password: sudo mysql Then create a user for your wordpress application: GRANT ALL PRIVILEGES ON wordpress.* TO 'youruser'@'localho...
by Milliways
Sun Feb 03, 2019 12:26 am
Forum: Troubleshooting
Topic: mysql (mariadb) sends daily "error" emails
Replies: 10
Views: 286

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
Sat Feb 02, 2019 10:33 am
Forum: Raspbian
Topic: IP address of my Pi in .../16 subnet?
Replies: 12
Views: 449

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

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

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

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

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

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

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

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

Re: Raspberry time sync with another raspberry

You can copy the date from the host by running

Code: Select all

ssh pi@hostname.local 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: 286

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

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

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

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: 14
Views: 969

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

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

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

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

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

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

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

Go to advanced search