Go to advanced search

by rpdom
Wed Feb 26, 2014 6:12 am
Forum: Python
Topic: What is the correct way to pause a running python script?
Replies: 2
Views: 1438

Re: What is the correct way to pause a running python script

A clean way to pause the loop at a certain point is to check for the existence of a certain file near the end (or start) of the loop. Then, if the file exists: read the new parameters from the file, update the peripheral with those values, delete the file and continue the loop. Then all you have to ...
by rpdom
Wed Feb 26, 2014 5:15 am
Forum: Troubleshooting
Topic: No Internet Connection
Replies: 10
Views: 1647

Re: No Internet Connection

First please show output of the following commands:

Code: Select all

cat /etc/network/interfaces
/sbin/ifconfig -a
/sbin/route
cat /etc/resolv.conf
These will show the configuration of your networking.
by rpdom
Wed Feb 26, 2014 5:09 am
Forum: General discussion
Topic: Run script at boot
Replies: 14
Views: 151731

Re: Run script at boot

The only line to really worry about is insserv: script hotspotboot is not an executable regular file, skipped! This is because you haven't got the eXecute flag set on the file. Try cd /etc/init.d sudo chmod u+x hotspotboot update-rc.d hotspotboot defaults You will still get some warnings, but the er...
by rpdom
Tue Feb 25, 2014 6:13 pm
Forum: General discussion
Topic: Does Pi supports PHP?
Replies: 8
Views: 1263

Re: Does Pi supports PHP?

lilzz wrote:failed to fetch deb7u4_armhf.deb
Probably an out of date package index. Try

Code: Select all

sudo apt-get update
sudo apt-get install php5-cli
If it fails, please post all of the messages reported.
by rpdom
Tue Feb 25, 2014 5:35 pm
Forum: General discussion
Topic: Does Pi supports PHP?
Replies: 8
Views: 1263

Re: Does Pi supports PHP?

Yes, for command line usage you will need to install the "php5-cli" package.
by rpdom
Tue Feb 25, 2014 5:47 am
Forum: General discussion
Topic: Does Pi supports PHP?
Replies: 8
Views: 1263

Re: Does Pi supports PHP?

PHP is supported on the Pi, both on command line (php5-cli) and web server (libapache2-mod-php5).
by rpdom
Mon Feb 24, 2014 9:20 am
Forum: Advanced users
Topic: Keeping track of time elapsed
Replies: 7
Views: 2090

Re: Keeping track of time elapsed

All files under /proc are virtual files - they don't exist as normal files, but when you access them it gets the information directly from the running Linux kernel. So, essentially it updates every time you read it.
by rpdom
Mon Feb 24, 2014 7:08 am
Forum: Networking and servers
Topic: Use the Pi to wake a computer via lan
Replies: 7
Views: 1580

Re: Use the Pi to wake a computer via lan

