Go to advanced search

by iw1
Sat Feb 25, 2017 8:48 am
Forum: Scratch
Topic: Scratch of Jessie (2017-01-11) from a user other then pi
Replies: 3
Views: 727

Re: Scratch of Jessie (2017-01-11) from a user other then pi

There may be some useful information in this thread, particularly near the end.

viewtopic.php?f=77&t=167065
by iw1
Fri Dec 09, 2016 7:00 pm
Forum: Beginners
Topic: Pixel workspaces
Replies: 4
Views: 742

Re: Pixel workspaces

To increase the number of desktops: Click middle mouse-button on desktop; left-click on 'Add new desktop'. You can switch between desktops from this same menu. Optional: to add desktop identifier to taskbar: Right-click on taskbar and select 'Add / Remove Panel Items'. Click 'Panel Applets' In 'Pane...
by iw1
Wed Dec 07, 2016 4:23 pm
Forum: Scratch
Topic: Access to pigpio daemon
Replies: 18
Views: 2725

Re: Access to pigpio daemon

Success!
...launch the daemon at boot...
That's all that was needed.
Thanks again.
by iw1
Wed Dec 07, 2016 8:54 am
Forum: Scratch
Topic: Access to pigpio daemon
Replies: 18
Views: 2725

Re: Access to pigpio daemon

Thanks again for the help. I'll give that a try when I get chance. I've noticed that there are some lines in the /usr/bin/scratch file that relate to starting and conditionally stopping pigpiod as sudo so I suspect I won't get things right first time. More learning to do, but that's what this is all...
by iw1
Tue Dec 06, 2016 11:56 pm
Forum: Scratch
Topic: Access to pigpio daemon
Replies: 18
Views: 2725

Re: Access to pigpio daemon

Running Scratch from a terminal window requested a [sudo] password for the user; when this was provided my program worked as it should. Starting Scratch from the gui didn't request a sudo password and my program failed as described earlier. When the NOPASSWD option for the user was added to /etc/sud...
by iw1
Sat Dec 03, 2016 12:45 am
Forum: Scratch
Topic: Access to pigpio daemon
Replies: 18
Views: 2725

Re: Access to pigpio daemon

I have repeated the whole process by creating another new user but this time have more carefully made the user a member of all the groups listed above before testing the Scratch program accessing the gpio pins. groups gives: robert adm dialout cdrom sudo audio video plugdev games users input netdev ...
by iw1
Fri Dec 02, 2016 11:39 pm
Forum: Scratch
Topic: Access to pigpio daemon
Replies: 18
Views: 2725

Re: Access to pigpio daemon

Logged on as new user 'james' the output from groups is:
james adm dialout cdrom sudo audio video plugdev games users input netdev lpadmin gpio i2c spi pi
by iw1
Wed Nov 30, 2016 7:19 pm
Forum: Scratch
Topic: Access to pigpio daemon
Replies: 18
Views: 2725

Re: Access to pigpio daemon

Thanks for your help in pinning down the problem. If it doesn't the problem may be that the user needs to have sudo permissions to start the daemon. That might also explain the scratch failure, as scratch will try to start the daemon and presumably will also fail if the user doesn't have sudo permis...
by iw1
Wed Nov 30, 2016 6:57 pm
Forum: Scratch
Topic: Access to pigpio daemon
Replies: 18
Views: 2725

Re: Access to pigpio daemon

Sorry your post arrived while I was doing my edit - see above.
by iw1
Wed Nov 30, 2016 6:28 pm
Forum: Scratch
Topic: Access to pigpio daemon
Replies: 18
Views: 2725

Re: Access to pigpio daemon

You could check that by entering the command pigs pigpv at the command line when logged in as the user. This gives 'socket connection failure' error whether logged on as pi or as the new user. How are you accessing the daemon? Is it via scratch? Yes. As but stated above, user pi has no problem in S...
by iw1
Wed Nov 30, 2016 4:52 pm
Forum: Scratch
Topic: Access to pigpio daemon
Replies: 18
Views: 2725

Access to pigpio daemon

Is this daemon only accessible to user pi? A simple program controlling leds via a Pibrella board works fine for user pi but not for a new user. The error given was "...No connection to pigpiod daemon is missing ...". Even when the new user was made a member of the same groups that pi belongs to, ex...
by iw1
Thu Nov 17, 2016 11:14 pm
Forum: Scratch
Topic: Configure default path for Scratch projects?
Replies: 4
Views: 1288

Re: Configure default path for Scratch projects?

Like the Scratch directory, the .scratch directory and its subdirectory mentioned above are created, if they don't exist, when Scratch is run.
Not worth wasting time on, but weird if it doesn't happen on your computer as it occurs on both my Pis (running up-to-date Jessie Pixel).
by iw1
Thu Nov 17, 2016 11:25 am
Forum: Scratch
Topic: Configure default path for Scratch projects?
Replies: 4
Views: 1288

Re: Configure default path for Scratch projects?

Thanks for the quick reply, Tim - and an easily implemented solution. Is there a list somewhere of the other parameters - I have seen the posts referencing fontsize and soundbuffer - that can usefully be set in the .scratch.ini file? Two observations made whilst moving the location of projects: 1. I...
by iw1
Wed Nov 16, 2016 10:28 pm
Forum: Scratch
Topic: Configure default path for Scratch projects?
Replies: 4
Views: 1288

