[blfs-support] locale question

2014-04-26 Thread Richard Melville
I have a utf-8 locale which appears to be performing OK.  When I run
locale it returns a list of twelve LC_* conditions plus  LANG all
reading en_GB.UTF-8.  However, the final condition LC_ALL is unset.
Can anybody tell me if that is correct, or if it needs to be set to
en_GB.UTF-8.

TIA

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


[blfs-support] bridge-utils

2014-04-17 Thread Richard Melville
A small typo:-

Note
The bridge script depends on the comamnds...

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

[blfs-support] wpa_supplicant

2014-04-17 Thread Richard Melville
Another small typo:-

Note
This package installes...

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

[blfs-support] initramfs

2014-04-15 Thread Richard Melville
Out of interest I've just read the above page in the book.  I *don't* use
an initramfs, but I do have a rootfs mounted on a btrfs subvolume (similar
in some ways to LVM).  I have a GPT boot partition formatted with ext2 on a
USB flash drive, and I'm using syslinux as a boot loader.

In case others are looking to boot a rootfs on a btrfs subvolume I just
thought that I should report here that it is possible to do this *without*
an initramfs.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] rsync

2014-04-12 Thread Richard Melville

 Richard Melville wrote:
 
  Richard Melville wrote:
  -d /home/rsync doesn't create the home directory; surely it should be
 -m
  /home/rsync.
 
  No, it just specifies a directory in /etc/passwd, but no one is logging
  into the rsync account, so it doesn't need to be created.
 
  -- Bruce
 
 
  But the suggested configuration file appears to require it:-
 
  # This is a basic rsync configuration file
  # It exports a single module without user authentication.
 
  motd file = /home/rsync/welcome.msg
  use chroot = yes
 
  [localhost]
   path = /home/rsync
   comment = Default rsync module
   read only = yes
   list = yes
   uid = rsyncd
   gid = rsyncd

 Good point.  However that's only needed for the server.  We'll look into
 updating it.

-- Bruce


One further point I forgot to mention, the rsync configure script looks for
stunnel, and if it finds it adds support.  In non-daemon mode using ssh is
fine, as rsync has no built-in encryption, but in daemon mode, for
anonymous access with encryption, stunnel would need to be used.  Maybe
stunnel should be added as an optional dependency.  And openssh too,
although I note that it is mentioned in the text.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] rsync

2014-04-11 Thread Richard Melville

 Richard Melville wrote:
  -d /home/rsync doesn't create the home directory; surely it should be -m
  /home/rsync.

 No, it just specifies a directory in /etc/passwd, but no one is logging
 into the rsync account, so it doesn't need to be created.

-- Bruce


But the suggested configuration file appears to require it:-

# This is a basic rsync configuration file
# It exports a single module without user authentication.

motd file = /home/rsync/welcome.msg
use chroot = yes

[localhost]
path = /home/rsync
comment = Default rsync module
read only = yes
list = yes
uid = rsyncd
gid = rsyncd

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

[blfs-support] rsync

2014-04-10 Thread Richard Melville
-d /home/rsync doesn't create the home directory; surely it should be -m
/home/rsync.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] Sudo

2014-04-05 Thread Richard Melville

 Le 04/04/2014 12:27, Fernando de Oliveira a ?crit :
  Em 04-04-2014 06:24, Pierre Labastie escreveu:
 
  I go have a look and correct if necessary.
 
  Pierre
  Done at r12930.
  My script is as the book now. I had that change to be done, probably
  more than one update ago, thought had done it. Perhaps it got back
  during the discussion about removing libexec, then not doing it for
  sudo. But I should have noticed it. Apologies to all.
 
 No big deal, I took it, because I thought you'd prefer update the GNOME
 packages, rather than correcting a harmless typo...

 Pierre


Thanks Pierre and Fernando for the quick response; I realise that the error
was a typo that didn't actually affect the build, and I know that you guys
are really busy.  Let me take this opportunity to say that I believe the
lists and the *LFS books are the best GNU/Linux resources on the Web, and
thanks again for all the help that you and the others have provided over
the years.  Maybe that's not said often enough.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] Sudo

2014-04-04 Thread Richard Melville

 On Thu, 03 Apr 2014 6:46:05 PM Richard Melville wrote:
  There's an error in the book's suggested configure commands:
   --libexecdir=/usr/lib/sudo should be --libexecdir=/usr/lib.  Both
 current
  books have this error which surely would produce two sudo directories;
  one below the other.
 
  Richard

 You are incorrect there Richard.

 I have used those instructions for sudo and it does NOT as you state
 produce
 two sudo directories.


Maybe we are both right :-)  I didn't run make  make install with the
book's instructions so I can't confirm that two directories *are* produced.



 Try running ./configure --help and looking at the maintainers instructions.

 Christopher


I's a fact, however, that if you run --libexecdir=/usr/lib/sudo you *will*
receive a warning from the configure script that reads: WARNING: libexecdir
should not include the sudo subdirectory.  Running --libexecdir=/usr/lib
does not produce the warning, but still provides the required /usr/lib/sudo.

If, as you say, two directories *aren't* produced then the configure script
must be compensating for the error.  However, it is *still* an error and
should be rectified in the book.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

[blfs-support] Snort

2014-04-03 Thread Richard Melville
I know it's not in the book but does anybody have any views on Snort?

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

[blfs-support] Sudo

2014-04-03 Thread Richard Melville
There's an error in the book's suggested configure commands:
 --libexecdir=/usr/lib/sudo should be --libexecdir=/usr/lib.  Both current
books have this error which surely would produce two sudo directories;
one below the other.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] iptables again

2014-03-27 Thread Richard Melville
I've now got both ipv4 and ipv6 firewalls working satisfactorily, however,
I'm having difficulty filtering icmpv6 packets, and wasted a lot of time
yesterday in the attempt.  As ipv6 is far more dependant upon icmp than
ipv4 ever was, I'm finding it complicated to filter said packets in a
secure manner and still have a functioning firewall.

If anybody has any tips on filtering icmpv6 packets to aid security I'd be
very grateful to hear them.  If not, then I'll stick with what I have for
now (all icmpv6 packets allowed on both input and output chains) and return
to the issue in the future when I have more time.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

[blfs-support] iptables again

2014-03-25 Thread Richard Melville
OK, I've had another look at iptables.  The reason the counters weren't
working in iptables when mail was sent was because, for whatever reason,
msmtp decided to use an ipv6 address intead of ipv4.  Running msmtp --debug
proved this.  I knew that building a dual stack was going to cause issues.

I've locked ip6tables to force msmtp to use an ipv4 address for testing
purposes, and it seems that there's some weird stuff going on, but I'm no
iptables expert.  The only way I could get mail through the firewall was to
use the multiport module and open the smtp port (25) *and* the submission
port (587) in the output chain.  Using either one on its own didn't work,
but I only seem to need port 587 open on the input chain.  Then I noticed
that the counters were working on the input chain but not on the output
chain, even though mail was being sent.

Looking at /etc/services I saw that there was a udp submission port 587; I
don't know what its function is.  I opened this port as well on the output
chain and the counters started to record in both directions, but not on the
udp port 587 rule itself.  As I say, this seems really weird to me; it
appears that I needed the udp port open to get the *other* counters
recording, even though it doesn't record any traffic itself.

If anybody has any comments I'd be grateful.  I'm not sure how much time
I'll have to investigate further as the bottom line is that mail is now
being sent and recorded.  I haven't set up logging yet but I will do when I
have more time, and I'll be working on ip6tables, when I have a moment to
spare,over the next couple of days.  I should say that this is a very
locked-down firewall with only the essential ports open on *both* input and
output chains, with the standard policies of drop everything.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] iptables again

2014-03-24 Thread Richard Melville
 Date: Mon, 17 Mar 2014 18:51:53 +
  From: lf...@cruziero.com (akhiezer)
  To: BLFS Support List blfs-support@linuxfromscratch.org
  Subject: Re: [blfs-support] iptables again
 
