Re: [gentoo-user] Users in passwd/shadow

2007-10-01 Thread Bertram Scharpf
Hi,

Am Sonntag, 30. Sep 2007, 20:15:06 -0500 schrieb Dan Farrell:
 On Sun, 30 Sep 2007 04:30:11 +0200
 Bertram Scharpf [EMAIL PROTECTED] wrote:
  Now I detect there are users in passwd that don't have a
  shadow entry...
 that makes sense, because some users aren't allowed to log in.  For
 example: 
 |  man:x:13:15:man:/usr/share/man:/bin/false
 the man user can't log in.  the shell is /bin/false.  

I detected it because there is a warning message in case
there is _no_ shadow entry. Instantiating an _empty_ shadow
entry makes it disappear:

  myhost ~ # su - man
  su: Authentication service cannot retrieve authentication
  info.
  (Ignored)
  myhost ~ # su - portage
  su: Authentication service cannot retrieve authentication
  info.
  (Ignored)
  myhost ~ # vi /etc/shadow
  myhost ~ # grep portage /etc/shadow
  portage:!:13784:0:9:7:::
  myhost ~ # su - portage
  myhost ~ # echo $?
  1
  myhost ~ #


Bertram


-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] diskless booting [solved, I hope]

2007-10-01 Thread Neil Bothwick
Hello Dan Farrell,

 I was going to suggest you avoid pxegrub, but I guess you figured that
 out for yourself.  

What's wrong with pxe grub. I use it and it works, so I haven't tried
pxelinux. Is there a good reason to change if it works?


-- 
Neil Bothwick

Newsflash! Explosion at M$ beta testsite - Infinite number of monkeys
killed.


signature.asc
Description: PGP signature


Re: [gentoo-user] diskless booting [solved, I hope]

2007-10-01 Thread Dan Farrell
On Mon, 1 Oct 2007 09:41:43 +0100
Neil Bothwick [EMAIL PROTECTED] wrote:

 Hello Dan Farrell,
 
  I was going to suggest you avoid pxegrub, but I guess you figured
  that out for yourself.  
 
 What's wrong with pxe grub. I use it and it works, so I haven't tried
 pxelinux. Is there a good reason to change if it works?
 
 

I never got it to work last January when I set up my first diskless
host.  I got similar strange errors; it just didn't seem to want to do
anything, although it appeared to be properly configured.

PXElinux was a breeze by comparison, I thought, even though the
configuration files are icky.  But most importantly, it worked, so I
stuck with it under the same principle.  
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] diskless booting [solved, I hope]

2007-10-01 Thread Bertram Scharpf
Hi,

Am Montag, 01. Okt 2007, 07:51:36 -0500 schrieb Dan Farrell:
 On Mon, 1 Oct 2007 09:41:43 +0100
 Neil Bothwick [EMAIL PROTECTED] wrote:
   I was going to suggest you avoid pxegrub, but I guess you figured
   that out for yourself.  
  
  What's wrong with pxe grub. I use it and it works, so I haven't tried
  pxelinux. Is there a good reason to change if it works?
  
 I never got it to work last January when I set up my first diskless
 host.  I got similar strange errors; it just didn't seem to want to do
 anything, although it appeared to be properly configured.
 
 PXElinux was a breeze by comparison, I thought, even though the
 configuration files are icky.  But most importantly, it worked, so I
 stuck with it under the same principle.  

I set up a CD-less client just for installation last week
and I did not succeed with PXElinux; then I used Pxegrub and
everything was fine. I admit I have not clue how to manage
an initramfs; with Pxegrub you need RootNFS which I finally
installed correctly after bothering this list with some
stupid posts ...

Bertram


-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de
-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] /tmp directory: best policy for clearing?

2007-10-01 Thread Alan E. Davis
Somenow I've overlooked that my /tmp file has been filling up with large
files for over a year.

May I ask what is a reasonable way to handle the /tmp directory, without
deleting large files that are maybe only a few days old?

Thank you for any ideas,

Alan

-- 
Alan Davis, Kagman High School, Saipan  [EMAIL PROTECTED]

It's never a matter of liking or disliking ...
   ---Santa Ynez Chumash Medicine Man


Re: [gentoo-user] /tmp directory: best policy for clearing?

2007-10-01 Thread Albert Hopkins

On Tue, 2007-10-02 at 00:05 +1000, Alan E. Davis wrote:
 Somenow I've overlooked that my /tmp file has been filling up with
 large files for over a year.  
 
 May I ask what is a reasonable way to handle the /tmp directory,
 without deleting large files that are maybe only a few days old? 
 
 Thank you for any ideas,

# emerge tmpwatch


-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] /tmp directory: best policy for clearing?

2007-10-01 Thread Hex Star
This can be done easily as shown:

*find /tmp/ -mtime +1 -exec rm {} \;

Change +1 to the number of days old you want the files to be before deletion
*


Re: [gentoo-user] /tmp directory: best policy for clearing?

2007-10-01 Thread Neil Bothwick
On Tue, 2 Oct 2007 00:05:03 +1000, Alan E. Davis wrote:

 May I ask what is a reasonable way to handle the /tmp directory, without
 deleting large files that are maybe only a few days old?

