Re: [gentoo-user] OT 0.0.0.0 security query

2006-05-29 Thread Jonathan Chocron
Le Dimanche 28 Mai 2006 16:53, Dave S a écrit :
 Yep, same here. I was trying to lock down my router. By default it allows
 any outgoing packets and only allows incoming packets if they are related
 to the incoming packets.

 I was trying to lock down my outgoing packets so services such as Samba
 would not broadcast anything to the WAN.

 As such I defaulted outgoing to BLOCK and allowed only certain ports.

 However I then needed to allow ports between computers ie for Samba again.

 When I opened the port on the LAN between computers my router wanted at
 least one IP address for the WAN. I did not want to give it a real address
 so choose 0.0.0.0

 I was really asking ...

 (a) Is it worthwhile setting up my router this way, or am I being paranoid
 :)

I do not think it wise to setup your router that way. Here's a little of 
theory. I apologize if you're familiar with it, but it is necessary for 
latter development.

When in a LAN, a packet will not reach the WAN unless you specify you want it 
to, that includes broadcasts.

An element of an IP address is a number between 0 and 254. 255 is used only 
for broadcasting.

Moreover, rsync and samba, and most daemons take as a paramater the address or 
address range they can accept connections from. An incoming connection from 
the WAN, could not connect to the daemon even if it wanted to.


 (b) Is 0.0.0.0 and invalid IP address (I though it might be) because that
 is what i was looking for to trick my router to send nothing to the WAN

An IP address is meaningful only in conjunction with a mask. 0.0.0.0 with mask 
255.255.255.255 means broadcast to every single IP address that exists. Since 
the mask indicates between which boundaries the IP number can vary (in this 
case every IP address item can vary between 0 and 254).

As a conclusion, this is definitely not what you want to do ! ;-)

So, taking as a hypothesis that you trust everyone on your LAN, here's what 
you should do :
- Et the policy for incomiong connections to BLOCK.
- Unblock the services you actually need the net to access. Plus, in the 
config file of the daemon, specify it should listen to 0.0.0.0
- Allow traffic from your LAN to the WAN (again, if you trust everyone). And 
set up each daemon to only listen to 192.168.0.1/24 (which means only 
addresses that begin with 192.168.0).
- Set up daemons to broadcast on 192.168.0.255

I hope this was clear, I have hardly slept last night !

-- Jonathan

PS : No need to apologize for the delay, I know even gentooists have lives ;)

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Sound issues

2006-05-28 Thread Jonathan Chocron
Hi,

Amarok can use a variety of sound engine (arts, xine, gstreamer), but juk only 
uses aKode. So, the common denominator seems to be arts. Did you install 
arts ? If so, de-activate it and retry, it is known to cause problem since it 
captures the sound device.

Other than this general advice, I'd need more info to help you (what engine 
are you using, do you have sound in KDE (I mean system sounds)...)

-- Jonathan 

Le Dimanche 28 Mai 2006 10:53, Jamie Dobbs a écrit :
 Having just reinstalled Gentoo (AMD64) on my PC and setting up sound
 according to the ALSA How To I can play audio files, in this case MP3's,
 fine in XMMS but when I try them in either Amarok or Juk they are choppy
 and unlistenable.
 Can anyone suggest how I might go about diagnosing and fixing the issue
 that is causing this?

 Thanks

 Jamie

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Modules dependencies problem!

2006-05-27 Thread Jonathan Chocron
Without more info I can't be much help. But here's a pointer, just in case :
The modules init script launches modules-update, which can be launched at the 
command line. The error you have is consistent (and, looking at the code of 
the scrip can only be caused by) modules-update failing.

You should try to launch it yourself at the command-line. You should get some 
output that could be useful.

modules-update has a man page. You should look at that too.

The main cause for this behaviour would be :
- modules-update thinks your modules.conf is not auto generated and refuses to 
overwrite it.
- there is a mistake in one of the files in /etc/modules.d/ . I have seen this 
caused by etc-update, which can sometimes munch files.

Hope this helps,

-- Jonathan

