alternatives for a proprietary lib file

2015-01-03 Thread Sam Halliday
Hi all,

I have a license for the Intel Math Kernel Library which has a file

  /opt/intel/mkl/lib/intel64/libmkl_rt.so

that provides a lot of interfaces, such as BLAS/CBLAS (i.e.
libblas.so.3) and LAPACK (i.e. liblapack.so.3).

I'd like to be able to use the Debian alternatives system to point at
this file, without having to manually create symbolic links.

Does anybody know how I can do this? Much of the documentation I have
found is related to usage of alternatives, not the creation of a new
alternative for a file.

Ideally, it would be nice to be able to create a little .deb package
that simply provides the option to use this library as an alternative
and to give it the highest priority.

Best regards,
Sam


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CALR_T9D5Nuh7Ce0=c6b0ny+M1ZteOK3tGuVom_5bajan=co...@mail.gmail.com



Re: alternatives for a proprietary lib file

2015-01-03 Thread Sam Halliday
On 3 January 2015 at 17:19, Henrique de Moraes Holschuh h...@debian.org wrote:
 On Sat, 03 Jan 2015, Sam Halliday wrote:
   /opt/intel/mkl/lib/intel64/libmkl_rt.so

 I'd like to be able to use the Debian alternatives system to point at
 this file, without having to manually create symbolic links.

 Alternatives are not the correct tool for this.  Take a look at the
 dpkg-divert stuff, divert the original libs, and add a symlink in their
 place.

Normally what you say is true, but Debian already manages libblas.so.3
and liblapack.so.3 using the alternatives system (they are specialist
mathematics libraries that can be swapped at runtime for improved
performance).


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CALR_T9A8cx8Z-eh2aarpt5e5Pc-6fMUru1uCmG9=mk+_jeh...@mail.gmail.com



Issues with Gnome-2.8

2004-12-22 Thread Sam Halliday
hi there,
i have been a long time blackbox user, but recently decided that maybe a full 
blown desktop would be nice for a change. so i installed gnome-2.8 from
testing/unstable. it looks very sweet, but i have several issues which i hope
some people can help me with:

- gnome overrides .Xmodmap (even if i try and load it manually in .gnomerc), 
and i have a non trivial setup which i wish to use... the gnome keyboard 
configuration program does not appear sophisticated enough to do what i want. 
is there any way to use an Xmodmap style setup in gnome? specifically, i wish 
to do this (this is my .Xmodmap)
	keycode 64 = Mode_switch
	keycode 115 = Alt_L
	keycode 116 = Meta_L
	keycode 108 = Multi_key
	clear Mod1
	clear Mod2
	clear Mod3
	clear Mod4
	clear Mod5
	add Mod1 = Alt_L

- i like to run emacs and dvi viewers in fullscreen mode in blackbox. but i
see no way to remove the window shades from a running program under gnome...
surely there must be a way! anyone know how? proper fullscreen mode would be 
even more appreciated (i.e. no window shades or gnome panels in view at all)

- on startup i get a warning about the permissions of /dev/pmu being
incorrect. i don't want to go messing with the permissions of it... so how can
i turn off whatever is trying to access it?
thanks in advance!
cheers,
Sam
--
Free High School Science Texts
  http://www.nongnu.org/fhsst/
Sam's Homepages
  http://fommil.homeunix.org/~samuel/
  http://www.ma.hw.ac.uk/~samuel/


signature.asc
Description: OpenPGP digital signature


editing the GNOME2.8 menu

2004-12-22 Thread Sam Halliday
hi there,
i have my panel to show a main menu applet in gnome. i wish to edit the 
entries here... specifically, i wish to remove the Run Application, Search 
for File, spacers and Recent Documents entries and have my own custom 
Applications.

while googling for the answer, i came across this thread:
  http://mail.gnome.org/archives/gnome-list/2003-July/msg00043.html
which suggests a source recompile! this thread was speaking of an older 
version of GNOME2, so i'm hoping things have gotten better. have they?

cheers,
Sam
--
Free High School Science Texts
  http://www.nongnu.org/fhsst/
Sam's Homepages
  http://fommil.homeunix.org/~samuel/
  http://www.ma.hw.ac.uk/~samuel/


signature.asc
Description: OpenPGP digital signature


Re: Thunderbird style search in Firefox

2004-12-20 Thread Sam Halliday
Jonathan Kaye wrote:
Sam Halliday wrote:
Ralph Katz wrote:
For searching *within* a web page in firefox
sorry if i was unclear... i mean the search bar at the top. the one 
that requires search engines, like google.
OH that one!
If you mean the one just to the right of the basic url textbox, then 
ctl-k does that for you.
no, you need to 'C-k Del' to do what i want. besides... that is not the point. 
i knew the keystroke from the very beginning of the thread, i was axing if 
anyone had written an extension to do what thunderbird does; bring up a 
'clear' button.

thanks anyway.
cheers,
Sam
--
Free High School Science Texts
  http://www.nongnu.org/fhsst/
Sam's Homepages
  http://fommil.homeunix.org/~samuel/
  http://www.ma.hw.ac.uk/~samuel/


signature.asc
Description: OpenPGP digital signature


Re: Thunderbird style search in Firefox

2004-12-19 Thread Sam Halliday
Jonathan Kaye wrote:
Sam Halliday wrote:
for anyone who has thunderbird installed, they will notice that when 
you search for an item in the search bar, a little button appears 
which allows you to clear the field... is there an extension to 
firefox which enables the same feature in its search bar? as it is 
very irritating having to manually clear the search bar every time.
I just use ctl-f which opens the search box if it's not already open. It 
highlights any text in the box if it's already open so anything I type 
replaces what's highlighted. It shifts focus to the search box as well 
so even if the box is on the main Firefox browser window ctl-f will get 
you straight to the search box. I'm using KDE and ctl-f is the search 
command used in KDE apps anyway.

Isn't that easier and quicker than using a button.
no. consider the situation where i have selected text from the browser window 
which i wish to search for. C-f will not delete the text in the search window, 
and neither will pasting over it. the only key combination which will do what 
i wish involves 4 key presses on my laptop C-k Fn-BS (to send C-k Del). a 
button would be much better, and not require me to learn any new key strokes. 
i already use emacs... i think thats enough key shortcuts for a lifetime!

cheers,
Sam
--
Free High School Science Texts
  http://www.nongnu.org/fhsst/
Sam's Homepages
  http://fommil.homeunix.org/~samuel/
  http://www.ma.hw.ac.uk/~samuel/


signature.asc
Description: OpenPGP digital signature


Re: Thunderbird style search in Firefox

2004-12-19 Thread Sam Halliday
Ralph Katz wrote:
For searching *within* a web page in firefox
sorry if i was unclear... i mean the search bar at the top. the one that 
requires search engines, like google.

cheers,
Sam
--
Free High School Science Texts
  http://www.nongnu.org/fhsst/
Sam's Homepages
  http://fommil.homeunix.org/~samuel/
  http://www.ma.hw.ac.uk/~samuel/


signature.asc
Description: OpenPGP digital signature


Re: Thunderbird 1.0

2004-12-18 Thread Sam Halliday
Steve Lamb wrote:
Sam Halliday wrote:
i don't care for any of this Personal Certificate stuff... i just want 
to use it with GPG. and in fact, Thunderbird is *ignoring* all the 
PGP/Mime attachments for all the emails i have looked at which i 
*know* have signatures (over IMAP). it is also saying that ASCII 
signed emails have no Digital Signature.
Ok, well, let's run through this.  I've got TBird installed and 
working with Enigmail.  So, let's compare.
everything i have is the same
On the main window do you have Enigmail between Message and 
Tools on the menu bar?
no! how odd. so i uninstalled the system-wide Enigmail and 
downloaded/installed the xpi from the official site. then i *do* get the menu 
entry, and during Compose i get an OpenPGP menu entry as well... however, i 
get a pop-up when i start the Composer to say Enigmail is not working.

When reading mail do you have Enigmail between Message and 
Tools and/or a Decrypt Icon between Forward and Delete?

When composing mail do you have Enigmail between Options and 
Tools and/or an OpenPGP icon between the Attach and S/MIME icons?
only after installing the XPI...
i only started using Thunderbird 2 days ago... perhaps this is just a problem 
with people starting a new thunderbird account on the latest versions. perhaps 
you might see the same as i do if you temporarily move your 
.mozilla-thunderbird folder out of the way, and set up a new account.

cheers,
Sam
--
Free High School Science Texts
  http://www.nongnu.org/fhsst/
Sam's Homepages
  http://fommil.homeunix.org/~samuel/
  http://www.ma.hw.ac.uk/~samuel/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Thunderbird style search in Firefox

2004-12-18 Thread Sam Halliday
Ralph Katz wrote:
Sam Halliday wrote:
thanks, unfortunately that is not an optimal solution as on my laptop
keyboard it is quite tricky to send Delete.
Tricky to hit the delete key?!
yes its a laptop keyboard, so Delete (unlike Backspace) requires a two-key 
combination, which is just a pain. when you think about it... thats 4 keys you 
need to press in order to clear the taskbar, but a single click could do the 
same thing.

to be honest... i use this key combination and always have... but i much 
prefer the button Thunderbird implements. since no-one seems to have written 
an extension to do this (its maybe a little ridiculous to write an extension 
for something so trivial), i have opened up a wishlist report on bugzilla
  https://bugzilla.mozilla.org/show_bug.cgi?id=275193
hopefully it'll get picked up for 1.1

thanks for everyone's replies!
cheers,
Sam
--
Free High School Science Texts
  http://www.nongnu.org/fhsst/
Sam's Homepages
  http://fommil.homeunix.org/~samuel/
  http://www.ma.hw.ac.uk/~samuel/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Thunderbird 1.0

2004-12-18 Thread Sam Halliday
Ralph Katz wrote:
perhaps you might see the same as i do if you temporarily move your
.mozilla-thunderbird folder out of the way, and set up a new account.
Ouch!  You're right.  Fresh install ain't working for enigmail.  You
should file a bug report.  Alex is very good with the fixes. (I've filed
several reports on this package over time.)
thankyou for confirming my sanity! :-D i'll get on that report...
cheers,
Sam
--
Free High School Science Texts
  http://www.nongnu.org/fhsst/
Sam's Homepages
  http://fommil.homeunix.org/~samuel/
  http://www.ma.hw.ac.uk/~samuel/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Thunderbird 1.0

2004-12-18 Thread Sam Halliday
Ralph Katz wrote:
perhaps you might see the same as i do if you temporarily move your
.mozilla-thunderbird folder out of the way, and set up a new account.
Ouch!  You're right.  Fresh install ain't working for enigmail.  You
should file a bug report.  Alex is very good with the fixes. (I've filed
several reports on this package over time.)
err... as you can (hopefully) tell from this email. it seems to have just 
fixed itself. how odd! i'll file a report anyway, since there is definitely 
*something* wrong.

cheers,
Sam
--
Free High School Science Texts
  http://www.nongnu.org/fhsst/
Sam's Homepages
  http://fommil.homeunix.org/~samuel/
  http://www.ma.hw.ac.uk/~samuel/


signature.asc
Description: OpenPGP digital signature


Skippy, Expose clone

2004-12-18 Thread Sam Halliday
hi there,
has anyone ever used this tool:
  http://thegraveyard.org/skippy.php
it claims to do what expose does in Mac OS X. i'd like to see this debianised 
and in unstable... but i guess i'll just have to compile it myself until then.

cheers,
Sam
--
Free High School Science Texts
  http://www.nongnu.org/fhsst/
Sam's Homepages
  http://fommil.homeunix.org/~samuel/
  http://www.ma.hw.ac.uk/~samuel/


