Re: [gentoo-user] DHCP - specific inet no - how to

2012-11-08 Thread Andrea Conti
Hello,

 Normally, a device tries to get the previous inet number, but sometime this
 changes.

DHCP clients can neither request nor suggest a specific IP address, so
they don't try to get anything. It's just the DHCP server giving out
the previous IP to the same client, either by chance or because the
existing lease hasn't expired yet.

 But I cannot configure the DHCP server myself since this is provided by
 my internet provider.

Then you're basically out of luck. Since you have few devices and those
devices are under your control, just forget about DHCP and configure
them statically.

andrea



Re: [gentoo-user] DHCP - specific inet no - how to

2012-11-08 Thread Helmut Jarausch

On 11/08/2012 09:18:35 AM, Andrea Conti wrote:

Hello,

 Normally, a device tries to get the previous inet number, but  
sometime this

 changes.

DHCP clients can neither request nor suggest a specific IP address, so
they don't try to get anything. It's just the DHCP server giving out
the previous IP to the same client, either by chance or because the
existing lease hasn't expired yet.

 But I cannot configure the DHCP server myself since this is  
provided by

 my internet provider.

Then you're basically out of luck. Since you have few devices and  
those

devices are under your control, just forget about DHCP and configure
them statically.


Thanks!
But I get the nameserver of DHCP, as well. Can this be fetched from  
DHCP since this may change?


From man dhclient
 A DHCP client may request an address from this pool,  and  then
 use  it  on  a temporary basis for communication on network
I've just not found out howto.

Helmut.



Re: [gentoo-user] DHCP - specific inet no - how to

2012-11-08 Thread Neil Bothwick
On Thu, 08 Nov 2012 09:18:35 +0100, Andrea Conti wrote:

  Normally, a device tries to get the previous inet number, but
  sometime this changes.  
 
 DHCP clients can neither request nor suggest a specific IP address, so
 they don't try to get anything. It's just the DHCP server giving out
 the previous IP to the same client, either by chance or because the
 existing lease hasn't expired yet.

dhcpcd has a --resquest option to do just this. It only works if the
address is available and if the server is returning a different address
now it may be that your preferred address is in use.

Have you considered running a local DHCP server, like dnsmasq?


-- 
Neil Bothwick

WinErr 01C: Uncertainty error - Uncertainty may be inadequate.


signature.asc
Description: PGP signature


[gentoo-user] More file system frustration

2012-11-08 Thread William Kenworthy
If I try and do:

moriah ~ # mount -t ceph 192.168.44.68:6789:/ /mnt/ceph -o users
mount error 22 = Invalid argument

It turns out the driver doesnt recognise the user or users mount option
and gentoo wont let a user mount or access a root mount, or even let a
user mount.  Tried adding the user to the disk group without any effect.

Something in gentoo's user access control is causing this problem I
think, so how can I get around it?

BillK






Re: [gentoo-user] More file system frustration

2012-11-08 Thread Bill Kenworthy
On Thu, 2012-11-08 at 17:59 +0800, William Kenworthy wrote:
 If I try and do:
 
 moriah ~ # mount -t ceph 192.168.44.68:6789:/ /mnt/ceph -o users
 mount error 22 = Invalid argument
 
 It turns out the driver doesnt recognise the user or users mount option
 and gentoo wont let a user mount or access a root mount, or even let a
 user mount.  Tried adding the user to the disk group without any effect.
 
 Something in gentoo's user access control is causing this problem I
 think, so how can I get around it?
 
 BillK
 
 

I was able to chown the mount so a user can access it - not as flexible
as the normal way but its user accessible.

BillK






Re: [gentoo-user] More file system frustration

2012-11-08 Thread Kerin Millar

William Kenworthy wrote:

If I try and do:

moriah ~ # mount -t ceph 192.168.44.68:6789:/ /mnt/ceph -o users
mount error 22 = Invalid argument



Specifying users in that context doesn't make sense. Try creating an 
entry in /etc/fstab. For example:


192.168.44.68:6789://mnt/cephcephusers0 0

Then see if you can mount by its mountpoint:

$ mount /mnt/ceph


