Go to advanced search

by Jock in a Frock
Fri Jun 21, 2013 6:41 pm
Forum: Other programming languages
Topic: Css not working, don't know what's wrong.
Replies: 1
Views: 942

Re: Css not working, don't know what's wrong.

You need to put your

Code: Select all

<h1> Hello </h1> 
into the

Code: Select all

<body>
section
by Jock in a Frock
Mon May 27, 2013 3:21 pm
Forum: General discussion
Topic: Newbie electriconics question..
Replies: 24
Views: 2132

Re: Newbie electriconics question..

A voltmeter presents a high impedance (i.e. resistance in a d.c. circuit) to the supply under test. The better your voltmeter, the higher the impedance (and the less current flowing through your voltmeter). Conversely, an ammeter to measure current has a very low impedance. Ammeters are designed to ...
by Jock in a Frock
Sun May 12, 2013 8:44 am
Forum: General discussion
Topic: Trying to connect to Pi via SSH with PuTTY using public IP
Replies: 4
Views: 1880

Re: Trying to connect to Pi via SSH with PuTTY using public

Hi,

You should change the TCP port from 22 to something above 1024, this will help avoid intrusion attempts from the internet hitting your Pi.

You need to change the port on both your router, and on your Pi :

http://www.raspians.com/Knowledgebase/h ... -ssh-port/
by Jock in a Frock
Fri Feb 01, 2013 12:16 pm
Forum: Troubleshooting
Topic: PCMANFM running 100% during VNC session
Replies: 1
Views: 2083

Re: PCMANFM running 100% during VNC session

SD card crashed, reimaged with the same OS, problem now fixed.
by Jock in a Frock
Thu Jan 17, 2013 9:54 pm
Forum: Troubleshooting
Topic: PCMANFM running 100% during VNC session
Replies: 1
Views: 2083

PCMANFM running 100% during VNC session

Debian Wheezy 3.2.27+ Running headless and accessing Pi through SSH and TightVNC. Apache2, MySQL and PHP5.5 installed and running fine. Problem: VNC X-Desktop session causes PCMANFM process to eat all available CPU cycles, CPU maxes out at 100%. Killing process with KILL -9 and desktop session still...
by Jock in a Frock
Mon Jan 07, 2013 1:00 am
Forum: General programming discussion
Topic: Apache - unable to make DocumentRoot directive work
Replies: 3
Views: 5064

Re: Apache - unable to make DocumentRoot directive work

Change the website's DocumentRoot in the files in folder /etc/apache2/sites-available/ (/etc/apache2/sites-enabled). You probably also have to restart apache for the changes to have effect. sudo /etc/init.d/apache2 restart Superb! - that's fixed it, I have amended the default VirtualHost to set Doc...
by Jock in a Frock
Mon Jan 07, 2013 12:25 am
Forum: General programming discussion
Topic: Apache - unable to make DocumentRoot directive work
Replies: 3
Views: 5064

Apache - unable to make DocumentRoot directive work

Hi, My SD card died so I've had to rebuild my Pi webserver from scratch using the Wheezy build from 16/12/2012. I have installed MySQL and Apache2.2.2, and I have it serving pages and running PHP. The problem is that I can't get Apache to serve pages from my USB hard drive (which is mounted fine and...
by Jock in a Frock
Fri Sep 21, 2012 7:13 am
Forum: Beginners
Topic: Automatically save a file with a different owner
Replies: 5
Views: 2612

Re: Automatically save a file with a different owner

I think I might be making a mountain out of a molehill here - Apache seems to serve the files no matter who owns them.

I need to do more reading on Linux and Apache file permissions. Thanks guys.
by Jock in a Frock
Thu Sep 20, 2012 10:47 pm
Forum: Beginners
Topic: Automatically save a file with a different owner
Replies: 5
Views: 2612

Automatically save a file with a different owner

Ok, here's the situation: I have set up an Apache server, and I'm storing my websites in /var/www/ I'm logged in with my default user "Jock". I'm using nano to write some php & html files. Is there any way to get nano to automatically save the files with the default user & group set to "www-data", w...
by Jock in a Frock
Tue Sep 18, 2012 12:32 pm
Forum: Troubleshooting
Topic: Power supply - wrong cable?
Replies: 5
Views: 658

Re: Power supply - wrong cable?

RaTTuS wrote:short and fat is the way to go ;-p
Tell my wife that ;)
by Jock in a Frock
Wed Aug 08, 2012 3:32 pm
Forum: Troubleshooting
Topic: Running Headless and Sound
Replies: 11
Views: 2225

Re: Running Headless and Sound

The 10/100Mbit is normally a reference that indicates if all 8 wires of the network cable are used (Maximum speed 100Mbit) or only 4 of them (Maximum speed 10Mbit). 100Mb Ethernet only uses 4 wires. it's Gigabit Ethernet that uses all 8 wires. http://en.wikipedia.org/wiki/Fast_Ethernet#100BASE-TX h...
by Jock in a Frock
Wed Aug 08, 2012 8:31 am
Forum: Troubleshooting
Topic: can't ssh via DynDns and port forwarding to RPi
Replies: 4
Views: 1419

Re: can't ssh via DynDns and port forwarding to RPi

Glad you got it sorted. I use the same process to access my Pi while away from home. I even did this while on honeymoon in Spain (I know, I know.....). :D
by Jock in a Frock
Thu Aug 02, 2012 8:48 pm
Forum: Troubleshooting
Topic: can't ssh via DynDns and port forwarding to RPi
Replies: 4
Views: 1419

Re: can't ssh via DynDns and port forwarding to RPi

