Go to advanced search

by DougieLawson
Thu Jan 18, 2018 7:43 am
Forum: Advanced users
Topic: SQlite permissions not enough for execution
Replies: 2
Views: 94

Re: SQlite permissions not enough for execution

Read only is a status of SQLite that's unrelated to file permissions. The easy way to get in that status is two tasks attempting to write to one database.

sqlite3 original.db ".dump" | sqlite3 good.db
mv original.db broken.db
mv good.db original.db
by DougieLawson
Thu Jan 18, 2018 7:31 am
Forum: Raspbian
Topic: Time sync with ntp on Stretch - how often?
Replies: 6
Views: 188

Re: Time sync with ntp on Stretch - how often?

scotty101 wrote:
Wed Jan 17, 2018 10:42 am
Question has been answered here
viewtopic.php?f=66&t=168333
Except that NTP isn't installed on Stretch by default.
viewtopic.php?t=197711
by DougieLawson
Wed Jan 17, 2018 11:55 pm
Forum: Beginners
Topic: service motion not enabling
Replies: 1
Views: 31

Re: service motion not enabling

What do you get from a journalctl -xn command?
by DougieLawson
Wed Jan 17, 2018 11:43 pm
Forum: Advanced users
Topic: how to allow user to change eth0 settings but not wlan0 settings
Replies: 1
Views: 39

Re: how to allow user to change eth0 settings but not wlan0 settings

What aspect of the eth0 settings do you want to change? Why do you think you need to change them? It's often easier to do fixed addresses in your router's configuration pages rather than on your RPi.
by DougieLawson
Wed Jan 17, 2018 11:41 pm
Forum: Troubleshooting
Topic: Can not login
Replies: 3
Views: 70

Re: Can not login

What's your keyboard layout? Have you changed the password from "raspberry"? Does your password include any special charactters like quotes (") or at-sign (@)?
by DougieLawson
Wed Jan 17, 2018 11:17 pm
Forum: Advanced users
Topic: Non-root GPIO access broken with 4.9 kernel on Pi1
Replies: 14
Views: 2124

Re: Non-root GPIO access broken with 4.9 kernel on Pi1

sudo apt update; sudo apt install --reinstall raspberrypi-sys-mods;sudo reboot
by DougieLawson
Mon Jan 15, 2018 11:13 pm
Forum: Beginners
Topic: Delete pi user in Raspbian
Replies: 4
Views: 158

Re: Delete pi user in Raspbian

Crude and ugly way is sudo nano /etc/passwd; sudo nano /etc/group; sudo nano /etc/shadow;
Change pi to your new ID in those three files then reboot.

If you use the GUI you'll need to muck about with the lightdm autologin stuff.
by DougieLawson
Mon Jan 15, 2018 11:08 pm
Forum: Troubleshooting
Topic: [SOLVED] python-scrollphathd upgrade problem
Replies: 13
Views: 1323

Re: [SOLVED] python-scrollphathd upgrade problem

Sorry it's --force-overwrite (should have checked my other posts).
by DougieLawson
Mon Jan 15, 2018 10:07 pm
Forum: General discussion
Topic: Most advisable lightweight Web server
Replies: 7
Views: 266

Re: Most advisable lightweight Web server

rpdom wrote:
Mon Jan 15, 2018 9:50 pm
Nginx is good for reverse proxy. I don't thing lighttpd can do that.
I've never tried a reverse proxy with Lightty (I always find Lightty very hard to configure). I know it works with Apache2 and NGinx.
by DougieLawson
Mon Jan 15, 2018 9:36 pm
Forum: Troubleshooting
Topic: [SOLVED] python-scrollphathd upgrade problem
Replies: 13
Views: 1323

Re: [SOLVED] python-scrollphathd upgrade problem

sudo dpkg -i --force-overwrite /var/cache/apt/archives/python3-scrollphathd_1.1.0_all.deb
by DougieLawson
Mon Jan 15, 2018 9:25 pm
Forum: General discussion
Topic: How to change 32 bit packages to default architecture on a raspberry pi 3
Replies: 25
Views: 758

Re: How to change 32 bit packages to default architecture on a raspberry pi 3

sudo dpkg -i --force-overwrite /var/cache/apt/archives/python3-scrollphathd_1.1.0_all.deb
by DougieLawson
Mon Jan 15, 2018 9:23 pm
Forum: Troubleshooting
Topic: no session for pid error on vnc?
Replies: 8
Views: 209

Re: no session for pid error on vnc?

Sorry, I can't find any reason for this. What happens if you connect a TV, mouse and keyboard rather than using a VNC session?
by DougieLawson
Mon Jan 15, 2018 9:16 pm
Forum: Python
Topic: Piface python not working anymore
Replies: 22
Views: 950