It turns out the driver doesnt recognise the user or users mount option
and gentoo wont let a user mount or access a root mount, or even let a
user mount.  Tried adding the user to the disk group without any effect.



It's not a driver option. /bin/mount is suid root and refers to fstab to 
decide whether a non-root user should be allowed to mount.


Generally speaking, regular user accounts should not be added to the 
disk group. That provides raw read/write access to block device nodes 
such as dev/sda, which is a potential risk both in terms of safety and 
security.



Something in gentoo's user access control is causing this problem I
think, so how can I get around it?

BillK








[gentoo-user] Hard drive change

2012-11-08 Thread jdm
I am about to change my hard drive on my machine from a 500GB to 2tb.

To transfer I  intend to dd the partitions across and then resize using lvm as 
home swap var are located on lvm.

Is this the right approach or would you recommend another method?

John D Maunder.









Re: [gentoo-user] DHCP - specific inet no - how to

2012-11-08 Thread Helmut Jarausch

On 11/08/2012 09:45:34 AM, Neil Bothwick wrote:

On Thu, 08 Nov 2012 09:18:35 +0100, Andrea Conti wrote:

  Normally, a device tries to get the previous inet number, but
  sometime this changes.

 DHCP clients can neither request nor suggest a specific IP address,  
so
 they don't try to get anything. It's just the DHCP server giving  
out

 the previous IP to the same client, either by chance or because the
 existing lease hasn't expired yet.

dhcpcd has a --resquest option to do just this. It only works if the
address is available and if the server is returning a different  
address

now it may be that your preferred address is in use.

Have you considered running a local DHCP server, like dnsmasq?


Thanks Neil!
I have router (provided by my internet provider) which can be accessed  
by WLAN.
Since I cannot modify/configure this router how can I make use of  
dnsmasq ?


Helmut.



[gentoo-user] uefi gpt grub2

2012-11-08 Thread jdm
Over the last few days I have tried to set up using uefi gpt and grub2. After 
many hours of frustration I have gone back to grub legacy and mbr.

I followed the Gentoo wiki  and Arch wiki and several other sources of which I 
failed miserably. Is this technology fairly unreliable? I booted from a uefi 
enabled usb stick but still fell over. Is this ready for mainstream or 
 still alpha like?

Also does ufibootmgr change motherboard firmware? Somehow this feels 
wrong if the case.

John D Maunder 







Re: [gentoo-user] DHCP - specific inet no - how to

2012-11-08 Thread Neil Bothwick
On Thu, 08 Nov 2012 12:13:56 +0100, Helmut Jarausch wrote:

  Have you considered running a local DHCP server, like dnsmasq?  
 
 I have router (provided by my internet provider) which can be accessed  
 by WLAN.
 Since I cannot modify/configure this router how can I make use of  
 dnsmasq ?

Good question! Can you not even disable the DHCP server in the router?


-- 
Neil Bothwick

Inland Revenue: We've got what it takes to take what you've got!


signature.asc
Description: PGP signature


Re: [gentoo-user] Hard drive change

2012-11-08 Thread Neil Bothwick
On Thu, 08 Nov 2012 11:08:18 +, j...@jdm.myzen.co.uk wrote:

 I am about to change my hard drive on my machine from a 500GB to 2tb.
 
 To transfer I  intend to dd the partitions across and then resize using
 lvm as home swap var are located on lvm.

Can you connect both drives ate the same time? If so you can create a PV
on the new drive, add it to your VG and then use lvmove to move the date
before removing the old drive from the VG. That way you can continue to
use the computer while the transfer takes place.


-- 
Neil Bothwick

How do I set my laser printer to stun?


signature.asc
Description: PGP signature


Re: [gentoo-user] Hard drive change

2012-11-08 Thread jdm
Neil Bothwick n...@digimed.co.uk wrote :

 On Thu, 08 Nov 2012 11:08:18 +, j...@jdm.myzen.co.uk
 wrote:
 
  I am about to change my hard drive on my machine from a 500GB to 2tb.
  
  To transfer I  intend to dd the partitions across and then resize using
  lvm as home swap var are located on lvm.
 
 Can you connect both drives ate the same time? If so you can create a PV
 on the new drive, add it to your VG and then use lvmove to move the date
 before removing the old drive from the VG. That way you can continue to
 use the computer while the transfer takes place.
 
 
 -- 
 Neil Bothwick
 
 How do I set my laser printer to stun?

