Selasa, 09 Desember 2014

Bristol Digest, Vol 580, Issue 4

Send Bristol mailing list submissions to
bristol@mailman.lug.org.uk

To subscribe or unsubscribe via the World Wide Web, visit
https://mailman.lug.org.uk/mailman/listinfo/bristol
or, via email, send a message with subject or body 'help' to
bristol-request@mailman.lug.org.uk

You can reach the person managing the list at
bristol-owner@mailman.lug.org.uk

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Bristol digest..."


Today's Topics:

1. Re: 2tb sd card recomendations? (Alex Butcher)
2. Re: 2tb sd card recomendations? (Amias Channer)
3. Re: DyGraph on a Pi (Peter Hemmings)
4. Re: DyGraph on a Pi (Max B)


----------------------------------------------------------------------

Message: 1
Date: Tue, 9 Dec 2014 12:56:09 +0000 (GMT)
From: Alex Butcher <lug@assursys.co.uk>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] 2tb sd card recomendations?
Message-ID: <alpine.LFD.2.03.1412091247020.7567@nffheflf.pb.hx>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

On Tue, 9 Dec 2014, Amias Channer wrote:

> Although you are likely to hit limits in the vfat filesystem that most
> devices use on flash storage if you go beyond 4GB , i'm pretty sue you will
> get errors when formatting if you try to make it bigger than that.

SDHC devices are formatted with FAT32 (aka vfat) by default. They go upto
32GiB. Windows won't create FAT32 filesystems larger than 32GiB, offering
exFAT or NTFS instead. Linux doesn't care. The file size limit is 4GiB-1
byte, though.

SDXC devices are formatted with exFAT by default. They go from 64GiB to
512GiB currently. I've used a 64GiB micro SDXC in a phone (Samsung Galaxy S
II) that claimed to only support upto 32GiB SDHC and it was fine once
reformatted with FAT32. This behaviour will vary from device to device,
though, according to <http://en.wikipedia.org/wiki/Secure_Digital#SDXC>.
Implementing exFAT requires licenses from Microsoft, which is why many
devices (specifically, their kernels) don't support it.

> Cheers
> Amias

Best Regards,
Alex



------------------------------

Message: 2
Date: Tue, 9 Dec 2014 13:53:52 +0000
From: Amias Channer <me@amias.net>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] 2tb sd card recomendations?
Message-ID:
<CAMgU7XUC932RdwZOitxCJOGq3c-QfU6FNZHrvtORioZPV1WyUQ@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hello Alex,

thanks for the clarification , some older devices don't seem to handle the
whole of the 32GiB in my experience.
I had some odd issues with large memory cards and older devices but did'nt
have time to properly diagnose them.

Cheers
Amias

On 9 December 2014 at 12:56, Alex Butcher <lug@assursys.co.uk> wrote:

> On Tue, 9 Dec 2014, Amias Channer wrote:
>
> Although you are likely to hit limits in the vfat filesystem that most
>> devices use on flash storage if you go beyond 4GB , i'm pretty sue you
>> will
>> get errors when formatting if you try to make it bigger than that.
>>
>
> SDHC devices are formatted with FAT32 (aka vfat) by default. They go upto
> 32GiB. Windows won't create FAT32 filesystems larger than 32GiB, offering
> exFAT or NTFS instead. Linux doesn't care. The file size limit is 4GiB-1
> byte, though.
>
> SDXC devices are formatted with exFAT by default. They go from 64GiB to
> 512GiB currently. I've used a 64GiB micro SDXC in a phone (Samsung Galaxy
> S
> II) that claimed to only support upto 32GiB SDHC and it was fine once
> reformatted with FAT32. This behaviour will vary from device to device,
> though, according to <http://en.wikipedia.org/wiki/Secure_Digital#SDXC>.
> Implementing exFAT requires licenses from Microsoft, which is why many
> devices (specifically, their kernels) don't support it.
>
> Cheers
>> Amias
>>
>
> Best Regards,
> Alex
>
>
> _______________________________________________
> Bristol mailing list
> Bristol@mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/bristol
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.lug.org.uk/mailman/private/bristol/attachments/20141209/675e8a10/attachment-0001.html>

------------------------------

Message: 3
Date: Tue, 09 Dec 2014 15:00:51 +0000
From: Peter Hemmings <peter@hemmings.eclipse.co.uk>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] DyGraph on a Pi
Message-ID: <54870EA3.1020502@hemmings.eclipse.co.uk>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi,

