Go to advanced search

by rpdom
Sat Feb 23, 2013 7:26 pm
Forum: Troubleshooting
Topic: Problems with newly written program ^^
Replies: 6
Views: 694

Re: Problems with newly written program ^^

glaasje wrote:

Code: Select all

Cron_setting=$"0 30 * * 1 root /bin/sh  /root/SafeMyPi"
What is that "$" doing in there?

I assume this is a shell script, probably running under bash. You don't seem to have a "#!/bin/bash" line at the top, so I can't tell.
by rpdom
Sat Feb 23, 2013 5:52 pm
Forum: Other projects
Topic: Wrong colors on TV Headend (Composite Video Out)
Replies: 65
Views: 10413

Re: Wrong colors on TV Headend (Composite Video Out)

Just confirming that that line in config.txt with the latest firmware from rpi-update messes up my colour too. Remove the line and all is fine. While booting with the line in, the [info] lines on Raspbian startup are yellow, but without it they are the normal light blue/cyan colour. Also playing vid...
by rpdom
Sat Feb 23, 2013 3:26 pm
Forum: Staffroom, classroom and projects
Topic: Learning Rasberrian/Linux on a PC
Replies: 13
Views: 3701

Re: Learning Rasberrian/Linux on a PC

If you have a spare PC you could install the official Debian Wheezy from debian.org. It is what Raspbian Wheezy is based on and almost identical to use. You will notice some differences, most obvious will be that the desktop is different. This is just a matter of choice and you can install the LXDE ...
by rpdom
Sat Feb 23, 2013 3:15 pm
Forum: General discussion
Topic: Just ordered my third Pi WAHOO
Replies: 7
Views: 1256

Re: Just ordered my third Pi WAHOO

I've got three. A rev 1 "B" that I bought on day 1, and two "A"s that my wife bought me as a late birthday present :)
by rpdom
Fri Feb 22, 2013 9:30 pm
Forum: Beginners
Topic: What is my SD card location
Replies: 7
Views: 4147

Re: What is my SD card location

I'd unmount /boot and back that up, then mount it again. Then do a file level copy or backup of the root system - preferably with as many services stopped as possible.

The safest way, of course, is to boot of a spare SD card and backup the main one using that.
by rpdom
Fri Feb 22, 2013 8:51 pm
Forum: Beginners
Topic: What is my SD card location
Replies: 7
Views: 4147

Re: What is my SD card location

If you mean you want to make a backup of the SD card your P is running off (yes, can be a bit scary, but will usually work), the card is /dev/mmcblk0 (for whole card), /dev/mmcblk0p1 for /boot only, and /dev/mmcblk0p2 for the root fs / If you have it plugged in via a card reader then it will be /dev...
by rpdom
Fri Feb 22, 2013 6:30 am
Forum: Beginners
Topic: apt-get update fails
Replies: 6
Views: 5088

Re: apt-get update fails

I'd also suggest checking the amount of free space, as the download will fail if there isn't enough.

Code: Select all

df -h
by rpdom
Fri Feb 22, 2013 6:27 am
Forum: Troubleshooting
Topic: Solder Joints Connecting - Problem?
Replies: 6
Views: 830

Re: Solder Joints Connecting - Problem?

Having checked the diagram, and tested the connections on my Pi, I agree with Burngate. It is not going to cause a problem with those two connections shorted together. Inside the socket there is a switch whch connects those two pins together until you put a plug in. These switches aren't used for an...
by rpdom
Thu Feb 21, 2013 8:16 am
Forum: General discussion
Topic: 2A Power supplies Safe?
Replies: 1
Views: 808

Re: 2A Power supplies Safe?

Perfectly safe.

Your Pi will only draw what it needs. As a model "B" gets 5V (give or take about 0.2V) at a minimum of 0.7A (I'd say at least 0.85A to be safe), then it will be happy :)
by rpdom
Wed Feb 20, 2013 3:28 pm
Forum: Other programming languages
Topic: Basic on the system
Replies: 40
Views: 5677

Re: Basic on the system

Actually, I'd rather doubt there is much commercial software using BBC Basic under DOS/Windows nowadays, I'm speaking as someone who has written commercial and in-house software for PC using BBC Basic some years back. It was a pretty good version of BBC Basic for the PC, and no doubt it has been enh...
by rpdom
Wed Feb 20, 2013 6:22 am
Forum: Troubleshooting
Topic: New board with wonky ethernet jack
Replies: 4
Views: 718

Re: New board with wonky ethernet jack

Possibly a power supply issue? That is the most common reason for instability on a Pi. 0.7A is the lowest recommended value for powering a Pi. It could be that your supply level is borderline and connecting the network causes it to become unstable. Could you try a) Measure the voltage between TP1 an...
by rpdom
Wed Feb 20, 2013 6:08 am
Forum: Beginners
Topic: Verification hash doesn't match download
Replies: 4
Views: 1530

Re: Verification hash doesn't match download

I have tried downloading Raspian "wheezy" from 3 different sites with the same problem. This page: http://www.raspberrypi.org/downloads Says that the hash tag is: SHA-1 b4375dc9d140e6e48e0406f96dead3601fac6c81 This is correct. I just downloaded the file and checked. This is the SHA1 sum for the zip...
by rpdom
Tue Feb 19, 2013 1:52 pm
Forum: Automation, sensing and robotics
Topic: Dedicated RPi battery in-car
Replies: 3
Views: 1227

Re: Dedicated RPi battery in-car

With a switching regulator you will get a much longer battery life, although that will probably not be enough for what you're needing. Providing 5V at 700mA from a switching regulator with an efficiency of around 90% driven from 12V will draw about 325mA from the supply, or 7.8Ah in 24 hours. If you...
by rpdom
Mon Feb 18, 2013 5:57 am
Forum: Raspbian
Topic: Update and Upgrade
Replies: 2
Views: 866

