Go to advanced search

by Milliways
Sat Apr 20, 2019 1:27 am
Forum: Raspbian
Topic: Raspi3 autoconnect to WiFi with static IP
Replies: 6
Views: 156

Re: Raspi3 autoconnect to WiFi with static IP

Hi, I am running Raspian jessie. What I want to achieve is that the raspi automatically connects to a certain wifi network on startup (or whenever possible) and that it uses static IP. I tried these steps: https://raspberrypi.stackexchange.com/questions/37920/how-do-i-set-up-networking-wifi-static-...
by Milliways
Sat Apr 20, 2019 1:15 am
Forum: General discussion
Topic: Change new user privileges
Replies: 12
Views: 255

Re: Change new user privileges

I am following some tutorials but it is not clear to me how to give this new user all the privileges that the PI has, Raspbian privileges are determined by group membership. I avoid fiddling with sudoers - Just copy groups to the new user:- for GROUP in $(groups pi | sed 's/.*:\spi//'); do sudo add...
by Milliways
Sun Apr 07, 2019 8:21 am
Forum: Troubleshooting
Topic: hostapd doesn't start automatically
Replies: 2
Views: 131

Re: hostapd doesn't start automatically

The latest update to Raspbian (2019-03-09) has changed hostapd "wpa (2:2.6-10)".



You should run sudo systemctl unmask hostapd and sudo systemctl enable hostapd to ensure it runs on boot.
by Milliways
Sun Apr 07, 2019 8:21 am
Forum: Troubleshooting
Topic: Failed to start hostapd.service: Unit hostapd.service is masked.
Replies: 4
Views: 2782

Re: Failed to start hostapd.service: Unit hostapd.service is masked.

The latest update to Raspbian (2019-03-09) has changed hostapd "wpa (2:2.6-10)".



You should run sudo systemctl unmask hostapd and sudo systemctl enable hostapd to ensure it runs on boot.
by Milliways
Sun Apr 07, 2019 8:12 am
Forum: Troubleshooting
Topic: Wifi connected but "Link is down"
Replies: 10
Views: 236

Re: Wifi connected but "Link is down"

I can normally power up my Pi, a B+, and it connects to my home Wifi no problem except this morning. Using the graphical interface the wifi icon shows I'm connected but when I put the cursor over the icon I get the following wlan0: Associated with JXT56_2GEXT wlan0: Configured 192.168.137.2/24 enxb...
by Milliways
Sat Apr 06, 2019 11:33 pm
Forum: General discussion
Topic: AV Connector oxidized
Replies: 14
Views: 1042

Re: AV Connector oxidized

Burngate wrote:
Sat Apr 06, 2019 6:22 pm
For some reason, I thought it was silver rather than cadmium.
On reflection, it probably is - the fact remains the discolouration (which is common) does not seem to affect performance, and does not warrant drastic removal action. Simply inserting and removing a plug should be sufficient.
by Milliways
Sat Apr 06, 2019 3:52 am
Forum: General discussion
Topic: AV Connector oxidized
Replies: 14
Views: 1042

Re: AV Connector oxidized

It isn't "corrosion" it is oxidation of the cadmium plating, and is quite normal (and harmless).

If you use it it should work, but attempting to "clean" is likely to do more harm than good.
by Milliways
Mon Apr 01, 2019 6:44 am
Forum: Beginners
Topic: GPIO does not drive relay board properly
Replies: 10
Views: 271

Re: GPIO does not drive relay board properly

For those who are interested I purchased this relay board and powered it externally according to these instructions and it works perfectly in my testing so far. It does work counter-intuitively (active low) in my opinion but it does work reliably. The spec for this relay states "each one needs 15-2...
by Milliways
Mon Apr 01, 2019 2:34 am
Forum: Off topic discussion
Topic: Is ARM doomed?
Replies: 298
Views: 11974

Re: Is ARM doomed?

I don't understand the fuss over RISC - this is old hat.

The IBM 360 used microcode in 1964 to implement its instruction set on a RISC-like processor.
by Milliways
Sun Mar 31, 2019 7:31 am
Forum: General discussion
Topic: shorting pins 5 and 6 while RPI is on
Replies: 13
Views: 555

Re: shorting pins 5 and 6 while RPI is on

AdamStanislav wrote:
Sat Mar 30, 2019 9:53 pm
Perhaps this article answers your question.
You COULD do this, but Raspbian now has gpio-shutdown built in.

NOTE the pin 5/6 thing is an anachronism. Now all Pi models have an accessible RUN pin it is unnecessary, and doesn't work if gpio-poweroff is used.
by Milliways
Tue Mar 26, 2019 5:29 am
Forum: General discussion
Topic: Maximum Stations connected to Rasp as Access Point
Replies: 1
Views: 94

Re: Maximum Stations connected to Rasp as Access Point

The DHCP server is configured to allocate 19 addresses.
by Milliways
Sat Mar 23, 2019 6:39 am
Forum: Raspbian
Topic: Unable to install nginx
Replies: 6
Views: 243