.
.
 Richard Melville wrote:
  Maybe somebody has the answer to this -- it's only a minor point.
 
  I've set up msmtp and s-nail on a blfs server; I can send email,
 and
  iptables is not blocking them but neither is it recording the
 packets
  passed.  When I had this issue before with a different service,
 changing
  sport to dport resolved it, but not this time.  I've set the
 ports to 25
  and I've also tried 587. Both work, but still no packets
 recorded.
 
 
  (D'you mean the 25/587 wrt mstmp config, or iptables config, or both?)
 
 

 What commands are you trying to run?

-- Bruce


I'm sending mail to a colleague via my gmail address with:-
   
cat test.mail |  msmtp -a gmail collea...@company.co.uk
 
 
  Can you set a command-line verbose flag for msmtp to report  log in more
  detail what it's doing, just to double-check what port(s) it is actually
  using in practice.
 
 
   
where gmail is the name of my account in the .msmtprc file.
   
As I say, the mail delivery works fine with my colleague receiving
 the
mail, and I get a copy in my gmail sent items.  However, iptables
 -nvL
shows 0 in both the pkts and the bytes columns, as if nothing has
 been
sent.  A minor point I know, but all my other traffic (ntp, http,
 dns, ssh)
is recorded by iptables in those two columns.
   
  
  
   Are you wanting to show incoming or outgoing traffic, or both, or what?
  
 
 
  (OK, I guess from 'sent' that you mean outgoing traffic ... ).
 
 
   Does your firewall log the traffic for the relevant port numbers and
   for the relevant table (~== traffic-flow direction)?
  
 
 
  ( s|table|table/chain| ).
 
 
   Depending on what table you're wanting to see stats for, you might
   need to use the '-t' flag for iptables to show the stats for the
 relevant
   table. You might also find the '--line-numbers' flag useful - e.g. for
   debugging. (And fwiw, I'd normally use the '-x' flag too).
  
 
 
  (Long-shot: do try the '-x' - just on the outside chance that omitting
  it is somehow rounding-down small-values to 0 ).
 
 
   If the above don't resolve it, then probably good idea to post your
   firewall file, plus the literal stats command line (if different from
 the
   'iptables -nvL' posted above).
  
 
 
  Maybe worth also doing:
  --
  * log the stats immediately pre- test-message;
  * send test email; perhaps also use/send known-size attachment;
  * log the stats immediately post- test-message;
  * diff the pre-/post- stats.
  --
  Account for the differences pre-/post-: what caused which traffic;
  so ideally do the test when non-test network traffic is low/nil; and NB
  of course that often firewalls are set to only log a subset of traffic
  (e.g. don't log stuff beyond the first n instances in present connection)
  - so the byte-amounts logged might be less than the amount sent in your
  test-email.
 
 
  Overall, of course, it all depends on what firewall setup you've got in
 place.
 


 Richard. Did you get this sorted ok?


 rgds,
 akh


Yes, sorry for not getting back to you and the others who suggested a
remedy, but I haven't had a chance yet to revisit iptables.  I've just
changed our ISP and I've also been grappling with adding IPv6 support to
the systems, which I'm sure will throw up all sorts of other issues :-(
 I'm hoping to have another look sometime this week and I'll report back.

I really appreciate your concern -- thanks for that.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] Failed to boot from USB stick

2014-03-19 Thread Richard Melville


 On Tue, Mar 18, 2014 at 6:16 PM, Bruce Dubbs bruce.du...@gmail.com
 wrote:
 
  If you are using a GUID Partition Table (GPT), then you don't need a
 initrd.
  Assuming /boot is on a partition by itself, try:
 
  menuentry LFS Dev, Linux 3.10.32-sm01 {
 linux /vmlinuz-3.10.32-sm01 \
   root=PARTUUID=49acd73e-1457-424f-8dc1-3c3fa027becf \
   rootfstype=ext4 rootdelay=20
  }
 
  Of course, grub needs to be able to find the partition with the kernel on
  it.  It should be on the boot device with where grub.cfg is located.

 Could I skip initrd with extlinux as well if I use gpt?
 If I do grub-install, it complains about gpt.. What are the tricks to
 install grub2.0 on gpt formatted disk with a separate /boot?

 Regards,
 Alexey


 You have to decide whether to use grub2 or syslinux; either will work.  My
advice is to keep it simple. I prefer syslinux to grub2 because I think
that grub2 has become too bloated, and if you are using the ext series of
file systems (including btrfs) then I see no reason to use grub2.  And,
yes, you can use syslinux with gpt and no initrd.  If you want to use grub2
then Bruce has already told you how to do it.

One point I would make is to ensure that you are using the correct GPT
GUID; it's the second one that appears in the table displayed by querying
with i, the one that's labelled unique.

BTW your rootdelay of 20 seems far too long; I've managed to reduce mine
to 1 as you can see from my extlinux.conf file.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] Failed to boot from USB stick

2014-03-18 Thread Richard Melville
On Wed, Mar 12, 2014 at 12:07 PM, Richard Melville
 richard.melvill...@googlemail.com wrote:
  What worked for me in the end is the following: I don't use a initrd and
 I
  partition the flash drive with GPT, format with ext2, and boot to an ext4
  partition on an mSATA SSD.  I use Syslinux rather than Grub2 as it's
 lighter
  and it's much easier (IMO) to set up.  If it's of any help here is my
  extlinux.conf:-
 
  /boot/extlinux/extlinux.conf
 PROMPT 1
 TIMEOUT 50
 DEFAULT xxx
 LABEL xxx
  LINUX /boot/vmlinuz-3.12.8-toi
  APPEND root=PARTUUID=---- \
vga=792 acpi_osi=linux acpi_backlight=legacy
  hest_disable \
iommu=soft rootfstype=ext4 rootdelay=1
 
 Hi Richard,

 After struggling with grub, I've decided to try syslinux-6.02 with
 setup similar to yours:
 booting from usb stick with 512MB ext2 partition and ext4 root FS on
 another USB stick.

 I've got kernel panic - VFS: unable to mount root fs on unknown-block
 (0,0). Some forums suggests initramfs.
 I think you could skip initramfs only if you're using SATA disks. I've
 added initramfs in syslinux config, but it was unable to find a device
 containing root fs and dropped to a shell...

 I wonder, since you have a working setup could you try to boot your
 box with root FS on USB stick?

 Regards,
 Alexey


Yes, I had the same problem; you have to have the kernel image on the same
flash drive.  That could be seen as a security issue but as we are dealing
with very small computers somebody could just as easily walk off with the
complete box as they could with the USB flash drive.  Anyway, I have my USB
flash drive locked under the front cover of the case; it's not on display.
 Of course, removing the flash drive renders the computer un-bootable; a
security feature in itself.

I use an 8GB flash drive (that seems to be the optimum capacity now,
price-wise) and partition it into a 100MB boot partition with the remaining
space as swap.  With 8GB of RAM I don't need to swap to it but I'm hoping
to be able to use it for hibernation.  My systems are battery powered so I
see it as a safety feature.  I've had no luck yet getting it to work (more
BIOS problems I think) but I'm working on it.

So, the boot partition holds the extlinux directory and the kernel image
and nothing else. If you do that it should boot OK without initramfs. I've
also been able to boot to another USB flash drive so the target drive
is immaterial.  Let me know how you get on.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] iptables again

2014-03-17 Thread Richard Melville

 Richard Melville wrote:
  Maybe somebody has the answer to this -- it's only a minor point.
 
  I've set up msmtp and s-nail on a blfs server; I can send email, and
  iptables is not blocking them but neither is it recording the packets
  passed.  When I had this issue before with a different service, changing
  sport to dport resolved it, but not this time.  I've set the ports to 25
  and I've also tried 587. Both work, but still no packets recorded.

 What commands are you trying to run?

-- Bruce


I'm sending mail to a colleague via my gmail address with:-

cat test.mail |  msmtp -a gmail collea...@company.co.uk

where gmail is the name of my account in the .msmtprc file.

As I say, the mail delivery works fine with my colleague receiving the
mail, and I get a copy in my gmail sent items.  However, iptables -nvL
shows 0 in both the pkts and the bytes columns, as if nothing has been
sent.  A minor point I know, but all my other traffic (ntp, http, dns, ssh)
is recorded by iptables in those two columns.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

[blfs-support] iptables again

2014-03-16 Thread Richard Melville
Maybe somebody has the answer to this -- it's only a minor point.

I've set up msmtp and s-nail on a blfs server; I can send email, and
iptables is not blocking them but neither is it recording the packets
passed.  When I had this issue before with a different service, changing
sport to dport resolved it, but not this time.  I've set the ports to 25
and I've also tried 587. Both work, but still no packets recorded.

Any help much appreciated.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] Failed to boot from USB stick

2014-03-12 Thread Richard Melville

 I can't boot BLFS 7.4 system (Intel Atom 32-bit) from USB stick on
 some motherboards, but I  can do it on the same motherboard type with
 different (old) BIOS version.


Yes, the BIOS is one of the final bastions of proprietary
software/firmware, and many are crap with little opportunity to do anything
about it.  Have you had a look at Coreboot to see if your motherboard is
supported; if it is you could replace the unpleasant, locked-down BIOS with
something more open.  I've also had problems with SSD firmware which, on
one occasion, failed with many I/O errors.  I was forced to flash to a
later version.

I boot all my 64-bit Atoms from USB flash drive now as it makes sense to me
to completely remove the boot sequence from the OS, particularly as the
boot partition does not even need to be mounted and becomes redundant after
the boot sequence has completed.  I can then clone the flash drive with dd
and use it to boot a different box.  I have had problems similar to your
own (all BIOS related) which can be difficult to track down, so I'm not
sure that I can be of any specific help with your particular problem.  None
of my Atom boards is supported by Coreboot.

What worked for me in the end is the following: I don't use a initrd and I
partition the flash drive with GPT, format with ext2, and boot to an ext4
partition on an mSATA SSD.  I use Syslinux rather than Grub2 as it's
lighter and it's much easier (IMO) to set up.  If it's of any help here is
my extlinux.conf:-

/boot/extlinux/extlinux.conf
   PROMPT 1
   TIMEOUT 50
   DEFAULT xxx
   LABEL xxx
LINUX /boot/vmlinuz-3.12.8-toi
APPEND root=PARTUUID=---- \
  vga=792 acpi_osi=linux acpi_backlight=legacy
hest_disable \
  iommu=soft rootfstype=ext4 rootdelay=1

I've read BIOS release notes and found nothing relevant to the problem
 neither seen anything significantly different in BIOS menu.

 grub.cfg is simple:
 set default=0
 set timeout=3
 insmod ext2
 set root=(hd0,1)
 menuentry Default {
 linux /boot/vmlinuz-3.10.28
 root=UUID=d768c1f0-79c9-45c4-b604-8d0735a71242 rootfstype=ext4 ro
 rootdelay=6
 initrd /boot/initrd.img-3.10.28
 }

 On the failed system grub is capable to show boot menu, but while
 selecting it, it fails with message:
 error: failure reading sector 0x57f650 from 'hd0'.

 if I drop to grub command prompt from boot menu (without initially
 selecting entry), and do some commands:
 grub ls
 (hd0) (hd0,msdos1)
 grub insmod ext2
 grub ls (hd0,1)/boot
 error: failure reading sector 0x802 from 'hd0'
 grub ls
  # now ls output is empty line
 grub date
 error: no such partition.
 grub

 - If I connect the same USB stick to the motherboard with old BIOS, it
 boots ok.
 - I can boot from SATA HDD with exactly the same root fs as USB stick
 (I've copied root partition with cpio and updated UUID value in grub
 and fstab).
 - I can boot from USB stick only if it has FAT32, for example MSDOS
 boot disk or Ubuntu install disk made by Universal-USB-Installer.exe.

 I wonder, what else do I need to check in order to get to the bottom
 of this problem?
 Any help would be appreciated.

 Regards,
 Alexey

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] iptables

