Re: xorg.conf

2005-11-10 Thread Alex Kelly
On 11/10/05, Garrett Cooper <[EMAIL PROTECTED]> wrote:
> On Nov 10, 2005, at 12:06 PM, Alex Kelly wrote:
>
>
> > On 11/10/05, Alex Zbyslaw <[EMAIL PROTECTED]> wrote:
> >
> >> Alex Kelly wrote:
> >>
> >>
> >>> if you're just interested in seeing if it's there, try this:
> >>>
> >>> find / -name "xorg.conf"
> >>>
> >>>
> >>>
> >> Try:
> >>
> >>locate xorg.conf
> >>
> >> first.  Much quicker.  If that doesn't find anything then try
> >> find, but
> >> with huge disks searching everywhere would take, well, a while.
> >>
> >> --Alex
> >>
> >
> > this is true and a good tip. it is quicker. however, xorg.conf could
> > have been created before his locate database was recomputed to include
> > it. figured i'd cover all his bases.
> >
>
>Even quicker method (as compared to refreshing a locate database)
> for searching for a .conf file...
>
> find /usr/local/etc /etc -name "BLAH.conf"
>
>One should know that almost all conf files are located in /usr/local/
> etc or /etc in FreeBSD.
> -Garrett

one should also know that after executing "Xorg -configure", the
generated conf file is in /root and not in either /usr/local/etc or
/etc - it is manually copied to /etc/X11 later.

so find /usr/local/etc /etc -name "BLAH.conf" is quicker, but will miss the file
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: xorg.conf

2005-11-10 Thread Alex Kelly
On 11/10/05, Alex Zbyslaw <[EMAIL PROTECTED]> wrote:
> Alex Kelly wrote:
>
> >if you're just interested in seeing if it's there, try this:
> >
> >find / -name "xorg.conf"
> >
> >
> Try:
>
>locate xorg.conf
>
> first.  Much quicker.  If that doesn't find anything then try find, but
> with huge disks searching everywhere would take, well, a while.
>
> --Alex

this is true and a good tip. it is quicker. however, xorg.conf could
have been created before his locate database was recomputed to include
it. figured i'd cover all his bases.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: xorg.conf

2005-11-10 Thread Alex Kelly
if you're just interested in seeing if it's there, try this:

find / -name "xorg.conf"

if nothing comes up, the following may be helpful:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x-config.html

On 09 Nov 2005 15:30:03 -0500, Lowell Gilbert
<[EMAIL PROTECTED]> wrote:
> eoghan <[EMAIL PROTECTED]> writes:
>
> > Im trying to find my xorg.conf :)
> > Ive looked in:
> > /usr/X11R6/
> > /usr/X11R6/etc/X11/
> > /etc/X11 (which is empty)
> > Im using kde 3.4.3 with freeBSD-5.4.
> > I realise it could be called XF86Config but I cant locate that either...
> > Any clues?
>
> It isn't actually required to have one.
> Check the log file (probably /var/log/Xorg.0.log),
> and see what *it* thinks it's using.
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Kernel build failed in/usr/src/sys/modules/i2c/controllers/viapm

2005-11-10 Thread Alex Kelly
I learned to use diff recently, so that I could submit a patch with a
pr. It's handy.

