Re: Recommended Mail Transfer Agent

2005-01-02 Thread Adam Fabian
On Sun, Jan 02, 2005 at 02:20:51PM -0600, Michael Madden wrote:
 have noticed sendmail is the default MTA, but I have no sendmail
 experience.  Also I know historically sendmail has had some serious
 security issues.

sendmail is also bundled with OpenBSD, which is proactively rabid about
security.  Considering sendmail's track record, the OpenBSD FAQ says
something to the effect that the maintainers of sendmail are responsive
to security issues, unlike many projects, and the code now appears to be
as secure as anything else out there.

Configuration is pretty easy with the m4 macros, and sendmail still
amounts to something of a de-facto standard.  
-- 
Adam Fabian ([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: Programming with Bourne or C shell

2004-12-31 Thread Adam Fabian
On Fri, Dec 31, 2004 at 09:20:22PM -0600, Michael Madden wrote:
 http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/

 Are most FreeBSD users still using csh or tcsh has their interactive
 shell and sh for programming?  I think it would be nice to use the
 same interactive and programming shell for consistency.

It's been my impression (in other words, this is all speculation based
on my statistically-insignificant interaction with other FreeBSD
users, reading the mailing list, etc.) that most FreeBSD users have
Bourne shells (bash, ksh93, pdksh) for interactive use and scripting.
Old-school users occasionally use tcsh for interactive use, and almost
no one scripts anything with csh/tcsh.

I wouldn't read too much into the defaults of any program.  Lots of
good UNIX programs have relatively poor defaults, in my experience.
In any case, you will always have some Bourne-based shell on anything
vaguely UNIX-ish, but may not have a csh-based shell.
-- 
Adam Fabian ([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: Is mplayer port broken ?

2004-12-30 Thread Adam Fabian
On Thu, Dec 30, 2004 at 09:44:33PM +0100, Xinizul Xinizul wrote:
 Hello all:
 
 I'm trying to make the port mplayer using make install clean
 mechanism in my FreeBSD 5.3
 
 I get the following message:
 
 
 fetch: 
 ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/mplayer/Blue-1.4.tar.bz2:
 size mismatch: expected 221757, actual 221736
  Couldn't fetch it - please try to retrieve this
  port manually into /usr/ports/distfiles/mplayer and try again.
 *** Error code 1
 
 Could someone help me to workaround this or to notify to the
 maintainer about this issue ?
 

You can download the file manually from the MPlayer site and verify
any checksum for yourself.  If you're convinced the file is good and
that there's a mistake in the port, define NO_CHECKSUM so that the
checksum verification is skipped.

-- 
Adam Fabian ([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: urgent help

2004-12-30 Thread Adam Fabian
On Mon, Dec 27, 2004 at 04:17:38AM -0500, kalin mintchev wrote:

 the machine would come up. then netsat or ping or ssh will crash it...
 the first time i had to add the sshd user and group...

crash is about as helpful as it's broken!.  Are core files
generated?  Are there any error messages?  Does the machine
instantaneously reboot?  Hard-freeze?  You also might want to try
running the programs under a debugger.

4.6 to 4.10 is a pretty big jump.  Altogether, it'd probably be best
to tar up your configuration files, clean-install 4.10 (or 5.3 for
that matter) and manually merge your changes in, consulting any
documentation available for the 4.6 - 4.7, 4.7 - 4.8, 4.8 - 4.9,
and 4.9 - 4.10 upgrades to make sure you get your config files
updated properly.

-- 
Adam Fabian ([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: Upgrade to 5.3-STABLE broke X?

2004-12-29 Thread Adam Fabian
On Tue, Dec 28, 2004 at 12:57:24PM +1100, Dave Horsfall wrote:

 Obscure error messages:

 I note that Xorg went from 6.7.0 to 6.8.1, and I poked around

I upgraded from 6.7.0 to 6.8.1 and also got obscure (but different)
error messages.  The 5.3 packages on FreeBSD's FTP servers are 6.7.0.
After looking a bit and not really finding a solution to my problem, I
just downloaded the binary packages and downgraded back to 6.7.0.
(This is probably a lot easier than compiling, since you'd probably
have to use portdowngrade on a lot of ports, or do it manually, or
some such.)

 What do I do now?  Reinstall FreeBSD?  Install XFree86 instead?
 Somehow downgrade to 6.7.0 until wiki.x.org gets its act together?

Newer isn't always better... and it *is* X.  It's been the same X11R6
for years. ;)

-- 
Adam Fabian ([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: Dual boot WinXP and FreeBSD 5.3

2004-12-29 Thread Adam Fabian
On Mon, Dec 27, 2004 at 04:44:28PM -0700, Tom Connolly wrote:
 Hello list.  I wish to put FreeBSD 5.3 on a new hard drive and have it
 dual boot with the existing Windows XP system (separate HD).  Can I just
 simply go through the FreeBSD install and have it install the FreeBSD
 boot manager/loader on the XP drive?  I can't risk doing any damage to
 the XP system as it has a thermal analyzer program on it that won't run

If you try to set up dual-boot, you're risking doing damage to the XP
system.  In any case whatsoever.  If you're inexperienced, the risk is
actually pretty high.  

 on FreeBSD (otherwise I would have no use for XP at all).  I would like
 to know if there are any gotchas or anything that could be a problem.
 I would really like to hear comments from anyone who has set up such a
 system.

Utilities from the DOS/Windows world are frequently stupid and make
stupid assumptions, like you only have one big, primary partition and
you run one operating system, and might be hazy about telling you
which partition and disk they're going to act on.  (And it will always
be the one you don't want it to.)  Even if you're using UNIX
utilities, 0-9 and a-z are very susceptible to one letter off typos;
if you don't have a full disk image, or are not willing to reinstall
everything on the system from scratch, do not even try to make a
dual-boot system.  The whole process is a gotcha; the architecture
wasn't designed with dual-boot in mind.

I found the GAG boot manager to be pretty easy and intuitive.
-- 
Adam Fabian ([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: cannot mount cdrom - not a newbie problem

2004-12-14 Thread Adam Fabian
On Wed, Dec 15, 2004 at 09:43:49AM +1000, Timothy Smith wrote:

 is there a way i can delete /dev/acd0* and remake the device, could
 this be a fix?

I believe that mknod would be used to do such a thing; but don't ask
me how, I've never had to do it.
-- 
Adam Fabian ([EMAIL PROTECTED])
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Reasonable Hyperterminal alternative?

2004-12-10 Thread Adam Fabian
On Sat, Dec 11, 2004 at 12:15:38AM +, Colin J. Raven wrote:
 I'm seeking a reasonable alternative to WinXP/2000 Hyperterminal as
 a console application (for serial port access to a no-graphics card
 box).

I tried using HyperTerminal to access the serial console of my OpenBSD
router.  It locked up on just about anything higher that 9600 when
switching from the bootloader to the rest of the system.  I ended up
using TeraTerm, which is free, and worked adequately.

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


/usr/X11R6/include/X11 needed but not found during port builds

2004-12-06 Thread Adam Fabian
My ports aren't finding the files in /usr/X11R6/include when they are
needed.  (I may be making an overly-sweeping generalization; both
mozilla and firefox apparently failed for this reason)

That's my problem, in a nutshell.  I tend to run make under a clean
environment, since I've found stuff like CDPATH breaks things.  Here's
the sort of environment the port makes run under:

HOME=/home/afabian
PS1='$ '
OPTIND=1
PS2=' '
TERM=dumb
PPID=71625
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
IFS='   
'

Here's /etc/make.conf:

PERL_VER=5.8.5
PERL_VERSION=5.8.5
PERL_ARCH=mach
NOPERL=yo
NO_PERL=yo
NO_PERL_WRAPPER=

I can tweak this to work with a symbolic link, (ln -s
/usr/X11R6/include/X11 /usr/include/X11) but I
can't figure out why it's suddenly broken when it used to work.  

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


Re: /usr/X11R6/include/X11 needed but not found during port builds

2004-12-06 Thread Adam Fabian
On Mon, Dec 06, 2004 at 07:43:30PM -0600, Adam Fabian wrote:
 My ports aren't finding the files in /usr/X11R6/include when they are

That should be /usr/X11R6/include/X11.  Sorry.

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


Re: cdrom mounting troubles

2004-12-05 Thread Adam Fabian
On Sun, Dec 05, 2004 at 11:38:21AM -0700, Trysch wrote:
 however if i put in a regular cd to just listen to not an mp3 disk is
 tells me its an incorrect super block

Audio CDs do not have a filesystem and cannot be mounted.  They can,
however, be read and played with an appropriate program.
-- 
Adam Fabian ([EMAIL PROTECTED])
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD or OpenBSD

2004-12-05 Thread Adam Fabian
On Sun, Dec 05, 2004 at 12:47:08PM -0900, Damien Hull wrote:

 1. OpenBSD has good security
 2. Stable
 3. Firewall and routing support is built in
 
 Why I use FreeBSD
 1. Stable
 2. Ports tree has a lot of software
 3. I can upgrade to new versions 
 
 Should I make the switch from FreeBSD to OpenBSD for my servers?

DISCLAIMER:  The question borders on flame-bait, and everything that
follows here is my completely subjective opinion; it's here for anyone
that finds it useful, may contain errors, and is based completely on
my statistically insignificant experience using both systems.  I'm
not going to advocate one over the other, and I'm not interested in
debating the subject.  With that said...

FreeBSD has excellent security.  OpenBSD has proactively rabid security.
(Which I don't mean to sound derogatory at all; sometimes it's what's
called for.)  That being said, your administration of the system is, in
all likelihood, going to be a much larger factor than choosing OpenBSD
or FreeBSD.

Typically, servers only have a few packages and it's not very hard to
simply download and compile the software yourself.  To me, that mostly
negates the advantage of FreeBSD's larger ports tree for a server.
OpenBSD has just about every major package you'd expect to use on a
server, also.  There's also NetBSD's pkgsrc, which a release of will
probably work for typical major server packages for either operating
system.

FreeBSD has imported OpenBSD's packet filter in 5.3.  On a stock install
of FreeBSD, you can kldload pf and start using it.  Like security,
excellent networking is a *BSD speciality, and either OS is likely going
to satisfy all of your networking needs.  I'd say this is another no-go
for the list of criteria that actually matter.

Here's my opinion of how these OS'es compare for a server.  This is all
purely subjective and based on my statistically insignificant experience
with both OS'es.

FreeBSD superior to OpenBSD:
   Speed (subjectively, FreeBSD is much faster)
   Documentation
   More 3rd party support (freshports.org, freebsd-update,
 freebsd-diary)
   Ports tree
   UFS2 (background fsck)
   Fewer bugs (random, very minor stuff, like terminal emulation; 
 can't remember any gross bugs in OpenBSD or anything like that)
   2 year life on extended branches (compared to 1 year for an OpenBSD
 release)
   Source upgrades (OpenBSD offers no official support for the
 procedure, though it may well work.)
   Better x86 hardware support
   portaudit

OpenBSD superior to FreeBSD:
   Security
   Multi-platform support
   GENERIC kernel supports just about everything
   Ports tree has neat, easy to use flavors feature
   Ports tree tied to particular version (almost no broken ports,
  ever)
   Encouraged use of binary packages
   Stringent adherence to license ideology (replace everything
  possible with BSD licensed equivalents, NDA's never acceptable,
  etc.)
   ksh shell in base system with nice tab-completion by default
   Better marketing (t-shirts, posters)
   Man pages are absolutely the canonical reference for the system 
  (very high priority)
   ProPolice stack-smashing protection in the system compiler
   
In a lot of ways, FreeBSD has the profile on an operating system with
a larger user-base, and OpenBSD has the profile of an operating system
more directed by a single man. (Theo da Raadt.)  Each has advantages
and disadvantages.  FreeBSD has broader support, and OpenBSD has more
focus.  Theo has an inclination to make things simple for the users and
stop them from shooting themselves in the feet, proverbially speaking,
and keeping things secure, simple, stable, and working.  Things like
tweaking compiler options and tripping over your own feet to get your
hands on the latest version of some piece of software are generally
frowned on.  In my experience, the OpenBSD community is much less
tolerant of people who do not read the manuals and ask stupid questions.
(Which I don't consider a bad thing.)  FreeBSD has bigger 3rd party
support, and fewer bugs simply because there are more people trying more
potentially bug-revealing combinations of hardware and software and more
people around to fix them.

While you're exploring BSD's, don't forget NetBSD, which makes the
comparison yet-more-complicated. ;) Unless you place a really high
priority on something, like license-purity, this is largely a question
of what you like.  And it's hard to say without trying them all.  I've
spent a lot of time with FreeBSD, OpenBSD, and NetBSD, and in the end,
it's all really a matter of taste.

Use them both for a while and see what you like.
-- 
Adam Fabian ([EMAIL PROTECTED])
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD or OpenBSD

2004-12-05 Thread Adam Fabian
Oops.  Meant to move the statisically thing up to the disclaimer, but
didn't end up deleting it in the second location.  Ah well, you
probably understood despite the poor editing. ;)
-- 
Adam Fabian ([EMAIL PROTECTED])
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


firefox port fails to build.

2004-12-05 Thread Adam Fabian
I tried checking the automatic builds at pointyhat for an error,
Googling for the error message, and checking the bug reports, but I
didn't turn up much on this.  I'm trying to upgrade Firefox on FreeBSD
5.3 to the latest version from the ports.  The build of the port fails
with this error:

gmake[2]: Entering directory
`/usr/ports/www/firefox/work/mozilla/config/mkdepen
d'
cppsetup.c
cc -o host_cppsetup.o -c -O -pipe   -DXP_UNIX -O
-DINCLUDEDIR=\/usr/include\ -
DOBJSUFFIX=\.o\ -DPREINCDIR=\include\
-I../../dist/include/mkdepend -I../.
./dist/include -I/usr/ports/www/firefox/work/mozilla/dist/include/nspr
-I/usr/l
ocal/include -I/usr/local/include
-I/usr/ports/www/firefox/work/mozilla/dist/in
clude/nspr  cppsetup.c
In file included from cppsetup.c:29:
def.h:30:21: X11/Xos.h: No such file or directory
def.h:31:28: X11/Xfuncproto.h: No such file or directory
gmake[2]: *** [host_cppsetup.o] Error 1
gmake[2]: Leaving directory
`/usr/ports/www/firefox/work/mozilla/config/mkdepend
'
gmake[1]: *** [export] Error 2
gmake[1]: Leaving directory
`/usr/ports/www/firefox/work/mozilla/config'
gmake: *** [default] Error 2
*** Error code 2

Stop in /usr/ports/www/firefox.

portupgrade comes up with this:

** Listing the failed packages (*:skipped / !:failed)
! www/firefox (firefox-0.9.3_1) (X libraries missing)

I don't know if it's xorg related, but here are the xorg ports
installed on my system:

xorg-clients-6.7.0_4
xorg-documents-6.7.0
xorg-fonts-100dpi-6.7.0
xorg-fonts-75dpi-6.7.0
xorg-fonts-cyrillic-6.7.0
xorg-fonts-encodings-6.7.0
xorg-fonts-miscbitmaps-6.7.0
xorg-fonts-truetype-6.7.0
xorg-fonts-type1-6.7.0
xorg-fontserver-6.7.0
xorg-libraries-6.7.0_2
xorg-manpages-6.7.0
xorg-nestserver-6.7.0
xorg-printserver-6.7.0
xorg-server-6.7.0_9
xorg-vfbserver-6.7.0

Anyone know what my problem might be? 

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


Re: ftp login/password

2004-11-29 Thread Adam Fabian
On Mon, Nov 29, 2004 at 06:27:52PM -0800, j p wrote:
 i'm trying to download freebsd via ftp. what is the login and
 password. how do i copy the files

FreeBSD is available via anonymous FTP.  That means that you use the
login anonymous and your email address as a password.

There's a list of FTP mirrors at:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mirrors-ftp.html

You copy the files via whatever method your FTP client supports.
Typically, a modern web-browser can handle an ftp:// URI and you can
drag-and-drop the files.  But you didn't even mention what platform
you're using.

Incidentally, there's a lot of stuff on the FTP site, and you're not
going to know what to download without consulting further resources.
The FreeBSD handbook is a good place to dive in.

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


Re: Dear freebsd problem!

2004-11-28 Thread Adam Fabian
On Sun, Nov 28, 2004 at 07:52:13PM -0500, Rameez wrote:

 Dear freebsd organization i downladed freebsd 5.3 legacy and

4.10 is a legacy release.  5.3 is not.

 all 4 discs i got there iso names are diferent indedd but when
 u burn them they all ahve same name except the boot disk whcih

They are not exactly the same length.  I've never looked, but I'll
take your word for it when you say they aren't labelled after burning.
So, compare the number of bytes used on the disk to an ISO image size
and you'll see which is which, then you can label them.  miniinst
contains just enough to install FreeBSD, the first ISO contains
FreeBSD and some packages (a complete superset of the miniinst), and
the second CD is a bootable live CD.  Off of the top of my head, I
don't know what 4th ISO is in thi directory without checking the FTP
site.

This is probably all documented in the FreeBSD handbook, which you
should read the installation section of from FreeBSD's website.
-- 
Adam Fabian ([EMAIL PROTECTED])
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Remembering defines for port upgrades.

2004-11-27 Thread Adam Fabian
I've been sticking options like WITHOUT_TTF_BYTECODE_ENABLED=yes (for
freetype2) in /etc/make.conf.  It's been working, for the actual
building of the port.  The downshot is that it seems to drive the
package tools nuts. (portupgrade makes strange errors, make index
fails).  Is there any other/better way to remember build options so
that I don't have to remember them every time I build a port?

It's also possible that I've confused legitimate, tuneable knobs with
some kinds of reserved variables.  The suspect ones are USE_X11,
USE_ATHENA (but I specifically remember using that one for vim), and
USE_OPENSSL.

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


Re: Running commands at startup

2004-11-26 Thread Adam Fabian
On Fri, Nov 26, 2004 at 12:04:14PM +, Danny Browne wrote:

 This will probobly seem like such a basic question, but where can do i
 put commands i want to run at startup.

 freeBSD 4.10

 i want to run (for example)

 alias 'ls=ls -G' alias 'vi=vim' alias 'shutdown=shutdown -h now'
 etc...

This is typically a function of your shell, unless you want to do it
on a system-wide basis.  (A little while ago, I was trying to figure
out how to change the environment that processes inheirit from init on
FreeBSD but didn't have much luck.)  csh and derivatives tend to use
.login and .cshrc, sh and derivatives tend to use .profile and .shrc.


 Also, i am running fluxbox, but my mouse is very slow when it starts
 up. at the moment i have to enter xset m 5/1 in the terminal to speed it
 up. How can i get fluxbox do do this at startup?

Put the command in your .xinitrc if you're using a display manager,
and your .Xsession (I think) if you're not.  (It will be X that
executes the command, not fluxbox.)

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


Re: shell programming challenge

2004-11-26 Thread Adam Fabian
On Fri, Nov 26, 2004 at 09:15:11AM -0700, Don Wilde wrote:
 
 
 If you have the option to modify it, ensure that your script exits via 
 exec sh. Alternatively a wrapper that does this is straightforward to 
 build.
 
 It's looking more and more that I need to make a temporary file that 
 packages both the init file and the program command line (eval 
 blah...) before running. These will not be just shell scripts, they 
 will be tool programs and x applications. Didn't want to do that because 
 of the risk of leaving junk in /tmp.

It's really socially-acceptable to leave junk in /tmp.  /tmp is a
volatile dumping ground with no guarantee of file suvival for any
length of time, that may even be cleaned on reboot.

I played with this for a while, and I have a suspicion that maybe you
could use /dev/fd/3 and start bash with something like --rc-file
/dev/fd/3 and not close tha standard input, but it's not possible, or
I couldn't quite pull it off.  (I suspect the latter.)

The only other option I can think of involves a temporary file of
sorts, too.  You could use a FIFO, and then the contents of the
temporary file wouldn't be left on the disk, but you'd still have
the FIFO to deal with.

You may also be trying to do something complex enough that it's just
more trouble than it's worth to do it with shell programming.

Anyway, good luck.

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


Re: Xorg/Modes issue

2004-11-25 Thread Adam Fabian
Looking at (and/or posting) /var/log/Xorg.0.log could be very
enlightening.

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


Re: Xorg/Modes issue

2004-11-25 Thread Adam Fabian
 (II) I810(0): Not using mode 1280x1024 (no mode of this name)

[EMAIL PROTECTED] looks like it might be the name of a mode.  Otherwise,
you could just write a modeline that does what you want.
-- 
Adam Fabian ([EMAIL PROTECTED])
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: shell programming challenge

2004-11-25 Thread Adam Fabian
On Thu, Nov 25, 2004 at 10:26:38AM -0700, Don Wilde wrote:
 Hey, folks -
 
 I need to find a way to kick off an xterm running BASH and then execute 
 a program within that xterm, but NOT close the new xterm after the 
 program finishes. Another desirable thing would be to also be able to 
 'source in' a file of shell environment that would affect the new window 
  and shell.

bash --rc-file \
file_that_contains_the_environment_i_want_and_the_command_i_want_to_run

If you mean that you want the xterm to continue running the same
instance of bash.  I don't think xterms run without the benefit of a
program to emulate a terminal for.
-- 
Adam Fabian ([EMAIL PROTECTED])
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: shell programming challenge

2004-11-25 Thread Adam Fabian
On Thu, Nov 25, 2004 at 10:26:38AM -0700, Don Wilde wrote:

 completion of ticktock or INT. I also do not seem to be able to use the 
 --rcfile switch as a bash option, although I can add KEY=VALUE pairs 
 before the xterm launch.

Oops.  Didn't notice this until after I replied, but I did test the
--rcfile to see if it would work, and it worked like I expected and
you described.  For reference, it worked for me under FreeBSD 5.3 with
bash 2.05b, which I believe was installed from FreeBSD's binary
packages for 5.3
-- 
Adam Fabian ([EMAIL PROTECTED])
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Is this a sign of memory going bad?

2004-11-25 Thread Adam Fabian
On Thu, Nov 25, 2004 at 08:16:23PM +, Jonathon McKitrick wrote:
 Is this bad memory?

If you're not getting the same error every time, it's almost certainly
bad hardware, and memory is the most likely candidate.
-- 
Adam Fabian ([EMAIL PROTECTED])
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: shell programming challenge

2004-11-25 Thread Adam Fabian
It's possible to generate temporary files in a secure manner; there's
probably something in the ports collection to generate good, random
file names.  I'm not sure I'd go to so much trouble to avoid using
a file for --init-file or --rc-file.

That aside, you could try using expect to script the bash session.

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


Re: OT: Trying to learn C -- some questions

2004-11-25 Thread Adam Fabian
On Thu, Nov 25, 2004 at 07:38:10PM -0500, Tom Parquette wrote:

 1) gcc complains that conio.h was not found.  If I comment out the 
 #include, the program compiles.  Is this a DOSism or something else?

Yes, it is.

 2) fprintf is described with stdprn being valid for a default printer. 
 This does not seem to be valid in, at least, the FreeBSD world.  man 
 fprintf did not really help.  I believe I have to create a stream for 
 the print but I'm not clear on how to do it.

I don't remember DOS having any concept of a default printer, and a
vague recollection of stdprn actually being something more like UNIX's
stdout.  But I could be misremembering.

 3) gets() is used in a number of places.  Using this gets me:
 /var/tmp//cciWrf9n.o(.text+0x20d): In function `get_data':
 : warning: warning: this program uses gets(), which is unsafe.
 I looked at the man page and found fgets.  I do not understand from the 
 fgets man page how I'm supposed to code this.  I've tried a number of 
 things along the lines of
 fgets(rec.fname,sizeof(rec.fname));
 but gcc does not like anything I've tried.  It keeps telling me I have 
 too few arguments fo function `fgets'  Help!

fgets take three parameters, and I only see two there.  It looks like
you need fgets(rec.fname,sizeof(rec.fname),stdin) or something of the
like.  gets() is vulnerable to buffer-overflows, but if you're just
writing some quick, throw-away programs, it doesn't really matter.  On
the other hand, no reason not to get used to doing something more
correct.

 4) A couple of the home work assignments use getch().  I figured out 
 from the getch man page that I needed #include curses.h but that 
 changes the errors to:
 /var/tmp//cc1GEzyG.o(.text+0x6a): In function `main':
 : undefined reference to `stdscr'
 /var/tmp//cc1GEzyG.o(.text+0x6f): In function `main':
 : undefined reference to `wgetch'
 I do not know what header file I should be including.
 Or is there something else I'm not understanding?

I believe you will need -lcurses in your gcc command to link against
the curses library.  The headers declare the functions, but the actual
machine code has to come from the library.

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


[OT] Re: Is this a sign of memory going bad?

2004-11-25 Thread Adam Fabian
Does parity RAM reliably report on it's reliability?

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


Re: Why can't I mount a Video CD in FreeBSD??

2004-11-24 Thread Adam Fabian
On Wed, Nov 24, 2004 at 05:40:09PM -0800, Mark Jayson Alvarez wrote:
 Good day!
I'm getting an error whenever I mount a video cd. I
 can't remember the error right now because I already
 brought it back to the rental shop (its already
 overdue). I was also told by my friend that he too
 can't mount a video cd in his linux box. Do you happen
 to know why?

A video CD does not have a filesystem, therefore it can't be mounted.
You may be able to play it with the appropriate program, or extract
the video data to files.

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


Re: Question about old FreeBSD versions

2004-11-23 Thread Adam Fabian
On Tue, Nov 23, 2004 at 03:47:23PM -0800, Peter Trinh wrote:
I am working on some FreeBSD driver code that was written a few
years back for FreeBSD 4.3. I already downloaded and installed 4.10
(using FTP ISO image), but there have been so many changes in the
kernel between the 4.3 and 4.10. As a result, I've had a lot of
problems compiling the driver.

As others have mentioned, you can check out arbitrary revisions with
CVS.  You should probably check out RELENG_4_3, which is 4.3 with all
of fixes that were ever applied to it.  But, of course, 4.3 is no
longer supported, and there are probably known vulnerabilities, so
it's probably not a good idea to actually run FreeBSD 4.3.
-- 
Adam Fabian ([EMAIL PROTECTED])


pgpYp7Kzv7lgR.pgp
Description: PGP signature


Re: XFree86 cut the screen

2004-11-22 Thread Adam Fabian
On Mon, Nov 22, 2004 at 11:41:36PM +, Dude Dude wrote:
 I've freebsd running in a box with 5.3, and when i startx, the X gives a 
 big black margin, and cut my 17 screen.
 Only the default window manager dont do that, what i can do ??

Sounds like X could just be drawing the screen incorrectly for your
monitor.  That's inconsistent with the window manager having an effect
on the phenomenon, though, so I could be way off base here, but I'm
going to suggest that you try xvidtune and stretch your screen until
it looks right.  Afterwards, you can take the numbers shown by
xvidtune and make an XFree86 modeline out of them if you need to.
-- 
Adam Fabian ([EMAIL PROTECTED])


pgpnSH8hVudzv.pgp
Description: PGP signature


Re: Sysinstall - why two different programs in 5.3 RELEASE?

2004-11-22 Thread Adam Fabian
On Mon, Nov 22, 2004 at 07:12:04PM -0800, Jay O'Brien wrote:
 However, the FreeBSD Handbook says to type /stand/sysinstall:
 I find the following files are present:
 
  403488 Nov 4 17:27 /usr/sbin/sysinstall
 2046148 Nov 4 20:22 /stand/sysinstall
 
 When I invoke these programs, the screens that come up are 
 identical, and the functions seem to be the same. 
 
 Why are there two versions of sysinstall, one five times the 
 size of the other, and what are the differences between them 
 other than file size and time?

Everything in /stand is statically linked, which means that corrupt
libraries or libraries on an unavailable partition will not affect
their operation.  That also means they're larger.  This could be
useful if you bring the system up single-user and /usr, on a separate
partition, is corrupt or destroyed.

[EMAIL PROTECTED] /home/afabian $ ldd /stand/sysinstall
ldd: /stand/sysinstall: not a dynamic executable
[EMAIL PROTECTED] /home/afabian $ ldd /usr/sbin/sysinstall
/usr/sbin/sysinstall:
libdialog.so.4 = /usr/lib/libdialog.so.4 (0x280b9000)
libncurses.so.5 = /lib/libncurses.so.5 (0x280d2000)
libutil.so.4 = /lib/libutil.so.4 (0x28111000)
libftpio.so.5 = /usr/lib/libftpio.so.5 (0x2811d000)
libc.so.5 = /lib/libc.so.5 (0x2812200
-- 
Adam Fabian ([EMAIL PROTECTED])


pgpgYfXFg4InH.pgp
Description: PGP signature


Re: diskcopy (dd) on 5.2.1 ?

2004-04-05 Thread Adam Fabian
On Mon, Apr 05, 2004 at 02:32:37PM -0500, J.D. Bronson wrote:
 I have 2 100% identical SCSI drives on my freebsd machine..
 
 What command can I do in freebsd to 'copy' one drive to another
 completely (including the bootsectors and partition table) ?
 
 da0
 da1

dd if=/dev/rda0 of=/dev/rda1 bs=16k

seems reasonable to me.  I have a couple of identical IDE drives;
performance doesn't pick up much after 16k blocks, but 16k is many
times faster than the default of 512 bytes.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


make search name/key broken with ports directory moved

2004-04-04 Thread Adam Fabian
Since I moved my ports directory, I *think*, make search name and
make search key don't do anything.  I stuck my ports directory under
/home since /usr was getting a bit tight.  I set PORTSDIR=/home/usr/ports
in make.conf, which is where my ports tree is.  Now, make search
name and make search key don't do anything.  No error messages, no
output whatsoever, exit code of 0.

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