Go to advanced search

by wimble
Sun May 04, 2014 8:47 pm
Forum: Troubleshooting
Topic: String Index out of Range? Python Code
Replies: 2
Views: 699

Re: String Index out of Range? Python Code

When I run this, I get output of: text3 text3 34 Traceback (most recent call last): File "pi.py", line 31, in <module> c = rtext_color_pair[1] IndexError: string index out of range So rtext is "text3", all_text is "text3", and that has a width of 34. I'm guessing what you want, in this case, is to b...
by wimble
Tue Apr 01, 2014 4:17 pm
Forum: Beginners
Topic: Using 'cat' with 'mail'
Replies: 14
Views: 3035

Re: Using 'cat' with 'mail'

geneworld wrote:Trying

Code: Select all

mail -d
doesn't work, I guess there isn't a debug mode in there.
Sorry about that: I was quoting from my ubuntu machine, because I don't have mail installed on my Pi. However, I'm glad you've found the problem :)
by wimble
Mon Mar 31, 2014 10:14 pm
Forum: Beginners
Topic: Using 'cat' with 'mail'
Replies: 14
Views: 3035

Re: Using 'cat' with 'mail'

Regarding: cat "/etc/passwd" | mail -s "Subject" [email protected].com The 'cat' command is incorrect. remove the double quotes. cat is expecting a filename. mail -s "Subject" [email protected].com < "/home/pi/some_file.txt" Remove the quotes on the redirect also. The quotes aren't a problem. They're almos...
by wimble
Fri Mar 28, 2014 4:23 pm
Forum: Media centres
Topic: Raspberry Pi Media Center?
Replies: 10
Views: 3934

Re: Raspberry Pi Media Center?

I have the understanding that OpenElec is smoother than RaspMC. It certainly ought to be (since it's *only* configured to run XBMC, and not to do anything else which might impact on performance). If you want to try switching between the two, It's possible to back up the userdata directory and restor...
by wimble
Wed Mar 26, 2014 1:45 am
Forum: Troubleshooting
Topic: Mechanical USB problem?
Replies: 4
Views: 1183

Re: Mechanical USB problem?

Me too. I've got two model Bs running perfectly, but I thought the Edimax dongle was a bit tight, fitting into my model A USB port. Shortly after this, the model A wouldn't boot. I moved everything to a working model A, and it failed in the same way. Eventually I cottoned on, and realised that the r...
by wimble
Mon Mar 24, 2014 10:57 pm
Forum: Beginners
Topic: lpconfig
Replies: 10
Views: 1295

Re: lpconfig

not sure on the format of lpconfig within the LXTerminal window to allow it to update I'll second everything DeeJay has said. However, the answer to your original question on how to run ldconfig is simply: sudo ldconfig That's all you need: no parameters, nothing else. By default, ldconfig reads /e...
by wimble
Sun Mar 23, 2014 8:28 pm
Forum: Beginners
Topic: espeak
Replies: 3
Views: 492

Re: espeak

Can espeak read a text document? I've tried espeak /tmp/testfile.txt but it just reads the file path, not the contents of the document From the espeak Usage page: To use at the command line, type: espeak "This is a test" or espeak -f <text file> Or just type espeak followed by text on subsequent li...
by wimble
Sat Mar 22, 2014 10:05 am
Forum: Raspbian
Topic: check email cli only?
Replies: 4
Views: 937

Re: check email cli only?

It would be useful if you could explain which clients you'd tried, and what went wrong. My personal preference is mutt (sudo apt-get install mutt). It'll connect to POP3, IMAP, IMAPS and local mail equally happily. It's invoked as mutt -f imaps://johndoe:[email protected].example.com/INBOX Obviously, yo...
by wimble
Sat Mar 22, 2014 12:55 am
Forum: Troubleshooting
Topic: How do I always select the latest photo?
Replies: 9
Views: 1429

Re: How do I always select the latest photo?

Nope. That didn't work. In fact it seems that nothing really happens. All i get is the greater than sign > Any other ideas? This is really stressing me out as the entire project is almost there but I can't quite get this last bit right. Did you cut and paste exactly what I'd put into the post? cd /...
by wimble
Fri Mar 21, 2014 5:54 pm
Forum: Networking and servers
Topic: RasPi Ad-Blocker
Replies: 4
Views: 1708

Re: RasPi Ad-Blocker

The advantage with the dnsmasq solution is that it works for your entire network in one go. No faffing about with individual host files on each machine. And in the case of iPhones and unrooted Android devices, you can't edit the hosts file on the specific devices. So patching it through the DNS serv...
by wimble
Fri Mar 21, 2014 10:27 am
Forum: Networking and servers
Topic: RasPi Ad-Blocker
Replies: 4
Views: 1708

Re: RasPi Ad-Blocker

I've just set this up on my configuration (where, actually, I'm not doing this on a Raspberry Pi, but on a QNAP NAS server. But the principles the same. File names are different though.) The problem is that the tutorial doesn't change the dnsmasq configuration to read the shiny new list of redirects...
by wimble
Fri Mar 21, 2014 2:48 am
Forum: Troubleshooting
Topic: How do I always select the latest photo?
Replies: 9
Views: 1429