Just had a quick look.


On 09/12/14 10:05, Shane McEwan wrote:
> A few things to try:
>
> Look in the Apache logs for errors. /var/log/apache/error.log,
> /var/log/apache2/error.log or /var/log/www/error.log are likely locations.
>
Corrected code as per your last para but still no page displayed.
I had already checked apache2 served index.html OK and did as you
suggested and got "What temperature...." OK
I still have symlink and checked log:

[Tue Dec 09 00:01:13 2014] [error] [client 192.168.0.4] File does not
exist: /var/www/favicon.ico
[Tue Dec 09 00:01:25 2014] [error] [client 192.168.0.4] PHP Parse
error: syntax error, unexpected 'phpinfo' (T_STRING) in
/var/www/testphp.php on line 1
[Tue Dec 09 00:01:25 2014] [error] [client 192.168.0.4] File does not
exist: /var/www/favicon.ico
[Tue Dec 09 00:02:58 2014] [error] [client 192.168.0.4] File does not
exist: /var/www/favicon.ico
[Tue Dec 09 00:02:59 2014] [error] [client 192.168.0.4] File does not
exist: /var/www/favicon.ico
[Tue Dec 09 00:03:01 2014] [error] [client 192.168.0.4] File does not
exist: /var/www/favicon.ico
[Tue Dec 09 00:08:45 2014] [notice] caught SIGTERM, shutting down
[Tue Dec 09 00:09:06 2014] [notice] Apache/2.2.22 (Debian)
PHP/5.4.35-0+deb7u2 configured -- resuming normal operations
[Tue Dec 09 09:18:07 2014] [notice] caught SIGTERM, shutting down
[Tue Dec 09 09:18:27 2014] [notice] Apache/2.2.22 (Debian)
PHP/5.4.35-0+deb7u2 configured -- resuming normal operations
[Tue Dec 09 14:10:26 2014] [error] [client 192.168.0.4] File does not
exist: /var/www/favicon.ico
[Tue Dec 09 14:14:18 2014] [error] [client 192.168.0.4] File does not
exist: /var/www/favicon.ico
pi@raspberry /var/log/apache2 $

So its the DyGraph display that I need to check I assume!?

> You mentioned in your first E-Mail that you symlinked something in
> /var/www?
Yep the "temp.log" in pi home directory was symlinked to temp.html in
/var/www/.

> I think, by default, Apache won't follow symlinks for security
> reasons so maybe that could be causing problems? Try copying all the
> required files into /var/www and avoid symlinks.

I have just copied the log fie instead of linking and it did not work.

Restarted apache2 and still no graph. I am still getting my text, so
apache2 seems OK.
> You don't need to make files executable. They just need to be readable
> by the web user (probably www-data on Raspbian) but making them world
> readable (chmod 644) is easier than messing around with changing owners.
>
> Change your HTML file to show something to tell you it's working.
> Currently it's relying on the Javascript to display everything. Add this:
>
> <h1>What temperature is it?</h1>
>
> after the <body> line before the <div> line and reload the page in your
> browser. If you see "What temperature is it?" then you're reading the
> HTML file OK.
>
> Also, on the <div id=...> line, the last <div> at the end of the line
> should actually be </div> which could be causing problems. And the last
> line of the file, "<html>", should be "</html>". In HTML when you open a
> tag (<...>) you should have a matching closing tag (</...>). HTML is
> pretty forgiving so it might work without the closing tags but it's best
> to not tempt fate.
>
> Good luck!
>
> Shane.
>
>
>
> _______________________________________________
> Bristol mailing list
> Bristol@mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/bristol
Will have a look at DyGraph howto's later.

Regards

--
Peter H




------------------------------

Message: 4
Date: Tue, 9 Dec 2014 16:33:43 +0100
From: Max B <psykx.out@gmail.com>
To: Bristol and Bath Linux User Group <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] DyGraph on a Pi
Message-ID:
<CALe8LgEwF1P=bYdC=hBAXjv_27E5XT7_Y52WDzwBk4DFK8Sb3w@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

this line

[Tue Dec 09 00:01:25 2014] [error] [client 192.168.0.4] PHP Parse error:
syntax error, unexpected 'phpinfo' (T_STRING) in /var/www/testphp.php on
line 1

means you have the string phpinfo without the () at the top of your file
which is causing php to crash out.

HTH Max B

On 9 December 2014 at 16:00, Peter Hemmings <peter@hemmings.eclipse.co.uk>
wrote:

