Re: When Unix Stops Being Fun

2004-10-03 Thread Michal Pasternak
Ted Mittelstaedt [Sat, Oct 02, 2004 at 10:46:05PM -0700]:
 As an analogy - there's lots of people that know how to pull into
 a service station and add air to their car tires.  But out of all
 those people that have learned how to do this only a tenth of them
 know that tire pressure rises when the tire gets warmer, and of
 those people, only another tenth WOULD ASSUME THAT THIS WOULD BE
 THE CASE IF THEY THOUGHT ABOUT IT because they actually understand 
 what gas pressure is.  And if one of the people in that group had
 never added air in his life to a tire, and you told him to go do it,
 he would not only be able to go do it, he would be able to add 
 exactly the correct amount of air needed for the tire.

I really liked that part about a sciencist! On the other hand, I think it is
too enthusiastic, applying theory to practice needs a few things more... :)

-- 
m
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Open Office?

2004-08-11 Thread Michal Pasternak
h.kriege [Wed, Aug 11, 2004 at 10:11:41AM +0200]:
 Hi there,
 Will Open Offoice run on Free BSD?

Hello,
Yes - both native and linux Open Offoice work.

-- 
m


signature.asc
Description: Digital signature


Re: Is there a /dev/video in freebsd?

2004-07-26 Thread Michal Pasternak
David [Mon, Jul 26, 2004 at 03:49:01AM -0400]:
 I am using freebsd 5.2. Xawtv has a command
 called streamer to capture video/audio from
 /dev/video. I cannot find /dev/video in freebsd.

Which kind of TV card do you have?
-- 
m


signature.asc
Description: Digital signature


Re: Is there a /dev/video in freebsd?

2004-07-26 Thread Michal Pasternak
David [Mon, Jul 26, 2004 at 10:29:52AM -0400]:
 Hi, I figure out how to disable attachment viewing.

That was my PGP signature.

 I am using a Hauppauge
 wintv card which uses the bt878 chipset.

I also used that once. All information about it on FreeBSD (oh, almost all,
use links) can be found here: http://telepresence.dmem.strath.ac.uk/bt848/ .
IIRC, fxtv worked for me with that.

-- 
m


signature.asc
Description: Digital signature


Re: Compilation

2004-07-21 Thread Michal Pasternak
Carlos Torchia [Wed, Jul 21, 2004 at 06:02:43AM +0100]:
 Hi.  I can't compile a program using the G2 graphics
 library.  When I tried compiling the program the first
 time, cc said it didn't know that g2.h was in
 /usr/local/include, which I think is pretty stupid.
 Anyway, I put /usr/local/include and /usr/local/lib in
 the -I and -L parameters respectively.

Yes, that's correct. You need to pass -I and -L each time you compile a
program, that has its libs / includes not in /usr/{lib,include} .

There are 3 options: use Linux (which has almost everything in /usr/include
and /usr/lib, but you still have to pass -I and -L sometimes, for postgresql
for example); symlink all files in /usr/X11R6/{lib,include} and
/usr/local/{lib,include} in your /usr/{lib,include} - which will clobber up
your filesystem a bit; learn to write / use Makefiles or pkg-config stuff.

For example, you could write Makefile like:

myprogram: myprogram.c
$(CC) -o myprogram `gtk-config --libs --cflags` myprogram.c

 Then it saw
 the header and library files, but there were constant
 errors saying that there were undefined references to
 X11 functions within libg2.a.

Aye! That's why you specify -L/usr/X11R6/lib -lX11 and some more stuff on
gcc command line.

Too hard, too complicated, takes too much time? Well. Either write a good
makefile, or try to learn some IDE for GCC (anjuta, kdevelop), which can
propably take care of this automatically. I think, that learning
automake/autoconf (the scripts, that generate configure script, that
autodetects library locations) can be hard/unneeded for you at the moment.

 and how to redirect error output from
 programs to files (or pipe them), because everything I
 need to now about Unix or FreeBSD comes from 72 hours of
 trying to figure out how to make a directory or something.

Google is your friend:
http://www.bo.infn.it/alice/alice-doc/mll-doc/usrgde/node18.html

 I'm sorry, but I just can't do anything in this operating
 system.  I mean, finally I've found a library that makes
 it simple to simply plot a pixel in a window without
 spending hours looking for a GTK tutorial that will tell
 me about this stupid graphics context stuff that I don't
 even know.  And now I gotta figure out about this stupid
 g2 thing.  Ok.  Well anyway, thanks for any help you can
 give me.