On 11/9/05, Steve Bertrand <[EMAIL PROTECTED]> wrote:
>
> > > > While compiling a fresh kernel for a 5.4 system cvsup-ed as
> > > per today
> > > > the build process ran into a stop with the exact messages below.
> > > > Please note that "make buildworld" completed without any
> > > errors only
> > > > "make buildkernel kernconf=EJ-SMP" died.
> > > >
> > > > Also tried to cleanup everything (i.e. remove /usr/obj/*
> > as per the
> > > > Handbook) and starting a fresh "make buildworld" followed
> > by "make
> > > > buildkernel" but the errors remained.
> > >
> > > My email from earlier with the subject:
> > >
> > > "viapm module failing during buildkernel"
> > >
> > > will confirm that this is two of us experiencing the EXACT
> > same issue.
> > >
> > > I haven't found a workaround yet. My next try will be disabling SMP
> > > support. I'll let you know if this works or not. Otherwise,
> > I'm on the
> > > hunt for how to disable building of this module.
> >
> > Here is what I am trying now (please disregard wrap).
> >
> > # rm -rvf
> > /usr/obj/usr/src/sys/SQL/modules/usr/src/sys/modules/i2c/contr
> > ollers/via
> > pm
> >
> > # cd /usr/src/sys/modules/i2c/controllers
> > # mv viapm /home/steve/usr.src.sys.modules.i2c.controllers.viapm
> >
> > # ee Makefile
> > ...then I deleted the viapm entry under SUBDIR, and saved the file
> >
> > # cd /usr/src
> > # make buildkernel
> >
> > I know that moving the directory was probably redundant, but
> > nonetheless...it's running now. I'll post back with findings.
>
> After doing the above:
>
> --
> >>> Kernel build for SQL completed on Wed Nov  9 11:47:15 EST 2005
> --
>
> [1]Done  make buildkernel KERNCONF=SQL
>
> ..now, I am going to install it. However, this is going to be a great
> time for me to get more familiar with diff, and compare source from
> previous version to find out what exactly broke.
>
> Steve
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


C / C++

2003-11-11 Thread Alex Kelly
Whoever mentioned the "holy war" may have been on to something. ;-)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Newbie: The C / C++ Issue

2003-11-11 Thread Alex Kelly
Thanks for all of the great suggestions to my previous question!

Yet, the responses have led me to another question. If C++ is newer and more advanced 
than C, will it replace C? If so, should I learn C++ and forget C?

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


Re: Another Newbie Question: C or C++

2003-11-10 Thread Alex Kelly
- Original Message - 
From: "Jerry McAllister" <[EMAIL PROTECTED]>
To: "Alex Kelly" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, November 10, 2003 6:14 PM
Subject: Re: Another Newbie Question: C or C++


> >
> > I need to buy a book on C or C++ to help me in FreeBSD.
> > Which would be better to buy?
>
> This doesn't answer your C++ part of the question, but you should have
> the Kernighan & Ritchie "The C Programming Language" and then
> get something like "C A Reference Manual"  (Latest edition is 5th I think)
> by Harbison and Steele.After that you might look at "C Programming
FAQs"
> by Steve Summit.

Thanks, Jerry.
So, it sounds like I should probably tackle C before C++.
By the way, I saw the first two books you mentioned in Borders Book Store
today while on my lunch break. They must be fairly popular.

> >
> > I first thought a book on C would be best, because the OS is written in
C. But, now I'm not sure because I read that gcc can compile C++ too (so,
I'm assuming C++ must get used too).
> >
> > Does it even matter?
> >
> > Suggestions?
> > ___
> > [EMAIL PROTECTED] mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to
"[EMAIL PROTECTED]"
> >
> >
>
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"[EMAIL PROTECTED]"
>

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


Another Newbie Question: C or C++

2003-11-10 Thread Alex Kelly
I need to buy a book on C or C++ to help me in FreeBSD. Which would be better to buy?

I first thought a book on C would be best, because the OS is written in C. But, now 
I'm not sure because I read that gcc can compile C++ too (so, I'm assuming C++ must 
get used too).

Does it even matter?

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


Re: Newbie USB Printer Problem

2003-11-09 Thread Alex Kelly
Thanks, Chris.

I'll make the change and hopefully I'll be able to pin down the problem to
something more specific.

>In cupsd.conf chage the logging level to debug, and run 'tail -f /var/log/
>cups/error_log' -- probably something very trivial.


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


Re: Newbie USB Printer Problem

2003-11-09 Thread Alex Kelly
Hi, Warren, thanks for writing.

I did both of those of the suggestions, but still nothing. :(

I tried CUPS also. After installation and configuration of CUPS, cupsd ran
fine. But, when it attempted to print anything, the print attempts were
listed as "cancelled" in the list of web-based print jobs (I did it through
konqueror at localhost:631).

I'm going to keep trying. :)

- Original Message - 
From: "Warren Block" <[EMAIL PROTECTED]>
To: "Alex Kelly" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, November 08, 2003 11:02 PM
Subject: Re: Newbie USB Printer Problem


> On Sat, 8 Nov 2003, Alex Kelly wrote:
>
> > I cannot get my HP Deskjet 3420 printer to work. I've read all the prior
posts
> > for USB printers, checked the handbook and the complete freebsd book.
After
> > doing so, I've come up with this...
> >
> > I edited printcap in /etc to look like this:
> > lp|ps|local hp deskjet 3420:\
> >
:lp=/dev/ulpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:sh:mx#0:\
> > :if=/usr/local/libexec/magicfilter/deskjet-filter:
>
> Did you create the /var/spool/output/lpd directory?  Actually, you
> should probably create one with the same name as the printer, since lpd
> doesn't want to share directories between multiple printers.
>
> > I issued this command to test the printer:
> > lptest > /dev/ulpt0
> >
> > The printer did nothing.
> >
> > Any suggestions?
>
> That's a separate issue, since 'lptest > /dev/ulpt0' doesn't go anywhere
> near lpd.  Some HP printers will flash an LED when they are receiving
> data, so you could look for that.  Or it might be that the printer won't
> print anything until it gets a form feed, so you could send it one
> afterwards:
>
> perl -e 'print chr(12)' > /dev/ulpt0
>
> -Warren Block * Rapid City, South Dakota USA
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"[EMAIL PROTECTED]"

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


Re: Newbie USB Printer Problem

2003-11-08 Thread Alex Kelly
No particular reason I tried lpd.
I'll try CUPS and see what happens.

On Saturday 08 November 2003 07:53 pm, Chris Howells wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hi,
>
> On Sunday 09 November 2003 00:44, Alex Kelly wrote:
> > I cannot get my HP Deskjet 3420 printer to work. I've read all the prior
> > posts for USB printers, checked the handbook and the complete freebsd
> > book. After doing so, I've come up with this...
>
> Any particular reason to use lpd? Without trying to start a holy war, I
> personally much prefer CUPS, it's far easier to configure (just go to
> http:// localhost:631), and combined with the hpijs port works perfectly
> without any messing about with my HP DeskJet 3820.
>
> - --
> Cheers, Chris Howells -- [EMAIL PROTECTED], [EMAIL PROTECTED]
> Web: http://chrishowells.co.uk, PGP ID: 0x33795A2C
> KDE/Qt/C++/PHP Developer: http://www.kde.org
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.2.3 (FreeBSD)
>
> iD8DBQE/rZAuF8Iu1zN5WiwRAngLAJ9hxLEXzt7u1uB8CVcWOstoj55jVACgo72i
> GYt92JSaSJk1jGWO6Hwv+II=
> =sQWS
> -END PGP SIGNATURE-
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"

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


Newbie USB Printer Problem

2003-11-08 Thread Alex Kelly
I cannot get my HP Deskjet 3420 printer to work. I've read all the prior posts 
for USB printers, checked the handbook and the complete freebsd book. After 
doing so, I've come up with this...

The kernel found the printer (dmesg):
ulpt0: hp deskjet 3420, rev 2.00/1.00, addr 2, iclass 7/1
ulpt0: using bi-directional mode

I edited printcap in /etc to look like this:
lp|ps|local hp deskjet 3420:\
:lp=/dev/ulpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:sh:mx#0:\
:if=/usr/local/libexec/magicfilter/deskjet-filter:

I added the line lpd_enable="YES" to rd.conf in /etc

I rebooted. lpd started properly and shows up under top and ps

I issued this command to test the printer:
lptest > /dev/ulpt0

The printer did nothing.

Any suggestions?

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


Virtual Sound Channels

2003-11-08 Thread Alex Kelly
Is there a way I can make these commands run at boot time:

# sysctl hw.snd.pcm0.vchans=4
# sysctl hw.snd.maxautovchans=4

Rather than enter them in each time I want to use xmms in kde? I guess aRTs 
hogs psm0.

Thanks.

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