Go to advanced search

by DougieLawson
Sat Nov 18, 2017 1:35 pm
Forum: General discussion
Topic: how to increase Ram memory of PI 3
Replies: 11
Views: 491

Re: how to increase Ram memory of PI 3

The memory layout code got fixed with RPi2B2.
by DougieLawson
Sat Nov 18, 2017 1:33 pm
Forum: Python
Topic: Piface python not working anymore
Replies: 13
Views: 217

Re: Piface python not working anymore

How does the piface code determine what model of RPi your running?

The 4.9.x kernel broke that code. All RPis now report BCM2835.

Someone needs to fix any code that parses /proc/cpuinfo
by DougieLawson
Sat Nov 18, 2017 10:30 am
Forum: Raspbian
Topic: Tell me if your HP printer works on Raspbian
Replies: 4
Views: 86

Re: Tell me if your HP printer works on Raspbian

My 2005 vintage HP6840 works. It's some way over 16,000 pages printed in 12 years.
by DougieLawson
Sat Nov 18, 2017 9:52 am
Forum: General discussion
Topic: Kali Linux RPi3 Booting From USB
Replies: 2
Views: 75

Re: Kali Linux RPi3 Booting From USB

Apart from Fruity's sensible suggestion (because Kali isn't supported on here). The things to check for USB booting are 1. /boot/cmdline.txt 2. /etc/fstab Make sure both have the right partitions/filesystems defined for /boot and / (root) and any other's that are an essential part of the OS you're t...
by DougieLawson
Sat Nov 18, 2017 8:30 am
Forum: Troubleshooting
Topic: Problem with python script contains mysql running in rc.local
Replies: 4
Views: 96

Re: Problem with python script contains mysql running in rc.local

Use a systemd service file with an appropriate After clause.

Code: Select all

[Unit]
Description=database updater
After=mysql.service

[Service]
ExecStart=/usr/local/bin/db_update
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=db_update

[Install]
WantedBy=multi-user.target
by DougieLawson
Sat Nov 18, 2017 8:18 am
Forum: Raspbian
Topic: 404 error favicon.ico not found.
Replies: 1
Views: 35

Re: 404 error favicon.ico not found.

Just grab a copy of https://www.raspberrypi.org/app/themes/ ... avicon.png stick that in /var/www/html as favicon.ico
by DougieLawson
Sat Nov 18, 2017 2:29 am
Forum: Beginners
Topic: LCD 20x4 and Raspberry PI 3 model B
Replies: 3
Views: 66

Re: LCD 20x4 and Raspberry PI 3 model B

What pins on the LCD are wired to what pins on your RPi? It's impossible to tell from your photos.

Have you got D4,D5,D6 and D7 reversed?
by DougieLawson
Sat Nov 18, 2017 2:20 am
Forum: General discussion
Topic: Script not running or staying running using rc.local
Replies: 4
Views: 116

Re: Script not running or staying running using rc.local

You need to code full paths for any files used in your python program. Doing that cd command achieves nothing because cycles.py will be spawned/forked as a new process. Write a log from your program either with lots of print statements of with the python syslog module. Here's a banal example of how ...
by DougieLawson
Sat Nov 18, 2017 2:12 am
Forum: General discussion
Topic: Nextcloud, MySQL, PHP 7
Replies: 2
Views: 81

Re: Nextcloud, MySQL, PHP 7

Just run your sudo apt install ... command, see what happens. It won't hurt.

Try
apt search php.*7
to find the packages you need to install.
by DougieLawson
Sat Nov 18, 2017 1:50 am
Forum: Troubleshooting
Topic: Problem with python script contains mysql running in rc.local
Replies: 4
Views: 96

Re: Problem with python script contains mysql running in rc.local

independent wrote:
Fri Nov 17, 2017 8:45 pm

Code: Select all


os.system('modprobe w1-gpio')
os.system('modprobe w1-therm')
Start by removing those two lines from your program.

Use the Raspi Config settings to enable 1-wire and it will load the kernel modules you need.
by DougieLawson
Sat Nov 18, 2017 1:38 am
Forum: General discussion
Topic: how to increase Ram memory of PI 3
Replies: 11
Views: 491

Re: how to increase Ram memory of PI 3

jahboater wrote:
Fri Nov 17, 2017 3:49 pm
:) You can get an extra 16MB with this in config.txt :)

total_mem=1024
That's no longer needed with the current bootcode/kernel.
by DougieLawson
Sat Nov 18, 2017 1:35 am
Forum: Troubleshooting
Topic: Raspberry Pi dedicated touchscreen error after update and upgrade
Replies: 9
Views: 173

Re: Raspberry Pi dedicated touchscreen error after update and upgrade

jamesh wrote:
Fri Nov 17, 2017 4:21 pm
Not the touchscreen change, that is in 4.13 [sic], not 4.9.
Hang on, I though BRANCH=next was taking us to 4.14.
by DougieLawson
Sat Nov 18, 2017 1:32 am
Forum: Weather station
Topic: errno 5 - problem with mcp , no readings
Replies: 2
Views: 55

