Re: X looks strange after restarting it

2007-10-23 Thread Coleman Kane

Pietro Cerutti wrote:

Hi list,
I don't actually know how to explain this problem in an understandable
way...
I have an external 24' Sun monitor running at 1280x800 plugged into my
laptop (1280X800).
I start X without the external monitor, I plug it in, and press the keys
combination to enable it on my laptop. Everything looks fine on it.
Then, I exit X, restart it, and some applications looks differently.
Please look at [1] and [2] for partial screenshots before and after
restarting X, at [3] for my xorg.conf and at [4] for my Xorg.0.log

Any ideas?

Thanks very much!

[1] http://www.gahr.ch/FreeBSD/misc/before.png
[2] http://www.gahr.ch/FreeBSD/misc/after.png
[3] http://www.gahr.ch/FreeBSD/misc/xorg.conf
[4] http://www.gahr.ch/FreeBSD/misc/Xorg.0.log

P.S. x11@ please CC me
  

Pietro,

I have seen this behavior typically occur when gnome-settings-daemon 
doesn't shut down properly from my previous session, before I start up 
GNOME again. In addition, this is how all of my GNOME apps look when I 
try running them without gnome-settings-daemon. I suspect that when you 
X server restarted, your apps were not able to contact 
gnome-settings-daemon over DBUS and defaulted their fonts/rendering.


Try this:
1) Start X.org again, after a fresh reboot
2) Exit X.org
3) Use ps auxww to see if there are any gnome related programs still running
4) Kill them all (a good trick I use is to log in as 'root' in another 
VT, and killall -9 -u myusername)
5) Log in as your user again and try starting X.org (and the fonts 
should look like [1])


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


user ppp and PPPoE bridging

2007-10-23 Thread freebsd

I'm attempting to change a DSL link from using PPPoE in the DSL modem
to doing PPPoE on 6.1, with the modem in bridging mode.

I've put the DSL modem in bridging mode, and it brings up the link
properly -- or at least it reports it as up (DSL led steady; modem status
report shows it as up, rfc 1483.

Using user ppp, when I attempt to establish the PPPoE connection, I
never get very far -- ppp dies when it tries to acquire carrier.  I
don't understand this, as there isn't a carrier signal to acquire on
an ethernet.  I tried disabling cd in ppp.conf but as noted in the doc,
it's required for a PPPoE connection and is forced on.

Also, how do I know know which interface it is attempting to connect to?
The debug log shows it found five interfaces, but doesn't indicate which
one it is trying to connect to.

Thanks for any clues,

Gary

  log file:  =

Oct 22 16:34:15 nightmare ppp[84336]: Phase: Using interface: tun0 Oct 22 
16:34:15 nightmare ppp[84336]: Phase: deflink: Created in closed state
Oct 22 16:34:15 nightmare ppp[84336]: tun0: Command: default: set log -timer
Oct 22 16:34:15 nightmare ppp[84336]: tun0: Command: default: ident user-ppp 
VERSION (built COMPILATIONDATE)
Oct 22 16:34:15 nightmare ppp[84336]: tun0: Command: default: set redial 15 0
Oct 22 16:34:15 nightmare ppp[84336]: tun0: Command: default: set reconnect 15 
1
Oct 22 16:34:15 nightmare ppp[84336]: tun0: Phase: PPP Started (interactive 
mode).
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: /dev/ttyp3: dial blackfoot
Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 0x282e72e0 = fopen(/etc/ppp/ppp.conf, 
r)
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: ReadSystem: Checking default 
(/etc/ppp/ppp.conf).
Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 0x282e72e0 = fopen(/etc/ppp/ppp.conf, 
r)
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: ReadSystem: Checking 
blackfoot (/etc/ppp/ppp.conf).
Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 0x282e72e0 = fopen(/etc/ppp/ppp.conf, 
r)
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: ReadSystem: Checking 
blackfoot (/etc/ppp/ppp.conf).
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set device 
PPPoE:ed1
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: disable acfcomp 
protocomp
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: deny acfcomp
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set mtu max 1492
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set mru max 1492
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: enable mssfixup
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set speed sync
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: enable lqr
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set lqrperiod 5
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set ctsrts off
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: disable ipv6cp
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set dial
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set login
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set timeout 0
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set authname 

Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: set authkey 

Oct 22 16:34:24 nightmare ppp[84336]: tun0: Command: blackfoot: add! default 
HISADDR
Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 3 = socket(17, 3, 0)
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Phase: bundle: Establish
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Phase: deflink: closed - opening
Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 0 = NgMkSockNode(, cs, ds)
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: List of netgraph node 
``ed1:'' (id 2) hooks:
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug:   Found orphans - ethernet
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: Connecting netgraph socket 
.:tun0 - [8]::tun0
Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 4 = socket(2, 2, 0)
Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 0 = ioctl(4, 3223349521, 
0xbfbfda00)
Oct 22 16:34:24 nightmare ppp[84336]: tun0: ID0: 0 = ioctl(4, 2149607696, 
0xbfbfda00)
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: Sending PPPOE_CONNECT to 
.:tun0
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: Found the following 
interfaces:
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug:  Index 1, name ep0
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug:  Index 2, name plip0
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug:  Index 3, name ed1
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug:  Index 4, name lo0
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug:  Index 5, name tun0
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Phase: deflink: Connected!
Oct 22 16:34:24 nightmare ppp[84336]: tun0: Phase: deflink: opening - dial
Oct 22 16:34:24 

Re: help in deletion part of a line

2007-10-23 Thread Benjamin M. A'Lee
On Mon, Oct 22, 2007 at 03:41:40PM -0700, Gary Kline wrote:
 
   Is there an easier way by sed or ed to remove strings 
   (caight by grep) of the sort:
 
   part5.chapter2.text-
 
   where 5 and 2 can be any integer below 10?
 
   (I know how to delete the *entire* line using ed, but not just
   the first part?

gilmour% echo testpart5.chapter2.text-test | sed 
's/part[0-9].chapter[0-9]\.text-//g' 
testtest

Modify as necessary.

-- 
Benjamin A'Lee [EMAIL PROTECTED]
http://subvert.org.uk/~bma/
The right to search for truth implies also a duty; one must not conceal
any part of what one has recognized to be true. - Albert Einstein


pgpFBKGG7xX7m.pgp
Description: PGP signature


Re: can't upgrade - catch-22

2007-10-23 Thread Byung-Hee HWANG
On Mon, 2007-10-22 at 14:14 -0600, Keith Seyffarth wrote:
 I posted this about a month ago, but haven't heard anything, so I'm
 trying again:
 
 
 When trying to re-install ruby on my system, I receive this error:
 
 On FreeBSD before 6.2 ports system unfortunately can not set default
 X11BASE by itself so please help it a bit by setting
 X11BASE=${LOCALBASE} in make.conf.
 On the other hand, if you do wish to use non-default X11BASE, please
 set variable USE_NONDEFAULT_X11BASE.
 
 However, even if I edit /etc/make.conf and add either
 X11BASE=${LOCALBASE} or X11BASE=/usr/X11R6, I still get this
 error.
 
 Any suggestions or recommendations on how to get ruby installed? I
 think once I have that installed, I should be able to get port-upgrade
 fixed and then maybe be able to get some patches downloaded... I would
 really appreciate any tips or suggestions.
 
 output of uname -a:
 FreeBSD computer.weif.net 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov
 3 09:36:13 UTC 2005
 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386

There was major change about Xorg; For more details, plase see here:
http://lists.freebsd.org/pipermail/freebsd-announce/2007-May/001131.html

I think the upgrade was/is mandatory, not optional ;;

Sincerely,

-- 
Byung-Hee HWANG * مجاهدين * InZealBomb 
What is your justice?
An eye for en eye.
-- Vito Corleone and Amerigo Bonasera, Chapter 1, page 32
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: help in deletion part of a line

2007-10-23 Thread Shantanoo Mahajan

On 23-Oct-07, at 4:11 AM, Gary Kline wrote:



Is there an easier way by sed or ed to remove strings
(caight by grep) of the sort:

part5.chapter2.text-

where 5 and 2 can be any integer below 10?

(I know how to delete the *entire* line using ed, but not just
the first part?


$ echo 'part5.chapter2.text-' | tr -d '[0-9]'
part.chapter.text-

$ echo 'part5.chapter2.text-' | sed 's/[0-9]//g'
part.chapter.text-


regards,
shantanoo

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


Re: Per-port options in make.conf?

2007-10-23 Thread Josh Carroll
 Is there any way to specify options in make.conf on a per-port basis?

Yes, something like this should work:

.if ${.CURDIR:M*/portnamehere*}
WITHOUT_X11=yes
.endif


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


Re: Is it difficult to move from Linux?

2007-10-23 Thread Tim Judd
I subscribe to the digest, so below is a copy/paste of the
question/mail i'm replying to:

- QUOTE:
Hi,

I have been using Linux for over 10 years, but have for a number of
 reasons 
become very interested in learning to use FreeBSD. Are there any ex or 
current Linux users here and could you tell me how hard it is to make
 the 
shift from Linux?  Is there anything in particular which has been
 written 
which would be useful to read?

T.I.A. 
- /QUOTE


You will get differencing opinions, views, and methods to FreeBSD. 
What seems to be generally recommended as a good and very true info is
http://www.over-yonder.net/~fullermd/rants/bsd4linux/bsd4linux1.php

A few more, such as onlamp.com, oreillynet.com and a few more pages
really focus, and have a dead-on correct view, implementation and view
of the BSD systems.

Personally, I see FreeBSD the most mature, OpenBSD the most secure, and
NetBSD as the most portable.  DesktopBSD and PC-BSD on the desktops.  I
run FreeBSD on my desktop, but I'm willing to spend the little more
time to have the name FreeBSD there.  :)

FreeBSD's 7.0 release is just around the corner, and on one of the
developer's blogs (search this mailing list archives for the link) --
FreeBSD 7.0 is wanting to be released before the new year.  Lots of
people are dying for it to be released.  I'm downloading the BETA1
right now, and gonna start throwing it on machines to help them test.

Donovan, the most important thing that I can help you in your
transition to FreeBSD is the fact that it may look like, feel like, and
play like XYZ Linux distribution.  But under the hood, is an entirely
different engine.  Take your time, it IS a different world and you WILL
have to re-learn many things.  Keeping this in mind, should make your
FreeBSD transition one of the most entertaining, and useful transitions
you could do.

So the fact that your subject is a question, my answer is not likely,
if you have the time for it.

--Tim

If opportunity doesn't knock, build a door.
I can is a way of life.
More and Bigger is not always Better.
The road to success is always uphill.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Q: general LaTeX mailing list

2007-10-23 Thread Byung-Hee HWANG
Hi there,

Who knows a good general LaTeX mailing list? Ah yes, here is also good
mailing list for the question. However, I want to give specific and
professional advice about LaTeX. Unfortunately, Google disappointed my
desire ;;

Thanks,

-- 
Byung-Hee HWANG * مجاهدين * InZealBomb 
I'll make him an offer he can't refuse.
-- Michael Corleone, Chapter 27, page 382
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Is it difficult to move from Linux?

2007-10-23 Thread Byung-Hee HWANG
Donovan,

On Mon, 2007-10-22 at 19:33 +0100, Donovan R. Palmer wrote:
 Hi,
 
 I have been using Linux for over 10 years, but have for a number of reasons 
 become very interested in learning to use FreeBSD. Are there any ex or 
 current Linux users here and could you tell me how hard it is to make the 
 shift from Linux?  Is there anything in particular which has been written 
 which would be useful to read?

Just my story.. I moved to FreeBSD from Linux five years ago. Shell is
only thing I felt difficult. But now I am using tcsh instead of bash.
Aside from that, everything is OK ;;

Sincerely,

-- 
Byung-Hee HWANG * مجاهدين * InZealBomb 
Get in the car. If I wanted to kill you you'd be dead now. Trust me.
-- Virgil Sollozzo, Chapter 2, page 77
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Want to upgrade sendmail in next OS release

2007-10-23 Thread Tuc at T-B-O-H.NET
  I can afford the time to start/stop sendmail here and there, but I
  have to schedule the maintenance window to upgrade this particular
  machine.
 
 I see.  I'd still go for the maintenance window option, unless there is
 a _very_ pressing need to upgrade Sendmail *today* because of a security
 update, but you have a point :)

Absolutely going to do the proper bring to the next level on it
as soon as I can schedule a good maintenance window. 
 
 % The following files make up the sendmail build/install/runtime
 % infrastructure in FreeBSD:
 %
 % Makefile.inc1
 % bin/Makefile
 % bin/rmail/Makefile
 % contrib/sendmail/
 % [...]

As for the merging myself CRINGE. I was just hoping I
could cvsup , rebuild what was necessary as if it was a 
sendmail security alert, and go. I didn't realize everything
that went into the point to get it to that point, and what could
be missed/broken/etc.
 
 Interesting bits of that list are:
 
 lib/libmilter/Makefile
 lib/libsm/Makefile
 lib/libsmdb/Makefile
 lib/libsmutil/Makefile
 libexec/mail.local/Makefile
 libexec/smrsh/Makefile
 usr.bin/vacation/Makefile
 usr.sbin/editmap/Makefile
 usr.sbin/mailstats/Makefile
 usr.sbin/makemap/Makefile
 usr.sbin/praliases/Makefile
 usr.sbin/sendmail/Makefile
 usr.sbin/mailwrapper/Makefile

I did recompile sm/smutil . We currently aren't
actively using milters (Wrote one previously, but not
using it anymore), and the libsmdb is possibly something
that could have bitten me. As for the rest of the
stuff, not parts that either I needed, or felt were
critical enough to the process. But something to be
very aware of next time, even for another program.
 
 For future upgrades of Sendmail, it would probably be a good idea to
 upgrade the libraries *first* and only when you are done building the
 new libraries to install everything.

The libsm and libsmutil appeared not to by dynamic but static
libs, so compiling them first brought me to be able to compile
sendmail itself. I did a test to see if it would compile without it,
it wouldn't. My instructions DID have me build them first though.
 
 It may be possible to build everything with MAKEOBJDIRPREFIX='/usr/obj',
 and install in one go when you are done with everything, but that's
 something you should probably experiment a bit with -- preferrably in a
 test machine, before you do the same on a live system.

Isn't /usr/obj where things go anyway? I'm confused as to why
your telling me. If your trying to get to that I should have done a
buildworld, but then just a make install in certain directories..
Then yes, it was probably bad form, but I couldn't see making tar to
be able to compile sendmail. :)
 
  In the mean time, I got bored, so I did just that. Seems to be working
  fine, has processed about 15K emails since.
 
 Neat :)
 
Still didn't solve my issue.. Turns out to be an issue with
/dev/console and the kernel. I tried to post here about it, but
no replies... So took it to arch where I found alot of discussion of
it via Google.

Thanks for all the insight,

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


Re: su: not running setuid

2007-10-23 Thread Mayank Jain
Hi,
No I am not able to login as root from other consoles also. 
I am able to ssh on this machine from other machines and is able to 
successfully login to this machine but from my console I am now even not able 
to login to this machine. It is not accepting my uname and passwd. Looks like 
I ma stuck at a big trouble.  
-- 
Regards
Mayank Jain(Nawal)
Niksun
9818390836
www.mayankjain.110mb.com 

On Monday 22 October 2007 19:28, Eric Crist wrote:
 If you executed the command you claim you did, you're system
 permissions are really screwed up.  You've changed ownership of
 *EVERY* file on the system to uname:wheel.  My best guess is that su
 is trying to run as uname (setuid) and it's not getting the
 permissions is needs.

 4th and long I'm guessing.  You're best of to punt and reinstall.
 Can you even log in as root from the console?

 Eric

 On Oct 22, 2007, at 1:51 PMOct 22, 2007, Mayank Jain wrote:
  Hi all,
 
  I have run chown -R uname:wheel . as root in the / directory. Now
  it is not
  allowing me to log in as su.
  Giving the following error
 
  su
  su: not running setuid
 
  I have also tried su -l but still same error. Can any body suggest
  me some
  solution to this problem.
 
  uname -a
  FreeBSD mayankjain.in.niksun.com 6.2-RC1-p1 FreeBSD 6.2-RC1-p1 #0:
  Mon Dec  4
  09:56:16 UTC 2006
  [EMAIL PROTECTED]:/usr/obj/usr/src/sys/SMP  i386
 
  I have also tried following but it didn't allow me to do so.
  chown  root:wheel /usr/bin/su
  chown: /usr/bin/su: Operation not permitted
 
  --
  Regards
  Mayank Jain(Nawal)
  Niksun
  9818390836
  www.mayankjain.110mb.com
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to freebsd-questions-
  [EMAIL PROTECTED]

 -
 Eric F Crist
 Secure Computing Networks


 ___
 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: Want to upgrade sendmail in next OS release