Le Samedi 27 Mai 2006 17:19, El TuZa a écrit :
 Hi guys, I'm having a problem during initialization. It happens that
 50% of the time that I boot my desktop, when Calculating module
 dependencies says Failed to load modules dependencies (with the
 corresponding red exclamation marks) and when it gets to the loggin
 message it never loads kdm, and once I log via console I can't load
 kdm either.
 That's very annoying because the only way I can find now is to reboot
 and see if now it loads modules dependencies (usually the second time
 works fine).
 Did anybody have that kind of problem? What could I do?
 Thanks,
 Tuza


 --
 Fui a hacer el ITV y me dieron la oblea. Junto a ella un paquete de
 Operas y un CD de Pavarotti. Todo encaja a la perfección. Todo, menos
 la marcha atrás.

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] OT 0.0.0.0 security query

2006-05-27 Thread Jonathan Chocron
Le Samedi 27 Mai 2006 11:40, Dave S a écrit :
 Hi all,

 This is a bit OT but I have a netgear router DG834 ADSL firewall router. I
 have restricted my incoming services with ...

 Enable  Service Name  Action  LAN Server IP address  WAN Users  Log
 on bit torrent  ALLOW always  192.168.0.5  Any  Always
  Default  Yes  Any  BLOCK always  Any  Any  Never

 And tightened my outgoing services with ...

 Enable  Service Name  Action  LAN Users  WAN Servers  Log
 on  HTTP  ALLOW always  Any  Any  Always
 on  HTTPS  ALLOW always  Any  Any  Always
 on  POP  ALLOW always  Any  Any  Always
 on  SMTP  ALLOW always  Any  Any  Always
 on  NTP  ALLOW always  Any  Any  Always
 on  FTP  ALLOW always  Any  Any  Always
 on  rsync  ALLOW always  Any  0.0.0.0  Never
 on  GM Port 389   ALLOW always  192.168.0.6  Any  Always
 on  GM Port 1503  ALLOW always  192.168.0.6  Any  Always
 on  GM Port 1731  ALLOW always  192.168.0.6  Any  Always
 on  GM 1024-65K  ALLOW always  192.168.0.6  Any  Always
 on  H.323  ALLOW always  192.168.0.6  Any  Always
 on  Port 1023  ALLOW always  Any  Any  Always
 on  Samba  ALLOW always  Any  0.0.0.0  Always
 on  samba2  ALLOW always  Any  0.0.0.0  Always
 on  samba3  ALLOW always  Any  0.0.0.0  Always
 on  Any(ALL)  BLOCK always  Any  Any  Always
  Default  Yes  Any  ALLOW always  Any  Any

 Some services like rsync and samba I want to keep within my LAN but my
 DG834 insists I give it a least one IP address on the WAN that my service
 can be broadcast to. I selected 0.0.0.0

 Can anyone advise, am I going about this the right way, any comment greatly
 appreciated :)

 Cheers

 Dave

I am not the best net admin on earth, but it seems to me that 0.0.0.0  is  
definitely not a broadcast address. If you want to keep things in your lan, 
you should have something like 192.168.0.255 instead.

Moreover, I do not quite understand what you are trying to do. I had 
approximately the same router (same brand anyway), and it did not block any 
lan-only services. What you're telling it is, for example, to block 
*outgoing* rsync. This should not in any case be blocking an rsync between 
two machines inside your LAN.

I hope this helps, even if i am not quite sure I understand what you're trying 
to do.

-- Jonathan

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Confused with the --oneshot option of portage.

2006-05-24 Thread Jonathan Chocron
Le Mercredi 24 Mai 2006 09:55, Richard Fish a écrit :
 On 5/24/06, Jonathan Chocron [EMAIL PROTECTED] wrote:
  So, here are my questions : With world being autogenerated

 Not sure I would call it 'autogenerated'.  It is more accurate to call
 it the list of packages that you have merged without the --oneshot
 option.

  - If I emerge a library, like xvid with emerge xvid, it will end up in
  world. How do I revert that ? Do I have to emerge -C xvid and then
  emerge --oneshot xvid ?

 That is one way.  You could quicken this with quickpkg xvid; emerge
 -C xvid ; emerge --oneshot --usepkgonly xvid.  Or just edit
 /var/lib/portage/world by hand to remove xvid.

  - If I emerge -Dup world, will the listed packages alkl end-up in world ?

 No.  Only the packages you specifically merge without --oneshot end up
 in world.  Dependancies of world or system packages that show up when
 you add -D/--deep are not added to world...

  - If I first emerge a package, for example kmail, with emerge kmail, and
  later, during an upgrade phase, do an emerge --oneshot kmail, will kmail
  be removed from world ?

 No.  Only unmerging the package, or ediiting the world file, will
 remove it from world.

 -Richard