If you just want to get the job done, I'd suggest Python. You don't care
about compilation, libraries, other stuff - and it is extremely simple to
draw stuff using PyGTK -
http://www.moeraki.com/pygtktutorial/pygtk2tutorial/ch-DrawingArea.html

If graphics context stuff bothers you, well, that's somehow standard way
to draw stuff, well, X has it and win32 also has it :) If you want to use
something like a framebuffer, I am sure you can find something, no matter if
in GTK or X11 (I'd suggest XSHM extension for framebuffer-like stuff, but
well, I've written my last pure-X11 application about 5 years ago, and I'm
sure, that things have changed).

Hope this helps. Don't get frustrated - spend another 72 hours actually
reading the docs, unix is simple, but sometimes not as simple, as you may
suppose :)
-- 
m
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: doc

2004-07-19 Thread Michal Pasternak
muhammad javed [Mon, Jul 19, 2004 at 10:08:41AM +]:
 sir
 my name is javed. i want to learn learn unix opreating stystam .it is 
 possible to send me free book or basics documents. i am great full to you.

Hello Javed,

You can download FreeBSD handbook here:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/index.html

FreeBSD FAQ is also interesting:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/index.html

Check also this section of FreeBSD for newbies:
http://www.freebsd.org/projects/newbies.html#unix

Another big repository of documentation are Linux HOWTOs - many of them
aren't really linux specific:
http://www.tldp.org/docs.html#howto

Have fun,
-- 
m
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: memory test

2004-07-06 Thread Michal Pasternak
adrian kok [Wed, Jul 07, 2004 at 02:29:57AM +0800]:
 Hi all
 
 Suse linux startup has linux testing feature

Well, you can also get a Linux kernel with httpd built-in :)

To test your memory, use http://memtest86.com

Sincerely,
-- 
m


signature.asc
Description: Digital signature


Re: AMD64 vs i386 for FreeBSD

2004-06-26 Thread Michal Pasternak
David O'Brien [Sat, Jun 26, 2004 at 04:00:26PM -0700]:
 You do know you can run FreeBSD/i386 on the Athlon64 3200+ laptop,
 right? :-)  A 3200+ running 32-bit FreeBSD will out-perform the  P4
 2.8GHz running the same OS.

... but will it outperform it also by heat dissipation?

-- 
m
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: setting xterm font from the command line

2004-06-24 Thread Michal Pasternak
Robert Huff [Thu, Jun 24, 2004 at 09:05:49AM -0400]:
 
 Michael A. Smith writes:
 
   xfontsel works great and works fine for the sample string above 
   (Bitstream Charter), but xterm barfs on font strings that have spaces, 
   for example:
   
   -bitstream-bitstream vera sans mono-*-r-normal-*-*-*-*-*-*-*-*-*
 
   As far as I know, a correct fontspec has no spaces.  Try
 replacing the ' 's with '-'s and see what happens.

No, it can. Dash is a separator of given fields in font specification, so
what you just said is totally wrong.

-- 
m
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: voice talk between 2 FBSD boxs

2004-06-06 Thread Michal Pasternak
JJB [Sun, Jun 06, 2004 at 01:13:31PM -0400]:
 Is there an 2 way voice talk command or port application between 2
 unix type systems with an ms/windows version?

Try:

http://shtoom.sf.net/

It's in very early stage of development, but as every Python project, it is
highly portable - Windows, MacOS X, Unices supported - and it can talk to
VoIP phones too.

HTH,
-- 
m


pgpSw9vjlb2fC.pgp
Description: PGP signature


Re: Sending a message to another computer on the network

2004-06-05 Thread Michal Pasternak
Hasse [Sat, Jun 05, 2004 at 02:25:49PM +0200]:
 I'm on a FreeBSD 4.10-STABLE machine on 217.209.211.x ,
 and would like to send a message to Win-box ( on the same network, but not my 
 machine ) that's filling up my  httpd-access.log with junk.
 The only thing I know is his IP-adress.

What?

Lookup his/hers IP via whoisdb (www.ripe.net) and report abuse to proper
Internet Service Provider.

 Is this possible ? If it is, how.

smbclient -M

 Or do I have to block his IP ?

That's also an option.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sending messages