Re: How do I always select the latest photo?

I don't know my way around the python. What you need to do is: 1) search for all the files matching some criteria (eg. in a particular directory, matching a particular filename pattern 2) put them into date order 3) pick out the last one (or, if you put them into newest first, then the first one). Y...
by wimble
Thu Mar 13, 2014 7:33 pm
Forum: General discussion
Topic: managing run script from onother script
Replies: 5
Views: 850

Re: managing run script from onother script

That needs to be "dot space script", not "dot script". So . ftp-command Also "ftp-command" must either be in the current directory, or in one of the directories in $PATH, or you have to give the full pathname. Since you're changing directory within the script, the first option isn't going to work. P...
by wimble
Sun Feb 23, 2014 10:58 pm
Forum: HATs and other add-ons
Topic: 2.8" TFT + Touch Shield Board v2
Replies: 189
Views: 111751

Re: 2.8" TFT + Touch Shield Board v2

I'd suggest just downloading notro image initially. I haven't tried noobs for a while and in not 100% sure it's compatable. My (successful) installation was against Noobs Lite 1.3.2 (I was using Lite due to a 4 Gig SD card, and the full Noobs 1.3.3 takes up so much space before you install operatin...
by wimble
Tue Feb 18, 2014 10:26 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using the Raspberry Pi to convert HDMI to composite video?
Replies: 7
Views: 4319

Re: Using the Raspberry Pi to convert HDMI to composite vide

Why not install OpenElec on the Pi and use it directly as a media player, accessing the files from your PC across the network (rather than having the PC decode them to video)?
by wimble
Thu Feb 06, 2014 1:25 am
Forum: HATs and other add-ons
Topic: 2.8" TFT + Touch Shield Board v2
Replies: 189
Views: 111751

Re: 2.8" TFT + Touch Shield Board v2

At the bottom of your post, you've got an immediate problem. File "touchv6.py", line 5 import pygame, sys, os, time ^ IndentationError: unexpected indent What is wrong??? What did I miss? You've used the select all link in Texy's original post. For some reason, this puts four spaces in front of ever...
by wimble
Wed Feb 05, 2014 11:35 am
Forum: HATs and other add-ons
Topic: 2.8" TFT + Touch Shield Board v2
Replies: 189
Views: 111751

Re: 2.8" TFT + Touch Shield Board v2