Re: errno 5 - problem with mcp , no readings

Are you sure that pin #3 & #5 on the RPi are making a good connection to the WS HAT?

https://pinout.xyz/pinout/i2c
by DougieLawson
Sat Nov 18, 2017 1:27 am
Forum: Python
Topic: Paho-MQTT: NameError: name 'Client" is not defined
Replies: 5
Views: 92

Re: Paho-MQTT: NameError: name 'Client" is not defined

Well I guess I'm not copy-pasting from Steve's internet guide anymore... Thank you so much! Anyway I now have You didn't read the whole article. import paho.mqtt.client as mqtt #import the client1 broker_address="localhost" #broker_address="iot.eclipse.org" #use external broker client = mqtt.Client...
by DougieLawson
Fri Nov 17, 2017 11:07 am
Forum: Python
Topic: Paho-MQTT: NameError: name 'Client" is not defined
Replies: 5
Views: 92

Re: Paho-MQTT: NameError: name 'Client" is not defined

client <> Client

Python is case sensitive.
by DougieLawson
Fri Nov 17, 2017 8:03 am
Forum: Raspbian
Topic: Identify hardware version from within Raspbian
Replies: 7
Views: 8073

Re: Identify hardware version from within Raspbian

cat /proc/cpuinfo
cat /sys/firmware/devicetree/base/model
by DougieLawson
Fri Nov 17, 2017 1:33 am
Forum: Weather station
Topic: Customizing weather station
Replies: 2
Views: 59

Re: Customizing weather station

The Oracle kit isn't available to the general public, it's only for schools and colleges.
by DougieLawson
Fri Nov 17, 2017 1:30 am
Forum: Advanced users
Topic: Automaticaly Disable wlan0 on Pi 3 when a USB Wifi adapter is present
Replies: 6
Views: 276

Re: Automaticaly Disable wlan0 on Pi 3 when a USB Wifi adapter is present

use ip link set eth0 up or ip link set eth0 down with the appropriate interface name.
by DougieLawson
Fri Nov 17, 2017 1:28 am
Forum: Troubleshooting
Topic: Looking for logs abut wireless conection
Replies: 1
Views: 64

Re: Looking for logs abut wireless conection

Use dmesg , cat /var/log/messages and cat /var/log/syslog commands. You may want to use dmesg | less or less /var/log/messages or less /var/log/syslog to get a scrollable output (use q to quit the less display). You should see a shed load of messages about your network interfaces in those three sour...
by DougieLawson
Fri Nov 17, 2017 1:17 am
Forum: General discussion
Topic: Hostname issues.
Replies: 8
Views: 257

Re: Hostname issues.

MuntyScruntfundle wrote:
Thu Nov 16, 2017 10:38 pm
I've always found Netgear hardware very reliable, but I've also always found the firmware to be utter trash.
Obligatory link to the University of Wisconsin's 2003 experience with Netgear
http://pages.cs.wisc.edu/~plonka/netgear-sntp/
by DougieLawson
Fri Nov 17, 2017 1:13 am
Forum: Advanced users
Topic: Moving Linux kernel to 4.14
Replies: 17
Views: 805

Re: Moving Linux kernel to 4.14

cjan wrote:
Thu Nov 16, 2017 10:56 pm
cjan wrote:
Wed Nov 15, 2017 12:04 am
enable FKMS boot fail, black screen.
so, ignore it or it just me?
What do you expect running a still very broken pre-alpha testing graphics module on a beta testing kernel?
by DougieLawson
Fri Nov 17, 2017 12:54 am
Forum: Beginners
Topic: DHT Sensor 'Failed to get reading'
Replies: 1
Views: 33

Re: DHT Sensor 'Failed to get reading'

What Raspberry Pi are you using? Which pin did you connect it to? https://pinout.xyz What kernel version? Because this code def pi_version(): """Detect the version of the Raspberry Pi. Returns either 1, 2, 3 or None depending on if it's a Raspberry Pi 1 (model A, B, A+, B+), Raspberry Pi 2 (model B+...
by DougieLawson
Fri Nov 17, 2017 12:34 am
Forum: General discussion
Topic: Script not running or staying running using rc.local
Replies: 4
Views: 116

Re: Script not running or staying running using rc.local

1. You DO NOT need sudo in /etc/rc.local it runs as root.
2. You DO NOT need nohup, the & on the tail of the command tells the system to fork a new process.
3. You DO need full paths to everything as /etc/rc.local runs in a /bin/sh shell with a restricted environment.
by DougieLawson
Fri Nov 17, 2017 12:32 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Does DSI have better support
Replies: 10
Views: 248

Re: Does DSI have better support

Nothing changes. The only DSI device that's currently supported is the official RPF 7" touch screen.

Go to advanced search