[gentoo-user] Re: [OT] Interrogate network for devices

2008-02-11 Thread reader
Grant Edwards <[EMAIL PROTECTED]> writes:

> On 2008-02-11, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>> [EMAIL PROTECTED] writes:
>>
>>> I've recently switched from DSL to Cable connection but still have
>>> both working currently.
>>
>> I've snipped all responses but carefully read through them.  I think I
>> didn't provide enough info at the outset.
>>
>> I see now that this cable modem has no ethernet address as several
>> posters have suggested.

It turned out to be a simple matter of cycling the various
modem/router PC s in the right order.  Once I got the help desk it
took about 2 minutes to get things resolved.  It was setup right just
needed to recycle the Modem with router off.  

The cable modem acquires an IP address by dhcp from comcast but also
internalizes the MAC of the NIC in the PC, so if you change the MAC
(By inserting a router in between, with a different MAC in this case)
then the modem continues to try to connect to the MAC it has
internalized.   It must be rebooted to acquire the new MAC (of the
router in this case).

Once that happens the Netgear routers (either one) connect with no
problems.

> It almost certainly has an Ethernet address.  It might not,
> however, have an IP address.

As you may have guessed I meant IP address.  That is, although the
Modem connects to the PC by ethernet wire, it has no inward facing
address.  This was explained by at least two other posters. (Something
I'd failed to realize. I expected there to be an inward facing IP)

At any rate all is now well, and thanks to all for the tips and help. 

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: [OT] Interrogate network for devices

2008-02-11 Thread reader
[EMAIL PROTECTED] writes:

> I've recently switched from DSL to Cable connection but still have
> both working currently.

I've snipped all responses but carefully read through them.  I think I
didn't provide enough info at the outset.

I see now that this cable modem has no ethernet address as several
posters have suggested.

Listing models may help the discussion so here they are:

The Comcast Cable modem: Scientific Atlanta-DPC2100RC (has MAC listed
on the sticker)

Two different Netgear Router/firewalls have been tried.  Same router
but older and newer models:

Older Netgear: 
FVS318 (Says Cable/DSL PROsafe VPN Firewall FVS318 across the front)

Newer Netgear: 
FVS318v3  (Says Cable/DSL PROsafe VPN Firewall FVS318 across the front)

The newer one is a couple of years newer and purchased about 1 yr ago.

It may just be software differences but they do have somewhat
different interfaces.  The older one is using the latest software it
is capable of loading, as is the newer one, but in the later case the
software is a newer version than the old one supports.

One curious thing here is that both of these Netgear routers have at
one time or another been connected to a Comcast provided modem and
worked fine.  In both of those cases the Netgear using its connection
wizard, simply found and ID'ed the cable modem... and just worked from
there on.  I only setup the lanside addressing since I prefer all
static addresses inside.

Ditto for DSL... again both Netgear routers have worked with DSL
routers and again the connection was established by simply running the
connection wizard.

In the current case, neither of these routers was able to just
identify and connect to the cable modem or internet through it.  And
in both cases the wizard ends up saying the connection type is STATIC
and offers to accept the static addresses from user.  I doubt the
addressing is really STATIC.

I think my next step here will be to take the IP address and
Nameserver from IPconfig (or netstat) on the windows box that will
connect using the Cable modem, and see if those addresses will work
when inserted into the netgears as static outside addresses to connect
to.  

If that works, It may hold until a new address is issued for whatever
reason from comcast... and I may get some help from them by then.

I will report back if there is any interest?

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] [OT] Interrogate network for devices

2008-02-09 Thread reader
Sorry for the OT, but unable to raise anyone at comcast right now.

I think I recall having read somewhere that one can do something to
discover what devices are on a network (Home lan). And what there
addresses are.

I've recently switched from DSL to Cable connection but still have
both working currently.

I had assumed my netgear-firewall/router would find the Cable modem and
be able to talk to it, but that isn't happening.

I can connect the cable modem direct to a pc and using the software
that comes with it establish a connection to the internet, but I
wanted to have that firewall/router in between the cable modem and home
pcs. 

But that is only on a windows machine.

The help file that comes with the modem provides no information about
how one talks to the modem.  No ethernet address is supplied.  However
it is an ethernet device and connects to the pc with ethernet cable.

Apparently comcast felt it wiser to provide no details and let its
software do the connecting.

But can't I learn the IP address (inward facing) of the modem?  The IP
from outside is of course visible to ipconfig, when connecting to
internet from a windows machine thru the cable modem, but I see
nothing that indicates what its lanside ethernet address is.

Its obviously connecting to the pc with dhcp so setting the netgear to
listen for dhcp seemed like it should work... but doesn't.

I thought I would be able to connect to the cable modem with a browser
and maybe learn enough to make the netgear router/firewall connect to
it, or one of my gentoo boxes, so have tried a few of the
semi-standard addresses  other ethernet hubs/routers etc default to, like
192.168.0.1, 192.168.1.1 and a few more.

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: [OT] quicktime from linux

2008-01-23 Thread reader
Brian Marshall <[EMAIL PROTECTED]> writes:

> net-www/mplayerplug-in

Thanks... downloading now

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: [way OT] Firefox qt download file names

2008-01-23 Thread reader
Iain Buchanan <[EMAIL PROTECTED]> writes:

> You probably don't want to give away the site, but if you get stuck post
> some of the source that you think might be relevant, and we can go from
> there.

No, but I thought it might be easier to get the file out of wherever
firefox does this... is that not a good way to go at it?

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] [OT] quicktime from linux

2008-01-23 Thread reader
Wanting to be able to see online videos that want quicktime to be
installed, what applications do I need to emerge?

Googling like:

site:gentoo.org display quicktime in firefox

Turns up dozens of hits but it appears very many of them are really
just showing the USE flag quicktime and not about the search string at
all.

Any tips?

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] [way OT] Firefox qt download file names

2008-01-23 Thread reader
My sister has posted some video of my nieces wedding online for the
family to view.

When I hit the site (on WindowsXP) my browser (firefox) displays it in
quicktime.  I don't see any opportunity to download the file and I
hate to have to just record it from the screen.  I'm pretty sure
firefox is downloading the video somewhere so I thought I might be
able to get that file somehow.

Can anyone coach me at all as to how to go about that?

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: Any one using www-apps/online-bookmarks

2008-01-23 Thread reader
[EMAIL PROTECTED] writes:

> And I guess... not surprisingly the bookmark page now works too?

One lingering mysql command that is printed when the bookmarks page
configuration steps is gone through:

>From bookmarks page:
[...]
  After completing the configuration, create useraccounts with the
  following MySQL command:

(wrapped for mail) 
  mysql> INSERT INTO user (username, password) VALUES 
  ('johndoe', MD5('johndoes_password'));