2014-03-10 Thread Richard Melville
Thanks for the help Bruce and AK -- that's a lot clearer.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] iptables

2014-03-09 Thread Richard Melville

 Richard Melville wrote:
  Can anybody tell me what the reason is for not using iptables-save and
  iptables-restore?

 You can use them if you want, but I don't see a use for them unless you
 are doing some kind of dynamic control of the tables.  It's better if
 the admin knows what rules are being used and they can be easily
 documented in rc.iptables.

-- Bruce

 Thanks Bruce, I can see the distinction now.  I've created another file
for iptables-save which I can use after experimenting dynamically with the
iptables command.  I can then copy across the relevant parts to the
firewall script in /etc/rc.d/rc.iptables.

What I don't understand is: when setting the kernel parameters why enabling
or disabling *all* doesn't automatically affect *default*.  Also, in the
book only *default* is turned off in *accept-redirects* and not *all*,
unlike the other parameters.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

[blfs-support] iptables

2014-03-08 Thread Richard Melville
Can anybody tell me what the reason is for not using iptables-save and
iptables-restore?

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

[blfs-support] ulogd

2014-03-05 Thread Richard Melville
I can't find any recent reference to ulogd in the LFS books so I was
wondering if there is any benefit to be gained by using this logger for
iptables.

The idea of having a separate, dedicated  logger for iptables seems
attractive to me, and a new version has recently been released.

Any views would be appreciated.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] Complete Backup of {,B}LFS

2013-12-24 Thread Richard Melville

 'e2image' (part of e2fsprogs pkg) might be partly of some use there, in the
 wider-picture: but I'd say for the present task you really want dd or the
 find/cpio combination; either of them will do the job just fine. If you
 need 100% identical data - incl metadata, timestamps, c - then I'd say use
 dd. Whereas, working at the filesystem-level - as you normally would with
 find/cpio, cp, tar, cat, c - you run the 'risk' of at least some metadata
 (e.g. timestamps on dirs) being changed in source /or target. IME, for
 working at the filesystem-level, the find/cpio combination will get you
 100% identical data-copy (I've never encountered find/cpio 'choking' on any
 filesys-objects), and near-100%-identical metadata-copy (e.g. via those
 '-a'
  '-m' cpio flags).


It's probably worth mentioning explicitly that cloning also clones the UUID
and the PARTUUID (if present) of a block device, which could cause problems
later if using the cloned device within the same system.  These IDs would
need to be changed manually with blkid and gdisk.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] JSON-C fails to build

2013-12-21 Thread Richard Melville
I'm building JSON-C as a dependency for PulseAudio.  It fails to build with:

  /bin/sh ./libtool --tag=CC   --mode=link gcc -Wall -Werror -Wextra
  -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE
  -D_REENTRANT -g -O2 -version-info 1:0:1 -no-undefined -ljson-c  -o
  libjson.la -rpath /usr/lib libjson.lo -ljson-c
  mv -f .deps/json_util.Tpo .deps/json_util.Plo
  mv -f .deps/printbuf.Tpo .deps/printbuf.Plo
  mv -f .deps/linkhash.Tpo .deps/linkhash.Plo
  libtool: link: gcc -shared  .libs/libjson.o   -ljson-c -Wl,-soname
  -Wl,libjson.so.0 -o .libs/libjson.so.0.1.0
  /usr/bin/ld: cannot find -ljson-c
  collect2: error: ld returned 1 exit status
  make[2]: *** [libjson.la] Error 1
  make[2]: *** Waiting for unfinished jobs
  mv -f .deps/json_object.Tpo .deps/json_object.Plo
  mv -f .deps/json_tokener.Tpo .deps/json_tokener.Plo
  make[2]: Leaving directory `/usr/src/json-c-0.11/json-c-0.11'
  make[1]: Leaving directory `/usr/src/json-c-0.11/json-c-0.11'
  make[1]: *** [all-recursive] Error 1
  make: *** [all] Error 2

 I don't know if it's relevant, but the README file contains this:

  Linking to libjson-c
 
  If your system has pkgconfig then you can just add this to your makefile
 
  CFLAGS += $(shell pkg-config --cflags json-c)
  LDFLAGS += $(shell pkg-config --libs json-c)
 
  Without pkgconfig, you would do something like this:
 
  JSON_C_DIR=/path/to/json_c/install
  CFLAGS += -I$(JSON_C_DIR)/include/json-c
  LDFLAGS+= -L$(JSON_C_DIR)/lib -ljson-c

 If it's relevant to pass any of these things to get JSON-C to build, how
 and where would I do it?

 You could try Jansson, I think it's a drop-in replacement and that built
just fine for me.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] du on / produces errors from /proc

2013-12-07 Thread Richard Melville

  Date: Fri, 06 Dec 2013 11:35:35 +0100
  From: Pierre Labastie pierre.labas...@neuf.fr
  To: BLFS Support List blfs-support@linuxfromscratch.org
  Subject: Re: [blfs-support] du on / produces errors from /proc
 
  Le 06/12/2013 10:56, Richard Melville a ?crit :
  
   Le 05/12/2013 18:18, Richard Melville a ?crit :
Does anybody know what causes the following:-
   
du: cannot access '/proc/602/task/602/fd/4': No such file or
   directory
du: cannot access '/proc/602/task/602/fdinfo/4': No such file or
   directory
du: cannot access '/proc/602/fd/4': No such file or directory
du: cannot access '/proc/602/fdinfo/4': No such file or directory
   
   
   What were you doing? Building some package? What is the command
 which
   generated that output?
  
   Regards
   Pierre
  
  
   I was just checking disk space with du -sh / as root.  That was the
   only output apart from the requested disk space.
  
   Richard
  
  
  /proc/602 is a system directory associated to the process number 602. I
  guess du first finds 602 inside proc when listing the directory /proc,
  then tries to open it. If 602 is a transcient process (that is it runs
  for a short time), it may happen that it has disappeared before the
  second time it is accessed.
 
  You may add --exclude=/proc to the command linen but I think it is
 harmless.
 


  - and/or use the '-x' flag if it's really just the '/' partition that you
 want info for.


 If you're wanting info on the full filesys tree, then perhaps something
 like
 'df [-a] -hP --total'; as for 'du', there are various command-line options
 to
 adjust the format to suit what you want.



 akh


Thanks for the help, and to Pierre for the (as always) knowledgeable and
detailed explanation.  What I love about this list is that there's no end
to the learning.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] problem using BS or DEL key

2013-12-07 Thread Richard Melville

  Good luck -  I guess that compiling a kernel on an atom will be
 slow.

 ?en
 --
 das eine Mal als Trag?die, dieses Mal als Farce


The atom has come a long way since its inauguration; the latest Silverton
range featuring the Avoton processors boast up to an eight core model with
a 2.6 GHz clock speed per core and a 64 bit instruction set.  The L3 cache
is up to 4 MB.  My own humble N2800 atom is 64bit dual core with a 1.86 GHz
clock speed and a 1 MB cache.  It completes a build of a fairly large
static kernel image in ~ 45 mins.  Not fast, I'm sure, compared with a
powerful processor but acceptable nonetheless.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] problem using BS or DEL key

2013-12-06 Thread Richard Melville
On Fri, Dec 6, 2013 at 1:04 AM, Ken Moffat zarniwh...@ntlworld.com wrote:
   Forgot to attach it the first time, and when I did it bounced (too
  big, whoops!).  So here's the third attempt, using xz to compress it
  from 177K to  7K. sigh/

 Thanks and sorry for confusion!
 I had no Unicode initially, but added it after initial comments.
 However adding Unicode font didn't help. I'll try your suggestions
 tomorrow.

 Anyway I've already found troubling news re. my Intel Atom GPU:
 Intel D2550 Cedarview (GMA3600) has PowerVR 545 graphics core.
 And its problem is described here: https://gist.github.com/Aissen/2925633
 Now I understand why I can't get grub and kernel to get a higher
 resolution...
 At least it explains a difference in behaviour between 2 different Atom
 motherboards (old one has D510).


That's very old news and I think you're getting side-tracked.  As I've
already mentioned I have a Cedar Trail motherboard and it's now working OK
for me; the crappy graphics chip shouldn't be an issue on the console.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] du on / produces errors from /proc

2013-12-06 Thread Richard Melville

 Le 05/12/2013 18:18, Richard Melville a ?crit :
  Does anybody know what causes the following:-
 
  du: cannot access '/proc/602/task/602/fd/4': No such file or directory
  du: cannot access '/proc/602/task/602/fdinfo/4': No such file or
 directory
  du: cannot access '/proc/602/fd/4': No such file or directory
  du: cannot access '/proc/602/fdinfo/4': No such file or directory
 
 
 What were you doing? Building some package? What is the command which
 generated that output?

 Regards
 Pierre


I was just checking disk space with du -sh / as root.  That was the only
output apart from the requested disk space.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] Suggestions on Desktop Environment

2013-12-05 Thread Richard Melville

  (or at least a
   'world-within-a-world');


...a society *within* a society; where you have to get up to get down, and
where getting it on *usually* means getting them off.

The Wicker Rap -- circa 1980

I'm sorry, I just couldn't resist that.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

[blfs-support] du on / produces errors from /proc

2013-12-05 Thread Richard Melville
Does anybody know what causes the following:-

du: cannot access '/proc/602/task/602/fd/4': No such file or directory
du: cannot access '/proc/602/task/602/fdinfo/4': No such file or directory
du: cannot access '/proc/602/fd/4': No such file or directory
du: cannot access '/proc/602/fdinfo/4': No such file or directory

Can they be ignored? I don't appear to have a problem.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] Booting a BLFS system with Syslinux