Configure default path for Scratch projects?

The default path for the menu option File > Open on the main window and for the My Projects option in the Open Project window is the same, namely, home/pi/Documents/Scratch Projects. Is there an easy way to change one or both of these, say, to home/pi/Scratch - a folder which always seems to be crea...
by iw1
Mon Oct 03, 2016 8:24 pm
Forum: Raspbian
Topic: Raspbian with RPI Desktop and RealVNC
Replies: 67
Views: 36050

Re: Pixel and RealVNC

Please could you try running: sudo vncinitconfig -service-daemon this will reinstall the init script for the VNC Server. We've found that the server will start more reliably on boot after this. This command alone did not help, but when followed by sudo systemctl enable vncserver-x11-serviced.servic...
by iw1
Sun Oct 02, 2016 12:06 pm
Forum: Scratch
Topic: New Scratch things for Raspbian September 2016
Replies: 26
Views: 7234

Re: New Scratch things for Raspbian September 2016

I have discovered why my Pibrella programs stopped working with the latest version of Scratch. Previously, broadcast commands controlling the leds etc. were not case-sensitive so a command such as RedOn would work. This is the way I typed such commands. Now the command has to be redon, all lowercase...
by iw1
Fri Sep 30, 2016 1:56 pm
Forum: Raspbian
Topic: Raspbian with RPI Desktop and RealVNC
Replies: 67
Views: 36050

Re: Pixel and RealVNC

The source of the problems I encountered yesterday became apparent this morning when the sd card I was using expired completely. A re-installation of PIXEL Raspbian (with VNC enabled) and all my modifications, including CUPS, on a new sd card works exactly as it should. Update: ... but only initiall...
by iw1
Fri Sep 30, 2016 7:28 am
Forum: Scratch
Topic: New Scratch things for Raspbian September 2016
Replies: 26
Views: 7234

Re: New Scratch things for Raspbian September 2016

I should have mentioned the context. I was using the newly released PIXEL version of Raspbian (freshly downloaded) so it was not just the version of Scratch that was new. In the past changes outside of Scratch have been a cause of problems. That may or may not be the case here.
by iw1
Thu Sep 29, 2016 8:43 pm
Forum: Raspbian
Topic: Raspbian with RPI Desktop and RealVNC
Replies: 67
Views: 36050

Re: Pixel and RealVNC

I've encountered a problem with the RealVNC server. After installing CUPS onto the PIXEL version of Raspian the VNC server service failed to start after a shutdown / reboot. When the CUPS software was removed the VNC server service re-started after a reboot without any problem. Other modifications (...
by iw1
Wed Sep 28, 2016 9:51 pm
Forum: Scratch
Topic: New Scratch things for Raspbian September 2016
Replies: 26
Views: 7234

Re: New Scratch things for Raspbian September 2016

I haven't been able to take advantage of the improvements yet but have encountered a problem when running programs, which did work with the previous version, with the new version of Scratch, namely the usual commands to the outputs of the Pibrella board, both the on-board leds and the connector outp...
by iw1
Mon May 23, 2016 2:45 pm
Forum: Scratch
Topic: Comment boxes increase in size
Replies: 1
Views: 508

Comment boxes increase in size

A minor bug that I've noticed recently in scripts that include comments: when the screen is redrawn after the file is saved, each of the comment boxes is slightly wider than before the save. Not a problem, just a minor irritation if you do a succession of saves and are trying to maintain a layout fr...
by iw1
Thu Mar 03, 2016 8:54 pm
Forum: Scratch
Topic: Scratch 2016-1-15 and Pibrella board
Replies: 12
Views: 2117

Re: Scratch 2016-1-15 and Pibrella board

I've repeated what I did two days ago - i.e. started with a clean card with the 2016-02-26-raspbian-jessie image and making the same changes in the same sequence. This time though, after making each change, I tested to see if setting a variable to Pibrella caused Scratch to crash as encountered befo...
by iw1
Wed Mar 02, 2016 8:50 pm
Forum: Scratch
Topic: Scratch 2016-1-15 and Pibrella board
Replies: 12
Views: 2117

Scratch 2016-1-15 and Pibrella board

With Scratch 1.4 (Linux) of 2016-01-15 with GPIO server on, if you create the variable AddOn, set AddOn to Pibrella and click on it then Scratch immediately crashes (no error messages). With Scratch 1.4 (Linux) of 2015-11-11 this problem does not exist; old programs written for the Pibrella board wo...
by iw1
Tue Oct 13, 2015 4:22 pm
Forum: Scratch
Topic: Sept 2015 Scratch release
Replies: 29
Views: 4116

Re: Sept 2015 Scratch release

I like the improvements. Thank you. I've only found one problem so far. When I 'save picture of scripts' the file that's generated shows an error when I try to display it: "GIF file was missing some data (perhaps it was truncated somehow?)". I suspect this will be a trivial problem to fix. Hmm, tha...
by iw1
Sun Oct 11, 2015 11:11 am
Forum: Scratch
Topic: Sept 2015 Scratch release
Replies: 29
Views: 4116

Re: Sept 2015 Scratch release

A minor problem, also found when saving picture of scripts... In the 'Save Scripts Window' there are 3 folder option icons. Clicking either 'Compute' or 'pi' (current user) open up the appropriate folder but clicking on 'Desktop' opens up the current user's home folder (i.e. same effect as second op...

Go to advanced search