If I use that command (filling in the johndoe and johndoes_password
part it fails with this error:

   ERROR 1046 (3D000): No database selected

Apparently the syntax is not complete?

And trying:
  mysql> help INSERT INTO

gets me: 
  Nothing found
  Please try to run 'help contents' for a list of all accessible topics

Going on to that help screen doesn't appear to offer anything very helpful.

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: Any one using www-apps/online-bookmarks

2008-01-23 Thread reader
"James Ausmus" <[EMAIL PROTECTED]> writes:

> On Jan 22, 2008 2:02 PM,  <[EMAIL PROTECTED]> wrote:
>> I may have spoken too soon.  Re-installing mysql got me to where I can
>> login to the console but the suggested commands still fail:
>>
>>   # mysql -uroot -p
>>   Enter password:
>>   Welcome to the MySQL monitor.  Commands end with ; or \g.
>>   Your MySQL connection id is 16
>>   Server version: 5.0.44-log Gentoo Linux mysql-5.0.44-r2
>>
>>   Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
>>
>>   mysql> create database bookmarks;
>>   ERROR 1006 (HY000): Can't create database 'bookmarks' (errno: 2)
> 
>
> Hmm - odd. What does the output of:
> ls -al /var/lib/mysql

drwx--  2 mysql mysql 1752 Jan 22 15:55 mysql
drwx--  2 mysql mysql   48 Jan 22 15:55 test

It struck me odd that /var/lib/mysql has another directory inside with
the same name... but that was how the previous install looked as well.

> Also, what do you get in the MySQL console if you do a:
> show databases;

  mysql> show databases;
  ++
  | Database   |
  ++
  | information_schema | 
  ++
  1 row in set (0.03 sec)

> Also, try doing the create database procedure as previously outlined,
> then do a tail -n100 /var/log/mysql/mysql.err and
> /var/log/mysql/mysqld.err and /var/log/mysql/mysql.log - anything
> relative showing up in there? Maybe post the output of the above
> commands, as well as (tbz2'd, if they're large) attaching the
> /var/log/mysql/* files - might help us track this down...

My first impulse was to look there as well but strangely nothing was
being written about those errors.  So in response to your post I
thought I would clean out those logs with rm -f /var/log/mysql/my*

Then restart mysql.

Surprisingly after doing those steps.  It now works.

Apparently you've backhandedly fixed it simply with a request for
information... : ).

Now smooth as silk:

   > mysql -uroot -p
  Enter password: 
  Welcome to the MySQL monitor.  Commands end with ; or \g.
  Your MySQL connection id is 1
  Server version: 5.0.44-log Gentoo Linux mysql-5.0.44-r2
  
  Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
  
  mysql> create database bookmarks;
  Query OK, 1 row affected (0.00 sec)
  
  mysql> grant ALL on bookmarks.* to 'bookmarkmgr'@'localhost' identified by
  -> '';
  Query OK, 0 rows affected (0.02 sec)
  
  mysql> flush privileges;
  Query OK, 0 rows affected (0.00 sec)

And I guess... not surprisingly the bookmark page now works too?

Reminds me of a comment a neighbor made yrs ago.  

I was a sort of neighborhood fixit guy.  Pretty handy with my hands
from a lifetime of bluecollar work and being raised as a kid in the
country.

Neighbors would call me when their fixit chores got out of there
league.  This one neighbor, on having me come over for an electrical
problem, swore things at his house started just working when he called
me to come over... said they'd see me coming and just know they'd have to
work shortly.

That appears to be what happened here.

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: Any one using www-apps/online-bookmarks

2008-01-22 Thread reader
I may have spoken too soon.  Re-installing mysql got me to where I can
login to the console but the suggested commands still fail:

  # mysql -uroot -p
  Enter password: 
  Welcome to the MySQL monitor.  Commands end with ; or \g.
  Your MySQL connection id is 16
  Server version: 5.0.44-log Gentoo Linux mysql-5.0.44-r2

  Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

  mysql> create database bookmarks;
  ERROR 1006 (HY000): Can't create database 'bookmarks' (errno: 2)

Neither the help offered in the console nor man mysql appear to be
very helpful in figuring out why that command fails.

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: Any one using www-apps/online-bookmarks

2008-01-22 Thread reader
Etaoin Shrdlu <[EMAIL PROTECTED]> writes:

> On Tuesday 22 January 2008, [EMAIL PROTECTED] wrote:
>
>> > OK, this one is easy to fix:
>> >
>> > login in to MySQL as root:
>> >
>> > mysql -uroot -p
>> > 
>>
>> That part fails here:
>>  # mysql -uroot -p
>> Enter password: 
>>
>> ERROR 1045 (28000): Access denied for
>> user 'root'@'localhost' (using password: YES)
>
> Sorry for doubting and probably stating the obvious, but the database 
> user named "root" has nothing to do with the system user named "root". 
> What root password did you enter?

I set up some stuff mnths ago trying to learn to use bacula.  I don't
really recal what all I might have done.

I just zapped /var/lib/mysql and emerge -vC mysql, followed by
emrege -vD mysql  Once done I followed the advice given:
  emerge --config =dev-db/mysql-5.0.44-r2"

Things are working like expected now.

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: Any one using www-apps/online-bookmarks

2008-01-22 Thread reader
"James Ausmus" <[EMAIL PROTECTED]> writes:

> On Jan 21, 2008 7:49 PM,  <[EMAIL PROTECTED]> wrote:
>
> 
>
>> So I tried adding a passwd leaving the rest as is.. That failed with:
>>   Access denied for user 'bookmarkmgr'@'localhost' (using password: YES)
>>
>> (YES was not what I inserted so I guess its just saying a passwd was used)
>>
>> I'm not really sure what to do about mysql but at least it appears the
>> bookmark pkg is trying to work.
>>
>
> OK, this one is easy to fix:
>
> login in to MySQL as root:
>
> mysql -uroot -p
> 

That part fails here:
 # mysql -uroot -p
Enter password: 
 
ERROR 1045 (28000): Access denied for 
user 'root'@'localhost' (using password: YES)

==

But trying from my user shell:
I at least can log in.  

   > mysql
   Welcome to the MySQL monitor.  Commands end with ; or \g.
   Your MySQL connection id is 9
   Server version: 5.0.44-log Gentoo Linux mysql-5.0.44-r2
  
   Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

But when I try to run the command (wrapped for mail):

  mysql> create database bookmarks;
  ERROR 1044 (42000): Access denied for 
  user 'reader'@'localhost' to database 'bookmarks'

The help offered inside the mysql shell doesn't appear very helpful to
me.

But apparently I need to start over some how.

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: Any one using www-apps/online-bookmarks

2008-01-21 Thread reader
"James Ausmus" <[EMAIL PROTECTED]> writes:

> Haven't used online-bookmarks before myself, but it soulds like Apache
> isn't configured properly for PHP scripts - try *adding* the following
> to your /etc/conf.d/apache2 file in the APACHE2_OPTS line (inside the
> double-quotes):
> -D PHP -D PHP5
>
> and then do:
> /etc/init.d/apache2 stop && /etc/init.d/apache2 start
> (I've found that sometimes a "/etc/init.d/apache2 restart" tries to
> start the apache2 processes again before the old processes have fully
> closed out, so will sometimes error out...)

Thanks, I did get further along doing that.

I already had this in there:

APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D LANGUAGE -D SSL 
  -D SSL_DEFAULT_VHOST  -D PHP5"

So I just stuck in the -D PHP and restarted.

Now I see a real page as described in the documentation... However,
now I'm running into some kind of conf problem with mysql.

I haven't been using it for anything (although its been installed for
some time) so I may have to get that configured properly.

I left:
  Hostname: [localhost]
  username: [bookmarkmgr]
  Password: [left blank on first try]
  Database-Name [bookmarks]

That fails with:
  Access denied for user ''@'localhost' to database 'bookmarks'

So I tried adding a passwd leaving the rest as is.. That failed with:
  Access denied for user 'bookmarkmgr'@'localhost' (using password: YES)

(YES was not what I inserted so I guess its just saying a passwd was used)

I'm not really sure what to do about mysql but at least it appears the
bookmark pkg is trying to work.

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: Any one using www-apps/online-bookmarks

2008-01-21 Thread reader
"Jason Carson" <[EMAIL PROTECTED]> writes:

> You may have to emerge php with the "apache2" USE flag if it still doesn't
> work.

When I emerged the bookmarks package it pulled in php and I see
apache2 was one of the useflags used.

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Any one using www-apps/online-bookmarks

2008-01-21 Thread reader
I'm having a little trouble getting www-apps/online-bookmarks set up.

Near as I can tell there is literally no help installed when you
install this package A few readmes with a URL to an online help
site:
  http://www.frech.ch/online-bookmarks/installation.php

However, I'm not seeing the behavior described there and it appears
there is no other resource for getting started.

You are told to aim your browser at: 
  http://www.yourserver.com/online-bookmarks/

When I fill in my server I see a listing like one might see in a file
browser.  

The online site claims it will be linked to an install process but
that is true here.

Its a file listing of a bunch of php files but opening the install.php
does not lead to anything usefull... Instead you see a php text file
that doesn't really work as described.

I'm guessing something in the my php setup/config is not done right.

However I've done no config of php.  I just installed the
online-bookmarks/ which pulled in php stuff.  I didn't see messages
about configuring it. 

Anyone here using this package that can provide a few tips?

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: [OT] Online bookmark keeper with good merge routine

2008-01-20 Thread reader
"A. Khattri" <[EMAIL PROTECTED]> writes:

> On Wed, 16 Jan 2008, [EMAIL PROTECTED] wrote:
>
>> I've been using sitebar as my online bookmark keeper for quite a while
>> but seem to have trouble merging in new bookmarks from multiple
>> machines ... what is supposed to be a merge turns into a replace
>> operation or so it seems .. but not always.
>
> What about Google Browser Sync?
>
> http://www.google.com/tools/firefox/browsersync/

I've got to report that this appears to be nearly worthless and does
nothing like what it claims.

After installing it on 5 browsers, every time I open a different one I
still have a different set of bookmarks.  I synced them all several
times now... still after using one... and making changes, when I open
a different one it is not setup like the last one.  Even manually
syncing it does not result in the same bookmarks.

So I guess I'd have to say googles'  claims are mostly baloney


-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: Daniel Robbins' come back ?

2008-01-19 Thread reader
Enrico Weigelt <[EMAIL PROTECTED]> writes:

> Part of the problmem might be too many quick+dirty hacks, another
> part's the philosophy of taking evrything as it comes from the 
> upstream. It's not trivial to get out of this ;-o

First off, your comments seem to be some of the more sensible here.
Not that others are senseless just not much actual `what to do'
content has come through.

I'd hazard a guess that you may have hit a bigger problem than your
comment indicates.  I'm pretty sure there would be great pressure to
use `quick and dirty hacks' to get stuff done when devs are nearly
always overworked.

> One little step out could be the OSS-QM project (http://oss-qm.metux.de/)
> It collects fixes for a lot packages and makes them accessible in 100% 
> automated ways. So in a way it can be seen as an kind of overlay against 
> the upstream. Most of the patches are things that upstream's tend to forget 
> but importand for fully automated builds (eg. proper relocation, clean 
> feature switching, fixing buildfiles, pkg-config, etc) - they do NOT harm 
> the core functionality. So exactly what the vast majority of distro's 
> patches do, but in generic (distro agnostic) ways.

The theory sounds very sensible.
After looking at that page and some of the links briefly it wasn't
clear to me where this is being used.  I see a very short list of pkgs
being worked on.. and guessing it is because of being short handed
there. 

But what wasn't clear is how work comes in and where it goes when it
goes out.

Are some distros offering these overhauled pkgs or what?
(Please excuse me if I'm missing obvious things on the pages)

PS-The `help' link under `navigation' brings up what appears to be
something it is not intended to, and may even be a hack on those pages
or something.  (The content that comes up may even be sort of off the
wall.)

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: [OT] Online bookmark keeper with good merge routine

2008-01-19 Thread reader
"A. Khattri" <[EMAIL PROTECTED]> writes:

> On Wed, 16 Jan 2008, [EMAIL PROTECTED] wrote:
>
>> I've been using sitebar as my online bookmark keeper for quite a while
>> but seem to have trouble merging in new bookmarks from multiple
>> machines ... what is supposed to be a merge turns into a replace
>> operation or so it seems .. but not always.
>
> What about Google Browser Sync?
>
> http://www.google.com/tools/firefox/browsersync/

What about across browsers other than firefox?  Like Konqueror or
opera.

Anyone with experiece using some online bookmark manager that stores
and merges bookmarks regardless of what browser is in use?

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Drafting or simple blue print creation

2008-01-18 Thread reader
Searching with `eix -S draw'
Dredges up a lot of hits I'm looking for something to help me draw
a simple mechanical drawing.  Just a wooden rack for a 5th wheel flat
top trailer.

The only linux type tool I've ever used for something like that was
xfig and that was several yrs ago.  Is xfig still the best thing for
something like that?

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: [OT] Online bookmark keeper with good merge routine

2008-01-18 Thread reader
[EMAIL PROTECTED] writes:

>
> Hehe... no if I only knew what ftp/webDav was ...
Hehe... now if I only knew what ftp/webDav was ...
^^^

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: [OT] Online bookmark keeper with good merge routine

2008-01-18 Thread reader
Yahya Mohammad <[EMAIL PROTECTED]> writes:

> From: Yahya Mohammad <[EMAIL PROTECTED]>
> Subject: Re: [OT] Online bookmark keeper with good merge routine
> Newsgroups: gmane.linux.gentoo.user
> To: gentoo-user@lists.gentoo.org
> Date: Fri, 18 Jan 2008 22:09:39 +0400
> Message-ID: <[EMAIL PROTECTED]>
>
>> What about Google Browser Sync?
>>
>> http://www.google.com/tools/firefox/browsersync/
>>
>
> If you're the paranoid type, and have your own server with https and
> webdav, this extension will do the job:
> https://addons.mozilla.org/en-US/firefox/addon/2367

Hehe... no if I only knew what ftp/webDav was ...

Googling...

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: [OT] Online bookmark keeper with good merge routine

2008-01-18 Thread reader
"A. Khattri" <[EMAIL PROTECTED]> writes:

> On Wed, 16 Jan 2008, [EMAIL PROTECTED] wrote:
>
>> I've been using sitebar as my online bookmark keeper for quite a while
>> but seem to have trouble merging in new bookmarks from multiple
>> machines ... what is supposed to be a merge turns into a replace
>> operation or so it seems .. but not always.
>
> What about Google Browser Sync?
>
> http://www.google.com/tools/firefox/browsersync/

Thanks, yeah that looks interesing.  The intro for anyone who hits
this thread

  Google Browser Sync for Firefox is an extension that continuously
  synchronizes your browser settings – including bookmarks, history,
  persistent cookies, and saved passwords – across your computers. It
  also allows you to restore open tabs and windows across different
  machines and browser sessions. For more info, please visit our FAQ.

Where it says FAQ above is actually a link to here:
http://www.google.com/tools/firefox/browsersync/faq.html

Do you use this now.  If so has it seemed pretty handy to you?


-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: [konqueror] Can't invoke and editor when `view source'

2008-01-16 Thread reader
Håkon Alstadheim <[EMAIL PROTECTED]> writes:

>> Can you start emacs without problems from konqueror at right
>> click/open with/  on any machine? I mean without `xterm -e emacs'
>>
>>
>>   
> Not running konqueror here, but yes, emacs would fire up quite
> reliably when I had it as my source editor in mozilla, way back
> when. You most definitely SHOULD be able to run it without a terminal
> window. If you are really keen on getting this to work, you could
> write a little script like so to use as your editor: 
> #!/bin/bash
> date >>~/emacs.log
> emacs "$@" >>~/emacs.log 2>&1

Thanks for the input... that is a good idea, and surprisingly works
fine.  But does not provide the slightest clue why such a work around
is necessary.  Nothing but the date gets written to emacs log.

Apparently for some reason there needs to be a sort of cutout between
Konq and emacs, but not so with kate or kwrite.

> Come to think of it (while looking up the $@ semantics), could it be
> that the argument fed from konqueror has spaces in it? Maybe it needs
> quoting?

I'm not sure how to capture whatever it is that konq is doing.  I
don't think its throwing an error.  But not really sure how to tell
other than looking for .xsessions* file or something else with a kde
error in it.

I think it is just timing out silently.

However it seems it would be almost guaranteed that there would be
spaces in the command `emacs %s' or something similar.

> Experiment with adding  me). Have a look at what the log says.

Just for the record... no soap there.  I'd already tried another
non-promising test, adding the background sign `&' which didn't seem
likely to help and as expected, did not.

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] [OT] Online bookmark keeper with good merge routine

2008-01-16 Thread reader
Sorry to pop up something so far off topic but hard to get answers that
aren't pretty far from what you are after on other forums at times.

I've been using sitebar as my online bookmark keeper for quite a while
but seem to have trouble merging in new bookmarks from multiple
machines ... what is supposed to be a merge turns into a replace
operation or so it seems .. but not always.

So, I'm looking for a similar setup but more reliable.

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: [konqueror] Can't invoke and editor when `view source'

2008-01-16 Thread reader
Håkon Alstadheim <[EMAIL PROTECTED]> writes:

> [EMAIL PROTECTED] wrote:
>> Mick <[EMAIL PROTECTED]> writes:
>>
>>   
>>> Don't know the first thing about emacs, but it may need bringing up
>>> a terminal first which in turn runs emacs.  You may want to try
>>> selecting the "Run in terminal" or invoke it like so:
>>>
>>> xterm -e /usr/bin/emacs
>>> 
>>
>> This should not be a factor with X enabled emacs.  And in fact calling
>> emacs at a cmd prompt just brigs up emacs in it own window, not
>> another xterm.
>>
>> However, and surprisingly it does work... Inserting the xterm -e
>> command  at:right click/ open with/ other
>>
>> Brings first an xterm which immediately spawns a new emacs window (not
>> in the xterm but on its own)
>>
>> I'm pretty sure this is not what SHOULD happen though.  I SHOULD be
>> able to just insert /usr/bin/emacs  since it does not run in an
>> xterm. But... thanks .. at least I can edit a page with emacs now.
>>
>>   
> I have this same problem on some machines. Notably the ones where I've
> put the most cruft in .emacs. I suspect that there is some bug that
> stops garbage-collection from happening during startup so emacs runs
> out of memory. Somehow having a tty attached works around that. 

A little more on this.  Do you mean it works just fine on some
machines as well?

Something to test your theory... (I tried it here with no better
results) is from Konq, right click/open with/other  and put /usr/bin/emacs -Q

Which will start emacs with no site-file or ~/.emacs being loaded.
I tried that here but still just got the bouncing emacs icon/cursor.

Can you start emacs without problems from konqueror at right
click/open with/  on any machine? I mean without `xterm -e emacs'




-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: [konqueror] Can't invoke and editor when `view source'

2008-01-16 Thread reader
Håkon Alstadheim <[EMAIL PROTECTED]> writes:

> I have this same problem on some machines. Notably the ones where I've
> put the most cruft in .emacs. I suspect that there is some bug that
> stops garbage-collection from happening during startup so emacs runs
> out of memory. Somehow having a tty attached works around that. A way
> to test is to launch emacs in the background from a terminal (with &
> at the end). If emacs hangs, I do "fg" in the shell  and hit enter a
> couple of times and emacs will (sometimes) continue its initialization
> process.

Here emacs starts immediately with emacs &

>
> A better work-around than firing off emacs in the foreground is to
> make more of your .emacs do AUTOLOAD rather than REQUIRE or LOAD.

There must be more to it since mine doesn't hang at all started
outside of Konq.

> Better yet is to have emacs-server or gnuserv running, and putting
> emacsclient/gnuclient in the browser "editor"-config.

This may be the best... I see that as one of the options in the
Konqueror dialog.  But I've never really messed around with
gnuclient.  Well rather, once years ago I tried it and never really
found it very usefull, or had trouble keeping it running smoothly
maybe.  I don't recall anymore just recall an urge not to mess
with it...

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: Installing via GRML

2008-01-16 Thread reader
Michael Schmarck <[EMAIL PROTECTED]> writes:

>>  `Release grml 1.1-rc1 - Codename Skunk'
>> 
>> Unless you want to use the baloney bit torrent download 
>
> What's baloney about a bittorrent download? It's a good way to save
> on bandwidth for the one, who offers a download. It's also not more
> insecure than a plain old http or ftp download - in the contrary,
> it's at least as secure.

Sorry that was a pretty dumb thing to say... I do think its baloney
but saying that guaranteed someone would be rubbed the wrong way.  Not
a smart move in a request for help...

To me, bitorrent is just more piddling around.  You have to install
something extra (don't you?) to use it.  Its not fast at all.  For the
kind of size we are talking a dsl connection should handle normal ftp
or any http download in a matter of a few minutes.  I pay for dsl
exactly so I don't need to mess around with downloads...

I guess I assumed someone offering such a download would have the
necessary bandwidth.

I wasn't concerned at all about security.  

Not to put too fine a point on it but:
Plain old ftp should be all I need for something like that download.

>> it appears 
>> none of the servers listed have that version.
>
> That might have been the case 5 hours ago, but right now, already
> the 1st server has it.

Yes, at least one there has it now thanks

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: [konqueror] Can't invoke and editor when `view source'

2008-01-16 Thread reader
"Hemmann, Volker Armin" <[EMAIL PROTECTED]> writes:

> Open webpage
>
> right click
>
> open with...
>
> choose kate or any other editor.

Well that is at least progress... I can get kate and kwrite to appear
but still not emacs.  I just get the emacs icon bouncing until it
times out.

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: [konqueror] Can't invoke and editor when `view source'

2008-01-16 Thread reader
Mick <[EMAIL PROTECTED]> writes:

> Don't know the first thing about emacs, but it may need bringing up
> a terminal first which in turn runs emacs.  You may want to try
> selecting the "Run in terminal" or invoke it like so:
>
> xterm -e /usr/bin/emacs

This should not be a factor with X enabled emacs.  And in fact calling
emacs at a cmd prompt just brigs up emacs in it own window, not
another xterm.

However, and surprisingly it does work... Inserting the xterm -e
command  at: 
   right click/ open with/ other

Brings first an xterm which immediately spawns a new emacs window (not
in the xterm but on its own)

I'm pretty sure this is not what SHOULD happen though.  I SHOULD be
able to just insert /usr/bin/emacs  since it does not run in an
xterm. But... thanks .. at least I can edit a page with emacs now.

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: Installing via GRML

2008-01-15 Thread reader
Anyone talking about grml here know where to download:
>From grml.org:

 `Release grml 1.1-rc1 - Codename Skunk'

Unless you want to use the baloney bit torrent download it appears
none of the servers listed have that version.

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] [konqueror] Can't invoke and editor when `view source'

2008-01-15 Thread reader


I didn't get much of a response on gmane.comp.kde.devel.kfm about this
trouble I'm having with konqueror (although I was told on another kde
group that was the place for it). I got one post that asked me for
certain specific information which I supplied, but got no more replys
(near 2 wks now). So noticicing some `konq' problems being discussed
at:
   gmane.comp.kde.users.multimedia 

I tried there and got no response at all (3 days now).

   kde-3.5-8 desktop

I want konqueror to invoke emacs (or at this point, any editor) when I
choose to `View Document Source' from view menu.

I'm told that kind of setting is done at the below location:

In the Kcontrol settings:
KDE Components/File Associations/text/plain
  No matter which one I choose (emacs, kwrite, kate)
When I restart konq and try to view source... I just get the bouncing
cursor that eventually times out but nothing ever comes up.

I tried putting the absolute path in the dialog but it acts no
different.  

All three of those editors start without error from the command line.
I use emacs for many things so its always in working order.

I also tried using the settings under 
KDE components/File Associations/text/html  which I doubt is where
this should be done but still setting any of the editors doesn't seem
to help.

The machine has been rebooted a time or two for other reasons but just
letting you know that kde has been restarted but the problem persists.

I'm told kde might write some errors to an ~/.xsessions* file.  Or
some ~/ file anyway.

I'm not sure what filenames to look for but:
I looked for files modified recently in ~/ that might have error
information but I see nothing that looks likely.  And nothing with a
filename that looks promising.

Apparently konqueror is not throwing errors but silently timing out.

Can anyone think of a way to further trouble shoot this?

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: SSH tunnel With Portage

2008-01-14 Thread reader
Alan McKinnon <[EMAIL PROTECTED]> writes:

> On Tuesday 15 January 2008, Elyahou ITTAH wrote:
>> 2008/1/15, Bo Ørsted Andresen <[EMAIL PROTECTED]>:
>> > You do not need wine to run putty on Linux. There's a UNIX port.
>> > Just emerge
>> > putty and run it. Not that I don't agree it's useless with all the
>> > alternatives that are available on Linux too.. ;)
>>
>> What alternative  are you advice me ?
>
> openssh

Many of the same things available on putty are available on OpenSSH
too.  If you know putty it won't be real hard to learn to use
openSSH.  

I can tell you that you might get a good response at comp.security.ssh
with your questions too.  I always have there.  Its not about any
particular kind if ssh so openssh putty etc will fit in there.

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: Installing via GRML

2008-01-14 Thread reader
James <[EMAIL PROTECTED]> writes:

> Hello,
>
> Over the last week, I read where many folks recommend installing
> Gentoo using GRML.
> Since I have a p3 (650Mz) system I'm installing to build a
> small web server for a friend, I figured I check out installing
> gentoo via GRML.

People should make it a practice to spell out these acronyms at least
once per post.  What is GRML?

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: ebuild that installs partprobe

2008-01-14 Thread reader
Dale <[EMAIL PROTECTED]> writes:

> [EMAIL PROTECTED] wrote:
>> <[EMAIL PROTECTED]> writes:
>>
>>   
>>> There is a wiki article http://gentoo-wiki.com/PortageFileList which
>>> contains a python script, which sends updates from ones personal box to the
>>> database server. As this project community dependent a lot of users should
>>> help to update the database.
>>> 
>>
>> That script fails here... I suppose the site has a bug report or help
>> link there somewhere.  Or I guess a wiki input scheme... I've never
>> actually used a wiki in that way before.
>>
>> Very nice site though... many times over the last 3 or so years I could
>> have used this..  Thanks gentoo community. 
>>
>>   
>
> I ran the script here and it worked fine.  Did you run it as root?  Also
> make it executable too.

I did those things as matter of course.  It think its a directory at
/var/db/pkg/sus-libs/ that is empty that is causing the grief.

It also appears to have a funky name from some kind of error
somewhere.

/var/db/pkg/sys-libs/-MERGING-pam-0.99.8.1-r1

If I knew anything about python I might try fixing it since a well
written script ought not to cave on an empty directory.

But since I don't I just moved the directory. :)


-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: Daniel Robbins' come back ?

2008-01-14 Thread reader
After looking at some of the discusion at:
 http://forums.gentoo.org/viewtopic-t-644321.html
I saw there that gentoo's charter had been pulled.

What does that actually mean?  And who is such a charter with?

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: Daniel Robbins' come back ?

2008-01-14 Thread reader
James <[EMAIL PROTECTED]> writes:

> (or at least go read the 14 pages on the forum and then come back
> with a clue).

Maybe this has already been posted here... but:
What 14 pages on what forum?

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: ebuild that installs partprobe

2008-01-14 Thread reader
<[EMAIL PROTECTED]> writes:

> There is a wiki article http://gentoo-wiki.com/PortageFileList which
> contains a python script, which sends updates from ones personal box to the
> database server. As this project community dependent a lot of users should
> help to update the database.

That script fails here... I suppose the site has a bug report or help
link there somewhere.  Or I guess a wiki input scheme... I've never
actually used a wiki in that way before.

Very nice site though... many times over the last 3 or so years I could
have used this..  Thanks gentoo community. 

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: emerge of ksh93 erroring out.. who can interpret

2008-01-14 Thread reader
Alex Schuster <[EMAIL PROTECTED]> writes:

> [EMAIL PROTECTED] writes:
>
>> So I'm interested in what I might run into.  So far it looks like it
>> would be ALMOST as easy as symlinking ksh to bash in /bin.
>
> Uh, this sounds scary :)

Yeah, it would be on a system with actual users but here its just me,
myself and I.  So all that is effected are the ksh scripts I've
written and currently use in various places (none are system show
stoppers). 

But I was really just saying that syntax at my low level of usage is
largely interchangeable but for the cases I mentioned.  So it makes
switching scripting shells from ksh93 to bash pretty smooth.


[...] 
(for searchers who hit this discussion: I've snipped out very
nice information showing how to do ksh93 style `set -A arrary cmd'
in bash... and related interesting syntax See Alex S previous message
in this thread at Message-ID: <[EMAIL PROTECTED]>)

> I also had trouble with some bash bugs(*), and have some workarounds in my 
> scripts, in case they run with older bash versions. But as I cannot ensure 
> the client systems run kash or zsh, I did not bother to learn them, and 
> chose bash as my shell. It's amazing what it can do, but I guess zsh and 
> ksh can do the same, or even more.

Pretty much summarizes why I'm switching to bash too.  Instead of
learning the suggested (in this thread) zsh or staying with ksh93.

Something for your consideration I learned on comp.unix.shell that
ksh93 can handle associative arrays where as bash cannot or maybe just
not as easily.  The example given by Icarus S. there for ksh93 was:

   From: Icarus Sparry <[EMAIL PROTECTED]>
   Subject: Re: internal alias
   Newsgroups: comp.unix.shell
   Date: 11 Jan 2008 17:23:20 GMT
   Message-ID: <[EMAIL PROTECTED]>
  
   typeset -A wives
   wives["fred"]="wilma"
   wives["barny"]="betty"
   
   while read husband
   do
case "${wives[$husband]}" in
"") echo Single;;
*) echo "Married to ${wives[$husband]}" ;;
esac
   done
  
You may find that discussion interesting

> The other problem was with the =~ notation and quoting of the regular 
> expression not being allowed any more. Workaround is to define a variable 
> (foo) with the expression: [[ "blabla" =~ $foo ]]

I can't reproduce that here (I mean a problem with quoting the regex)
but maybe I'm not getting what you mean? Or maybe its been fixed.
 bash --version
GNU bash, version 3.2.17(1)-release (i686-pc-linux-gnu)

  reader > if [[ "bla" =~ bl ]];then echo MATCH;fi 
  MATCH

  reader > if [[ bla =~ "bl" ]];then echo MATCH;fi 
  MATCH

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: Daniel Robbins' come back ?

2008-01-13 Thread reader
Just butting in here a bit but this discussion has got me somewhat
worried.  This will probably ramble a bit... but at least that will
fit right in in this discussion... hehe.

I probably represent about the lowest level of gentoo user so I
thought maybe it would be good to speak up a bit here.

Its hard to get a handle on what you all are really talking about. I
mean the behind the scenes build up that must have gone on was totally
invisible to people like me.

I started hearing and seeing comments and such on this list about 1 or
maybe 2 mnths ago now, indicating some underlying trouble but I'm not
getting a clear picture here of what that trouble is.

I am a long time linux user and have used gentoo for probably 3 yrs or
so.  I've never contributed a single bit of code or contributed in any
other way than asking lots of question here... and answering a few I
guess but the ratio wouldn't look so good for me.  I've added a 
very small number of bug reports at one time or another.

I like gentoo a lot... and have finally gotten at least slightly
competent in using/installing/trouble shooting and etc I'd hate to
switch to something else.

The complex setup of use flags and profiles is very versatile and
eventually people like me start to catch on.  With the counter balance
of the various /etc/portage/package.** files, there are infinite ways
to control ones setup.

>From this discussion I am unable to get an idea what might be coming
in the next few mnths.

I'd like to help in some way... but hard to think of anyway that I
could realistically contribute.

I've used linux pretty exclusively as my main desktop since mid to
late 90s, experimented with freebsd and openbsd a bit. 
The gentoo community... at least the discussion lists is about the
best I've been involved in.

I guess what I'm getting at here is wondering what the collection of
lowlevel users can really do to help the apparent breakdown of
direction.

I can write basic perl and shell script a bit.  But so basic as to
seem pretty useless compared to the kind of talent available here.

I guess I feel kind of helpless about the possibility of gentoo
breaking down and kind of fading on off into oblivion.

Can some of you `in the know' folks layout what the problems seem to
be especially some concrete ways interested parties could have some
impact on the situation.


-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: emerge of ksh93 erroring out.. who can interpret

2008-01-11 Thread reader
"Matthias B." <[EMAIL PROTECTED]> writes:

> On Fri, 11 Jan 2008 11:18:44 -0600 [EMAIL PROTECTED] wrote:
>
>> Can you say why you think zsh is better? 
>
> The bugs. I've hit lots of bash bugs in the past and every version seems
> to fix some bugs and introduce new ones. I'm tired of adding new
> workarounds to my scripts whenever I update bash.

I hope this doesn't come off as just being picky but my perspective is
that of someone who is about to switch from using ksh93 as main
scripting shell to bash.

So I'm interested in what I might run into.  So far it looks like it
would be ALMOST as easy as symlinking ksh to bash in /bin.

The two big things I see that will cause that not to work are lots of
calls to `print' and that bash does not understand the easy way you
can create an array in ksh:
  `set -A array somecmd'  
creating an array of the output of somecmd.

So the print calls and array creation would cause failure in nearly
all my scripts.

Someone on comp.unix.shell pointed out I could create a 
 `print() { echo -e "$@" }'
function in bash and add that to my old ksh scripts.  So that would
cover the print calls in most cases but still pondering the array
part.

I don't have so many with array calls but enough that it would be some
work to fix.

But back to your comments. "The bugs. [...]"

Can you cite some actual examples of what you are talking about, with
enough detail so I can see what you mean?  Maybe include one or two of
the workarounds you are tired of dealing with?

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: Routing problem ?

2008-01-11 Thread reader
Richard Torres <[EMAIL PROTECTED]> writes:

> I don't understand why 2 routers. Maybe I'm missing something. Unless
> you have 2 networks that need to be separate only one is needed. If
> you have a wireless router, use it as a wireless access point and not
> a router. Which means turn off DHCP on the wireless router and don't
> configure or use the WAN connection.  Depending on the capabilities of
> the router you can connect a LAN port on Router2 to your ADSL
> (Router1) router and assign an IP address that's in the same network
> as Router1.

I agree, but Richard, (and this is just a request from a confused
participant) please take a moment to pare down your reply and then
insert your message where it makes some sense, don't just blob it on
top and further confuse things.

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: Routing problem ?

2008-01-11 Thread reader
Holla <[EMAIL PROTECTED]> writes:

> On Jan 11, 2008 8:09 PM, YoYo Siska <[EMAIL PROTECTED]> wrote:
>
>> one other thing, if nat doesn't work, some wireless aps (i'm thinking
>> about the 192.168.2.1) need to have correctly set up default gateway
>> etc... they sometimes try to be to smart and I had sometimes problems
>> when the router was connected as a wireless client to them...
>
> Can you give some clues about what you mean by correctly setup gw ?

Hey guys... it would help if you trim your posts so there isn't so
much in each message.

By correct gateway  I think in this case it would be the inward facing
address of pc1 (192.168.2.43) so on router2 you would set the gw to
that address. 
And on pc2 the gw would be  192.168.2.1.  That is unless router2 is
just a WAP (wireless access point). 
 
But I'm not sure I understand all of this.  It might be good to
include the make of the routers (even model number might matter).

Excuse me if this info is already in these monster size messages
somewhere but:
If you redo the diagram please include this information:
make and model of router2
What OS is running on pc1 and pc2

Annotate in one line what gateways are set at the various points.

The adsl router make and model may not matter too much.


-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: Update After A Year

2008-01-11 Thread reader
Randy Barlow <[EMAIL PROTECTED]> writes:

> I will also participate on this thread hijack (but Hal, don't hijack
> anymore.  It makes your mom angry!)  I would actually check more than
> just /etc/pam.d/* if you don't find it there because it's possible for
> mail servers or web servers to use these things the old way too!

Me too but Randy's advice is important.  An angry mom can ruin your
day... hehe

   * Your current setup is using one or more of the following modules,
   * that are not built or supported anymore: pam_pwdb, pam_radius,
   * pam_timestamp, pam_console If you are in real need for these
   * modules, please contact the maintainers of PAM through
   * http://bugs.gentoo.org/ providing information about its use
   * cases.  Please also make sure to read the PAM Upgrade guide at
   * the following URL:
   * http://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml

I got that non-sense a while ago too and never did find anything but
commented lines. I think the warning may be invoked improperly
under some conditions.  But others more knowledgeable may disagree.

My solution was to uninstall the current pam completely disregarding
dependencies, and then emerge the new one.  

It worked here but please BE CAREFUL I think its possible to cause
some problems since we are dealing with things like login.  Definitely
don't try it remotely.

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: emerge of ksh93 erroring out.. who can interpret

2008-01-11 Thread reader
"Matthias B." <[EMAIL PROTECTED]> writes:

> On Tue, 08 Jan 2008 20:32:46 -0600 [EMAIL PROTECTED] wrote:
>
>> I'm beginning to think I may just drop ksh93.  Unfortunately, I've
>> grown quite accustomed to using `print' instead of `echo -e' so I will
>> have to replace that in a couple dozen scripts... otherwise the
>> scripts seem to run fine under bash. (so far.. I haven't tested all of
>> them yet)
>
> Have you tried zsh? I've found it to be much better for scripting than
> bash, especially less buggy. And it has a "print" builtin :-)

I have yes.  However it was many years ago.  Probably at least 9 yrs
ago.  I don't know much now but back then I knew even less.  Linux was
a labor of love back then.

I tried zsh and was thoroughly confused by it.  It actually seemed too
capable for my meager skills.  I never went back.

Currently it appears that for my level of usage ksh93 or bash are
about the same... I'm rethinking my choice of scripting shell.

Mainly because of running into trouble getting it installed.
(Alan M. has solved that problem for me too.  And it installed
without problems when I unmasked it  Thank you Alan)

On examining current bash I see all the reasons I used ksh93 are now
possible in bash... the =~ operator is something I use a lot.
I don't now when that entered bash but its there now.

Can you say why you think zsh is better? 

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: unable to emerge anything...

2008-01-10 Thread reader
> Alan, 
> I'll check the links out. As for as unmerging anything else no. Not yet
> anyway, give me time though.

Richard, I recently had that same problem and I notice you are also
using the hardened profile.  

I don't remember exactly what I did but it involved re-compiling gcc
and making sure the `harened' use flag was cancelled (USE='-hardened')

I think I did something like boot from the minimal install iso and use
the compiler on it to chroot and compile a gcc without the hardened
flag. 

I don't remember now for sure... how I did it, but I am pretty sure
your gcc needs to be recompiled without the `hardened' flag.

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: Kernel setting for frame buffer (2.6.23-r5)

2008-01-09 Thread reader
[EMAIL PROTECTED] writes:

> do you know of a chart that shows the decimal notation like you
> posted? (Its not in `man vga')
>
> And I don't recall where I got that from... where ever it was, it
> probably also has the decimal equivalents.

You can ignore this request... I found a nifty hex to decimal
converter for vim here:
   http://vim.wikia.com/wiki/VimTip27


function! Hex2Dec()
let lstr = getline(".")
let hexstr = matchstr(lstr, '0x[a-fA-F0-9]\+')
while hexstr != ""
let hexstr = hexstr + 0
exe 's#0x[a-fA-F0-9]\+#'.hexstr."#"
let lstr = substitute(lstr, '0x[a-fA-F0-9]\+', hexstr, "")
let hexstr = matchstr(lstr, '0x[a-fA-F0-9]\+')
endwhile
endfunction

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: Kernel setting for frame buffer (2.6.23-r5)

2008-01-09 Thread reader
Etaoin Shrdlu <[EMAIL PROTECTED]> writes:

> During make menuconfig, hit / and enter the text you want to search
> for (in this case, obviously, it's FB_VESA), and hit enter. It
> should show you where that particular option is found in the
> configration. In my case (vanilla 2.6.23.9), it shows
>
> Symbol: FB_VESA [=y]  
>  
> Prompt: VESA VGA graphics support 
>  
>   Defined at drivers/video/Kconfig:595
>   Depends on: HAS_IOMEM && FB=y && X86
>   Location:   
> 
> -> Device Drivers
>   -> Graphics support
> -> Support for frame buffer devices (FB [=y])
>   Selects: FB_CFB_FILLRECT && FB_CFB_COPYAREA && FB_CFB_IMAGEBLIT && 
> VIDEO_SELECT  
>  
>
> Notice the "Location:" bit.

That was a very nice tip.  I must have known it sometime or at least
seen it but had totally forgotten how to search in make menuconfig
dialog.

I've found the settings and now recompiling... so I'll know soon if it
is done or still needs work.

By the way about the vga= setting.  I grabbed a chart from some where
long ago showing the notation I was using:

 ##640x480   800x600 1024x768 1280x1024
 ##   256 0x301   0x303   0x3050x307
 ##   32k 0x310   0x313   0x3160x319
 ##   64k 0x311   0x314   0x3170x31A
 ##   16M 0x312   0x315   0x3180x31B

do you know of a chart that shows the decimal notation like you
posted? (Its not in `man vga')

And I don't recall where I got that from... where ever it was, it
probably also has the decimal equivalents.

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Kernel setting for frame buffer (2.6.23-r5)

2008-01-09 Thread reader
For a good while now I've had a setting like this in grub.conf:

(wrapped for mail)
kernel /kernel-2.6.23-r5 root=/dev/hda5 \
  vga=0x31A video=vesafb:mtrr,ywrap

I'm not sure any more how much of that is necessary.

I have it there to allow console mode to have much larger resolution than
default (The appearance is much smaller text)

I think this setting in kernel config is the one needed for that:
   CONFIG_FB_VESA=y

But I'm trying to build a pared down kernel a console only setup.
Going thru the kernel settings in menuconfig... I'm not finding the one
that creates that `CONFIG_FB_VESA=y' element.

I've gone back and forth through the setting under:
Device drivers/Graphics-support .. checking Support for FrameBuffer
devices (both as module and builtin in different saves).

The only other setting that looks to be about framebuffer is
Userspace VESA VGA graphics support but I think that one is this line
in .config # CONFIG_FB_UVESA is not set

Examining the resulting .config with and without that one set I never
see this CONFIG_FB_VESA=y

That line ends up unset in every way I've thought to try.

However it is in the /usr/share/[...]kernel-2.6 config that genkernel
uses. 

I want to have the ability to have the larger resolution in console
mode but the kernel build is way pared down from what genkernel would
do.   So what settings do I need to have the effect like posted in
grub.conf line above?

  

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: emerge of ksh93 erroring out.. who can interpret

2008-01-08 Thread reader
Alan McKinnon <[EMAIL PROTECTED]> writes:


[...]

>> Can anyone interpret this emerge failure and have some educated
>> guesses what I should do to get it to compile.  That message follows
>> the eix output below.
>
> http://forums.gentoo.org/viewtopic-p-4210019.html?sid=a282fd302189d24b214267ec5b90
>
> especially last 4 posts
>
> Apparently it's a bug, and has been fixed in later versions. You are 
> using a stable 2004 version, in your position I would unmask ksh and 
> emerge the latest unstable

I see... thanks.  That does sound like a way around it.,

I may just start using bash instead for the future...
Having this happen has made me rethink my ( non-thought out) choice of
shells.

I see where it can cause some grief at a time when you don't want to
be horsing around with that kind of problem.  

I'm not a very sophisticated shell script programmer.

One thing I liked about ksh93 was its ability to match on regex.
Something bash couldn't do not so long ago.  I haven't been paying
attention to bash development but having this problem, I did start
investigating and finding that modern bash can do most if not all of
what I liked about ksh93.   

It can match like this 

  if [[ $1 =~ ^[0-9]+$ ]];then 
  [...]
  fi

Forcing a match of number only by regex.  Instead of trying to do it
with a pattern match. 

And a sort of double reverse loop de loop negation I sometimes find
useful. (since there is no `!~'  operator like perl or awk) 

  if [[ ! ( $1 =~ ^[0-9]+$ )]];then
  [...]
  fi

I'm beginning to think I may just drop ksh93.  Unfortunately, I've
grown quite accustomed to using `print' instead of `echo -e' so I will
have to replace that in a couple dozen scripts... otherwise the
scripts seem to run fine under bash. (so far.. I haven't tested all of
them yet)


-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: A pared down kernel config

2008-01-07 Thread reader
Florian Philipp <[EMAIL PROTECTED]> writes:

>> I guess it would be harmless to just run the `make modules_intall' part
>> again and catch a list.
>> 
>
> I think you search for "modprobe -l" :)

Wow... and egad, look at this:

  modprobe -l|wc -l
  945

That is a kernel built with genkernel

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: ip_conntrack - is it missing

2008-01-07 Thread reader
Etaoin Shrdlu <[EMAIL PROTECTED]> writes:

>> I see:
>>  grep -i ^[^#].*conntrack /usr/src/linux/.config
>>
>>   CONFIG_NF_CONNTRACK_ENABLED=m
>>   CONFIG_NF_CONNTRACK=m
>>   CONFIG_NF_CONNTRACK_MARK=y
>>   CONFIG_NF_CONNTRACK_SECMARK=y
>>   CONFIG_NF_CONNTRACK_EVENTS=y
>>   CONFIG_NETFILTER_XT_MATCH_CONNTRACK=m
>>   CONFIG_NF_CONNTRACK_IPV4=m
>>   CONFIG_NF_CONNTRACK_PROC_COMPAT=y
>>
>>
>> But do NOT see what that HOWTO refers to (/proc/net/ip_conntrack)
>
> Sorry for the dumb question...you have compiled conntrack as a module, 
> but is that module (or modules) actually loaded (you can check with 
> lsmod)? If not, loading the module should also create the file in /proc.

The question wasn't dumb.. but the operator on this end sure is.

My only defense is that the HOWTO doesn't mention any of that.
However I do know that would be necessary.  When I saw your suggestion
I knew immediately I'd been a dope.. again.

Should I have compiled them directly into the kernel?

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: ip_conntrack - is it missing

2008-01-07 Thread reader
Johann Schmitz <[EMAIL PROTECTED]> writes:

> [EMAIL PROTECTED] schrieb:
>> Turns up nothing even close.  Does it mean I'm still missing something
>> in the kernel build? or is it just baloney or out of date?
>
> Hi,
> you can simply check our kernel config by typing:
>
>   cat /usr/src/linux/.config | grep -i conntrack 
>
> IIRC, there should be the lines

Yes but what about the comment in the HOWTO:

"cat/proc/net/ip_conntrack". 
   Even with no firewall configured, Linux's conntrack functionality
   is working behind the scenes, keeping track of the connections that
   your machine is participating in.

I see:
 grep -i ^[^#].*conntrack /usr/src/linux/.config

  CONFIG_NF_CONNTRACK_ENABLED=m
  CONFIG_NF_CONNTRACK=m
  CONFIG_NF_CONNTRACK_MARK=y
  CONFIG_NF_CONNTRACK_SECMARK=y
  CONFIG_NF_CONNTRACK_EVENTS=y
  CONFIG_NETFILTER_XT_MATCH_CONNTRACK=m
  CONFIG_NF_CONNTRACK_IPV4=m
  CONFIG_NF_CONNTRACK_PROC_COMPAT=y


But do NOT see what that HOWTO refers to (/proc/net/ip_conntrack)

[...]

> Hope you can guess what it want to say - english isn't my native
> lang, and it is early in the morning ;)

English is my native language and you are considerably better at it
than I am.  That may not be much of a compliment though because I'm an
illiterate hill-billy.

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] ip_conntrack - is it missing

2008-01-06 Thread reader
I'm working my way thru this document:
http://gentoo-wiki.com/HOWTO_Iptables_and_stateful_firewalls

  Somewhere in this part: #Should_I_take_this_tutorial
(add it to the above url)

Once there scan for the work /proc and a few hits will get you to this
line: (emphasis is mine)

   If you've already rebooted and are using your new netfilter-enabled
   kernel, you can view a list of active network connections that your
   machine is participating in by typing 
   
  "cat/proc/net/ip_conntrack". 

   Even with no firewall configured, Linux's
   conntrack functionality is working behind the scenes, keeping track
   of the connections that your machine is participating in. 

I don't see that on a machine where I've tried to pick every iptable
and contrack setting for the kernel I could find.  Including the ones
on that page that are still around.

   find /proc -iname '*conntrack*'
or even
   find /proc -iname '*con*'

Turns up nothing even close.  Does it mean I'm still missing something
in the kernel build? or is it just baloney or out of date?

It claims you should see this even if you aren't running iptables yet

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: A pared down kernel config

2008-01-06 Thread reader
Florian Philipp <[EMAIL PROTECTED]> writes:

>> There's a reason for the existence of genkernel - it's so that you don't 
>> have to go through all this pain and suffering, and can instead remove 
>> stuff a bit at a time with reasonable confidence it won;t blow up in 
>> your face :-)
>> 
>
> There is a fairly easy trick to get rid of pointless options like unused
> drivers even if you are not sure about your hardware or the kernel
> options themselves: 
> Compile them as modules, then boot the new kernel. If the modules don't
> get loaded (lsmod is your friend) and everything works fine, throw them
> out of your configuration.

Nice... a small question: how do you keep up with what gets installed?
Do you ferret them out at /lib/modules with cmds like 
find . -name '*.ko'

Or is there a log created at compile time.. or maybe create one like
make modules_intall >mymod.log.  Just thinking outload.

Following a `genkernal all' I saw a very big list get installed but didn't
think to log them.

I guess it would be harmless to just run the `make modules_intall' part
again and catch a list.

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: A pared down kernel config

2008-01-05 Thread reader
[EMAIL PROTECTED] writes:

>> Like I said in an earlier mail, 
>
> Do you mean on this thread?  If so I must have some trouble with my
> newsreader threading or something... I don't see it here.

Haa I see it now... and it looks like I brought up exactly some of
what you covered there (scsi).  Interesting that at least we both saw
the same thing about scsi.

Thanks for that input too.

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: A pared down kernel config

2008-01-05 Thread reader
Alan McKinnon <[EMAIL PROTECTED]> writes:

> On Saturday 05 January 2008, [EMAIL PROTECTED] wrote:
>> > to de-junk a default config - even if you don't know what you do,
>> > is in realm of half an hour to an hour. If you read everything.
>>
>> Do you have a de-junked .config that I can diff against the
>> default.. it would be a way to see what kinds of things get dropped.
>
> Drivers for stuff you don't need and you will likely never use. Like ham 
> radio stuff, v4linux (first version), I20, on a notebook all the 
> enterprise-grade connect-a-machine-to-storage-stuff like iSCSI and 
> Infiniband, all of ISA and MCA and the pre-pci bus drivers, old disk 
> types like mfm and on modern boards usually even IDE as well. 

Thanks... but you hit on something there that can throw you.  
  scsi stuff.  

I've never used a scsi hard drive in my life but not that long ago
linux users needed scsi support for many of the cdrom drives.  I doubt
that is still the case but it might be.  But my point is that even
when you think you know something isn't needed it might be in some
context you haven't thought of.

People in this thread speak of 2 and 3 boots and editing in between in
the same message where `5 minutes' is mentioned.  That doesn't wash.
You're way past that time frame.  But still not in the guiness book
realm I guess... hehe.

> Removing all these unused drivers is the single largest improvement in 
> reducing kernel size. The general rule with drivers is that if you are 
> familiar with YOUR hardware and you've never heard of something in the 
> config then you don't have it and don't need it :-)

Just to know more on this... Is there really any reason to worry about
kernel size... I mean in most cases with a standard desktop install?

I noticed a massive difference in drivers and modules installed
between a machine running kde and X and a hand roled kernel I
configured on nox system with just basic install.  In fact that is
what led to my post here.  But the actual kernel wasn't all that
different in size.


[...]

> Like I said in an earlier mail, 

Do you mean on this thread?  If so I must have some trouble with my
newsreader threading or something... I don't see it here.

> . . . . . . . . . . . . . . . .it's not an easy process. It's only easy 
> if you know most of it already - like Volker. I'd guess he has long 
> since forgotten what it took to learn everything he knows, so of 
> course "It's obvious!"...

Here here.  
 ... And thanks for the basic advice and comments.

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: A pared down kernel config

2008-01-05 Thread reader
Erik <[EMAIL PROTECTED]> writes:

> [EMAIL PROTECTED] skrev:
>> Then you are stuck figuring out what on earth a hypervisor is.
>>   
> Alt+F2
> wp:hypervisor
> ENTER

Hey thats a pretty neat trick.  Now if I wondered if that would be
important since I plan to run a vmware application... I will take more
digging.  It mentions vmware but not clear if this is important to it.

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: A pared down kernel config

2008-01-05 Thread reader
"Hemmann, Volker Armin" <[EMAIL PROTECTED]> writes:

I think this is heading in direction different from what I intended.

You seem to be arguing that it can be done quickly... I don't disagree
with you.  If like you say you mostly follow what ever is default
unless you know what you are doing.  But if that is what you do then
genkernel is even quicker... Not in compile time but to decide is not
more than `genkernal all'.  

So I haven't been saying it can't be done quickly. (If you depend
largely on defaults).  The os designers have seen to it that the
defaults will produce a working kernel. And they are pretty good at
it. 

I'm not complaining that the process provided is overly hard. (If you
mostly follow defaults)

In the very first post I said:

>> For 8 or 9 yrs now I've mostly skirted the issue by using defaults.

That is all you suggest too.  Skirt the issue by using defaults. 

>> If you wanted to pare down all the junk that is in a default
>> config... now you are taking days even weeks to get a handle on that.
>
> to de-junk a default config - even if you don't know what you do, is
> in realm of half an hour to an hour. If you read everything.

Do you have a de-junked .config that I can diff against the
default.. it would be a way to see what kinds of things get dropped.

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: [OT Konq] setting for view source

2008-01-05 Thread reader
Etaoin Shrdlu <[EMAIL PROTECTED]> writes:

[...]

>> But apparently there is still some kind of problem.  I use
>> emacs for that kind of stuff and it is listed there but when I select
>> it and hit apply the `apply/reset' buttons go dead and never come back
>> on.
>>
>> Ditto for kwrite or any others listed there.
>
> This is all normal, at least with KDE control center. Those buttons are 
> active only when there are pending modifications. If there are no 
> pending modifications, they are greyed. When they are greyed, change 
> something else and they will become active again, and so on.
>
>> There doesn't appear to be anyway provided to save the setting.
>
> The "OK" button should do that (and, of course, the "Apply" button).

There is no `ok' button.. . Unless you accidentally double click on
one of the choices ... just `apply/reset' and then it goes dead.

I see now how it works but really not conventional.

>> Closing kcontrol and restart konq but still when I try to view source
>> I just get the bouncing cursor (waiting) and no action ... ever.
>>
>> I guess I'll have to take this to the kde groups.
>
> Sorry but I can't help you further here...on my system, adding another 
> handler application for text/plain and applying the config is enough for 
> konqueror to use the new application.

Yeah I was afraid that would be the case but pointing me to the config
part was a great help ... thanks.

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: A pared down kernel config

2008-01-05 Thread reader
"Hemmann, Volker Armin" <[EMAIL PROTECTED]> writes:

> On Samstag, 5. Januar 2008, [EMAIL PROTECTED] wrote:
>
> you want to read this:
> http://www.kroah.com/lkn/

Thanks... I'm getting started now.

> configuring a kernel is a matter of minutes. And seconds, if you just copy 
> over the old config and do 'make oldconfig'.

Yeah if you  do that... but if you want to go through and look at all the
different stuff and try to understand the minutes, and seconds
theory is history.

> It is not hard - the first time read all the help texts and think about them. 
> That is the hardest part. Do you really need I2O? Almost nobody does. I2C? 
> Yes. ... 

You are clearly on a much different plain than I.
`Read all the help texts and think about them.'  If you can do that and
feel you've understood even a small portion of it, that puts you way
up the knowledge ladder compared to us lesser endowed.

Unless you mean all those places that say `if unsure just say yes'.
Or better yet those that say:
`There is no help available for this kernel option.'

Here is a good one.
 CONFIG_PARAVIRT:
  |  
  | Paravirtualization is a way of running multiple instances of 
  | Linux on the same machine, under a hypervisor.  This option  
  | changes the kernel so it can modify itself when it is run
  | under a hypervisor, improving performance significantly. 
  | However, when run without a hypervisor the kernel is 
  | theoretically slower.  If in doubt, say N.

Unless you are talking about the last `If in doubt...'
Then you are stuck figuring out what on earth a hypervisor is.

Or here:

  | CONFIG_HPET_TIMER: 
  |
  | This enables the use of the HPET for the kernel's internal timer.  
  | HPET is the next generation timer replacing legacy 8254s.  
  | You can safely choose Y here.  However, HPET will only be  
  | activated if the platform and the BIOS support this feature.   
  | Otherwise the 8254 will be used for timing services. 

Unless you mean `You can safely choose Y here' then you have a few
days work figuring out what any of that means.

This goes on and on through the menus..
So no.. I don't think we are dealing with minutes here.

If you mean you can get it done if you just skip all of that then
yes it might be minutes.

If you wanted to pare down all the junk that is in a default
config... now you are taking days even weeks to get a handle on that.

At least it would be for the `intellectually challenged' like me..

Thanks again... that looks like a good start.

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: [OT Konq] setting for view source

2008-01-05 Thread reader
Etaoin Shrdlu <[EMAIL PROTECTED]> writes:

>> Apparently some time or other I've set something there that is now not
>> available or something becasue I get a long pause and no action when I
>> request to view the source.
>
> KDE control center -> KDE components -> file associations
>
> text -> plain, and set the application to use in "Application preference 
> order" (mine is "kedit").

Oh, thanks.. there all those setting are...

But apparently there is still some kind of problem.  I use
emacs for that kind of stuff and it is listed there but when I select
it and hit apply the `apply/reset' buttons go dead and never come back
on.

Ditto for kwrite or any others listed there.

There doesn't appear to be anyway provided to save the setting.
Closing kcontrol and restart konq but still when I try to view source
I just get the bouncing cursor (waiting) and no action ... ever.

I guess I'll have to take this to the kde groups.

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] A pared down kernel config

2008-01-05 Thread reader
Configuring a new kernel is a dreaded task here.  It seems I walk
through a bewildering array of stuff that when pressing F1 on them I
get more bewildering information I barely understand a word of.

For 8 or 9 yrs now I've mostly skirted the issue by using defaults.  

I hnow the shortcoming is mine but still it is a massive amount of
knowledge needed to really know what most of those settings do.

Of course I know the easy ones but it appears thats never enough to
walk through and end up with a pared down but fully usable kernel.

In the end I usually just `genkernel all' and let ten thousand modules
be made and forget it.

I'd like to know more... enough so that when kernel config time rolls
around its not a frustrating and time consuming chore ... unless I go
the genkernel route.

I see plenty of howtos out there about kernel configuration but the
ones I've scanned or used take you through the steps but never really
teach you how to understand what all those setting do or entail.

I also realize that the kernel is a moving target and configurations
change literally with every kernel.  But there must be a major base of
settings that change only slowly.  Ones a user can learn enough about
that it isn't such a bewildering experience to try to get the settings
right in one or two goes.

And of course the kicker is that I'd like to learn this without weeks
and weeks of pounding away at it.

My current quest involved getting a kernel with full barrel iptables
and conn_track settings in place.  The usual problem is that the howtos
are dealing with a much older (in kernel devel time) kernel that
actually has different or not all the setting currently available.

Can someone steer me to a more `in depth' tutorial?  Or to something
they've found to really throw some light the chore?  Not necessarily
about iptables but just the general chore of configuring a kernel
wisely. 

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] [OT Konq] setting for view source

2008-01-05 Thread reader
Where in the konqueror browser settings does one set what comes up
when you ask to view the source of the page you are on?

I've been pounding away here under `Settings/configure Konqueror' and
every where else I could think of but not finding it.

Apparently some time or other I've set something there that is now not
available or something becasue I get a long pause and no action when I
request to view the source. 

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: walk thru new ._cfg000 - a rough perl script

2008-01-03 Thread reader
[EMAIL PROTECTED] writes:

> I've included the bare script in line at the

OOps maybe not..

===
./updetc.pl

#!/usr/bin/perl 

## find /etc -iname '._cfg_*'
use strict;
use warnings;
use File::Find;

my $myscript;
($myscript = $0) =~ s/^.*\///;
# Variable to create directory where  needed
my $STST = 'START_STOP';


## produces something like: 091207_101630
## Which means: Aug 12 2007 10:16:30
my ($mon,$mday,$year,$hour,$min,$sec) = (localtime(time))[4,3,5,2,1,0];
#$year += 1900; ## prints 2005 
$year -= 100;  ## prints 05 (with %02d)
$mon  += 1;
my  $PaddedDateStr = sprintf "%02d%02d%02d%s%02d%02d%02d", 
$mon,$mday,$year,"_",$hour,$min,$sec;

if([EMAIL PROTECTED]){
  usage();
   print "Usage tripped at " . __LINE__ . "\n";
  exit;
}
my $dir;
my $switch = shift;
$dir  = shift || die "We need two cmdline arguments: $!";

if ( ! -d  $dir){
   usage();
   print "No directory <$dir> can be found\n";
   print "Usage tripped at " . __LINE__ . "\n";
}

find(\&wanted, $dir);
my @ar;
sub wanted {
  if(/^\._cfg/){
 push @ar,$File::Find::name;
   }
}
if([EMAIL PROTECTED]){
  print "
  No temporary ._cfg_*files were found... exiting\n";
  exit;
}
if($switch =~ /\-s\s*$/){
  ## we are in `show' mode
for(@ar){
print "$_\n";
}
exit;
}

if($switch =~ /\-c\s*$/){
   ## cp  new versions over old
   ## get our filename for echoing and its root
my $newconf1  =  $ar[0];
   (my $fs_conf   =  $newconf1) =~ s/\._cfg0+_//;

print 
"  * Replacing old conf versions  with new,, backup both *
   We find the new ._cfg000 files and offer a chance to view diffs
   followed by choosing to use or not.  But either way they are 
   stored for future reference or use.

   If you decide to use the conf files we OVERWRITE the old ones but 
   keep a dated copy in a special directory  made for that
   purpose, wherever needed in the filesystem. 
   Like:   
 copy <$newconf1>  
   OVERWRITING
 <$fs_conf>
   (NOTE: We will save renamed copies of both the one on the fs and the 
   new version. New versions are also backed up to that special directory 
created throughout filesystem as needed.)

   If you want more information before proceeding..
   Press Ctrl-c now and type:
 \`$myscript  help' to learn the names to search for and 
   the detailed proceedure
"; 
   print "Press enter to continue or select the Ctrl-c option\n";
   ;
print 
"= * = * = * = * =\n";
 my $ans;
for(@ar){
   ## Setup some more file name renditions we are likely to need
my $newconf   = $_;
   ## Reassing fs_conf so old value doesn't pop up unwanted from above
   ($fs_conf  =  $newconf) =~ s/\._cfg0+_//;
   (my $prepended =  $newconf) =~ s/(^.*)(\._cfg0+_.*$)/$2/;
   (my $conf_path =  $newconf) =~ s/\/\._cfg0+.*$//;
   (my $fs_conf_short =  $fs_conf)  =~ s/^.*\///;
my $stt_conf  = "START-USE" . $prepended;
my $stp_conf  = "STOP-USE_" . $fs_conf_short;
my $nouse_conf= "NOUSE".$newconf;

 ## Test to see if me have a matching conf already on
 ## the fs in use.
 if ( ! -e $fs_conf){
## None present.. so we offer to install AND save it in STST
 
  print "   
<$newconf> 
   has no counterpart on the fs..  Shall we install it like this:
 cp <$newconf>  (over writing!) 
  <$fs_conf>
   and 
 mv <$newconf
  <$conf_path/$STST/$stt_conf-$PaddedDateStr>
 ";
print "
   Any thing but  will rename the newconf to:
 $conf_path/$STST/NOUSE$prepended-$PaddedDateStr
   
 ";
print " [y/n] > ";
$ans = ;
## Make sure we have the $STST directory
if (! -d "$conf_path/$STST") {
print "Creating directory $conf_path/$STST\n";
mkdir "$conf_path/$STST" ||
   die "Cannot mkdir $conf_path/$STST: $!"; 
 }
  if ($ans !~ /\by\b/) {
 print "
   =-=-=-=-=-=-=-=-=-=-= Operations Underway -=-=-=-=-=-=-=-=-=-=-=-=-=-
   Moving 
 $newconf 
   to 
 $conf_path/$STST/NOUSE$prepended
";
rename $newconf, "$conf_path/$STST/NOUSE".$prepended ."-". 
$PaddedDateStr || die 
  "Can't rename $newconf to $conf_path: $!";   
print "=-=-=-=-=-=-=-=-=-=-= Rename succeded 
-=-=-=-=-=-=-=-=-=-=-=-=-=-\n";
next;
   }else {

 print "   
   =-=-=-=-=-=-=-=-=-=-= Operations Underway -=-=-=-=-=-=-=-=-=-=-=-=-=-
   Ok, you've decided to start using this conf file.
   cp $newconf  (installing it)
$fs_conf 
  and moving
$newconf to
   $conf_path/$STST/$stt_conf-$PaddedDateStr
";
## open the START-USE file
open(START,">$conf_path/$STST/$stt_conf-$PaddedDateStr")  
or die "Can't open <$conf_path/$STST/$stp_conf-$PaddedDateStr>: 
$!";  
## Write our size tested slurped data to that file Now theoretically
## we have solid copy of the working conf file written to the STST

[gentoo-user] Re: besides package.use where to store info needed at emerge

2008-01-03 Thread reader
Bo Ørsted Andresen <[EMAIL PROTECTED]> writes:

>> It looks like the cvs ebuild doesn't use EXTRA_ECONF. You could file a
>> bug report about this.
>
> It uses econf. econf uses EXTRA_ECONF.
>
> On Thursday 03 January 2008 19:01:07 [EMAIL PROTECTED] wrote:
>>cat /etc/portage/env/dev-utils/cvs
>> EXTRA_ECONF='--enable-rootcommit'
>
> You got the category wrong.

Aaahh shoot... if it weren't for those nasty little typos I'd be a
millionaire retired on a Caribbean island somewhere...
  Thanks

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] walk thru new ._cfg000 - a rough perl script

2008-01-03 Thread reader
I've been working on something to aid handling incoming ._cfg*
files that occur during emerges at times.

I know we have at least a couple of tools already for this, but I
wanted something much closer to manual handling but still doing most
of the drudgery.

I used the term `rough' in the subject but that may be a little overly
kind. Prospective users may find the script rather primitive.


But if anyone can make use of it please do.  And if anyone has
comments or wants to pass along any edits they think will improve it
please do that too.

The script tries to report what its doing as it goes along, prior to
actually doing anything. And provides several opportunities to bail.

It has a usage message that explains things. `updetc.pl help' to see
it.

People may not like that it creates directories throughout the file
system but I like keeping the various configs for a while so this does
it for me in some orderly way yet avoids any problems with leaving
renamed files in working directories like /etc/init.d or /etc/conf.d.

`updetc.pl' finds the new configs and their counterpart [if it exits]. 
Offers you a chance to see a diff then copies and moves the files
around so that you end up with your choice on the system.

A copy of both the working version and the new one with a dated
extension and indicative string pre-pended (START-USE STOP-USE NOUSE)
are kept in a special directory (START_STOP/) at the same level as the
config files.

The script does not try to automate everything.  It offers a  
pre assembled diff cmd to past into a cmd prompt for a quick look at
the differences of new and old.  And handles the copy move rename
and mkdir chores. 

I thought I'd prefer to leave the `diff' part to user if they wanted a
diff, rather than coding it in perl or using perl modules.  Instead
just offer a pre-assembled command to make it easier.

Any merging or the like is up to the user.  Straight yes or no about
the new conf is handled by updetc.pl.

I've included the bare script in line at the end but to encourage
people to try it out, a little package can be grabbed at URL below
containing a ready to go sandbox for testing.  (Note that
I have NOT tested this extensively so use at your own RISK
I am using it on my real filesystem now for a couple of weeks)

 http://www.jtan.com/~reader/updetc  

The ready to go sandbox includes an assortment of ._cfg000*, a directory
hierarchy along with corresponding system config files and the script.

Expect these directories and files in the compressed tar file.
./test_updetc/
etc1/  test directory hierarchy - assorted ._cfg* and some
   system counterparts

etc2/ replace from this for further testing> 
 (Just a copy of etc1)

updetc.pl

My direct email is <[EMAIL PROTECTED]>

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: besides package.use where to store info needed at emerge

2008-01-03 Thread reader
Neil Bothwick <[EMAIL PROTECTED]> writes:

> On Thu, 03 Jan 2008 12:01:07 -0600, [EMAIL PROTECTED] wrote:
>
>> Sorry to keep nagging with this but I must still not have it right.  I
>> do not see that compile flag being set during emerge:
>
> It looks like the cvs ebuild doesn't use EXTRA_ECONF. You could file a
> bug report about this.

If that were true it should fail at the command line too shouldn't it?
Or is that side stepping somehow?

It works at the command line:

  EXTRA_ECONF='--enable-rootcommit' emerge -v cvs

Does pass the configure flag along during the compile.

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: besides package.use where to store info needed at emerge

2008-01-03 Thread reader
Neil Bothwick <[EMAIL PROTECTED]> writes:

> On Thu, 03 Jan 2008 10:44:14 -0600, [EMAIL PROTECTED] wrote:
>
>> At the `pkg' part of /etc/portage/env/cat/pkg
>> 
>> Do I need to include the full address somehow like: dev-util/cvs
>> or just `/etc/portage/env/cat/cvs'
>
> cat = category
> pkg = package
>
> Use /etc/portage/env/dev-util/cvs

Sorry to keep nagging with this but I must still not have it right.  I
do not see that compile flag being set during emerge:

  ls -R /etc/portage/env
  /etc/portage/env:
  dev-utils
 
  /etc/portage/env/dev-utils:
  cvs

   cat /etc/portage/env/dev-utils/cvs
EXTRA_ECONF='--enable-rootcommit'

And a snippet of emerge -v cvs ouput:

 (wrapped for mail)
[...]

  >>> Compiling source in
  >>> /var/tmp/portage/dev-util/cvs-1.12.12-r4/work/cvs-1.12.12 ...
 * econf: updating cvs-1.12.12/build-aux/config.guess with 
 /usr/share/gnuconfig/config.guess
   * econf: updating cvs-1.12.12/build-aux/config.sub with
   /usr/share/gnuconfig/config.sub
  
   ./configure --prefix=/usr --host=i686-pc-linux-gnu
   --mandir=/usr/share/man --infodir=/usr/share/info
   --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib
   --with-external-zlib --with-tmpdir=/tmp --enable-encryption
   --with-gssapi --enable-nls --enable-pam --enable-server
   --build=i686-pc-linux-gnu

[...]

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: besides package.use where to store info needed at emerge

2008-01-03 Thread reader
Neil Bothwick <[EMAIL PROTECTED]> writes:

> On Thu, 03 Jan 2008 10:44:14 -0600, [EMAIL PROTECTED] wrote:
>
>> At the `pkg' part of /etc/portage/env/cat/pkg
>> 
>> Do I need to include the full address somehow like: dev-util/cvs
>> or just `/etc/portage/env/cat/cvs'
>
> cat = category
> pkg = package

Egad I had imagined some how the `cat' directory told emerge the info
in pkg was to be `/bin/cat'ted' into the compile time scenario. 
Ok.. on with the dunce cap.


-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: besides package.use where to store info needed at emerge

2008-01-03 Thread reader
Neil Bothwick <[EMAIL PROTECTED]> writes:

> On Wed, 02 Jan 2008 19:42:09 -0600, [EMAIL PROTECTED] wrote:
>
>> I know about /etc/portage/package.use
>> but where would I keep something like and extra configure flag, that I
>> always want applied.
>

> mkdir -p /etc/portage/env/cat/
> echo "EXTRA_ECONF='whatever'" >/etc/portage/env/cat/pkg

Yikes... I was beginning to wonder why I was still getting errors on
root commit.  Looks like I had it backward.. from OP:
  >   ECONF_EXTRA='--enable-rootcommit' 

At the `pkg' part of /etc/portage/env/cat/pkg

Do I need to include the full address somehow like: dev-util/cvs
or just `/etc/portage/env/cat/cvs'

The reason I ask is that it is possible with cvs to get the root
commit error for other (as yet not understood) reasons than actually
being root and trying to commit.

So it might not be so easy to test if the procedure has worked, unless
there is a command for cvs that will make it cough up its compile time
flags.

So I want to know that part is good so I can worry about other
problems with cvs in the event of problems following an update during
update world.

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: besides package.use where to store info needed at emerge

2008-01-02 Thread reader
David Relson <[EMAIL PROTECTED]> writes:

> On Wed, 02 Jan 2008 19:42:09 -0600
> [EMAIL PROTECTED] wrote:
>
>> I know about /etc/portage/package.use
>> but where would I keep something like and extra configure flag, that I
>> always want applied.
>> 
>>   ECONF_EXTRA='--enable-rootcommit' 
>> 
>> Always needs to be applied to cvs on updates.  Where is such a thing
>> kept?
>
> Have you tried ~/.cvsrc ???

I know nothing about what that might mean or do.  It appears in man
cvs to be a sort of .bashrc for a cvs user.

Are you saying a user owned rc file can control emerge's behavior?

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] besides package.use where to store info needed at emerge

2008-01-02 Thread reader
I know about /etc/portage/package.use
but where would I keep something like and extra configure flag, that I
always want applied.

  ECONF_EXTRA='--enable-rootcommit' 

Always needs to be applied to cvs on updates.  Where is such a thing
kept?


-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: dis-functional error from emerge -vuDN

2008-01-02 Thread reader
Randy Barlow <[EMAIL PROTECTED]> writes:

> [EMAIL PROTECTED] wrote:
>> It never really says where the code it presents is to be found but I'm
>> guessing it would be the files under /etc/security
>> all those files are commented out except  namespace.init that has this
>> line uncommented:
>>exit 0
>> Maybe something needs to be uncommented in one of them.
>
> /etc/security isn't the only place to look.  I use PAM on my mail server
> and IMAP server, and I had to change some files in there that used the
> old way.  Do you have a mail server that uses PAM?  Do you have a web
> server that uses PAM?  Any other services?

Randy, I responded to this quite a while ago but do not see that
response here.. Looking locally I don't see a saved copy so I must
have closed the program I was writing from another desktop or
something. 

Thanks for your input but I don't think that was the problem.
I do run a local webserver (home lan) and run sendmail which isn't set
up as a server though.

Further, the output of  `equery files pam' only shows two places where
configs might be.  The update site referred to in the error message
doesn't tell where to look or if so I missed it

Anyway a grep in /etc/pam.d for any of the modules mentioned in the
error shows nothing but a few commented lines all in /etc/pam.d/login.
 
  grep -r 'pwdb\|radius\|timestamp\|console' 

# If you want to enable pam_console, uncomment the following line
# and read carefully README.pam_console in /usr/share/doc/pam*
# sessionoptional   pam_console.so

Now the good part:
`emerge -vC pam' followed by a continuing of 
`emerge -vuDPN world'

Seems to have gotten over the pam hurdle.

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] dis-functional error from emerge -vuDN

2008-01-02 Thread reader
An error message I get while `emerge -vuDN world' (following a sync)
concerning sys-libs/pam doesn't give me enough information to cure
what ails it.

Even scanning through the update page:
  http://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml

the error refers me to I end up not really seeing what needs to be
done. (full error at the end.  I've included massive outout of 
emerge --info for reference)

The error claims I am running:
 pam_pwdb, pam_radius, pam_timestamp, pam_console
but provides no clue as to how to remedy that condition.

Further, I'm striking out even determining that I am in fact doing
what that line claims.

Checking the output of equery files sys-libs/pam I see none that match
up to those module names. A grep -r using the part of those names
after the underscore like: 
  grep -r 'pwdb' /etc/security/

Produces no hits.  In fact there is not a single line in 
/etc/security/pam_env.conf that is not commented

I thought maybe it was a USE flag problem so looked at how the
existing pam was installed:

 USE="cracklib%* nls -audit% (-selinux) -test% -vim-syntax"

Unless cracklib is the culprit I don't see much there to inspire me.

I'm out of ideas as to where to look and the error doesn't give enough
information to guide me further.  There may be something in that
update page to help but its skipping right over my head.

It never really says where the code it presents is to be found but I'm
guessing it would be the files under /etc/security
all those files are commented out except  namespace.init that has this
line uncommented:
   exit 0
Maybe something needs to be uncommented in one of them.

==
error message from emerge -vuDN world

 * Your current setup is using one or more of the following modules,
 * that are not built or supported anymore:
 * pam_pwdb, pam_radius, pam_timestamp, pam_console
 * If you are in real need for these modules, please contact the maintainers
 * of PAM through http://bugs.gentoo.org/ providing information about its
 * use cases.
 * Please also make sure to read the PAM Upgrade guide at the following URL:
 *   http://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml
 * 
 * Your current setup is using one or more of the following modules,
 * that are not built or supported anymore:
 * pam_pwdb, pam_radius, pam_timestamp, pam_console
 * If you are in real need for these modules, please contact the maintainers
 * of PAM through http://bugs.gentoo.org/ providing information about its
 * use cases.
 * Please also make sure to read the PAM Upgrade guide at the following URL:
 *   http://www.gentoo.org/proj/en/base/pam/upgrade-0.99.xml

 * ERROR: sys-libs/pam-0.99.9.0 failed.

==

Output of emerge --info

Portage 2.1.4_rc14 (default-linux/x86/2007.0/desktop, \
   gcc-4.2.1, glibc-2.6.1-r0, 2.6.21-gentoo-r3 i686)
=
System uname: 2.6.21-gentoo-r3 i686 Intel(R) Celeron(R) CPU 3.06GHz
Timestamp of tree: Tue, 01 Jan 2008 20:00:03 +
app-shells/bash: 3.2_p17-r1
dev-lang/python: 2.5.1-r4
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config 
/usr/kde/3.5/shutdown /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ 
/etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild 
/etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo.cites.uiuc.edu/pub/gentoo/ 
ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.cs.lewisu.edu/gentoo/";
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress 
--force --whole-file --delete --delete-after --stats --timeout=180 
--exclude=/distfiles --exclude=/local --exclude=/packages 
--filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa apache2 arts bash-completion berkdb bitmap-fonts cairo cdr 
cli cracklib crypt cscope cups dbus dri dvd dvdr dvdread eds emacs emboss 
encode esd evo fam firefox fortran gdbm gif gpm gstreamer gtk hal iconv isdnlog 
jpeg kde kerberos ldap logrotate mad mbox midi mikmod mp3 mpeg mudflap mysql 
ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl png pppd 
python qt3 qt3support qt4 quicktime readline reflection samba sasl sdl session 
spell spl ssl svg tcpd tiff t

[gentoo-user] Re: Any reason to keep older gcc?

2007-12-30 Thread reader
"Walter Dnes" <[EMAIL PROTECTED]> writes:

>   I went through the list, and I've unmerged what I could get away with,
> and reduced the count down from 74 to 53.  I don't think I can go much
> further.

Hey Walter just a little aside in case.

I discovered that ksh93 depends on version gcc-3* in a brand new
install where portage just installed gcc-4* apparently by default.

Its a very new and pared down system... but I like ksh93 and was sorry
to see it needs gcc-3*... I doubt I'll miss it enough to start diddling
around with changing versions of gcc.  

I do have lots of script that won't run in bash without some changing.

So if you are a ksh93 person... maybe you should look into it.

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: No help on annoying `sandbox' error

2007-12-30 Thread reader
"Walter Dnes" <[EMAIL PROTECTED]> writes:

>> I see nothing really like this on bugzilla although their are other
>> access violations there.  I guess it needs to be turned in as a bug but
>> fisrst tell me if its really a bug or something to do with my
>> ill-informed setup.

Thanks for noticing my post Walter.

>   A couple of things to look at...

>   1) Do you have "SANDBOX" mentioned anywhere in /etc/make.conf ?

No

>   2) Grasping at straws here, have you made any manual changes to
>  /etc/profile ?  The reason I'm asking is because
>  /usr/share/sandbox/sandbox.bashrc sources /etc/profile

I don't recall having done so, and looking it over now I don't see any
thing funky looking like I might have put there.  I did have an 

  `echo reading /etc/profile'

in there at one point trying to unravel something and wanted to see
when it was sourced, but I removed that long ago.

There is quite a lot of sourcing going on in /etc/profile too, like
/etc/profile.env /etc/profile.d/bash-conpletion 

I wish they'd sort of leave the init scripts a little less complicated
to unravel.  Or at least.. I wish I knew a way to in one command make
the os tell me where everthing in env came from (which file I mean).

It seams a little wild that it would go after my .bash_history.  What
would it be doing there... what would it write there and why?

A little less subjective test: I'm building up a small vmware
appliance from new install disc (2007.X) and diffing that /etc/profile
against the one where the trouble is shows no differences at all.

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] ksh(93) emerge failure

2007-12-28 Thread reader
On a new install with profile `hardened/x86/2.6'.  I'm finding that
ksh will not emerge successfully.  The closing error is not very
enlightening, at least not to me:

  * Messages for package app-shells/ksh-93.20040229:

 * ERROR: app-shells/ksh-93.20040229 failed.
 * Call stack:
 *ebuild.sh, line 1701:  Called dyn_compile
 *ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *ebuild.sh, line   44:  Called src_compile
 *   ksh-93.20040229.ebuild, line   51:  Called die
 * The specific snippet of code:
 *  cd ${S}; ./bin/package only make ast-ksh CC="$(tc-getCC)" || die
 *  The die message:
 *   (no error message)

In the days before ksh93 (circa 2003/4) was an ebuild (or maybe I just
didn't know it was) it was a right pain to build and install it by
hand.

I've never understood the unusual build process of the KORN tools and
I see emerge go thru truly massive work to build it too.  So the
chances of me finding what went wrong is just about non-existent.

Near as I can tell the closest thing to a similar bug that got
reported was in 2004 and it appears the only helpfull part of that was
setting `nls' as one of the USE items.

emerge is using `nls' and `-static' here.  `nls' enables native
language support using gettext which I do have installed, also with
`nls' use set.

==

I've just noticed something by running `emerge -vDp ksh', it wants a
different compiler than I have installed.

gcc-4.1.1-r3 got installed when I started building up this new system.

ksh apparently wants: 

[ebuild NS ] sys-devel/gcc-3.4.6-r2 USE="hardened nls (-altivec)
-bootstrap -boundschecking -build -d -doc -fortran -gcj -gtk -ip28
-ip32r10k -multilib -multislot (-n32) (-n64) -nocxx -nopie -nossp
-objc -test -vanilla"

as a `Deep' dependancy.

Will I be really messing up my new system if I install two version of
gcc?  And secondly how does the right one get used for ksh?

I can live without ksh of course but I do have quite a few homemade
scripts that depend on ksh.  Many of them will need some recoding even
to use pdksh as I recall.

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] No help on annoying `sandbox' error

2007-12-28 Thread reader
I'm having a continuing annoying problem from sandbox trying to write
out of its crib.

I've posted here twice before but caught no ones attention.
Possibly this is something screamingly obvious and people just ignored
the posts.

`sandbox' doesn't like my root .bash_history.
  ACCESS DENIED  open_rd:   /root/.bash_history
  ACCESS DENIED  open_rd:   /root/.bash_history

I see nothing really like this on bugzilla although their are other
access violations there.  I guess it needs to be turned in as a bug but
fisrst tell me if its really a bug or something to do with my
ill-informed setup.

It happens with any usage of emerge and unless I rename
/usr/bin/sandbox or remove /root/.bash_history, `sanbox' will block
any emerge action.

Renaming it seems the easiest, then portage reports the problem but
continues anyway.

I tried making bash write it history to something else like
BASH_HITORY but sandbox tracks it down and squawks about BASH_HISTORY
then. 

`file' reports .bash_history to be the expected `ascii text file'

If I delete bash_history and there is a complex emerge underway like
updating world, then sooner or later bash writes a new one and emerge
screeches to a halt.

I'm sorry but I couldn't really make much sense of the sandbox bugs on
bugzilla or what to do about my problem.

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: Which kernel option - PCnet32 driver

2007-12-28 Thread reader
[EMAIL PROTECTED] writes:

> So the closest match I see is: PCI NE2000 and clones support (see
> help) 
>
> At least it contains PCI and nothing else seems to.
>
> Anyone know if that is it?

Never mind... after more digging I found it at:
 Device Drivers ->
Network device support  --->   
 [*]   Ethernet (10 or 100Mbit)  --->
   AMD PCnet32 PCI support

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Which kernel option - PCnet32 driver

2007-12-28 Thread reader
In compiling a kernel for a vmware installation I'm not sure which
kernel option (2.6.23) under `Network Device Support' in make menuconfig
dialog is responsible for the pcnet32 driver.

None of the names there give it away.

Dmesg sees it like this:
  eth0: registered as PCnet/PCI II 79C970A

So the closest match I see is: PCI NE2000 and clones support (see
help) 

At least it contains PCI and nothing else seems to.

Anyone know if that is it?

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Example Kernel conf for versatile iptables setup

2007-12-27 Thread reader
Where can I see a condensed overview of what needs to be set in the
kernel for maximum flexibility using iptables and snort?

This google search:
   site:gentoo.org "kernel settings"  iptables 

Turns up a number of shortish discussions in the forums but nothing in
actual gentoo documentation.

   site:gentoo.org kernel iptables

Broadening the search brings alot more list discussion but so much it
will be a pretty big undertaking to scan thru even a fraction of it.

Is there anyone here who may know a more detailed presentation or
discussion they can point me at?

My aim is setting up a small somewhat hardened OS that will serve as a
half booty DMZ... `half' in that it will not route anything to lan or
anywhere else (other than iptable/snort logs).  It will receive the
rejected traffic from an upstream firewall router.

The logs are what I'm after so it will mainly reject and log.

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: emerge failing on ebuild [econf failed]

2007-12-27 Thread reader
Florian Philipp <[EMAIL PROTECTED]> writes:

>>  *   failed to run configure
>>  * 
>> 
>
> It seems, your system tries to use a compiler it doesn't have. Run
> "gcc-config -l". Then "gcc-config x" where x is the number of a working
> config (most probably "1").

Thanks Florian.  I'll remember that tip.  But I caved in and scrubbed
the install... I'd been refraining from that as I didn't want to redo
the vmware part of this OS (Its a guest on Winxp).

But its really really broken now from all my borking around.

I'm now reinstalling form 2007 minimal cd.

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: emerge failing on ebuild [econf failed]

2007-12-27 Thread reader
Randy Barlow <[EMAIL PROTECTED]> writes:

> [EMAIL PROTECTED] wrote:
>> I've pared down my system to a minimal state.
>> 
>> emerge --depclean returns no actions needed, but I think it may have
>> gotten a litte too exuberant.
>> 
>> revdep-rebuild wants to rebuild python but the emerge fails here:
>> 
> Source unpacked.  
> 
> Compiling source in 
> /var/tmp/portage/dev-lang/python-2.5.1-r4/work/Python-2.5.1 .
>> ..   
>>  
>>  *   econf failed
>>  
>> [...]
>>  * The ebuild environment file is located at 
>> '/var/tmp/portage/dev-lang/python-2.5.1-
>> r4/temp/environment'.
>>  
>>  *   
>>  
>> 
>> [...]
>
> What's in this "[...]"?  The error message that matters the most is
> likely to be in there...

It didn't look like it.
I don't have it now since I've found I the switch to minimal has
caused my gcc to not be ready to compile binaries.

I'm in there now with live cd trying to fix things up.

I copied the livecd gcc binary on /mnt/gentoo/mybin.
I've chrooted into the problem OS after mounting the livecd proc
directory on it, and attempting to emerge gcc, after adding /mybin
first in the $PATH variable.

Here is that error message:

[...]

  gcc-config error: Could not run/locate "gcc"
*** The command 'gcc -o conftestconftest.c' failed.
*** You must set the environment variable CC to a working compiler.
 * 
 * ERROR: sys-devel/gcc-3.4.6-r2 failed.
 * Call stack:
 *   ebuild.sh, line   46:  Called src_compile
 * environment, line 4540:  Called toolchain_src_compile
 * environment, line 5022:  Called gcc_src_compile
 * environment, line 2903:  Called gcc_do_configure
 * environment, line 2669:  Called die
 * The specific snippet of code:
 *   "${S}"/configure ${confgcc} $@ ${EXTRA_ECONF} || diefunc "$FUNCNAME" 
"$LINENO" "$?" "failed to run configure";
 *  The die message:
 *   failed to run configure
 * 

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: rsync for backup, can anybody help

2007-12-27 Thread reader
Paul Stear <[EMAIL PROTECTED]> writes:

[...]

>
> Also I am getting a lot of errors and the backup is  finishing early and 
> not producing the stats. i.e.
>
> rsync: 
> symlink 
> "/mnt/external/OneFileSystemBackup/usr/i686-pc-linux-gnu/lib/libopcodes.so" 
> -> "/usr/lib32/binutils/i686-pc-linux-gnu/2.18/libopcodes.so" 
> failed: Operation not permitted (1)
> rsync: chown "/mnt/external/OneFileSystemBackup/usr/include" failed: 

[...]

This looks like a permissions problem.  Is that symlink pointing at an
area where you do not have permissions?

>
> This is my command line:-
> $RSYNC  \
> -vaHKiq --delete-during --stats --progress --modify-window=2 
> --one-file-system  --include=/**/ / 
> /mnt/external/OneFileSystemBackup ;
>

The command is a bit out of my league with all those flags.  I've
never used several uf them.  Maybe someone will know.

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] emerge failing on ebuild [econf failed]