How often do you reboot? If you don't measure uptimes by the seasons,
setting WIPE_TMP=yes in/etc/conf.d/bootmisc should suffice. Otherwise,
something like tmpwatch.


-- 
Neil Bothwick

I think not, said Descartes, and promptly disappeared.


signature.asc
Description: PGP signature


[gentoo-user] Couldn't load XKB keymap...

2007-10-01 Thread Nicolai Beuermann
Hello,
I've got a big problem after updating world. My Keyboard - Apple Extended USB 
Keyboard - refused to print german umlauts, AT and euro symbol.

Xorg.0.log: (WW) Couldn't load XKB keymap, falling back to pre-XKB keymap
setxkbmap quits reliably with Error loading new keyboard description

$ setxkbmap -v 10 -model macintosh -layout de
Setting verbose level to 10
locale is C
Warning! Multiple definitions of keyboard model
 Using command line, ignoring X server
Warning! Multiple definitions of keyboard layout
 Using command line, ignoring X server
Applied rules from xorg:
model:  macintosh
layout: de
Trying to build keymap using the following components:
keycodes:   macintosh+aliases(qwertz)
types:  complete+numpad(mac)
compat: complete
symbols:pc+macintosh_vndr/de+inet(apple)
geometry:   macintosh(macintosh)
Error loading new keyboard description

Any known bugs or even solutions?

-- 
mailto: [EMAIL PROTECTED]
gnupg fingerprint: 56DA 4E32 3A4A 52AC B769 DFC2 BF3E 9805 09BB 4259
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Couldn't load XKB keymap...

2007-10-01 Thread Emil Beinroth
Hi

On Mon, Oct 01, 2007 at 04:35:21PM +0200, Nicolai Beuermann wrote:
 Xorg.0.log: (WW) Couldn't load XKB keymap, falling back to pre-XKB keymap
 setxkbmap quits reliably with Error loading new keyboard description

I had the same problem, emerge -1 xorg-server solved it. Maybe that'll
work for you too.

Cheers, Emil

-- 
Emil Beinroth
83059 Kolbermoor | Germany
 
Michael, I did nothing. I did absolutely nothing, and it was everything that I
thought it could be.
-- Peter from the movie 'Office space'


pgpsMhde9DiSF.pgp
Description: PGP signature


Re: [gentoo-user] diskless booting [solved, I hope]

2007-10-01 Thread Roger Mason
Hello Dan,

Dan Farrell [EMAIL PROTECTED] writes:

 I was going to suggest you avoid pxegrub, but I guess you figured that
 out for yourself.  

 
  I'm almost certain to get stuck so I'll
 probably be back asking again.

 Let me know. 

Well, I had it working on Friday but over the weeekend I tinkered some
more with pixegrub and broke it again.  Now pxelinux won't work
either.

I have the following dhcpd.conf on the host (192.168.0.2):

+dhcpd.conf
ddns-update-style none ;

next-server 192.168.0.2;

option domain-name-servers 192.168.0.2;
option routers 192.168.0.2;

option space PXE;
option PXE.mtftp-ip   code 1 = ip-address;
option PXE.mtftp-cportcode 2 = unsigned integer 16;
option PXE.mtftp-sportcode 3 = unsigned integer 16;
option PXE.mtftp-tmoutcode 4 = unsigned integer 8;
option PXE.mtftp-delaycode 5 = unsigned integer 8;
option PXE.discovery-control  code 6 = unsigned integer 8;
option PXE.discovery-mcast-addr   code 7 = ip-address;

# Declare the subnet where our diskless nodes will live
subnet 192.168.0.0 netmask 255.255.255.0 {
  # Provide PXE clients with appropriate information
  class pxeclient {
match if substring(option vendor-class-identifier, 0, 9) = PXEClient;
vendor-option-space PXE;

# At least one of the vendor-specific PXE options must be set in
# order for the client boot ROMs to realize that we are a PXE-compliant
# server.  We set the MCAST IP address to 0.0.0.0 to tell the boot ROM
# that we can't provide multicast TFTP.

option PXE.mtftp-ip 0.0.0.0;

  }

  host cctp {

  hardware ethernet 00:01:03:ce:52:a8;
  fixed-address 192.168.0.3;
# option option-150 /calcite/boot/grub.lst;   
   
  filename pxelinux.0;
  }

}

allow bootp;
allow booting;
+

I have the following in.tftp on the host (192.168.0.2):

+in.tftpd

# /etc/init.d/in.tftpd

INTFTPD_PATH=/diskless
INTFTPD_USER=nobody

INTFTPD_OPTS=-v -s ${INTFTPD_PATH}
+

I have bzImage, pxelinux.0 and pxelinux.cfg/ in /diskless on the
host. pxelinux.cfg/ contains a default file with these contents:

+pxelinux.cfg/default+

DEFAULT /bzImage
APPEND ip=dhcp root=/dev/nfs nfsroot=192.168.0.2:/diskless/calcite



When I try to boot the client, tcpdump -i eth1 prints the following
dialogue:

