Go to advanced search

by DougieLawson
Mon Jun 18, 2018 10:40 am
Forum: Beginners
Topic: Can't find/edit Config.txt
Replies: 9
Views: 210

Re: Can't find/edit Config.txt

Since you're running OpenElec rather than Raspbian you're much more likely to get a sane answer from https://forum.openelec.tv
by DougieLawson
Mon Jun 18, 2018 9:58 am
Forum: Troubleshooting
Topic: keyboard configuration problem?
Replies: 9
Views: 202

Re: Weird problem!

The # is more correctly called an "octothorp" not "hash", "pound", "sharp" or "hashtag".

Pound is from lb (latin libra) where the writing of "lb" got steadily lazier until it morphed into the octothorp.
by DougieLawson
Mon Jun 18, 2018 9:08 am
Forum: Troubleshooting
Topic: Wrong screen resolution of Raspbian in VNC Viewer
Replies: 5
Views: 141

Re: Wrong screen resolution of Raspbian in VNC Viewer

For a headless system there's an option in sudo raspi-config to force the resolution.
That added

Code: Select all

hdmi_force_hotplug=1
hdmi_group=2
hdmi_mode=81
to my /boot/config.txt

RealVNC uses the framebuffer dimensions for /dev/fb0. Which you can see at /sys/module/bcm2708_fb/parameters.
by DougieLawson
Mon Jun 18, 2018 8:56 am
Forum: General discussion
Topic: Password Lost
Replies: 5
Views: 168

Re: Password Lost

Add

Code: Select all

systemd.unit=emergency.target
to the end of /boot/cmdline (which you can do on Windows for a plain Raspbian card or with the NOOBS cmdline recovery editor).

That forces a systemd system to boot to an emergency root shell.

If you replace NOOBS with PINN that includes a password reset function.
by DougieLawson
Sun Jun 17, 2018 7:21 pm
Forum: Troubleshooting
Topic: Raspbian Stretch
Replies: 7
Views: 231

Re: Raspbian Stretch

Remove the

Code: Select all

proto=WPA
key_mgmt=WPA-PSK
lines as they do nothing useful.

Can you see your network on the GUI widget (top right of the task bar)?

Image
by DougieLawson
Sun Jun 17, 2018 6:22 pm
Forum: Beginners
Topic: Editing json file
Replies: 2
Views: 83

Re: Editing json file

You MUST stop transmission before editing the JSON file. It ALWAYS writes the current settings back to the JSON file when it terminates (which is a truly insane design).
by DougieLawson
Sun Jun 17, 2018 4:10 pm
Forum: Troubleshooting
Topic: RPI3 B >>> Mariadb >>> E: Unable to correct problems, you have held broken packages.
Replies: 4
Views: 85

Re: RPI3 B >>> Mariadb >>> E: Unable to correct problems, you have held broken packages.

What happens if you run
sudo apt-get update
sudo apt-get install mariadb-server-10.3
by DougieLawson
Sun Jun 17, 2018 2:36 pm
Forum: General discussion
Topic: Twitter Bot with automated photo
Replies: 5
Views: 182

Re: Twitter Bot with automated photo

twitterauth.json (no underscore in there) needs to be in the same directory as the script (/home/pi/twitterauth.json).
The tweeting script is in /home/pi/tweeter.pi on my system.

Tweepy gets installed with sudo pip3 install tweepy
by DougieLawson
Sun Jun 17, 2018 11:36 am
Forum: Off topic discussion
Topic: Digital TC Soldering Station (UK)
Replies: 15
Views: 387

Re: Digital TC Soldering Station (UK)

The annoying thing is the Aldi in Basingstoke isn't built yet. It opens in the Autumn.
Nearest Aldi is a 30 mile round trip.
by DougieLawson
Sun Jun 17, 2018 10:38 am
Forum: General discussion
Topic: Twitter Bot with automated photo
Replies: 5
Views: 182

Re: Twitter Bot with automated photo

Should work. I've not tested it.
Change the // lines to #// to fix my syntax errors.

Edit: https://twitter.com/IMSlights/status/10 ... 6916452353 first one worked.
And five minutes later https://twitter.com/IMSlights/status/10 ... 3665131520
by DougieLawson
Sun Jun 17, 2018 9:35 am
Forum: Beginners
Topic: Access denied on SHH (password is correct, user is pi)
Replies: 15
Views: 392

Re: Access denied on SHH (password is correct, user is pi)

Does your password include any special characters?
Did you re-configure your keyboard to your local layout (it defaults to UK)?
by DougieLawson
Sun Jun 17, 2018 9:32 am
Forum: Beginners
Topic: Need help with hash sum check
Replies: 9
Views: 238

Re: Need help with hash sum check

jahboater wrote:
Sun Jun 17, 2018 9:07 am
Yes - by allowing a Linux command to be run :)
I rest my case.
And is therefore an ideal solution for the OP.
It also gives you a simple ssh client - PuTTY without the bells and whistles.
by DougieLawson
Sun Jun 17, 2018 9:29 am
Forum: Beginners
Topic: Confused with creating backup of Raspbian in Windows
Replies: 7
Views: 136

