Go to advanced search

by pleriche
Fri Jun 21, 2019 9:08 pm
Forum: Advanced users
Topic: IP config depending on wireless network
Replies: 2
Views: 348

Re: IP config depending on wireless network

Thank you @Andyroo, that seems to be what I want. I hadn't spotted the ssid directive in dhcpcd.conf(5). But that man page is rather sparse and leaves me with several questions: So what is the scope of an ssid option (or for that matter an interface option or a profile option)? The man page simply s...
by pleriche
Thu Jun 20, 2019 3:06 pm
Forum: Advanced users
Topic: IP config depending on wireless network
Replies: 2
Views: 348

IP config depending on wireless network

I have a Pi which I connect to two different WiFi routers according to the location. For simplicity, I want to use a fixed IP address for the Pi but the two routers have different IP addresses, requiring a different default router in the Pi IP configuration. Under Wheezy this was quite easy to set u...
by pleriche
Thu Jun 13, 2019 10:15 am
Forum: Troubleshooting
Topic: Fresh Stretch install - WiFi not working
Replies: 6
Views: 280

Re: Fresh Stretch install - WiFi not working

OK, thanks all. Simple problem: 1 character short when I selected the text to copy and paste.

As I aways say, there's no such thing as a hard problem - but some easy problems are hard to find.
by pleriche
Thu Jun 13, 2019 7:42 am
Forum: Troubleshooting
Topic: Fresh Stretch install - WiFi not working
Replies: 6
Views: 280

Re: Fresh Stretch install - WiFi not working

I do have the country line. In fact I didn't get the wpa_supplicant.conf from the old Wheezy system (as it was necessarily offline at the time!) but from a Pi 3 running Jessie. Here it is (redacted): trl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=GB network={ ssid="AR...
by pleriche
Wed Jun 12, 2019 9:42 pm
Forum: Troubleshooting
Topic: Fresh Stretch install - WiFi not working
Replies: 6
Views: 280

Fresh Stretch install - WiFi not working

I have an original Pi Model B which has been running Wheezy all this time, connecting to WiFi with a USB dongle (RTL5370) which I'm tryng to upgrade to Stretch. I downloaded the latest Stretch (with desktop but without recommended software) and copied it to a fresh SDCard. To /boot I wrote a file ss...
by pleriche
Mon Dec 10, 2018 10:50 pm
Forum: Advanced users
Topic: Co-existing devices on i2c bus
Replies: 5
Views: 1843

Re: Co-existing devices on i2c bus

For the sake of anyone stumbling across this thread in the future, the problem was a very stupid bug (aren't they all?) in my PIC assembly code, the sort you can stare at for hours and not see. (Well, that's my excuse, anyway.)
by pleriche
Sun Dec 09, 2018 10:15 am
Forum: Advanced users
Topic: real/fake hwclock/ntp interaction
Replies: 1
Views: 262

real/fake hwclock/ntp interaction

From what I've read it seems you have to uninstall fake-hwclock if you've got a real one (e.g. DS1307). But I want my Pi to do the best it can given that it may or may not have the DS1307 plugged in today which may or may not have been initialised, and it may or may not have a network connection. In...
by pleriche
Fri Nov 23, 2018 10:42 am
Forum: Advanced users
Topic: Co-existing devices on i2c bus
Replies: 5
Views: 1843

Re: Co-existing devices on i2c bus

A software problem. My Systems Architect (me) didn't appreciate the complexity of his proposed solution and failed to properly specify the implementation. My Project Manager (me) was hassling my Principal Programmer over missed milestones. My Principal Programmer (me) frankly wasn't up to the job an...
by pleriche
Tue Nov 20, 2018 8:50 pm
Forum: Advanced users
Topic: Co-existing devices on i2c bus
Replies: 5
Views: 1843

Re: Co-existing devices on i2c bus

Thank you 6by9 - I'll bear that in mind when I get around to upgrading to Stretch. As always, when you've proved the fault can't exist and yet it's mocking you to your face, the thing to do is to go back to the start and recheck everything. I went back to my Mk I version running under an ancient Whe...
by pleriche
Mon Nov 19, 2018 12:27 pm
Forum: Advanced users
Topic: Co-existing devices on i2c bus
Replies: 5
Views: 1843

Co-existing devices on i2c bus

About 5 years ago I built a Pi midi interface around a PIC microcontroller, using I2C to communicate with a user-space Python program on the Pi, running Wheezy. This was working fine until a month or two ago. Last Summer I built a Mk II version using a PIC with more pins to allow me to include funct...
by pleriche
Sun May 27, 2018 10:02 pm
Forum: Troubleshooting
Topic: i2c problem on PiZero v1.2
Replies: 1
Views: 182

Re: i2c problem on PiZero v1.2

I've now tried various combinations of old/new interface on different Pis and different OS's and the results are as follows: Original Pi Model B: Wheezy: Both old and new interfaces work PiZeroV1.2: - Stretch: - - Old interface worked maybe a couple of years ago - - New interface now doesn't work - ...
by pleriche
Fri May 25, 2018 9:30 pm
Forum: Troubleshooting
Topic: i2c problem on PiZero v1.2
Replies: 1
Views: 182

i2c problem on PiZero v1.2

Some 5 years ago I built an intelligent midi interface using a PIC16F1823 8 bit microcontroller, which interfaces with the Pi using i2c. (The PIC is working as an i2c slave.) I use this fairly regularly with one of my original Pi Model B's, still running Wheezy. At one stage I tried replacing the Pi...
by pleriche
Sat May 05, 2018 9:31 pm
Forum: Beginners
Topic: install flashrom on rp 0
Replies: 3
Views: 1533

Re: install flashrom on rp 0