2013-12-03 Thread Richard Melville

 Richard Melville wrote:
  I'm attempting to boot with syslinux from a USB flash drive with GPT and
  ext2.  I'm able to boot OK but I'm seeing some weird behaviour.  If I
 use a
  UUID instead of /dev/sdb2 I get a kernel panic and it doesn't seem to
 like
  either menu.c32 or vesamenu.c32; the boot cycle goes round in circles.
 
  Any help much appreciated, otherwise I'll stick while I'm ahead, although
  I'd rather be using a UUID.

 See

 http://www.linux-archive.org/gentoo-user/481167-mounting-root-partition-uuid-no-initrd-needed.html

-- Bruce

 Bruce, thanks for the reply but I don't think that will work for me.  I
probably wasn't clear about my setup (although I am about to change it).

I have syslinux on a GPT USB flash drive (currently /dev/sdc1) together
with the kernel image.  The root file system is on an mSATA SSD (currently
/dev/sdb2) which is traditionally partitioned. If I use root=/dev/sdb2
plus kernel parameters on the syslinux flash drive than the system boots
just fine.  If I substitute /dev/sdb2 with
root=UUID=whatever_blkid_of_/dev/sdb2_is plus kernel parameters then it
doesn't boot and I get a kernel panic.  There's also another SSD installed
but not currently used.

As I say, I'm going to change the setup by partitioning another mSATA
device but *with* a GPT; moving the OS across to it, and then installing it
in a different case with just the USB boot flash drive.  What I'm trying to
achieve is to completely remove the boot environment from the root file
system.  I think it simplifies things. It boots OK at present but with the
issues that I listed.  Maybe these will be resolved over the next few days
when I rebuild the system.

Any comments much appreciated.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

[blfs-support] Booting a BLFS system with Syslinux

2013-12-02 Thread Richard Melville
I'm attempting to boot with syslinux from a USB flash drive with GPT and
ext2.  I'm able to boot OK but I'm seeing some weird behaviour.  If I use a
UUID instead of /dev/sdb2 I get a kernel panic and it doesn't seem to like
either menu.c32 or vesamenu.c32; the boot cycle goes round in circles.

Any help much appreciated, otherwise I'll stick while I'm ahead, although
I'd rather be using a UUID.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] problem using BS or DEL key

2013-12-01 Thread Richard Melville

 Hi folks,

 I wonder if anyone could guess what's wrong with my text terminal.
 I've recently built LFS-7.4 (32bit) and most of BLFS (I'm not using X
 Windows, just text terminals only) on Atom D2550 motherboard, VGA display
 resolution.

 When I logged in if I try to edit bash command line by deleting symbol with
 BS rest of the text line became solid white blocks.
 The same happens if I edit in mcedit (editing in midnight commander). If I
 scroll text garbage symbols scroll as well).
 Same happens if I use DEL key, but not every time.
 I also use loadkeys with no-latin1 (dunno if it might cause any trouble or
 not).

 Any hint, what might be wrong?

 Regards,
 Alexey


This sounds very much like the problem that I had just under a year ago.
 Have a look in the archives for keyboard-1.15.3 errors on backspace with
UK keymap dated 15/12/2012.  Coincidently, it was on a similar Atom-based
board -- DN2800MT.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] Cryptsetup