signature.asc
Description: OpenPGP digital signature


Thunderbird 1.0

2004-12-17 Thread Sam Halliday
hi there,
does anyone know if thunderbird 1.0 is going to make it into unstable 
anytime soon?

cheers
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Thunderbird 1.0

2004-12-17 Thread Sam Halliday
Ralph Katz wrote:
Sam Halliday wrote:
does anyone know if thunderbird 1.0 is going to make it into unstable 
anytime soon?
Alexander Sack, the debian maintainer, has what you want on his website:
http://www.jwsdot.com/debian/index.html
thanks!
by the way, i installed the enigmail plugin, but i am having real hassles 
trying to get it to work with GPG signing/encryption. has anyone got a HOWTO 
or some advice on how to set this up?

cheers,
Sam
--
Free High School Science Texts
  http://www.nongnu.org/fhsst/
Sam's Homepages
  http://fommil.homeunix.org/~samuel/
  http://www.ma.hw.ac.uk/~samuel/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Thunderbird 1.0

2004-12-17 Thread Sam Halliday
Ralph Katz wrote:
Sam Halliday wrote:
does anyone know if thunderbird 1.0 is going to make it into unstable 
anytime soon?
Alexander Sack, the debian maintainer, has what you want on his website:
http://www.jwsdot.com/debian/index.html
drat... no powerpc builds...
cheers,
Sam
--
Free High School Science Texts
  http://www.nongnu.org/fhsst/
Sam's Homepages
  http://fommil.homeunix.org/~samuel/
  http://www.ma.hw.ac.uk/~samuel/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Thunderbird style search in Firefox

2004-12-17 Thread Sam Halliday
for anyone who has thunderbird installed, they will notice that when you 
search for an item in the search bar, a little button appears which allows you 
to clear the field... is there an extension to firefox which enables the same 
feature in its search bar? as it is very irritating having to manually clear 
the search bar every time.

cheers,
Sam
--
Free High School Science Texts
  http://www.nongnu.org/fhsst/
Sam's Homepages
  http://fommil.homeunix.org/~samuel/
  http://www.ma.hw.ac.uk/~samuel/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Thunderbird style search in Firefox

2004-12-17 Thread Sam Halliday
Ralph Katz wrote:
And Sam, to clear the search bar, Ctrl-J, Delete or just type new entry.
thanks, unfortunately that is not an optimal solution as on my laptop keyboard 
it is quite tricky to send Delete. the little X box which thunderbird has is 
preferable to any keyboard shortcut to be honest. i was just wondering if 
anyone has written a little extension to add that support...

cheers,
Sam
--
Free High School Science Texts
  http://www.nongnu.org/fhsst/
Sam's Homepages
  http://fommil.homeunix.org/~samuel/
  http://www.ma.hw.ac.uk/~samuel/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Thunderbird 1.0

2004-12-17 Thread Sam Halliday
Ralph Katz wrote:
Steve Lamb wrote:
Sam Halliday wrote:
by the way, i installed the enigmail plugin, but i am having real
hassles trying to get it to work with GPG signing/encryption. has
anyone got a HOWTO or some advice on how to set this up?
Make sure to turn on hushmail support.  It passes the email address
devoid of  and  to gpg.  Without that turned on gpg often fails.
turning this on makes no difference
Just Works for me.  I didn't need to turn on hushmail support.  Sam, if 
you installed with apt-get or aptitude, it's like any other automatic 
install.
i don't mean system-wide install, it seems to be well encorporated. i mean 
setting it up as an end user. i have asked in the accounts options for my mail 
account (under OpenPGP) to use my GPG by ID number (i was given a box to 
choose). i have also selected to always sign messages, encrypted or not.

but upon sending any mails, there is no signature made and it doesn't even ask 
for my passphrase! if i go into the Security menu when Composing a message and 
ask to encrypt or sign the message, it gives me some speil about Personal 
Certificates. so i do not think it has been configured for GPG.

btw GnuPG is set up and workign fine on my system. i have used it on the 
command line, in emacs and in sylpheed-claws many times in the past.

You'll need to provide more details on your troubles to get meaningful 
help.  Error messages, enigmail log entries?
i am afraid i cannot see any output anywhere. if i go into 
OpenPGP-Advanced-Debugging and test my own email address (which my key is 
registered with) it asks for my passphrase. when i enter it, all i get is a 
window with a single word error and no further info. i told it to use /tmp 
as the log folder, but no files were written.

i am at a loss to what is wrong.
Have you checked the docs?
yes, as far as they say... it should just work. although i am confused what 
all this Personal Certificate business is about... its a sure sign that 
enigmail out of the box is configured for something other than GPG encryption.

i think i will install gpg-agent and see if that makes a difference. although 
the very fact that the configuration was able to let me choose my key is a 
sign that it *is* getting through to my GPG setup somehow.

cheers,
Sam
--
Free High School Science Texts
  http://www.nongnu.org/fhsst/
Sam's Homepages
  http://fommil.homeunix.org/~samuel/
  http://www.ma.hw.ac.uk/~samuel/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Thunderbird 1.0

2004-12-17 Thread Sam Halliday
Sam Halliday wrote:
i think i will install gpg-agent and see if that makes a difference. 
i cannot find gpg-agent in the debian package lists, so i guess that isn't the 
problem...

cheers,
Sam
--
Free High School Science Texts
  http://www.nongnu.org/fhsst/
Sam's Homepages
  http://fommil.homeunix.org/~samuel/
  http://www.ma.hw.ac.uk/~samuel/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Thunderbird 1.0

2004-12-17 Thread Sam Halliday
Steve Lamb wrote:
Sam Halliday wrote:
but upon sending any mails, there is no signature made and it doesn't 
even ask for my passphrase! if i go into the Security menu when 
Composing a message and ask to encrypt or sign the message, it gives 
me some speil about Personal Certificates. so i do not think it has 
been configured for GPG.
Nope, those are for S/MIME.  Did you install both Enigmail and 
Enigmime?
i only installed:
  mozilla-thunderbird/testing 0.9-6
  mozilla-thunderbird-enigmail/testing 2:0.89.0-1
enigmime is merged into the enigmail package now.
i don't care for any of this Personal Certificate stuff... i just want to use 
it with GPG. and in fact, Thunderbird is *ignoring* all the PGP/Mime 
attachments for all the emails i have looked at which i *know* have signatures 
(over IMAP). it is also saying that ASCII signed emails have no Digital 
Signature.

cheers,
Sam
--
Free High School Science Texts
  http://www.nongnu.org/fhsst/
Sam's Homepages
  http://fommil.homeunix.org/~samuel/
  http://www.ma.hw.ac.uk/~samuel/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Debianised Firewall

2004-08-01 Thread Sam Halliday
John Summerfield wrote:
 Sam Halliday wrote:
 cheers... but i do not need a way to generate rules; i already know how
 to do that. i just want to know if there is a standardised debian way of
 loading up a firewall on startup... like a file i need to dump my
 (customised) `iptables-save` output into. else i will just write my own
 initscript.
 I know how to write in assembler too, but I generally don't.

:-) yeah... but i actually have an iptables script lying around, so its just a case of 
copying it to /etc/init.d and making a symlink... but i'd prefer not to do such a 
homemade job of it.

cheers,
Sam
-- 
Free High School Science Texts
  http://www.nongnu.org/fhsst/
Sam's Homepages
  http://fommil.homeunix.org/~samuel/
  http://www.ma.hw.ac.uk/~samuel/


pgpPIq9ZUwHVL.pgp
Description: PGP signature


Re: iptables rule for sshd

2004-08-01 Thread Sam Halliday
[EMAIL PROTECTED] wrote:
 Iptables -A INPUT -p tcp -sport ssh -j ACCEPT

try

iptables -A INPUT -i eth0 -p tcp --dport 22 \
 -m state --state NEW -j ACCEPT

cheers,
Sam
-- 
Free High School Science Texts
  http://www.nongnu.org/fhsst/
Sam's Homepages
  http://fommil.homeunix.org/~samuel/
  http://www.ma.hw.ac.uk/~samuel/


pgpJJ7ABPNwih.pgp
Description: PGP signature


Debianised Firewall

2004-07-31 Thread Sam Halliday
hi there,

i am quite familiar with setting up iptables rules in an initscript, or via
iptables-{restore,save}. i could easily set up my own initscript to do
this, but i was wondering what the correct debian way of setting up an
iptables firewall is. is there a file where i should place my rules and let
debian do the rest?

cheers,
Sam
-- 
Free High School Science Texts
  http://www.nongnu.org/fhsst/
Sam's Homepages
  http://fommil.homeunix.org/~samuel/
  http://www.ma.hw.ac.uk/~samuel/


pgpWVKIYggbgP.pgp
Description: PGP signature


Re: Debianised Firewall

2004-07-31 Thread Sam Halliday
Paul Gear wrote:
 Sam Halliday wrote:
 i am quite familiar with setting up iptables rules in an initscript, or
 via iptables-{restore,save}. i could easily set up my own initscript to
 do this, but i was wondering what the correct debian way of setting up
 an iptables firewall is. is there a file where i should place my rules
 and let debian do the rest?
 
 Debian supports shorewall, a great iptables preprocessor - get a recent
 version from backports.org, and you're laughin'!

cheers... but i do not need a way to generate rules; i already know how to do that. i 
just want to know if there is a standardised debian way of loading up a firewall on 
startup... like a file i need to dump my (customised) `iptables-save` output into. 
else i will just write my own initscript.

cheers,
Sam
-- 
Free High School Science Texts
  http://www.nongnu.org/fhsst/
Sam's Homepages
  http://fommil.homeunix.org/~samuel/
  http://www.ma.hw.ac.uk/~samuel/


pgpIIizbJWXJE.pgp
Description: PGP signature


Re: Debianised Firewall

2004-07-31 Thread Sam Halliday
Paul Gear wrote:
 Sam Halliday wrote:
  ...
 Debian supports shorewall, a great iptables preprocessor - get a recent
 version from backports.org, and you're laughin'!
  
  
  cheers... but i do not need a way to generate rules; i already know
  how to do that. i just want to know if there is a standardised debian
  way of loading up a firewall on startup... like a file i need to dump
  my (customised) `iptables-save` output into. else i will just write
  my own initscript.
 
 I know how to do it as well, but i don't because shorewall saves a lot
 of time and effort, and protects you from typos.

/me does `apt-get install shorewall` and to hell with figuring out the proper way :-)

cheers,
Sam
-- 
Free High School Science Texts
  http://www.nongnu.org/fhsst/
Sam's Homepages
  http://fommil.homeunix.org/~samuel/
  http://www.ma.hw.ac.uk/~samuel/


pgpYhrsDpaWlN.pgp
Description: PGP signature


Re: Debianised Firewall

2004-07-31 Thread Sam Halliday
Sam Halliday wrote:
 Paul Gear wrote:
  Sam Halliday wrote:
   ...
  Debian supports shorewall, a great iptables preprocessor - get a
  recentversion from backports.org, and you're laughin'!
   
   
   cheers... but i do not need a way to generate rules; i already know
   how to do that. i just want to know if there is a standardised debian
   way of loading up a firewall on startup... like a file i need to dump
   my (customised) `iptables-save` output into. else i will just write
   my own initscript.
  
  I know how to do it as well, but i don't because shorewall saves a lot
  of time and effort, and protects you from typos.
 
 /me does `apt-get install shorewall` and to hell with figuring out the
 proper way :-)

hmm, its actually more effort to learn this shorewall thing than just make my own 
initscript...

thanks anyway

cheers,
Sam
-- 
Free High School Science Texts
  http://www.nongnu.org/fhsst/
Sam's Homepages
  http://fommil.homeunix.org/~samuel/
  http://www.ma.hw.ac.uk/~samuel/