In case anyone is watching this or stumbles across it, I downloaded the source and successfully built it to drive SPI devices through /dev/spi* with: make CONFIG_ENABLE_LIBPCI_PROGRAMMERS=no CONFIG_ENABLE_LIBUSB0_PROGRAMMERS=no CONFIG_ENABLE_LIBUSB1_PROGRAMMERS=no It appeared to work, typing ./flash...
by pleriche
Wed Apr 04, 2018 10:55 am
Forum: Troubleshooting
Topic: Raspbian Stetch Lite - VNC gives tiny window
Replies: 3
Views: 433

Re: Raspbian Stetch Lite - VNC gives tiny window

To confirm, works fine with Stretch Hevi. Initially vnc gave me a window which seemed to be 660x420 (no idea where it got that resolution from), and changing it in raspi-config from the default of 720x480 to 1024x768 worked. Will probably stick with Hevi. I went for light thinking that was an old 4G...
by pleriche
Wed Apr 04, 2018 10:25 am
Forum: Troubleshooting
Topic: Raspbian Stetch Lite - VNC gives tiny window
Replies: 3
Views: 433

Re: Raspbian Stetch Lite - VNC gives tiny window

Hmmm... that didn't work either. Just reflashing my SDCard with Raspbian Stretch Hevi (non-Lite) which I imagine has vnc pre-installed.
by pleriche
Wed Apr 04, 2018 9:30 am
Forum: Troubleshooting
Topic: Raspbian Stetch Lite - VNC gives tiny window
Replies: 3
Views: 433

Raspbian Stetch Lite - VNC gives tiny window

I downloaded the latest Raspian Stretch Lite 2018-03-13 for my PiZero 1.2 (no camera connector or WiFi), used a console connection to enable ssh, then in raspi-config, I enabled boot into GUI and VNC. Connecting with VNC I got a mini 200x300 pixel window only. I've had that before, and knew that all...
by pleriche
Sat Aug 12, 2017 4:52 pm
Forum: General discussion
Topic: Adafruit MPL115A2 Temp/Pressure sensor - Python
Replies: 6
Views: 3861

Re: Adafruit MPL115A2 Temp/Pressure sensor - Python

Glad it's still useful, nearly 3 years later!

Regards - Philip
by pleriche
Thu Jun 22, 2017 2:34 pm
Forum: Advanced users
Topic: VNC sessions hang
Replies: 0
Views: 248

VNC sessions hang

For several weeks I've been chasing an intractable problem with VNC sessions hanging. They generally recover after around 30 seconds. I wonder if it rings any bells with anyone round here? We have a bunch of headless classroom Pis on their own NATted subnet, which is connected to the school network ...
by pleriche
Tue May 16, 2017 3:07 pm
Forum: Troubleshooting
Topic: autocutsel on Jessie
Replies: 1
Views: 408

Re: autocutsel on Jessie

OK, let's put this another way. A ps listing shows autocutsel is already running as a daemon (parent pid is 1) though I've grepped all the way through /etc and can't see what initiates it, but no matter. Running VNC under Windows, I can cut and paste from a window in the VNC session to Notepad in Wi...
by pleriche
Mon May 15, 2017 4:16 pm
Forum: Troubleshooting
Topic: autocutsel on Jessie
Replies: 1
Views: 408

autocutsel on Jessie

My standard practice on Wheezy was to enable cut'n'paste between a VNC session and the host by installing autocutsel then adding autocutsel -fork to .vnc/xstartup immediately before the /etc/X11/Xsession command. But on Jessie, .vnc only contains an empty directory config.d and I don't see a file an...
by pleriche
Sat Feb 18, 2017 6:30 pm
Forum: Raspbian
Topic: VNC server in Jessie (using a systemd service)
Replies: 25
Views: 97997

Re: VNC server in Jessie (using a systemd service)

Having come back to this a good few months later I find that the answer is very simple: in .vnc/xsession insert: cd $HOME anywhere before the last line. I don't know why this is necessary on Jessie but not on Wheezy. This works fine for me - thanks xanthor. Just one little niggle: when I start LXter...
by pleriche
Thu Oct 13, 2016 7:52 pm
Forum: Advanced users
Topic: Connecting using IPv6 Link Local
Replies: 4
Views: 1787

Re: Connecting using IPv6 Link Local

Thanks for the replies. I only needed to do this in order to solve another urgent problem, which I've now sidestepped in a different way, so I'll come back to it later when I have more time and try and work out properly what was going on. In fact on 2 occasions I managed to ping in one direction but...
by pleriche
Wed Oct 12, 2016 11:15 am
Forum: Advanced users
Topic: Connecting using IPv6 Link Local
Replies: 4
Views: 1787

Connecting using IPv6 Link Local

I need to temporarily connect my (Win7) laptop to a (headless) Pi (Wheezy) with PuTTY at a location where the WiFi is flaky, using a direct network cable. (Laptop NIC is auto-sensing, so no crossover needed.) My first though was to allow the laptop and Pi to auto-configure with 169.254 addresses, an...
by pleriche
Wed Jul 20, 2016 4:26 pm
Forum: Python
Topic: os.system() in cgi script
Replies: 5
Views: 1412

Re: os.system() in cgi script

Thank you - I think you have the answer. Neither os.system in the Python library reference nor the system(3) man page say what happens to stdout from the command, leaving the naive user to assume the command inherits stdout from the parent process. Evidently not, though I'm still trying to get my he...
by pleriche
Wed Jul 20, 2016 10:51 am
Forum: Python
Topic: os.system() in cgi script
Replies: 5
Views: 1412

Re: os.system() in cgi script

RaTTuS wrote:full path to date ?
Good try - I'm sure that's caught me out before, but os.system("/bin/date") is the same.

Go to advanced search