My screen arrived on Monday (days ahead of my expectation), and I picked it up from the post office yesterday. After some faffing around with cases (removing the pibow case, and putting that on an A), everything worked perfectly: I installed the kernel patches (I'm running raspbian, with Michael Gor...
by wimble
Wed Jan 29, 2014 4:43 pm
Forum: HATs and other add-ons
Topic: 2.8" TFT + Touch Shield Board v2
Replies: 189
Views: 111751

Re: 2.8" TFT + Touch Shield Board v2

Ok, that's great. I've already given ebay the money. I'll see what I can do to get the touchscreen to do its thing, but it's not the end of the world if it defeats me. (And it's worth passing around at work, just for experimentation, so it's a worthwhile investment.)
by wimble
Wed Jan 29, 2014 4:04 pm
Forum: HATs and other add-ons
Topic: 2.8" TFT + Touch Shield Board v2
Replies: 189
Views: 111751

Re: 2.8" TFT + Touch Shield Board v2

Hi. Do you know whether this works with XBMC? I do know that XBMC can run on a 320 x 240 display: at least, on my Windows machine, I can bring the window down to that display size, and it doesn't complain. The video's almost unwatchable, but I'm after a control interface, not video output (If I want...
by wimble
Tue Jan 14, 2014 5:02 pm
Forum: Troubleshooting
Topic: (SOLVED) bin/bash not found when trying to run a script
Replies: 23
Views: 8789

Re: bin/bash not found when trying to run a script

And yes, I retyped it because I was vi-ing through ssh. and didn't know how to paste in vi from clipboard... If you're using PuTTY to connect from a Windows machine to the Pi, then it's right click, so you end up with the following sequence: vi network-monitor.sh (to edit the blank file) i (to get ...
by wimble
Mon Jan 13, 2014 12:02 pm
Forum: General discussion
Topic: SD Card Corruption
Replies: 46
Views: 11766

Re: SD Card Corruption

I've had messages similar to those that sethbollinger reports. Dec 17 10:52:25 raspberrypi kernel: [480802.908015] mmcblk0: error -110 transferring data, sector 3211435, nr 5, cmd response 0x900, card status 0x200b00 Dec 17 10:52:25 raspberrypi kernel: [480802.908049] end_request: I/O error, dev mmc...
by wimble
Wed Nov 13, 2013 6:29 pm
Forum: Raspbian
Topic: Errors and Email
Replies: 9
Views: 1641

Re: Errors and Email

[email protected].com /usr/bin/rsync -avx --delete /media/HDD1/shares/myprofile /media/HDD2/shares/ 2>&1 >/dev/null | tee -a /usr/local/bin/rsync_log This is a cron configuration. So to utilise it, you would need to edit your crontab by using crontab -e and then inserting that text, with an appropria...
by wimble
Fri Oct 25, 2013 11:15 pm
Forum: Raspbian
Topic: [solved] mounting ntfs-3g (not using the options i specify)
Replies: 2
Views: 1212

Re: mounting ntfs-3g (not using the options i specify)

You've listed your arguments as suid,exec,user. The man page for mount at http://linux.die.net/man/8/mount says: user Allow an ordinary user to mount the filesystem. The name of the mounting user is written to mtab so that he can unmount the filesystem again. This option implies the options noexec, ...
by wimble
Wed Oct 23, 2013 9:28 am
Forum: Beginners
Topic: Autostart
Replies: 2
Views: 2292

Re: Autostart

The nohup (abbreviated from it's purpose: "No Hang UP") command is your friend, if you want to run commands and then log out. so: nohup bash start.sh and then log out, and the script will keep running. (Or you can use this for any other long running command.) Another option is the screen utility. If...
by wimble
Wed Oct 02, 2013 10:16 am
Forum: Beginners
Topic: Power
Replies: 4
Views: 805

Re: Power

W.r.t. "I turn the TV off, and the Pi (unceremoniously) loses power, and crashes." : Hopefully you've remembered to "sudo shutdown - h now" (or equivalent) and waited for the green "ACT" LED to stop flashing first - otherwise the "crash" could be permanent! :cry: Trev. I don't actually. And I'm ver...

Go to advanced search