tcpdump -i eth1
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth1, link-type EN10MB (Ethernet), capture size 96 bytes
11:50:39.930039 IP 0.0.0.0.bootpc  255.255.255.255.bootps: BOOTP/DHCP, Request 
from 00:01:03:ce:52:a8 (oui Unknown), length 548
11:50:39.930886 IP lowalbite.private.bootps  255.255.255.255.bootpc: 
BOOTP/DHCP, Reply, length 300
11:50:42.072242 IP 0.0.0.0.bootpc  255.255.255.255.bootps: BOOTP/DHCP, Request 
from 00:01:03:ce:52:a8 (oui Unknown), length 548
11:50:42.073040 IP lowalbite.private.bootps  255.255.255.255.bootpc: 
BOOTP/DHCP, Reply, length 300
11:50:42.077032 arp who-has lowalbite.private tell calcite.private
11:50:42.077088 arp reply lowalbite.private is-at 00:04:75:77:98:4f (oui 
Unknown)
11:50:42.077165 IP calcite.private.2070  lowalbite.private.tftp:  27 RRQ 
pxelinux.0 octet tsize 0 
11:50:42.080043 IP lowalbite.private.32771  calcite.private.2070: UDP, length 
36
11:50:42.081409 IP calcite.private.2071  lowalbite.private.tftp:  32 RRQ 
pxelinux.0 octet blksize 1456 
11:50:42.084147 IP lowalbite.private.32771  calcite.private.2071: UDP, length 
36
11:50:47.077314 arp who-has calcite.private tell lowalbite.private
11:50:48.077397 arp who-has calcite.private tell lowalbite.private
11:50:49.077484 arp who-has calcite.private tell lowalbite.private

If I connect a terminal to the client I see:

Non-system disk or disk error replace and strike any key when ready


 By the way, if you're looking for performance enhancements to your
 diskless hosts, let me know. I have found some, and am also always
 looking for more.  

Right now I'd be happy to have it working, no matter how slowly.

One think I have found by searching the internet is that pxegrub has
history of poor interaction with 3Com cards, which is what I'm using.

Thanks for any help you can offer.

Roger

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: Backups

2007-10-01 Thread Francesco Talamona
On Monday 01 October 2007, Mark Kirkwood wrote:
 P.s : Actually rebuilding from these saved dumps requires a little
 thought - I'll post the steps if anyone new to dumps is interested in
 using this method  for themselves.

Yes, please.
I'm not completely new to dump, but I'd like to read about a complete 
dump-backup solution.

Ciao
Francesco

-- 
Linux Version 2.6.22-gentoo-r8, Compiled #1 PREEMPT Fri Sep 28 19:41:21 
CEST 2007
One 1GHz AMD Athlon 64 Processor, 2GB RAM, 2003.99 Bogomips Total
aemaeth
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Couldn't load XKB keymap...

2007-10-01 Thread Ralf Stephan
Search for setxkbmap on the bug server. A missing link
on installation is the problem. We're waiting for a patch.


ralf
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] ext3 with errors

2007-10-01 Thread Arnau Bria
On Sat, 29 Sep 2007 22:56:50 +0100
Neil Bothwick wrote:

 Hello Arnau Bria,
Hi Neil,
[...]
 Create a two disk RAID1 using only your existing disk, marking the
 other disk missing. Then add your new disk and the RAID will
 automatically update it from the first disk.

I'll do so.
Thanks for your reply.
Arnau
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Re: emerge world

2007-10-01 Thread Arnau Bria
Thanks Steve, 
Finally, I solved my problem with your advices.

Cheers,
Arnau
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Re: Backups

2007-10-01 Thread Jason Messerschmitt
On Mon, 1 Oct 2007 18:43:41 +0200
Francesco Talamona [EMAIL PROTECTED] wrote:

 On Monday 01 October 2007, Mark Kirkwood wrote:
  P.s : Actually rebuilding from these saved dumps requires a little
  thought - I'll post the steps if anyone new to dumps is interested
  in using this method  for themselves.
 
 Yes, please.
 I'm not completely new to dump, but I'd like to read about a complete 
 dump-backup solution.
 
 Ciao
   Francesco
 

I've been listening in and I too would be interested in this.

-jason
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] emerge xine-ui fails at ffmpeg