Thanks, that shed some light !

-- Jonathan


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Question on my USE choiche

2006-05-21 Thread Jonathan Chocron
Le Samedi 20 Mai 2006 12:47, Neil Bothwick a écrit :
 On Sat, 20 May 2006 10:52:30 +0200, Jonathan Chocron wrote:
  I mean that kdelibs should have the arts useflag set. Otherwise uou
  can't have any system sound (either through alsa or oss).

 KDE has an option to use an external player for system sounds, so you can
 still have them without aRts.

No, I tried that. Kde will only use the external player if kdelibs has been 
compiled against arts. It took me a while to figure that out, since I too am 
using an external player for sounds.

If you don't want to use arts, you just have to compile kdelibs against arts, 
and not the rest of kde.

Regards,

-- Jonathan


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] USB devices (dvd writer+scanner)

2006-05-21 Thread Jonathan Chocron
Le Dimanche 21 Mai 2006 21:03, [EMAIL PROTECTED] a écrit :
 Hello,

 I want to use linux for dvd writing and scanning.
 Both my scanner (Canon) and my dvd writer (BenQ) are usb devices.

 How can I know which device files these devices use? Or how can I configure
 a device file for these devices?

 Thank you very much in advance,
 Steffen


 pseiko pseiko # lsusb
 Bus 003 Device 001: ID :
 Bus 002 Device 001: ID :
 Bus 001 Device 009: ID 04a5:1007 Acer Peripherals Inc. (now BenQ Corp.)
 Bus 001 Device 007: ID 04a9:2220 Canon, Inc.
 Bus 001 Device 004: ID 0d49:7010 Maxtor
 Bus 001 Device 002: ID 05e3:0606 Genesys Logic, Inc.
 Bus 001 Device 001: ID :


 pseiko pseiko # cat /proc/bus/usb/devices
[snip]
 //The scanner

 T:  Bus=01 Lev=02 Prnt=02 Port=01 Cnt=01 Dev#=  7 Spd=12  MxCh= 0
 D:  Ver= 1.10 Cls=ff(vend.) Sub=00 Prot=ff MxPS= 8 #Cfgs=  1
 P:  Vendor=04a9 ProdID=2220 Rev= 1.00
 S:  Manufacturer=Canon
 S:  Product=CanoScan
 C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=500mA
 I:  If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=ff Driver=(none)
 E:  Ad=81(I) Atr=03(Int.) MxPS=   1 Ivl=16ms
 E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
 E:  Ad=03(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms

 // I guess this is the dvd writer?

 T:  Bus=01 Lev=02 Prnt=02 Port=02 Cnt=02 Dev#=  9 Spd=480 MxCh= 0
 D:  Ver= 2.00 Cls=00(ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
 P:  Vendor=04a5 ProdID=1007 Rev= 1.12
 S:  Product=USB 2.0 Storage Device
 C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  0mA
 I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
 E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
 E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=125us

Hi,

I am not sure what you mean by device file. If you mean a device node, that 
is a logical file in /dev, you will not find any for the scanner.

1) For the scanner.

First of all, make sure your scanner is supported ! I switched from canon to 
epson because canon scanners were not very welle supported. 

Then, you have to emerge sane-backends with the usb useflag set.

Figure out which backend your scanner use on the sane website 
(sane-project.org, if memory serves).

Then, in the config file of the backend, set the usb id :
usb product id device id

For example, I added 
use 0x4b8 0x110 to /etc/sane.d/epson.conf for sane to detect my epson 1650.

If your scanner is always plugged, you'll need to emerge coldplug and 
rc-update add coldplug default.

You might have permission problems at that stage. Check the permissions 
on /proc/bus/usb/001/007. You must have rw rights to be able to use the 
scanner.

2) For the CD burner.