2007-10-23 Thread Tuc at T-B-O-H.NET
 
 Tuc at T-B-O-H.NET wrote:
  I'd like to upgrade my sendmail version in advance of
  upgrading to the next release of the OS. I was wondering if I
   .
  I don't want to build out of ports because it is set up not to
  override the base install.
 
 I ran into the same problem years ago, with sendmail from ports 
 installing into the /usr/local path, and creating two different versions 
 on the same system, and generally making a Big Mess of itself.

What I was afraid of. And I'll admit there is a bunch of 
ASSUME factor here. When I get on a machine running a certain OS,
I have certain expectations of whats base install, and what other
has been installed. If I want sendmail, I'd go to /etc/mail . If it
was /usr/local/etc/mail, I'd probably sit there for a few edits of
the sendmail.cf in there or something until I realized .. OH, on
THIS machine its in /usr/local/etc/mail. I hate wasting time. :)
 
 But from some posts here a couple months ago, and reading the Makefile, 
 I ~THINK~ it [the port] is now set up to replace the stock sendmail and 
 install into the regular system paths.
 
 I'm only like 90% on this, but hopefully someone else will confirm:  I 
 think the port will do what you want.
 
From the Makefile :

.if exists(${DESTDIR}/etc/mail/mailer.conf)  ${PREFIX} == /usr
pre-everything::
@${ECHO_CMD} #
@${ECHO_CMD} # You can't override the base sendmail this way.
@${ECHO_CMD} # your version FreeBSD use mailwrapper.
@${ECHO_CMD} #
@${ECHO_CMD} # Please install with normal PREFIX
@${ECHO_CMD} # and activate the port version with
@${ECHO_CMD} # cd ${PORTSDIR}/mail/sendmail  make mailer.conf
@${ECHO_CMD} #
@${FALSE}
.endif


So atleast for /usr/ports/mail/sendmail, the answer is No.
(Unless, I'm reading it wrong, then its either YES, or DEFINITE
MAYBE.)

Tuc

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


Re: su: not running setuid

2007-10-23 Thread Mayank Jain
Hi,

Thanks a lot!!!
The fix you provided worked for me, I am able to switch from normal user to su 
but this I am able to do with the help of ssh login only. I am not able to 
login from my console. When I am trying to login from my console it is not 
accepting my username and password not even of root. Giving an error message 
of Login Incorrect. Below are the log messages which I am getting. 

Oct 23 09:35:39 deepak kernel: Trying to mount root from ufs:/dev/ad0s4a
Oct 23 09:35:57 deepak sm-mta[682]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon Daemon0: cannot bind: Can't assign reque
sted address
Oct 23 09:35:57 deepak sm-mta[682]: daemon Daemon0: problem creating SMTP 
socket
Oct 23 09:36:02 deepak sm-mta[682]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon Daemon0: cannot bind: Can't assign reque
sted address
Oct 23 09:36:02 deepak sm-mta[682]: daemon Daemon0: problem creating SMTP 
socket
Oct 23 09:36:08 deepak sm-mta[682]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon Daemon0: cannot bind: Can't assign reque
sted address
Oct 23 09:36:08 deepak sm-mta[682]: daemon Daemon0: problem creating SMTP 
socket
Oct 23 09:36:13 deepak sm-mta[682]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon Daemon0: cannot bind: Can't assign reque
sted address
Oct 23 09:36:13 deepak sm-mta[682]: daemon Daemon0: problem creating SMTP 
socket
Oct 23 09:36:18 deepak sm-mta[682]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon Daemon0: cannot bind: Can't assign reque
sted address
Oct 23 09:36:18 deepak sm-mta[682]: daemon Daemon0: problem creating SMTP 
socket
Oct 23 09:36:19 deepak login: 2 LOGIN FAILURES ON ttyv0
Oct 23 09:36:23 deepak sm-mta[682]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon Daemon0: cannot bind: Can't assign reque
sted address
Oct 23 09:36:23 deepak sm-mta[682]: daemon Daemon0: problem creating SMTP 
socket
Oct 23 09:36:28 deepak sm-mta[682]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon Daemon0: cannot bind: Can't assign reque
sted address
Oct 23 09:36:28 deepak sm-mta[682]: daemon Daemon0: problem creating SMTP 
socket
Oct 23 09:36:33 deepak sm-mta[682]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon Daemon0: cannot bind: Can't assign reque
sted address
Oct 23 09:36:33 deepak sm-mta[682]: daemon Daemon0: problem creating SMTP 
socket
Oct 23 09:36:39 deepak sm-mta[682]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon Daemon0: cannot bind: Can't assign reque
sted address
Oct 23 09:36:39 deepak sm-mta[682]: daemon Daemon0: problem creating SMTP 
socket
Oct 23 09:36:44 deepak sm-mta[682]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon Daemon0: cannot bind: Can't assign reque
sted address
Oct 23 09:36:44 deepak sm-mta[682]: daemon Daemon0: problem creating SMTP 
socket
Oct 23 09:36:49 deepak sm-mta[682]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon Daemon0: cannot bind: Can't assign reque
sted address
Oct 23 09:36:49 deepak sm-mta[682]: daemon Daemon0: problem creating SMTP 
socket
Oct 23 09:36:49 deepak sm-mta[682]: NOQUEUE: SYSERR(root): opendaemonsocket: 
daemon Daemon0: server SMTP socket wedged: exit
ing
Oct 23 09:37:23 deepak su: deepak to root on /dev/ttyp0

Hope you will telll me some quick solution. 


-- 
Regards
Mayank Jain(Nawal)
+91-9818390836
www.mayankjain.110mb.com

On Monday 22 October 2007 20:21, Christopher Cowart wrote:
 On Mon, Oct 22, 2007 at 06:51:48PM +, Mayank Jain wrote:
  Hi all,
 
  I have run chown -R uname:wheel . as root in the / directory. Now it is
  not allowing me to log in as su.
  Giving the following error
 
  su
  su: not running setuid
 
  I have also tried su -l but still same error. Can any body suggest me
  some solution to this problem.
 
  uname -a
  FreeBSD mayankjain.in.niksun.com 6.2-RC1-p1 FreeBSD 6.2-RC1-p1 #0: Mon
  Dec  4 09:56:16 UTC 2006
  [EMAIL PROTECTED]:/usr/obj/usr/src/sys/SMP  i386
 
  I have also tried following but it didn't allow me to do so.
  chown  root:wheel /usr/bin/su
  chown: /usr/bin/su: Operation not permitted

 Unless you can find some local privilege escalation exploit, I'm
 thinking you're stuck. You can probably fix it in single-user mode:
 * Reboot
 * Pick single user mode from the boot menu
 * Accept the default shell
 $ fsck -p
 $ mount -u /
 $ mount -a -t ufs
 $ chown root /usr/bin/su

 But if the command above ran to completion, you probably have a mess of
 permissions on your filesystem. You may want to look into rebuilding /
 reinstalling world while you're in single.

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


Re: Per-port options in make.conf?

2007-10-23 Thread Yuri Pankov

On Mon, 2007-10-22 at 23:32 +0100, Benjamin M. A'Lee wrote:
 Is there any way to specify options in make.conf on a per-port basis?
 
 For example, if I want Vim built without X11, I can specify the WITHOUT_X11
 flag, but putting that in make.conf will affect every port.
 
 I'm aware it's possible to do it with portupgrade, but I was hoping for a
 method that would work both with and without portupgrade.
 
 Thanks in advance.
 

ports-mgmt/portconf looks like what you want:

Portconf is a simple framework to set ports options in an
universal way. Knobs set to specific ports are honoured
by portmaster, portupgrade, portmanager and 'make install'.


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


Re: Per-port options in make.conf?

2007-10-23 Thread Roland Smith
On Mon, Oct 22, 2007 at 11:32:39PM +0100, Benjamin M. A'Lee wrote:
 Is there any way to specify options in make.conf on a per-port basis?
 
 For example, if I want Vim built without X11, I can specify the WITHOUT_X11
 flag, but putting that in make.conf will affect every port.

Use .if and .CURDIR;

.if ${.CURDIR:M*/editors/vim}
WITHOUT_X11=yes
.endif

Note that this only works for the vim port. If you want to use it for
say vim5 and vim6, you have to add an extra star at the end:

.if ${.CURDIR:M*/editors/vim*}
WITHOUT_X11=yes
.endif

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpmxiBzao2dp.pgp
Description: PGP signature


Re: Rebuilding world

2007-10-23 Thread Erik Cederstrand

Roberth Sjonøy wrote:

Hello, i am updating FreeBSD to 8-CURRENT, and im at the 23.4.1 The
Canonical Way to Update Your System part of the handbook, when
running make buildworld, this occours:

install -o root -g wheel -m 444 dir-tmpl /usr/share/info/dir
install:No such file or directory
***Error code 1

Stop in /usr/src/share/info.
***Error code 1

Stop in /usr/src.
***Error code 1

Stop in /usr/src.
***Error code 1

Stop in /usr/src.
***Error code 1

Stop in /usr/src.

Anyone know what to do?


Apparently, make buildworld can't find the program install. What does 
which install tell you? Also, do you happen to have built world 
earlier with a NO_INFO/WITHOUT_INFO set?


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


RE: www.freebsd.org won't load in IE 7.x in vista box.

2007-10-23 Thread Ted Mittelstaedt


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of RW
 Sent: Friday, October 19, 2007 6:32 AM
 To: freebsd-questions@freebsd.org
 Subject: Re: www.freebsd.org won't load in IE 7.x in vista box.
 
 
 On Wed, 17 Oct 2007 15:07:55 +0200
 J65nko [EMAIL PROTECTED] wrote:
 
 
  From the section Compatibility problems of
  http://en.wikipedia.org/wiki/TCP_window_scale_option
  
  TCP Window Scaling is widely implemented in the Windows Vista
  operating system. Because many routers do not properly implement TCP
  Window Scaling, it can cause a users Internet connection to
  malfunction intermittently for a few minutes, then appear to start
  working again for no reason. If diagnose problem is selected in
  Vista, an error message will be displayed cannot communicate with
  primary DNS server.
  
 
 Routers shouldn't care about TCP windows so I guess they're actually
 referring to the firewalls on NAT-routers.
 
 What I don't get is why a TCP Window problem affects DNS. It's not
 mentioned in the Wikipedia article or the referenced tech-recipes.com
 link. Surely Vista doesn't routinely do DNS over TCP.
 

It don't.  When you click the diagnose problem it does it's usual
IPv6 DNS lookup first.  They probably assume if the admin got
the window scaling thing wrong they got the DNS thing wrong too.

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


Re: Is it difficult to move from Linux?

2007-10-23 Thread Donovan R. Palmer
Friends... thank you for all of your responses. Last night I read a big 
chunk of the handbook and read articles such as 
http://www.over-yonder.net/~fullermd/rants/bsd4linux/bsd4linux1.php  Very 
helpful. I was impressed with the quality of the documentation and I like 
the disciplined approach to FreeBSD.


The more I read, the more I was convinced that FreeBSD was what I was 
looking for and would satisfy some of my needs/disillusionment with Linux. 
I look forward to putting it on a box and starting the learn the 
differences. Many thanks again!


- Original Message - 
From: Chad Perrin [EMAIL PROTECTED]

To: freebsd-questions@freebsd.org
Sent: Tuesday, October 23, 2007 1:42 AM
Subject: Re: Is it difficult to move from Linux?



On Mon, Oct 22, 2007 at 07:33:57PM +0100, Donovan R. Palmer wrote:


I have been using Linux for over 10 years, but have for a number of 
reasons

become very interested in learning to use FreeBSD. Are there any ex or
current Linux users here and could you tell me how hard it is to make the
shift from Linux?  Is there anything in particular which has been written
which would be useful to read?


I found it dead easy -- much, much easier than making the switch from MS
Windows to Linux was.

The best source of information on FreeBSD for new FreeBSD users is, in my
opinion, the FreeBSD handbook:

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

Another excellent source of information is The Complete FreeBSD:

 http://www.lemis.com/grog/Documentation/CFBSD/

There are a couple other books out there that I've found to be quite
excellent, as well.

In general, I think you'll find much of the differences between most
Linux distributions and FreeBSD quite minor, but a touch strange at
first, and in the long run very positive.  At least, that's my
experience.

--
CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ]
They always say that when life gives you lemons you should make lemonade.
I always wonder -- isn't the lemonade going to suck if life doesn't give
you any sugar?
___
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: Is it difficult to move from Linux?

2007-10-23 Thread Roland Smith
Donovan R. Palmer wrote:
 I have been using Linux for over 10 years, but have for a number of
 reasons become very interested in learning to use FreeBSD. Are there
 any ex or current Linux users here and could you tell me how hard it
 is to make the shift from Linux?  Is there anything in particular
 which has been written which would be useful to read?

I have used Linux for almost 10 years before switching to FreeBSD. A lot
of the things that I leared while making the switch are documented on my
FreeBSD webpage; http://www.xs4all.nl/~rsmith/freebsd/

Some highlights;
- services must be enabled in /etc/rc.conf (foo_enable=YES)
- devices permissions are set in /etc/devfs.conf and /etc/devfs.rules
- build third party applications from ports, it'll save you a lot of
  trouble
- mounting filesystems as a non-root user has certain requirements;
  * the sysctl(8) vfs.usermount must be set to 1.
  * the user or a group that he belongs to must have read/write
permission on the device
  * the user must _own_ the mount point

HTH,
Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpt3ggPoGl7m.pgp
Description: PGP signature


Re: Is it difficult to move from Linux?

2007-10-23 Thread Donovan R. Palmer
Benjamin, I found 
http://www.onlamp.com/pub/a/bsd/2004/11/11/FreeBSD_Basics.html to be an 
excellent article! Thanks for the link. - DP


- Original Message - 
From: Benjamin M. A'Lee [EMAIL PROTECTED]

To: freebsd-questions@freebsd.org
Sent: Tuesday, October 23, 2007 12:47 AM
Subject: Re: Is it difficult to move from Linux?


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


Re: Is it difficult to move from Linux?

2007-10-23 Thread Mayank Jain
Hi
Using freeBSD is more fun. Installing packages and all that is very easy. The 
things you can do in LINUX you can surely do with FreeBSD. Collection of 
large number of ports and the flexibility to modify anything the way you want 
make it cool. Really after installing FreeBSD I had never swithched back to 
LINUX.
Hope you will also enjoy working on it. 

On Tuesday 23 October 2007 03:53, Byung-Hee HWANG wrote:
 Donovan,

 On Mon, 2007-10-22 at 19:33 +0100, Donovan R. Palmer wrote:
  Hi,
 
  I have been using Linux for over 10 years, but have for a number of
  reasons become very interested in learning to use FreeBSD. Are there any
  ex or current Linux users here and could you tell me how hard it is to
  make the shift from Linux?  Is there anything in particular which has
  been written which would be useful to read?

 Just my story.. I moved to FreeBSD from Linux five years ago. Shell is
 only thing I felt difficult. But now I am using tcsh instead of bash.
 Aside from that, everything is OK ;;

 Sincerely,

-- 
Regards
Mayank Jain(Nawal)
http://mayankjain.110mb.com/
+91-9818390836
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: user ppp and PPPoE bridging