2007-10-01 Thread Jason Messerschmitt
On Sun, 30 Sep 2007 14:38:31 -0700 (PDT)
maxim wexler [EMAIL PROTECTED] wrote:

 Hi group,
 
 This one is still giving me grief:
 
 [EMAIL PROTECTED] ~ $ emerge -pv xine-ui
 
 These are the packages that would be merged, in order:
 
 Calculating dependencies... done!
 [ebuild U ] media-video/ffmpeg-0.4.9_p20070330
 [0.4.9_p20060302] USE=X%* encode ieee1394 mmx ogg oss
 sdl truetype vorbis zlib -a52 -aac (-altivec) -amr
 -debug* -doc -dts -imlib* -network -test -theora
 -threads -v4l -x264 -xvid 0 kB
 [ebuild  N] media-libs/xine-lib-1.1.4-r2  USE=X
 alsa arts dvd esd gtk ipv6 mad opengl oss sdl truetype
 vorbis win32codecs xv -a52 -aac -aalib (-altivec)
 -debug -directfb -dts -dxr3 -fbcon -flac -gnome
 -imagemagick -libcaca -mmap -mng -modplug -musepack
 -nls -pulseaudio -samba -speex -theora -v4l -vcd
 -vidix -wavpack -xcb -xinerama -xvmc 6,856 kB
 [ebuild  N] media-video/xine-ui-0.99.5  USE=X
 ncurses readline -aalib -curl -debug -libcaca -lirc
 -nls -vdr -xinerama 2,546 kB
 
 Total: 3 packages (1 upgrade, 2 new), Size of
 downloads: 9,402 kB
 
 Barfs at ffmpeg.
 
 From the log:
 
 snip
 eContext' is deprecated (declared at
 /var/tmp/portage/media-video/ffmpeg-0.4.9_p20070330/work/ffmpeg/libavcod
 ec/avcodec.h:2447)
 /var/tmp/portage/media-video/ffmpeg-0.4.9_p20070330/work/ffmpeg/libavcodec/avcodec.h:2463:
 warning: `ImgReSamp
 leContext' is deprecated (declared at
 /var/tmp/portage/media-video/ffmpeg-0.4.9_p20070330/work/ffmpeg/libavcod
 ec/avcodec.h:2447)
 i686-pc-linux-gnu-gcc -Wl,--warn-common  -rdynamic
 -export-dynamic -Wl,--as-needed
 -Wl,-rpath-link,/var/tmp/p
 ortage/media-video/ffmpeg-0.4.9_p20070330/work/ffmpeg/libavcodec
 -Wl,-rpath-link,/var/tmp/portage/media-vide
 o/ffmpeg-0.4.9_p20070330/work/ffmpeg/libavformat
 -Wl,-rpath-link,/var/tmp/portage/media-video/ffmpeg-0.4.9_p
 20070330/work/ffmpeg/libavutil -g -o null.so -shared
 -Wl,-soname,null.so null.o
 i686-pc-linux-gnu-gcc -Wl,--warn-common  -rdynamic
 -export-dynamic -Wl,--as-needed
 -Wl,-rpath-link,/var/tmp/p
 ortage/media-video/ffmpeg-0.4.9_p20070330/work/ffmpeg/libavcodec
 -Wl,-rpath-link,/var/tmp/portage/media-vide
 o/ffmpeg-0.4.9_p20070330/work/ffmpeg/libavformat
 -Wl,-rpath-link,/var/tmp/portage/media-video/ffmpeg-0.4.9_p
 20070330/work/ffmpeg/libavutil -g -o fish.so -shared
 -Wl,-soname,fish.so fish.o
 i686-pc-linux-gnu-gcc -Wl,--warn-common  -rdynamic
 -export-dynamic -Wl,--as-needed
 -Wl,-rpath-link,/var/tmp/p
 ortage/media-video/ffmpeg-0.4.9_p20070330/work/ffmpeg/libavcodec
 -Wl,-rpath-link,/var/tmp/portage/media-vide
 o/ffmpeg-0.4.9_p20070330/work/ffmpeg/libavformat
 -Wl,-rpath-link,/var/tmp/portage/media-video/ffmpeg-0.4.9_p
 20070330/work/ffmpeg/libavutil -g -o ppm.so -shared
 -Wl,-soname,ppm.so ppm.o
 i686-pc-linux-gnu-gcc -Wl,--warn-common  -rdynamic
 -export-dynamic -Wl,--as-needed
 -Wl,-rpath-link,/var/tmp/p
 ortage/media-video/ffmpeg-0.4.9_p20070330/work/ffmpeg/libavcodec
 -Wl,-rpath-link,/var/tmp/portage/media-vide
 o/ffmpeg-0.4.9_p20070330/work/ffmpeg/libavformat
 -Wl,-rpath-link,/var/tmp/portage/media-video/ffmpeg-0.4.9_p
 20070330/work/ffmpeg/libavutil -g -o watermark.so
 -shared -Wl,-soname,watermark.so watermark.o
 i686-pc-linux-gnu-gcc -Wl,--warn-common  -rdynamic
 -export-dynamic -Wl,--as-needed
 -Wl,-rpath-link,/var/tmp/p
 ortage/media-video/ffmpeg-0.4.9_p20070330/work/ffmpeg/libavcodec
 -Wl,-rpath-link,/var/tmp/portage/media-vide
 o/ffmpeg-0.4.9_p20070330/work/ffmpeg/libavformat
 -Wl,-rpath-link,/var/tmp/portage/media-video/ffmpeg-0.4.9_p
 20070330/work/ffmpeg/libavutil -g -o imlib2.so
 -shared -Wl,-soname,imlib2.so imlib2.o  `imlib2-config
 --libs`
 i686-pc-linux-gnu-gcc -Wl,--warn-common  -rdynamic
 -export-dynamic -Wl,--as-needed
 -Wl,-rpath-link,/var/tmp/p
 ortage/media-video/ffmpeg-0.4.9_p20070330/work/ffmpeg/libavcodec
 -Wl,-rpath-link,/var/tmp/portage/media-vide
 o/ffmpeg-0.4.9_p20070330/work/ffmpeg/libavformat
 -Wl,-rpath-link,/var/tmp/portage/media-video/ffmpeg-0.4.9_p
 20070330/work/ffmpeg/libavutil -g -o drawtext.so
 -shared -Wl,-soname,drawtext.so drawtext.o 
 `freetype-config
  --libs`
 make[1]: Leaving directory
 `/var/tmp/portage/media-video/ffmpeg-0.4.9_p20070330/work/ffmpeg/vhook'
 
 !!! ERROR: media-video/ffmpeg-0.4.9_p20070330 failed.
 Call stack:
   ebuild.sh, line 1621:   Called dyn_compile
   ebuild.sh, line 973:   Called qa_call 'src_compile'
   ebuild.sh, line 44:   Called src_compile
   ffmpeg-0.4.9_p20070330.ebuild, line 169:   Called
 die
 
 !!! make failed
 !!! If you need support, post the topmost build error,
 and the call stack if relevant.
 !!! A complete build log is located at
 '/var/log/portage/media-video:ffmpeg-0.4.9_p20070330:20070928-013511.lo
 g'.
 
 
 Perhaps someone can look at their log of ffmpeg and
 tell where mine went off the rails.
 
 Maxim
 
 
 
   
 
 Check out the hottest 2008 models today at Yahoo! Autos.
 http://autos.yahoo.com/new_cars.html