It seems your cd-burner uses the usb-storage driver. It should then appear 
as /dev/sdX, provided you configured your kernel correctly. It should be 
useable at that address. You can do an lsscsi to figure out what to tell 
cdrecord, but any GUI (k3b...) should be able to detect and use your burner.

I hope this helps,

-- Jonathan


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Masked packages

2006-05-21 Thread Jonathan Chocron
Le Dimanche 21 Mai 2006 16:11, Daniel D Jones a écrit :
 I get the following error:

 [EMAIL PROTECTED]:/var/db/pkg # emerge -uDvat world

 These are the packages that I would merge, in reverse order:

 Calculating world dependencies -
 !!! All ebuilds that could satisfy =net-misc/neon-0.25.3 have been
 masked. !!! One of the following masked packages is required to complete
 your request: - net-misc/neon-0.25.3 (masked by: ~x86 keyword)
 - net-misc/neon-0.25.5 (masked by: ~x86 keyword)

 For more information, see MASKED PACKAGES section in the emerge man page or
 refer to the Gentoo Handbook.
 !!!(dependency required by gnome-base/gnome-vfs-2.14.1 [ebuild])

 !!! Problem resolving dependencies for net-misc/unison
 !!! Depgraph creation failed.


 Curiously, gnome-vfs isn't installed on my system.  (I don't even use
 gnome.) Should I simply unmask neon or is there a better way to handle this
 error?

One of your package must depend on gnome-vfs, and tries to pull it when you 
emerge -Dup world (maybe it's just the upgrade that depends on it, most 
probably because of a new useflag).

You could just unmask neon, but IMHO, gnome-vfs and neon would be installed on 
your system during the upgrade process, and I don not think that's something 
you want.

Try a qdepends -Q gnome-vfs to figure out what package is pulling it, and 
fiddle the useflags accordingly.

BTW, what version of portage are you using ?

Regards,

-- Jonathan


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Question on my USE choiche

2006-05-20 Thread Jonathan Chocron
Le Samedi 20 Mai 2006 08:18, Anthony E. Caudel a écrit :
  However,
 you'll need kdelibs to be compiled against it if you want to hear sounds
  in kde (and I mean sounds generated by kde, not sounds from amarok...)

 Not sure what you mean by this.  Should arts be installed before
 emerging kdelibs?

 Or something like this:  USE=arts emerge kdelibs (which of course
 pulls in arts)?

 Tony

I mean that kdelibs should have the arts useflag set. Otherwise uou can't have 
any system sound (either through alsa or oss). But it should be the only one. 
The rest of the Kde system does not have to be compiled against arts so 
should remain with the arts useflag unset. Moreover, in the control center, 
one should definitely tell kde to use alsa and not arts.

Yes, I know, this amounts to installing a program in the specific view of not 
using it, but it's the only way that I know of to enable system sounds in 
Kde.

-- Jonathan


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] emerge error with sys-apps/apmd

2006-05-20 Thread Jonathan Chocron
Le Samedi 20 Mai 2006 07:03, Jim a écrit :
 On Fri, 2006-05-19 at 19:31 -0400, Allan Gottlieb wrote:
  I think you need to re-emerge libtool
  and then run
 
  fix_libtool_files.sh 3.4.4
 
  allan

 Ahh, thanks for the tip.  I never knew about fix_libtool_files.sh.

 Jim
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 There's no place like 127.0.0.1
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 JimD
 Central FL, USA, Earth, Sol

Oh, that's what it was all about ! I fixed the problem with an ugly symlink (I 
am ashamed).

Well, thanks for the tip !

Jonathan


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Question on my USE choiche