2007-12-27 Thread reader
I've pared down my system to a minimal state.

emerge --depclean returns no actions needed, but I think it may have
gotten a litte too exuberant.

revdep-rebuild wants to rebuild python but the emerge fails here:

>>> Source unpacked.
>>>   
>>> Compiling source in 
>>> /var/tmp/portage/dev-lang/python-2.5.1-r4/work/Python-2.5.1 .
..  
  
 *   econf failed   
  
[...]
 * The ebuild environment file is located at 
'/var/tmp/portage/dev-lang/python-2.5.1-
r4/temp/environment'.   
  
 *  
  

[...]

 * ERROR: dev-lang/python-2.5.1-r4 failed.  
  
 * Call stack: 


 *   ebuild.sh, line   46:  Called src_compile  
  
 * environment, line 3304:  Called econf 'src_compile' 
'src_compile' '--w
ith-fpectl' '--enable-shared' '--disable-ipv6' '--infodir=${prefix}/share/info' 
'--ma
ndir=${prefix}/share/man' '--with-libc='
  
 *   ebuild.sh, line  507:  Called die  
  
 * The specific snippet of code:
  
 *  die "econf failed"  
  
 *  The die message:
  
 *   econf failed  

I'm not finding this line `ebuild.sh 507' or even the file anywhere in
the build area or elsewhere for that matter.