pgpW2QZdckVYH.pgp
Description: PGP signature


Re: startx setting the nice level to 5?

2004-07-13 Thread Sam Halliday
Matthias Czapla wrote:
 I just noticed that lots of my process run at nice level 5. When I login
 at the VC the nice level is 0 as it should and all console programs
 inherit this nice value as they should. But when I startx everything
 from thereon and including the shell that is executing the startx
 script has a nice value of 5. The startx script and all the files
 under /etc/X11 don't contain the string nice so I really don't know
 where this is coming from. Has anybody a clue?

binary files can also set the nice value using the syscall nice()... perhaps the
XFree86 binary does this and everything inherits.


pgpInHQEFckl4.pgp
Description: PGP signature


Re: udev question

2004-07-09 Thread Sam Halliday
John L Fjellstad wrote:
 Sam Halliday writes:
  however... there is one major problem! instead of creating the link to
  /dev/input/mouseX, it is creating to the link to /dev/input/ts2, which
  does not appear to be a valid mouse device. how can i fix it? (ts2
  appears only when the usb mouse is plugged in)
 
 Please post your udev rule.

BUS=usb, SYSFS{idProduct}=0201, SYSFS{product}=PS/2+USB Mouse,
NAME=input/%k, SYMLINK=usbmouse

  Also, post the output of
 udevinfo -p `udevinfo -q path -n /dev/input/ts2` -a

#
udevinfo starts with the device the node belongs to and then walks up the
device chain, to print for every device found, all possibly useful attributes
in the udev key format.
Only attributes within one device section may be used together in one rule,
to match the device for which the node will be created.

  looking at class device '/sys/class/input/ts2':
SYSFS{dev}=13:130

follow the class device's device
  looking at the device chain at
'/sys/devices/pci0001:01/0001:01:1b.0/usb2/2-1/2-1:1.0':
BUS=usb
ID=2-1:1.0
SYSFS{bAlternateSetting}= 0
SYSFS{bInterfaceClass}=03
SYSFS{bInterfaceNumber}=00
SYSFS{bInterfaceProtocol}=02
SYSFS{bInterfaceSubClass}=01
SYSFS{bNumEndpoints}=01
SYSFS{detach_state}=0
SYSFS{iInterface}=00

  looking at the device chain at
'/sys/devices/pci0001:01/0001:01:1b.0/usb2/2-1':
BUS=usb
ID=2-1
SYSFS{bConfigurationValue}=1
SYSFS{bDeviceClass}=00
SYSFS{bDeviceProtocol}=00
SYSFS{bDeviceSubClass}=00
SYSFS{bMaxPower}=100mA
SYSFS{bNumConfigurations}=1
SYSFS{bNumInterfaces}= 1
SYSFS{bcdDevice}=0001
SYSFS{bmAttributes}=a0
SYSFS{detach_state}=0
SYSFS{devnum}=3
SYSFS{idProduct}=0201
SYSFS{idVendor}=1267
SYSFS{maxchild}=0
SYSFS{product}=PS/2+USB Mouse
SYSFS{speed}=1.5
SYSFS{version}= 1.10

  looking at the device chain at '/sys/devices/pci0001:01/0001:01:1b.0/usb2':
BUS=usb
ID=usb2
SYSFS{bConfigurationValue}=1
SYSFS{bDeviceClass}=09
SYSFS{bDeviceProtocol}=00
SYSFS{bDeviceSubClass}=00
SYSFS{bMaxPower}=  0mA
SYSFS{bNumConfigurations}=1
SYSFS{bNumInterfaces}= 1
SYSFS{bcdDevice}=0206
SYSFS{bmAttributes}=c0
SYSFS{detach_state}=0
SYSFS{devnum}=1
SYSFS{idProduct}=
SYSFS{idVendor}=
SYSFS{manufacturer}=Linux 2.6.7-ibookg4-bootsplash ohci_hcd
SYSFS{maxchild}=3
SYSFS{product}=NEC Corporation USB
SYSFS{serial}=0001:01:1b.0
SYSFS{speed}=12
SYSFS{version}= 1.10

  looking at the device chain at '/sys/devices/pci0001:01/0001:01:1b.0':
BUS=pci
ID=0001:01:1b.0
SYSFS{class}=0x0c0310
SYSFS{detach_state}=0
SYSFS{device}=0x0035
SYSFS{devspec}=/[EMAIL PROTECTED]/[EMAIL PROTECTED]
SYSFS{irq}=63
SYSFS{subsystem_device}=0x0035
SYSFS{subsystem_vendor}=0x1033
SYSFS{vendor}=0x1033

  looking at the device chain at '/sys/devices/pci0001:01':
BUS=
ID=pci0001:01
SYSFS{detach_state}=0
#

 udevinfo -p `udevinfo -q path -n /dev/input/mouseX` -a
 where X is the number for the usb mouse.

#

udevinfo starts with the device the node belongs to and then walks up the
device chain, to print for every device found, all possibly useful attributes
in the udev key format.
Only attributes within one device section may be used together in one rule,
to match the device for which the node will be created.

  looking at class device '/sys/class/input/mouse2':
SYSFS{dev}=13:34

follow the class device's device
  looking at the device chain at
'/sys/devices/pci0001:01/0001:01:1b.0/usb2/2-1/2-1:1.0':
BUS=usb
ID=2-1:1.0
SYSFS{bAlternateSetting}= 0
SYSFS{bInterfaceClass}=03
SYSFS{bInterfaceNumber}=00
SYSFS{bInterfaceProtocol}=02
SYSFS{bInterfaceSubClass}=01
SYSFS{bNumEndpoints}=01
SYSFS{detach_state}=0
SYSFS{iInterface}=00

  looking at the device chain at
'/sys/devices/pci0001:01/0001:01:1b.0/usb2/2-1':
BUS=usb
ID=2-1
SYSFS{bConfigurationValue}=1
SYSFS{bDeviceClass}=00
SYSFS{bDeviceProtocol}=00
SYSFS{bDeviceSubClass}=00
SYSFS{bMaxPower}=100mA
SYSFS{bNumConfigurations}=1
SYSFS{bNumInterfaces}= 1
SYSFS{bcdDevice}=0001
SYSFS{bmAttributes}=a0
SYSFS{detach_state}=0
SYSFS{devnum}=3
SYSFS{idProduct}=0201
SYSFS{idVendor}=1267
SYSFS{maxchild}=0
SYSFS{product}=PS/2+USB Mouse
SYSFS{speed}=1.5
SYSFS{version}= 1.10

  looking at the device chain at '/sys/devices/pci0001:01/0001:01:1b.0/usb2':
BUS=usb
ID=usb2
SYSFS{bConfigurationValue}=1
SYSFS{bDeviceClass}=09
SYSFS{bDeviceProtocol}=00
SYSFS{bDeviceSubClass}=00
SYSFS{bMaxPower}=  0mA
SYSFS{bNumConfigurations}=1
SYSFS{bNumInterfaces}= 1
SYSFS{bcdDevice}=0206
SYSFS{bmAttributes}=c0
SYSFS{detach_state}=0
SYSFS

Re: udev question

2004-07-08 Thread Sam Halliday
John L Fjellstad wrote:
 Sam Halliday writes:
  i would very much like to have a symlink set up by udev
  (/dev/input/mousemain or similar) which points to the /dev/input/mouseX
  unless it has been removed, in which case it should be pointed to
  /dev/input/mouse1.
 
  unfortunately the /dev/input/mouseX devices all remain when the usb mouse is
  unplugged and reconnected.
snip
 So, construct the udev rule:
 BUS=usb, SYSFS{idProduct}=c012, SYSFS{product}=USB-PS/2 Optical Mouse,
 NAME=input/%k, SYMLINK=usbmouse

hi there... i set this up, and udev seems to be creating the symlink dynamically
as expected.

however... there is one major problem! instead of creating the link to
/dev/input/mouseX, it is creating to the link to /dev/input/ts2, which does not
appear to be a valid mouse device. how can i fix it? (ts2 appears only when the
usb mouse is plugged in)

cheers,
Sam
-- 
Free High School Science Texts
  http://www.nongnu.org/fhsst/
Sam's Homepages
  http://fommil.homeunix.org/~samuel/
  http://www.ma.hw.ac.uk/~samuel/


pgp8232zinYNL.pgp
Description: PGP signature


Re: udev question

2004-07-06 Thread Sam Halliday
John L Fjellstad wrote:
 Sam Halliday [EMAIL PROTECTED] writes:
 
  however that only solves half the problem... how can i make this
  /dev/usbmouse link (or whatever i call it) point to /dev/input/mouse1
  (the touchpad) when the usb mouse is not plugged in?
 
 You don't.   In X, what you do is make one your primary mouse device,
 and the other just sends mouse events to the primary mouse device.  So,
 at my place, the touchpad is the primary mouse device, and the usbmouse,
 when plugged in, sends mouse events through the primary mouse device.

does that disable the touchpad when the usb mouse is plugged in?

 I'm not sure how to do it on the console with gpm, since I don't use
 mouse on the console.

and thats the real killer... i want this setup for consoles as well.


pgphmGbNJJd5v.pgp
Description: PGP signature


Re: udev question

2004-07-06 Thread Sam Halliday
Derrick 'dman' Hudson wrote:
 John L Fjellstad wrote:
 | Sam Halliday writes:
 | 
 |  however that only solves half the problem... how can i make this
 |  /dev/usbmouse link (or whatever i call it) point to /dev/input/mouse1
 |  (the touchpad) when the usb mouse is not plugged in?
 | 
 | You don't.   In X, what you do is make one your primary mouse device,
 | and the other just sends mouse events to the primary mouse device.  So,
 | at my place, the touchpad is the primary mouse device, and the usbmouse,
 | when plugged in, sends mouse events through the primary mouse device.
 
 Alternatively use /dev/input/mice and your application will receive
 input from all attached mice.  Simple.  :-)  (with kernel 2.6 that
 includes USB -and- PS/2 mice)

thats not the point... i want to DISABLE the touchpad when the usb mouse is
plugged in. and do it dynamically. this takes input from both all the time.


pgpnS5KMwJFvI.pgp
Description: PGP signature


Re: udev question

2004-07-05 Thread Sam Halliday
John L Fjellstad wrote:
 Sam Halliday writes: 
  i would very much like to have a symlink set up by udev
  (/dev/input/mousemain or similar) which points to the /dev/input/mouseX
  unless it has been removed, in which case it should be pointed to
  /dev/input/mouse1.
 
  unfortunately the /dev/input/mouseX devices all remain when the usb mouse is
  unplugged and reconnected.

 So, construct the udev rule:
 BUS=usb, SYSFS{idProduct}=c012, SYSFS{product}=USB-PS/2 Optical Mouse,
 NAME=input/%k, SYMLINK=usbmouse

thanks john!

however that only solves half the problem... how can i make this /dev/usbmouse
link (or whatever i call it) point to /dev/input/mouse1 (the touchpad) when the
usb mouse is not plugged in?

cheers,
Sam
-- 
Free High School Science Texts
  http://www.nongnu.org/fhsst/
Sam's Homepages
  http://fommil.homeunix.org/~samuel/
  http://www.ma.hw.ac.uk/~samuel/


pgpOJXja2AHAO.pgp
Description: PGP signature


apt-get dselect-upgrade

2004-07-04 Thread Sam Halliday
hi there,

when i first installed debian i tried to bring over my list of packages using
`dpkg --set-selections`, but i ended up just using aptitude and starting afresh.

but i recently ran `apt-get dselect-upgrade` and it seems to have a memory of
all apps i originally wanted to pull over... is there any way i can clear that
list, as i would like to be able to use `apt-get dselect-upgrade` for other
reasons (namely a script to purge all uninstalled apps)