2004-06-05 Thread Michal Pasternak
arden [Sat, Jun 05, 2004 at 02:45:31PM +0100]:
 reading the windows messaging thread with interest was wondering how you
 would message a *nix box on the same network ?

man talk

Pity it's disabled by default in many today's unices, it was a great
time using it to talk with various people on the net (and, sometimes
exploiting bugs in talkd ;).


pgpGoYLSvFt6E.pgp
Description: PGP signature


Re: Large window causes monitor to degauss/reset!!

2004-06-05 Thread Michal Pasternak
Jacob Rhoden [Sun, Jun 06, 2004 at 01:24:47AM +]:
 I have been using freebsd for quite some time now, I have come across
 a machine with a 19 viewmaster, whereby if you open a window
 bigger than about 500x500 pixels, the monitor resets and degausses
 every 8 seconds until you close the window. Has anyone had this
 happen to them?

Hardware error or X misconfigured. Try to lower resolution / refresh rate
and see if problem persists. Try another video card. If degausing occurs at
the lowest supported resolution and refresh rate, this is clearly hardware
issue. Examine, if degausing depends on the background color of the window
(try black, white, red, green, blue). 


pgpmjzqOpFHQZ.pgp
Description: PGP signature


Re: PHP IDE instead of Bluefish

2004-06-05 Thread Michal Pasternak
Bruce Hunter [Sat, Jun 05, 2004 at 09:46:09PM -0400]:
 I have recently gotten rid of window and now only run FBSD. I am a
 programmer of many kinds. I program in PHP and was wondering what is a
 good PHP IDE? Maybe something in the ports collection.

editors/xemacs works just great! :^)

-- 
m


pgpPwZFutG3iQ.pgp
Description: PGP signature


Re: How to make a screenshot?

2004-06-04 Thread Michal Pasternak
Andrew L. Gould [Fri, Jun 04, 2004 at 12:17:10PM -0500]:
 
 I flubbed my first attempt with xwd -- I need to spend more time with
 it's man page.

Try:

xwd | xwdtopnm | pnmtojpeg   foo.jpg

... and xli (xloadimage) for lightweight image viewing program.

Gimp, ImageMagick, ksnapshot are too heavyweight IMO if you just want a
screenshot.
-- 
m


pgprFOoVKWgGO.pgp
Description: PGP signature


Re: How to make a screenshot?

2004-06-04 Thread Michal Pasternak
JJB [Fri, Jun 04, 2004 at 01:22:27PM -0400]:
 DO any of the suggestions made so for work from the command line or
 do they all just run under x?

screen has a hardcopy function (C-a h) and a log function (C-a H), if you
want to play with textmode.


pgpjHMgA7fFFm.pgp
Description: PGP signature


Re: ifconfig documentation

2004-06-01 Thread Michal Pasternak
Aldinson C. Esto [Tue, Jun 01, 2004 at 09:39:11PM +0800]:
 Does the handbook or man page you are referring to have the
 documentation for each function of the ifconfig.c's source
 code? I really need this for our DHCP server development.

ISC-DHCPD already comes with some framework for writing DHCP stuff. Perhaps
you should see it, http://www.isc.org/products/DHCP/ .


pgpMpE4My03R3.pgp
Description: PGP signature


Profiling debugging on FreeBSD: loadable modules, profiler output, threads

2004-05-30 Thread Michal Pasternak
Hi,

I need to debug some software, written in Python (with threads), which uses
dynamically loadable modules, written in C. 

FreeBSD version is 5.2.1-RC. 

All Python modules are compiled with -g -pg, so is the python binary. 

By default, -g -pg -pthread doesn't seem to link libc to Python binary
(modules complain about missing 'strftime' on load). Any other combination
of options, than -g -pg -lc_r -lc -pthread causes Python binary to dump
core with sig 10 at start (with never ending _pthread_self calls in
backtrace).

Even if python.gmon is created, it contains only an information about calls
to '__fpsetreg'. 

My sysctl kern.debug.threads is 1. 

kdump output seems to reveal:

 88107 python2p3 NAMI  python2p3.gmon
 88107 python2p3 RET   open 5