Yes I can connect to both drives at the same time. My root partition is not on 
lvm. This sounds like an excellent idea. Thanks.

Fairly new to lvm but it seems very solid and capable








Re: [gentoo-user] More file system frustration

2012-11-08 Thread William Kenworthy
On Thu, 2012-11-08 at 10:58 +, Kerin Millar wrote:
 William Kenworthy wrote:
  If I try and do:
 
  moriah ~ # mount -t ceph 192.168.44.68:6789:/ /mnt/ceph -o users
  mount error 22 = Invalid argument
 
 
 Specifying users in that context doesn't make sense. Try creating an 
 entry in /etc/fstab. For example:
 
 192.168.44.68:6789://mnt/cephcephusers0 0
 
 Then see if you can mount by its mountpoint:
 
 $ mount /mnt/ceph
 
  It turns out the driver doesnt recognise the user or users mount option
  and gentoo wont let a user mount or access a root mount, or even let a
  user mount.  Tried adding the user to the disk group without any effect.
 
 
 It's not a driver option. /bin/mount is suid root and refers to fstab to 
 decide whether a non-root user should be allowed to mount.
 
 Generally speaking, regular user accounts should not be added to the 
 disk group. That provides raw read/write access to block device nodes 
 such as dev/sda, which is a potential risk both in terms of safety and 
 security.
 
  Something in gentoo's user access control is causing this problem I
  think, so how can I get around it?
 
  BillK
 
 

Thanks Kerin, but that has the same problem - but it did allow me to
chown the mount point so its usable/testable by users.

BillK





Re: [gentoo-user] uefi gpt grub2

2012-11-08 Thread Randolph Maaßen
2012/11/8 j...@jdm.myzen.co.uk

 Over the last few days I have tried to set up using uefi gpt and grub2.
 After many hours of frustration I have gone back to grub legacy and mbr.

 I followed the Gentoo wiki  and Arch wiki and several other sources of
 which I failed miserably. Is this technology fairly unreliable? I booted
 from a uefi enabled usb stick but still fell over. Is this ready for
 mainstream or
  still alpha like?

 Also does ufibootmgr change motherboard firmware? Somehow this feels
 wrong if the case.

 John D Maunder






Hi,

I tried installing UEFI GPT too a few months ago, but I had a semi success.
After some days of fiddeling around with parameters and variables I could
boot the system, but I can't see the kernel output or open-rc. But the X
loads and the system works after that like normal, but without the textual
ttys. terminal emulations like xterm or so work. So I would install it
again, but it isn't as easy as thought.


-- 
Mit freundlichen Grüßen / Best regards

Randolph Maaßen


Re: [gentoo-user] Hard drive change

2012-11-08 Thread Volker Armin Hemmann
2tb drive  probably different sector size. cp -auv recommended.
Am 08.11.2012 12:12 schrieb j...@jdm.myzen.co.uk:

 I am about to change my hard drive on my machine from a 500GB to 2tb.

 To transfer I  intend to dd the partitions across and then resize using
 lvm as home swap var are located on lvm.

 Is this the right approach or would you recommend another method?

 John D Maunder.










Re: [gentoo-user] DHCP - specific inet no - how to

2012-11-08 Thread J. Roeleveld
On Thursday, November 08, 2012 12:13:56 PM Helmut Jarausch wrote:
 On 11/08/2012 09:45:34 AM, Neil Bothwick wrote:
  On Thu, 08 Nov 2012 09:18:35 +0100, Andrea Conti wrote:
Normally, a device tries to get the previous inet number, but
sometime this changes.
   
   DHCP clients can neither request nor suggest a specific IP address,
  
  so
  
   they don't try to get anything. It's just the DHCP server giving
  
  out
  
   the previous IP to the same client, either by chance or because the
   existing lease hasn't expired yet.
  
  dhcpcd has a --resquest option to do just this. It only works if the
  address is available and if the server is returning a different
  address
  now it may be that your preferred address is in use.
  
  Have you considered running a local DHCP server, like dnsmasq?
 
 Thanks Neil!
 I have router (provided by my internet provider) which can be accessed
 by WLAN.
 Since I cannot modify/configure this router how can I make use of
 dnsmasq ?
 
 Helmut.