I'm no guru by 

Re: [gentoo-user] Users in passwd/shadow

2007-10-01 Thread Dan Farrell
On Mon, 1 Oct 2007 09:47:37 +0200
Bertram Scharpf [EMAIL PROTECTED] wrote:

 Hi,
 
 Am Sonntag, 30. Sep 2007, 20:15:06 -0500 schrieb Dan Farrell:
  On Sun, 30 Sep 2007 04:30:11 +0200
  Bertram Scharpf [EMAIL PROTECTED] wrote:
   Now I detect there are users in passwd that don't have a
   shadow entry...
  that makes sense, because some users aren't allowed to log in.  For
  example: 
  |  man:x:13:15:man:/usr/share/man:/bin/false
  the man user can't log in.  the shell is /bin/false.  
 
 I detected it because there is a warning message in case
 there is _no_ shadow entry. Instantiating an _empty_ shadow
 entry makes it disappear:
 
   myhost ~ # su - man
   su: Authentication service cannot retrieve authentication
   info.
   (Ignored)
   myhost ~ # su - portage
   su: Authentication service cannot retrieve authentication
   info.
   (Ignored)
   myhost ~ # vi /etc/shadow
   myhost ~ # grep portage /etc/shadow
   portage:!:13784:0:9:7:::
   myhost ~ # su - portage
   myhost ~ # echo $?
   1
   myhost ~ #
 
 
 Bertram
 
 
You cannot 'su' to that user because they don't have authentication
info.  In other words, a missing password is not the same as an empty
password.  

I wonder if you could run a program as a particular user if they only
had authentication info in shadow?  I am guessing not, since they
wouldn't have an associated uid, group, and so on.  But, if possible,
it would explain the situation.
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] diskless booting

2007-10-01 Thread Dan Farrell
On Mon, 01 Oct 2007 12:57:05 -0230
Roger Mason [EMAIL PROTECTED] wrote:

 Well, I had it working on Friday but over the weeekend I tinkered some
 more with pixegrub and broke it again.  Now pxelinux won't work
 either.

I've attached my dhcpd.conf, sans rndc-key.  Please note that this
configuration has a big block of code that is for dynamic DNS updates.
I kept it in because I found it hard to figure out for myself, and I
figured it would be better to put more out on the web rather than refer
you to sources I don't even know exist.  I don't know if you are
running BIND or a DNS server that can do static updates, but if you
can, I highly suggest it for your own sanity.  

For usefulness of online archives, which probably strip attachments,
here is the same info.  I even annotated it a little.

/*===
dhcpd.conf from spore.ath.cx
===*/

key rndc-key { algorithm hmac-md5;
   secret ;
};

server-identifier zeus.pantheon.spore.ath.cx;
authoritative;

option domain-name-servers 192.168.10.1, 192.168.1.87;
ddns-update-style interim;

use-host-decl-names on;
allow client-updates;

# these two lines are important for net booting.. i think...
option oe-key code 159 = string;
option oe-gateway code 160 = ip-address;

on commit {
if (not static and
((config-option server.ddns-updates = null) or
(config-option server.ddns-updates != 0))) {
if exists oe-key {
set ddns-rev-name =
concat (binary-to-ascii (10, 8, .,
reverse (1, leased-address)), .,
pick (config-option server.ddns-rev-domainname,
in-addr.arpa.));
set full-oe-key = option oe-key;
switch (ns-update (delete (IN, 25, ddns-rev-name, null),
add (IN, 25, ddns-rev-name, full-oe-key,
lease-time / 2)))
{
default:
unset ddns-rev-name;
break;
case NOERROR:
on release or expiry {
switch (ns-update (delete (IN, 25, ddns-rev-name, null))) {
case NOERROR:
unset ddns-rev-name;
break;
}
}
}
}
}
}

default-lease-time 609080;
max-lease-time 1218160;

# tftp server, I believe.
next-server 192.168.10.1;

#barge in and take over any lease you hear of, even if
#you don't remember granting it.  
authoritative

