Re: unix locate cmd

2002-10-01 Thread Frank Heitmann


> The file is called xinitrc not .xinitrc
/usr/X11R6/lib/X11/xinit/xinitrc if user has no .xinitrc file
which would reside in ~  (so it's ~/.xinitrc).

See startx(1) - and my system were it works with ~/.xinitrc :)

Cheers,
Frank

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: xterm and colors

2002-09-27 Thread Frank Heitmann

On Sat, Sep 28, 2002 at 12:54:10AM -0500, Bryan Cassidy wrote:

> How do i set the colors so when I just use "ls" I get the color
> directories and the rest of colors? I just want the basic colors
> that I can get without having to do alot of configuring.
Have you set your TERM environment variable to 'xterm-color' ?

The way to do this differs depending on the shell you use, if it's
bash just type:
export TERM=xterm-color

if it's csh type:
setenv TERM xterm-color

(There are more shells, look at the man page of your shell for more
details!)

Hope that helps,
Cheers and Good Morning :)
Frank

P.S. I have read that in new versions of FreeBSD the TERM variable
is set to xterm-color by default, but I have forgotten if this is
already done in -stable or if this is done in -current - and I
don't know which version of FreeBSD you are running :)

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: there must be a better way

2002-09-27 Thread Frank Heitmann


> Did you never consider that FreeBSD is a server system?
I use it as a desktop system, I hope that's also ok :)

And to the original poster: I have used Windows all my life
(ok, it's not that long, because I have just become 22, but
in computer-years it's a lot :)   and have just started to
use FreeBSD two month ago, and I won't deny if someone says
it's hard to learn (Unix in general), but if you spend a
lot of time reading and learning and practising then you
will notice what a great system it is.
Also as a desktop system :)

Cheers,
Frank

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



centericq and xterm

2002-09-27 Thread Frank Heitmann

Hi.

Yesterday I posted a message describing a problem with centericq
and X (running centericq in an xterm console did not work at my
system, because the arrow keys did not work right from the start).

Today I was able to solve that problem by changing ESCDELAY=0 to
ESCDELAY=1 in conscommon.cc and compile it again.

Anyway, I still wonder if anyone has had the same problem and
has maybe solved it? Tommorow I will read further in the curses
documentation to find out more; maybe there is a better way to
tweak it, but maybe I am going in the wrong direction?!

Cheers - and good night :)
Frank

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: xterm and centericq

2002-09-26 Thread Frank Heitmann

> I have just installed centericq from the ports but
> when I execute it I am not able to use the arrow
> keys in the configuration screen.
> 
> I try to run it under X in a xterm console with
> TERM=xterm-color.

One more thing to add: In programs like mutt, slrn
and midnight commander the arrow keys work fine.

Cheers,
Frank

P.S. Sorry for reply instead of a new post.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



xterm and centericq

2002-09-26 Thread Frank Heitmann

Hi.

I have just installed centericq from the ports but
when I execute it I am not able to use the arrow
keys in the configuration screen.

I try to run it under X in a xterm console with
TERM=xterm-color (when I am not running X and have
TERM=cons25l1 everything works fine).

I have read the readme and the FAQ, but haven't found
anything - any ideas or hints ?
Maybe I have to tweak some X keyboard configurations?!

Greets,
Frank

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Books (OT)

2002-09-26 Thread Frank Heitmann

Hi.

I have used FreeBSD for about 6-7 weeks now (great system; I have
to admit that I like UNIX much more than Windows) and now that I
got a little better with the system in general I wanted to start
to program for it, so that I will hopefully be able to help.

But as I read through some code I noticed that my C/C++ needs some
refreshment and improvement (especially OOP) first. (I haven't really
programmed for a year or so, because I first started to study Physics,
before I realized that Computer Science (or "Informatik" here in
Germany) is what interests me much more. Before that I have programmed
a lot for Windows.)

The books I have looked at are:
C How To Program
C++ How To Program (both from Prentice Hall/Deitel)
and:
C Programming Language (K&R)
C++ Programming Language (Stroustrup)

The two from Deitel look very good to me (I like the summary and
exercises at the end of each chapter and I like the whole layout).
The last two also seemed to be very good, but I believe they are
more useful as a reference than for learning?!

Maybe someone has them on his/her bookshelf and can give a comment?

Oh, and sorry for being off-topic, but these mailinglists have
rapidily become my only connection to the outside world :)

P.S. I have just seen in the handbook that there is a book "The
Design and Implementation of the 4.4BSD Unix Operating System".
Is it useful in connection with the "Developers Handbook" to
understand kernel internals?
(Hey, I am at least not absolutly off-topic now :)

Cheers,
Frank

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: gethostbyname

2002-09-20 Thread Frank Heitmann

> Anyone have a simple example of how to use this function..

This should work (and is really reduced to a minimum)

=

struct hostent *hostentry;

if ( (hostentry = gethostbyname("localhost")) == NULL) {
// Error handling
}
printf("Name: %s; Alias: %s\n",
   hostentry->h_name, hostentry->h_aliases[0]);

=

At my system the output is just:
"Name: localhost; Alias: (null)"

Note that gethostbyname tries to get information from the nameserver
or /etc/hosts. (I don't know if the order in which these are accessed
depends on /etc/host.conf and I also do not know if the lookup in
/etc/hosts only occurs if the local name server is not running - it
seems so to me, according to gethostbyname(3))

Cheers,
Frank

--
Be aware that this message has been written by a FreeBSD newbie!
Using FreeBSD for approximately 6 weeks and 3 days now :)

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message