2006-05-19 Thread Jonathan Chocron
Le Vendredi 19 Mai 2006 09:56, Leonardo a écrit :
 Hi all,
 my first post to Gentoo lists!
 I already installed Gentoo some time ago, and want to restart
 now from zero, to see how much I've learnt in the meantime.
 My biggest doubt has always been which USE flags to use.
 I do a lot of home work with multimedia stuff (audio, video...)
 and need also a lot of scientific and programming stuff.
 Tiny spare time is used to study networking and such.
 So I put together a list of flags, that at first sight looks
 huge; here it is:

 USE= cups eds emboss  foomaticdb gdbm  gnome gpm gstreamer
 imlib  libg++ libwww mad  mpeg -nptl  pdflib  spell
 truetype-fonts type1-fonts  X xml aac aalibaccessibility acpi
 alsa arts avi bitmap-fonts bidi bluetooth bonobo bzip2
 cdparanoia cdr crypt cups dbus dga dio directfb dv dvb dvd dvdr
 dvdread emacs emboss encode esd examples ffmpeg fftw flash
 fortran ftp gb gcj gif ginac gphoto2 gps gstreamer gtk gtk2
 guile hal hardened icq idn iee1394 imagemagick imap inifile
 jabber jack java javascript joistick jpeg jpeg2k kde
 kdeenablefinal kdexdeltas libcaca lirc lm_sensors matroska
 mikmod mime ming mng mmx motif mozilla mp3 msn mysql mysqli nas
 ncurses offensive ogg openal opengl osc oss pcmcia pdf perl php
 png prelude python qt quicktime readline ruby samba scanner sdl
 slang sockets socks5 sox speex spell sse sse2 ssl svg tcltk tiff
 usb truetype unicode v4l vcd vorbis wifi win32codecs wmf
 wxwindows xine xinerama xml xml2 xmms xosd xpm xprint xv xvid
 yahoo zlib


 First question: is it a good starting point or is it
 excessive/unneccessary?

That's a little excessive. For example, you have cups twice.

The thing is, useflags are now cascading, and you don't seem to use that 
feature very much. For example, truetype-fonts, type1-fonts are included in 
your make.default. Hence, they are already present opn your system, there is 
no need to specify them twice.

Moreover, some of the usflags you specify are definitely local useflags. For 
example, libg++ affects only postgresql. It should not be in your make.conf, 
since it makes it very hard to read. (Moreover, libg++ is enabled by default 
in the make.defaults).

You have a typo : aalibaccessibility .

You might want to avoid putting arts in your useflags, since arts is 
definitely the worst thing that can happen to your sound system (No flamewar 
intended, even the kde devs have decided to take it out of KDE4). However, 
you'll need kdelibs to be compiled against it if you want to hear sounds in 
kde (and I mean sounds generated by kde, not sounds from amarok...)

So, to sum up, what I would do is :
1) Put USE= and do an emerge --info to see which useflags are enabled by 
default.
2) Ask myself the question : Do I really want *any* application running on my 
computer to have feature foo.  If the answer is no, the useflag should be 
in /et/portage/package.use
3) Organise the useflags in make.conf by theme : For example

## System
USE=alsa mmx sse sse2
## Desktop environment :
USE=${USE} gnome kde kdeenablefinal
...

I find this more readable than a long USE=... list.

 If I avoid putting things in does it mean that if I add them in
 a second moment probably some of the installed stuff needs to be
 recompiled?

If you add a useflag, there should not be any problem. However, the app will 
make use of the new feature only if it has been recompiled.

If you remove a useflag, from a library for example, the apps linked to that 
library can break. You'll need to recompile the apps.

Anyway, if you change your useflag one way or the other, you should :
1) emerge --newuse --ask --verbose world
2) revdep-rebuild

 Thanks, Leo

Beware of automatic useflags :
- Portage  2.1 (stable)
Beware that those versions of portage have automatic useflags enabled. For 
example, if you emerge mysql, the mysql uselfag will be turned on globally. 
If you unmerge it, the useflag will be turned off (except if it is mentionned 
in any of the config files).

- Portage  2.1 (unstable, but really, works very well) does not have that 
kind of behaviour.

I hope this was clear enough,

-- Jonathan

P.S : You seem to have forgotten nsplugins ;)
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] New USE Flags, Emerge -e world -- Broken systems -- PLEASE HELP

2006-05-18 Thread Jonathan Chocron
Le Jeudi 18 Mai 2006 10:22, Neil Bothwick a écrit :
 On Thu, 18 May 2006 06:48:44 +0200, Jonathan Chocron wrote:
  Yes, USE= is a good start. However, one has to take into account that
  portage adds use flags while going through the emerge process. For
  example, if you install mysql in order to use it with amaroK, mysql
  would, after that emerge be turned on as a global useflag.

 Dynamic USE flags have been removed from portage 2.1, thankfully.