# more pxe settings:
option space PXE;
option PXE.mtftp-ip   code 1 = ip-address;
option PXE.mtftp-cportcode 2 = unsigned integer 16;
option PXE.mtftp-sportcode 3 = unsigned integer 16;
option PXE.mtftp-tmoutcode 4 = unsigned integer 8;
option PXE.mtftp-delaycode 5 = unsigned integer 8;
option PXE.discovery-control  code 6 = unsigned integer 8;
option PXE.discovery-mcast-addr   code 7 = ip-address;

# each subdomain should have a zone entry.  

#wireless, g.spore.ath.cx
zone g.spore.ath.cx. {
   primary 192.168.1.87;
   key rndc-key;
}

#you might well need the in-addr.arpa zone too:

zone 2.168.192.in-addr.arpa. {
   primary 192.168.1.87;
   key rndc-key;
}

# this subnet doesn't support diskless booting.  Yuck, doing that 
# over WIFI would be icky.
subnet 192.168.2.0 netmask 255.255.255.0
{
   option domain-name g.spore.ath.cx;
   # the default route for the subdomain.
   option routers 192.168.1.1;
   option domain-name-servers 192.168.1.87;
}

#pantheon 

# another one of those netbooting things
option option-150 code 150 = text ;

# another zone...
zone pantheon.spore.ath.cx. {
   primary 192.168.10.1;
   key rndc-key;
}