Not able to devine any clues from:
  /var/tmp/portage/dev-lang/python-2.5.1-r4/temp/environment
either.

Its not at all clear where the * Call stack leads.  At least not to
me.  But apparently it has something to do with src_compile in the
ebuild.

Anyone recognize this kind of error?

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Possible needed lib missing?

2007-12-26 Thread reader
I'm building up a minimal install a bit at a time... Or I should say
building down.  It was a full install at one point.

I'm getting strange behavior in vim when accessing the minimal machine
thru ssh from another gentoo box.

When using vims search tool on the remote (/) normally you can scroll
thru previous search strings with up/down arrow.  But I'm getting 
printed literally instead when I press up/down to access a previous
search.

It seems a safe bet it has to do with paring down the install since it
worked normally previously.  

I've edited down the world list, changed a number of USE flags,
changed the profile to hardened/x86/minimal.  Ran emerge -vuDN world
followed by `emerge --depclean' and `revdep-rebuild'.  All succeeded.

Does anyone know what library might be involved with scrolling
previous/next with up/down arrow keys in vim?  I thought readline
right away but that is installed and at the newest version.

I also thought it might be from coming in via ssh with xterm going to
a console only install so I tried:  TERM=linux ssh [...]

It made no difference at all.

Any ideas what else to look at?

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] using q commands compared to equery