2007-10-23 Thread Nikos Vassiliadis
On Tuesday 23 October 2007 05:31:45 [EMAIL PROTECTED] wrote:
 I'm attempting to change a DSL link from using PPPoE in the DSL modem
 to doing PPPoE on 6.1, with the modem in bridging mode.

 I've put the DSL modem in bridging mode, and it brings up the link
 properly -- or at least it reports it as up (DSL led steady; modem
 status report shows it as up, rfc 1483.

 Using user ppp, when I attempt to establish the PPPoE connection, I
 never get very far -- ppp dies when it tries to acquire carrier.  I
 don't understand this, as there isn't a carrier signal to acquire on
 an ethernet.  

There is carrier on ethernet. Ethernet belongs to the CSMA/DA model
where CS means carrier sense.

 I tried disabling cd in ppp.conf but as noted in the doc, 
 it's required for a PPPoE connection and is forced on.

 Also, how do I know know which interface it is attempting to connect to?
 The debug log shows it found five interfaces, but doesn't indicate which
 one it is trying to connect to.

It tries to use ed1 for PPPoE(set device PPPoE:ed1)
Can you use the minimal configuration labelled pppoe
from /usr/share/examples/ppp/ppp.conf.sample?
The only things you have to change are:
The ethernet interface it will try PPPoE.
username and password.

Is your ed1 connected to the modem directly?
Or it goes through a switch? Can you try connecting
your ed1 directly on your DSL modem's ethernet port?
You might need a crossover cable to do this(
http://en.wikipedia.org/wiki/Ethernet_crossover_cable)
or not since these days many ethernet ports do
this automatically.


Please post also ifconfig and run tcpdump on ed1
during try.



[snip]

   ppp.conf:  ===

 default:
   set log all
   set log -timer
   ident user-ppp VERSION (built COMPILATIONDATE)
   set redial 15 0
   set reconnect 15 1
 isp:
   set device PPPoE:ed1
   disable acfcomp protocomp
   deny acfcomp
   set mtu max 1492
   set mru max 1492
   enable mssfixup
   set speed sync
   enable lqr
   set lqrperiod 5
   set ctsrts off
   disable ipv6cp
   set dial
   set login
   set timeout 0
   set authname xx
   set authkey yy
   add! default HISADDR


I dont'see anything wrong, but I may be wrong. The small
sample configuration always worked for me. Why don't you
use it as a starting point?

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


Live video streaming on FreeBSD?

2007-10-23 Thread Andreas Widerøe Andersen
Hi all,
I'm looking for a way to stream live video on FreeBSD (streamingserver and
encoder or either).

I have previously used Windows Media Server and Encoder quite a lot, but I
try to run as much as possible on FreeBSD. My question would be, is there a
streaming server and possibly an encoder available for FreeBSD that will
stream live video that is compatible with most mediaplayers (for Windows,
Mac and Linux desktops)?

Any help or directions are very much appreciated.

Thanks for your help!

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


Re: FreeNX

2007-10-23 Thread Gerard
On October 22, 2007 at 06:32PM Novembre wrote:


 Is there going to be an updated version of the FreeNX port? The
 version in the FreeBSD port tree is 0.4.4_3 which hasn't been updated
 in two years. The current version is 0.7.1 though.

Have you tried contacting the maintainer:

[EMAIL PROTECTED]


-- 
Gerard


Here is today's useless fact

On the Chinese written language, the ideograph that stands for trouble
represents two women under one roof.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Per-port options in make.conf?

2007-10-23 Thread Benjamin M. A'Lee
On Mon, Oct 22, 2007 at 11:18:59PM -0400, Josh Carroll wrote:
  Is there any way to specify options in make.conf on a per-port basis?
 
 Yes, something like this should work:
 
 .if ${.CURDIR:M*/portnamehere*}
 WITHOUT_X11=yes
 .endif
 

On Tue, Oct 23, 2007 at 07:30:29AM +0200, Roland Smith wrote:
 On Mon, Oct 22, 2007 at 11:32:39PM +0100, Benjamin M. A'Lee wrote:
  Is there any way to specify options in make.conf on a per-port basis?
  
  For example, if I want Vim built without X11, I can specify the WITHOUT_X11
  flag, but putting that in make.conf will affect every port.
 
 Use .if and .CURDIR;
 
 .if ${.CURDIR:M*/editors/vim}
 WITHOUT_X11=yes
 .endif
 
 Note that this only works for the vim port. If you want to use it for
 say vim5 and vim6, you have to add an extra star at the end:
 
 .if ${.CURDIR:M*/editors/vim*}
 WITHOUT_X11=yes
 .endif

Thanks, I thought I'd seen something along these lines but I couldn't
work out what exactly it was (or if there was a better way).

-- 
Benjamin A'Lee [EMAIL PROTECTED]
http://subvert.org.uk/~bma/
It is forbidden to kill; therefore all murderers are punished unless
they kill in large numbers and to the sound of trumpets. - Voltaire


pgpBOkG1WGV8B.pgp
Description: PGP signature


Re: user ppp and PPPoE bridging

2007-10-23 Thread RW
On Mon, 22 Oct 2007 17:50:15 -0600
Gary Aitken [EMAIL PROTECTED] wrote:

 I'm attempting to change a DSL link from using PPPoE in the DSL modem
 to doing PPPoE on 6.1, with the modem in bridging mode.
 
 I've put the DSL modem in bridging mode, and it brings up the link
 properly -- or at least it reports it as up (DSL led steady; modem
 status report shows it as up, rfc 1483.
 
 Using user ppp, when I attempt to establish the PPPoE connection, I
 never get very far -- ppp dies when it tries to acquire carrier.  I
 don't understand this, as there isn't a carrier signal to acquire on
 an ethernet.  I tried disabling cd in ppp.conf but as noted in the
 doc, it's required for a PPPoE connection and is forced on.
 

I'd try simplifying a bit, this is my ppp.conf file


default:
  set log Phase tun command

adsl:
  set device PPPoE:vr0
  set authname **
  set authkey ***
  add default HISADDR
# DNS configured manually  
# enable dns

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


Re: reverse DNS resolution...

2007-10-23 Thread Eric F Crist

On Oct 22, 2007, at 4:51 PMOct 22, 2007, Philip M. Gollucci wrote:


Eric F Crist wrote:

Hey folks,

We're trying to get reverse DNS resolution for a block of IPs
(private).  We've had the 10.x network working great at the office
for quite some time now, but I'm having a problem getting the
172.30.x network to work.

Typing 'host ip' returns a valid result, however output from who,
as well as other network services (IRC, apache) only see the IP.  Is
there something I'm missing?

Thanks for the pointers!

Well, your DNS needs to be authoritative for both forward and reverse.
If you are trying to do this for less then a /24 block the zone files
get messy quick because of the 8bit boundaries.  You seem to be trying
to do this for a /16.  I'll bet you're missing the named.conf entries
and related reverse zone files:

Odds are you'll want to have zones:

zone 1.30.172.in.addr.arpa {
  type master;
  file master/1.30.172.in.addr.arpa
  notify yes;
}

zone 255.30.172.in.addr.arpa {
  ;; or slave config since you'll have more than 1 ns
  type slave;
  file slave/255.30.172.in.addr.arpa;
  masters { x.y.z.a; };
}

Or some larger splits of that.

You're going to have give me a netmask for more help.


/16 is the netmask, you already figured that one out. ;)

As I already stated, if I do a host 172.30.x.x, I get a the correct  
reverse resolution.  dig works as well.  What isn't working is the  
reverse resolution in certain command outputs, etc.  Maybe there is  
something missing here:


== named.conf ==
zone 30.172.IN-ADDR.ARPA {
type master;
file master/vpn.rev;
};

== vpn.rev ==

$TTL 86400
@   IN SOA snowball2.secure-computing.net root.secure- 
computing.net (

1   ; Serial
21600   ; Refresh
1200; Retry
1209600 ; Expire
3600; TTL
)
IN NS   snowball2.secure-computing.net

; Static vpn ips go here.
21.1IN PTR  user1.vpn.
25.1IN PTR  user2.vpn.
29.1IN PTR  user3.vpn.
33.1IN PTR  user4.vpn.
37.1IN PTR  user5.vpn.
41.1IN PTR  user6.vpn.
45.1IN PTR  user7.vpn.
49.1IN PTR  user8.vpn.
53.1IN PTR  user9.vpn.

; Auto-generate reverse dns for our dynamic block.
$ORIGIN 0.30.172.in-addr.arpa.
$GENERATE 2-254 $ PTR 172-30-0-$.vpn.


For what it's worth, the hosts I'm testing have snowball2 listed as  
their primary DNS server.  Again, host 172.30.1.21 successfully  
returns user1.vpn, etc.  Just output in w and last, as well as  
certain services such as UnrealIRCd don't resolve these correctly.


Thanks for the help folks!
-
Eric F Crist
Secure Computing Networks


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


Re: Is it difficult to move from Linux?

2007-10-23 Thread Robby Balona
Switch .. switch now and you will love it.

i just spent 3 days trying to get unixODBC working on linux... . I got
it to work in about 10 min on Freebsd. Freebsd rules... its a slight bit
different but it rules.

You will never go back once you port something.

On Tue, 2007-10-23 at 14:07 +, Mayank Jain wrote:
 Hi
 Using freeBSD is more fun. Installing packages and all that is very easy. The 
 things you can do in LINUX you can surely do with FreeBSD. Collection of 
 large number of ports and the flexibility to modify anything the way you want 
 make it cool. Really after installing FreeBSD I had never swithched back to 
 LINUX.
 Hope you will also enjoy working on it. 
 
 On Tuesday 23 October 2007 03:53, Byung-Hee HWANG wrote:
  Donovan,
 
  On Mon, 2007-10-22 at 19:33 +0100, Donovan R. Palmer wrote:
   Hi,
  
   I have been using Linux for over 10 years, but have for a number of
   reasons become very interested in learning to use FreeBSD. Are there any
   ex or current Linux users here and could you tell me how hard it is to
   make the shift from Linux?  Is there anything in particular which has
   been written which would be useful to read?
 
  Just my story.. I moved to FreeBSD from Linux five years ago. Shell is
  only thing I felt difficult. But now I am using tcsh instead of bash.
  Aside from that, everything is OK ;;
 
  Sincerely,
 

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


Re: Is it difficult to move from Linux?

2007-10-23 Thread Bahman M.
On 2007-10-22 Donovan R. Palmer wrote:
 Hi,
 
 I have been using Linux for over 10 years, but have for a number of
 reasons become very interested in learning to use FreeBSD. Are there
 any ex or current Linux users here and could you tell me how hard it
 is to make the shift from Linux?  Is there anything in particular
 which has been written which would be useful to read?
 
I've been a Linux user for more than 6 years until 4-5 months ago when
I found some old 20GB HDD and decided to give FreeBSD a try.  Believe
it or not after 1 month of playing with FreeBSD I removed my Linux
installation from the main HDD and installed FreeBSD as the main and
only OS on my machine!  So, as you can see it'll be an easy shift for
an average Linux user -like me.

In fact many concepts are similar to those of Linux however there are
differences.  What I did for learning FreeBSD was
1. Reading the documentation -when required- that is bundled in FreeBSD
installation disks and also is available online on www.freebsd.org.
2. Reading man pages.
3. Subscribing to Questions, Current and Stable mailing lists
(www.freebsd.org).

You're not likely to become a FreeBSD expert in 1 month but in my
experience I was feeling friendly and at home in FreeBSD after about
1.5 months.

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


Re: Can login using root password, but not remotely with SSH

2007-10-23 Thread Kevin Kinsey

John Murphy wrote:

On Mon, 22 Oct 2007 15:39:19 -0400
Robert Huff [EMAIL PROTECTED] wrote:


James writes:


 Add yourself to wheel (which is the root group on FreeBSD, a name
 I believe it inherited from earlier BSDs, but I've no idea what
 the justification for choosing 'wheel' is; any BSD historians
 here - you'd be welcome to let us know!)

Not sure, but I believe wheel predates UNIX.  I have
certainly seen the idea on OSes that do.


Some anecdotal evidence on the web suggests that the idea
was present in BBN's TENEX in 1969.

Shrouded in the mists of time, indeed.

Kevin Kinsey
--
I do not take drugs -- I am drugs.
-- Salvador Dali
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Is it difficult to move from Linux?

2007-10-23 Thread Gueven Bay
  On Mon, 2007-10-22 at 19:33 +0100, Donovan R. Palmer wrote:
   Hi,
  
   I have been using Linux for over 10 years, but have for a number of
   reasons become very interested in learning to use FreeBSD. Are there any
   ex or current Linux users here and could you tell me how hard it is to
   make the shift from Linux?  Is there anything in particular which has
   been written which would be useful to read?

And you can say that with FreeBSD you get a stable system as Debian
GNU/Linux is _and_ you get a source based system as Gentoo GNU/Linux.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: oflag option in GNU dd - equivalent in FreeBSD dd ?

2007-10-23 Thread Bahman M.
On 2007-10-22 Juri Mianovich wrote:
 I am used to using this command in Linux, using GNU
 dd:
 
 dd if=/blah of=/bleh oflag=append conv=notrunc
 
 The problem is, FreeBSD 'dd' does not understand the
 oflag argument.
 
 Is there some equivalent in the FreeBSD 'dd' syntax
 that I can use, or am I forced to install GNU utils ?
 
dd if=/blah of=/bleh conv=notrunc seek=`ls -s /bleh | cut -f1 -d ' ' -`

I don't know if any simpler way is possible (anyone?).

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


server shutted down frequently, related to [swi1: net] process ?

2007-10-23 Thread dwianto rizky
hi list,

my server is frequently shutted down by itself. I've checked all of relevant 
logs, but it showed nothing suspicious. Then, I realized from the output of ps 
-aux that [swi1: net], and some irq have consumed the cpu load.
# ps aux |more
USER PID %CPU %MEM   VSZ   RSS  TT  STAT STARTED  TIME COMMAND
root  10 42.7  0.0 0 8  ??  RL6:26PM  26:46.85 [idle]
root  31 21.7  0.0 0 8  ??  WL6:26PM   7:24.36 [irq18: rl0]
root  11 20.3  0.0 0 8  ??  WL6:26PM  24:59.95 [swi1: net]
root  32  6.2  0.0 0 8  ??  WL6:26PM   9:15.25 [irq19: rl1]


that was in good condition. usually, [swi1: net] consumed up 70% of cpu 
load, then  followed by irq process on rl1 and rl0 interfaces.

I've read through swi manual, and knows that this function is used to register 
and schedule software interrupt handlers. but I don't know what exactly net 
has made the interrupt. 

my question :
- why did the swi process eat up my cpu load?  what is the cause?
- is the rl0 and rl1 has some problems, so their irq process consume some cpu 
load?
- is there any relation between these problems with my server's 
self-shutted-down-behavior?


thanks a lot for your responses.


###
PS : below is my dmesg output :
Copyright (c) 1992-2007 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.2-STABLE #0: Sun Mar 18 00:39:02 WIT 2007
   [EMAIL PROTECTED]:/usr/obj/usr/src/sys/ROUTER
ACPI APIC Table: AWARD  AWRDACPI
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (2992.53-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0xf49  Stepping = 9
  
Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
  Features2=0x641dSSE3,RSVD2,MON,DS_CPL,CNTX-ID,CX16,b14
  AMD Features=0x2010NX,LM
  AMD Features2=0x1LAHF
  Logical CPUs per core: 2
real memory  = 2146304000 (2046 MB)
avail memory = 2095378432 (1998 MB)
ioapic0: Changing APIC ID to 4
ioapic0 Version 0.3 irqs 0-23 on motherboard
ioapic1 Version 0.3 irqs 24-47 on motherboard
kbd1 at kbdmux0
acpi0: AWARD AWRDACPI on motherboard 
Timecounter ACPI-safe frequency 3579545 Hz quality 1000
acpi_timer0: 24-bit timer at 3.579545MHz port 0x408-0x40b on acpi0
cpu0: ACPI CPU on acpi0
acpi_button0: Power Button on acpi0
acpi_button1: Sleep Button on acpi0
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
pcib1: PCI-PCI bridge at device 1.0 on pci0
pci1: PCI bus on pcib1
pcib2: ACPI PCI-PCI bridge irq 27 at device 2.0 on pci0
pci2: ACPI PCI bus on pcib2
pci2: display, VGA at device 0.0 (no driver attached)
pci2: display at device 0.1 (no driver attached)
pcib3: ACPI PCI-PCI bridge irq 31 at device 3.0 on pci0
pci3: ACPI PCI bus on pcib3
atapci0: VIA 8237A SATA150 controller port 
0xfc00-0xfc07,0xf800-0xf803,0xf400-0xf407,0xf000-0xf003,0xec00-0xec0f,0xe800-0xe8ff
 irq 21 at device 15.0 on pci
0
ata2: ATA channel 0 on atapci0
ata3: ATA channel 1 on atapci0
atapci1: VIA 8237A UDMA133 controller port 
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xe400-0xe40f at device 15.1 on pci0
ata0: ATA channel 0 on atapci1
ata1: ATA channel 1 on atapci1
uhci0: VIA 83C572 USB controller port 0xe000-0xe01f irq 20 at device 16.0 on 
pci0
uhci0: [GIANT-LOCKED]
usb0: VIA 83C572 USB controller on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: VIA 83C572 USB controller port 0xdc00-0xdc1f irq 22 at device 16.1 on 
pci0
uhci1: [GIANT-LOCKED]
usb1: VIA 83C572 USB controller on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: VIA 83C572 USB controller port 0xd800-0xd81f irq 21 at device 16.2 on 
pci0
uhci2: [GIANT-LOCKED]
usb2: VIA 83C572 USB controller on uhci2
usb2: USB revision 1.0
uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3: VIA 83C572 USB controller port 0xd400-0xd41f irq 23 at device 16.3 on 
pci0
uhci3: [GIANT-LOCKED]
usb3: VIA 83C572 USB controller on uhci3
usb3: USB revision 1.0
uhub3: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0: VIA VT6202 USB 2.0 controller mem 0xd000-0xd0ff irq 21 at 
device 16.4 on pci0
ehci0: [GIANT-LOCKED]
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4: VIA VT6202 USB 2.0 controller on ehci0
usb4: USB revision 2.0
uhub4: VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
isab0: PCI-ISA bridge at device 17.0 on pci0
isa0: ISA bus on isab0
pcib4: ACPI PCI-PCI bridge at device 19.0 on pci0
pci4: ACPI 

Re: trafshow and IPFW

2007-10-23 Thread Nikos Vassiliadis
On Saturday 20 October 2007 15:11:48 Grant Peel wrote:
 Hi all,

 If I write a rule to block irc ports (6669), and I see them being
 blocked in ipfw, will I still see the connection attemps in trafshow?

You seem to ask, yet I believe you already know the answer :)

Is trafshow using BPF? I took a peek at the project's home page
and it seems that it does so.

Anyway, if that's the case, yes, will see the connection attempts
'cause BPF is hooked on your card's link layer and sees every-
thing that's coming in and going out. That's everything, regard-
less relevance with the upper layers(IP and above).

HTH

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


Re: Live video streaming on FreeBSD?

2007-10-23 Thread Oliver Fromme
Andreas Widerøe Andersen wrote:
  I'm looking for a way to stream live video on FreeBSD (streamingserver and
  encoder or either).
  
  I have previously used Windows Media Server and Encoder quite a lot, but I
  try to run as much as possible on FreeBSD. My question would be, is there
  a streaming server and possibly an encoder available for FreeBSD that will
  stream live video that is compatible with most mediaplayers (for Windows,
  Mac and Linux desktops)?
  
  Any help or directions are very much appreciated.

ffmpeg and vlc come to mind.  Both can be used as streaming
servers, and ffmpeg has pretty good encoding capabilities.

Other than that, I suggest you use a Ports search engine.
For example, this should give you a few results to play with:

http://www.secnetix.de/tools/porgle/?w=ncdq=video+stream+server

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

'Instead of asking why a piece of software is using 1970s technology,
start asking why software is ignoring 30 years of accumulated wisdom.'
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Q: general LaTeX mailing list

2007-10-23 Thread Giorgos Keramidas
On 2007-10-23 12:43, Byung-Hee HWANG [EMAIL PROTECTED] wrote:
 Hi there,

 Who knows a good general LaTeX mailing list? Ah yes, here is also good
 mailing list for the question. However, I want to give specific and
 professional advice about LaTeX. Unfortunately, Google disappointed my
 desire ;;

If you don't have a dislike for newsgroups, then ``news:comp.text.tex''
is a pretty good choice.

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


Re: defend from - :() { ::; } ;:

2007-10-23 Thread Rob

Mike Jeays wrote:

Please do not try to execute this: :() { ::; } ;: on your BSD machine.

What does it do?


It is easier to understand when you replace the : by a more conventional 
subroutine name.


myproc () {
  myproc 
  myproc
}

myproc

It recursively generates useless processes that clog up the machine. Mine 
ground to a halt and froze after a few seconds.


Interesting, if not annoying ;)  Thanks for the explanation, Mike.  I edited 
/etc/login.conf and changed maxproc=unlimited to maxproc=200.  Then tried it.  Took a 
second or so to start spewing Cannot fork: Resource temporarily unavailable.  
I'd opened a 2nd session, and ps wasn't even able to give me full info on what was 
happening.  Luckily, is was easily interruptible and the system seemed to recover.

 -Rob

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