That's exactly right, but I was assuming he used the stable version of 
portage. I now use unstable, precisely because they removed that feature !

Cheers,

Jonathan


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Uninstalling portage

2006-05-17 Thread Jonathan Chocron
Le Mercredi 17 Mai 2006 05:32, Rennie deGraaf a écrit :
 I am trying to build a number of minimal Gentoo images without portage
 installed.  The approach I was taking was to build a master image with
 all the software that I need according to the standard Gentoo
 installation instructions, and then remove portage and create the
 minimal images.  If I ever decide that I need to install new software or
 upgrade something, I'll make the changes to the master and generate new
 minimal images.

 My question is, how do I correctly uninstall portage?  My main concern
 is the several hundred megabytes taken up by /usr/portage,
 /var/cache/edb, /var/db/pkg, /var/lib/portage and wherever else portage

/var/lib/portage takes up only 8.0Ko ! Are you sure you can't spare that ? ;-)

 stores data; I'm not really concerned with the binaries, but would
 prefer to remove them as well, just to be tidy.  Will emerge -C
 portage clean up everything safely, or will I have to clean up some
 directories manually?

 For that matter, what are all the directories used for data by portage,
 that I could delete on a system that doesn't use portage?

 Thanks,
 Rennie deGraaf

The portage program itself does not take up that much space. It's only python 
scripts and most of them are pre-compiled.
The main space hoggers linked to portage are :
- /usr/portage (739M), including /usr/portage/distfiles (228M)
- /var/tmp/portage (should be empty unless you specified keep or interrupted 
an emerge).
- /var/cache/edb (100M)
- The overlays if you have any (/usr/local/portage by default),
- The PKGDIR, if you have any (/usr/portage/packages by default).

Even /var/db/pkg takes up only 80M on my system, and that is, with kde-meta 
merged.

As has been said, emerge -C portage will NOT remove any of those directories 
as they are not filled during portage's merge to the main tree. However, you 
can remove them manually.

You might want to know that you are going to get errors if you remove the 
contents of /usr/portage. For example, env-update will not work as an 
environment variable wants to import the tree. I think it just wants to 
import the profile, though, so you might be able to remove the various 
categories. Or, you could edit the file responsible for this in /etc/env.d.

Regards,

-- Jonathan


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] New USE Flags, Emerge -e world -- Broken systems -- PLEASE HELP

2006-05-17 Thread Jonathan Chocron
Le Mercredi 17 Mai 2006 18:01, Jeremy Olexa a écrit :
 Timothy A. Holmes wrote:
  On 5/17/06, Timothy A. Holmes [EMAIL PROTECTED] wrote:
  Hi folks - I have a major problem brewing here im afraid:
 
  I have several systems that I had originally built with the Gentoo
  installer disk -- As such they have a very large group of use flags,
 
  and
 
  a fairly large genkernel.  In wanting to lean them out and optimize
 
  them
 
  for running, went in, rebuilt the kernel, and apparently with a bad
 
  genkernel does not use USE flags, so, that's not related, probably.
  Someone will tell if I'm wrong.
 
  understanding of how portage and the USE flags interact, removed all
 
  the
 
  use flags, changed them to:
 
  USE=-*
 
  Heh, once I tried that... Its better leave it empty than putting this.
  You CAN put -*, but then you would have to create a fairly large
  packages.use in order to get a working system. That includes every
  package listed in emerge -pv world with an entry.
 
  Remove that option, start with minimal USE flags and reemerge world.
  You're lucky you didn't try emerge -e system after that.
 
  and ran emerge -e world.  The processes have all failed, and now I
 
  have
 
  broken systems -- for example, eterm wont start at all, nor will it
  build on a re-install, firefox is messed up (the fonts look funny)
 
  and
 
  im starting to panic.  Is there any way short of rebuilding these
  systems to get things working right again?
 
  You're lucky that you still have a working system after all. You even
  get a working portage, so, nothing to worry about. Fix your flags and
  reemerge world.
 
  --
 
  [Timothy A. Holmes]
 
  Turns out all 5 systems are totally broke - I will be rebuilding all of
  them --
 
  If anyone can suggest a good set of minimal use flags, I would be most
  thankful
 
  Tim

 I would start with the defaults, eg. leave USE= (blank) in make.conf
 and then start editing package.use to modify them from there. type
 emerge --info to see ALL of the use flags that are being used