Are you not able to use your own router?

Being able to configure the DHCP and NAT-configuration of the router is often 
required to get certain software to work. There are multi-player games that 
need ports forwarded to be able to play with other people over the internet. 
(Just to name a common scenario)

--
Joost



Re: [gentoo-user] Hard drive change

2012-11-08 Thread Srdjan Rakic
I used rsync for that.

On Thu, Nov 8, 2012 at 8:03 AM, Volker Armin Hemmann 
volkerar...@googlemail.com wrote:

 2tb drive  probably different sector size. cp -auv recommended.
 Am 08.11.2012 12:12 schrieb j...@jdm.myzen.co.uk:

 I am about to change my hard drive on my machine from a 500GB to 2tb.

 To transfer I  intend to dd the partitions across and then resize using
 lvm as home swap var are located on lvm.

 Is this the right approach or would you recommend another method?

 John D Maunder.










Re: [gentoo-user] Re: Revdep-rebuild: ams won't start due to shared library libclalsadrv.so.1

2012-11-08 Thread Frank Steinmetzger
On Wed, Nov 07, 2012 at 01:08:37PM +0100, Frank Steinmetzger wrote:
 On Tue, Nov 06, 2012 at 05:56:12PM -0800, walt wrote:
 
   Hello
   […]
   $ ams
   ams: error while loading shared libraries: libclalsadrv.so.1: cannot open
   shared object file: No such file or directory
  […]
 […]


Summarising:

$ lddtree /usr/bin/ams
ams = /usr/bin/ams (interpreter = /lib64/ld-linux-x86-64.so.2)
[...]
libclalsadrv.so.1 = not found
[...]


$ qlist libclalsadrv
/usr/share/doc/libclalsadrv-1.2.2/AUTHORS.bz2
/usr/include/clalsadrv.h
/usr/lib64/libclalsadrv.so
/usr/lib64/libclalsadrv.so.1.2.2


I’d like to file a bug report.  But which one is the culprit in your opinion;
libclalsadrv for not providing a .so.1 link, or ams for stubbornly referencing
it in its executable?  Of course the ams build log simply says for the linking:

x86_64-pc-linux-gnu-g++  ...  -lclalsadrv  ...

I’m just asking because I have a habit of making a fool of myself by reporting
stuff that turned out to be my own mistake or missing the point by a mile. :-/
-- 
Gruß | Greetings | Qapla'
Please do not share anything from, with or about me with any Facebook service.

I used to be vain, but now I know that I am beautiful.


signature.asc
Description: Digital signature


Re: [gentoo-user] Hard drive change

2012-11-08 Thread Neil Bothwick
On Thu, 8 Nov 2012 14:03:08 +0100, Volker Armin Hemmann wrote:

 2tb drive  probably different sector size. cp -auv recommended.

Very good point. Use cp, rsync, tar or lvm tools, in fact anything but dd.


-- 
Neil Bothwick

Like an atheist in a grave: all dressed up and no place to go.


signature.asc
Description: PGP signature


Re: [gentoo-user] Hard drive change

2012-11-08 Thread mindrunner
i always use ddrescue for migrating to another hdd.
it is much more comfortable than dd and does not depent on file
systems, etc.
I always prefer copying on block device level.


On 11/08/2012 03:12 PM, Srdjan Rakic wrote:
 I used rsync for that.

 On Thu, Nov 8, 2012 at 8:03 AM, Volker Armin Hemmann
 volkerar...@googlemail.com mailto:volkerar...@googlemail.com
 wrote:

 2tb drive  probably different sector size. cp -auv recommended.

 Am 08.11.2012 12:12 schrieb j...@jdm.myzen.co.uk
 mailto:j...@jdm.myzen.co.uk:

 I am about to change my hard drive on my machine from a 500GB to
 2tb.

 To transfer I  intend to dd the partitions across and then resize
 using lvm as home swap var are located on lvm.

 Is this the right approach or would you recommend another method?

 John D Maunder.