2007-12-26 Thread reader
I notice that 
   `qdepends pkg' 
sometimes gives different ouput than
   `equery depends pkg

Which is considered the more reliable? 
I remember some of those kinds of tools becoming depricated.  Maybe
the list of `q' commands were among them?

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: rsync for backup, can anybody help

2007-12-26 Thread reader
Neil Bothwick <[EMAIL PROTECTED]> writes:

> On Wed, 26 Dec 2007 18:07:38 +, Paul Stear wrote:
>
>> > --one-file-system  
>> 
>> Still not sure what the above will produce, I didn't find the man page 
>> very readable. Take sys for example, if it is saying that the directory 
>> would be created, would I still need to exclude everything under it?.

Neil has handled this... I wanted to include the rsync syntax to
collect only directories... full or empty:

So to collect all the directories regardless of your excludes
put this before any excludes:
--include=/**/

The trailing slash confines it to direcotories only.

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: Any glaring use flags here

2007-12-26 Thread reader
Neil Bothwick <[EMAIL PROTECTED]> writes:

> On Tue, 25 Dec 2007 22:53:10 -0600, [EMAIL PROTECTED] wrote:
>
>> This machine is been prepped to be a sort of DMZ machine, but not
>> more wannabe than really since it will not route stuff to my home lan
>> at all... just be the recipient of all blocked stuff at an upsteam
>> NETGEAR firewall/router.
>> 
>> I would like an opinion about the USE flags I keep in /etc/make.conf
>> 
>> USE="mysql emacs mbox hal acpi logrotate vga nptl nptlonly \
>>   -ipv6 -imap -maildir  -gnome -X -kde"
>

[...]

- Notes - Notes -

First let me reiterate what this OS is supposed to do.  My original
post was so riddled with typos and bad grammer, I'm amazed you
understood enough of it to make a sensible reply.

Briefly: This machines' purpose is to receive the output of a DMZ
switch at a NETGEAR router upstream.  It will not be routing anything
to the local lan and has only 1 nic. I just want a pipeline of all the
baloney my firewall is dropping for my own investigation.

The netgear router/firewalls' own logging capabilities produces a big
awkward, poorly formatted log. Getting it mailed and processed is a
pain, and having it log directly to a lan machines' syslog seems to
truncate the data to the point its nearly useless.  The configuration
proceedure is also way awkward compared to hand editing an iptables
script. 

I plan to install an iptables firewall that drops incoming portscans
sweeps untoward connection attempts etc. etc.logs the info and study
the logs with tcpdump etc.

 End Notes - End Notes -

Neil wrote:
> It depends on the profile you use, since that affects the defaults
> for flags not set/unset in /etc. Which profile are you using, hopefully a
> server one, and what does "emerge --info show". The output from emerge


Gack I've never given a moments thought to which profile I used.
It appears to be pointing at the default one.

 /etc/make.profile -> ../usr/portage/profiles/default-linux/x86/2006.1

 emerge --info shows a hefty list of USE flags.  Good lord.  I had
 no idea all those were being used during emerges.

I think I better do some reading before proceeding with this.

I'm thinking, switching to the `hardened' profile is probably what I
should be doing.