pgpQ2oOfbU0q1.pgp
Description: PGP signature


Re: apt-get dselect-upgrade

2004-07-04 Thread Sam Halliday
Thomas Adam wrote:
 Sam Halliday wrote: 
  but i recently ran `apt-get dselect-upgrade` and it seems to have a
  memory of
  all apps i originally wanted to pull over... is there any way i can
 
 Yes, that was meant to be run *after* you --set-selections!

yeah... i know, but at the time (2 weeks ago) i changed my mind after i ran the
command and preferred to use aptitude to generate a new list of installed
packages. i kinda thought it would be smart enough to use the current `dpkg
--get-selections` list, but apparently it remembers some other information as
well.

  clear that
  list, as i would like to be able to use `apt-get dselect-upgrade` for
  other
  reasons (namely a script to purge all uninstalled apps)
 
 Not easily -- and indeed, I think you need to take another approach to the
 problem, dselect-upgrade is not the means by which you should go about
 removing uninstalled apps. If you have yourself in that situation then
 you've broken your own system.

well i could easily use aptitude to purge packages... but since that is a pain
if i have more than 5 packages which i uninstalled, i'd prefer to use a scripted
approach. it's all too easy to type - instead of _, especially since _ on a
packge will only - its dependencies.

may i ask how this would suggest that i have a broken system? i fail to see the
reasoning.

 One suggestion I could make to you is an apt-get --reinstall install foo foo+

what would that achieve? i don't want to reinstall any applications, i just want
an easy way to purge the uninstalled package config files to save clutter.


pgptzjY09LwgR.pgp
Description: PGP signature


Re: apt-get dselect-upgrade

2004-07-04 Thread Sam Halliday
Thomas Adam wrote:
 Sam Halliday wrote: 
  may i ask how this would suggest that i have a broken system? i fail to
  see the
  reasoning.
 
 You said to purge all un-installed apps. I mis-read that. Mind you, it
 wasn't well written anyway. :) What you mean is, you remove'd a package
 but did not --purge?

:-)

but as a more general solution i'd just like to get my dpkg list to agree with
the `apt-get dselect-upgrade` one.

   One suggestion I could make to you is an apt-get --reinstall install
  foo foo+
  
  what would that achieve? i don't want to reinstall any applications, i
  just want
  an easy way to purge the uninstalled package config files to save
  clutter.
 
 Then the only way to do that is to --reinstall and --purge. No big deal.

yeah... i had considered doing that, but it seemed a one-liner script to purge
apps using dpkg --get/set-selections and sed.


pgpM1tq5XfDgC.pgp
Description: PGP signature


Re: apt-get dselect-upgrade

2004-07-04 Thread Sam Halliday
David Fokkema wrote:
 Sam Halliday wrote:
  hi there,
  
  when i first installed debian i tried to bring over my list of packages
  using`dpkg --set-selections`, but i ended up just using aptitude and
  starting afresh.
  
  but i recently ran `apt-get dselect-upgrade` and it seems to have a memory
  of all apps i originally wanted to pull over... is there any way i can clear
  that list, as i would like to be able to use `apt-get dselect-upgrade` for
  other reasons (namely a script to purge all uninstalled apps)
 
 What is the output of
 dpkg --get-selections

it then prints out what i have installed on the system and nothing else, the
problem is not with the output of this program, it is that when i type `apt-get
dselect-upgrade` it seems to have a memory of a different list and tries to grab
the packages. essentially i would like to synchronise the TODO list with the
list that is currently installed on my system.

 I'm wondering whether you can distinguish between 'install'ed packages
 and something like 'to be installed'. I honestly do not know. But if the
 output gives you differences, you could run sed on it and change 'to be
 installed' to 'purge' and you'd be set, I think.

yeah... that would work if `dpkg --get-selections` was showing that kind of
information... but its not.


pgphDggQTmhSO.pgp
Description: PGP signature


udev question

2004-07-03 Thread Sam Halliday
hi there,

i was wondering if somebody could help me set up udev to make symlinks in a
specific way...

i have 2 mouse input devices... one is always connected (/dev/input/mouse1) and
another is a usbmouse and appears as (/dev/input/mouseX), with X increasing
every time i remove and reconnect it.

i would very much like to have a symlink set up by udev (/dev/input/mousemain or
similar) which points to the /dev/input/mouseX unless it has been removed, in
which case it should be pointed to /dev/input/mouse1.

unfortunately the /dev/input/mouseX devices all remain when the usb mouse is
unplugged and reconnected.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Visual C++?????

2004-06-29 Thread Sam Halliday
cecil wrote:
 Ok, yet again, my prof wants us to use Visual C++. I have not yet talked 
 to him about this. I have decided that I will HAVE to use X, so I guess 
 I'm looking for a IDE that will approximate this. I know of anjuta, 
 kdevelop, and motor(console mode app). Any ideas, suggestions, or 
 comments?

doesn't visual c++ have its own libraries? no matter how close an IDE
approximation you have GUI-wise, you will never be able to have a compatible
library.

just ask him if you are allowed to use any ISO C compiler... unless you are
using a specific library (e.g. the windows widgets) then i can't see why there
would be a problem... emacs+gcc away!

 The new head of the department is English!

sorry to hear about that ;-)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Visual C++?????

2004-06-29 Thread Sam Halliday
William Ballard wrote:
 Oh and your professor is an idiot.

thats a very brave thing to say about a PROFESSOR


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Visual C++?????

2004-06-29 Thread Sam Halliday
[EMAIL PROTECTED] wrote:
 Sam Halliday wrote:
  [EMAIL PROTECTED] wrote:
   Sam Halliday wrote:
William Ballard wrote:
 Oh and your professor is an idiot.

thats a very brave thing to say about a PROFESSOR
  
   Very brave indeed.. One would think someone with at least 8 years of 
   higher learning more then you would know a thing or two more as well.
  
  i don't get your meaning...

 To be a professor and have tenure in a institution of higher learning 
 one usually must have a Ph.D. or at least a masters unless the school 
 in question sucks; That takes a min of around 8 years.

aah ok... sorry, i thought you saying that i personally (and not the professor)
had a minimum of 8 years and should have known better than to have replied to a
troll... mixed wires :-)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Visual C++?????

2004-06-29 Thread Sam Halliday
Stephen Le wrote:
 Being educated does not make you a good teacher.

yes, but it doesn't make you an idiot either.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: man locale problems.

2004-06-28 Thread Sam Halliday
Tom Allison wrote:
 [EMAIL PROTECTED]:~$ man passwd
 man: can't set the locale; make sure $LC_* and $LANG are correct
 Reformatting passwd(1), please wait...
 
 I can get the man pages, but how do I fix the locale error?
 I seem to run into this from time to time and ... sometimes are worse 
 than others.  This one isn't so bad, but I thought I should fix it while 
 I can.

apt-get install locales
dpkg-reconfigure locales


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Firefox and MIME

2004-06-28 Thread Sam Halliday
the way debian's firefox is set up, is that if it sees a file of a certain MIME
type, then it will try to opem it in a program suitable for that format.
however, sometimes this is just stupid. if i want to load a LaTeX .tex file,
firefox spawns Emacs (as with some other text files) and it was the final straw
just a minute ago when it tried to spawn GQView to open a jpeg! is there any way
i can turn this off for certain file types? as i know fine that firefox can view
the files itself


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: $PATH and /etc/profile

2004-06-27 Thread Sam Halliday
Bob Proulx wrote:
 Simon L wrote:
  When I log in text mode, the entire PATH is there as I want, I can 
  startx and when I open a terminal, the PATH is perfect.
  Now, if I start the computer with KDM and that I run a terminal, the 
  PATH is only: /usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games
 By starting a login shell.  Create ~/.xsession with the following:
 
   #!/bin/bash --login
   exec x-session-manager # or gnome-session or whatever.

RG! you can't be serious!! .xsession as a LOGIN shell??

repeat after me... X windows is not your shell!

Simon, the reason you do not get your PATH set correctly is that if you login at
a console, /etc/profile will be read because it is a login shell. starting X
from there will inherit all your settings.

if however, you login via kdm/gdm/xdm, it is NOT a login shell, so /etc/profile
is not read. there are good reasons for this. if you do not agree with these
good reasons, then you can simply add the line
  . /etc/profile
to your ~/.xsession file.

doing as Bob suggests and changing your X login to a login shell is NOT the way
to solve this problem. the only reason his solution works is because in the
process of making X a login shell, /etc/profile will be sourced. in his solution
you will be seen to be logged in twice.

 P.S.  Does it seem like I answer this question about every other week?

i hope you aren't giving this advise to everyone!

cheers,
Sam
-- 
Free High School Science Texts
  http://www.nongnu.org/fhsst/
Sam's Homepages
  http://fommil.homeunix.org/~samuel/
  http://www.ma.hw.ac.uk/~samuel/


pgpaneds0gRvr.pgp
Description: PGP signature


Framebuffer compiled-in fonts and keymaps

2004-06-27 Thread Sam Halliday
hi there,

i was wondering, on a 2.6.7 linux kernel, i have the chance to compile-in fonts
and keymaps.

i wish to compile in fonts which have a full iso-8859-15 (Latin-9) compliment.
is there any way i can do this? there is also no kernel option for the character
mapping either. could i maybe copy over my choice from /usr/share/consolefonts?
if so... how can i be sure it will be set up to use the iso15 mapping?

i used to know how to make the compiled in keymaps for 2.4... but it seems the
new system uses a .c file and i do not know how to create it. anyone know how?

cheers,
Sam
-- 
Free High School Science Texts
  http://www.nongnu.org/fhsst/
Sam's Homepages
  http://fommil.homeunix.org/~samuel/
  http://www.ma.hw.ac.uk/~samuel/


pgpiPS4FaRICY.pgp
Description: PGP signature


Re: $PATH and /etc/profile

2004-06-27 Thread Sam Halliday
Michael B Allen wrote:
 Sam Halliday wrote:
  Bob Proulx wrote:
   Simon L wrote:
When I log in text mode, the entire PATH is there as I want, I can 
startx and when I open a terminal, the PATH is perfect.
Now, if I start the computer with KDM and that I run a terminal, the 
PATH is only: /usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games
   By starting a login shell.  Create ~/.xsession with the following:
   
 #!/bin/bash --login
 exec x-session-manager # or gnome-session or whatever.
  
  RG! you can't be serious!! .xsession as a LOGIN shell??
  
  repeat after me... X windows is not your shell!
 
 Right. That's why the correct method is to change:
 
  /etc/X11/Xsession.d/99xfree86-common_start
 
 to read:
 
   exec -l $SHELL -c $STARTUP

who said this was the correct way? if it was the correct way, do you not
think the debian maintainers would have done this a long time ago?

 This will exec the session manager though a login shell. This permits the
 shell to contibute to the environment (in the case of bash this includes
 sourcing /etc/profile).
 
  
  Simon, the reason you do not get your PATH set correctly is that if you
  login at a console, /etc/profile will be read because it is a login shell.
  starting X from there will inherit all your settings.
 
 Why is this different from what is happening above? If you run startx you're
 starting X from a login shell.

it IS differnet. if you start from the console, you should really do `startx `
to detach from the console and allow you to continue working on the console and
X; hence 2 logins. try `startx`, lock your screen, do a Ctrl-Alt-F1 and realise
that C-c will kill the X session and give whoever is at the machine your console
login. using startx is an arcane way of starting up X. use a login manager.

  if however, you login via kdm/gdm/xdm, it is NOT a login shell,
  True, I suppose it's not a shell but if you're using *dm conceptually it
 is a login.