Yes, USE= is a good start. However, one has to take into account that 
portage adds use flags while going through the emerge process. For example, 
if you install mysql in order to use it with amaroK, mysql would, after that 
emerge be turned on as a global useflag.

If one wants to keep a clean system, they have to compensate for this 
behaviour, and check, at the end of an emerge process*, that the list of 
useflags has remained unchanged.

*(NOTE : not at the end of the merge of every single package, but at the end 
of the merge of one list of package, since emerge reads the USE variable once 
at the beginning of the merge process, even if there are 20 packages on the 
list).

Oh, and unless you are a developper, there are some defaults useflags you can 
turn off, like fortran, for example.

One last thing, I would suggest using euse, which is part of gentoolkit, to 
check the meaning of a useflage. It searches both use.desc and 
use.local.desc.

-- Jonathan

  Timothy A. Holmes
  IT Manager / Network Admin / Web Master / Computer Teacher
 
  Medina Christian Academy
  A Higher Standard...
 
  Jeremiah 33:3
  Jeremiah 29:11
  Esther 4:14

 --
 Jeremy Olexa
 ([EMAIL PROTECTED])
 Office: EE/CS 1-201
 CS/IT Systems Staff
 University of Minnesota


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] how to check dependencies for sloted apps?

2006-05-17 Thread Jonathan Chocron
Le Mercredi 17 Mai 2006 22:58, Martins Steinbergs a écrit :
 hi,

 I decided to clean my Gentoo install and I started with
 'emerge --prune --pretend'
 what gave me some list of apps. Then I did equery depends pkgname for
 each package, but problem is with sloted ones such as gtkhtml, autoconf, db
 and a lot from Gnome tree.
 How to specify (syntax) package version to search for with 'equery depends'
 if this is suported?

Unless you really now what you are doing, I would suggest steering clear of 
autoconf, since a lot of packages require different version of autoconf.

 qdepends gives me this output, I cant understand is this broken or both
 versions are needed by php, xorg and kmail?

 mar martins # qdepends -Q gtkhtml-1.1.10-r1
 depends: i'm such a fatty, could not
 eat_file(/var/db/pkg/dev-lang/php-5.1.4/DEPEND)
 depends: i'm such a fatty, could not
 eat_file(/var/db/pkg/x11-base/xorg-x11-7.0-r1/DEPEND)
 depends: i'm such a fatty, could not
 eat_file(/var/db/pkg/kde-base/kmail-3.5.2-r3/DEPEND)

 mar martins # qdepends -Q gtkhtml-3.10.1
 depends: i'm such a fatty, could not
 eat_file(/var/db/pkg/dev-lang/php-5.1.4/DEPEND)
 depends: i'm such a fatty, could not
 eat_file(/var/db/pkg/x11-base/xorg-x11-7.0-r1/DEPEND)
 depends: i'm such a fatty, could not
 eat_file(/var/db/pkg/kde-base/kmail-3.5.2-r3/DEPEND)

 I'll be glad to see your input. Maybe out there is some better script?

 martins

I have kmail installed, and I do not have gtkhtml installed. Plus, I just 
checked, kamil does not depend on gtkhtml.
This error just means that the script could not check dependencies for that 
specific package. However, you should see a list of package that depend on 
the package you input on the command line.

For example : qdepends -Q qt outputs :

[snip]
kde-base/konsole-3.5.2-r1
kde-base/ksplashml-3.5.2
kde-base/kdm-3.5.2
kde-base/libkmime-3.5.0-r1
kde-base/kpdf-3.5.2
kde-base/kpersonalizer-3.5.2
depends: i'm such a fatty, could not 
eat_file(/var/db/pkg/kde-base/kmail-3.5.2-r1/DEPEND)
kde-base/kdeaddons-docs-konq-plugins-3.5.2
kde-base/mimelib-3.5.1-r1
kde-base/kde-i18n-3.5.2-r1
[snip]