#   ...  and reverse ...
zone 10.168.192.in-addr.arpa. {
   primary 192.168.10.1;
   key rndc-key;

#   ... and the subnet information ...
subnet 192.168.10.0 netmask 255.255.255.0 {
  range 192.168.10.101 192.168.10.199;
  option domain-name-servers 192.168.10.1;
  option domain-name pantheon.spore.ath.cx;
  option routers 192.168.10.1;
  option broadcast-address 192.168.10.255;
  one-lease-per-client on;
  option routers 192.168.10.1;
  option domain-name-servers 192.168.10.1;
  update-static-leases on;
  ddns-domainname pantheon.spore.ath.cx;

#the host entry is required for any host that is to be net booted.
 host apollo{
   # some way to identify
   hardware ethernet 00:04:76:e3:3b:95;
   fixed-address 192.168.10.99;
   option host-name apollo;
   DDNS-hostname apollo;
   # analagous to next server , I guess
   option PXE.mtftp-ip 0.0.0.0;
   # file to be served.  In this case, it's the syslinux preboot
   #execution environment binary. 
   filename pxelinux.0;
 }
#more examples of host entries, all pretty much the same idea.  
host aphrodite{
   hardware ethernet 00:01:02:5F:6E:6B;
   fixed-address 192.168.10.96;
   option host-name aphrodite;
   DDNS-hostname aphrodite;
   option PXE.mtftp-ip 0.0.0.0;
   filename pxelinux.0;
}
host artemis {
   hardware ethernet 00:01:02:46:E7:CC;
   fixed-address 192.168.10.97;
   option host-name artemis;
   DDNS-hostname artemis;
   option PXE.mtftp-ip 0.0.0.0;
   filename pxelinux.0;
}
host matty{
hardware ethernet 00:01:03:20:B8:04;
fixed-address 

Re: [gentoo-user] DRI with Radeon X850 on AMD64

2007-10-01 Thread Reinhard Kreim
Am Montag 01 Oktober 2007 schrieb Daniel D Jones:
 Trying to get DRI working on a Radeon X850 on AMD64.

 In my Xorg log, Im seeing:

 (EE) AIGLX error: dlopen of /usr/lib64/dri/r300_dri.so failed
 (/usr/lib64/dri/r300_dri.so: cannot open shared object file: No such file
 or directory)
 (EE) AIGLX: reverting to software rendering

 And sure enough, there is no r300_dri.so in /usr/lib64/dri.  The file IS
 present under /usr/lib32/dri.

 Can I simply link this driver to the lib64 directory?  (I'm guessing not.)

 Is there a different 64 bit package/driver?  Do I have an incorrect flag
 set or one not set?

Hi,

if im not mistaken the fglrx driver doesn't support AIGLX at all.
So either disable it or ignore it.

Greetings  Reinhard
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Re: Backups

2007-10-01 Thread Mark Kirkwood

Francesco Talamona wrote:

Yes, please.
I'm not completely new to dump, but I'd like to read about a complete 
dump-backup solution.


Ciao
Francesco

  


Well - its not complete by any stretch of the imagination... but the 
attached (hopefully not striped off by the mailing list software) is a 
very brief discussion of how to do a minimal backup/restore using 
xfsdump. Note that user data is *not* explicitly covered - even tho 
there is no reason it cannot be backed up this way too! In addition it 
does not cover incremental or cumulative backup variations - again no 
reason why this cannot be used, but for a quick and simple *system* 
restore, I find using only full (i.e level 0) dumps  helps avoid admin 
(i.e me making) mistakes.


It's worth noting that the essential logic is simply:
- dump system filesystems
- save xfsrestore binaries as a package

- boot livecd
- install xfsrestore binaries somewhere
- restore dumps

Backup and Restore System
=

This is a quick guide for backing up and restoring xfs dilesystems using 
xfsdump/xfsrestore. It should be relatively simple to apply the ideas for other 
filesystems dump tools (e.g. dumpe2fs for ext2/3).

Backup
--

1. Dump filesystems:

$ cd /data0/backup
$ xfsdump -L boot-0 -M backup1 -l0 -f boot-0.dmp /boot
$ xfsdump -L root-0 -M backup1 -l0 -f .root.0.dmp /
$ xfsdump -L var-0 -M backup1 -l0 -f var-0.dmp /var
$ xfsdump -L usr-0 -M backup1 -l0 -f usr-0.dmp /usr


2. Package dump program

$ quickpkg xfsdump
$ cp /usr/portage/packages/All/xfsdump-2.2.45.tbz2 /data0/backup


3. Record filesystem layout

$ df -m  df.out


4. Save the dumps and packages

Copy to DVD or another machine...


Restore
---

1. Boot from the live cd

We are assuming that we are completely rebuilding the system, or are making
another one (initially) identical to the backed-up one.


2. Partition drives and create empty filesystems etc if required

$ mkfs.xfs /dev/sda1
$ mkswap /dev/sda2
$ mkfs.xfs /dev/sda3
$ mkfs.xfs /dev/sda4
$ mkfs.xfs /dev/sda6


3. Retrieve backup dump and package files from DVD or other machine

May require 2 DVDROMS (or 1 DVDROM and 1 CDROM) - one for live cd, one for 
backup data.


4. Install dump program if it is not already on the live cd

Xfsdump is *not* on the live cd. You need to choose a partition you are not 
using yet and create a filesystem on it, install xfsrestore there and amend the
system path to see it. (or add another tmpfs filesystem).


$ mkfs.xfs  /dev/sda9
$ mkdir /xfsrestore
$ mount /dev/sda9 /xfsrestore
$ cd /xfsrestore
$ tar -jxvf  xfsdump-2.2.45.tbz2
$ cd usr/bin
$ rm xfsdump xfsrestore
$ ln -s /xfsrestore/sbin/xfsdump xfsdump
$ ln -s /xfsrestore/sbin/xfsrestore xfsrestore
$ export PATH=$PATH:/xfsrestore/sbin:/xfsrestore/usr/bin


5. Restore dumps

Use the contents of df.out to figure out which dump should be restored on which 
device! then temporily mount each filesystem and restore it.

$ mount /dev/sda3 /mnt2
$ xfsrestore -f /mnt/cdrom/root.0.dump  /mnt2

Now root is restored we can mount the other empty filesystems and restore them.

$ mount /dev/sda1 /mnt2/boot
$ xfsrestore -f /mnt/cdrom/boot.0.dump  /mnt2/boot
$ mount /dev/sda4 /mnt2/var
$ xfsrestore -f /mnt/cdrom/var.0.dump  /mnt2/var
$ mount /dev/sda6 /mnt2/usr
$ xfsrestore -f /mnt/cdrom/usr.0.dump  /mnt2/usr


6. Chroot, (re)install bootloader and reboot


7. Notes

Obviously you can backup user data this may too (i.e /home), altho other 
methods might be simpler (mind you most dump tools let you do incremental and 
cumulative relatively simply).



[gentoo-user] Upgrading the kernel

2007-10-01 Thread Jed R. Mallen

Do you guys have a trick that will update a new kernel quickly? I'm using 
2.6.21-gentoo-r4 right now, and have foregone upgrading to 2.6.22-gentoo-r5 and 
-r8 because I read somewhere that I can't just use my old .config file for a 
new kernel version if it's *not* a revision-upgrade and I can only upgrade 
safely between 2 revisions. 

I don't want to go through all those kernel settings one by one. Do you just 
remember a few key things that you need (framebuffer, video, usb, etc) and just 
use the default settings?

Thanks.


   \|||/
   (o o)
ooO-(_)-Ooo
http://jed.sitesled.com
0x81E575A3

-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] OT: Mplayer question

2007-10-01 Thread Jed R. Mallen
On Thu, 27 Sep 2007 14:14:58 -0500
Anthony E. Caudel [EMAIL PROTECTED] wrote:

 Thinking about ordering a DVD from Amazon.uk (not available here in the
 US).  It is a region 2 DVD and is in PAL format unlike the NTSC here in
 the states.
 
 Will the DVD play in Mplayer?
 
 Tony

try emerging media-libs/libdvdcss if it doesn't.
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Upgrading the kernel

2007-10-01 Thread Jerry McBride
On Monday 01 October 2007 10:19:57 pm Jed R. Mallen wrote:
 Do you guys have a trick that will update a new kernel quickly? I'm using
 2.6.21-gentoo-r4 right now, and have foregone upgrading to 2.6.22-gentoo-r5
 and -r8 because I read somewhere that I can't just use my old .config file
 for a new kernel version if it's *not* a revision-upgrade and I can only
 upgrade safely between 2 revisions.

 I don't want to go through all those kernel settings one by one. Do you
 just remember a few key things that you need (framebuffer, video, usb, etc)
 and just use the default settings?


You really don't know what you're missing. :')

Seriously, just print out your old config, key it into menconfig... tweak it a 
bit and compile it... Then test it by rebooting into the new kernel...

Painless, safe... easy.


-- 


From the Desk of: Jerome D. McBride
--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Upgrading the kernel

2007-10-01 Thread David Relson
On Tue, 2 Oct 2007 10:19:57 +0800
Jed R. Mallen wrote:

 
 Do you guys have a trick that will update a new kernel quickly? I'm
 using 2.6.21-gentoo-r4 right now, and have foregone upgrading to
 2.6.22-gentoo-r5 and -r8 because I read somewhere that I can't just
 use my old .config file for a new kernel version if it's *not* a
 revision-upgrade and I can only upgrade safely between 2 revisions. 
 
 I don't want to go through all those kernel settings one by one. Do
 you just remember a few key things that you need (framebuffer, video,
 usb, etc) and just use the default settings?
 
 Thanks.

make oldconfig should help.  It'll take your old options and prompt
for yes/no responses for new ones.

I've heard that one of the big differences is that IDE drives are now
classified as PATA (parallel ATA) drives.  However, I don't know
if/how that affects .config

HTH,

David
-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] per-ebuild compil options

2007-10-01 Thread Iain Buchanan
Hi all,

after recompiling another bunch of libraries just to unstrip them, I'm
wondering if I can specify FEATURES and CXXOPTS (for example) on a
per-ebuild basis.

eg. I would always want to build glib and glibc with nostrip in the
FEATURES, and -ggdb in the compile options, but all other ebuilds would
be as normal.

Any way I can do this without putting the ebuilds in my overlay?  I know
I can do it on the command line:
FEATURES=blah nostrip CFLAGS=blah -ggdb CXXFLAGS=${CFLAGS} sudo
emerge -va1 glibc
but that kind-of gets defeated during an emerge world.

thanks,
-- 
Iain Buchanan iain at pcorp dot com dot au

Humor in the Court:
Q: ...any suggestions as to what prevented this from being a murder trial 
   instead of an attempted murder trial?
A: The victim lived.

-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Upgrading the kernel

2007-10-01 Thread Hex Star
It is quite simple, take this config file which is the default distro
config: http://esc69.midphase.com/~moiress/good_config (compiles most
everything as modules, if you don't want the compile to take forever you
might want to change the config to only include what is absolutely necessary
to boot your system)

Then:

1) Download: http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.22.9.tar.bz2