yes... it IS a login, and sessreg will register it.

  so /etc/profile
  is not read. there are good reasons for this. if you do not agree with
  these good reasons, then you can simply add the line
. /etc/profile
  to your ~/.xsession file.
 
 No. 1) this is an arcane hack that the average user should not have to put
 up with

why? .xsession is there for users to set up their system. perhaps i don't want
the login files to be sourced during my X login? what do i do then? come on...
its one line!

 2) ~./xsession is not executed unless you choose Default System
 Session -- if you select KDE or WindowMaker etc the xsession.d scripts
 bail out before ~/.xsession is reached.

exactly. and why should it be reached? it is up to debian to set up the PATH for
each of these window managers, not the user.

  doing as Bob suggests and changing your X login to a login shell is NOT
  the way to solve this problem.
 
 Well besides Debian I only have access to a RedHat machine but from looking
 at their X scripts the xsession is exec'd through a login shell precisely as
 I described. So it's not too far fetched. In fact it makes perfect sense to
 me.

do you also have access to a SUN machine? a *BSD machine? all of these systems
have been using this method for years... it is standard. it is the way it is
done. X is NOT a login shell.

  the only reason his solution works is because in the
  process of making X a login shell, /etc/profile will be sourced. in his
  solution you will be seen to be logged in twice.
 
 No. This is false.

hmm, you are correct about not being logged in twice. i could have sworn on my
LFS system last year this counted as 2 logins...

 if you run startx on the console then you *are* logged in twice

this is true. but that is becuase you ARE logged in twice. once in the console,
and once in X.

 Personally I think I would rather appear as
 having logged in an extra time (like Ctrl-Alt-F2 and login) than be required
 to hack some obscure X session control file that newbies are clueless about
 and ask about every two weeks.

newbies generally don't use .xsession, they use the drop down window to choose a
desktop. curious users use .xsession, and they should be given the correct
answer, which can be solved in userspace... not sysadmin space. X is not a login
shell. besides, how is 

  change:
   /etc/X11/Xsession.d/99xfree86-common_start
  to read:
   exec -l $SHELL -c $STARTUP

in any way less cryptic than

  add
. /etc/profile
. $HOME/.profile
  (if you use a POSIX shell) to the top of your ~/.xsession file

   P.S.  Does it seem like I answer this question about every other week?
  
  i hope you aren't giving this advise to everyone!
 
 He's not. But I *am* and I will continue to because 1) there is a
 significant amount of ignorance and disinformation flying around on this
 list about this topic

i agree

 2) it is the most appropriate solution for
 everybody. If you don't agree with that then you will have to point out to
 me were

Re: $PATH and /etc/profile

2004-06-27 Thread Sam Halliday
Bob Proulx wrote:
 Sam Halliday wrote:
  Bob Proulx wrote:
   By starting a login shell.  Create ~/.xsession with the following:
   
 #!/bin/bash --login
 exec x-session-manager # or gnome-session or whatever.
  
  RG! you can't be serious!! .xsession as a LOGIN shell??
  repeat after me... X windows is not your shell!
 
 Yes, I am very serious.  Please tell me why you are so adamantly
 opposed to this.  (Other than it being poorly documented and
 confusing.  I completely agree there.)
 
   9.7.  KDE (kdm) does not read my .bash_profile!.  The login
 managers xdm and kdm do not run a login shell, so .profile,
 .bash_profile, etc. are not sourced.  When the user logs in,
 xdm runs Xstartup as root and then Xsession as user.  So the
 normal practice is to add statements in Xsession to source the
 user profile.  Please edit your Xsession and .xsession files.

this says exactly what i said.

  if however, you login via kdm/gdm/xdm, it is NOT a login shell, so
  /etc/profile is not read. there are good reasons for this. if you do
  not agree with these good reasons, then you can simply add the line
. /etc/profile
  to your ~/.xsession file.
 
 Negative.  That won't get your ~/.bash_profile, or .login with csh,
 sourced.

so source all the files you want sourced. you should not source bashrc as it
should contain bash interactive shell specific stuff (like functions and aliases
which do not get inherited anyway). you should only source POSIX compliant shell
stuff if you are using a POSIX shell. you could change your .xsession's shell
however and source csh files. i have never done that. non-POSIX shells are the
devil.

 Also your vehemence at opposing the .xsession as a login shell, and
 then proposing that it simply source the /etc/profile, seems
 completely inconsistent to me.  Why do you oppose sourcing the file
 and then propose sourcing the file!  My turn for an, RG!  :-)

sourcing /etc/profile is not equivalent to logging in. logging in will do more
than that.

 [Darn, I really wish you had suggested sourcing the ~/.bash_profile or
 ~/.bashrc files in the /etc/Xsession* script.  Because that is
 definitely wrong and I would have a serious rebuttal.  :-)

:-) yes, it is... for the reasons i said above. sourcing ~/.profile would be a
good idea though, and i do that.

  in his solution you will be seen to be logged in twice.
 
 What are you talking about here?  Logged in twice?  Please explain.
 Because I think you are the one way off base here.  I think you are
 confused about what it means to be a login shell.

i was wrong here... debian must do something as on my LFS system last year
(standard X scripts) this would count as a double login. probably a workaround
because they seen so many people were doing this kind of thing.

in fact... do a `grep -R sessreg /etc` to see what debian do. they exec any
sessreg calls, so that stamps out any double logins. thats that puzzle sorted
out!

however, on most systems (eg SunOS, *BSD, other GNU/Linux) having .xsession be a
login shell would count as a double login.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Console Fonts and Keymaps

2004-06-26 Thread Sam Halliday
hi there,

while i was trying to set up my keyboard's map by hand (which is a new mac
layout), i suddenly became very confused with how debian handles standards
compliant console fonts.

the default setup was SCREEN_FONT=lat0-sun16 in /etc/console-tools/config. this
confuses me. i have been googling to actually find out the differences between
all the Latin-X encodings, and i cannot find any documentation on what Latin-0
is (or what the sun part is)... everyone seems to just say it is the same as
Latin-9 why then are there 2 standards for the same thing? also, i do not like
this font set as it lacks many characters (such as the sterling symbol). and the
euro is decimal value 252, and not 164 as it should be in Latin-9
[http://www.cs.tut.fi/~jkorpela/latin9.html]

i decided that using Latin-9 would be the way to go, after seeing that it
contains the euro symbol. however, when i tried the fonts 
  /usr/share/consolefonts/lat9-16.psf.gz
  /usr/share/consolefonts/lat9v-16.psf.gz
  /usr/share/consolefonts/lat9u-16.psf.gz
  /usr/share/consolefonts/lat9w-16.psf.gz
i could not see any euro! (what does the vuw mean?) and in fact, several
characters were still missing... such as the section symbol. (when i refer to
section in a keymap file, i get the not equals symbol printed out).

could somebody please help me select a standards compliant Latin-9 (iso-8859-15)
set of console fonts so that i can write my keymapping and have all the symbols
displayed!! (hopefully i won't have the same hassles with aterm fonts and X
fonts in general)

cheers,
Sam
-- 
Free High School Science Texts
  http://www.nongnu.org/fhsst/
Sam's Homepages
  http://fommil.homeunix.org/~samuel/
  http://www.ma.hw.ac.uk/~samuel/


pgpGVKTXrCTWC.pgp
Description: PGP signature


Re: Console Fonts and Keymaps

2004-06-26 Thread Sam Halliday
hi there,
 while i was trying to set up my keyboard's map by hand (which is a new mac
 layout), i suddenly became very confused with how debian handles standards
 compliant console fonts.

grrr... sorry i missed the if you are using a framebuffer, make sure you apply
this to all the virtual terminals or only tty1 will be effected. things are
looking better now!


pgp3PDhiAbEFz.pgp
Description: PGP signature


Moving Package List

2004-05-28 Thread Sam Halliday
hello,

i know this is probably somthing which is discussed often on the list... but i
was unable to find anything in the archives, the apt FAQ or several google
searches... so i'm posting to the list.

i have a machine running Debian GNU/Linux testing/unstable with a package list i
am very happy with. i would like to move this configuration to another machine
which i am performing a fresh install on. how can i get a list of all the
packages on this system and how can i read that info into the new one?

also... can i keep the aptitude package states? it seems a bit of a hack, and
cause all kinds of hell if i were to just copy over /var/lib/aptitude/pkgstates

cheers,
Sam
-- 
Free High School Science Texts
  http://savannah.nongnu.org/projects/fhsst
Sam's Homepages
  http://fommil.homeunix.org/~samuel
  http://www.ma.hw.ac.uk/~samuel


pgpQmxRSZdzYk.pgp
Description: PGP signature


DHCP hostname

2004-02-13 Thread Sam Halliday
hi there,

ok, i know there have been many bugs (for some reason, all closed)
applied against this issue... but i have found no solution at all to it
in either the archives nor the bug reports, and i was wondering if
someone could help:

i am on a DHCP-served network and the server will always give out a
hostname, but debian completely ignores that hostname; preferring
instead to use the hostname debian which it set up during the initial
install.

i would like my dhcp client to set my hostname when the server sends it
to me. now i know this would be trivial to fix in a local script (for
example with dhcpcd, using -H and -D flags will set both my domainname
and hostname; and i suppose i could use a simple grep to get info from
/var/lib/dhcp/dhclient.leases when using dhclient)... what i was
wondering is if somebody could please tell me how to fix this in the
correct debian way and also, i would be very interested to hear why
setting the host/domainname from the DHCP server is not the default.

cheers,
Sam
-- 
Free High School Science Texts
  http://savannah.nongnu.org/projects/fhsst
Sam's Homepages
  http://fommil.homeunix.org/~samuel
  http://www.ma.hw.ac.uk/~samuel


pgp0.pgp
Description: PGP signature


mozilla-tabextensions: coloured tabs by default

2004-02-13 Thread Sam Halliday
hi there,

did anyone else do a system upgrade yesterday to find out that
mozilla-tabextensions/testing has been updated... and now you get really
annoying coloured tabs when you open a new tab in mozilla? if so, could
they please let me know how they turned it off? as there seems to be no
option to do so; and it is incredibly annoying.

cheers,
Sam
-- 
Free High School Science Texts
  http://savannah.nongnu.org/projects/fhsst
Sam's Homepages
  http://fommil.homeunix.org/~samuel
  http://www.ma.hw.ac.uk/~samuel


pgp0.pgp
Description: PGP signature


Re: mozilla-tabextensions: coloured tabs by default

2004-02-13 Thread Sam Halliday
Sam Halliday wrote:
 did anyone else do a system upgrade yesterday to find out that
 mozilla-tabextensions/testing has been updated... and now you get
 really annoying coloured tabs when you open a new tab in mozilla? if
 so, could they please let me know how they turned it off? as there
 seems to be no option to do so; and it is incredibly annoying.

sorry, found it myself: if anyone is interested, you must enable Expert
Preferences, restart mozilla, and then go to

 preferences-navigator-tabbed browsing-tabgroups

and disable automatic coloring of grouped tabs

it was a bit cryptic :-/

cheers,
Sam
-- 
Free High School Science Texts
  http://savannah.nongnu.org/projects/fhsst
Sam's Homepages
  http://fommil.homeunix.org/~samuel
  http://www.ma.hw.ac.uk/~samuel


pgp0.pgp
Description: PGP signature


Re: DHCP hostname

2004-02-13 Thread Sam Halliday
Harland Christofferson wrote:
 Sam Halliday wrote:
[snip]
 i am on a DHCP-served network and the server will always give out a
 hostname, but debian completely ignores that hostname
[snip]
 can't you do this in /etc/dhcpd.conf? i think you have to assign 
 a fixed ip addres ... something line
 
 host yourhostname {
hardware ethernet yourhostmacaddress;
fixed-address aaa.bbb.ccc.ddd;
 }