I think this simply means that the script does not know whether or not the 
package depends on qt.

If that is all the output you get, I think you can remove gtkhtml.

Anyway, for non critical apps, this is what I do whan I want to clean the 
system :
- qdepends -Q $package
- Oh, great, nothnig seems to depends on that !
- qpkg $package
- emerge -C $package
- revdep-rebuild

I hope this helps !!

-- Jonathan


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] bash-3.* ignores the first press of Shift+M

2006-05-17 Thread Jonathan Chocron
Le Mercredi 17 Mai 2006 22:44, Benno Schulenberg a écrit :
 Hi all,

 This is absurd, but when in bash-3.1_p17 I press Shift+M, the M
 only appears the moment I press another key.  This happens both in
 Konsole and on a VT.  And also in xterm and rxvt.

 It happens also in bash-3.1_p14 and bash-3.0-r14.  And sash-3.7-r1.
 But _not_ in bash-2.05b-r11, nor in tcsh-6.14-r3, nor in zsh-4.2.5.
 Also typing in vim or nano works fine, and in KMail and KWrite and
 Firefox and Konqueror.  So this is purely a problem of the bash-3.*
 series.

 I tried different CFLAGS (-O2 instead of -Os), a different compiler
 (gcc-3.3.6-vanilla instead of 3.4.6-hardened), no difference.  I've
 tried starting bash with '--noprofile --norc', even with 'env -i',
 it all makes no difference: any first press of Shift+M does not
 show an M; only the next keypress makes the M appear.

 Is anyone else seeing this?  Or am I going bananas?

 Benno

I have come across that kind of behaviuour when I was playing with unicode 
settings. It happened when I was using a unicode console with a non unicode 
keymap. However, it only happened on accented characters (the ones composed 
with a dead key of course, but also all the other ones !).

The thing I can tell you is that I have no such problem with bash-3.1_p16, 
compiled with gcc-3.4.5-r1 and glibc 2.3.6-r3. All three of them have 
the nls usflag enabled.

Are you sure there are not any app on your system that capture this specific 
combination ?

What keymap are you using ?


-- John


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Spam, spam, spam

2006-05-16 Thread Jonathan Chocron
Le Mercredi 17 Mai 2006 01:03, JimD a écrit :
 Is there a good spam filter out there?  One that is not a pain to setup
 and use?

 My current setup is postfix, procmail and bogofilter.  Maybe I haven't
 trained bogofilter enough or something.  After three weeks, I have yet
 to have one spam marked as spam.  It gets marked unsure, for which I
 have procmail stick those in a maildir folder.

 I want something easy to setup and use.  Right now I have a Spam
 maildir.  Under that folder I have mark-bad, mark-good and unsure.  I
 move email to mark-bad/mark-good as needed and have a cronjob that tells
 bogofilter to check those folders and update.

 What is really frustrating is that I keep getting the same spam in my
 inbox.  Some viagra junk.  I have told bogofilter it is spam about 10
 times in the last 2 weeks.

 So, what is a good _home user_ setup?  I don't want to use the built-in
 junk filter of Thunderbird because I get my emails over IMAP from
 different locations, so I want 1 spam solution.

 Danka for any help :-)

 Jim
 --
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 There's no place like 127.0.0.1
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 JimD
 Central FL, USA, Earth, Sol

I'd go with spamassassin. It is quite easy to set up, features auto-learning, 
and is very efficient (Ever since I turned it on, I haven't got a single 
spam, and I have so few false positive that I just tell it to trash the mail 
it marks as spam).

If I may suggest two things :
- Use spamassassin through its daemon (spamd), it's faster.
- You should consider dropping procmail in favour of courier-maildrop, since 
you seem to be using courier-imap. I find it more flexible and better 
integrated with the imap server. 

-- Jonathan

(Note : that is just a suggestion, I am not looking to start a flamewar or 
anything. I have used procmail for years and was very happy with it !)


-- 
gentoo-user@gentoo.org mailing list