Re: Unable to install nginx

php 5 has been replaced by newer versions. Try sudo apt-get install nginx php-cli php-fpm php-gd php-ncrypt php-curl The Foundation documentation https://www.raspberrypi.org/documentation/remote-access/web-server/nginx.md STILL has php5 instructions. I had posted a correction on github, but nothing...
by Milliways
Tue Mar 12, 2019 6:20 am
Forum: Raspbian
Topic: Is there any way of getting the GUI network icon to uses the stored PSK?
Replies: 7
Views: 349

Re: Is there any way of getting the GUI network icon to uses the stored PSK?

From comments by Simon Long I've just tested this with wpa_passphrase data set in wpa_supplicant, and I see the following behaviour when connecting to an already-known network: psk in quotes in wpa_supplicant - psk is read back into passphrase prompt; clicking ok reconnects to network. If text in pa...
by Milliways
Mon Mar 11, 2019 7:00 am
Forum: Raspbian
Topic: Is there any way of getting the GUI network icon to uses the stored PSK?
Replies: 7
Views: 349

Re: Is there any way of getting the GUI network icon to uses the stored PSK?

The code seems to only search for psk in quotes - which excludes proper PSK Maybe those responsible may accept the challenge to fix it. Although "those responsible" is an occasional contributor to these forums it is more likely he will see and respond to your "challenge" if you raise it as an Issue...
by Milliways
Sat Mar 09, 2019 11:07 am
Forum: Raspbian
Topic: Is there any way of getting the GUI network icon to uses the stored PSK?
Replies: 7
Views: 349

Re: Is there any way of getting the GUI network icon to uses the stored PSK?

Go and read the code. It's probably an oversight by the developer. I never use it so it doesn't bother me enough to look. I looked at the code. 40 years ago I wrote OS 30 years ago I entered senior management - so I gave engineers projects and wrote specifications, but got little opportunity to wor...
by Milliways
Sat Mar 09, 2019 5:42 am
Forum: Raspbian
Topic: Is there any way of getting the GUI network icon to uses the stored PSK?
Replies: 7
Views: 349

Re: Is there any way of getting the GUI network icon to uses the stored PSK?

Looks like the source code is at https://github.com/raspberrypi-ui/lxplug-network so you may be able to hack it to store crypted passwords rather than plain text. Then do a git pull request to get your changes into the RPF version. I probably COULD do this - the real issue is why it ignores stored ...
by Milliways
Sat Mar 09, 2019 5:02 am
Forum: Raspbian
Topic: wpasupplicant update?
Replies: 10
Views: 3741

Re: wpasupplicant update?

This looks like the relevant discussion: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911297 I haven't looked at it too closely. We just backported the buster version to stretch, to fix issues people reported with wpa_supplicant and hostapd. I just updated Raspbian and didn't see this BUT I go...
by Milliways
Sat Mar 09, 2019 4:51 am
Forum: Raspbian
Topic: Is there any way of getting the GUI network icon to uses the stored PSK?
Replies: 7
Views: 349

Is there any way of getting the GUI network icon to uses the stored PSK?

I have used wpa_passphrase to encode the ASCII passphrases of the networks I use. This works well, and automatically connects to available networks. Unfortunately if I use the GUI network icon to switch networks it prompts for a passphrase then overwrites the PSK and stores the passphrase in plain t...
by Milliways
Sat Mar 02, 2019 11:25 pm
Forum: Advanced users
Topic: Raspbian image partition boundaries
Replies: 1
Views: 108

Raspbian image partition boundaries

I used fdisk to list Raspbian partitions and got the following:- Device Boot Start End Sectors Size Id Type /dev/mmcblk0p1 8192 98045 89854 43.9M e W95 FAT16 (LBA) /dev/mmcblk0p2 98304 15523839 15425536 7.4G 83 Linux Both start on an Erase Block Boundary but I noticed that the FAT partition did not ...
by Milliways
Sun Feb 24, 2019 12:43 am
Forum: Raspbian
Topic: eth0 only works for ~30 seconds
Replies: 14
Views: 863

Re: eth0 only works for ~30 seconds

If you REALLY need to set a static IP address 192.168.2.2 seems to be a poor choice - you should choose one outside the range managed by your DHCP server (router).

The 192.168.2.2 address is probably allocated to another device.
by Milliways
Fri Feb 22, 2019 2:11 am
Forum: Raspbian
Topic: Where does apt store downloaded packages
Replies: 1
Views: 641

Where does apt store downloaded packages

I just did an apt upgrade on my Pi which informed me "Need to get 131 MB of archives." Rather than download for another Pi I decided to see if I could avoid the download. My question is where are these stored? I had thought /var/cache/apt/archives/ but this seems to only contain a few files, and the...
by Milliways
Sat Feb 09, 2019 4:23 am
Forum: Beginners
Topic: Is VNC Connection Secure from Laptop to RPi3B+?
Replies: 3
Views: 112

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

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

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

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

Go to advanced search