yes, but i am on the client side (the server is already set up fine to
do as you suggest)... the point is that debian completely ignores
hostnames supplied by the server.

cheers,
Sam
-- 
Free High School Science Texts
  http://savannah.nongnu.org/projects/fhsst
Sam's Homepages
  http://fommil.homeunix.org/~samuel
  http://www.ma.hw.ac.uk/~samuel


pgp0.pgp
Description: PGP signature


Re: DHCP hostname

2004-02-13 Thread Sam Halliday
Sam Halliday wrote:
[snip]
 i am on a DHCP-served network and the server will always give out a
 hostname, but debian completely ignores that hostname; preferring
 instead to use the hostname debian which it set up during the
 initial install.
[snip]

apologies all!

  /etc/dhcpc/config

allows me to set these things... i recently installed dhcpcd instead of
dhclient which allowed me to do this. does that mean dhclient cannot set
hostnames/domainnames/DNS servers?? and also, why is that not the
default?

cheers,
Sam
-- 
Free High School Science Texts
  http://savannah.nongnu.org/projects/fhsst
Sam's Homepages
  http://fommil.homeunix.org/~samuel
  http://www.ma.hw.ac.uk/~samuel


pgp0.pgp
Description: PGP signature


Re: Sid et DHCP

2004-02-10 Thread Sam Halliday
Matthias Hentges wrote:
 Am Di, den 10.02.2004 schrieb [EMAIL PROTECTED] um 10:49:
  Bonjour tout le monde,
  je viens de faire un dist-upgrade sur ma woody (noyau 2.6.1) pour passer en 
  sid. Tout s'est bien passé jusqu'au reboot.
  En effet, maintenant je n'ai plus accès au réseau (via dhcp)! alors qu'avant
  
  cela ne posait pas de problème. Est-ce une erreur courante? J'ai absolument 
  besoin d'aide, c'est très important pour moi de résoudre ce problème le plus
  
  rapidement possible
 
 [...]
 
 You do realize that the majority on this planet does not speak french,
 huh?

it was probably a simple mistake... the email intended for

  [EMAIL PROTECTED]

and if we are going to point fingers at non-english speakers... maybe you should
change the den [date] schrieb [email] um [time] part of your replies

 ;-)

cheers,
Sam
-- 
Free High School Science Texts
  http://savannah.nongnu.org/projects/fhsst
Sam's Homepages
  http://fommil.homeunix.org/~samuel
  http://www.ma.hw.ac.uk/~samuel


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Knoppix is Not Debian

2004-02-09 Thread Sam Halliday
s. keeling wrote:
 Incoming from Paul Morgan:
  You must also be referring to the almost constant stream of
  infantile antiM$ remarks with which I am heartily sick and tired. 
  I use several OSes,
 This is an attitude of which _I_ am sick and tired.  Microsoft
 software sucks, bigtime!  Anyone looking at the amount of crap
 flooding the net nowadays can tell that with their eyes, ears, and
 nose nailed shut.
 
 No, there is NO excuse that justifies using that crap, and I don't
 care who you are or why you want to.  It's crap!  Get over it.

how about being in an industry which has specialist software which only
runs on a M$ base... and breaking compatibility with your peers by using
an alternative, inferior package would simply leave your career in dust.

you don't sound like you have thought your argument out very well. we
are all decided that we _prefer_ GNU/Linux, but even for those who are
aware of operating systems other than windows, they are not always in a
position to be able to use them.

sure i could advise my architecture and engineering friends to use
GNU/Linux.. they may have the standard office tools under their new
operating system... but please tell me how they are to continue
designing engines and buildings; under xfig? i am in a lucky situation,
as the major mathematics tools have been ported to all flavours of UNIX
(although they could do with an update to their terrible GUIs) and most
hi-end academic physics software (Root/AliRoot anyone?) is open source.

i cant believe i just replied to an anti-microsoft troll on debian-user
:-/

cheers,
Sam
-- 
Free High School Science Texts
  http://savannah.nongnu.org/projects/fhsst
Sam's Homepages
  http://fommil.homeunix.org/~samuel
  http://www.ma.hw.ac.uk/~samuel


pgp0.pgp
Description: PGP signature


Re: Knoppix is Not Debian

2004-02-09 Thread Sam Halliday
Nate Duehr wrote:
 Damon Chesser wrote:
  This is the first time I have to disagree with you S. Keeling. 
  Users of CAD  (espe. AutoCad) realy have to use windose.  No maker
  of professional CAD is porting to linux.  I know a shop here that
  builds buildings and they all use Autocad.  Their SysAdmin has set
  up a RH server, but all workstations are win.  There simply is no
  choice in the matter, not yet.
 I could have sworn VariCAD had a native Linux port?  Not sure.  Yep, 
 see below.

varicad is a joke for serious work... speak to an expert, and they will
tell you the same thing. even autocad is described as too simplistic
by a few mechanical engineers i know, and architects (REAL architects,
not extension to the back room architects) need something a lot more
powerful.

 A quick Google turned up these:
 www.linuxcad.com
 www.varicad.com
 www.cadsoft.de
 www.ribbonsoft.com/qcad.html
 www.ac3d.org
 www.cycas.de
 www.welcomehome.org/senecass/software/dome46.tar.gz

these projects, although noteworthy and of good cause, are again like i
said, a complete joke when it comes to professional usage in most
branches of engineering or architecture. its like comparing `ed` to M$
word :-/

 There are *always* alternatives.

if by alternative, you mean a program that _claims_ to do the same
_basic_ functionality, then yes.

trust me, there are high-end programs for particular disciplines which
simply DO NOT have a replacement in the UNIX world. and even if a tool
did exist, we are talking about tools which are so complex, you really
do need to take a full course and have experience using them: so the
user really has to decide whether it is worth their while to switch,
bearing in mind that their career and earnings rest on that decision.

to prove my point, i have actually tried this there are replacement in
GNU/Linux approach with an engineer, to be told how feeble varicad and
co really are for doing real work (after he tried them). you cannot even
use varicad to do everything you would need in an undergraduate
engineering course in the UK, let alone in the workplace.

 Understanding that you may have a lot 
 invested (a rediculous amount, really -- if you're paying their usual 
 rates) in AutoCAD makes realizing why you stick with it more 
 understandable.

AutoCAD is ridiculously _cheap_ i can tell you... compare it with some
of the more advanced packages on the market (the names of which i could
find out for you within a matter of a few days). but, thats not the
point: you are correct that there is a lot of investment involved in any
high end software. only productive (in the literal sense) offices will
be using it... its not a toy, and there is big money involved in the end
products.

 However, my point here is that Mr. Keeling is frustrated with the 
 extreme lack of attention to software security in everything Microsoft
 
 builds.

but that is not the original topic... Mr. Keeling said there is NO
excuse that justifies using that crap, and I don't
care who you are or why you want to... which has been successfully
disproved by the counterexample: some people need specialist software,
which is only available for M$ windoze, so they must use M$ windoze.

i am sure there are many more examples than these. if he has an issue
with M$, he should take it up with M$; not people who use it (which is
still 99% of PC users out there, a few with credentials to embarrass any
one of us; they are not all stoopid lusers).

now please can we stop this thread and get back to debian related
issues?

cheers,
Sam
-- 
Free High School Science Texts
  http://savannah.nongnu.org/projects/fhsst
Sam's Homepages
  http://fommil.homeunix.org/~samuel
  http://www.ma.hw.ac.uk/~samuel


pgp0.pgp
Description: PGP signature


Re: sftp sources?

2004-02-09 Thread Sam Halliday
Derrick Hudson wrote:
 Sam Halliday wrote:
 | Cristian Gutierrez wrote:
 |  Sam Halliday writes:
 [ftp/http is bandwidth limited on university network, ssh isn't
 limited]
 |  May be they can use an external proxy via ssh. Say, they have ssh
 |  access to host X where X is outside their university network and
 |  can use a proxy on Y:8000 (Y could be X itself). Now they can
 |  forward their localhost:8000 to Y:8000 ssh'ing through X, and set
 |  APT to use localhost:8000 as a proxy.
 | unfortunately thats sounds like the only available option, as non
 | ftp/http source do not seem to exist. the problem is that i do not
 | know anyone external to the network, with root access to a box,
 | willing to give up bandwidth and ports for the cause :-/. thanks
 | anyway though... ill ask around.
 
 You don't need root access on the remote machine to do ssh port
 forwarding.  (you would only need root access if you were
 RemoteForwarding a port 1024)

interesting,

ok, i think this could work, ill try to set it up for them on my machine
to see, for now. anyone got any hints where i can read up about setting
this kind of thing up? i've never done anything like this before, nor
have i ever heard of it!

cheers,
Sam
-- 
Free High School Science Texts
  http://savannah.nongnu.org/projects/fhsst
Sam's Homepages
  http://fommil.homeunix.org/~samuel
  http://www.ma.hw.ac.uk/~samuel


pgp0.pgp
Description: PGP signature


Re: Knoppix is Not Debian

2004-02-09 Thread Sam Halliday
Nate Duehr wrote:
 While you may be very intelligent regarding CAD software, you sure
 seem willing to attack people like myself who are only pointing out 
 alternatives that ARE Linux-related on a Linux mailing list, and then 
 claiming that *I* took the conversation off-topic?  Wow.  Quite bold
 of you.

i'm sorry nate, i wasn't singling you out for taking it off-topic... we
all took it off-topic. thats why i replied to the list (i.e. speaking to
everyone, myself included) and not in a personal response.

 But... consider for a moment that the vast majority of the world 
 doesn't need nor use CAD software at all, and then re-read the
 original poster's message within that context.

then i (and many others on the list) could think up many other
counterexamples to his claim that NOONE has ANY reason to use M$
software. for example, just off the top of my head: journals that
require submissions in a particular word format which openoffice or
abiword cannot produce, other professional fields of expertise which
require specialised software, and many other smaller categories; how
about packages for windows which help dyslexic people in their
construction of essays? companies that already have a large investment
in M$-trained staff, but are unable to find qualified UNIX sysadmins.
companies using in-house software where the codebase has been stabilised
over many years, only to be rewritten for a new OS. the list is
endless... this thread was not meant to dwell on CAD software, it is
merely pointing out that there are areas which GNU/Linux cannot
address... yet.

 Therefore your example is very poor, and his point is still quite 
 valid.  If the majority of computer users typically use e-mail MTA's, 
 network file systems, mail servers, webservers, and not CAD software 
 daily, Linux/Unix excels at those items and is generally regarded as 
 much higher quality software -- then their choice of inferior
 Microsoft products is wrong.

but the original poster said there were NO reasons AT ALL to using M$;
and a few of us have given counterexamples.. (i apologise for having the
mathematician in me... but) that PROVES his statement is incorrect. now
YOUR statement on the other hand, which is very different, that the
majority of users don't need it, probably IS correct! but to most
people the computer does what they need it to do, and thats all they
want. they don't really care that there is another OS out there which is
technically superior, and most people don't even have any documents on
their computer which need high security clearance anyway.

 Most just don't know they're even making a choice.

how can it be a choice if they are not aware of it? they don't know
there is one... and to be honest i don't think most would change, given
the choice on a plate (in fact, i know many many people who just refuse
to use GNU/Linux without even trying it, simply because their computer
does what they want already). its a combination of laziness and fear of
the unknown. most people already think computers are scary... and lets
face it, it doesn't get more dumbed down than M$.

 Nice try.  The reality is that Microsoft's software is buggy, 
 security-hole-ridden, crap.  Anyone forced to use it by a third-party 
 software vendor (AutoCAD) should be very very unhappy with that
 vendor, and should be voicing it to that vendor -- not Microsoft. 
 Those of us who realize Microsoft software is of poor-quality have
 already told Microsoft it's not worth purchasing -- by not purchasing
 it.