How does one go about changing the profile?  Is it as simple as just
changing the symlink?

googling on `site:gentoo.org profile'  

I find a little guide showing how to change from 2004.0 to 2006.X.  It
talks about a different setup being deployed post 2004.0. So I'm wondering
if there are more or different steps involved now?

The full output of that search even when adding `-forums' is too much
to swim thru without a little more paring down.

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Any glaring use flags here

2007-12-25 Thread reader
This machine is been prepped to be a sort of DMZ machine, but not
more wannabe than really since it will not route stuff to my home lan
at all... just be the recipient of all blocked stuff at an upsteam
NETGEAR firewall/router.

I would like an opinion about the USE flags I keep in /etc/make.conf

I've pared it down from a more extensive list with some quite old
stuff on it.

Just wanting to make sure there is no glaring incompatability.

I remember seeing something about the nptl and nptlonly flags being
outdated.   Is that right?  And I'm pretty sure -gnome -kde and -X is
little overboard... but not sure what -X really does.

USE="mysql emacs mbox hal acpi logrotate vga nptl nptlonly \
  -ipv6 -imap -maildir  -gnome -X -kde"

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: removing X

2007-12-25 Thread reader
forgottenwizard <[EMAIL PROTECTED]> writes:

> Something to remember for the future:
>
> You can delete entries in the world file
>
> Personally, I find that faster than going through and finding what is
> already installed, and doing the uninstall the long way. emerge --tree
> should help some, as well, but for a basic install (<30 packages in
> world), deleting the entries should be the fastest way, followed by an
> emerge --depclean.

