Go to advanced search

by Cromarty
Sun Apr 21, 2013 10:22 pm
Forum: General programming discussion
Topic: Bash variable scope in Arch Linux
Replies: 7
Views: 2042

Re: Bash variable scope in Arch Linux

Yes you're right. My first post implied I was using Arch on the Pi, which I am. This is a Pi forum. But I'm also using Arch for cross-compilation, or trying to. So far I've been cross-compiling kernels on a Vinux virtual machine with a Win 7 host and figured I could speed it up using an Arch quad-co...
by Cromarty
Sun Apr 21, 2013 8:46 pm
Forum: General programming discussion
Topic: Bash variable scope in Arch Linux
Replies: 7
Views: 2042

Re: Bash variable scope in Arch Linux

Vinux is a variation on Ubuntu for visually-impaired users. I'm blind.

http:/vinuxproject.org/

It has SpeakUp and Orca running out-of-the-box.

I solved the issue...can't use a 32-bit tool-chain on a 64-bit Arch...doh!
by Cromarty
Sun Apr 21, 2013 6:40 pm
Forum: General programming discussion
Topic: Bash variable scope in Arch Linux
Replies: 7
Views: 2042

Re: Bash variable scope in Arch Linux

Yep you're right. I hadn't spotted that. Problem is I'm tearing my hair out with a problem that is working in Vinux but not in Arch. I have the rpi cross-compile tool-chain installed and have set these variables, and exported them: KERNEL_SRC CCPREFIX MODULES_TEMP And in Vinux (Ubuntu spin), this wo...
by Cromarty
Sun Apr 21, 2013 5:05 pm
Forum: General programming discussion
Topic: Bash variable scope in Arch Linux
Replies: 7
Views: 2042

Bash variable scope in Arch Linux

Hello. Up to now I've been using Raspbian but thought I'd give Arch a try. There is a behaviour with variable scope in bash which I have never seen before in Linux. In a script I can't 'see' any of the variables declared in the outer scope. So in a script none of the environment variables are visibl...
by Cromarty
Fri Mar 29, 2013 2:15 am
Forum: General discussion
Topic: Mounting hole clearances
Replies: 3
Views: 1000

Mounting hole clearances

Hello. I am curious about the clearances around the M2 mounting holes in the rev 2 boards. I have a couple of these and I want to be able to mount them with metallic pillars in a plastic box. Because I can't see, I can't tell easily how large a diameter of pillar I can use before the risk of shortin...
by Cromarty
Fri Mar 15, 2013 7:24 am
Forum: C/C++
Topic: GPIO pins, wiringpi and pin locations
Replies: 3
Views: 3959

Re: GPIO pins, wiringpi and pin locations

Hello. Thanks for this. It's a useful cross-check. After I had posted the above appeal I found a table on elinux which I have re-produced on the web site but your list will help me to check that I have it right. The hardware revision of both of my Model Bs is '000e' which seems to well exceed Ebben'...
by Cromarty
Fri Mar 15, 2013 12:06 am
Forum: C/C++
Topic: GPIO pins, wiringpi and pin locations
Replies: 3
Views: 3959

GPIO pins, wiringpi and pin locations

Hello. I know this post is initially going to make you all groan and say 'not again' but read on. I've had a Pi for some months now but I'm just about to start using the GPIO pins. My problem is that because I'm blind, none of the posts or diagrams with descriptions of the pins are much use to me. I...
by Cromarty
Sun Mar 10, 2013 8:48 pm
Forum: Python
Topic: Problem reading from serial with Python script
Replies: 12
Views: 35573

Re: Problem reading from serial with Python script

If you stick a comma after a print in Python it doesn't print a carriage return:

print "One",
print "Two",
print "Three",
print "Four"

Result:

One Two Three Four ,carriage return>
by Cromarty
Mon Feb 18, 2013 1:18 am
Forum: Troubleshooting
Topic: Memory card corrupted and can't fix
Replies: 1
Views: 533

Memory card corrupted and can't fix

Hello. I have managed to corrupt the system on a couple of 8GB memory cards in such a way that I can't fix them. They are only showing 1.54GB (1576 MB). I have tried using 'parted' on a Linux machine and no matter what I do every tool I use says the cards are only 1.54GB in size. I can't use gparted...
by Cromarty
Sat Feb 16, 2013 3:13 pm
Forum: General discussion
Topic: Built-in Accessibility
Replies: 2
Views: 1254

Re: Built-in Accessibility

Hello. I was going to point you to our list (raspberry-vi) but I see from your post you are already there! Notes about how to get emacspeak and yasr going are coming soon. We are also in the process of getting a web site for the list up and running with blog, wiki and download areas. Mike aka Cromart
by Cromarty
Thu Feb 14, 2013 2:03 am
Forum: General discussion
Topic: Detecting log-in type
Replies: 4
Views: 687

Re: Detecting log-in type

That's exactly what I intend to do. Add an entry to /etc/shells, create a small bash script in /bin and name it as the shell for the user by using chsh. The small bash script in /bin will then either load bash if it's an SSH or serial connection, or yasr (which spawns a bash session) if it's local. ...
by Cromarty
Thu Feb 14, 2013 12:43 am
Forum: General discussion
Topic: Detecting log-in type
Replies: 4
Views: 687

Re: Detecting log-in type

Hello. Thanks for the answer. Will this data be available to query after the login process completes (getty?) but before the shell is loaded? It's at the transition between login and shell load that I need to make the decision.
by Cromarty
Wed Feb 13, 2013 9:35 pm
Forum: General discussion
Topic: Detecting log-in type
Replies: 4
Views: 687