> Hi,
>
> Just had a quick look.
>
>
> On 09/12/14 10:05, Shane McEwan wrote:
>
>> A few things to try:
>>
>> Look in the Apache logs for errors. /var/log/apache/error.log,
>> /var/log/apache2/error.log or /var/log/www/error.log are likely locations.
>>
>> Corrected code as per your last para but still no page displayed.
> I had already checked apache2 served index.html OK and did as you
> suggested and got "What temperature...." OK
> I still have symlink and checked log:
>
> [Tue Dec 09 00:01:13 2014] [error] [client 192.168.0.4] File does not
> exist: /var/www/favicon.ico
> [Tue Dec 09 00:01:25 2014] [error] [client 192.168.0.4] PHP Parse error:
> syntax error, unexpected 'phpinfo' (T_STRING) in /var/www/testphp.php on
> line 1
> [Tue Dec 09 00:01:25 2014] [error] [client 192.168.0.4] File does not
> exist: /var/www/favicon.ico
> [Tue Dec 09 00:02:58 2014] [error] [client 192.168.0.4] File does not
> exist: /var/www/favicon.ico
> [Tue Dec 09 00:02:59 2014] [error] [client 192.168.0.4] File does not
> exist: /var/www/favicon.ico
> [Tue Dec 09 00:03:01 2014] [error] [client 192.168.0.4] File does not
> exist: /var/www/favicon.ico
> [Tue Dec 09 00:08:45 2014] [notice] caught SIGTERM, shutting down
> [Tue Dec 09 00:09:06 2014] [notice] Apache/2.2.22 (Debian)
> PHP/5.4.35-0+deb7u2 configured -- resuming normal operations
> [Tue Dec 09 09:18:07 2014] [notice] caught SIGTERM, shutting down
> [Tue Dec 09 09:18:27 2014] [notice] Apache/2.2.22 (Debian)
> PHP/5.4.35-0+deb7u2 configured -- resuming normal operations
> [Tue Dec 09 14:10:26 2014] [error] [client 192.168.0.4] File does not
> exist: /var/www/favicon.ico
> [Tue Dec 09 14:14:18 2014] [error] [client 192.168.0.4] File does not
> exist: /var/www/favicon.ico
> pi@raspberry /var/log/apache2 $
>
> So its the DyGraph display that I need to check I assume!?
>
> You mentioned in your first E-Mail that you symlinked something in
>> /var/www?
>>
> Yep the "temp.log" in pi home directory was symlinked to temp.html in
> /var/www/.
>
> I think, by default, Apache won't follow symlinks for security
>> reasons so maybe that could be causing problems? Try copying all the
>> required files into /var/www and avoid symlinks.
>>
>
> I have just copied the log fie instead of linking and it did not work.
>
> Restarted apache2 and still no graph. I am still getting my text, so
> apache2 seems OK.
>
>> You don't need to make files executable. They just need to be readable
>> by the web user (probably www-data on Raspbian) but making them world
>> readable (chmod 644) is easier than messing around with changing owners.
>>
>> Change your HTML file to show something to tell you it's working.
>> Currently it's relying on the Javascript to display everything. Add this:
>>
>> <h1>What temperature is it?</h1>
>>
>> after the <body> line before the <div> line and reload the page in your
>> browser. If you see "What temperature is it?" then you're reading the
>> HTML file OK.
>>
>> Also, on the <div id=...> line, the last <div> at the end of the line
>> should actually be </div> which could be causing problems. And the last
>> line of the file, "<html>", should be "</html>". In HTML when you open a
>> tag (<...>) you should have a matching closing tag (</...>). HTML is
>> pretty forgiving so it might work without the closing tags but it's best
>> to not tempt fate.
>>
>> Good luck!
>>
>> Shane.
>>
>>
>>
>> _______________________________________________
>> Bristol mailing list
>> Bristol@mailman.lug.org.uk
>> https://mailman.lug.org.uk/mailman/listinfo/bristol
>>
> Will have a look at DyGraph howto's later.
>
> Regards
>
> --
> Peter H
>
>
>
> _______________________________________________
> Bristol mailing list
> Bristol@mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/bristol
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.lug.org.uk/mailman/private/bristol/attachments/20141209/3cdb4f16/attachment.html>

------------------------------

_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol

End of Bristol Digest, Vol 580, Issue 4
***************************************

Tidak ada komentar:

Posting Komentar