Re: Piface python not working anymore

As before viewtopic.php?p=1259422#p1238119 go and create an issue on Github. If the developers don't know about your bug they will never fix it.
by DougieLawson
Mon Jan 15, 2018 9:14 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Raspi 3 with the wemos d1 mini OLED screen?
Replies: 4
Views: 134

Re: Raspi 3 with the wemos d1 mini OLED screen?

Wemoses are like bicycles, raspberries and guitars. The number of wemoses you need is always the number you've got plus one. At a cost of £3.28 with some weeks of lead time, that isn't a big problem. I've already got two of the wee beasties.
by DougieLawson
Mon Jan 15, 2018 9:10 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Sending data from Arduino to Raspberry Pi
Replies: 18
Views: 10872

Re: Sending data from Arduino to Raspberry Pi

Can you post your Arduino sketch?

You can't run the IDE serial monitor while you're running the python program.
by DougieLawson
Mon Jan 15, 2018 7:49 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Raspi 3 with the wemos d1 mini OLED screen?
Replies: 4
Views: 134

Re: Raspi 3 with the wemos d1 mini OLED screen?

Use the Wemos USB serial interface. Or use Wemos WiFi. I've got one that gets a message from MQTT and displays it on a 16x2 HD44780 LCD (with an I2C PCF8574 interface). Sending data via GPIO (unless you use TX/RX on your RPi to RX/TX on your Wemos) is going to be harder than it needs to be. WiFi is ...
by DougieLawson
Mon Jan 15, 2018 6:58 pm
Forum: Add-ons
Topic: Official Raspberry Pi keyboard
Replies: 18
Views: 2259

Re: Official Raspberry Pi keyboard

shiekh wrote:
Mon Jan 15, 2018 6:54 pm
It has been over a year now, but still I remain hopeful.
Don't hold your breath waiting. It's more than a year since this thread started and it ain't appeared yet.
by DougieLawson
Mon Jan 15, 2018 6:54 pm
Forum: Troubleshooting
Topic: cannot ssh into my raspberry pi zero W
Replies: 22
Views: 355

Re: cannot ssh into my raspberry pi zero W

If you don't know the name of a package try using the search function apt search sshd pi@mercury:~ $ apt search sshd Sorting... Done Full Text Search... Done fail2ban/stable 0.9.6-2 all ban hosts that cause multiple authentication errors libconfig-model-cursesui-perl/stable 1.105-1 all curses interf...
by DougieLawson
Mon Jan 15, 2018 5:06 pm
Forum: Python
Topic: (SOLVED)How to add concatenation
Replies: 12
Views: 204

Re: How to add concatenation

Python always needs an octothorpe sign in quotes or apostrophes as that symbol is used to designate the rest of the statement as a comment.

Code: Select all

# this is a comment xyzzy = "foo" won't happen
xyzzy = "foobar" # this is a comment too
xyzzy = "foobar" + "# this isn't a comment"  
by DougieLawson
Mon Jan 15, 2018 4:51 pm
Forum: Windows 10 for IoT
Topic: Control windows IOT (RPI3) by windows 7
Replies: 6
Views: 417

Re: Control windows IOT (RPI3) by windows 7

Raspberries have auto-sensing ethernet so you DO NOT need any cross-over cables, it works with a straight through cable.
by DougieLawson
Mon Jan 15, 2018 2:36 pm
Forum: Other projects
Topic: PI DCF77 simulator
Replies: 7
Views: 156

Re: PI DCF77 simulator

How are you going to get the mark/space timing (dead on a second boundary) correct? The Linux kernel isn't good at accurate timing and python does it worse than the kernel.
by DougieLawson
Mon Jan 15, 2018 2:28 pm
Forum: General discussion
Topic: Most advisable lightweight Web server
Replies: 7
Views: 266

Re: Most advisable lightweight Web server

I use lighttpd. As the name suggests, it's pretty lightweight and works well on my pi. Just google: "lighttpd php on raspberry pi" I was going to say NGinx. Same thing Google "NGinx php raspberry pi". I've found getting CGI programs to run with lightty is a pain. I've got a mix of Apache2, Lighttpd...
by DougieLawson
Mon Jan 15, 2018 2:15 pm
Forum: Other projects
Topic: PI DCF77 simulator
Replies: 7
Views: 156

Re: PI DCF77 simulator

DCF77 is a 60Hz 77Hz radio signal from Mainflingen in Germany. You need a LW radio receiver for it. The signal is a simple set of marks and spaces every second which each minute give you the current date/time/daylight saving time signal. You can't do that on a Raspberry without additional hardware. ...

Go to advanced search