Go to advanced search

by khh
Sat Jul 28, 2012 1:34 am
Forum: Beginners
Topic: Remove startx at start?
Replies: 13
Views: 35001

Re: Remove startx at start?

Open a terminal and type "sudo raspi-config". That gives you the blue configuration thing, and you can change it back.
by khh
Sat Jul 28, 2012 12:13 am
Forum: Beginners
Topic: Couple of things
Replies: 4
Views: 730

Re: Couple of things

mahjongg wrote:No, you did fine, as long as you do not just pull the plug to "stop".
If you want to stop without going to the GUI, use the command:

sudo shutdown -h now
I usually type "sudo poweroff". It's perhaps easier to remember.
by khh
Fri Jul 27, 2012 8:17 pm
Forum: General discussion
Topic: An nbench challenge
Replies: 32
Views: 12238

Re: An nbench challenge

I've tried the two suggested modes, all with stock settings all build with gcc-4.7 CFLAGS = -s -static -Wall -O3 -fomit-frame-pointer -mcpu=arm1176jzf-s -mtune=arm1176jzf-s CFLAGS = -s -static -Wall -O2 -Os -fomit-frame-pointer -mcpu=arm1176jzf-s -mtune=arm1176jzf-s -O3 does better across the board....
by khh
Fri Jul 27, 2012 12:49 pm
Forum: Beginners
Topic: Username
Replies: 3
Views: 682

Re: Username

Yeah, just create a new user and delete the old user. But remember to delete the old user when logged in to the new user. This is essential, as it ensures you've got root access on a new user before deleting the old user with root access (Yes, I learned it the hard way).
by khh
Fri Jul 27, 2012 11:48 am
Forum: General discussion
Topic: SecuriPi
Replies: 106
Views: 15052

Re: SecuriPi

The best solution would probably be to make a battery-powered beeper and have it beep unless it's given power on a particular GPIO pin. Then have a program in the Pi turn off that pin when ethernet is disconnected. That way your Raspberry will start squealing if someone disconnects the ethernet, the...
by khh
Fri Jul 27, 2012 9:47 am
Forum: Beginners
Topic: Don't laugh
Replies: 4
Views: 1888

Re: Don't laugh

sorry Steve All that got me was a syntax error i may try the latest versions of python and gpio. There may be a clash somewhere My plans to take over the Pentagon will have to go on hold (that should get me a free flight to Gitmo) It's python you have to run as root (that is with sudo in front). So...
by khh
Fri Jul 27, 2012 9:18 am
Forum: Python
Topic: Playing an mp3 stream with gstreamer
Replies: 7
Views: 3577

Re: Playing an mp3 stream with gstreamer

Thanks it sometimes works fine but then when a buffer underrun hits it goes all crackly and pops. I am wondering if it raspbian's fault or maybe it actually needs buffering from the internet with ffplay, I am unsure if it does it by itself I think perhaps it's raspbian's fault, cause I get the same...
by khh
Fri Jul 27, 2012 9:04 am
Forum: C/C++
Topic: GPIO Programming and Interrupts
Replies: 64
Views: 32443

Re: GPIO Programming and Interrupts

Gordon, I tried to compile your wfi.c example such: cc -o wfi.exe wfi.c -I/usr/local/include -L/usr/local/lib -lwiringPi But got this error message: /usr/local/lib/libwiringPi.a(piThread.o): In function `piThreadCreate': piThread.c:(.text+0x18): undefined reference to `pthread_create' collect2: ld ...
by khh
Fri Jul 27, 2012 8:40 am
Forum: General discussion
Topic: software for hardware assisted h.264 video encoding??
Replies: 7
Views: 2771

Re: software for hardware assisted h.264 video encoding??

You cannot use the HW encoder - there is no licence for it. We hope to provide encoding at some point, but it requires licence payment to MPEGLA, which would have put the price up for everyone by $2 had it been included with every Pi. When the camera board is released, that will need a licence for ...
by khh
Fri Jul 27, 2012 8:30 am
Forum: Beginners
Topic: Please give suggestion for training
Replies: 8
Views: 1998

Re: Please give suggestion for training

The recommended distribution for Raspberry Pi is (closely) based on Debian Wheezy, so if that's the one you plan on using I'd suggest you install that on an old computer if you have one around, or a VM. Then it's just to get cracking.
by khh
Fri Jul 27, 2012 8:17 am
Forum: Beginners
Topic: Running a command after login
Replies: 7
Views: 1992

Re: Running a command after login

SirLagz wrote:~/.xinitrc

put it in there.
That's actually quite handy. I'll have to remember that.
by khh
Fri Jul 27, 2012 7:39 am
Forum: Beginners
Topic: AC 115V adapter to USB 5V, 700ma
Replies: 9
Views: 3890

Re: Any idea why the USB instead of minidin?

