Go to advanced search

by DougieLawson
Mon Jan 15, 2018 11:13 pm
Forum: Beginners
Topic: Delete pi user in Raspbian
Replies: 4
Views: 140

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

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

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

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: 22
Views: 685

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: 7
Views: 174

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

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

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

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

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: 15
Views: 2172

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

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

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

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

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

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

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. ...
by DougieLawson
Mon Jan 15, 2018 2:06 pm
Forum: Troubleshooting
Topic: Cannot Connect to Hidden WiFi Network
Replies: 2
Views: 71

Re: Cannot Connect to Hidden WiFi Network

If you insist on creating unnecessary headaches for yourself while potentially making your network less secure, then just add scan_ssid=1 to your wpa_supplicant.conf file in the network section. You may also need to update your supplicant file with bssid=de:ad:be:ef:ca:fe with the MAC address of yo...
by DougieLawson
Mon Jan 15, 2018 2:03 pm
Forum: Beginners
Topic: I need someone make my code
Replies: 12
Views: 410

Re: I need someone make my code

Please, I need it for a school project. I'll do it for GBP £100.00 per hour + VAT @20% But I won't do your homework for free unless you can arrange for me to get your diploma, exam results, degree (or whatever you're studying for). I gave you a massive hint here: https://www.raspberrypi.org/forums/...
by DougieLawson
Mon Jan 15, 2018 1:54 pm
Forum: Troubleshooting
Topic: Headless operation, need to remote in
Replies: 10
Views: 202

Re: Headless operation, need to remote in

Best thing is RealVNC Cloud. You don't need SSH tunnels, you don't need anything open through your firewall. You can access your RPi desktop from anywhere in the world with any RealVNC client. https://www.raspberrypi.org/blog/get-back-to-my-pi-from-anywhere-with-vnc-connect/ https://www.realvnc.com/...
by DougieLawson
Mon Jan 15, 2018 1:16 am
Forum: Raspbian
Topic: Samba without password but with allowed ip
Replies: 3
Views: 117

Re: Samba without password but with allowed ip

After Wannacry any modern/supported version of Windows won't allow CIFS/Samba shares without a password (as that was the vector for infection with that virus/trojan/ransomware).
by DougieLawson
Mon Jan 15, 2018 1:03 am
Forum: Beginners
Topic: Usb sd card reader
Replies: 2
Views: 71

Re: Usb sd card reader

Yes.
by DougieLawson
Mon Jan 15, 2018 1:03 am
Forum: Other
Topic: 64bit Debian OS for Raspberry Pi 2
Replies: 7
Views: 191

Re: 64bit Debian OS for Raspberry Pi 2

It's not possible with that RPi2 V1.1

Go to advanced search