Re: [gentoo-user] Hard drive change

2012-11-08 Thread Neil Bothwick
On Thu, 08 Nov 2012 16:23:08 +0100, mindrunner wrote:

 i always use ddrescue for migrating to another hdd.
 it is much more comfortable than dd and does not depent on file
 systems, etc.
 I always prefer copying on block device level.

Even when the two devices have different block sizes?

At best you'd get crap performance from misaligned filesystem boundaries.


-- 
Neil Bothwick

Top Oxymorons Number 10: Computer security


signature.asc
Description: PGP signature


Re: [gentoo-user] Hard drive change

2012-11-08 Thread Paul Hartman
On Thu, Nov 8, 2012 at 7:03 AM, Volker Armin Hemmann
volkerar...@googlemail.com wrote:
 Am 08.11.2012 12:12 schrieb j...@jdm.myzen.co.uk:

 I am about to change my hard drive on my machine from a 500GB to 2tb.

 To transfer I  intend to dd the partitions across and then resize using
 lvm as home swap var are located on lvm.

 Is this the right approach or would you recommend another method?

 John D Maunder.

 2tb drive  probably different sector size. cp -auv recommended.


I agree, best approach is to partition and format the new drive as
new, and then copy the files. This will also help you start your new
disk with a lack of fragmentation.



[gentoo-user] genkernel compile only one new module

2012-11-08 Thread ifj. Stefán István

Hello!

I have a quite good kernel, but today I realised that I need a kernel 
module that hadn't been compiled before.
Is there any way to compile only that new module, and not compiling the 
whole kernel and all of the modules again?


Thanks,
István



Re: [gentoo-user] genkernel compile only one new module

2012-11-08 Thread Bruce Hill
On Thu, Nov 08, 2012 at 06:55:31PM +0100, ifj. Stefán István wrote:
 Hello!
 
 I have a quite good kernel, but today I realised that I need a kernel 
 module that hadn't been compiled before.
 Is there any way to compile only that new module, and not compiling the 
 whole kernel and all of the modules again?
 
 Thanks,
 István

make nconfig (or menuconfig or whatever-config)
select M for the module
exit and save
make  make modules_install
will put the module into /lib/modules/`uname -r`/build/
then you can modprobe symbol for module
and it will be in use.

You should go ahead and install that new kernel and edit your bootloader as
needed.