2013-11-28 Thread Richard Melville
Em 27-11-2013 19:27, Fernando de Oliveira escreveu:
  Em 27-11-2013 18:59, Richard Melville escreveu:
  I realise that cryptsetup is not in the BLFS book but I wondered if
  anybody knows whether libdevmapper (crypsetup configure fails
  complaining about its absence) can be installed on its own or if I'm
  going to have to install the complete LVM package.  I'm not planning to
  use LVM as it seems redundant since the emergence of Btrfs, but  I need
  cryptsetup, and thus libdevmapper, for encryption.
 
  Richard
 
 
 
 
  We used to have just device-mapper:


 I have just tested:

 ./configure --prefix=/usr  \
 --enable-dmeventd  \
 --enable-cmdlib\
 --enable-pkgconfig 
 make device-mapper
 make DESTDIR=/tmp/DEST-LVM2.2.02.104 install_device-mapper

 Gives:

 $ ls */*
 usr/include:
 libdevmapper-event.h  libdevmapper.h

 usr/lib:
 libdevmapper-event.so   libdevmapper.so   pkgconfig
 libdevmapper-event.so.1.02  libdevmapper.so.1.02

 usr/sbin:
 dmeventd  dmsetup

 usr/share:
 man

 --enable-pkgconfig to have /usr/lib/pkgconfig or it will not appear

 --enable-dmeventd --enable-cmdlib to have dmeventd,
 libdevmapper-event.so and libdevmapper-event.h


Thanks for the heads-up William, and thanks Fernando for the detailed
instructions and testing.  It worked a treat and Cryptsetup built and
installed perfectly.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

[blfs-support] Cryptsetup

2013-11-27 Thread Richard Melville
I realise that cryptsetup is not in the BLFS book but I wondered if anybody
knows whether libdevmapper (crypsetup configure fails complaining about
its absence) can be installed on its own or if I'm going to have to install
the complete LVM package.  I'm not planning to use LVM as it seems
redundant since the emergence of Btrfs, but  I need cryptsetup, and thus
libdevmapper, for encryption.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] hcron

2013-11-12 Thread Richard Melville
 Date: Mon, 11 Nov 2013 12:49:02 +
  From: Richard Melville richard.melvill...@googlemail.com
  To: blfs-support@linuxfromscratch.org
  Subject: [blfs-support] hcron
 
  Has anybody had any experience of hcron?
 
  http://code.google.com/p/hcron/
 
  It looks like a good (and simpler?) alternative to Fcron.
 
  Richard


 Not used hcron. Read the first page of the link: it seems like it doesn't
 buy
 you very much: it's dead simple to git-track a similar job-spec plus a
 simple
 awk/sh/lex-yacc program to generate and distribute the required
 normal-format
 cron-specs.


 Looks like they're actually maybe trying to solve the wider-picture more-
 general issue of configuration-tracking, rather than any cron-specific
 stuff.
 It's quite easy to git-track (or similar rcs) os-config, and for multiple
 machines, from a single location. ((Folks would do well to really learn
 current
 tools, and how to combine them, rather than endlessly try swap-outs for a
 magic bullet.))


 Coming back to cron: I could recommend 'dcron' - has been main cron in
 slackware
 for ages; originated (iirc) as a 'saner', more-lightweight, version of
 vixie-cron
 (the same vixie as in bind (iirc-o(tto)mh); the ''complexity'' of
 vixie-cron
 reminds me of the ''complexity'' of bind,  vice-versa).


 hth,

 akh


Thanks for that; I had already looked at dcron and I'm now veering towards
that.  I notice that Arch have swapped dcron for cronie.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

[blfs-support] hcron

2013-11-11 Thread Richard Melville
Has anybody had any experience of hcron?

http://code.google.com/p/hcron/

It looks like a good (and simpler?) alternative to Fcron.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] rc.iptables or sysctl.conf

2013-11-07 Thread Richard Melville

 Richard Melville wrote:
  Looking through the *setting up a network firewall* page I wondered what
  the thinking was behind switching the kernel parameters via an
 rc.iptables
  file rather than the perhaps more conventional sysctl.conf file.

 It's more straight forward and it stands alone.  Of course you are free
 to implement it in any way that suits you.

-- Bruce


Thanks Bruce.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

[blfs-support] rc.iptables or sysctl.conf

2013-11-06 Thread Richard Melville
Looking through the *setting up a network firewall* page I wondered what
the thinking was behind switching the kernel parameters via an rc.iptables
file rather than the perhaps more conventional sysctl.conf file.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] noshell

2013-11-05 Thread Richard Melville

 After looking at tons of logs of people trying to log into a system
 using ssh and guessing usernames and passwords, I've given up trying to
 monitor such foolishness.  I'd only want to bother to do something like
 that in a very high security situation.  Perhaps this is a package for
 Hardened LFS, but I don't know how active that it.

-- Bruce


 I can't find one later than this: Version SVN-20110904

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] noshell

2013-11-04 Thread Richard Melville
On 4 November 2013 07:00, blfs-support-requ...@linuxfromscratch.org wrote:

 Send blfs-support mailing list submissions to
  Richard Melville wrote:
  Does anybody have any experience of noshell as a replacement for
 /bin/false
  and /dev/null?  I realise that it's quite old, but is it still useful as
 a
  more secure way of creating a user with no login shell?
 
  Fish.com, together with the titan hardening package, seems to have
 morphed
  into a a tropical fish website, but the noshell source code is still
  available from Debian.

 I'm unaware why noshell would be an advantage over /bin/false.  What
 does it do that is needed?

-- Bruce


AFAIK it provides better logging in the auth.log with an explicit *WARNING*
when a user with noshell tries to log in.

This is only heresay as I haven't used it; I was hoping for some advice.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] Process accounting

2013-11-04 Thread Richard Melville
Am Sonntag, 3. November 2013, 16:30:32 schrieb Richard Melville:
  Still on the subject of server hardening I was looking for
  acct-6.6.1.tar.gz http://ftp.gnu.org/gnu/acct/acct-6.6.1.tar.gz in the
  BLFS book and couldn't find it. Is there any reason why this is omitted;
  has process accounting been superseded by something else?
 
  Richard

 Hi Richard,

 it's probably because noone has seen the need to add it to the book. I
 think
 the editors will add that to the book if it could be somehow proven that
 there
 are some who will maintan the page in the future, too.

 An alternative to add a page to the book is to write a wiki page. That may
 be
 the first step.

 --
 Thomas



Thanks Thomas, I'll investigate the package.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

[blfs-support] noshell

2013-11-03 Thread Richard Melville
Does anybody have any experience of noshell as a replacement for /bin/false
and /dev/null?  I realise that it's quite old, but is it still useful as a
more secure way of creating a user with no login shell?

Fish.com, together with the titan hardening package, seems to have morphed
into a a tropical fish website, but the noshell source code is still
available from Debian.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

[blfs-support] Process accounting

2013-11-03 Thread Richard Melville
Still on the subject of server hardening I was looking for
acct-6.6.1.tar.gz http://ftp.gnu.org/gnu/acct/acct-6.6.1.tar.gz in the
BLFS book and couldn't find it. Is there any reason why this is omitted;
has process accounting been superseded by something else?

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

[blfs-support] gptfdisk in BLFS 7.4 and dev

2013-10-21 Thread Richard Melville
Just a minor typo here:-

...legacy PC-BIOS partitioned disk drives that *us* a Master Boot Record
(MBR).

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

[blfs-support] libgd and BLFS 7.4

2013-10-16 Thread Richard Melville
I was installing the dev version of drupal 8 when it complained that the
php extension gd was missing.  AFAIK drupal also works with ImageMagick
which I had installed, but just to be on the safe side I decided to install
gd.

In BLFS 7.4 gd is listed on the php-5.5.3 page as optional under the
graphics utilities and libraries with the rider has bugs.  The link took
me to a fossies.org page which claimed that the file was missing and had
been updated.  Also, the file wasn't (isn't?) libgd but a perl interface to
the library.  The actual libgd is listed here
https://bitbucket.org/libgd/gd-libgd/downloads

I built libgd-2.1.0 on LFS 7.2 using cmake -i, make and make install and it
built cleanly.  I rebuilt php-5.5.3 with the gd extension and everything
now works as expected.  Perhaps the book could be updated to reflect this.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] Squid Configure

2013-10-14 Thread Richard Melville

  On Sat, Oct 12, 2013 at 02:03:43AM +0100, Ken Moffat wrote:
  
Glad you were right - I've just posted that this seemed unlikely
 to
   be the error, but if it builds then you are sorted.
  
   /me resolves never to touch squid with the proverbial barge-pole.
  
 
 
 
  I agree; IMO squid is probably past its prime and maybe a better
  choice would be something more up-to-date like varnish-cache
  https://www.varnish-cache.org/releases/varnish-cache-2.1.4
 
  Of course, I realise that this is of no help to the problem in hand,
  or maybe it is :-)
 
  Richard
 
 
 My point of getting Squid, is to use SquidGuard and DansGuardian, are
 there like options for varnish-cache?


I thought that SquidGuard and DansGuardian did much the same thing.  AFAIK
you can use DansGuardian in front of Varnish, if that's what you want to
do.  You can do some content filtering with Varnish but it's mainly about
fast caching using RAM and I would imagine that DansGuardian would slow it
down; also, I believe there's been no development in it for a few years.
 There are other content filtering tools but I don't know what your use
case is.  As a reverse proxy Varnish was just a suggestion and there are
other alternatives.  You can use Nginx as a reverse caching proxy but
Varnish caches better.  If you are interested in alternatives to Squid then
your favourite search engine is your friend.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] Squid Configure

2013-10-13 Thread Richard Melville

 On Sat, Oct 12, 2013 at 02:03:43AM +0100, Ken Moffat wrote:
 
   Glad you were right - I've just posted that this seemed unlikely to
  be the error, but if it builds then you are sorted.
 
  /me resolves never to touch squid with the proverbial barge-pole.
 



I agree; IMO squid is probably past its prime and maybe a better choice
would be something more up-to-date like varnish-cache
https://www.varnish-cache.org/releases/varnish-cache-2.1.4

Of course, I realise that this is of no help to the problem in hand, or
maybe it is :-)

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] Time discrepency LFS 7.2 64bit/BLFS various

2013-10-07 Thread Richard Melville

 To be short, UTC is based on atomic clocks. Because the earth revolution
 speed varies (it always decreased till 1970), in UTC time the 0?
 meridian (solar time) tends to drift East. The leap seconds are added to
 UTC to keep the 0? meridian at Greenwich.

 In the regions where the legal time is UTC+x, for instance Central
 Europe Summer Time, CEST=UTC+2, the difference between local time and
 UTC time is obvious. In the regions where the legal time is based on GMT
 (like UK) the difference between local and UTC requires a correction of
 leap seconds.

 There is a debate to abolish the leap seconds seen as a nightmare in the
 digital world (next international conference in 2015). A majority of
 countries were in favor in 2012 but the main question was how to do it?

 Pierre


Thanks Pierre, that's a really clear explanation.  I always thought that
GMT and UTC were much the same, and that it was a French plot to wrest
control of time from us :-)

Slightly off topic: can anybody say how much of the post title has to
change before it's considered a different thread.  I ask this because I
noticed right at the beginning that I had misspelt discrepancy.  I didn't
want to change it in case it messed up the thread; OK, call me a pedant.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] Time discrepency LFS 7.2 64bit/BLFS various

2013-10-06 Thread Richard Melville
Bruce Dubbs wrote:
  I suppose we can add that it can also cause problems due to inaccurate
  time by omitting all leap seconds since 1970.

 The problem is limited to the regions having GMT as legal time (or
 BST=GMT+1).

 Pierre


That's interesting; why is that?

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] Time discrepency LFS 7.2 64bit/BLFS various

2013-10-05 Thread Richard Melville
 I don't appear to have either the posix directory or the right
  directory.
  As I was building a stripped-down system I must have followed the
  suggestion to
  omit them, and now, maybe, this has come back to bite me.  I'm
  assuming that I can install them now.

 Yep, that's your problem.  From my logs of tzdata-2013d I see:

 for tz in etcetera southamerica northamerica europe africa antarctica  \
   asia australasia backward pacificnew solar87 solar88 solar89 \
   systemv; do
 zic -L /dev/null   -d $ZONEINFO   -y sh yearistype.sh ${tz}
 zic -L /dev/null   -d $ZONEINFO/posix -y sh yearistype.sh ${tz}
 zic -L leapseconds -d $ZONEINFO/right -y sh yearistype.sh ${tz}
 done

 Note the last line in that for loop, which uses the leapseconds file to
 generate the tz data in the 'right' directory.  That's where your 26
 second discrepancy is coming from.  My advice would be to just upgrade
 to tzdata-2013g from the latest SVN instructions.

 Regards,

 Matt.


Thanks Matt, that solved the issue.  It was driving me crazy.  I've been
using the system for a while and it was only a couple of Erlang packages
that I've been trying to install lately that picked up the problem.

Thanks too to Bruce, and particularly Pierre who flagged the leap second
issue right at the start.

Maybe it's worth removing the advice from Chapter 6.9 of the LFS book
regarding the posix and right directories.  I know the advice comes
with a rider but it's clear to me that omitting those directories can cause
serious problems.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] Time discrepency LFS 7.2 64bit/BLFS various

2013-10-04 Thread Richard Melville

 Richard Melville wrote:
  +kvm02-vps.cleve  31.193.9.2 3  u17 1024 377 25.130  0.444 1.359
  -mail1.ugh.no  87.195.109.207 3 u   759 1024 377 25.171  1.858 0.419
  *sexrobot.omg.omg 103.7.151.4 2 u  1008 1024 377 20.553 -1.584 1.428
  +hemel-hempstead   140.203.204.77 2 u   60m 1024 370 25.493  0.268 0.560

 Yes, those are certainly OK.

  I don't appear to have either the posix directory or the right
  directory. As I was building a stripped-down system I must have
  followed the suggestion to omit them, and now, maybe, this has come
  back to bite me. I'm assuming  that I can install them now.

 I don't see why not, but I'm not sure it will do any good.  The only
 other things I know about that affect time are the hwclock at boot time,
 the TZ environment variable, and /etc/localtime.

 Have your tried 'TZ=GMT date' ?   What about:

 hwclock --show
 hwclock --show --utc
 hwclock --show --localtime

 Also, check the logs to see if ntpd has anything to say there.

 If all else fails, reinstall the time zone data and reset /etc/localtime
 from the new data.

-- Bruce

 Thanks Bruce, I'll work through those when I have a moment to spare.  I
was just wondering if it could be a glibc issue.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] Time discrepency LFS 7.2 64bit/BLFS various

2013-10-03 Thread Richard Melville

 Richard Melville wrote:
  Can anybody explain why this is happening; I'm getting some software
  failing on time/date issues and I think it might be due to this:-
 
  date  date -u returns:-
 
  Tue 1 Oct 17:16:01 BST 2013
  Tue 1 Oct 16:16:26 UTC 2013
 
  As you can see instead of a one hour difference I'm getting one hour and
 25
  secs.  I've tried this a number of times and it fluctuates around the one
  hour and thirty seconds mark.  I have ntp installed but it makes no
  difference.  Generally, the system runs OK.

 What do you get with `ntpq -p`

-- Bruce



ntp -p returns:-

 remote  refidst  t when poll reach delay
 offset  jitter
=
+kvm02-vps.cleve  31.193.9.2 3  u17 1024 377 25.130  0.444 1.359
-mail1.ugh.no 87.195.109.207 3 u   759 1024 377 25.171  1.858 0.419
 *sexrobot.omg.omg 103.7.151.4 2 u 1008 1024 377 20.553 -1.584 1.428
+hemel-hempstead 140.203.204.77 2 u  60m 1024 370 25.493  0.268 0.560

Looks reasonable to me Bruce -- not sure about a sexrobot though :-)


 Assuming /etc/localtime points to a location like
 /usr/share/zoneinfo/Europe/London, you may test a change to
 /usr/share/zoneinfo/posix/Europe/London. If BST=UTC+1 then it's a leap
 seconds issue.

 Pierre


I don't appear to have either the posix directory or the right
directory.
As I was building a stripped-down system I must have followed the
suggestion to
omit them, and now, maybe, this has come back to bite me.  I'm assuming that
I can install them now.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

[blfs-support] Time discrepency LFS 7.2 64bit/BLFS various

2013-10-01 Thread Richard Melville
Can anybody explain why this is happening; I'm getting some software
failing on time/date issues and I think it might be due to this:-

date  date -u returns:-

Tue 1 Oct 17:16:01 BST 2013
Tue 1 Oct 16:16:26 UTC 2013

As you can see instead of a one hour difference I'm getting one hour and 25
secs.  I've tried this a number of times and it fluctuates around the one
hour and thirty seconds mark.  I have ntp installed but it makes no
difference.  Generally, the system runs OK.

Any help much appreciated.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

[blfs-support] glibc add-on ports

2013-09-30 Thread Richard Melville
I'm running glibc-2.16.0 which, I believe, is the last version to build the
add-on ports as a separate directory.  I wondered what exactly the add-on
ports add, and why they might be needed.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] Kernel entries for video capture driver

2013-07-23 Thread Richard Melville
On Fri, Jul 19, 2013 at 07:42:29PM +0100, Richard Melville wrote:
  I'm trying to use a BT878 video capture card with my BLFS system.
  Unfortunately I chose, in a moment of parsimony, a cheap version that
 does
  not have an eeprom.  This means that although I have added the correct
  driver information to the kernel tree the card won't work.  The only way
  I've been able to test it was to run Linux Mint from a USB flash drive
 and
  create the following bttv.conf file to add to the Linux Mint
  /etc/modprobe.d directory:-
 
  alias char-major-81 bttv
  options bttv gbuffers=16 card=133,132,133,133 tuner=4,4,4,4
  options i2c-algo-bit bit_test=1
 
  This forces the BTTV driver into the correct configuration.
 
  As I'd really like to maintain a static kernel, rather than a modular
  version, does anybody know how I can add the above driver information
  directly into the kernel tree so that I can keep my static kernel and not
  have to bother with modules.
 
  Any help would be much appreciated.
 
  Richard

  grepping for bttv in Documentation/kernel-parameters.txt suggests
 you might be in luck (it said something like most important
 parameters are available as boot args for this driver).

 ?en

 Thanks Pierre, Ken and Wayne for the help.  Sorry for the tardy response
from me but I've just returned from a long weekend away.

Ken, I really should read the kernel documentation more often :-)  That was
spot-on.  I've now got the card to work by adding the above card values,
each prepended with bttv., to the kernel boot options.  The disable
test command works in a similar way -- i2c-algo-bit.bit_test=1
(unnecessary to get the card working but it does speed up the boot time
enormously). The first command -- char-major-81 -- is not needed as the
driver is always ascribed with this value.

Thanks again for all the help.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

[blfs-support] Kernel entries for video capture driver

2013-07-19 Thread Richard Melville
I'm trying to use a BT878 video capture card with my BLFS system.
Unfortunately I chose, in a moment of parsimony, a cheap version that does
not have an eeprom.  This means that although I have added the correct
driver information to the kernel tree the card won't work.  The only way
I've been able to test it was to run Linux Mint from a USB flash drive and
create the following bttv.conf file to add to the Linux Mint
/etc/modprobe.d directory:-

alias char-major-81 bttv
options bttv gbuffers=16 card=133,132,133,133 tuner=4,4,4,4
options i2c-algo-bit bit_test=1

This forces the BTTV driver into the correct configuration.

As I'd really like to maintain a static kernel, rather than a modular
version, does anybody know how I can add the above driver information
directly into the kernel tree so that I can keep my static kernel and not
have to bother with modules.

Any help would be much appreciated.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] cups-filters

2013-03-01 Thread Richard Melville

  Oh for the days when cups included everything!

 ?en
 --
 das eine Mal als Trag?die, das andere Mal als Farce


Yes, thank you Apple.  I've recently had fun with cups-filters.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] FYI Wireless networking

2012-12-31 Thread Richard Melville
 In looking to setup a wireless connection manager for my blfs system I
 came across this networking package called connman.

 I have not done anything with this package as I need to finish up some
 loose ends with my blfs system.

 Here is the url http://connman.net/

 Maybe it will be of interest to someone here.



It looks good -- I've never liked network manager.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: [blfs-support] blfs-support (no subject)

2012-12-23 Thread Richard Melville

 If you want an example of one way to build a desktop, you can take a look
 at:

 http://www.linuxfromscratch.org/~bdubbs/files/updating-lfs.html

   -- Bruce


Bruce -- that's an interesting and useful article.  For logging my own
build I still like Paco (http://paco.sourceforge.net).  I like its
simplicity and the fact that it gives me a simple uninstall option for
packages.  I use it for both LFS and BLFS.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

[blfs-support] cups-filters-1.0.20 errors out on long long

2012-09-24 Thread Richard Melville
I'm currently pressing an old LFS/BLFS build into service as a print
server, so I thought that it would be a good idea to update all
the relevant packages associated with printing.

The rebuilding went fairly smoothly until I came to cups-filters which
errored out on long long.  I investigated the Makefile and noticed that
this was set to -pedantic rather than just a warning.  I removed -pedantic
and it built OK, and the print server appears to work just fine.

Can anybody throw any light on why this would be set to -pedantic, and why
cups-filters appears to be building without problems for others?

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: Strace on recent LFS (dev) build

2010-01-03 Thread Richard Melville
Ken Moffat wrote:-

Yes, that's the one.  Not sure what was wrong in the link - ah
 I only pasted the part that was visible in the address bar

 http://strace.git.sourceforge.net/git/gitweb.cgi
 p=strace/strace;a=commit;h=f0df31e71a58c6e79ba77c1a9d84b2f38d44bec7http://strace.git.sourceforge.net/git/gitweb.cgi%0Ap=strace/strace;a=commit;h=f0df31e71a58c6e79ba77c1a9d84b2f38d44bec7

 (that should all be on one line, of course)


A URL shortener like bit.ly would obviate this problem.  There is even a
Firefox bit.ly bookmarklet that slides out a sidebar and creates a shortened
URL for the page being viewed -- very handy IMHO.

Get it here http://bit.ly/5MawJh

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: Stormy Peters and the Gnome Foundation

2009-12-06 Thread Richard Melville
Alan Lord said:-


 Are you anything to with OSSWatch by any chance?

 My business partner will be doing this
 http://www.theopensourcerer.com/2009/12/02/building-an-engaged-community/

 on Monday.

 Al

 Not officially but I know Ross (and Alan Bell).  I'll be there on Monday.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re:Terminator

2009-11-21 Thread Richard Melville
 I was thinking of building terminator, the cross-platform GPL terminal
 emulator, at some stage when I have some time.  I just wondered if anybody
 has any experience of building it on BLFS.


I'll take that as a no then.
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Terminator

2009-11-18 Thread Richard Melville
I was thinking of building terminator, the cross-platform GPL terminal
emulator, at some stage when I have some time.  I just wondered if anybody
has any experience of building it on BLFS.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: Bluetooth

2009-11-16 Thread Richard Melville


 Indeed the Cellphone scenario is what comes immediately to mind.  As
 usual these things are done by a combination of several parts, and
 although each bit might be documented, putting together a working
 solution is, as usual, not.
 The proximate cause of my interest is a new cellphone with an MP3
 player and camera but no USB connection.  I need to ship mp3s to the
 phone and jpg's out of it.
 R.

 I'm not going to be of much more help than the others, I'm afraid.  I too
got bluetooth working nicely, but I'm away from home and can't look at my
BLFS box.  I remember that it took me a while to set up, but with enough
googling you will get there.  I was able to transfer music and photos to and
from the phone, and to scan for, and find, devices.   I use openbox and I
was able to make a link to the desktop so that I could enable and disable
bluetooth from there.

If I can get the information before you find it yourself I'll post it here.

Hope that's of some help.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: PCMCIA, IBMTR_CS, ARP-HW-TYPE

2009-10-03 Thread Richard Melville
Claus Regelmann said:-



 I recently finished installing LFS 6.5 on my old Laptop (IBM-T21).
 I added SYSFSUTILS-2.1.0 and PCMCIAUTILS-0.15, put the TR card in,
 called pcmcia-socket-startup, found the tr0 interface, configured
 tr0, and tried to ping another machine in my network.
 -- no response --
 I continued inverstigating the situation with wireshark, and found
 that my T21 sends ARP requests and responces with an unknown HW type
 of 0x320.The correct HW type should be 0x06.

 Where does the wrong HW type come from??
 'cat /sys/bus/pcmcia/devices/0.0/net/tr0/type' displays 800, which
 is equal to 0x320

 Do you have all the correct drivers configured in the kernel?

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: blfs-support Digest, Vol 1852, Issue 1

2009-10-01 Thread Richard Melville
Cliff McDiarmid said:-

 When upgrading a version of LFS 6.0 with a much newer kernel(2.6.27.10)in
 order to get a new wireless driver I'm getting a kernel panic and stop.
  Would there be a problem with upgrading an LFS with glibc-2.3.4 and older
 packages, to a newer kernel.  I ask this because I have a much newer version
 of LFS and this particular kernel runs without problems.

 As I'm not at home at present, and don't have access to the LFS box or my
notes, I'm afraid that the following is only general guidance.

I installed many new packages on an LFS-6.1.1 (with errata) about a year
ago.  This, I believe, has glibc-2.3.4.  I also installed kernel 2.6.29
earlier this year (I think).  When I do an upgrade I always make a copy of
the OS before I start, and more copies as I upgrade, or add, new packages.

Anyway, to follow on from what Ken said, the udev upgrade went smoothly with
the latest version current at that time.  Also, it appeared to run OK with
kernel 2.6.29 (although I seem to remember an AES encryption fail warning on
boot).  I did, however, spend hours on the kernel configuration running
through the config file afresh from start to finish, but I really think that
this is worth doing.  Also, I always compile everything into the kernel
rather than load modules.

Sorry if this isn't much help but I'm just trying to offer some
encouragement as my heavily upgraded and expanded LFS-6.1.1 was a success
and was running very smoothly the last time I booted it.  So you should be
OK.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: Kernel panic when upgrading older LFS

2009-10-01 Thread Richard Melville
 Cliff McDiarmid said:-

 When upgrading a version of LFS 6.0 with a much newer kernel(2.6.27.10)in
 order to get a new wireless driver I'm getting a kernel panic and stop.
  Would there be a problem with upgrading an LFS with glibc-2.3.4 and older
 packages, to a newer kernel.  I ask this because I have a much newer version
 of LFS and this particular kernel runs without problems.



Sorry, I forgot the subject line on the last post.  New mail client.

As I'm not at home at present, and don't have access to the LFS box, or my
notes, I'm afraid that the following is only general guidance.

I installed many new packages on an LFS-6.1.1 (with errata) about a year
ago.  This, I believe, has glibc-2.3.4.  I also installed kernel 2.6.29
earlier this year (I think).  When I do an upgrade I always make a copy of
the OS before I start, and more copies as I upgrade, or add, new packages.

Anyway, to follow on from what Ken said, the udev upgrade went smoothly with
the latest version current at that time.  Also, it appeared to run OK with
kernel 2.6.29 (although I seem to remember an AES encryption fail warning on
boot).  I did, however, spend hours on the kernel configuration running
through the config file afresh from start to finish, but I really think that
this is worth doing.  Also, I always compile everything into the kernel
rather than load modules.

Sorry if this isn't much help but I'm just trying to offer some
encouragement as my heavily upgraded and expanded LFS-6.1.1 was a success
and was running very smoothly the last time I booted it.  So you should be
OK.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: ping issues

2009-09-14 Thread Richard Melville
Bruce Dubbs wrote:-

 And remove the nameserver 192.168.1.1 line unless that system has a properly 
 installed nameserver installed.

Are you sure about that Bruce?  I'm away from home at present and so I can't 
check any of my LFS boxes, but I'm fairly certain that my only nameserver 
line in resolv.conf is 192.168,0,1, which is my router. The router holds a list 
of my ISP's nameservers.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: BLFS and the AMD Athlon 64 X2

2008-11-06 Thread Richard Melville
Thanks for the advice Dennis and Randy -- I thought it worth asking
before I shell out my hard-earned cash.

Regarding the motherboard, I was planning on using the Jetway JNC81-LF
with the Radeon HD3200 graphics chip.  I'm just adapting a large copper
heatsink in the hope that I can get the whole thing running fanless, but
that remains to be seen.

Any comments welcome.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


BLFS and the AMD Athlon 64 X2

2008-11-05 Thread Richard Melville
Hi

I'm really hoping that somebody can help me here.  I'm thinking of
building a new box with the above 45W processor.  All my LFS/BLFS builds
thus far have been built using 32 bit x86 processors.  Am I going to run
into problems trying to run existing (non-optimized) builds on this
hardware?  This is an area that I know very little about.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: missing libgtkembedmoz.so

2008-11-04 Thread Richard Melville

 --enable-jemalloc \
 
  does this provide any benefits on non-windows platforms ?
   
For some reason my firefox-3.0.3 build failed unless I used
--disable-jemalloc
  I'm using --enable-system-sqlite because I loathe multiple static
 builds of libraries, but I did have to create a .pc for libsqlite -
 I've now found a fedora patch to look for a different sqlite header
 which might serve the same purpose, but that .pc is easy enough to
 create.


   
I don't have a libsqlite.pc file either but I do have a sqlite3.pc file
for my system version 3.6.1.  This seemed to be sufficient for
firefox-3.0.3 to build against.

Richard


-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: webkit with gnome-2.24

2008-10-17 Thread Richard Melville
Just some further info -- I can confirm that xulrunner builds cleanly
from firefox 3 source.  I've also gone on to build the latest versions
of VLC and Gnash against it and both the mozilla plugins appear to work
well.

I'm not sure about the issue raised by Simon in relation to SQLite as
i've only built against my system version.

Hope this helps.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: GCC - 4.2.1 fails to build on LFS 6.1

2008-08-18 Thread Richard Melville

  It may be a bug, but one in the LFS-6.1 version of gcc (3.4.3), 
  which is very old.  You may have to do incremental upgrades to get 
  up to a version of gcc that is able to compile 4.2.1.
   
Just a point of information -- I've been using gcc-3.4.3 recently to compile a 
whole range of current packages without error; at least no error attributable 
to the compiler.  So it may be old, but it's still serviceable.

Richard

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


xorg-7.1 and xorg-server-1.2.0/Mesa-6.5.2

2008-06-02 Thread Richard Melville
Hi

Does anybody know whether the above are compatible?  I've inadvertently
installed Mesa-6.5.2 instead of 6.5 and xorg-server-1.1.1 does not like
some header files.  It looks like _pp_ has been inserted into
slang_version_syn.h.  I haven't checked whether or not there is any
intrinsic difference between the headers.

Help much appreciated.

Richard Melville




-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


JDK and ld.so.conf

2008-01-24 Thread Richard Melville
Hi

On checking /etc/ld.so.conf I noticed that /opt/jdk/lib was not
present.  I've now added it, but I'm not sure whether I needed to or not.

I'd be very grateful for some advice.

Thanks.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: Error message from find 2.6.23-rc8(-mm2) kernels

2007-10-09 Thread Richard Melville


 find: WARNING: Hard link count is wrong for /proc/net: this may be a bug in 
 your filesystem driver.  Automatically turning on find's -noleaf option.  
 Earlier results may have failed to include directories that should have been 
 searched. 

 There have been instances in the not too distant past when that same message 
 has been indicative of an error; in this case, however, I had just installed 
 kernel 2.6.23-rc8-mm2 on that same machine.  In that context, the message is 
 benign.  This description and explanation covers the how and why of it:
 http://lists-archives.org/linux-kernel/13414934-proc-net-bad-hard-links-coun 
 t.html 

 It scared me a bit when I first saw it; thought I would post a quick heads 
 up and save someone time spent looking for a problem that's not there. 

 Happy hacking ... 

  - Larry 



   
I had the same problem on lfs-6.1.1.  I believe that this was also a bug
in the 2.6.11 to 2.6.13 kernels.  It disappeared when I updated the kernel.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: problem with my host system

2007-10-05 Thread Richard Melville


 --

 Message: 1
 Date: Thu, 04 Oct 2007 10:22:09 +0100
 From: Richard Melville [EMAIL PROTECTED]
 Subject: Re: problem with my host system
 To: blfs-support@linuxfromscratch.org
 Message-ID: [EMAIL PROTECTED]
 Content-Type: text/plain; charset=UTF-8

 Just to add further comment regarding LVM; I've found it incredibly
 useful on laptops with low hard disk capacity.  It just makes it so easy
 to move the limited storage space around as it's needed.  Maybe I'm
 tempting fate, but I haven't had any problems with it yet.

 Richard



 --
   
My apologies - should have been lfs-support.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: problem with my host system

2007-10-04 Thread Richard Melville
Just to add further comment regarding LVM; I've found it incredibly
useful on laptops with low hard disk capacity.  It just makes it so easy
to move the limited storage space around as it's needed.  Maybe I'm
tempting fate, but I haven't had any problems with it yet.

Richard

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: GnuTLS-2xx

2007-10-03 Thread Richard Melville
Hi Dan

Thanks for all your help, however, I'm not entirely convinced by your
diagnosis.  The gnutls package contains its own version of opencdk and this was 
the version that I used initially.  I installed opencdk-0.6.4 only after
*make* failed on the initial build using the included version of
opencdk.  As you know the second build failed as well.

I'm going to stick with gnutls-2.1.1, but I'd be interested to find out
why the other version failed.  I'm sure that you would too as the
unstable book will eventually become the stable book.

Thanks again for your help.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: GnuTLS-2xx

2007-10-02 Thread Richard Melville
Hi Dan

I'm using opencdk-0.6.4.  I think that's the latest version.  As I said,
gnutls-2.1.1 compiled perfectly.  BTW I took your advice and
installed libtasn1.

I'm also using gnupg-1.4.7, as in the unstable book.  While we're on the
subject do you have any views on gnupg-1.x.x versus gnupg-2.x.x.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: directfb

2007-10-02 Thread Richard Melville
Hi

My apologies to everbody concerned - I should have read the posts more
thoroughly.  Lack of time is my only excuse.

Unfortunately, I never got round to using directfb as a graphical desktop
environment.  I am using it only as a graphical web browsing environment
with the links browser.

The version I am using, directfb-0.9.25.1, is probably well out of date
by now.  I seem to have dispensed with the patch, but I am certain that it
would no longer be relevant anyway to a more current version of directfb.

Apologies again.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: GnuTLS-2xx

2007-10-01 Thread Richard Melville
Hi Dan

Here's the output from Make as it fails:-
gnutls_openpgp.c: In function `openpgp_pk_to_gnutls_cert':
gnutls_openpgp.c:294: warning: passing arg 4 of `cdk_pk_get_mpi' makes integer 
from pointer without a cast
gnutls_openpgp.c:294: error: too few arguments to function `cdk_pk_get_mpi'
gnutls_openpgp.c: In function `_gnutls_openpgp_raw_privkey_to_gkey':
gnutls_openpgp.c:337: warning: assignment makes pointer from integer without a 
cast
gnutls_openpgp.c:363: warning: passing arg 4 of `cdk_pk_get_mpi' makes integer 
from pointer without a cast
gnutls_openpgp.c:363: error: too few arguments to function `cdk_pk_get_mpi'
gnutls_openpgp.c:376: warning: passing arg 4 of `cdk_sk_get_mpi' makes integer 
from pointer without a cast
gnutls_openpgp.c:376: error: too few arguments to function `cdk_sk_get_mpi'
gnutls_openpgp.c: In function `gnutls_certificate_set_openpgp_key_mem':
gnutls_openpgp.c:583: error: too few arguments to function 
`cdk_stream_tmp_from_mem'
gnutls_openpgp.c:583: error: incompatible types in assignment
gnutls_openpgp.c:678: error: too few arguments to function 
`cdk_stream_tmp_from_mem'
gnutls_openpgp.c:678: error: incompatible types in assignment
gnutls_openpgp.c: In function `gnutls_certificate_set_openpgp_keyring_mem':
gnutls_openpgp.c:944: error: too few arguments to function 
`cdk_stream_tmp_from_mem'
gnutls_openpgp.c:944: error: incompatible types in assignment
make[3]: *** [gnutls_openpgp.lo] Error 1
make[3]: Leaving directory `/sources/gnutls-1.6.3/libextra'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/sources/gnutls-1.6.3/libextra'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sources/gnutls-1.6.3'
make: *** [all] Error 2
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

GnuTLS-2xx

2007-09-28 Thread Richard Melville
Hi

I've a general query.  Is there any reason why GnuTLS-2xx isn't being
used in the BLFS unstable book?  I ask this mainly because, for some
reason, I had a problem compiling 1.6.3.  The problem seemed to be
related to GnuPG (working fine) and OpenCDK (also apparently OK).  When
I tried compiling GnuTLS 2.1.1 instead it compiled without a hitch.  I'm
not sure why that was.

Thanks in advance.

Richard




-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: libgpg-error-1.5 make failure

2007-09-11 Thread Richard Melville


 Message: 8
 Date: Thu, 06 Sep 2007 09:04:49 -0500
 From: Randy McMurchy [EMAIL PROTECTED]
 Subject: Re: libgpg-error-1.5 make failure
 To: BLFS Support List blfs-support@linuxfromscratch.org
 Message-ID: [EMAIL PROTECTED]
 Content-Type: text/plain; charset=ISO-8859-1

 Richard Melville wrote these words on 09/06/07 08:27 CST:

   
 Does anybody know why I am getting these errors when running make.
 Some help would be much appreciated.
 

 Are you passing any optimization settings? Are you using any
 odd configuration parameters? I cannot see why you would be
 seeing this error. Here are the relevant lines from my make log,
 not that it is of any help, but anyway:

 make[2]: Entering directory `/home/rml/build/libgpg-error-1.5/src'
 gawk -f ./mkstrtable.awk -v textidx=3 \
 ./err-sources.h.in err-sources.h
 gawk -f ./mkstrtable.awk -v textidx=3 \
 ./err-codes.h.in err-codes.h
 gawk -f ./mkerrnos.awk ./errnos.in code-to-errno.h
 gawk -f ./mkerrcodes1.awk ./errnos.in _mkerrcodes.h
 gcc -E _mkerrcodes.h | grep GPG_ERR_ | gawk -f ./mkerrcodes.awk mkerrcodes.h
 rm _mkerrcodes.h
 gcc -I. -I. -o mkerrcodes ./mkerrcodes.c
 ./mkerrcodes | gawk -f ./mkerrcodes2.awk code-from-errno.h
 gawk -f ./mkstrtable.awk -v textidx=2 -v nogettext=1 \
 ./err-sources.h.in err-sources-sym.h
 gawk -f ./mkstrtable.awk -v textidx=2 -v nogettext=1 \
 ./err-codes.h.in err-codes-sym.h
 gawk -f ./mkstrtable.awk -v textidx=2 -v nogettext=1 \
 -v prefix=GPG_ERR_ -v namespace=errnos_ \
 ./errnos.in errnos-sym.h
 gawk -f ./mkheader.awk \
 ./err-sources.h.in \
 ./err-codes.h.in \
 ./errnos.in \
 ./gpg-error.h.in  gpg-error.h
 make  all-am
 make[3]: Entering directory `/home/rml/build/libgpg-error-1.5/src'

   
Hi Randy

Thanks for your help.  This was driving me crazy, but it seemed like a
gawk problem.  On checking gawk I found it to be version 3.1.4. 
Updating to gawk-3.1.5 solved the problem.

Thanks again.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

libgpg-error-1.5 make failure

2007-09-06 Thread Richard Melville
Hi

Does anybody know why I am getting these errors when running make.
Some help would be much appreciated.
make  all-recursive
make[1]: Entering directory `/sources/libgpg-error-1.5'
Making all in m4
make[2]: Entering directory `/sources/libgpg-error-1.5/m4'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/sources/libgpg-error-1.5/m4'
Making all in src
make[2]: Entering directory `/sources/libgpg-error-1.5/src'
gawk -f ./mkstrtable.awk -v textidx=3 \
./err-sources.h.in err-sources.h
gawk -f ./mkstrtable.awk -v textidx=3 \
./err-codes.h.in err-codes.h
gawk -f ./mkerrnos.awk ./errnos.in code-to-errno.h
gawk -f ./mkerrcodes1.awk ./errnos.in _mkerrcodes.h
gcc -E _mkerrcodes.h | grep GPG_ERR_ | gawk -f ./mkerrcodes.awk mkerrcodes.h
rm _mkerrcodes.h
gcc -I. -I. -o mkerrcodes ./mkerrcodes.c
In file included from ./mkerrcodes.c:26:
./mkerrcodes.h:17: error: parse error before GPG_ERR_EBADE
./mkerrcodes.h:18: error: parse error before GPG_ERR_EBADF
./mkerrcodes.h:27: error: parse error before GPG_ERR_ECHILD
./mkerrcodes.h:28: error: parse error before GPG_ERR_ECHRNG
./mkerrcodes.h:29: error: parse error before GPG_ERR_ECOMM
./mkerrcodes.h:33: error: parse error before GPG_ERR_EDEADLK
./mkerrcodes.h:38: error: parse error before GPG_ERR_EDQUOT
./mkerrcodes.h:44: error: parse error before GPG_ERR_EIDRM
./mkerrcodes.h:47: error: parse error before GPG_ERR_EINTR
./mkerrcodes.h:49: error: parse error before GPG_ERR_EIO
./mkerrcodes.h:51: error: parse error before GPG_ERR_EISDIR
./mkerrcodes.h:53: error: parse error before GPG_ERR_EL2HLT
./mkerrcodes.h:65: error: parse error before GPG_ERR_EMFILE
./mkerrcodes.h:66: error: parse error before GPG_ERR_EMLINK
./mkerrcodes.h:70: error: parse error before GPG_ERR_ENAVAIL
./mkerrcodes.h:74: error: parse error before GPG_ERR_ENFILE
./mkerrcodes.h:75: error: parse error before GPG_ERR_ENOANO
./mkerrcodes.h:77: error: parse error before GPG_ERR_ENOCSI
./mkerrcodes.h:80: error: parse error before GPG_ERR_ENOENT
./mkerrcodes.h:82: error: parse error before GPG_ERR_ENOLCK
./mkerrcodes.h:85: error: parse error before GPG_ERR_ENOMEM
./mkerrcodes.h:86: error: parse error before GPG_ERR_ENOMSG
./mkerrcodes.h:87: error: parse error before GPG_ERR_ENONET
./mkerrcodes.h:88: error: parse error before GPG_ERR_ENOPKG
./mkerrcodes.h:96: error: parse error before GPG_ERR_ENOTDIR
./mkerrcodes.h:98: error: parse error before GPG_ERR_ENOTNAM
./mkerrcodes.h:103: error: parse error before GPG_ERR_ENXIO
./mkerrcodes.h:106: error: parse error before GPG_ERR_EPERM
./mkerrcodes.h:116: error: parse error before GPG_ERR_ERESTART
./mkerrcodes.h:117: error: parse error before GPG_ERR_EROFS
./mkerrcodes.h:121: error: parse error before GPG_ERR_ESRCH
./mkerrcodes.h:128: error: parse error before GPG_ERR_ETXTBSY
./mkerrcodes.h:130: error: parse error before GPG_ERR_EUNATCH
./mkerrcodes.h:131: error: parse error before GPG_ERR_EUSERS
make[2]: *** [mkerrcodes] Error 1
make[2]: Leaving directory `/sources/libgpg-error-1.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sources/libgpg-error-1.5'
make: *** [all] Error 2
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Xorg 7.1 files

2007-09-03 Thread Richard Melville
I'm building a simple groupware server using LFS and BLFS.  The server
itself doesn't need to run an X server, although the clients will, but I
need X to compile certain packages.  I've installed all the Xorg
headers, utilities, and libraries.  Will this be enough to compile
packages such as TK, XPDF, etc.

A few pointers would be greatly appreciated.

Richard Melville


-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: No sound from speakers

2006-09-12 Thread Richard Melville
Alessandro Alocci wrote:
 
 The command should be launched inside the
 /etc/udev/rules.d/15-alsa.rules script as
 described in the Alsa-utilities section
 of the BLFS book.
 Just control if you have installed the script properly.

Thanks for the advice.  I'm following the BLFS 6.1 book (the current
stable version) where there is no mention of the 15-alsa.rules script.

I have, however, found this script mentioned in the svn-20060910 version
of the BLFS book, where it appears to have taken the place of the
alsa.dev script that the BLFS 6.1 book says to install.  This is very
confusing.  Am I right or am I missing something?  Needless to say I do
not currently have the 15-alsa.rules script installed, but I do have the
alsa.dev script installed.

I would really welcome some clarification.

Thanks again.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: No sound from speakers

2006-09-11 Thread Richard Melville
Thanks to everybody for the help. Just as I thought - it was a stupid error.
The m/board I am using used to be in a case with front mounted audio jacks. To
enable these jacks required the removal of two jumpers from the audio
header on the m/board.  I am now using the same m/board in a case with
rear mounted jacks, so I should have replaced the jumpers in order to
re-route the sound to the rear of the case.  I forgot - so no sound.

I still have one small problem however.  The little alsa.dev script is
not being read at boot time, which means I have to manually run alsactl
restore every time I reboot.  Does anybody have any ideas.  I just
cannot see why this is happening.

Thanks in advance.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page