Re: Live video streaming on FreeBSD?

2007-10-23 Thread Mark Moellering
On Tuesday 23 October 2007 5:01 am, Andreas Widerøe Andersen wrote:
 Hi all,
 I'm looking for a way to stream live video on FreeBSD (streamingserver and
 encoder or either).

 I have previously used Windows Media Server and Encoder quite a lot, but I
 try to run as much as possible on FreeBSD. My question would be, is there a
 streaming server and possibly an encoder available for FreeBSD that will
 stream live video that is compatible with most mediaplayers (for Windows,
 Mac and Linux desktops)?

 Any help or directions are very much appreciated.

 Thanks for your help!

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


Check vlc  vls in ports/packages.  It should cover all the (streaming) 
standards.

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


Re: Is it difficult to move from Linux

2007-10-23 Thread Bill Vermillion
At Tue, Oct 23, 2007 at 12:00 , our malformed and occasionally
flatulent friend [EMAIL PROTECTED] spewed
forth this fount of brain juice:

 Date: Mon, 22 Oct 2007 20:30:30 -0700 (PDT)
 From: Tim Judd [EMAIL PROTECTED]
 Subject: Re: Is it difficult to move from Linux?

 I subscribe to the digest, so below is a copy/paste of the
 question/mail i'm replying to:

 - QUOTE:
 Hi,

 I have been using Linux for over 10 years, but have for a number
 of reasons become very interested in learning to use FreeBSD.
 Are there any ex or current Linux users here and could you
 tell me how hard it is to make the shift from Linux? Is there
 anything in particular which has been written which would be
 useful to read?

 T.I.A. - /QUOTE

I'm not a Linux user - but have moved several Linux sites and
a SysV site into FreeBSD.

Most of it is fairly straight ahead but when moving users
from Linux or SysV's with the shadow password format into the
FreeBSD method it will take a bit of work.

master.passwd holds both the UID plus the password.

In Linux/SysV the shadow file holds that information and not
master.passwd. [The passwd file is readable by all but does not
contain passwords].

I'd cut/paste the passwd files and the shadow files together.

What you want is to get the encrypited passwd from shadow
into the passwd file so that it looks like a Linux/SysV passwd
file of days gone by.

And BSD has two extra fields in the password file and if you check
the   passwd(5) in FreeBSD you will see a two line script
which will add the two extra fields added in FreeBSD.

If you have only a few users it may be easier to just add them
manually but if you have to change hundreds I found the editing of
the two files together to be good.

Then you use 'vipw' the tool that manages the master.passwd file
and go down past the system names, and then delete all past that
and then suck in the modified files as I described above.

If you make a mistake 'vipw' will let you know that you have an
error and will not save the file.

If all goes well you have a new master.passwd with all the old user
password from Linux in there.

IMPORTANT NOTE **
Be  SURE - REALLY SURE - you have made copies of the passwd and
master.passwd files.

And TRIPLY IMPORTANT - DO NOT LOGOUT when you are doing this.
When you get the saved file from 'vipw' all the other logins should
work.

BUT TEST TEST on at least a couple of names using the old password
from Linux.  At the console you have ATL-FN keys to give extra
logins so this is a good place to test.

THEN before you logout BE QUADRUPLY Sure that you can login via
root - before you log out of your first session where you did
the original login.

I hope this helps.

When it's all done I'm sure you will grow to love FreeBSD.
It's documentation in superb [and if you look at some of the Linux
man pages you will see they are xBSD man pages that have had
global replacements using Linunx instead of FreeBSD.

Bill
-- 
Bill Vermillion - bv @ wjv . com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Is it difficult to move from Linux?

2007-10-23 Thread cpghost
On Mon, 22 Oct 2007 19:33:57 +0100
Donovan R. Palmer [EMAIL PROTECTED] wrote:

 I have been using Linux for over 10 years, but have for a number of
 reasons become very interested in learning to use FreeBSD. Are there
 any ex or current Linux users here and could you tell me how hard it
 is to make the shift from Linux?  Is there anything in particular
 which has been written which would be useful to read?

Here are the highlights from a sysadmin point of view:

* FreeBSD = Kernel + Userland. All built from source /usr/src.
  You update the base system by synchronizing that source tree
  (with csup(1)), compiling it into /usr/obj and installing that
  with a couple of make(1) commands. See /usr/src/UPDATING.

* Third party apps (including Xorg etc...) are easiest
  compiled and installed via /usr/ports into /usr/local.
  There's a clear separation between FreeBSD's own Userland
  and those third party apps: that's why you have e.g.
  /usr/local/bin/bash (a port app) vs. /bin/sh (a FreeBSD
  userland app). You update your ports by synchronizing
  /usr/ports (with csup(1) or portsnap(1)) and recursively
  rebuilding out-of-date or depending ports with tools like
  portupgrade, portmaster etc... See /usr/ports/UPDATING.