Are your Mac and your RPi configured to use the same port for SSH? (22 by default, but can be changed )? Can you log on to your home router form your work network? (you will have to turn on Remote Management on your router, depends on router type whether it supports this - DON'T LEAVE THAT OPTION ON...
by Jock in a Frock
Mon Jul 30, 2012 6:55 pm
Forum: General discussion
Topic: The Raspberry Pi Backup Thread
Replies: 80
Views: 73170

Re: The Raspberry Pi Backup Thread

Thanks AndrewS, some good info there. I'm intrigued by the "reboot / backup / reboot" method, since I expect I could script that fairly easily. I think I'll try that next. I do understand the difference between filesystem backups and the way dd does it (which is more of a disk cloning function). I a...
by Jock in a Frock
Mon Jul 30, 2012 8:11 am
Forum: General discussion
Topic: The Raspberry Pi Backup Thread
Replies: 80
Views: 73170

Re: The Raspberry Pi Backup Thread

Has Jock tested any of his backup images yet :?: Yes, I have tested two backup images, without any problems. Currently I'm not running any servers, but I will be using Apache or nginx, with MySQL. So I'm conscious of the limitations and problems of using dd for backing up. I hope to look at a more ...
by Jock in a Frock
Sun Jul 29, 2012 9:50 am
Forum: General discussion
Topic: The Raspberry Pi Backup Thread
Replies: 80
Views: 73170

Re: The Raspberry Pi Backup Thread

Thanks, khh, you spotted my deliberate mistake. ;) I have amended the script, and also added a few echo lines to indicate success / failure etc. #!/bin/bash # Backup OS to the USB Hard Disk Drive # Create a filename with datestamp for our current backup (without .img suffix) ofile="/mnt/usb/backup_$...
by Jock in a Frock
Sun Jul 29, 2012 8:05 am
Forum: Raspbian
Topic: imaging the image for backup purposes?
Replies: 10
Views: 2264

Re: imaging the image for backup purposes?

I've started at thread about backup procedures, and I've posted a script in there for a scheduled backup process. It may be useful to you. Hvae a look here:
http://www.raspberrypi.org/phpBB3/viewt ... 63&t=12079
by Jock in a Frock
Sun Jul 29, 2012 5:59 am
Forum: General discussion
Topic: The Raspberry Pi Backup Thread
Replies: 80
Views: 73170

Re: The Raspberry Pi Backup Thread

Progress so far - I have a script to automate a full backup to the USB HDD (mounted at /mnt/usb/ on my system): #!/bin/bash # Backup OS to the USB Hard Disk Drive # Create a filename with datestamp for our current backup (without .img suffix) ofile="/mnt/usb/backup_$(date +%d-%b-%y_%T)" # Create fin...
by Jock in a Frock
Mon Jul 23, 2012 7:42 pm
Forum: General discussion
Topic: How to Not Hold a Raspberry Jam
Replies: 25
Views: 4939

Re: How to Not Hold a Raspberry Jam

If you can ping a host over a LAN/WAN, its MAC address will be cached in the ARP table of your NIC for a while, so, from the command prompt: ping 1.2.3.4 replies from host 1.2.3.4 arp -a MAC address of 1.2.3.4 Obviously, that would require cooperative hosts that have ping opened up, which is increa...
by Jock in a Frock
Mon Jul 23, 2012 7:20 am
Forum: General discussion
Topic: How to Not Hold a Raspberry Jam
Replies: 25
Views: 4939

Re: How to Not Hold a Raspberry Jam

Jim, The MAC address only stays local to the LAN segment from device to device, it is not broadcast out onto the internet. The local switch (standalone or on a home router) will maintain an ARP table, but that data is not encoded into the IP packets going out on the WAN port to the Internet. Unless ...
by Jock in a Frock
Sun Jul 22, 2012 8:33 pm
Forum: General discussion
Topic: How to Not Hold a Raspberry Jam
Replies: 25
Views: 4939

Re: How to Not Hold a Raspberry Jam

The MAC address of your Pi will not appear on the internet. It's a local address between the Pi and the next device it's connected to.

Sorry you lost your Pi, hope someone finds it and it turns out to be a genuine mistake.

Well done with your Jam.
by Jock in a Frock
Sun Jul 22, 2012 2:36 pm
Forum: Beginners
Topic: Seriously .. where to find power supply?
Replies: 76
Views: 22309

Re: Seriously .. where to find power supply?

The situation is quite different in Europe .. the whole Micro USB standardization thing evolved from the idea of unfair competition or so - and was then formed into legislation which applies to all phone manufacturers. I know I'm being pedantic, but just to clarify - the move to micro-USB for phone...
by Jock in a Frock
Sat Jul 21, 2012 9:16 pm
Forum: General discussion
Topic: The Raspberry Pi Backup Thread
Replies: 80
Views: 73170

The Raspberry Pi Backup Thread

I’m starting this thread to get a discussion going about backing up the OS. I don’t need to know how to put my SD card in a Windows box and create an image. I’m more interested in creating a mechanism where the OS will automatically backup to either a USB stick, USB drive, or a network share. I wan...
by Jock in a Frock
Sat Jul 21, 2012 9:12 pm
Forum: General discussion
Topic: Kernel Panics - any way to auto reboot?
Replies: 19
Views: 7789

Re: Kernel Panics - any way to auto reboot?

Okay, this thread has gone off topic quite a bit, so I'm going to start a new thread to discuss backups. Just to close this thread down - I have not seen any more kernel panics since updating to Raspbian Wheezy, so I expect it was either just instability in Squeeze 19_04, or something I had screwed ...

Go to advanced search