Detecting log-in type

Hello, Is there a way of detecting whether a log-in is local or over SSH? I want to selectively choose which shell is loaded depending on whether it is local or SSH. This is because I have the yasr screen-reader running now and want a bash script to run to load yasr, which loads a bash session, if t...
by Cromarty
Tue Feb 12, 2013 1:51 am
Forum: General discussion
Topic: STICKY: Introduce yourself!
Replies: 3749
Views: 231168

Re: Introduce yourself!

Hello. My name is Mike. I picked the name 'Cromarty' because I have a thing about the shipping forecast you can hear on BBC Radio 4 at various times of the day and night. My computers are always called things like 'viking', 'forties', 'portland' etc. I have been visually impaired since birth. I went...
by Cromarty
Mon Feb 11, 2013 10:32 pm
Forum: General discussion
Topic: Got 'yasr' screen-reader running on Raspbian
Replies: 3
Views: 837

Re: Got 'yasr' screen-reader running on Raspbian

I will as soon as I've had a chance to consolidate my own notes and get to grips with yasr itself. The screen-reader is quite mature and there isn't a lot of docs online about it. I will be posting in my raspberry-vi email list and then making a wiki entry...if I can work out how. Note; I also have ...
by Cromarty
Mon Feb 11, 2013 7:23 pm
Forum: General discussion
Topic: Got 'yasr' screen-reader running on Raspbian
Replies: 3
Views: 837

Got 'yasr' screen-reader running on Raspbian

It's taken me ages to achieve this but I have got the 'yasr' (yet another screen-reader) screen-reader running on Raspbian with the eSpeak speech-synthesiser and the speech-dispatcher server. Annoying 'pops' (well documented elsewhere)are a problem on anaologue audio but HDMI should be ok. I am goin...
by Cromarty
Fri Feb 08, 2013 1:37 am
Forum: General discussion
Topic: Accessibility, raspberry-vi mailing list
Replies: 0
Views: 1166

Accessibility, raspberry-vi mailing list

Hello. I have created a mailing list called raspberry-vi for blind and visually impairedRaspberryPi users. To join the list send an email to raspberry-vi-requests@freelists.org with 'subscribe' in the subject line. We acurrently have over 20 members and several people on the list are striving to imp...
by Cromarty
Wed Jan 30, 2013 11:21 pm
Forum: C/C++
Topic: Raspberry Pi MySQL_ROW Question
Replies: 7
Views: 2175

Re: Raspberry Pi MySQL_ROW Question

Hello,

How about using the atoi function to convert a column containing a string representation of an integer to a real integer? (atoi = ascii to integer).

int i = atoi('1'); // yields an integer of value 1

Mike
by Cromarty
Tue Jan 22, 2013 1:43 pm
Forum: General discussion
Topic: Software Monitoring of Supply Voltage and CPU Temperature
Replies: 5
Views: 63127

Software Monitoring of Supply Voltage and CPU Temperature

Hello,

I would like to be able to monitor the supply voltage and CPU temperature from software. Does such a thing exist and is the Raspi Model B board equipped with the necessary hardware to do this?
by Cromarty
Sat Jan 19, 2013 6:38 pm
Forum: Beginners
Topic: Usb as sd.
Replies: 9
Views: 3398

Re: Usb as sd.

This will possibly be useful for blind Pi users like me because that awful whiptail menu thrown up by raspi-config is virtually inaccessible for us over SSH. So using a USB stick to house the rest of the os and not to bother trying to expand the rootfs using raspi-config may be better.
by Cromarty
Sat Jan 19, 2013 2:05 pm
Forum: General programming discussion
Topic: Pi Web RS 232
Replies: 9
Views: 2312

Re: Pi Web RS 232

You could write a Java applet to run in the web page served up by the Raspi. But it would probably be just as easy to either use an existing serial terminal prog or write one with Python and python-serial
by Cromarty
Wed Jan 16, 2013 7:43 pm
Forum: Python
Topic: Nokia Pi LCD
Replies: 253
Views: 116995

Re: Nokia Pi LCD

Hello. What are the model numbers of these screen? Is catching gestures as easy as it sounds to make graphics?
by Cromarty
Fri Jan 11, 2013 2:21 pm
Forum: Beginners
Topic: Networking
Replies: 8
Views: 1954

Re: Networking

The later images of Raspbian have SSH enabled out-of-the-box, so if you know the IP address of your Raspi you can connect with an SSH terminal program like PuTTY or Tera-Term. Look on your router's management page for connected devices. You will probably see 'raspberrypi' (assuming you have successf...
by Cromarty
Thu Jan 10, 2013 4:07 pm
Forum: General discussion
Topic: Accessibility again
Replies: 1
Views: 559

Accessibility again

Hello. I am a blind Raspi user. I don't think I am the only one, in fact I know because I have created a mailing list called raspberry-vi and we have about twenty members. So far I have; on my model B I have installed an ftp server, created an internet radio with mpd and mpc, and code in Python to g...
by Cromarty
Tue Jan 08, 2013 3:03 pm
Forum: Beginners
Topic: Big Problem Please HELP!
Replies: 8
Views: 1496

Re: Big Problem Please HELP!

I don't think I could two-time my little treasure, in it's little transparent box with it's hypnotic twinkly lights. I have only slept about 5 hours since the postman brought her to me on Saturday morning, the little minx

Go to advanced search