* You configure FreeBSD and third party apps' daemons (which
  have startup scripts in /etc/rc.d and /usr/local/etc/rc.d
  respectively) by setting configuration variables in /etc/rc.conf.
  Default settings for FreeBSD's confvariables can be found in
  /etc/defaults/rc.conf; you just override them in /etc/rc.conf.
  The variables you need to add to /etc/rc.conf for ports are
  displayed when installing a port, but can also be found at the
  beginning of the /usr/local/etc/rc.d/* startup scripts.

* FreeBSD's compiler is currently gcc + binutils, so you'll
  immediately feel at home.

Gentoo has been largely inspired by FreeBSD and uses a similar
compile-everything-from-source approach; though gentoo is IMHO
less comfortable installing the first time and maintaining.

Just remember that FreeBSD doesn't run the Linux kernel, doesn't
use glibc etc...: it's a completely different code base. But for
95% of all third-party software, its APIs are POSIX-ish enough.

Last but not least: don't forget to ask on freebsd-questions@
and other mailing lists. Community support is excellent: that
alone would be worth switching. ;)

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Is it difficult to move from Linux?

2007-10-23 Thread Jerry McAllister
On Tue, Oct 23, 2007 at 07:03:44AM +0100, Donovan R. Palmer wrote:

 Friends... thank you for all of your responses. Last night I read a big 
 chunk of the handbook and read articles such as 
 http://www.over-yonder.net/~fullermd/rants/bsd4linux/bsd4linux1.php  Very 
 helpful. I was impressed with the quality of the documentation and I like 
 the disciplined approach to FreeBSD.
 
 The more I read, the more I was convinced that FreeBSD was what I was 
 looking for and would satisfy some of my needs/disillusionment with Linux. 
 I look forward to putting it on a box and starting the learn the 
 differences. Many thanks again!

I think you are right.

A couple of thing I forgot to mention.

First, the default shell in FreeBSD is tcsh.  
I like it for most things and find myself grinding my teeth at bash,
but you can easily change the shell to suit you.   If it is bash, then
you need to install it from ports and enter it in /etc/shells  and
then change your /etc/passwd entry using vipw(8).

The other one that can make things easier is that the directory
and file layout is described in a man page.   man hier  will get it
for you and can be very valuable in getting used to FreeBSD.

Note that all the directories listed in hier from / down to /stand  need 
to be in the root file system for things to work, especially at boot
time and in single user mode.

jerry

 
 - Original Message - 
 From: Chad Perrin [EMAIL PROTECTED]
 To: freebsd-questions@freebsd.org
 Sent: Tuesday, October 23, 2007 1:42 AM
 Subject: Re: Is it difficult to move from Linux?
 
 
 On Mon, Oct 22, 2007 at 07:33:57PM +0100, Donovan R. Palmer wrote:
 
 I have been using Linux for over 10 years, but have for a number of 
 reasons
 become very interested in learning to use FreeBSD. Are there any ex or
 current Linux users here and could you tell me how hard it is to make the
 shift from Linux?  Is there anything in particular which has been written
 which would be useful to read?
 
 I found it dead easy -- much, much easier than making the switch from MS
 Windows to Linux was.
 
 The best source of information on FreeBSD for new FreeBSD users is, in my
 opinion, the FreeBSD handbook:
 
  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/
 
 Another excellent source of information is The Complete FreeBSD:
 
  http://www.lemis.com/grog/Documentation/CFBSD/
 
 There are a couple other books out there that I've found to be quite
 excellent, as well.
 
 In general, I think you'll find much of the differences between most
 Linux distributions and FreeBSD quite minor, but a touch strange at
 first, and in the long run very positive.  At least, that's my
 experience.
 
 -- 
 CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ]
 They always say that when life gives you lemons you should make lemonade.
 I always wonder -- isn't the lemonade going to suck if life doesn't give
 you any sugar?
 ___
 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]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: reverse DNS resolution...

2007-10-23 Thread Derek Ragona

At 07:23 AM 10/23/2007, Eric F Crist wrote:

On Oct 22, 2007, at 4:51 PMOct 22, 2007, Philip M. Gollucci wrote:


Eric F Crist wrote:

Hey folks,

We're trying to get reverse DNS resolution for a block of IPs
(private).  We've had the 10.x network working great at the office
for quite some time now, but I'm having a problem getting the
172.30.x network to work.

Typing 'host ip' returns a valid result, however output from who,
as well as other network services (IRC, apache) only see the IP.  Is
there something I'm missing?

Thanks for the pointers!

Well, your DNS needs to be authoritative for both forward and reverse.
If you are trying to do this for less then a /24 block the zone files
get messy quick because of the 8bit boundaries.  You seem to be trying
to do this for a /16.  I'll bet you're missing the named.conf entries
and related reverse zone files:

Odds are you'll want to have zones:

zone 1.30.172.in.addr.arpa {
  type master;
  file master/1.30.172.in.addr.arpa
  notify yes;
}

zone 255.30.172.in.addr.arpa {
  ;; or slave config since you'll have more than 1 ns
  type slave;
  file slave/255.30.172.in.addr.arpa;
  masters { x.y.z.a; };
}

Or some larger splits of that.

You're going to have give me a netmask for more help.


/16 is the netmask, you already figured that one out. ;)

As I already stated, if I do a host 172.30.x.x, I get a the correct
reverse resolution.  dig works as well.  What isn't working is the
reverse resolution in certain command outputs, etc.  Maybe there is
something missing here:

== named.conf ==
zone 30.172.IN-ADDR.ARPA {
type master;
file master/vpn.rev;
};

== vpn.rev ==

$TTL 86400
@   IN SOA snowball2.secure-computing.net root.secure- computing.net (
1   ; Serial
21600   ; Refresh
1200; Retry
1209600 ; Expire
3600; TTL
)
IN NS   snowball2.secure-computing.net

; Static vpn ips go here.
21.1IN PTR  user1.vpn.
25.1IN PTR  user2.vpn.
29.1IN PTR  user3.vpn.
33.1IN PTR  user4.vpn.
37.1IN PTR  user5.vpn.
41.1IN PTR  user6.vpn.
45.1IN PTR  user7.vpn.
49.1IN PTR  user8.vpn.
53.1IN PTR  user9.vpn.

; Auto-generate reverse dns for our dynamic block.
$ORIGIN 0.30.172.in-addr.arpa.
$GENERATE 2-254 $ PTR 172-30-0-$.vpn.


For what it's worth, the hosts I'm testing have snowball2 listed as
their primary DNS server.  Again, host 172.30.1.21 successfully
returns user1.vpn, etc.  Just output in w and last, as well as
certain services such as UnrealIRCd don't resolve these correctly.

Thanks for the help folks!
-
Eric F Crist
Secure Computing Networks



You may need to check your /etc/nsswitch.conf on snowball, and any other 
DNS servers.  Also be sure you are using the same DNS lookup order for the 
clients.


I didn't see snowball's PTR record, so I assume it is correct and all 
servers find it correctly as the primary DNS.


-Derek


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

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


Re: Is it difficult to move from Linux?

2007-10-23 Thread James
I switched after using linux for several years because things are more
consistent in FreeBSD. These days, I still use linux for some things,
but it often feels like things are slightly weird and kludgy. 

Which, in all honesty, they are. Linux is one of the greatest projects
ever, creating different bits and pieces and putting them together. But
sometimes, I just want things to work simply.



On Tue, 2007-10-23 at 14:11 +0200, Robby Balona wrote:

 Switch .. switch now and you will love it.
 
 i just spent 3 days trying to get unixODBC working on linux... . I got
 it to work in about 10 min on Freebsd. Freebsd rules... its a slight bit
 different but it rules.
 
 You will never go back once you port something.
 
 On Tue, 2007-10-23 at 14:07 +, Mayank Jain wrote:
  Hi
  Using freeBSD is more fun. Installing packages and all that is very easy. 
  The 
  things you can do in LINUX you can surely do with FreeBSD. Collection of 
  large number of ports and the flexibility to modify anything the way you 
  want 
  make it cool. Really after installing FreeBSD I had never swithched back to 
  LINUX.
  Hope you will also enjoy working on it. 
  
  On Tuesday 23 October 2007 03:53, Byung-Hee HWANG wrote:
   Donovan,
  
   On Mon, 2007-10-22 at 19:33 +0100, Donovan R. Palmer wrote:
Hi,
   
I have been using Linux for over 10 years, but have for a number of
reasons become very interested in learning to use FreeBSD. Are there any
ex or current Linux users here and could you tell me how hard it is to
make the shift from Linux?  Is there anything in particular which has
been written which would be useful to read?
  
   Just my story.. I moved to FreeBSD from Linux five years ago. Shell is
   only thing I felt difficult. But now I am using tcsh instead of bash.
   Aside from that, everything is OK ;;
  
   Sincerely,
  
 
 ___
 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: oflag option in GNU dd - equivalent in FreeBSD dd ?

2007-10-23 Thread Oliver Fromme
Bahman M. [EMAIL PROTECTED] wrote:
  On 2007-10-22 Juri Mianovich wrote:
   I am used to using this command in Linux, using GNU
   dd:
   
   dd if=/blah of=/bleh oflag=append conv=notrunc
   
   The problem is, FreeBSD 'dd' does not understand the
   oflag argument.
   
   Is there some equivalent in the FreeBSD 'dd' syntax
   that I can use, or am I forced to install GNU utils ?

Of course, the easiest way is to do this:

$ dd if=/blah  /bleh

If you cannot do that, please explain why.  If you know
your reason, there might be an alternative way to do it.

  dd if=/blah of=/bleh conv=notrunc seek=`ls -s /bleh | cut -f1 -d ' ' -`
  
  I don't know if any simpler way is possible (anyone?).

$ dd if=/blah of=/bleh conv=notrunc seek=$(stat -f%z /bleh)

I suggest to write a small alias or shell function if
you need to use such commands often.  The following
shell function (for sh, zsh or bash) will do:

ddappend()
{
dd if=$1 of=$2 conv=notrunc seek=$(stat -f%z -- $2)
}

Then you can simply write:  $ ddappend /blah /bleh

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

Passwords are like underwear.  You don't share them,
you don't hang them on your monitor or under your keyboard,
you don't email them, or put them on a web site,
and you must change them very often.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


4 clause BSD license in a.out.h

2007-10-23 Thread bruce
While looking through some header files I found a.out.h in
/usr/include.  If this header is still valid (can FreeBSD still be
configured to handle a.out binaries?), is the 3rd clause still
valid, or should it be removed?  

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


Re: Install on new INTEL motherboard, can't find ATA devices

2007-10-23 Thread Brian A. Seklecki
On Mon, 2007-10-22 at 15:13 -0400, Thomas David Rivers wrote:
 I just got a new INTEL motherboard - chock full of these new-fangled
 SATA connectors... and one legacy ATA connector.  I moved a disk
 drive from an older box to this new one..
 
 The machine can boot from the disk drive, but then after the kernel
 is up-and-running - it can't find the drive to mount the root file
 system.

Can you paste your complete /var/run/dmesg.boot from the boot kernel?
Did you try a 7-PRERELEASE snapshot?  Are there any modes to toggle in
the BIOS?

~BAS

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


Re: Q: general LaTeX mailing list

2007-10-23 Thread Roland Smith
On Tue, Oct 23, 2007 at 12:43:28PM +0900, Byung-Hee HWANG wrote:
 Hi there,
 
 Who knows a good general LaTeX mailing list? Ah yes, here is also good
 mailing list for the question. However, I want to give specific and
 professional advice about LaTeX. Unfortunately, Google disappointed my
 desire ;;

Most local TeX User Groups have mailing-lists populated with knowledgeable
people. See e.g. http://www.ktug.or.kr/

There is also a good TeX related group on Usenet; comp.text.tex.

There are also people who do consulting for (La)TeX;
http://www.tug.org/consultants.html

Hope this helps.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpQmDyLS20fK.pgp
Description: PGP signature


Re: Buying new sound card

2007-10-23 Thread Dick Hoogendijk
Pieter de Goeje [EMAIL PROTECTED] writes:

 On Sunday 21 October 2007, Roberth Sjonøy wrote:
 Anyone who can confirm that a Creative SB Audigy SE PCI works with FreeBSD?
 It doesn't work, unless you install the oss driver from
 http://www.4front-tech.com

That is not too hard ;-)

 Note that in my opinion the native FreeBSD drivers are a lot better.

What drivers? The ones that don't exist for the card?

In my opinion the SB Audigy is a very common card that should have
been supported long ago. On the other hand, the OSS drivers are very good.

-- 
Dick Hoogendijk -- PGP/GnuPG key: 01D2433D
++ http://nagual.nl/ + Solaris 11 09/07 ++
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Live video streaming on FreeBSD?

2007-10-23 Thread Roland Smith
On Tue, Oct 23, 2007 at 11:01:02AM +0200, Andreas Widerøe Andersen wrote:
 Hi all,
 I'm looking for a way to stream live video on FreeBSD (streamingserver and
 encoder or either).
 
 I have previously used Windows Media Server and Encoder quite a lot, but I
 try to run as much as possible on FreeBSD. My question would be, is there a
 streaming server and possibly an encoder available for FreeBSD that will
 stream live video that is compatible with most mediaplayers (for Windows,
 Mac and Linux desktops)?

/usr/ports/multimedia/mencoder can encode/recode videos to many
different formats, including wmv9 and H.264.

/usr/ports/multimedia/vlc contains a streaming server, IIRC.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpSQGqUgXtB7.pgp
Description: PGP signature


Re: Can login using root password, but not remotely with SSH

2007-10-23 Thread Robert Huff
Kevin Kinsey writes:

 Not sure, but I believe wheel predates UNIX.  I have
   certainly seen the idea on OSes that do.
  
  Some anecdotal evidence on the web suggests that the idea
  was present in BBN's TENEX in 1969.

*DING!*


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


Re: Live video streaming on FreeBSD?

2007-10-23 Thread DAve
Mark Moellering wrote:
 On Tuesday 23 October 2007 5:01 am, Andreas Widerøe Andersen wrote:
 Hi all,
 I'm looking for a way to stream live video on FreeBSD (streamingserver and
 encoder or either).

 I have previously used Windows Media Server and Encoder quite a lot, but I
 try to run as much as possible on FreeBSD. My question would be, is there a
 streaming server and possibly an encoder available for FreeBSD that will
 stream live video that is compatible with most mediaplayers (for Windows,
 Mac and Linux desktops)?

 Any help or directions are very much appreciated.

 Thanks for your help!

 Best regards,
 Andreas
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]
 
 
 Check vlc  vls in ports/packages.  It should cover all the (streaming) 
 standards.
 

We have been using Apple's Darwin Streaming server with excellent results.

DAve


-- 
Three years now I've asked Google why they don't have a
logo change for Memorial Day. Why do they choose to do logos
for other non-international holidays, but nothing for
Veterans?

Maybe they forgot who made that choice possible.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: reverse DNS resolution...

2007-10-23 Thread Philip M. Gollucci
 As I already stated, if I do a host 172.30.x.x, I get a the correct
 reverse resolution.  dig works as well.  What isn't working is the
 reverse resolution in certain command outputs, etc.  Maybe there is
 something missing here:
Install wireshark on one of the clients -- filter on protocol dns.
It will be plain as day whats happening.


-- 

Philip M. Gollucci ([EMAIL PROTECTED]) c:323.219.4708 o:703.749.9295x206
Senior System Admin - Riderway, Inc.
http://riderway.com / http://ridecharge.com
1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB  B89E 1324 9B4F EC88 A0BF

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.

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


Re: oflag option in GNU dd - equivalent in FreeBSD dd ?

2007-10-23 Thread RW
On Tue, 23 Oct 2007 16:42:46 +0330
Bahman M. [EMAIL PROTECTED] wrote:

 On 2007-10-22 Juri Mianovich wrote:
  I am used to using this command in Linux, using GNU
  dd:
  
  dd if=/blah of=/bleh oflag=append conv=notrunc
  
  The problem is, FreeBSD 'dd' does not understand the
  oflag argument.
  
  Is there some equivalent in the FreeBSD 'dd' syntax
  that I can use, or am I forced to install GNU utils ?
  
 dd if=/blah of=/bleh conv=notrunc seek=`ls -s /bleh | cut -f1 -d ' '
 -`
 
 I don't know if any simpler way is possible (anyone?).
 

is it any different to 

dd if=/blah  /bleh 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


USB-Serial adapter, how to make /dev/cuad* appear?

2007-10-23 Thread Benjamin Lutz
Hello,

I've bought an USB-Serial adapter in order to use an old serial 33.6k 
modem. I've loaded the uplcom and ucom modules, but am unsure how to 
proceed from here.

The system runs FreeBSD 6.2-RELEASE-p8. When connecting the adapter, 
dmesg says:

  ucom0: Prolific Technology Inc. USB-Serial Controller D, rev 
  1.10/4.00, addr 3

usbdevs -v says:

  port 6 addr 3: full speed, power 100 mA, config 1, USB-Serial
  Controller D(0x2303), Prolific Technology Inc.(0x067b), rev 4.00

I'd expect some device to show up in /dev, cuad1, ucom0, something like 
that, but I get nothing. (cuad0 is taken by the onboard serial port, 
which, alas, isn't wired to the outside of the case).

Any help is appreciated!

Cheers
Benjamin


signature.asc
Description: This is a digitally signed message part.


Re: oflag option in GNU dd - equivalent in FreeBSD dd ?

2007-10-23 Thread Dan Nelson
In the last episode (Oct 23), Oliver Fromme said:
 Bahman M. [EMAIL PROTECTED] wrote:
   On 2007-10-22 Juri Mianovich wrote:
I am used to using this command in Linux, using GNU
dd:

dd if=/blah of=/bleh oflag=append conv=notrunc

The problem is, FreeBSD 'dd' does not understand the
oflag argument.

Is there some equivalent in the FreeBSD 'dd' syntax
that I can use, or am I forced to install GNU utils ?
 
 Of course, the easiest way is to do this:
 
 $ dd if=/blah  /bleh
 
 If you cannot do that, please explain why.  If you know
 your reason, there might be an alternative way to do it.
 
   dd if=/blah of=/bleh conv=notrunc seek=`ls -s /bleh | cut -f1 -d ' ' -`
   
   I don't know if any simpler way is possible (anyone?).
 
 $ dd if=/blah of=/bleh conv=notrunc seek=$(stat -f%z /bleh)

I don't think that will work, since seek's argument is in blocks.  Even
if you divide by 512 (or whatever you decide to set bs=), if the file
you're appending do isn't a multiple of the blocksize, you'll end up
chopping part of the end off.

-- 
Dan Nelson
[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: oflag option in GNU dd - equivalent in FreeBSD dd ?

2007-10-23 Thread Bahman M.
On 2007-10-23 Dan Nelson wrote:
 In the last episode (Oct 23), Oliver Fromme said:
  Bahman M. [EMAIL PROTECTED] wrote:
On 2007-10-22 Juri Mianovich wrote:
 I am used to using this command in Linux, using GNU
 dd:
 
 dd if=/blah of=/bleh oflag=append conv=notrunc
 
 The problem is, FreeBSD 'dd' does not understand the
 oflag argument.
 
 Is there some equivalent in the FreeBSD 'dd' syntax
 that I can use, or am I forced to install GNU utils ?
  
  Of course, the easiest way is to do this:
  
  $ dd if=/blah  /bleh
  
  If you cannot do that, please explain why.  If you know
  your reason, there might be an alternative way to do it.
  
dd if=/blah of=/bleh conv=notrunc seek=`ls -s /bleh | cut -f1 -d
' ' -`

I don't know if any simpler way is possible (anyone?).
  
  $ dd if=/blah of=/bleh conv=notrunc seek=$(stat -f%z /bleh)
 
 I don't think that will work, since seek's argument is in blocks.
 Even if you divide by 512 (or whatever you decide to set bs=), if the
 file you're appending do isn't a multiple of the blocksize, you'll
 end up chopping part of the end off.
 
Good point!  The following should cover that:
sh$ dd if=/blah of=/bleh conv=notrunc bs=1 seek=$(stat -f%z /bleh)
or
tcsh% dd if=/blah of=/bleh conv=notrunc bs=1 seek=`stat -f%z /bleh`

I wonder if bs=1 can cause any slow down when working with large files?

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


Re: reverse DNS resolution...

2007-10-23 Thread Oliver Fromme
Eric F Crist wrote:
  As I already stated, if I do a host 172.30.x.x, I get a the correct  
  reverse resolution.  dig works as well.  What isn't working is the  
  reverse resolution in certain command outputs, etc.

Note that the DNS tools (host, nslookup, dig) use their
own resolver code, not the one from FreeBSD's libc, like
all other tools.  That might explain the difference.

Make sure that you have configured /etc/nsswitch.conf
and /etc/resolv.conf correctly.  Also note that /etc/hosts
overrides DNS by default.

You can use tcpdump to check if a reverse lookup request
is sent to the DNS server when the failure occurs, and
what the reply looks like.  E.g. let this command run in
one terminal:

# tcpdump -i tun0 -s 1500 -l -n -vvv udp port domain

Add an -i option to specify the interface to listen on,
if you have multiple interfaces (e.g. -i fxp0).

Then run the command (w, irc client, whatever) in another
terminal and watch the tcpdump output.  Oh by the way,
I think the addresses in IRC are resolved by the servers,
not by the clients, so you would have to run the tcpdump
command on the IRC server (if it's an internal one to
which you can login and have root access).

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

PI:
int f[9814],b,c=9814,g,i;long a=1e4,d,e,h;
main(){for(;b=c,c-=14;i=printf(%04d,e+d/a),e=d%a)
while(g=--b*2)d=h*b+a*(i?f[b]:a/5),h=d/--g,f[b]=d%g;}
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Is it difficult to move from Linux?

2007-10-23 Thread Kevin Kinsey

Donovan R. Palmer wrote:

Hi,


could you tell me how hard it is to 
make the shift from Linux?


troll warning
  http://www.daemonology.net/depenguinator/
/warning

:-D

More sincerely, welcome to FreeBSD!  Set your mail
filters, subscribe to the lists, grab your handbook,
phasers on stun... Happy computing!

Kevin Kinsey
--
No excellent soul is exempt from a mixture of madness.
-- Aristotle
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Is it difficult to move from Linux?

2007-10-23 Thread Donovan R. Palmer
One of the biggest attractions, among many, is that you install the BSD base 
and then add what you want to it. I have increasingly become tired of having 
to spend a tonne of time taking a tonne of stuff out of a Linux distro that 
I don't need.  Of course, part of this is that I am a generally focused user 
and particularly I am mainly after server type functions.  I suppose it 
might be a bit different if I wanted a desktop replacement and didn't mind 
having a bunch of things to play with over time.


Many thanks again. I have saved many of your emails for future reference. I 
am blown away at the response and willingness to help. I didn't think that 
existed any more in cyberspace!


Donovan

- Original Message - 
From: Jerry McAllister [EMAIL PROTECTED]

To: Donovan R. Palmer [EMAIL PROTECTED]
Cc: freebsd-questions@freebsd.org
Sent: Tuesday, October 23, 2007 3:46 PM
Subject: Re: Is it difficult to move from Linux?



On Tue, Oct 23, 2007 at 07:03:44AM +0100, Donovan R. Palmer wrote:


Friends... thank you for all of your responses. Last night I read a big
chunk of the handbook and read articles such as
http://www.over-yonder.net/~fullermd/rants/bsd4linux/bsd4linux1.php  Very
helpful. I was impressed with the quality of the documentation and I like
the disciplined approach to FreeBSD.

The more I read, the more I was convinced that FreeBSD was what I was
looking for and would satisfy some of my needs/disillusionment with 
Linux.

I look forward to putting it on a box and starting the learn the
differences. Many thanks again!


I think you are right.

A couple of thing I forgot to mention.

First, the default shell in FreeBSD is tcsh.
I like it for most things and find myself grinding my teeth at bash,
but you can easily change the shell to suit you.   If it is bash, then
you need to install it from ports and enter it in /etc/shells  and
then change your /etc/passwd entry using vipw(8).

The other one that can make things easier is that the directory
and file layout is described in a man page.   man hier  will get it
for you and can be very valuable in getting used to FreeBSD.

Note that all the directories listed in hier from / down to /stand  need
to be in the root file system for things to work, especially at boot
time and in single user mode.

jerry



- Original Message - 
From: Chad Perrin [EMAIL PROTECTED]

To: freebsd-questions@freebsd.org
Sent: Tuesday, October 23, 2007 1:42 AM
Subject: Re: Is it difficult to move from Linux?


On Mon, Oct 22, 2007 at 07:33:57PM +0100, Donovan R. Palmer wrote:

I have been using Linux for over 10 years, but have for a number of
reasons
become very interested in learning to use FreeBSD. Are there any ex or
current Linux users here and could you tell me how hard it is to make 
the
shift from Linux?  Is there anything in particular which has been 
written

which would be useful to read?

I found it dead easy -- much, much easier than making the switch from MS
Windows to Linux was.

The best source of information on FreeBSD for new FreeBSD users is, in 
my

opinion, the FreeBSD handbook:

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

Another excellent source of information is The Complete FreeBSD:

 http://www.lemis.com/grog/Documentation/CFBSD/

There are a couple other books out there that I've found to be quite
excellent, as well.

In general, I think you'll find much of the differences between most
Linux distributions and FreeBSD quite minor, but a touch strange at
first, and in the long run very positive.  At least, that's my
experience.

-- 
CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ]
They always say that when life gives you lemons you should make 
lemonade.

I always wonder -- isn't the lemonade going to suck if life doesn't give
you any sugar?
___
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]

___
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]


Anyone get Flash 9 working?

2007-10-23 Thread Mark Moellering
The basic question,
has anyone gotten Flash-9 running on FreeBSD ?  linux-version? wine version? 
FreeBSD 7?  anything?

I realize this is one of those issues that reappears every few months, 
however, without Flash 9, it is difficult to do some website development in a 
pure FreeBSD environment.

Thanks in advance

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


Re: Is it difficult to move from Linux?

2007-10-23 Thread Chad Perrin
On Tue, Oct 23, 2007 at 03:01:41PM +0200, Gueven Bay wrote:
   On Mon, 2007-10-22 at 19:33 +0100, Donovan R. Palmer wrote:
Hi,
   
I have been using Linux for over 10 years, but have for a number of
reasons become very interested in learning to use FreeBSD. Are there any
ex or current Linux users here and could you tell me how hard it is to
make the shift from Linux?  Is there anything in particular which has
been written which would be useful to read?
 
 And you can say that with FreeBSD you get a stable system as Debian
 GNU/Linux is _and_ you get a source based system as Gentoo GNU/Linux.

In my experience, it's both more stable and more up to date than Debian.
Before FreeBSD, my primary OS choice was Debian, but ultimately
everything I liked about Debian was even better with FreeBSD.

-- 
CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ]
MacUser, Nov. 1990: There comes a time in the history of any project when
it becomes necessary to shoot the engineers and begin production.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: USB-Serial adapter, how to make /dev/cuad* appear?

2007-10-23 Thread Roland Smith
On Tue, Oct 23, 2007 at 06:06:08PM +0200, Benjamin Lutz wrote:
 I'd expect some device to show up in /dev, cuad1, ucom0, something like 
 that, but I get nothing. (cuad0 is taken by the onboard serial port, 
 which, alas, isn't wired to the outside of the case).

Looking at ucom(4):

FILES
 /dev/cuaU?

See if that exists.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpGwot6d1Idk.pgp
Description: PGP signature


Re: Is it difficult to move from Linux?

2007-10-23 Thread Jeff Mohler
The difficulty for my moving the last of my Linux boxes, is...iscsi support.

God how I wish I could map luns, boot from luns, and share lun love with my
other freebsd boxes.


Im starting on another venture, that I -want- on FreeBSD, but likely will
not be able to, because I cant use iscsi on it.  (And wont on Fbsd until its
been out for a while and proven stable).

But other than that, my move was painless, I -hate- installing RH.

On 10/23/07, Chad Perrin [EMAIL PROTECTED] wrote:

 On Tue, Oct 23, 2007 at 03:01:41PM +0200, Gueven Bay wrote:
On Mon, 2007-10-22 at 19:33 +0100, Donovan R. Palmer wrote:
 Hi,

 I have been using Linux for over 10 years, but have for a number
 of
 reasons become very interested in learning to use FreeBSD. Are
 there any
 ex or current Linux users here and could you tell me how hard it
 is to
 make the shift from Linux?  Is there anything in particular which
 has
 been written which would be useful to read?
 
  And you can say that with FreeBSD you get a stable system as Debian
  GNU/Linux is _and_ you get a source based system as Gentoo GNU/Linux.

 In my experience, it's both more stable and more up to date than Debian.
 Before FreeBSD, my primary OS choice was Debian, but ultimately
 everything I liked about Debian was even better with FreeBSD.

 --
 CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ]
 MacUser, Nov. 1990: There comes a time in the history of any project when
 it becomes necessary to shoot the engineers and begin production.
 ___
 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: user ppp and PPPoE bridging

2007-10-23 Thread freebsd

Hi Nikos,

Thank you and rw for your replies.

The freebsd box is connected directly via ed1 to the dsl modem;
a crossover cable is used; the packets are clearly reaching the modem,
as it records them as received.
I've simplified ppp.conf to the following, essentially the ppp.conf.sample:

default:
 set log all -timer

blackfoot:
 set device PPPoE:ed1
 enable lqr echo
 set cd 5
 set redial 0 0
 set dial
 set login
 set authname 
 set authkey 
 add! default HISADDR


#ifconfig ed1
ed1: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST mtu 1500
inet6 fe80::220:18ff:fe72:8b72%ed1 prefixlen 64 scopeid 0x3
ether 00:20:18:72:8b:72

#tcpdump -efntl -i ed1
tcpdump: WARNING: ed1: no IPv4 address assigned
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on ed1, link-type EN10MB (Ethernet), capture size 96 bytes
00:20:18:72:8b:72  ff:ff:ff:ff:ff:ff, ethertype PPPoE D (0x8863), length 32: 
PPPoE PADI [Host-Uniq 0x402DA4C1] [Service-Name]
00:20:18:72:8b:72  ff:ff:ff:ff:ff:ff, ethertype PPPoE D (0x8863), length 32: 
PPPoE PADI [Host-Uniq 0x402DA4C1] [Service-Name]

It appears that no PADO reply is being received by the modem;
the modem shows two packets being transmitted, but non being received.
Since the line is marked as up by the modem,
and since the line comes up properly when the modem is operating in
full PPPoE mode, I'm puzzled as to what kind of mismatch could be
preventing the ISP end from responding.
This is a zyxel 642r modem; I can't try my other modem, a cisco 678,
because it doesn't support a vci  63.

The modem is set to use VC-based multiplexing, vpi=0, vci=100
These are the parameters used for PPPoE, and I presume are still
required as part of the ATM layer when bridging.

I am assuming there should be no need for my ISP to be notified that I
am trying to use bridging in the modem, since it should be transparent
on their end.  They claim not to support bridging, but I don't see how
they can say that, other than that they don't want to deal with the
support issues.  Is this a reasonable assumption?

Nikos Vassiliadis wrote:

On Tuesday 23 October 2007 05:31:45 [EMAIL PROTECTED] wrote:

I'm attempting to change a DSL link from using PPPoE in the DSL modem
to doing PPPoE on 6.1, with the modem in bridging mode.

I've put the DSL modem in bridging mode, and it brings up the link
properly -- or at least it reports it as up (DSL led steady; modem
status report shows it as up, rfc 1483.

Using user ppp, when I attempt to establish the PPPoE connection, I
never get very far -- ppp dies when it tries to acquire carrier.  I
don't understand this, as there isn't a carrier signal to acquire on
an ethernet.  


There is carrier on ethernet. Ethernet belongs to the CSMA/DA model
where CS means carrier sense.

I tried disabling cd in ppp.conf but as noted in the doc, 
it's required for a PPPoE connection and is forced on.


Also, how do I know know which interface it is attempting to connect to?
The debug log shows it found five interfaces, but doesn't indicate which
one it is trying to connect to.


It tries to use ed1 for PPPoE(set device PPPoE:ed1)
Can you use the minimal configuration labelled pppoe
from /usr/share/examples/ppp/ppp.conf.sample?
The only things you have to change are:
The ethernet interface it will try PPPoE.
username and password.

Is your ed1 connected to the modem directly?
Or it goes through a switch? Can you try connecting
your ed1 directly on your DSL modem's ethernet port?
You might need a crossover cable to do this(
http://en.wikipedia.org/wiki/Ethernet_crossover_cable)
or not since these days many ethernet ports do
this automatically.


Please post also ifconfig and run tcpdump on ed1
during try.


...

I dont'see anything wrong, but I may be wrong. The small
sample configuration always worked for me. Why don't you
use it as a starting point?



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


Re: Buying new sound card

2007-10-23 Thread Roland Smith
On Tue, Oct 23, 2007 at 04:29:34PM +0200, Dick Hoogendijk wrote:
 Pieter de Goeje [EMAIL PROTECTED] writes:
 
  On Sunday 21 October 2007, Roberth Sjonøy wrote:
  Anyone who can confirm that a Creative SB Audigy SE PCI works with FreeBSD?
  It doesn't work, unless you install the oss driver from
  http://www.4front-tech.com
 
 That is not too hard ;-)
 
  Note that in my opinion the native FreeBSD drivers are a lot better.
 
 What drivers? The ones that don't exist for the card?
 
 In my opinion the SB Audigy is a very common card that should have
 been supported long ago. On the other hand, the OSS drivers are very good.

The command 'apropos Audigy' gives: snd_emu10k1(4)

I quote:

  The snd_emu10k1 driver supports the following sound cards:

 o   Creative SoundBlaster Live! (EMU10K1 Chipset)
 o   Creative SoundBlaster Audigy (EMU10K2 Chipset)
 o   Creative SoundBlaster Audigy 2 (EMU10K2 Chipset)
 o   Creative SoundBlaster Audigy 2 (EMU10K3 Chipset)

I'm not sure if this is the right one, because I can't find the type of
chip used in the SE on the Creative site.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgp3Ak1zQmIuG.pgp
Description: PGP signature


resizing partitions

2007-10-23 Thread Chad Perrin
I have need to alter some partition sizes on a (laptop) system I use
daily, with FreeBSD 6.2-RELEASE installed.  Are there tools you'd
recommend for this, that should be stable and not prone to hosing up my
filesystems?  In particular, I probably don't need to shrink any
partitions -- only grow them -- but I'm not sure how I want to handle
this at this time.  I worry a bit about using some Linux LiveCD's
partition management tools on a FreeBSD system.  Any advice would be
appreciated.

-- 
CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ]
John W. Russell: People point. Sometimes that's just easier. They also use
words. Sometimes that's just easier. For the same reasons that pointing has
not made words obsolete, there will always be command lines.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Anyone get Flash 9 working?

2007-10-23 Thread Aryeh M. Friedman
Mark Moellering wrote:
 The basic question,
 has anyone gotten Flash-9 running on FreeBSD ?  linux-version? wine version? 
 FreeBSD 7?  anything?
   

the only solution I have found is install xp as a guest OS under qemu
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: USB-Serial adapter, how to make /dev/cuad* appear?

2007-10-23 Thread Benjamin Lutz
On Tuesday 23 October 2007 19:54:44 Roland Smith wrote:
 On Tue, Oct 23, 2007 at 06:06:08PM +0200, Benjamin Lutz wrote:
  I'd expect some device to show up in /dev, cuad1, ucom0, something
  like that, but I get nothing. (cuad0 is taken by the onboard serial
  port, which, alas, isn't wired to the outside of the case).

 Looking at ucom(4):

 FILES
  /dev/cuaU?

 See if that exists.

No such luck I'm afraid. There's only cuaU0, which belongs to the 
onboard serial port too.

Cheers
Benjamin


signature.asc
Description: This is a digitally signed message part.


multiple postgresql servers in multiple jails?

2007-10-23 Thread Oliver Peter
Does anybody have a running system with more than one jail hosting
more than one postgres server?

I can only have one pgsql database on one host at all.  I already
tried to increase the shared memory off my machine with additional
kernel [1] and sysctl parameters [2] and I also tried to change
the numeric UID directly in the jails into a seperate one.  Same
errors.

Of course I already have defined  jail_sysvipc_allow=YES  in
rc.conf.  I have this issue on 6.2-RELEASE-p8 and 8.0-CURRENT with
postgresql-server-8.2.5_1.


% psql
psql: FATAL:  semctl(458753, 15, SETVAL, 0) failed: Invalid argument


Or some fun with perl/DBD

Out of memory during request for 108 bytes, total sbrk() is 534585344 bytes!
Out of memory during request for 288 bytes, total sbrk() is 534585344 bytes!
Out of memory during request for 288 bytes, total sbrk() is 534585344 bytes!


[1]
options SYSVSHM
options SYSVSEM
options SYSVMSG
options SHMMAXPGS=65536
options SEMMNI=40
options SEMMNS=240
options SEMUME=40
options SEMMNU=120

[2] http://www.freebsddiary.org/jail-multiple.php

-- 
Oliver PETER, eMail: [EMAIL PROTECTED], ICQ# 113969174
Worker bees can leave.  Even drones can fly away.
 The Queen is their slave.


pgpssv1uBVp3M.pgp
Description: PGP signature


Re: Buying new sound card

2007-10-23 Thread Peo Nilsson
On Tue, 2007-10-23 at 20:07 +0200, Roland Smith wrote:
  Pieter de Goeje [EMAIL PROTECTED] writes:
  What drivers? The ones that don't exist for the card?
  
  In my opinion the SB Audigy is a very common card that should have
  been supported long ago. On the other hand, the OSS drivers are very good.
 
 The command 'apropos Audigy' gives: snd_emu10k1(4)
 
 I quote:
 
   The snd_emu10k1 driver supports the following sound cards:
 
  o   Creative SoundBlaster Live! (EMU10K1 Chipset)
  o   Creative SoundBlaster Audigy (EMU10K2 Chipset)
  o   Creative SoundBlaster Audigy 2 (EMU10K2 Chipset)
  o   Creative SoundBlaster Audigy 2 (EMU10K3 Chipset)
 
 I'm not sure if this is the right one, because I can't find the type of
 chip used in the SE on the Creative site.
 
 Roland

I have an agp Audigy with EMU10K2. Works fine for me on 6.2-Release

-- 
/Peo


signature.asc
Description: This is a digitally signed message part


Using OpenSSL from ports

2007-10-23 Thread White Hat
Is there any real advantage to installing 'openssl'
from ports rather than using the version installed in
the base system? Other than the fact that the port
version is slightly newer, is there any other major
difference?

Also, if I did install the port version, how would I
insure that applications would use it as opposed to to
the version in the base system?

Thanks!

-- 
White Hat 
[EMAIL PROTECTED]

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Is it difficult to move from Linux?

2007-10-23 Thread NetOpsCenter

Donovan R. Palmer wrote:

Hi,

I have been using Linux for over 10 years, but have for a number of 
reasons become very interested in learning to use FreeBSD. Are there 
any ex or current Linux users here and could you tell me how hard it 
is to make the shift from Linux?  Is there anything in particular 
which has been written which would be useful to read?


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



Read the FreeBSD handbook.

I found out that FreeBSD was much easier to follow (Files and Such ) 
than Linux  about 9 years ago and have rarely looked back. Unless of 
course when a client has Linux on a server or whatever.  If you have run 
Linux than you can easily note the file names that are different in 
FreeBSD.  You'll see that many  are the same.


Enjoy!


~Al Plant - Honolulu, Hawaii -  Phone:  808-284-2740
 + http://hawaiidakine.com + http://freebsdinfo.org + [EMAIL PROTECTED] +
 + http://internetohana.org   - Supporting - FreeBSD 6.* - 7.* +
All that's really worth doing is what we do for others.- Lewis Carrol


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


Mentor for C self study wanted

2007-10-23 Thread Harald Schmalzbauer
Hello,

I'm abaout to learn C (really learn it, not just to be able to tinker arround 
with).
So I bought a book which has some practices in each chapter.
Now I wrote the little programs and they were almost correct, but the things 
going wrog aren't explained in that book.
Probably it has to do with the compiler, at least it was the case in one 
example.

So I wanted to ask if somebody could be so kind and answer me occasional 
questions by private mail.
The first one was for example the attached code: Why does it segfault?

Thanks in advance,

-Harry

P.S. I will change comment language of course. I'm UTC -1
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: Anyone get Flash 9 working?

2007-10-23 Thread P.U.Kruppa

On Tue, 23 Oct 2007, Mark Moellering wrote:


The basic question,
has anyone gotten Flash-9 running on FreeBSD ?  linux-version? wine version?
FreeBSD 7?  anything?

Now, you can't exactly call it running:
On
FreeBSD 7.0-BETA1 amd64
with
linux_base-fc7-7_1
in
linux-opera-9.24.20071015
with
linux-flashplugin-9.0r48
I can view _some_ flash animations.
But mostly it will crash either linux-opera or X or the complete 
system.

I would say: there is still a long way to go.

Greetings,

Uli.



I realize this is one of those issues that reappears every few months,
however, without Flash 9, it is difficult to do some website development in a
pure FreeBSD environment.

Thanks in advance

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





Peter Ulrich Kruppa
Wuppertal
Germany

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


Re: Can login using root password, but not remotely with SSH

2007-10-23 Thread NetOpsCenter

Jerry McAllister wrote:

On Mon, Oct 22, 2007 at 03:39:19PM -0400, Robert Huff wrote:

  

James writes:



 Add yourself to wheel (which is the root group on FreeBSD, a name
 I believe it inherited from earlier BSDs, but I've no idea what
 the justification for choosing 'wheel' is; any BSD historians
 here - you'd be welcome to let us know!)
  

Not sure, but I believe wheel predates UNIX.  I have
certainly seen the idea on OSes that do.



Wheel is 'big wheel' as in the hot shot who has the run of things
and bosses folks around - or thinks he can.

jerry

  

Robert Huff
___
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]

  

Aloha!

I always thought of the root as the hub of a wheel and the qualified 
users of the hub would be joined to the hub of the wheel by spokes from 
out on the rim. Maybe this is where it came from.



~Al Plant - Honolulu, Hawaii -  Phone:  808-284-2740
 + http://hawaiidakine.com + http://freebsdinfo.org + [EMAIL PROTECTED] +
 + http://internetohana.org   - Supporting - FreeBSD 6.* - 7.* +
All that's really worth doing is what we do for others.- Lewis Carrol


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


Re: Is it difficult to move from Linux?

2007-10-23 Thread Erik Norgaard

Donovan R. Palmer wrote:

I have been using Linux for over 10 years, but have for a number of reasons 
become very interested in learning to use FreeBSD. Are there any ex or 
current Linux users here and could you tell me how hard it is to make the 
shift from Linux?  Is there anything in particular which has been written 
which would be useful to read?


I first tried to FreeBSD 4.3 coming from RedHat Linux. My main problem 
was configuring X but there were other things too, so I fell back on 
Linux. Then I made the switch when RH got to 8.0 which was full of bugs 
and it somehow just came very easy. I don't know what I did, I guess I 
just got it right. I had no problem with X. Since then, I just wonder 
what took me so long to make the switch.


Another typical problem is that Linux users are used to bash. And the 
default shell in FreeBSD is csh. I made that switch too, actually I 
quite like it now.


There is plenty of documentation, I often found myself browsing 
documentation for FreeBSD while using Linux because it was just better 
written. Check the handbook for a start.


Cheers, Erik
--
Erik Nørgaard
Ph: +34.666334818   http://www.locolomo.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: help in deletion part of a line

2007-10-23 Thread Gary Kline
On Tue, Oct 23, 2007 at 03:37:13AM +0100, Benjamin M. A'Lee wrote:
 On Mon, Oct 22, 2007 at 03:41:40PM -0700, Gary Kline wrote:
  
  Is there an easier way by sed or ed to remove strings 
  (caight by grep) of the sort:
  
  part5.chapter2.text-
  
  where 5 and 2 can be any integer below 10?
  
  (I know how to delete the *entire* line using ed, but not just
  the first part?
 
 gilmour% echo testpart5.chapter2.text-test | sed 
 's/part[0-9].chapter[0-9]\.text-//g' 
 testtest
 
 Modify as necessary.
 

Thanks.   I was able to get rid of things likie -567-[text] from
^, but the part[1-5]. --- OH::: I didn't escape the .

Duh::: hit myself in the forehead! ... slinking away... .

gary
 -- 
 Benjamin A'Lee [EMAIL PROTECTED]
 http://subvert.org.uk/~bma/
 The right to search for truth implies also a duty; one must not conceal
 any part of what one has recognized to be true. - Albert Einstein



-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
  http://jottings.thought.org   http://transfinite.thought.org

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


Re: oflag option in GNU dd - equivalent in FreeBSD dd ?

2007-10-23 Thread Oliver Fromme
Dan Nelson wrote:
  Oliver Fromme wrote:
   Of course, the easiest way is to do this:
   
   $ dd if=/blah  /bleh

I still think the OP should prefer that solution.

   If you cannot do that, please explain why.  If you know
   your reason, there might be an alternative way to do it.
   
dd if=/blah of=/bleh conv=notrunc seek=`ls -s /bleh | cut -f1 -d ' ' -`

I don't know if any simpler way is possible (anyone?).
   
   $ dd if=/blah of=/bleh conv=notrunc seek=$(stat -f%z /bleh)
  
  I don't think that will work, since seek's argument is in blocks.

Oops, you're right.  I forgot about that.

  Even
  if you divide by 512 (or whatever you decide to set bs=), if the file
  you're appending do isn't a multiple of the blocksize, you'll end up
  chopping part of the end off.

I wonder how GNU dd's append oflag behaves in that case.
It would also either have to chop some bytes off the end,
or leave a gap of zeros.  Either way could be emulated.

$ dd if=/blah of=/bleh conv=notrunc seek=$(( $(stat -f%z /bleh) / 512 ))

That one would chop some bytes of the end if the file size
isn't a multiple of 512 (the default block size).  To leave
a gap in that case, use this formula:

$ ... seek=$(( ($(stat -f%z /bleh) + 511) / 512 ))

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

Emacs ist für mich kein Editor. Für mich ist das genau das gleiche, als
wenn ich nach einem Fahrrad (für die Sonntagbrötchen) frage und einen
pangalaktischen Raumkreuzer mit 10 km Gesamtlänge bekomme. Ich weiß nicht,
was ich damit soll. -- Frank Klemm, de.comp.os.unix.discussion
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: help in deletion part of a line

2007-10-23 Thread Gary Kline
On Tue, Oct 23, 2007 at 08:13:49AM +0530, Shantanoo Mahajan wrote:
 On 23-Oct-07, at 4:11 AM, Gary Kline wrote:
 
 
  Is there an easier way by sed or ed to remove strings
  (caight by grep) of the sort:
 
  part5.chapter2.text-
 
  where 5 and 2 can be any integer below 10?
 
  (I know how to delete the *entire* line using ed, but not just
  the first part?
 
 $ echo 'part5.chapter2.text-' | tr -d '[0-9]'
 part.chapter.text-
 
 $ echo 'part5.chapter2.text-' | sed 's/[0-9]//g'
 part.chapter.text-
 


This would help unify my regex since I have part7.chapter4.text
as well as misc other shtuff.  (I like tr ... it's easy and has
many uses... .)

thanks.

gary

 
 regards,
 shantanoo
 

-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
  http://jottings.thought.org   http://transfinite.thought.org

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


Re: Anyone get Flash 9 working?

2007-10-23 Thread Yuri Pankov

On Tue, 2007-10-23 at 13:38 -0400, Mark Moellering wrote:
 The basic question,
 has anyone gotten Flash-9 running on FreeBSD ?  linux-version? wine version? 
^^^ 

Thanks for idea! :-) I've just installed Firefox 2.0.0.6 and
FlashPlayer9 in WINE 0.9.47 and it's working flawlessly so far.

 FreeBSD 7?  anything?
 
 I realize this is one of those issues that reappears every few months, 
 however, without Flash 9, it is difficult to do some website development in a 
 pure FreeBSD environment.
 
 Thanks in advance
 
 Mark Moellering


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


Re: Mentor for C self study wanted

2007-10-23 Thread cpghost
On Tue, 23 Oct 2007 20:44:52 +0200
Harald Schmalzbauer [EMAIL PROTECTED] wrote:

 The first one was for example the attached code: Why does it segfault?

Mailman ate the attachment... Can't see it here.

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: multiple postgresql servers in multiple jails?

2007-10-23 Thread Oliver Fromme
Oliver Peter wrote:
  Does anybody have a running system with more than one jail hosting
  more than one postgres server?

Yes, you must configure them to use different port numbers,
because the SysV IPC IDs are derived from the port number.
If you try to run both servers with the default port, you'll
get a conflict.  Configure different port numbers, and it
will work.

By the way, the PostgreSQL developers do _not_ recommend to
run multiple servers on the same machine, because of bad
efficiency.  It is much better (performance-wise) to run
all databases within the same server engine.  PostgreSQL
has all the authentication and permission features you need
to separate multiple databases within a single server, so
there is really no need to use multiple jails.

  options SHMMAXPGS=65536
  options SEMMNI=40
  options SEMMNS=240
  options SEMUME=40
  options SEMMNU=120

I have these on a machine with a single PostgreSQL server,
as per recommendations of the developers:

options SHMMAXPGS=65536
options SEMMAP=1024
options SEMMNI=64
options SEMMNS=1024
options SEMUME=64
options SEMMNU=128

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

C++ is the only current language making COBOL look good.
-- Bertrand Meyer
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: su: not running setuid

2007-10-23 Thread Adam J Richardson

Christopher Cowart wrote:

Unless you can find some local privilege escalation exploit, I'm
thinking you're stuck. You can probably fix it in single-user mode:
* Reboot
* Pick single user mode from the boot menu
* Accept the default shell
$ fsck -p
$ mount -u /
$ mount -a -t ufs
$ chown root /usr/bin/su

But if the command above ran to completion, you probably have a mess of
permissions on your filesystem. You may want to look into rebuilding /
reinstalling world while you're in single. 


What about going to single user mode and editing /etc/passwd so the 
root line has the username uname? Or add user uname with UID 0?


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


Re: Mentor for C self study wanted

2007-10-23 Thread Bill Moran
In response to cpghost [EMAIL PROTECTED]:

 On Tue, 23 Oct 2007 20:44:52 +0200
 Harald Schmalzbauer [EMAIL PROTECTED] wrote:
 
  The first one was for example the attached code: Why does it segfault?
 
 Mailman ate the attachment... Can't see it here.

I may be out of line, but I think if you're using FreeBSD as your
learning platform, that it wouldn't be a problem to ask this list.

Although, you'll have to include your code inline to get past the
sanitizers.

-- 
Bill Moran
http://www.potentialtech.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Mentor for C self study wanted

2007-10-23 Thread Harald Schmalzbauer
Am Dienstag, 23. Oktober 2007 22:24:54 schrieb Bill Moran:
 In response to cpghost [EMAIL PROTECTED]:
  On Tue, 23 Oct 2007 20:44:52 +0200
 
  Harald Schmalzbauer [EMAIL PROTECTED] wrote:
   The first one was for example the attached code: Why does it segfault?
 
  Mailman ate the attachment... Can't see it here.

 I may be out of line, but I think if you're using FreeBSD as your
 learning platform, that it wouldn't be a problem to ask this list.
 Harald Schmalzbauer wrote:
  Am Dienstag, 23. Oktober 2007 21:43:52 schrieben Sie:
  Hello Aryeh,
 
  I'm willing to pay fair fees, but are you interested in micro payment
  ;) ?
 
  For other reasons I love micro payments.
 
  Serious, I'll have the one or other short question per week (I'm
  usually busy, just making spare time lessons from my book (UTC-1 spare
  time)).
 
  Just so I know what level to present on what is your background in CS
  and programming?
 
  CS??
  I'm able to solve problems analytically, but I don't know any language
  really well.
  I know bourne shell, csh, pascal, and basic. And a tiny bit asm, but
  that's been on ZX81.

 Although, you'll have to include your code inline to get past the
 sanitizers.

Thanks all,

here was my example, just for completeness, I found mentors for my needs.

Thanks a lot to all!


#include stdio.h

void main()
{
  short nnote;

  // Numerischen Notenwert einlesen
  printf(Bitte numerischen Schulnotenwert eingeben: );
  scanf(%d,nnote);

  switch (nnote)
  {
case 1: printf(Die Note %d entspricht sehr gut.,nnote);
break;
case 2: printf(Die Note %d entspricht gut.,nnote);
break;
case 3: printf(Die Note %d entspricht befriedigend.,nnote);
break;
case 4: printf(Die Note %d entspricht ausreichend.,nnote);
break;
case 5: printf(Die Note %d entspricht mangelhaft.,nnote);
break;
case 6: printf(Die Note %d entspricht ungenügend.,nnote);
break;
default: printf(%d ist keine zulässige Schulnote!);
  }
  printf(\n);
}

P.S.:
I found that declaring nnote as int soleves my problem, but I couldnÄt 
understand why.
Another one was the result of default: nnote was -1077942208 instead of 9 for 
example.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Mentor for C self study wanted

2007-10-23 Thread Harald Schmalzbauer
Am Dienstag, 23. Oktober 2007 23:24:09 schrieb Harald Schmalzbauer:
[*snip*]
  Although, you'll have to include your code inline to get past the
  sanitizers.

 Thanks all,

 here was my example, just for completeness, I found mentors for my needs.

 Thanks a lot to all!


 #include stdio.h

 void main()
 {
   short nnote;

   // Numerischen Notenwert einlesen
   printf(Bitte numerischen Schulnotenwert eingeben: );
   scanf(%d,nnote);

   switch (nnote)
   {
 case 1: printf(Die Note %d entspricht sehr gut.,nnote);
 break;
[snip]
 default: printf(%d ist keine zulässige Schulnote!);
   }
   printf(\n);
 }

 P.S.:
 I found that declaring nnote as int soleves my problem, but I couldnÄt
 understand why.
 Another one was the result of default: nnote was -1077942208 instead of 9
 for example.

Ok, the last one is a typo, I forgot ...ote!,%d);.
But interesting that ther's some output. Constant output

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


Re: su: not running setuid

2007-10-23 Thread Christopher Cowart
On Tue, Oct 23, 2007 at 09:09:04PM +0100, Adam J Richardson wrote:
 Christopher Cowart wrote:
 Unless you can find some local privilege escalation exploit, I'm
 thinking you're stuck. You can probably fix it in single-user mode:
 * Reboot
 * Pick single user mode from the boot menu
 * Accept the default shell
 $ fsck -p
 $ mount -u /
 $ mount -a -t ufs
 $ chown root /usr/bin/su
 But if the command above ran to completion, you probably have a mess of
 permissions on your filesystem. You may want to look into rebuilding /
 reinstalling world while you're in single. 
 
 What about going to single user mode and editing /etc/passwd so the root 
 line has the username uname? Or add user uname with UID 0?

The chown command would have looked up uname via libnss and used the
numeric UID to alter the filesystem entries. The most you could do here
is change the symbolic name for the uname user and make the ls -l
output look different. Either way, you're stuck with the files on the
filesystem not being owned by UID 0. I would highly recommend not
mucking with /etc/passwd and letting rebuild world fix things.

-- 
Chris Cowart
Lead Systems Administrator
Network  Infrastructure Services, RSSP-IT
UC Berkeley


pgp7j5Q3F2IX7.pgp
Description: PGP signature


Re: USB-Serial adapter, how to make /dev/cuad* appear?

2007-10-23 Thread Roland Smith
On Tue, Oct 23, 2007 at 08:17:01PM +0200, Benjamin Lutz wrote:
 On Tuesday 23 October 2007 19:54:44 Roland Smith wrote:
  On Tue, Oct 23, 2007 at 06:06:08PM +0200, Benjamin Lutz wrote:
   I'd expect some device to show up in /dev, cuad1, ucom0, something
   like that, but I get nothing. (cuad0 is taken by the onboard serial
   port, which, alas, isn't wired to the outside of the case).
 
  Looking at ucom(4):
 
  FILES
   /dev/cuaU?
 
  See if that exists.
 
 No such luck I'm afraid. There's only cuaU0, which belongs to the 
 onboard serial port too.

Does the onboard serial port work via USB? How odd! On my standard PC,
the serial ports are driven by the sio driver, and have /dev/cuad* and
/dev/ttyd* devices, noc cuaU. 

Do you have the correct driver for the converter loaded next to ucom?
The ucom manual page gives a list of them.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpxD3nYXTpZk.pgp
Description: PGP signature


Re: Mentor for C self study wanted

2007-10-23 Thread Derek Ragona

At 04:24 PM 10/23/2007, Harald Schmalzbauer wrote:

Am Dienstag, 23. Oktober 2007 22:24:54 schrieb Bill Moran:
 In response to cpghost [EMAIL PROTECTED]:
  On Tue, 23 Oct 2007 20:44:52 +0200
 
  Harald Schmalzbauer [EMAIL PROTECTED] wrote:
   The first one was for example the attached code: Why does it segfault?
 
  Mailman ate the attachment... Can't see it here.

 I may be out of line, but I think if you're using FreeBSD as your
 learning platform, that it wouldn't be a problem to ask this list.
 Harald Schmalzbauer wrote:
  Am Dienstag, 23. Oktober 2007 21:43:52 schrieben Sie:
  Hello Aryeh,
 
  I'm willing to pay fair fees, but are you interested in micro payment
  ;) ?
 
  For other reasons I love micro payments.
 
  Serious, I'll have the one or other short question per week (I'm
  usually busy, just making spare time lessons from my book (UTC-1 spare
  time)).
 
  Just so I know what level to present on what is your background in CS
  and programming?
 
  CS??
  I'm able to solve problems analytically, but I don't know any language
  really well.
  I know bourne shell, csh, pascal, and basic. And a tiny bit asm, but
  that's been on ZX81.

 Although, you'll have to include your code inline to get past the
 sanitizers.

Thanks all,

here was my example, just for completeness, I found mentors for my needs.

Thanks a lot to all!


#include stdio.h

void main()
{
  short nnote;

  // Numerischen Notenwert einlesen
  printf(Bitte numerischen Schulnotenwert eingeben: );
  scanf(%d,nnote);

  switch (nnote)
  {
case 1: printf(Die Note %d entspricht sehr gut.,nnote);
break;
case 2: printf(Die Note %d entspricht gut.,nnote);
break;
case 3: printf(Die Note %d entspricht befriedigend.,nnote);
break;
case 4: printf(Die Note %d entspricht ausreichend.,nnote);
break;
case 5: printf(Die Note %d entspricht mangelhaft.,nnote);
break;
case 6: printf(Die Note %d entspricht ungenügend.,nnote);
break;
default: printf(%d ist keine zulässige Schulnote!);
  }
  printf(\n);
}

P.S.:
I found that declaring nnote as int soleves my problem, but I couldnÄt
understand why.
Another one was the result of default: nnote was -1077942208 instead of 9 for
example.


if you check the man page on scanf:
 d Matches an optionally signed decimal integer; the next pointer must
   be a pointer to int.

You shouldn't try to put a short into an int.  Always declare the correct 
size for variables.  Your segv is because scanf was trying to put an int 
where it won't fit.


You will get the same result if you go off the end of an array.

-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

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


Re: Mentor for C self study wanted

2007-10-23 Thread cpghost
On Tue, 23 Oct 2007 23:24:09 +0200
Harald Schmalzbauer [EMAIL PROTECTED] wrote:

 #include stdio.h
 
 void main()
 {
   short nnote;
^

   // Numerischen Notenwert einlesen
   printf(Bitte numerischen Schulnotenwert eingeben: );
   scanf(%d,nnote);
  ^

 I found that declaring nnote as int soleves my problem, but I
 couldnÄt understand why.
 Another one was the result of default: nnote was -1077942208 instead
 of 9 for example.

There's a mismatch here: scanf(%d, ...) expects a pointer to int,
while nnote is a pointer to a short. Normally, an int occupies more
bytes in memory than a short (typically sizeof(int) == 4 on 32bit
platforms, and sizeof(int) == 8 on 64bit platforms; while typically
sizeof(short) == 2).

So scanf(3) tries to store the result into 4 bytes, but you've provided
a pointer to only 2 bytes of memory. Where will the other 2 bytes be
stored by scanf? In your example, short nnote is an automatic variable:
i.e. it's stored on the stack. So the other 2 bytes will be also saved
on the stack, on a place that's not reserved for this. There could be
anything there, like, say, a part of the return address for the
function, or it could be on some page in memory that's read-only or
non-allocated. In either case, the program behaviour is undefined, and
this normally means it dumps core.

So either replace short nnote with int nnote, OR change %d
to the appropriate format string identifier for short int %hd
(look up man scanf for a list of those identifiers), both in
scanf and printf calls.

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Mentor for C self study wanted

2007-10-23 Thread Bruce Cran

Derek Ragona wrote:

At 04:24 PM 10/23/2007, Harald Schmalzbauer wrote:

Am Dienstag, 23. Oktober 2007 22:24:54 schrieb Bill Moran:
 In response to cpghost [EMAIL PROTECTED]:
  On Tue, 23 Oct 2007 20:44:52 +0200
 
  Harald Schmalzbauer [EMAIL PROTECTED] wrote:
   The first one was for example the attached code: Why does it 
segfault?

 
  Mailman ate the attachment... Can't see it here.

 I may be out of line, but I think if you're using FreeBSD as your
 learning platform, that it wouldn't be a problem to ask this list.
 Harald Schmalzbauer wrote:
  Am Dienstag, 23. Oktober 2007 21:43:52 schrieben Sie:
  Hello Aryeh,
 
  I'm willing to pay fair fees, but are you interested in micro 
payment

  ;) ?
 
  For other reasons I love micro payments.
 
  Serious, I'll have the one or other short question per week (I'm
  usually busy, just making spare time lessons from my book (UTC-1 
spare

  time)).
 
  Just so I know what level to present on what is your background 
in CS

  and programming?
 
  CS??
  I'm able to solve problems analytically, but I don't know any 
language

  really well.
  I know bourne shell, csh, pascal, and basic. And a tiny bit asm, but
  that's been on ZX81.

 Although, you'll have to include your code inline to get past the
 sanitizers.

Thanks all,

here was my example, just for completeness, I found mentors for my needs.

Thanks a lot to all!


#include stdio.h

void main()
{
  short nnote;

  // Numerischen Notenwert einlesen
  printf(Bitte numerischen Schulnotenwert eingeben: );
  scanf(%d,nnote);

  switch (nnote)
  {
case 1: printf(Die Note %d entspricht sehr gut.,nnote);
break;
case 2: printf(Die Note %d entspricht gut.,nnote);
break;
case 3: printf(Die Note %d entspricht befriedigend.,nnote);
break;
case 4: printf(Die Note %d entspricht ausreichend.,nnote);
break;
case 5: printf(Die Note %d entspricht mangelhaft.,nnote);
break;
case 6: printf(Die Note %d entspricht ungenügend.,nnote);
break;
default: printf(%d ist keine zulässige Schulnote!);
  }
  printf(\n);
}

P.S.:
I found that declaring nnote as int soleves my problem, but I couldnÄt
understand why.
Another one was the result of default: nnote was -1077942208 instead 
of 9 for

example.


if you check the man page on scanf:
 d Matches an optionally signed decimal integer; the next pointer must
   be a pointer to int.

You shouldn't try to put a short into an int.  Always declare the 
correct size for variables.  Your segv is because scanf was trying to 
put an int where it won't fit.


You will get the same result if you go off the end of an array.

-Derek



It's well worth increasing the number of warnings enabled when writing C 
code, to catch any errors early on.  -Wall catches this sort of mistake.


Compiling your code gives the following output:

 gcc -Wall test.c -o test
test.c:4: warning: return type of 'main' is not 'int'
test.c: In function 'main':
test.c:9: warning: format '%d' expects type 'int *', but argument 2 has 
type 'short int *'


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


Re: Mentor for C self study wanted

2007-10-23 Thread Bruce Cran

cpghost wrote:


There's a mismatch here: scanf(%d, ...) expects a pointer to int,
while nnote is a pointer to a short. Normally, an int occupies more
bytes in memory than a short (typically sizeof(int) == 4 on 32bit
platforms, and sizeof(int) == 8 on 64bit platforms; while typically
sizeof(short) == 2).


I think short and int stay the same on both 32 and 64 bit platforms, 
while it's only long that gets bumped to 8 bytes.  At least that seems 
to be what happens on FreeBSD amd64.


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


Re: Mentor for C self study wanted

2007-10-23 Thread cpghost
On Tue, 23 Oct 2007 23:36:40 +0100
Bruce Cran [EMAIL PROTECTED] wrote:

 cpghost wrote:
 
  There's a mismatch here: scanf(%d, ...) expects a pointer to int,
  while nnote is a pointer to a short. Normally, an int occupies more
  bytes in memory than a short (typically sizeof(int) == 4 on 32bit
  platforms, and sizeof(int) == 8 on 64bit platforms; while typically
  sizeof(short) == 2).
 
 I think short and int stay the same on both 32 and 64 bit platforms, 
 while it's only long that gets bumped to 8 bytes.  At least that
 seems to be what happens on FreeBSD amd64.

Hmmm... yep, you're right, I'm wrong! I've switched compilers
too often recently. Yes, on gcc sizeof(int) == 4 on both 32bit and
64bit. Thanks for pointing this out: I stay corrected. ;)

-- 
Cordula's Web. http://www.cordula.ws/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Mentor for C self study wanted

2007-10-23 Thread Heiko Wundram (Beenic)
Am Dienstag, 23. Oktober 2007 23:24:09 schrieb Harald Schmalzbauer:
 #include stdio.h

 void main()
 {
   short nnote;

   // Numerischen Notenwert einlesen
   printf(Bitte numerischen Schulnotenwert eingeben: );
   scanf(%d,nnote);

man 3 scanf (most important thing to look at with any such problem is the 
C-library documentation, which is excellent on FreeBSD) says that for %d 
the passed pointer has to be a pointer to integer, which nnote is not. 
nnote is a pointer to short, which points to 2 bytes, whereas a pointer to 
integer is a pointer to 4 bytes of storage.

Generally, nnote is reserved by the compiler on the stack (as it's a local 
variable) with two bytes (but this depends on your platform), and nnote 
points to the beginning of this area.

As you are probably running on a little-endian architecture, the layout that 
scanf presumes is (from low to high):

--- increasing addresses
lsbyte 2 3 msbyte
^
|-- nnote points here

of which only the first two are interpreted as nnote by the rest of the 
program; the upper two are different stack content (probably a return address 
to the C initialization code calling main(), or a pushed stack pointer, or 
such, as your procedure defines no other locals, see below).

Now, when scanf assigns the four bytes, it'll properly enter the lower two 
bytes of the integer into lsbyte 2 (which is nnote, in the same byte 
order), but overwrite two bytes that are above it.

When main() finishes, the (now broken) saved address (of which 3 msbyte is 
the lower half) is popped, which leads to the SIGSEGV you're seeing.

In case you were on big-endian, the result would be different (i.e., the order 
would be reversed, so that nnote would always be zero or minus one in case 
you entered small integral values in terms of absolute value), but 
effectively, the return address would be overwritten as well, breaking it.

This is effectively what can be called a buffer-overflow.

Just to finish this: the proper format would be %hd, for which the flag h 
signifies that the pointer is a pointer to a short int, also documented in 
man 3 scanf.

Why aren't you seeing this behaviour with printf (i.e., why can you pass a 
short but still specify %d)? Because C defines that functions that take a 
variable number of arguments (of which printf is one such) get each argument 
as type long (the type that's at least as big as a pointer on the current 
platform), so when passing a short as argument to a var-args function, the 
C-compiler inserts code which makes sure that the value is promoted to a long 
in the argument stack for printf. scanf is also a varargs function, but 
you're not passing the value of nnote, but rather a pointer to it, which 
(should) already be as wide as a long.

Finally, looking at (parts of) the assembly that gcc generates (on a 
little-endian i386 machine):

.globl main
.type   main, @function
main:
leal4(%esp), %ecx
andl$-16, %esp
pushl   -4(%ecx)
pushl   %ebp

; Set up the pointer to the local frame (EBP on i386). All locals are
; relative to EBP in a function.
movl%esp, %ebp

; ECX is the first (hidden) local.
pushl   %ecx

subl$20, %esp
subl$12, %esp
pushl   $.LC0
callprintf
addl$16, %esp
subl$8, %esp

; Load the effective address of EBP-6, i.e., nnote, into EAX, which
; is pushed for scanf. scanf will thus write its output on EBP-6 up to
; EBP-3, where EBP-4 and EBP-3 are part of the value that's been
; pushed in the pushl %ecx above.
leal-6(%ebp), %eax

pushl   %eax
pushl   $.LC1
callscanf

...

; Restore the value at EBP-4 (i.e., the ECX that was pushed above) into
; ECX at function exit. This value has been corrupted by the integer
; assignment due to scanf.
movl-4(%ebp), %ecx

leave

; Restore the stack pointer from the (invalidated) %ecx, i.e. produce a
; bogus stack pointer.
leal-4(%ecx), %esp

ret

This produces a segfault, after the return to the C initialization code, 
simply because the stack pointer is totally bogus.

 P.S.:
 I found that declaring nnote as int soleves my problem, but I couldnÄt
 understand why.

Everything clear now? ;-)

-- 
Heiko Wundram
Product  Application Development
-
Office Germany - EXPO PARK HANNOVER
 
Beenic Networks GmbH
Mailänder Straße 2
30539 Hannover
 
Fon+49 511 / 590 935 - 15
Fax+49 511 / 590 935 - 29
Mobil  +49 172 / 437 3 734
Mail   [EMAIL PROTECTED]


Beenic Networks GmbH
-
Sitz der Gesellschaft: Hannover
Geschäftsführer: Jorge Delgado
Registernummer: HRB 61869
Registergericht: Amtsgericht Hannover
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


the right next step?

2007-10-23 Thread Aliya Harbouri
Hi everybody!

If we've

 i)   raised a question about a port on this list
 ii)  sent an email to the port maintainer
 iii) filed a pr
 iv)  waited ~ a month, then followed-up the pr

and there's still no communication / action, what's the right next
step?  Is there a different list to communicate to/on for follow-up?

Thanks a lot!

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


Re: the right next step?

2007-10-23 Thread John Nielsen
On Tuesday 23 October 2007, Aliya Harbouri wrote:
 Hi everybody!

 If we've

  i)   raised a question about a port on this list
  ii)  sent an email to the port maintainer
  iii) filed a pr
  iv)  waited ~ a month, then followed-up the pr

 and there's still no communication / action, what's the right next
 step?  Is there a different list to communicate to/on for follow-up?

Does your PR include a fix?

If it does, make some noise about it on the freebsd-ports mailing list and 
include the PR number and the fact that you've not heard back from the 
maintainer.

If it doesn't, you might still want to bring it up on -ports, but getting it 
fixed depends on someone volunteering to take ownership of the problem (if 
not outright maintainership of the port).

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


Re: the right next step?

2007-10-23 Thread Bill Moran
John Nielsen [EMAIL PROTECTED] wrote:

 On Tuesday 23 October 2007, Aliya Harbouri wrote:
  Hi everybody!
 
  If we've
 
   i)   raised a question about a port on this list
   ii)  sent an email to the port maintainer
   iii) filed a pr
   iv)  waited ~ a month, then followed-up the pr
 
  and there's still no communication / action, what's the right next
  step?  Is there a different list to communicate to/on for follow-up?
 
 Does your PR include a fix?
 
 If it does, make some noise about it on the freebsd-ports mailing list and 
 include the PR number and the fact that you've not heard back from the 
 maintainer.
 
 If it doesn't, you might still want to bring it up on -ports, but getting it 
 fixed depends on someone volunteering to take ownership of the problem (if 
 not outright maintainership of the port).

Note also that a ports freeze is starting soon for 7.0 and 6.3 release.
During the freeze, you'll have difficulty getting any ports changes
through.

-- 
Bill Moran
http://www.potentialtech.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: resizing partitions

2007-10-23 Thread John Nielsen
On Tuesday 23 October 2007, Chad Perrin wrote:
 I have need to alter some partition sizes on a (laptop) system I use
 daily, with FreeBSD 6.2-RELEASE installed.  Are there tools you'd
 recommend for this, that should be stable and not prone to hosing up my
 filesystems?  In particular, I probably don't need to shrink any
 partitions -- only grow them -- but I'm not sure how I want to handle
 this at this time.  I worry a bit about using some Linux LiveCD's
 partition management tools on a FreeBSD system.  Any advice would be
 appreciated.

The best tools (IMO) for this are dump and restore. If you have external 
storage, storage on another system accessible by a reasonably fast network 
from your laptop, or dvd burner (if the example here[1] works, I haven't 
tried it) then this will definitely be your best option. Make your backup 
using dump and verify that it's complete, intact, and able to be restored 
from a fixit CD. Then (still from the fixit CD) blow away your existing 
partitions, make your new ones, and run restore to put your data back.

If that option doesn't appeal to you you should still make and verify a 
complete backup before doing anything else. Depending on how much free 
space (and possibly swap) you have on your disk, you could possibly do a 
few different passes using growfs (in the base system) to this effect:
identify next (in block order on the disk) partition to be grown.
if there is no (or not enough) unpartitioned space after the growing 
partition, move everything from the next partition to other partitions, 
possibly creating temporary partitions closer to the end of the disk, or 
permanently relocating one or more partitions to the end of the disk, or 
temporarily converting your swap partition to a filesystem (be sure to not 
use it as swap for the duration, of course)...
destroy the newly freed partition
use growfs
if there's room and a need, recreate the destroyed partition and 
restore 
its contents from elsewhere
repeat

I share your doubts about Linux utilities being able to handle UFS (esp. 
UFS2) filesystems correctly.

JN

[1] http://fuse4bsd.creo.hu/localcgi/man-cgi.cgi?dump+8
Specifically, the example command line is:
/sbin/dump -0u  -L -C16 -B4589840 -P 'growisofs -Z /dev/cd0=/dev/fd/0' /u
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Buying new sound card

2007-10-23 Thread Pieter de Goeje
On Tuesday 23 October 2007, Roland Smith wrote:
 On Tue, Oct 23, 2007 at 04:29:34PM +0200, Dick Hoogendijk wrote:
  Pieter de Goeje [EMAIL PROTECTED] writes:
   On Sunday 21 October 2007, Roberth Sjonøy wrote:
   Anyone who can confirm that a Creative SB Audigy SE PCI works with
   FreeBSD?
  
   It doesn't work, unless you install the oss driver from
   http://www.4front-tech.com
 
  That is not too hard ;-)
The OSS drivers do not integrate as well as the native drivers with most 
multimedia applications. Features like automatic vchannels are missing. Also, 
I found the mmap'ed audio support to be buggy, but this may have changed.
 
   Note that in my opinion the native FreeBSD drivers are a lot better.
 
  What drivers? The ones that don't exist for the card?
Drivers for supported cards ofcourse :)
 
  In my opinion the SB Audigy is a very common card that should have
  been supported long ago. On the other hand, the OSS drivers are very
  good.

 The command 'apropos Audigy' gives: snd_emu10k1(4)

 I quote:

   The snd_emu10k1 driver supports the following sound cards:

  o   Creative SoundBlaster Live! (EMU10K1 Chipset)
  o   Creative SoundBlaster Audigy (EMU10K2 Chipset)
  o   Creative SoundBlaster Audigy 2 (EMU10K2 Chipset)
  o   Creative SoundBlaster Audigy 2 (EMU10K3 Chipset)

 I'm not sure if this is the right one, because I can't find the type of
 chip used in the SE on the Creative site.
The Audigy SE (24bit/96khz) isn't among the supported cards. I bought this 
card some time ago because it was dirt cheap, only to discover that there was 
no native freebsd driver for it. The chip is different from the standard 
Audigy. I have to say, the windows drivers sucked too. It is now collecting 
dust in my hardware bin :)


 Roland


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


Re: oflag option in GNU dd - equivalent in FreeBSD dd ?

2007-10-23 Thread Bahman M.
On 2007-10-23 RW wrote:
 On Tue, 23 Oct 2007 16:42:46 +0330
 Bahman M. [EMAIL PROTECTED] wrote:
 
  On 2007-10-22 Juri Mianovich wrote:
   I am used to using this command in Linux, using GNU
   dd:
   
   dd if=/blah of=/bleh oflag=append conv=notrunc
   
   The problem is, FreeBSD 'dd' does not understand the
   oflag argument.
   
   Is there some equivalent in the FreeBSD 'dd' syntax
   that I can use, or am I forced to install GNU utils ?
   
  dd if=/blah of=/bleh conv=notrunc seek=`ls -s /bleh | cut -f1 -d ' '
  -`
  
  I don't know if any simpler way is possible (anyone?).
  
 
 is it any different to 
 
 dd if=/blah  /bleh 

Not at all.  But as OP is trying to avoid 'cat /blah  /bleh' I
assumed that he also wouldn't want the shell to append the data
to /bleh; I may be wrong though.

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


  1   2   >