Go to advanced search

by garetha
Wed Feb 07, 2018 8:29 pm
Forum: General discussion
Topic: Is there any free VPN service for Raspberry Pi 3(instead of PiVPN)
Replies: 24
Views: 19744

Re: Is there any free VPN service for Raspberry Pi 3(instead of PiVPN)

Hi, You say you have those ports open on the Pi but have you actually set up your router to forward those ports onto your Pi? Most (I'd hope all) routers only allow incoming traffic on ports that you specifically open - if you've only set them up on your Pi but not the router then they'll only be ac...
by garetha
Wed Jan 31, 2018 3:53 pm
Forum: Python
Topic: IF error (or my code sucks :-) )
Replies: 9
Views: 865

Re: IF error (or my code sucks :-) )

I’m reading this on my phone so the formatting may not show correctly but isn’t the problem just that your else statements aren’t indented?

Gareth
by garetha
Wed Jan 24, 2018 11:12 pm
Forum: Bare metal, Assembly language
Topic: Serial boot from 2nd Pi
Replies: 3
Views: 949

Re: Serial boot from 2nd Pi

Thanks bzt - that's exactly what I need.

There was (can't find it now but it exists on another mirror) a pitopi directory in dwelch67's tutorial that I'll try following but it does seem as simple as connecting the Rx on one Pi to the Tx on the other and vice versa...let's hope nothing blows!

Gareth
by garetha
Wed Jan 24, 2018 9:44 am
Forum: Bare metal, Assembly language
Topic: Serial boot from 2nd Pi
Replies: 3
Views: 949

Serial boot from 2nd Pi

Hi, I’ve read in numerous places about being able to transfer a kernel using serial port with a USB to serial adapter (I think it’s from Adafruit). However, I’ve got two Pis, one Pi 3 and one Pi 1. Has anyone tried transferring the kernel from on Pi to another connecting the serial pins directly? If...
by garetha
Tue May 09, 2017 6:06 pm
Forum: AIY Projects
Topic: laser cut case
Replies: 10
Views: 4143

Re: laser cut case

Very nice! :)
by garetha
Fri Feb 27, 2015 8:50 pm
Forum: C/C++
Topic: Node JS build options
Replies: 3
Views: 1808

Node JS build options

Hi all, I've just got node v0.12.0 to build on my Pi (trying to learn how to do it rather than needing to). It wouldn't build until I did the following: ./configure --without-snapshot make CFLAGS+=-O2 CXXFLAGS+=-O2 Can anyone tell me what the "without-snapshot" and the flags are for and what effect ...
by garetha
Mon May 19, 2014 10:06 am
Forum: Off topic discussion
Topic: 12v PIR
Replies: 7
Views: 2444

Re: 12v PIR

That looks like it's designed for an outdoor security light. Try searching for PIRs that are designed for burglar alarm systems.
by garetha
Fri May 16, 2014 7:49 am
Forum: Raspberry Pi OS
Topic: How to upgrade to the latest Raspbian.org kernel ?
Replies: 10
Views: 6892

Re: How to upgrade to the latest Raspbian.org kernel ?

rpi-update will upgrade the firmware AND kernel unless you use the SKIP_KERNEL option.
by garetha
Thu May 15, 2014 7:10 am
Forum: Raspberry Pi OS
Topic: How to upgrade to the latest Raspbian.org kernel ?
Replies: 10
Views: 6892

Re: How to upgrade to the latest Raspbian kernel ?

Hi,

If you do an rpi-update then use rpi-source - https://github.com/notro/rpi-source/ you'll get the correct headers. The rpi-source wiki has examples of building modules so should help.

Gareth
by garetha
Sun Oct 20, 2013 3:06 pm
Forum: Media centres
Topic: CEC Basics
Replies: 0
Views: 464

CEC Basics

Hi all, This may be a stupid question but can cec change things (such as volume) on the TV if the Pi is not the active input? Basically, I want to be able to SSH to my Pi and change the volume on the TV while the TV is outputting Sky or Freeview. Is this possible and, if so, is this possible using R...
by garetha
Thu Jul 18, 2013 11:00 am
Forum: Graphics programming
Topic: Cleaning up after using the framebuffer
Replies: 4
Views: 2898

Re: Cleaning up after using the framebuffer

That makes a lot of sense - thanks.

Is curses overkill in this situation - is there a way to save and restore the TTY settings myself or does using curses mean it should be compatible with many different terminals?

Thanks

Gareth
by garetha
Tue Jul 16, 2013 10:30 am
Forum: Graphics programming
Topic: Cleaning up after using the framebuffer
Replies: 4
Views: 2898

Re: Cleaning up after using the framebuffer

Just found out one way of doing it...using curses.

Included #include <curses.h>, then do this right at the end:

initscr();
endwin();

Not really sure why it works but it does...

Can anyone enlighten me?

Thanks

Gareth
by garetha
Tue Jul 16, 2013 10:13 am
Forum: Graphics programming
Topic: Cleaning up after using the framebuffer
Replies: 4
Views: 2898

Cleaning up after using the framebuffer

Hi, I'm using the framebuffer to output graphics. I currently: 1. Save the current variable screen info 2. Save the current framebuffer data 3. Change the resolution 4. Draw the graphics etc. 5. Restore the original resolution 6. Restore the original framebuffer data I'm switching to a much lower re...
by garetha
Wed Jun 26, 2013 10:13 pm
Forum: Other projects
Topic: Bluetooth adapter resetting Pi
Replies: 5
Views: 1110