all too true. but they are getting better. i wouldn't know of course,
having not used M$ for nearly 5 years now.

 Maybe you can get AutoCAD to buy your copies of Windows to run their 
 software on, if they require it for their software to work?  I doubt 
 it, but hey... it's worth a try over the bargaining table when you say
 
 you'd like to run their software on a good quality OS!

it would be wonderful if ports for high end products in all fields
existed (not just CAD, as that is only a small fraction of specialist
software), but the reality is that there is just not enough people
requesting such ports... and i don't even know if the requests ever even
reach the development teams. plus, there isn't even a bargaining table
in this game; we dont live in an age where the customer is always right
anymore.

i'm sorry if you took personal offence nate, that was not ever my
intention, and reading over my postings, i still cannot see how you got
so offended. thanks for the links though.

cheers,
Sam
-- 
Free High School Science Texts
  http://savannah.nongnu.org/projects/fhsst
Sam's Homepages
  http://fommil.homeunix.org/~samuel
  http://www.ma.hw.ac.uk/~samuel


pgp0.pgp
Description: PGP signature


Re: X4.3 (Again)

2004-02-09 Thread Sam Halliday
Brian Nelson wrote:
 Sam Halliday writes:
  i just had this exact same problem... i got around it by using
  aptitude and pretty much adding every X4.3 package i could find
  before hitting`g'... 
 Er, why?  The only 4.3 package you really need is xserver-xfree86.

DRI etc etc... and the newer mesa libraries. you're probably right
though, not everything needed updated... but i figured it would break
less things if i just had all my X packages synced to 4.3 rather than
having some libs 4.2.1. i didn't add any extra X packages than i had, so
maybe i could have worded my post a little better to updating every
XFree86-4.2.1 package i had to the XFree86-4.3 equivalent

cheers,
Sam
-- 
Free High School Science Texts
  http://savannah.nongnu.org/projects/fhsst
Sam's Homepages
  http://fommil.homeunix.org/~samuel
  http://www.ma.hw.ac.uk/~samuel


pgp0.pgp
Description: PGP signature


Re: sftp sources?

2004-02-09 Thread Sam Halliday
Cristian Gutierrez wrote:
 [ftp/http is bandwidth limited on university network, ssh isn't
 limited]
 
 [idea: tunnel ftp/http via ssh and a remote friendly proxy]
 
 [step by step instructions]

excellent! thanks for the help... i think we can probably sort something
out for them! :-D the sysadmin has already been told that there is an
unnatural amount of transfer on the ssh port due to the nature of the
research (by the head of department), so they wont be done for bandwidth
usage... in fact, updating a debian system is probably negligible
compared to the data they truck around.

thanks again!

cheers,
Sam
-- 
Free High School Science Texts
  http://savannah.nongnu.org/projects/fhsst
Sam's Homepages
  http://fommil.homeunix.org/~samuel
  http://www.ma.hw.ac.uk/~samuel


pgp0.pgp
Description: PGP signature


Re: Knoppix is Not Debian

2004-02-09 Thread Sam Halliday
Antonio Rodriguez wrote:
 On Tue, Feb 10, 2004 at 12:29:35AM +, Sam Halliday wrote:
  varicad is a joke for serious work... speak to an expert, and they
  will tell you the same thing. even autocad is described as too
  simplistic by a few mechanical engineers i know, and architects
  (REAL architects, not extension to the back room architects) need
  something a lot more powerful.
 This reminds me of those who have finished several semesters of
 calculus, some DE and so forth, but without a calculator are
 clueless. I thought real engineers would need only a pen and a piece
 of paper (may be some table to speed computations). Before computers
 came, with all the software, there were already engineers out there.

and there were mathematicians before maple as well :-) but it definitely
speeds things up... pen and paper is still where the ideas happen
though, and always will be.

cheers,
Sam
-- 
Free High School Science Texts
  http://savannah.nongnu.org/projects/fhsst
Sam's Homepages
  http://fommil.homeunix.org/~samuel
  http://www.ma.hw.ac.uk/~samuel


pgp0.pgp
Description: PGP signature


list installed packages

2004-02-08 Thread Sam Halliday
hi there,

there are many ways to list all the packages a system has installed, but
unfortunately i cannot find how to get a list the way i want.

i would like to get a listing of all the packages i have installed, with
the branch tag beside it.

  dpkg -l

seems to come closest, but lists the packages, the version and a
description. i do not want the version or the description just the
package name with stable/testing/unstable/experimental tag beside it.
does anyone know how to do that? i cannot even find a way to get the tag
displayed, otherwise i'd just write a simple script to remove what i
don't want.

cheers,
Sam
-- 
Free High School Science Texts
  http://savannah.nongnu.org/projects/fhsst
Sam's Homepages
  http://fommil.homeunix.org/~samuel
  http://www.ma.hw.ac.uk/~samuel


pgp0.pgp
Description: PGP signature


Re: X4.3 (Again)

2004-02-08 Thread Sam Halliday
Hank Marquardt wrote:
 I've added experimental to list.sources, I've update and even upgraded
 today so the system is current, here's my current X inventory:

[ snip lots of 4.2.1-16 stuff ]

 What I'm concerned with is that if I enumerate all those in a 'apt-get
 --simulate install' statement I get concerned by the output of
 removing xlibmesa3 and xlibmesa3-gl ... it looks like all of KDE is
 linked/effected by that and while KDE isn't explicitly being removed
 I'm worried that it'll be hosed if I do the upgrade.

i just had this exact same problem... i got around it by using aptitude
and pretty much adding every X4.3 package i could find before hitting
`g'... a word of warning though: xlibmesa3 and xlibmesa3-gl have been
renamed to xlibmesa and xlibmesa-gl, so you will want to select them: so
you wont have any dependency problems with KDE (or SDL, or anything else
which requires them). i didn't have any broken packages when i finally
pressed on `g'. you might need to add the xlibmesa-dri stuff too.

you should _really_ ask yourself why you are going to X4.3: unless it
has better support (or in my case... the only support of my card), there
really isn't much benefit in the upgrade.

maybe off-topic... but does anyone know if the new cursor themes are off
by default for the X4.3 builds? i just came from LFS, and i had the new
cursor themes on my desktop just by adding the resource Xcursor.theme:
whiteglass... it was quite nice. but on debian, the resource makes no
difference. anything else i need to add?

hope that helps,

cheers,
Sam
-- 
Free High School Science Texts
  http://savannah.nongnu.org/projects/fhsst
Sam's Homepages
  http://fommil.homeunix.org/~samuel
  http://www.ma.hw.ac.uk/~samuel


pgp0.pgp
Description: PGP signature


Re: X4.3 (Again)

2004-02-08 Thread Sam Halliday
Hank Marquardt wrote:
  you should _really_ ask yourself why you are going to X4.3: unless
  it has better support (or in my case... the only support of my
  card), there really isn't much benefit in the upgrade.
 Well, I've had this darned Radeon 8500DV for over a year now without
 really being able to use it as intended.   I remember at the time
 sayingOh, support is in the 4.3 tree and that will be released soon,
 it should filter into unstable a few weeks later at most ... yeah,
 that worked out well.

as far as i gathered, it seemed that the reason why XFree86-4.3 was
taking so long to get into unstable was that there were so many security
related issues with it; like you, i am only using experimental for
driver support (also a radeon). i've had no problems at all with it and
my 3D acceleration is working great. the vanilla 2.6 kernel modules work
as well... when i was using LFS, it was a pain using XFree86-4.3 with
the 2.4 kernel as you needed to use the modules which came with XFree86,
and not the vanilla ones.

 Honestly this whole experience (waiting a year and now still having
 what seems a kludgy solution) has left a sour taste that has resulted
 in gentoo and fedora living on a spare box.  I'm not ready to jump
 ship, but honestly this theology of it has to work on all
 architectures is annoying with stuff like this.

experimental has been there the whole time... i personally find adding
a single line into my apt sources list a WHOLE lot easier than a switch
to another distro. using the experimental branch is not a kludgy
solution at all... it is essentially the same as what fedora and gentoo
are doing... they are just not as careful in what they label stable.
what i mean is, you will essentially be using the same version of
XFree86-4.3 on any distro.

i personally found the upgrade to be trivial... and it only took me
about 15 minutes (downloading included) when i found out that
experimental existed! The X config file needed no editing to do what i
wanted.

 Enough ranting and back to topic ... I didn't count them, but it seems
 I've only got 25 or so X related packages ... I started down the road
 I saw in another message of getting the
 debian/pool/X/xfree/*pre5v1_i386* packages and installing them all but
 that is a whole lot more, including a bunch of debug builds that are
 enormous.

here i what i installed to get a fully working XFree86-4.3 install, with
-dev support.

libxaw7/experimental uptodate 4.3.0-0pre1v5
xlibs-static-dev/experimental uptodate 4.3.0-0pre1v5
libxv-dev/experimental uptodate 4.3.0-0pre1v5
libxp-dev/experimental uptodate 4.3.0-0pre1v5
libx11-6/experimental uptodate 4.3.0-0pre1v5
libxt6/experimental uptodate 4.3.0-0pre1v5
pm-dev/experimental uptodate 4.3.0-0pre1v5
libxrandr-dev/experimental uptodate 4.3.0-0pre1v5
xfonts-scalable/experimental uptodate 4.3.0-0pre1v5
xlibs-data/experimental uptodate 4.3.0-0pre1v5
libxmu6/experimental uptodate 4.3.0-0pre1v5
libxv1/experimental uptodate 4.3.0-0pre1v5
libxpm-dev/experimental uptodate 4.3.0-0pre1v5
libxi-dev/experimental uptodate 4.3.0-0pre1v5
libxp6/experimental uptodate 4.3.0-0pre1v5
libxft1/experimental uptodate 4.3.0-0pre1v5
xserver-xfree86/experimental uptodate 4.3.0-0pre1v5
xutils/experimental uptodate 4.3.0-0pre1v5
libice6/experimental uptodate 4.3.0-0pre1v5
xfree86-common/experimental uptodate 4.3.0-0pre1v5
libxtst6/experimental uptodate 4.3.0-0pre1v5
x-window-system-core/experimental uptodate 4.3.0-0pre1v5
libsm-dev/experimental uptodate 4.3.0-0pre1v5
libxt-dev/experimental uptodate 4.3.0-0pre1v5
libxmuu-dev/experimental uptodate 4.3.0-0pre1v5
xlibmesa-dri/experimental uptodate 4.3.0-0pre1v5
xlibmesa-glu/experimental uptodate 4.3.0-0pre1v5
xterm/experimental uptodate 4.3.0-0pre1v5
libxtrap-dev/experimental uptodate 4.3.0-0pre1v5
libdps1/experimental uptodate 4.3.0-0pre1v5
xlibs-dev/experimental uptodate 4.3.0-0pre1v5
libsm6/experimental uptodate 4.3.0-0pre1v5
libxtst-dev/experimental uptodate 4.3.0-0pre1v5
xlibmesa-gl/experimental uptodate 4.3.0-0pre1v5
libxi6/experimental uptodate 4.3.0-0pre1v5
xlibs/experimental uptodate 4.3.0-0pre1v5
libxext6/experimental uptodate 4.3.0-0pre1v5
libxtrap6/experimental uptodate 4.3.0-0pre1v5
libxpm4/experimental uptodate 4.3.0-0pre1v5
libxmuu1/experimental uptodate 4.3.0-0pre1v5
libxrandr2/experimental uptodate 4.3.0-0pre1v5
x-dev/experimental uptodate 4.3.0-0pre1v5
libxmu-dev/experimental uptodate 4.3.0-0pre1v5
xfonts-base/experimental uptodate 4.3.0-0pre1v5
xlibmesa-gl-dev/experimental uptodate 4.3.0-0pre1v5
libx11-dev/experimental uptodate 4.3.0-0pre1v5
xfonts-75dpi/experimental uptodate 4.3.0-0pre1v5
xfonts-100dpi/experimental uptodate 4.3.0-0pre1v5
xserver-common/experimental uptodate 4.3.0-0pre1v5
libxext-dev/experimental uptodate 4.3.0-0pre1v5
twm/experimental uptodate 4.3.0-0pre1v5
xbase-clients/experimental uptodate 4.3.0-0pre1v5
libice-dev/experimental uptodate 4.3.0-0pre1v5
xlibmesa-glu-dev/experimental uptodate 4.3.0-0pre1v5

i think a few of the meta-packages selected 

Re: sftp sources?

2004-02-07 Thread Sam Halliday
Cristian Gutierrez wrote:
 Sam Halliday writes:
 i am trying to convert a bunch of friends to using Debian GNU/Linux
 as opposed to the unmaintained Redhat... a major selling point being
 the constant maintenance and security updates by FTP and HTTP.
 
 unfortunately all of the would-be-converts are in a university
 network which has bandwidth allocation caps on FTP and HTTP. for
 example: a typical FTP download (to a machine 5 miles away) goes at
 ~2K/s, even when the undergrads have all gone home and are not
 clogging the resources, whereas an scp (across a hemisphere and a
 timezone) goes~200K/s. the good news being that port 22 is not
 capped: i was wondering if there were SFTP sources equivalent to the
 FTP lists? (or any other non ftp/http methods which may solve this
 problem)
 
 May be they can use an external proxy via ssh. Say, they have ssh
 access to host X where X is outside their university network and can
 use a proxy on Y:8000 (Y could be X itself). Now they can forward
 their localhost:8000 to Y:8000 ssh'ing through X, and set APT to use
 localhost:8000 as a proxy.

unfortunately thats sounds like the only available option, as non
ftp/http source do not seem to exist. the problem is that i do not know
anyone external to the network, with root access to a box, willing to
give up bandwidth and ports for the cause :-/. thanks anyway though...
ill ask around.

i know this is a long shot, but has anyone got an FTP mirror running on
a non-standard port?

cheers,
Sam
-- 
Free High School Science Texts
  http://savannah.nongnu.org/projects/fhsst
Sam's Homepages
  http://fommil.homeunix.org/~samuel
  http://www.ma.hw.ac.uk/~samuel


pgp0.pgp
Description: PGP signature


Re: Soundcard probs and total novice - update - and only a minor problem now

2004-02-06 Thread Sam Halliday
Steve Hargreaves wrote:
 Now the minor problem. I use an S99local file to insmod required modules

no need to do that... just add the modules you want to load into the file
/etc/modules (no need for the insmod command) and the debian bootscripts will
load them and their dependencies automagically.
 
 insmod usb-ohci
 insmod ac97
 insmod ac97_codec
 insmod ac97_plugin_wm97xx
 insmod sound
 insmod i810_audio

by the way, `man modprobe` is better than insmod.

 /usr/X11R6/bin/startx

hmm... are you running your system as the root user all the time? if so,
SERIOUSLY consider installing a user for yourself and set up a graphical login,
such as gdm.

  apt-get install gdm

should do the trick (you may need to satisfy dependencies... so use aptitude)

 However - sound and i810_audio don't get inserted. If I open a console and do 
 it manually after boot then there's no problem, and the sound works 
 wonderfully after re-starting X (restarting the sound server doesn't do it).
 
 Any idea why these modules are still left out?

probably because their dependencies are not being met as you are using insmod.
as i said...

cat  /etc/modules  EOF
usb-ohci
ac97
ac97_codec
ac97_plugin_wm97xx
sound
i810_audio
EOF

should do the trick. i'm even confident you don't need a lot of those module in
the file. probably usb-ohci and ac97 will be enough... the bootscripts will
calculate the dependencies for you. is sound even a module? i thought it was
soundcore

hope that helps!

(i take it you are using OSS now as opposed to ALSA?)

cheers,
Sam
-- 
Free High School Science Texts
  http://savannah.nongnu.org/projects/fhsst
Sam's Homepages
  http://fommil.homeunix.org/~samuel
  http://www.ma.hw.ac.uk/~samuel


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: kernel question

2004-02-06 Thread Sam Halliday
Adam Aube wrote:
 On Friday 06 February 2004 04:23 am, David Baron wrote:
  The new kernel image would not boot up because of missing modules.dep
  references. Does one need to build the whole thing or is there a way to
  simply use the newer kernel with the modules that are already on the
  system?
 
 Try running depmod -a [kernel version #].

do you not also need to point to the System.map file, if you are running depmod
on a non-running kernel?

  depmod -a -F [/path/to/System.map] [KERNELVERSION]

cheers,
Sam
-- 
Free High School Science Texts
  http://savannah.nongnu.org/projects/fhsst
Sam's Homepages
  http://fommil.homeunix.org/~samuel
  http://www.ma.hw.ac.uk/~samuel


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: dvips TeX printer driver

2004-02-06 Thread Sam Halliday
Haines Brown wrote:
 When I migrated to debian, I lost my ability to print LaTeX files. No
 information is sent to the printer.
 
 The printer driver is dvips, and I assumed that it was included in the
 LaTeX package, for that was the case with my LaTeX installation under
 RedHat. Under Debian, is the driver a separate package, and if so what
 is it called? 

what do you mean driver, do you mean the command you type to print a file?
when you have created the dvi file from the latex source, you should just be
able to type `dvips file.dvi` and it will be sent to the printer. is your
printer working normally for everything else?

the dvips command is part of the `tetex-bin' package; if you installed LaTeX
using aptitude, i would be VERY surprised if tetex-bin was not also installed.