One thing that ecellent example page missed out (which is not surprising as I can't see any mention of it in the current man page), is that you can create a file called /etc/ethers with a list of MAC addresses and hostnames (similar to the way /etc/hosts is laid out), and it will be used without hav...
by rpdom
Mon Feb 24, 2014 7:00 am
Forum: Advanced users
Topic: Keeping track of time elapsed
Replies: 7
Views: 2090

Re: Keeping track of time elapsed

That question is a bit vague, can you give more details? Things like: what language you plan to write the code in. Pretty much all the languages available for the Pi have various time functions included that can often measure down to milliseconds. Also, are you planning to make the Pi detect the sta...
by rpdom
Mon Feb 24, 2014 6:47 am
Forum: Troubleshooting
Topic: Cannot get cron to work
Replies: 2
Views: 553

Re: Cannot get cron to work

1. You mustn't put a userid in a crontab (well, not the ordinary ones as generated by the crontab command). 2. You are missing the "/" from the beginning of the filepath, both in the crontab and the chmod command. What you have done is to set up a root crontab entry that will try and run a command c...
by rpdom
Sun Feb 23, 2014 9:15 pm
Forum: General discussion
Topic: run programs at CLI from web
Replies: 10
Views: 3306

Re: run programs at CLI from web

Yes, it can be a simple shell_exec, or system or one of the other similar functions - even popen to open a pipe to/from a command.

Sorry, I don't have an examples to hand, but I have various programs that do things like this on my Linux PCs.
by rpdom
Sun Feb 23, 2014 9:11 pm
Forum: General discussion
Topic: Booting from a USB Host
Replies: 9
Views: 1743

Re: Booting from a USB Host

As you have seen from ShiftPlusOne, the software to boot a Model A from a USB host is not available. gsh has much insider knowledge and specialist hardware/software that enabled him to test the functionality. However, even if you could boot a Model A from a USB host, that would tie up the only USB p...
by rpdom
Sun Feb 23, 2014 2:38 pm
Forum: Troubleshooting
Topic: Raspberry Pi not booting anymore
Replies: 8
Views: 1648

Re: Raspberry Pi not booting anymore

You could put your SD card in a Linux PC (use a "Live CD" if you don't have Linux) and see if you can access any of the data you want to keep.

Then reformat and reinstall.

Then think about making regular backups of the card.
by rpdom
Sun Feb 23, 2014 2:35 pm
Forum: General discussion
Topic: Raspberry Pi with more RAM
Replies: 43
Views: 9536

Re: Raspberry Pi with more RAM

Agree with jamesh. You'd be better off configuring a swapfile/partition on a USB device - nowhere near as fast as main memory, but faster than any method using GPIO pins and fully supported by default in Linux. You could have many GB of virtual memory using that method.
by rpdom
Sun Feb 23, 2014 8:56 am
Forum: Other projects
Topic: PiFan - Fan on a case mod
Replies: 9
Views: 4346

Re: PiFan - Fan on a case mod

USB 2.0 Spec is 500mA and 3.0 is I believe 900mA, however the Rev1.0 Pi did not support current output that high, with a maximum output current of around 100mA across both ports. Rev 1.1 relieved this issue. Doing your mod on a 1.0 board would have tripped the polyfuse on the USB ports. Not arguing...
by rpdom
Sun Feb 23, 2014 8:36 am
Forum: Troubleshooting
Topic: Slow Data Transfer to External HDD Drive
Replies: 7
Views: 3349

Re: Slow Data Transfer to External HDD Drive

I'd recommend ext4 as the faster, more resilient file system.

The Linux NTFS drivers can be very cpu intensive and slow.
The network card is 100MBps
No, it is 100Mbps (Capitalisation is important), and you may get a bit more than half that on a good day, like all 100Mb ports.
by rpdom
Sun Feb 23, 2014 8:34 am
Forum: Other projects
Topic: PiFan - Fan on a case mod
Replies: 9
Views: 4346

Re: PiFan - Fan on a case mod

290mA is well within the USB spec of 500mA. Yes, it is within the max current spec that a USB port might supply. But the actual spec says that a USB port only needs to supply 100mA, which is what the Pi is designed to do. Anyway, ambient temp of 30°C isn't very high. The important figure is how hot...
by rpdom
Sun Feb 23, 2014 8:28 am
Forum: Python
Topic: GPIO help
Replies: 8
Views: 1772

Re: GPIO help

I haven't done it in gpio, or in python, but I have written a perl script that uses /dev/input to pretend it is a keyboard. Perl is already installed on the Pi, so it will take a few KBytes of card space for something like that to work. It is just a matter of interfacing to GPIO. But I recall there ...
by rpdom
Sun Feb 23, 2014 8:22 am
Forum: General discussion
Topic: run programs at CLI from web
Replies: 10
Views: 3306

Re: run programs at CLI from web

That is fairly easy in PHP. You need the php library for the webserver installed, then you just code pages with a .php extension instead of .html. Having fixed function buttons instead of a cmdline type interface is a lot safer, but you still need to look at security to make sure that the informatio...
by rpdom
Sun Feb 23, 2014 8:15 am
Forum: Beginners
Topic: HDMI to DVI and mode 68/69 issue [SOLVED]
Replies: 2
Views: 712

Re: HDMI to DVI and mode 68/69 issue

You could try what worked for me (on a different DVI-D monitor at a different res). Take the edid dumpfile and save it in /boot (as edid.dat, I think - can't get to my Pi to check right now), and use the hdmi_edid_file=1 option in config.txt to tell it not to probe for monitor settings, but to use t...
by rpdom
Sat Feb 22, 2014 8:11 pm
Forum: Troubleshooting
Topic: 2.61 Volt between TP1 and TP2. result: No boot
Replies: 13
Views: 2280

Re: 2.61 Volt between TP1 and TP2. result: No boot

As you say you have F1 and F2 fitted (fuses or links?), you probably have a very early model Pi.

On some of these it is normal for IC3 to get rather hot due to a slight design flaw. It shouldn't affect the running of the Pi though.
by rpdom
Sat Feb 22, 2014 7:20 pm
Forum: Troubleshooting
Topic: Strange filesystem corruptions on external usb disk
Replies: 2
Views: 540

Re: Strange filesystem corruptions on external usb disk

Some externally powered disks cheat. They use an external supply for the 12V supply, but still take all their 5V power from the USB port. Are you using an externally powered USB hub for the disk as well? I have a fully externally powered (ext4) USB disk and have never had any corruption on it other ...
by rpdom
Sat Feb 22, 2014 7:23 am
Forum: Advanced users
Topic: alternative version isc-dhcp-server
Replies: 18
Views: 5736

Re: alternative version isc-dhcp-server

The steps you list are the correct way to upgrade to Jessie.

Don't worry about F2FS, the partition type will not be changed unless you install from an image file (which overwrites everything).

Take a backup first, if possible.

I upgraded to jessie and didn't hit any problems.
by rpdom
Sat Feb 22, 2014 6:44 am
Forum: Troubleshooting
Topic: 2.61 Volt between TP1 and TP2. result: No boot
Replies: 13
Views: 2280

Re: 2.61 Volt between TP1 and TP2. result: No boot

It could be the voltage limiting diode (can't remember the ID off hand) near F3 at fault.
by rpdom
Sat Feb 22, 2014 6:08 am
Forum: Raspberry Pi OS
Topic: Error messages during boot
Replies: 5
Views: 1481

Re: Error messages during boot

I think there is a bug in some versions of fsck.vfat that doesn't clear the flag.

Either:

a) don't worry about it

or

b) shove it in a Linux PC that uses a later fsck.vfat and run the check from there. (Stupid Windows can't do it as it doesn't believe the partition exists)

Go to advanced search