Re: Bluetooth adapter resetting Pi

No, I'm not using a powered hub - but I would have thought it would stop working if it was trying to draw too much power. Once it's inserted and the Pi has reset it works fine - I've tested it with my Wiimote and it can read the buttons etc. It's a Cambridge bluetooth adapter like the one mentioned ...
by garetha
Wed Jun 26, 2013 8:20 pm
Forum: Other projects
Topic: Bluetooth adapter resetting Pi
Replies: 5
Views: 1110

Bluetooth adapter resetting Pi

Hi, I've just tried my bluetooth adapter in my Pi and, when I plugged it in, it reset the Pi. I did it again, just to make sure that I hadn't pulled the power cable out... I assumed it was drawing too much current but, when I installed the bluetooth driver it all seems to be working o.k.? (It can se...
by garetha
Fri Mar 08, 2013 9:18 am
Forum: Other projects
Topic: Making a unique OS
Replies: 33
Views: 8483

Re: Making a unique OS

:( Power failure meant that, after 18 hours of the chapter 6 script, all I've got is a corrupt SD card. Sorry Mogwai, I can't go through all that again - I think my conclusion would be that setting up LFS on the Pi itself is possible but not recommended. I think I'll see if I can get Arch Linux on t...
by garetha
Thu Mar 07, 2013 3:22 pm
Forum: Other projects
Topic: Making a unique OS
Replies: 33
Views: 8483

Re: Making a unique OS

Yeah - it's the latest Raspian but it's not exactly vanilla, I've installed and uninstalled a lot of stuff. In terms of the LFS scripts I followed the advice on setting up the disk with partitions, setting up the lfs user and setting up the lfs environment variables. I then used the scripts here: ht...
by garetha
Thu Mar 07, 2013 9:13 am
Forum: Other projects
Topic: Making a unique OS
Replies: 33
Views: 8483

Re: Making a unique OS

Quick follow up. My first run of the chapter 5 bash script failed when compiling Check-0.9.9. According to this post http://www.mail-archive.com/lfs-dev@linuxfromscratch.org/msg18067.html this is caused by a misconfiguration when compiling Binutils-2.23.1 - Pass 2. By applying the fix mentioned in t...
by garetha
Tue Mar 05, 2013 1:58 pm
Forum: Other projects
Topic: Making a unique OS
Replies: 33
Views: 8483

Re: Making a unique OS

Don't think it's been mentioned on this thread yet but there's a wonderful site that goes through creating LFS on the Pi - http://www.intestinate.com/pilfs/ It says you need to know a bit about LFS on x86 first but it all seems o.k. to me so far. There are two bash scripts that will basically do eve...
by garetha
Fri Mar 01, 2013 6:50 am
Forum: Beginners
Topic: Simple image editor
Replies: 4
Views: 11264

Re: Simple image editor

Thanks for all the replies - I think mirage will do the job quite nicely.

I'm going to take a look at imagemagick too - it looks a bit more fully featured in case I need to do other things in future.

I've also found mtPaint which runs really well on the pi and does all the basics.

Gareth
by garetha
Thu Feb 28, 2013 4:39 pm
Forum: Beginners
Topic: Simple image editor
Replies: 4
Views: 11264

Simple image editor

Hi,

Can anyone suggest a simple image editor?

All I want to do is to be able to view images, resize, crop and rotate. Gimp is overkill and I really didn't like the interface in fotoxx...

Thanks

Gareth
by garetha
Tue Feb 26, 2013 11:51 am
Forum: Raspberry Pi OS
Topic: Wireless USB keyboard issues
Replies: 3
Views: 983

Re: Wireless USB keyboard issues

Just updated the firmware (using rpi-update) and I had the same problem but when I removed the "fix" I had in place before it all worked again!

Thanks very much

Gareth
by garetha
Tue Feb 26, 2013 10:55 am
Forum: Raspberry Pi OS
Topic: Wireless USB keyboard issues
Replies: 3
Views: 983

Re: Wireless USB keyboard issues

Hi Amyren,

I think modprobe -r actuall runs rmmod so that part of the solution is the same.

When you say to add that to the cmdline.txt do you mean add it to the end (or start) of what's already there to make an even longer line or on the next line down?

Thanks

Gareth
by garetha
Tue Feb 26, 2013 10:50 am
Forum: Beginners
Topic: Changing lxde theme
Replies: 1
Views: 1262

Changing lxde theme

Hi, I've found lxappearance to change the theme but I can't find out where to get new themes from and how to install them? Are there instructions to do this anywhere? One thing I've noticed is that the mouse pointer doesn't become "busy" when I click on an application - the only way I know it's star...
by garetha
Sun Feb 24, 2013 6:37 pm
Forum: Raspberry Pi OS
Topic: Wireless USB keyboard issues
Replies: 3
Views: 983

Wireless USB keyboard issues

Hi, I've got a Logitech K230 wireless keyboard. I found that, when booting, the keyboard wasn't recognised until I unplugged it from USB and plugged it back in again. After searching the forums I found a solution that worked for me: Add the following to /etc/rc.local just before exit 0 sleep 2 modpr...

Go to advanced search