hope that helps,

cheers,
Sam
-- 
Free High School Science Texts
  http://savannah.nongnu.org/projects/fhsst
Sam's Homepages
  http://fommil.homeunix.org/~samuel
  http://www.ma.hw.ac.uk/~samuel


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Problem getting sound to work

2004-02-06 Thread Sam Halliday
Mark Healey wrote:
 When I boot knoppix it uses via82cxxx_audio and works.  I have that
 module installed so I added the line to my via82cxxx_audio to my
 /etc/modules.  Still no sound.

does it work as root? if so, you need to add your user to the audio
group

hope that helps,

cheers,
Sam
-- 
Free High School Science Texts
  http://savannah.nongnu.org/projects/fhsst
Sam's Homepages
  http://fommil.homeunix.org/~samuel
  http://www.ma.hw.ac.uk/~samuel


pgp0.pgp
Description: PGP signature


Re: dvips TeX printer driver

2004-02-06 Thread Sam Halliday
Haines Brown wrote:
 I stayed clear of CUPS because I'm running a stand-alone work station,
 and it seems to open a range of hurdles to overcome. What I'm using is
 just the default printer system (woody).

uuh... i thought CUPS _was_ the default printing system? try installing
it... honestly you will be pleasantly surprised how easy it is to set
up! once installed, if debian does not already configure it for your own
printer, then point your web browser to the cupsd local configuration
tool

  http://localhost:631/admin

and you can do all kinds of configuring and setting up from there.

if you need any printer config files [.ppd files] (i suspect you will
not), then go here:

  http://linuxprinting.org

once your printer is set up, try printing a PS file from the ocmmand
line with `lpr file.ps` and let us know if it works. i suspect the
programs which were able to print OK, were all writing raw information
to the printer device, rather than through some printing system.

don't be afraid of running servers like cupsd on a workstation; if you
have a printer attached to a computer, the unix way will always be to
treat that computer as a print server. you have no problems running an X
server just for your machine, do you? ;-)

 When I run dvips on a dvi file, it generate what I can
 only assume is a proper .ps file, but the output
 never gets to the printer.

thats normal; as Antonio Rodriquez pointed out, the package maintainer
has changed the default action of the program `dvips` to output a
postscript file instead of sending it to the printer. i for one welcome
this change as it seemed to be the only *2ps program which printed
instead of creating a PS file. i don't know how you would change the
default action, however.

hope that helps,

cheers,
Sam
-- 
Free High School Science Texts
  http://savannah.nongnu.org/projects/fhsst
Sam's Homepages
  http://fommil.homeunix.org/~samuel
  http://www.ma.hw.ac.uk/~samuel


pgp0.pgp
Description: PGP signature


Re: Problem getting sound to work

2004-02-06 Thread Sam Halliday
Mark Healey wrote:
 I have a question about this list.  How do I prevent my messages from
 being forwarded to usenet?  Spammers harvest there.

i also have a question: why do debian not obfuscate email addresses?
like the way mail.gnu.org does. for example, browse

  http://mail.gnu.org/archive/html

i think it would certainly benefit us all!

cheers,
Sam
-- 
Free High School Science Texts
  http://savannah.nongnu.org/projects/fhsst
Sam's Homepages
  http://fommil.homeunix.org/~samuel
  http://www.ma.hw.ac.uk/~samuel


pgp0.pgp
Description: PGP signature


sftp sources?

2004-02-05 Thread Sam Halliday
hello there,

i am trying to convert a bunch of friends to using Debian GNU/Linux as
opposed to the unmaintained Redhat... a major selling point being the
constant maintenance and security updates by FTP and HTTP.

unfortunately all of the would-be-converts are in a university network
which has bandwidth allocation caps on FTP and HTTP. for example: a
typical FTP download (to a machine 5 miles away) goes at ~2K/s, even
when the undergrads have all gone home and are not clogging the
resources, whereas an scp (across a hemisphere and a timezone) goes
~200K/s. the good news being that port 22 is not capped: i was wondering
if there were SFTP sources equivalent to the FTP lists? (or any other
non ftp/http methods which may solve this problem)

cheers,
Sam
-- 
Free High School Science Texts
  http://savannah.nongnu.org/projects/fhsst
Sam's Homepages
  http://fommil.homeunix.org/~samuel
  http://www.ma.hw.ac.uk/~samuel


pgp0.pgp
Description: PGP signature


Re: Soundcard probs and total novice

2004-02-05 Thread Sam Halliday
Steve wrote:
 I have an onboard soundcard that should conform to the ac97 module. I 
 can insmod ac97, and the associated modules. Soundcore is also
 installed - but /dev/dsp is still not available (either doesn't exist
 or permission denied - it tends to vary).
 
 What the hell do I need to do to get the souncard working?

this might not be what you mean... but have you tried running alsamixer
yet? the sound levels default to zero and you need to unmute everything
(`m` button i think).

from the sounds of things you are still trying to send sounds to
/dev/dsp... what are you using to play sounds? what program is
outputting the error? try using the alsa plugin for xmms to see if it
outputs anything.

also, you say you can `insmod ac97`; is that the oss driver or the alsa
one? if the former, then remove it and load the alsa module instead!
they are totally incompatible... if you intent to use alsa, then remove
all the OSS kernel stuff (apart from the compatibility layer if you want
it). make sure you remove that entry from /etc/modules if that is the
case (or just don't compile it if you build your own kernel)

i take it you have gone through the debian configure options for alsa.
if so, you should have a file like /etc/alsa/modutils/1.0; if sound is
still not working, try posting that file on the list, it should only be
a few lines long.

cheers,
Sam
-- 
Free High School Science Texts
  http://savannah.nongnu.org/projects/fhsst
Sam's Homepages
  http://fommil.homeunix.org/~samuel
  http://www.ma.hw.ac.uk/~samuel


pgp0.pgp
Description: PGP signature