Re: Confused with creating backup of Raspbian in Windows

Image

Piclone aka "SD Card Copier" is simple to use. Reads current booted media, writes to a USB device.
by DougieLawson
Sun Jun 17, 2018 9:04 am
Forum: Beginners
Topic: Confused with creating backup of Raspbian in Windows
Replies: 7
Views: 136

Re: Confused with creating backup of Raspbian in Windows

Win32DiskImager should work it out for you.

Personally if I want to create a copy of an SDCard, I'll run that on my Raspberry with the piclone GUI.
by DougieLawson
Sun Jun 17, 2018 9:02 am
Forum: Official Foundation Display
Topic: Official Raspberry 7" screen problem - vertical colored lines only
Replies: 6
Views: 241

Re: Official Raspberry 7" screen problem - vertical colored lines only

There are no parts available for the 7" display. Your only choice is a complete new display.
by DougieLawson
Sun Jun 17, 2018 9:00 am
Forum: Beginners
Topic: Need help with hash sum check
Replies: 9
Views: 238

Re: Need help with hash sum check

jahboater wrote:
Sun Jun 17, 2018 6:50 am
Everything is so hard on Windows ...
...

Code: Select all

sha256sum 2018-04-18-raspbian-stretch.zip
No it isn't
https://docs.microsoft.com/en-us/window ... tall-win10
gives you sha256sum in a Windows bash shell.
by DougieLawson
Sun Jun 17, 2018 8:53 am
Forum: Beginners
Topic: Confused with creating backup of Raspbian in Windows
Replies: 7
Views: 136

Re: Confused with creating backup of Raspbian in Windows

Pick the one with the earliest letter in the alphabet (usually E: or F:).
by DougieLawson
Sun Jun 17, 2018 8:52 am
Forum: General discussion
Topic: Twitter Bot with automated photo
Replies: 5
Views: 182

Re: Twitter Bot with automated photo

Start by getting this project working (soft toy is optional) https://projects.raspberrypi.org/en/projects/tweeting-babbage Code for that is here: https://github.com/raspberrypilearning/tweeting-babbage/tree/master/en/resources If we hack https://github.com/raspberrypilearning/tweeting-babbage/blob/m...
by DougieLawson
Sun Jun 17, 2018 8:30 am
Forum: Raspbian
Topic: Scripting problem extracting IP address
Replies: 23
Views: 453

Re: Scripting problem extracting IP address

The extra line is because your "inet" regex matches both "inet" and "inet6".

You may want to include a space to elimininate the match against "inet6".
by DougieLawson
Sat Jun 16, 2018 10:17 pm
Forum: Beginners
Topic: Raspbian Lite - can I run GUI browser?
Replies: 4
Views: 172

Re: Raspbian Lite - can I run GUI browser?

You'll need to install Xwindows - which isn't part of the default stuff in Raspbian Lite.
by DougieLawson
Sat Jun 16, 2018 9:27 pm
Forum: Add-ons
Topic: Witty Pi button not working
Replies: 1
Views: 132

Re: Witty Pi button not working

Assuming you've installed the hardware and software correctly your best option is to contact the vendor directly http://www.uugear.com/contact-us/
by DougieLawson
Sat Jun 16, 2018 6:39 pm
Forum: Python
Topic: Get tomorrow's weather
Replies: 7
Views: 255

Re: Get tomorrow's weather

Sign up at https://www.wunderground.com/signup?mode=api_signup Request an API key. http://api.wunderground.com/api/yourAPIkeyGoesHere/conditions/q/UK/Basingstoke.json gets current data. http://www.wunderground.com/cgi-bin/findweather/getForecast?query=51.261688,-1.109230 gets a forecast based on my ...
by DougieLawson
Sat Jun 16, 2018 5:44 pm
Forum: Raspbian
Topic: Scripting problem extracting IP address
Replies: 23
Views: 453

Re: Scripting problem extracting IP address

Try

Code: Select all

IPAddrWiFi=$(ip addr show | awk  '/inet .*global/ {print $2})'
That should return "192.168.117.174/24"
by DougieLawson
Sat Jun 16, 2018 5:26 pm
Forum: Troubleshooting
Topic: No Wireless interfaces found error!
Replies: 19
Views: 446

Re: No Wireless interfaces found error!

Since you can't follow simple instructions I'm going to give up at this point.
by DougieLawson
Sat Jun 16, 2018 5:03 pm
Forum: Troubleshooting
Topic: No Wireless interfaces found error!
Replies: 19
Views: 446

Re: No Wireless interfaces found error!

That's the nature of your problem. It's incomplete. Run these commands in an LXTerminal window sudo -s cd /etc/wpa_supplicant wpa_passphrase SSID_goes_here password_goes_here >> wpa_supplicant.conf reboot Obviously change SSID_goes_here to the name of your network and password_goes_here to the passw...

Go to advanced search