Re: Update and Upgrade

The newer image is usually the same as the old one, but with all the changes from apt-get update/dist-upgrade already applied. So you will be fine with the older one + updates. The Raspbian "Wheezy" software is kept in line with the Debian "Wheezy" when it comes to updates and versions, but built sp...
by rpdom
Mon Feb 18, 2013 5:46 am
Forum: Other projects
Topic: Raspberry Pi as Virtual Floppy Disk
Replies: 13
Views: 8079

Re: Raspberry Pi as Virtual Floppy Disk

Um, can I just say "Wow!"?

An impressive feat. If I still had my old Beebs I'd consider using one of my "A" Pis to do this - they cost a quarter of what I paid for a 5.25" floppy drive back then and would be able to hold thousands of floppy images on a 2GB SD card even with the OS :-)
by rpdom
Mon Feb 18, 2013 5:40 am
Forum: General discussion
Topic: Control Raspberry Pi with another Program
Replies: 16
Views: 7124

Re: Control Raspberry Pi with another Program

Just to check I understand what you are saying. Are you planning to use the Pi as a controller to do the work, and the Windows program is just a simple interface between you and it? Ok. That's pretty easily do-able, and sounds like an interesting project :) If I were to do something like that (and I...
by rpdom
Sun Feb 17, 2013 4:16 pm
Forum: General discussion
Topic: Using the dd command in scripts
Replies: 10
Views: 1463

Re: Using the dd command in scripts

I use dd and I love shell scripting, but dd is just too bl**dy dangerous to use in a shell script IMO. I avoid using it unless I'm 'sharp'. (Old dinosaur - the brain doesn't work 100% sometimes). Putting a dumb shell script in charge is asking for it. I dunno. If you're very careful with the params...
by rpdom
Sun Feb 17, 2013 3:56 pm
Forum: Raspbian
Topic: how to install apt-get in raspbian ?
Replies: 18
Views: 13665

Re: how to install apt-get in raspbian ?

I'm not convinced that debootstrap will create a usable Raspbian root file system, as it has there are no scripts specifically for Raspbian in it. If I wanted a Rasbian root file system, I would download and unzp one of the Raspbian SD card image files, mount the second partition using the loop opti...
by rpdom
Sun Feb 17, 2013 11:09 am
Forum: General discussion
Topic: Using the dd command in scripts
Replies: 10
Views: 1463

Re: Using the dd command in scripts

"&> /dev/null" is shorthand for "> /dev/null 2>&1" (put stdout in /dev/null, put stderr in stdout). But the shorthand is non-standard and best avoided in scripts. It works in bash but not in /bin/sh. Ah, thank you. I didn't know that. :) I originally started scripting in csh, then moved on to ksh a...
by rpdom
Sun Feb 17, 2013 6:44 am
Forum: General discussion
Topic: Cheap eBay powered USB hub?
Replies: 2
Views: 1894

Re: Cheap eBay powered USB hub?

I'm planning on buying one of these: http://www.ebay.co.uk/itm/7-PORT-USB-HUB-USB-2-0-POWERED-BY-BUS-OR-MAINS-AC-ADAPTER-FOR-LAPTOP-PC-COMPUTER-/130823204176?pt=UK_Computing_USB_Cables&hash=item1e75abad50 In order to power an external HDD with my pi. Does anybody else use these? Are they any good? ...
by rpdom
Sun Feb 17, 2013 6:26 am
Forum: General discussion
Topic: Using the dd command in scripts
Replies: 10
Views: 1463

Re: Using the dd command in scripts

I am using a script which includes the line: dd if=/dev/ttyUSB0 of=/tmp/output bs=1 count=9 & this is working fine and a string of 9 bytes is being correctly received and stored into the file "output". However when this line executes I get a screen message as follows: 9 + 0 records in 9 + 0 records...
by rpdom
Sat Feb 16, 2013 9:49 pm
Forum: Beginners
Topic: LX Terminal
Replies: 6
Views: 1835

Re: LX Terminal

kelvinmead wrote:cd .. not cd..

simple mistakes eh!
I remember using an old Unix system where "cd.." was aliased to "echo 'This is not a MSDOS system. Use cd ..'" ;-)
by rpdom
Sat Feb 16, 2013 7:05 pm
Forum: Beginners
Topic: Do I have to have the first partion of the SD card as FAT?
Replies: 17
Views: 1988

Re: Do I have to have the first partion of the SD card as FA

Well, the main thing is that the Pi is not really an embedded system. It boots just about any OS that it is able to on the SD card, and is quite capable (and does) run a full blown Linux installation (ok, a bit slower than modern PCs, but what do you expect?) Most embedded systems have built in flas...
by rpdom
Sat Feb 16, 2013 6:57 pm
Forum: Raspbian
Topic: how to install apt-get in raspbian ?
Replies: 18
Views: 13665

Re: how to install apt-get in raspbian ?

Well, I'm not familiar with the environment you're trying to build in.

By default, the Raspbian installation has all of these packages included in the downloadable image.

What exactly are you trying to do?
by rpdom
Sat Feb 16, 2013 6:32 pm
Forum: Troubleshooting
Topic: Display issues using composite on a monitor
Replies: 4
Views: 613

Re: Display issues using composite on a monitor

So, are you using a hdmi2vga adapter, or maybe a composite2vga adapter? I'm guessing yes, because of: My VGA-Adapter is set to the right display settings for the monitor - 1280 x 1024. ;) I'm also (mostly) using a composite to VGA adapter, and it does convert the composite signal into a 1280x1024 V...

Go to advanced search