I presume there is a need for more than just +/- leads? No, the raspberry pi does not have the communication part of the micro-USB socket connected to anything. You just need a microUSB that can output 700 or more mA. Personally I just got the recommended 1200 mA PSU from RS Components when I order...
by khh
Fri Jul 27, 2012 7:32 am
Forum: Beginners
Topic: adding a cooling fan?
Replies: 5
Views: 8664

Re: adding a cooling fan?

If you don't have anything else that uses power and have a beefy power supply of 1000 mA or more, then there should be no problem connecting a fan like that to the GPIO 5 V pins. If you have anything else that draws power, it might still work, but then it's less certain.
by khh
Thu Jul 26, 2012 6:50 pm
Forum: Networking and servers
Topic: Raspcontrol - A Web Control Centre for the Pi
Replies: 180
Views: 52234

Re: Raspcontrol - A Web Control Centre for the Pi

Isn't it much simpler to just get a new version from the command line? sudo rm -r raspcontrol sudo wget https://github.com/Bioshox/Raspcontrol/zipball/master sudo unzip master sudo mv Bioshox-Raspcontrol-* raspcontrol sudo rm master You could even add those commands (minus the sudos) to a shellscrip...
by khh
Thu Jul 26, 2012 6:04 pm
Forum: Python
Topic: CPU usage indicator
Replies: 15
Views: 4953

Re: CPU usage indicator

@khh how are you going to encode? I was thinking of a shift register too, but it was easyer to start with the bare LEDs I have several different ideas, but I haven't actually sat down and designed anything. The simplest would of course to just tread the 4 pins as a 4-bit number. That would leave me...
by khh
Thu Jul 26, 2012 4:40 pm
Forum: Advanced users
Topic: Compiling php
Replies: 4
Views: 2997

Re: Compiling php

AndrewS wrote:IMLE (in my limited experience ;) ) errors like that are often caused by out-of-memory problems.
You could try enabling a swapfile, and compiling again?
That worked, thanks.
by khh
Thu Jul 26, 2012 3:00 pm
Forum: Advanced users
Topic: USB-powered fan
Replies: 15
Views: 10299

Re: USB-powered fan

That depends on how you do it. A If you serial connect them you get 10 V, 500 mA and if you paralell connect them you get 5 V, 1000 mA. That works with batteries, but it doesn't work with USB leads :!: If you try "serial connecting" USB power leads, you'll be directly connecting the +5V line to the...
by khh
Thu Jul 26, 2012 12:32 pm
Forum: General discussion
Topic: What's yours called?
Replies: 42
Views: 5053

Re: What's yours called?

I name all my computers after birds (the animal kind), with the name chosen related to the size of the computer. Since raspberry pi is a pretty small, English computer, I named it "rodstrupe". Rødstrupe being the Norwegian name for European Robin, which is England's unofficial national bird. I'm cur...
by khh
Thu Jul 26, 2012 12:22 pm
Forum: General discussion
Topic: What's yours called?
Replies: 42
Views: 5053

Re: What's yours called?

I name all my computers after birds (the animal kind), with the name chosen related to the size of the computer. Since raspberry pi is a pretty small, English computer, I named it "rodstrupe". Rødstrupe being the Norwegian name for European Robin, which is England's unofficial national bird.
by khh
Thu Jul 26, 2012 10:36 am
Forum: Python
Topic: CPU usage indicator
Replies: 15
Views: 4953

Re: CPU usage indicator

This is actually what I was planning for my own first project with the pi as well, but I was thinking it'd do encoded GPIO output so I should only need to hog 4 pins to get up to 16 different LEDs. But this is a great starting point.
by khh
Thu Jul 26, 2012 3:57 am
Forum: Advanced users
Topic: Compiling php
Replies: 4
Views: 2997

Re: Compiling php

Out of curiosity, why are you trying to compile it ? Why not just install it ? I like compiling it so I can get the latest version. On raspian it's only one bugfix/security fix behind, but still. It's not a big issue, I have the package downloaded now and things are working, I just thought it was o...
by khh
Thu Jul 26, 2012 1:54 am
Forum: Advanced users
Topic: Compiling php
Replies: 4
Views: 2997

Compiling php

I am trying to compile PHP on my Raspberry Pi. but it failed to compile with a very unhelpful message. I just downloaded the latest stable php code from the official site, ran ./configure it and then ran make with no arguments. It compiled a lot of files before failing on this one. /bin/bash /home/k...
by khh
Thu Jul 26, 2012 1:31 am
Forum: General discussion
Topic: Text Editor with decent syntax highlighting
Replies: 20
Views: 20996

Re: Text Editor with decent syntax highlighting

Personally I've always used kwrite or kate, which included by default on KDE.
by khh
Thu Jul 26, 2012 12:28 am
Forum: Advanced users
Topic: USB-powered fan
Replies: 15
Views: 10299

Re: USB-powered fan

I can also confirm that splicing two USB leads together and then powering a fan works fine. That's presumably 10v, and has enabled me to use a monster (compared to the size of the pi) fan to run completely off the USB hub. No - this does not increase the voltage - it increases the maximum current a...

Go to advanced search