Thanks for your input..
Earlier in this thread ( Message-ID: <[EMAIL PROTECTED]> )
it was explained why I couldn't use --depclean at that point. 

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: removing X

2007-12-24 Thread reader
Grant Edwards <[EMAIL PROTECTED]> writes:

> On 2007-12-24, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>> I'm attempting to remove X from a former desktop machine now
>> going to see action as a semi-DMZ.
>
> That sounds like a lot of work.  My guess is that it would be a
> faster and easier to wipe the disk and install from scratch.

I would have done that without hesitation had it not been for the fact
that this installation is a vm guest on winXP and I had a heck of a
time getting it to work with gentoo.

But as it turned out it wasn't all that hard.  Mainly because it was
kind of a basic installation even though it had X and KDE desktop.

The fact that emerge can swallow giant size lists of stuff to
uninstall was a big bonus.  I didn't go over 86 on cmdline and just
settled for doing it multiple times, but I think it would have
swallowed more if I had.

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Why doesn't `sandbox' like /root/.bash_history?

2007-12-24 Thread reader

Any usage of emerge gets:

  ACCESS DENIED  open_rd:   /root/.bash_history
  ACCESS DENIED  open_rd:   /root/.bash_history

if I:

  mv ~/.bash_history ~/.bash_historyX