2) tar xvjf linux-2.6.22.9.tar.bz2

3) cd linux-2.6.22.9

4) copy the previously mentioned config file here, be sure it is named
.config!

5) make oldconfig

6) make

7) make install

8) sudo update-initramfs -k kernelversion -c -v

9) sudo update-grub

10) edit /boot/grub/menu.lst and add initrd line below kernel line for the
kernel you just compiled and installed

11) reboot and enjoy!


Re: [gentoo-user] Re: Help finding a tv tuner card's chipset

2007-10-01 Thread forgottenwizard
On 23:25 Sat 29 Sep , Patrick May wrote:
 On Sat, Sep 29, 2007 at 03:17:14PM -0500, forgottenwizard wrote:
  On 13:41 Sat 29 Sep , Grant Edwards wrote:
   On 2007-09-29, forgottenwizard [EMAIL PROTECTED] wrote:
   
Since I'm using cable, I figure if I need to, in 17 month I
can get a converter, or afford to buy a better card.
   
   If you're using cable, you may not need to.  Cable companies
   are free to continue distributing analog signals as long as
   they want.
   
   -- 
   Grant Edwards   grante Yow!  I need to discuss
 at   BUY-BACK PROVISIONS
  visi.comwith at least six 
   studio
  SLEAZEBALLS!!
   
   -- 
   [EMAIL PROTECTED] mailing list
   
   
  
  Good to know. Right now I'm down to finding a working app (mplayer only
  seems to work so far, and it doesn't seem to work quite right).
 
 Grant is correct. The digital switch only applies to OTA (Over the Air). Cable
 operators could do whatever they want.
 
 Not sure why the PVR-150 isn't just working out of the box for you. I know
 there were some complaints about Hauppauge quietly putting another device in
 the box. And that's because of the switch over. As of March 1, 2007
 manufacturers had to include a digital tuner if they included an analog tuner.
 This included computer interface cards as well. I believe the new Hauppauge is
 a PVR-1600 with dual tuner (NTSC  ATSC).
 
 Good luck.
 
 Patrick

It seems to work. Using at and cat, I can record TV shows (needs a bit
of work to make sure everything is scripted right, but I'm working on
that). That along with mplayer target_file.mpg, I can watch and record
at the same time, and mplayer /dev/video0 works for straight TV.

-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Upgrading the kernel

2007-10-01 Thread Hex Star
Oops sorry forgot this was the gentoo list XD ...

Just use this config: http://esc69.midphase.com/~moiress/good_config (rename
to .config!) and do a make oldconfig and enjoy :)


Re: [gentoo-user] Upgrading the kernel

2007-10-01 Thread Jed R. Mallen
On Mon, 1 Oct 2007 22:07:08 -0700
Hex Star [EMAIL PROTECTED] wrote:

 It is quite simple, take this config file which is the default distro
 config: http://esc69.midphase.com/~moiress/good_config (compiles most

I don't really need the config files. As I've said I've been doing the make 
oldconfig way before and I'm just wondering with the change of kernel versions 
if this is still safe in any way. Thanks.


When smashing monuments, save the pedstals -- they always come in handy.
-- Stanislaw J. Lem, Unkempt Thoughts
-- 
[EMAIL PROTECTED] mailing list