On 07/09/2012 04:10, Norman Dunbar wrote:
Hi Bryan,
On 07/09/12 15:32, Bryan Horstmann wrote:
It would be nice to demonstrate a set-up
which just brought up QL quickly on switching on, as the QL did,
providing programming straight away, or the Xchange suite if needed.  No
need for it to be a QL look-alike.

Login to your pi as the pi user, for example. Then create/edit a file in your $HOME directory, named .xsession - leading dot and all lower case.

Add the following:

#!/usr/bin/sh
/usr/local/bin/qm &

Save and exit.

You can of course, replace qm with qx, qxx or qxxx to run Uqlx on login, or indeed, any other GUI type program can be started in the same file. Just add it's name into the file with a trailing ampersand to make it a batch job.

Make it executable:

chmod 755 ./xsession

This causes Uqlx (the qm version) to be run whenever you connect with a GUI session.

This works when you login as the pi user directly and the Pi is connected to the HDMI/TV or when you login to the pi user via a VNC session. (Which is what I tend to do.)

It only affects logins to a GUI and as the pi user. If you have more users set up and you want them to run something on login to a GUI, then instead of creating the same file in everyone's $HOME, create it in /etc/X11/Xsession.d and call it startup instead.

Well, that's the theory at least, I haven't tried the latter version myself.


HTH

Cheers,
Norm.

From Tony Firshman
... and that user name caused me a few hassles when I set up mine.
The first thing I did was get rid of that user, and make a 'tony'.
However a number of suggestions on setting up had 'pi' in the command line and I didn't twig what that was first time!

Any instructions, especially command line quotes, should put <user> when they have pi there!
I really must find time to play QL on my pi (8-)#

Tony.

Thanks for you advice Norman and Tony. I've made a note of it but I'm afraid it is a bit "over my head"; I'm a simple user (although a qualified engineer). My main machine is set up in a drop-down leaf desk; twin floppies, Romdisk and Gold card with a Rainbow keyboard and original QL mono monitor, with my start options page in Sbasic. We have used a QL as a tool for years,( and my wife finds my laptop too complicated), without going further than Superbasic, and using library programmes plus some commercial. It has been a simple computer tool for me and I don't often mess about in command line or the "code" (except that Sbasic is command line I suppose). I have been shown how to hack into Psion to customise printer options though. I did manage, under instruction, to get PC XCHANGE to successfully run under Linux with DOSbox. But I cannot find out how to get Ubuntu in full screen, and haven't the time to work on it. So you perhaps understand that I just want a substitute which "runs out of the box" as it were. I'll have to see when my R-pi comes later next month.

Bryan H



_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm

Reply via email to