Go to advanced search

by rpdom
Tue Apr 08, 2014 3:35 pm
Forum: Compute Module
Topic: USB Boot
Replies: 29
Views: 23956

Re: USB Boot

So the model A (power USB in) has a data connection (B does not)...? No. The model A and model B Pi boards are identical. There is no data connection to the Power In USB on either of them. The single USB port on the model A is capable of working as a USB slave (OTG mode). The model B cannot do that...
by rpdom
Mon Apr 07, 2014 6:07 pm
Forum: Other programming languages
Topic: Bash script arguments
Replies: 2
Views: 2514

Re: Bash script arguments

Possibly because you're running it with sh (which is mapped to the dash shell), instead of bash.

Try "bash gflt.sh lsdir.sh" and it should work.
by rpdom
Mon Apr 07, 2014 4:16 pm
Forum: Networking and servers
Topic: Database connectivity! Help. Urgent!
Replies: 2
Views: 651

Re: Database connectivity! Help. Urgent!

Dougie is correct, but editing /etc/mysql/my.cnf is somewhat frowned on with Debian-based systems now (I assume you're using Raspbian?). What you do instead is to create a file with the changed option(s) in /etc/mysql/conf.d/ The filename must end with ".cnf". The reason for this is when the mysql s...
by rpdom
Mon Apr 07, 2014 11:25 am
Forum: Raspberry Pi OS
Topic: How to check battery status?
Replies: 7
Views: 3380

Re: How to check battery status?

Also, any battery supply unit would have to provide status information to the Pi, and they don't.
by rpdom
Sun Apr 06, 2014 3:30 pm
Forum: Troubleshooting
Topic: resuming ssh issue
Replies: 3
Views: 639

Re: resuming ssh issue

Run the server in a "screen" or "tmux" session. Both of these allow you to leave the session running when you disconnect and you can ssh back in and reconnect to the same session later. These were designed for the old days when you might lose a connection part way through a very important compilatio...
by rpdom
Sun Apr 06, 2014 3:26 pm
Forum: Advanced users
Topic: Shell script project
Replies: 3
Views: 1430

Re: Shell script project

Actually raspi-config uses "whiptail" which can produce some pretty menus and return the results to scripts. It's a replacement for "dialog". However you can easily do simple menus in Bash (or other shells) as I have been doing for many years. Something like: clear screen using the "clear" command, ...
by rpdom
Sun Apr 06, 2014 8:57 am
Forum: Troubleshooting
Topic: Just received, USB not working? (solved)
Replies: 8
Views: 1239

Re: Just received, USB not working?

Don't rely on the Pi's USB ports being able to supply anywhere near 500mA. They can't (unless you rewire things and use a bigger PSU). You can only be certain that they can supply 100mA each. Wireless devices tend to use more power than wired. The best thing to test the Pi with is a cheap unbranded ...
by rpdom
Sun Apr 06, 2014 8:52 am
Forum: Raspberry Pi OS
Topic: Boot from USB stick?
Replies: 74
Views: 231385

Re: Boot from USB stick?

No, it is not in the kernel. Not even the firmware. The code to use the SD card is a micro-bootloader hard-wired into the GPU part of the main chip. It can't be changed. Sorry :( (The micro-bootloader code looks for bootcode.bin on the SD card, then loads and runs that. That then loads the firmware ...
by rpdom
Sun Apr 06, 2014 6:19 am
Forum: Beginners
Topic: Installing packages on a model A pi
Replies: 4
Views: 831

Re: Installing packages on a model A pi

I use a cheapish USB network adapter on my model As and connect with ssh from another computer to control them. I can then run all the apt commands remotely.
by rpdom
Sat Apr 05, 2014 6:51 pm
Forum: Raspberry Pi OS
Topic: Boot from USB stick?
Replies: 74
Views: 231385

Re: Boot from USB stick?

Once the kernel has loaded and you see messages scrolling up your screen you are using the USB drive. The boot area on the SD card will still be accessible and mounted via /boot, but will only be written to if you update any of the files on it like during a firmware/kernel update or a change to conf...
by rpdom
Sat Apr 05, 2014 4:50 pm
Forum: Beginners
Topic: Powering Pi with batteries
Replies: 30
Views: 5167

Re: Powering Pi with batteries

Yes, that should work. But don't cut the black wire. You need a common ground for the data lines.
by rpdom
Sat Apr 05, 2014 7:15 am
Forum: Beginners
Topic: Powering Pi with batteries
Replies: 30
Views: 5167

Re: Powering Pi with batteries

i will be using 5 AA batteries(1000mah) and the l7805 regulator. can i run a usb modem + the ps3 eye camera ? The 7805 is a linear regulator, which means it dumps the excess voltage out as wasted heat. 5 x 1.5V input is 7.5V. The Pi needs about 700mA at 5V. The regulator will dump take 700mA from t...
by rpdom
Sat Apr 05, 2014 6:13 am
Forum: Troubleshooting
Topic: no local dns on windows network
Replies: 1
Views: 376

Re: no local dns on windows network

avahi is what you are missing, I believe. I don't need it myself, as I control the DNS server for my whole network and everything Just Works (tm), but the avahi-daemon and other related packages support the mDNS protocol that windows (and other systems) use to identify themselves to each other on a ...
by rpdom
Sat Apr 05, 2014 5:16 am
Forum: Troubleshooting
Topic: lighttpd can't start
Replies: 2
Views: 471

Re: lighttpd can't start

Generally with Debian-based systems you will find useful information in the location /usr/share/doc/PACKAGENAME/ where PACKAGENAME in your case would be lighttpd. There should be a README file and usually some example configurations.
by rpdom
Sat Apr 05, 2014 5:01 am
Forum: Automation, sensing and robotics
Topic: OCR sorter
Replies: 8
Views: 2553

Re: OCR sorter

When the beads get to the point in the rails that's wider than they are, they drop through into one of several bins below, and are thereby sorted by size, corresponding to the location of the bin along the rail. All you need then is a mechanism to drop the beads at the starting point one by one. I ...
by rpdom
Fri Apr 04, 2014 3:40 pm
Forum: General discussion
Topic: Soft to Hard float?
Replies: 3
Views: 659

Re: Soft to Hard float?

Sorry, no. There is no easy way to upgrade. The two systems are incompatible. :(
by rpdom
Fri Apr 04, 2014 7:58 am
Forum: Beginners
Topic: Having trouble saving image to SD card via Linux Terminal.
Replies: 10
Views: 1385

Re: Having trouble saving image to SD card via Linux Termina

What do you see if you do

Code: Select all

ls /home/dean/Documents
by rpdom
Fri Apr 04, 2014 5:52 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: two nic controllers
Replies: 3
Views: 1275

Re: two nic controllers

Debian in general and also Raspbian have some autogeneration mechanism for udev rules. When it detects a new networking devices it writes the current configuration to /etc/udev/rules.d/70-persistent-net.rules. This can become quite clogged when experimenting with different NICs or moving the instal...
by rpdom
Thu Apr 03, 2014 4:15 pm
Forum: Beginners
Topic: Brackets or not to Brackets
Replies: 19
Views: 2754

Re: Brackets or not to Brackets

Brackets: ()
Curly brackets: {}
Square brackets: []
Quotey things: ""
Smiley: :lol:
by rpdom
Thu Apr 03, 2014 2:46 pm
Forum: Advanced users
Topic: Reset-Problem with Raspberry
Replies: 6
Views: 1584

Re: Reset-Problem with Raspberry

I suspect one second is too short a time for the circuit to fully reset on occasions. I'd give it five seconds at least. On most electronic gear (especially that with large capacitors in), I always recommend counting to at least 10 before turning the power back on in order to let any residual charge...
by rpdom
Thu Apr 03, 2014 2:42 pm
Forum: Beginners
Topic: Brackets or not to Brackets
Replies: 19
Views: 2754

Re: Brackets or not to Brackets

I think that is the difference between python 2 and python 3.

(I'm not a Python programmer, but I've seen it mentioned before)
by rpdom
Thu Apr 03, 2014 2:40 pm
Forum: Advanced users
Topic: Format pendrive to ext4 for use with RPi?
Replies: 7
Views: 9580

Re: Format pendrive to ext4 for use with RPi?

I'm sure OpenELEC must have one of the simpler command line tools for disk partitioning/formatting.

At the very least I'd expect fdisk (or cfdisk which is slightly more friendly), which can edit the partition table, and mkfs.ext4 to do the formatting.
by rpdom
Thu Apr 03, 2014 1:35 pm
Forum: Other programming languages
Topic: bash find folders need help
Replies: 3
Views: 1202

Re: bash find folders need help

Two -ctime arguments should give you a range of dates. 14th March is 20 days ago, so -ctime +19 would list directories changed 20 or more days ago, and 3rd March is 31 days ago, so -ctime -32 will lists directories changed less than 32 days ago. Put them both in and you should have your range. At le...
by rpdom
Thu Apr 03, 2014 9:53 am
Forum: Other programming languages
Topic: bash find folders need help
Replies: 3
Views: 1202

Re: bash find folders need help

Probably, look at the man page for the "find" command and particularly the -ctime, -name and -type options. You should be able to get something that'll work.
by rpdom
Thu Apr 03, 2014 7:51 am
Forum: General discussion
Topic: SysRq warnings and shut down by itself
Replies: 3
Views: 10999

Re: SysRq warnings and shut down by itself

Have you disabled the console serial port (which is the default setting)? You need to edit the cmdline.txt file and remove the references to ttyAMA0 and comment out a line in /etc/inittab that also refers to ttyAMA0, then reboot for the changes to take effect. After that the serial port will be free...

Go to advanced search