... but only at the *end* of the log (shouldn't it be open some time earlier)?

I'd appreciate any help in this matter. I need this working by yesterday.

Thanks,
-- 
Michal Pasternak :: http://pasternak.w.lub.pl :: http://winsrc.sf.net

Frankly, any company would look bad if their corporate e-mail was available
for anyone to read, -- Jim Dose of Ritual Entertainment. 


pgpOScSnwIlfy.pgp
Description: PGP signature


Re: your mail

2004-05-24 Thread Michal Pasternak
[EMAIL PROTECTED] [Mon, May 24, 2004 at 03:58:05PM +0200]:
 I have an older computer wich cant`t boot CD-ROM discs and I hawe two ways:
 -to boot from the hard disc;
 -or to boot from the floppy and instal it from CD-ROM.
 But i have no idea how to do this.

Start with FreeBSD Handbook:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install-pre.html
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UsersFiles and Quota

2004-05-24 Thread Michal Pasternak
Chris Collins [Mon, May 24, 2004 at 11:58:30PM -0500]:
 Is there a way to list files on my system that belong to a certain user. I
 have quotas enabled and cannot find out where all the space is being used. 

Common procedure is to read the docs before asking! :) man find, EXAMPLES
section, 2nd example counting from top. HTH, 
-- 
m
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Install Identd for FreeBSD 4.5

2004-05-22 Thread Michal Pasternak
Hadi Surya Wijaya [Sat, May 22, 2004 at 07:26:14PM +0700]:
 Questions : How to Install Identd on FreeBSD 4.5 step by 
 step ..?

It is already there - uncomment proper lines in /etc/inetd.conf and restart
inetd (or, make sure you're running it, it is not enabled by default)

Also, if your FreeBSD is really 4.5, I'd consider updating to the latest
stable version.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Errors building PHP 4.3.6

2004-05-22 Thread Michal Pasternak
Robert Fitzpatrick [Sat, May 22, 2004 at 11:46:50AM -0400]:
 esmtp# ldd /usr/local/bin/psql
 /usr/local/bin/psql:
 libpq.so.3 = /usr/local/lib/libpq.so.3 (0x28096000)
 libkrb5.so.20 = /usr/local/lib/libkrb5.so.20 (0x280b2000)

Hmm, ok, so you need to include -l parameter to the linker on the line in
Makefile, that the error occures. (-lkrb5 perhaps)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Errors building PHP 4.3.6

2004-05-22 Thread Michal Pasternak
Robert Fitzpatrick [Sat, May 22, 2004 at 12:10:11PM -0400]:
 On Sat, 2004-05-22 at 11:56, Michal Pasternak wrote:
  Robert Fitzpatrick [Sat, May 22, 2004 at 11:46:50AM -0400]:
   esmtp# ldd /usr/local/bin/psql
   /usr/local/bin/psql:
   libpq.so.3 = /usr/local/lib/libpq.so.3 (0x28096000)
   libkrb5.so.20 = /usr/local/lib/libkrb5.so.20 (0x280b2000)
  
  Hmm, ok, so you need to include -l parameter to the linker on the line in
  Makefile, that the error occures. (-lkrb5 perhaps)
 
 OK, trying to find that Makefile. I don't find PHP 4.3.6 under the
 /usr/ports, only 4.3.4. Where does portupgrade put this Makefile?

I didn't mean the Makefile in ports, the error is obviously in some port
work directory, but I am unable to say which one, basing on the information
you supplied.

-- 
m
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 2 questions

2004-05-22 Thread Michal Pasternak
Osmany Guirola Cruz [Sat, May 22, 2004 at 02:16:48PM -0400]:
 how can i know the amount of free RAM and SWAP

top
vmstat

 how can i configure my anonymmos ftp

Use /stand/sysinstall for a user-friendly way to do that -

Configure/Networking/Anon FTP

, things like bandwith

DUMMYNET traffic shaper is one of the available options:

http://cs.ecs.baylor.edu/~donahoo/tools/dummy/tutorial.htm
http://www.freebsd.org/cgi/man.cgi?query=dummynetsektion=4

 or number ou 
 users

I don't know, what you mean by numer ou users.

-- 
m
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: keyboard country mapping

2004-05-22 Thread Michal Pasternak
arden [Sat, May 22, 2004 at 09:55:38PM +0100]:
 I'm in the UK but my install has set up my keyboard as American how can
 i alter it ?

2 ways:
 * run /stand/sysinstall and choose Keymap
 * man kbdcontrol, keymaps are in /usr/share/syscons/keymaps

HTH,
-- 
m
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: XFree86 help...

2004-05-22 Thread Michal Pasternak
hitokiri [Sat, May 22, 2004 at 04:51:55PM -0500]:
 Alright, so I recently migrated to FreeBSD and had some trouble
 configuring the network. I got that problem fixed for the most part now as
 the internet works, except when I go into X. About a minute after I get into
 X, my internet stops working, and I have to restart the whole computer to
 get it back up again. I have absolutely no clue as to what the problem might
 be, or how to solve it. Any suggestions?

Suggestions? Here you go. Perhaps tell us more about your network
configuration, tell us how does the internet stops working (can you ping
anyone on LAN? what about external interface?), also tell us about your X
configuration (eg. which environment / WM do you use), place .xinit and
/var/log/XFree86.log.0 somewhere on the web, so we could see it.

-- 
m
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Debugging a process

2004-05-21 Thread Michal Pasternak
Hello,

I've got an Epson printer I've set up with CUPS. Unfortunatley it came out,
that the program CUPS uses internally (rastertoprinter) gets some kind of
lockup right after ending the page - it starts to eat up 100% CPU; CUPS gets
the message Page finished, but the job stays there - and the printer
device (lpt0) is in use.

Well, so I did gdb, attached to the PID, typed bt... nothing. Just a few
lines with addr no and question marks.

I've recompiled said program (and the library it depends on) with -g in
CFLAGS. Nothing.

It came out, that the binary was stripped during install. I've installed
unstripped binary. Still the same thing.

Googled. Nothing really useful found.

At this point, I feel pretty lost - I've thought, that I know, what I have
to do when I want to have debugging info compiled in, and how to use gdb
(I know enough to get the backtrace, which is sufficient).

Any help / any ideas?

-- 
Michal Pasternak :: http://pasternak.w.lub.pl :: http://winsrc.sf.net

Frankly, any company would look bad if their corporate e-mail was available
for anyone to read, -- Jim Dose of Ritual Entertainment. 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Debugging a process

2004-05-21 Thread Michal Pasternak
Michal Pasternak [Fri, May 21, 2004 at 08:38:41PM +0200]:
 Hello,
 
 I've got an Epson printer I've set up with CUPS. Unfortunatley it came out,
 that the program CUPS uses internally (rastertoprinter) gets some kind of
 lockup right after ending the page - it starts to eat up 100% CPU; CUPS gets
 the message Page finished, but the job stays there - and the printer
 device (lpt0) is in use.
 
 Well, so I did gdb, attached to the PID, typed bt... nothing. Just a few
 lines with addr no and question marks.

Well, I'm answering myself: 

$ gdb nameOfExecutableWithDebugSymbols
gdb attach PID

... and, voila, that's all that it's needed.

-- 
m
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Printing with CUPS and gimp-print-cups: anyone with same errors?

2004-05-21 Thread Michal Pasternak
Hello,

on my machine (config as in Subject:) printing with CUPS caused the command
rastertoprinter to eat up 100% of CPU after finishing all the pages from a
given task.

I've found the possible bug and posted it, with a fix, on CUPS site:

http://www.cups.org/str.php?L723+P0+S-2+C0+I0+E0+Qfreebsd

Has any of you experienced similar problems? I'm interested in your
comments, because I'm still not exactly clear on where the bug is exactly
located:

  * the place I've pointed in bugreport
  
  * somewhere earlier (eg. when the socked mentioned in bugreport
is being set up and it is set up in a wrong way)

  * not related with CUPS (FreeBSD fault? Don't think so, but that's still
possible)

My system is 5.2.1-RC, printer is connected via LPT port. I

-- 
Michal Pasternak :: http://pasternak.w.lub.pl :: http://winsrc.sf.net

Frankly, any company would look bad if their corporate e-mail was available
for anyone to read, -- Jim Dose of Ritual Entertainment. 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


System for generating C/C++ references?

2003-06-11 Thread Michal Pasternak
Hello,

I am looking for some sort of software which would allow me
to generate C/C++ (and preferably other languages, like Python
or PHP) references for a given project. Suppose I am browsing
FreeBSD kernel, notice, that a function uses ,,struct somestruct''
as it's parameter. I want to see, what other functions use this
struct and where's that struct defined. I know, that tools like
find and grep might be helpful :) but it is uncomfortable
to grep kernel sources every time I want to find something.

I am sure I have seen projects like this, but I cant remember
the name. Could you? Thanks in advance.

Please CC: me, as I am not quite a subscriber of this list.

Regards,
-- 
Micha Pasternak :: http://pasternak.w.lub.pl
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]