It works fine.

  ls -l ~/.bash_history
  -rw--- 1 root root 1841 Dec 24 12:14 /root/.bash_history

I've tried chmodding it to 644 but that does nothing.

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: removing X

2007-12-24 Thread reader
Neil Bothwick <[EMAIL PROTECTED]> writes:

> On Mon, 24 Dec 2007 11:56:57 -0600, [EMAIL PROTECTED] wrote:
>
>> I don't want to follow the advice offered there an run the newuse
>> world yet... I want to finish cleaning house first.
>> 
>>   Dependencies could not be completely resolved due to  
>>   the following required packages not being installed 
>> 
>>   x11-proto/kbproto required by x11-libs/libX11-1.1.1
>> x11-libs/libXt-1.0.5 x11-proto/xextproto required by
>> x11-libs/libXext-1.0.3
> ...
>
> You may have a long night ahead of you. Unless this is a slow machine, it
> is probably quicker to emerge -u world first, especially if most the
> packages you have removed as as small as the ones you listed. 
>
Thanks... this wasn't a huge installation.  I'm not sure how many
installed packages were there... but I was able to get it done in
about 1 hr.

emerge was able to gulp long cmdlines constructed like:

   eix -I >installed
Then a series of this type command:
  emerge -vC `awk '/x11-drivers/{print $2}'`

Rebuilding the `installed' file occasionally.

I'm not sure what kind of a mess I've created yet ..  I just started

 emerge -vuDe world

Today about 1/2 hr ago

But at least the `world' file was pared way down; no monster kde
compiles to wait out.

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: removing X

2007-12-24 Thread reader
"Michal 'vorner' Vaner" <[EMAIL PROTECTED]> writes:

> Hello
>
> On Mon, Dec 24, 2007 at 11:31:16AM -0600, [EMAIL PROTECTED] wrote:

[...]

>> Would just passing dozens of command line arguments to emerge be a
>> suitable way to get rid of all the clutter?
>
> You could remove the meta-package (the one that has size 0 and depends
> on everything, I guess it's xorg-x11) and then emerge --depclean. You
> probably should check, what everything that might want to remove, as it
> might get the things a bit wrong, sometimes.

That appears not to be possible here since I've already begun
uninstalling stuff the hard way.  I get this message from
  --depclean

I don't want to follow the advice offered there an run the newuse
world yet... I want to finish cleaning house first.

  Dependencies could not be completely resolved due to  
  the following required packages not being installed 

  x11-proto/kbproto required by x11-libs/libX11-1.1.1 x11-libs/libXt-1.0.5
  x11-proto/xextproto required by x11-libs/libXext-1.0.3
  x11-proto/xproto required by x11-libs/libXau-1.0.3 x11-libs/libXdmcp-1.0.2 
x11-libs/libXmu-1.0.3 x11-libs/libICE-1.0.3 x11-libs/libSM-1.0.2 
x11-libs/libXt-1.0.5 x11-libs/libXfont-1.2.7
  x11-proto/fontsproto required by x11-libs/libXfont-1.2.7
  >=dev-lang/python-2.5 required by sys-apps/portage-2.1.4_rc11
  >=x11-proto/xproto-7.0.6 required by x11-libs/libX11-1.1.1
  >=sys-fs/cryptsetup-1.0.5 required by sys-apps/hal-0.5.7.1-r5

  Have you forgotten to run `emerge --update --newuse --deep world` prior to
  depclean?  It may be necessary to manually uninstall packages that no longer
  exist in the portage tree since it may not be possible to satisfy their
  dependencies.  Also, be aware of the --with-bdeps option that is documented
  in `man emerge`.

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: rc-update can't fix broken runlevel config

2007-12-24 Thread reader
"Michal 'vorner' Vaner" <[EMAIL PROTECTED]> writes:


> In /etc/runlevels, there is a directory for each runlevel. That
> directory contains symlinks to the scripts in /etc/init.d. Just delete
> the ones that point to non-existing files (they are usually red in bash,
> if you have colors).
>
> I hope this helps.

Yup.. it did.. I should have thought of that and chased it down .. thanks

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] removing X

2007-12-24 Thread reader
I'm attempting to remove X from a former desktop machine now going to
see action as a semi-DMZ.

What is the best way to go about removing X and all its files.

Removing the basic x11-base/xorg-x11 is easy enough but there appears
to be dozens of other X related pkgs installed.
  x11-proto/* has apparently dozens of relatives installed.

emerge does not appear to accept globbing or maybe I'm just doing it
wrong.


Would just passing dozens of command line arguments to emerge be a
suitable way to get rid of all the clutter?

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] rc-update can't fix broken runlevel config

2007-12-24 Thread reader
I'm stripping down a former regular desktop setup of gentoo to remove
X and any unnecessary services like sendmail samba cups... and more.

I've been checking dependences and removing thing in some attempt at
sytematically .. but the end its `emerge -vC something'

So I now have things set in some runlevels that are uninstalled.
rc-update show has these error messages


   Broken runlevel entry: /etc/runlevels/default/samba
   Broken runlevel entry: /etc/runlevels/default/net.eth0
   Broken runlevel entry: /etc/runlevels/default/sendmail
 
[...]

rc-update will not let me delete or readd them (since they are
missing)

I find mention of this problem with google but the only fix mentioned
is to readd and then delet... I can't do that here.

So I guess I need to hand edit whatever source file or files rc-update
uses. Where are they?


-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: Got myself in a bind unmerging portage

2007-12-17 Thread reader
Dale <[EMAIL PROTECTED]> writes:

>> What is this about?  The log cited contains only the lines shown and
>> no other logs are present there
>>
>>   
>
> http://forums.gentoo.org/viewtopic-t-625682-highlight-violation+summary+sandbox.html
>
> http://forums.gentoo.org/viewtopic-t-604376-highlight-violation+summary+sandbox.html
>
> That should help.  I hope anyway.

Thanks... using the FEATURE trick to turn off sandbox allows me to:

  FEATURES="-sandbox" emerge -vu rsync

But according to your second link which leads to a message dated Sat
Oct 27, 2007, this should not be necessary with newer versions of
sandbox and I am running the newest in current portage as revealed by
eix =>  Installed versions:  1.2.18.1-r2

Maybe the problem has returned?

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: Got myself in a bind unmerging portage

2007-12-17 Thread reader
Dale <[EMAIL PROTECTED]> writes:

> http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml
>
> That help any?  It's not like you are the first to do something like
> this.  LOL

Ok Whew.. now recovered portage and re-emerged portage-2.1.4_rc1
using the hand installed portage most recent full tarball
portage--2.1.3.16

All but the problem I reported earlier... before foolishly unmerging
portage is still there.  I don't recognize what these errors mean but
they showed up BEFORE the portage trouble and occur now too:


emerge -vu rsync
=== BEGIN emerge output ==
Calculating dependencies... done!
[ebuild U ] dev-libs/popt-1.12 [1.10.7] USE="nls" 0 kB 
[ebuild U ] net-misc/rsync-3.0.0_pre7 [2.6.9-r4] USE="acl -ipv6 -static 
-xattr% -xinetd" 733 kB 

Total: 2 packages (2 upgrades), Size of downloads: 733 kB

>>> Verifying ebuild Manifests...

>>> Emerging (1 of 2) dev-libs/popt-1.12 to /
 * popt-1.12.tar.gz RMD160 SHA1 SHA256 size ;-) ...[ ok ]
 * checking ebuild checksums ;-) ...   [ ok ]
 * checking auxfile checksums ;-) ...  [ ok ]
 * checking miscfile checksums ;-) ... [ ok ]
 * checking popt-1.12.tar.gz ;-) ...   [ ok ]
ACCESS DENIED  open_rd:   /root/.bash_history
ACCESS DENIED  open_rd:   /root/.bash_history
>>> Unpacking source...
>>> Unpacking popt-1.12.tar.gz to /var/tmp/portage/dev-libs/popt-1.12/work
 * Applying popt-1.10.4-lib64.patch ...[ ok ]
 * Applying popt-1.12-scrub-lame-gettext.patch ... [ ok ]
>>> Source unpacked.
--- ACCESS VIOLATION SUMMARY ---
LOG FILE = "/var/log/sandbox/sandbox-26803.log"

open_rd:   /root/.bash_history
open_rd:   /root/.bash_history

 END of emerge output ===

What is this about?  The log cited contains only the lines shown and
no other logs are present there

-- 
[EMAIL PROTECTED] mailing list



<    1   2   3   4   5   >