Bruce
-- 
Happy Penguin Computers   ')
126 Fenco Drive   ( \
Tupelo, MS 38801   ^^
supp...@happypenguincomputers.com
662-269-2706 662-205-6424
http://happypenguincomputers.com/

Don't top-post: http://en.wikipedia.org/wiki/Top_post#Top-posting



Re: [gentoo-user] Hard drive change

2012-11-08 Thread Florian Philipp
Am 08.11.2012 17:37, schrieb Paul Hartman:
 On Thu, Nov 8, 2012 at 7:03 AM, Volker Armin Hemmann
 volkerar...@googlemail.com wrote:
 Am 08.11.2012 12:12 schrieb j...@jdm.myzen.co.uk:

 I am about to change my hard drive on my machine from a 500GB to 2tb.

 To transfer I  intend to dd the partitions across and then resize using
 lvm as home swap var are located on lvm.

 Is this the right approach or would you recommend another method?

 John D Maunder.

 2tb drive  probably different sector size. cp -auv recommended.

 
 I agree, best approach is to partition and format the new drive as
 new, and then copy the files. This will also help you start your new
 disk with a lack of fragmentation.
 

+1

Of course, a simple cp -auv /* /new_root won't suffice because of proc,
sys and friends. I prefer
mount --bind / /real_root
cp -auv /real_root/* /new_root

Regards,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] genkernel compile only one new module

2012-11-08 Thread mindrunner
Why exactly would you do this? Just because of saving time?
If you do not clean kernel dir, it will compile very fast.

On 11/08/2012 07:02 PM, Bruce Hill wrote:
 On Thu, Nov 08, 2012 at 06:55:31PM +0100, ifj. Stefán István
 wrote:
 Hello!

 I have a quite good kernel, but today I realised that I need a
 kernel module that hadn't been compiled before. Is there any way
 to compile only that new module, and not compiling the whole
 kernel and all of the modules again?

 Thanks, István

 make nconfig (or menuconfig or whatever-config) select M for the
 module exit and save make  make modules_install will put the
 module into /lib/modules/`uname -r`/build/ then you can modprobe
 symbol for module and it will be in use.

 You should go ahead and install that new kernel and edit your
 bootloader as needed.

 Bruce




Re: [gentoo-user] Hard drive change

2012-11-08 Thread mindrunner
I never payed attention to this. all i know is that the alignment is
correct. (checked with parted)


On 11/08/2012 04:37 PM, Neil Bothwick wrote:
 On Thu, 08 Nov 2012 16:23:08 +0100, mindrunner wrote:
 
 i always use ddrescue for migrating to another hdd.
 it is much more comfortable than dd and does not depent on file
 systems, etc.
 I always prefer copying on block device level.
 
 Even when the two devices have different block sizes?
 
 At best you'd get crap performance from misaligned filesystem boundaries.
 
 



Re: [gentoo-user] genkernel compile only one new module

2012-11-08 Thread Mark David Dumlao
make was specifically designed so that by default, it would only compile
things whose dependencies had changed since last run.

If your kernel config had not selected the object before, and all you do is
add it as a module, then when you rerun make, only that module should be
recompiled. However if you do built-in to module or vice versa, you're out
of luck.
On Nov 9, 2012 12:58 AM, ifj. Stefán István iste...@stef.hu wrote:

 Hello!

 I have a quite good kernel, but today I realised that I need a kernel
 module that hadn't been compiled before.
 Is there any way to compile only that new module, and not compiling the
 whole kernel and all of the modules again?

 Thanks,
 István




Re: [gentoo-user] Hard drive change

2012-11-08 Thread john
On Thu, 08 Nov 2012 19:17:25 +0100
Florian Philipp li...@binarywings.net wrote:

 Am 08.11.2012 17:37, schrieb Paul Hartman:
  On Thu, Nov 8, 2012 at 7:03 AM, Volker Armin Hemmann
  volkerar...@googlemail.com wrote:
  Am 08.11.2012 12:12 schrieb j...@jdm.myzen.co.uk:
 
  I am about to change my hard drive on my machine from a 500GB to
  2tb.
 
  To transfer I  intend to dd the partitions across and then resize
  using lvm as home swap var are located on lvm.
 
  Is this the right approach or would you recommend another method?
 
  John D Maunder.
 
  2tb drive  probably different sector size. cp -auv recommended.
 
  
  I agree, best approach is to partition and format the new drive as
  new, and then copy the files. This will also help you start your new
  disk with a lack of fragmentation.
  
 
 +1
 
 Of course, a simple cp -auv /* /new_root won't suffice because of
 proc, sys and friends. I prefer
 mount --bind / /real_root
 cp -auv /real_root/* /new_root
 
 Regards,
 Florian Philipp
 

Thanks all for advice. Nice work with the mounting.



 

-- 
John D Maunder



Re: [gentoo-user] Hard drive change

2012-11-08 Thread Volker Armin Hemmann
Am Donnerstag, 8. November 2012, 16:23:08 schrieb mindrunner:
 i always use ddrescue for migrating to another hdd.
 it is much more comfortable than dd and does not depent on file
 systems, etc.
 I always prefer copying on block device level.

that is just stupid. You copy the fragmentation, the errors, the journal log 
and all the other crap that accumulated over time. No excuses. Just dumb.


-- 
#163933



[gentoo-user] Control /bin/cp default behavior

2012-11-08 Thread Florian Philipp
Hi list!

I just noticed that cp doesn't use btrfs' capabilities to do lazy copies
(a.k.a. copy on write) unless you specify --reflink=auto.

For my console needs, I could specify an alias but I don't see why
scripts shouldn't use the option as well. Is there an environment
variable to control cp like there is for less, gzip and friends?

Thanks in advance!
Florian Philipp



signature.asc
Description: OpenPGP digital signature