Re: Configuration of Grub?

2006-12-09 Thread Karl Sinn
Hi,

> I'm using this:
>
> title FreeBSD 6.2-STABLE
> root (hd1,0,a)
> kernel /boot/loader
>
> title FreeBSD 7.0-CURRENT
> root (hd0,2,a)
> kernel /boot/loader

I tried, but it still does not work.

Grub is giving a "file not found" message. If I understand it right it 
searches the /boot/loader on my Linux hard disk.

I have found loader and loader.conf on the FreeBSD installation disk can I 
just copy them?

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


build problems with gnupg-1.4.6_1,intltool-0.35.1

2006-12-09 Thread bf
I've had problems building the ports gnupg-1.4.6_1 and
intltool-0.35.1 using 'portmanager -u', or 'make
install' in the appropriate directories of my ports
tree.  I keep encountering the messages(my comments in
[] are not part of the message):

WARNING: `automake-1.9' is missing on your system. You
should only need it if you modified `Makefile.am'[or
another such file], ...

and

WARNING: `autoconf' is missing on your system.  You
should only need it if you modified `configure.in' [or
another such file]...

which are repeated as the build seems to go into an
infinite loop.  I haven't modified these files (at
least manually), and I've the following packages
installed on my system:

autoconf-2.13.000227_5
autoconf-2.53_3
autoconf-2.59_2
autoconf-2.61
automake-1.4.6_2
automake-1.5_2,1
automake-1.9.6
gmake-3.81_1
gnu-autoconf-2.61
gnu-automake-1.10

I'm running FreeBSD-6.1-RELEASE.  Are these problems
caused by the recent update of the gnu-autoconf and
gnu-automake ports, that dispensed with
gnu-autoconf-2.59 and gnu-automake-1.9, which may have
been used to set up the latest gnupg and intltool
ports?  I'm confused about how my system is dealing
with all these versions of autoconf and automake --
this is not the first time they've caused problems --
surely there's a better way to handle this, that
doesn't require these redundancies, and create build
problems?  Is there a good way to work around these
problems?



__
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]"


Optical PS/2 Mouse ???

2006-12-09 Thread P.U.Kruppa

Hi,

I invested 5 EUR in a nice Optical PS/2 mouse and I can't get it 
working with FreeBSD, neither on console nor on xorg.
The mousepointer will only show up once on screen and then 
seems to vanish somewhere in the lower border.

Of course the thing works wonderfully when I boot into windows.

Does anyone have a working configuration ???

Thanks,

Uli.

Some data:
--
FreeBSD pukruppa.net 6.2-PRERELEASE FreeBSD 
6.2-PRERELEASE #0: Tue Dec  5 07:50:41 CET 2006



Originally my mouse identified as
psm0: model IntelliMouse Explorer device ID 4

Somewhere in the net I found the idea to set
hint.psm.0.flags="0x200"
now I get
psm0:  flags 0x200 irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model Generic PS/2 mouse, device ID 0

In my xorg.conf I have

Section "InputDevice"
Identifier  "Mouse0"
Driver  "mouse"
#   Option  "Protocol" "auto"
Option  "Protocol" "ps/2"
#   Option  "Device" "/dev/sysmouse"
Option  "Device" "/dev/psm0"
Option  "ZAxisMapping" "4 5 6 7"
EndSection

(I experimented with the #'s)



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


error ouput of fsck

2006-12-09 Thread Marwan Sultan

Hello Gurus,

 Im on FreeBSD 6.1R-p10, Box acting as NAT/gateway.
 I have mysql, freeradius, chillispot installed all working okay.

 Every like 2-3 weeks my box become slow...internet sharing works and 
stops,
 timeout, page cannot be displayed... and when i dig in the logs... i see 
really nothing..

 no i mean nothing! but 1 strange thing.. my radius log says the follow

Sat Dec  9 16:51:18 2006 : Info: Ready to process requests.
Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): Trying to (re)connect 
unconnected handle 4..
Sat Dec  9 17:26:30 2006 : Info: rlm_sql_mysql: Starting connect to MySQL 
server for #4
Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): got socket 4 after skipping 
0 unconnected handles, tried to reconnect 1 though
Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): Trying to (re)connect 
unconnected handle 3..
Sat Dec  9 17:26:30 2006 : Info: rlm_sql_mysql: Starting connect to MySQL 
server for #3
Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): got socket 3 after skipping 
0 unconnected handles, tried to reconnect 1 though
Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): Trying to (re)connect 
unconnected handle 2..
Sat Dec  9 17:26:30 2006 : Info: rlm_sql_mysql: Starting connect to MySQL 
server for #2
Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): got socket 2 after skipping 
0 unconnected handles, tried to reconnect 1 though
Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): Trying to (re)connect 
unconnected handle 1..
Sat Dec  9 17:26:30 2006 : Info: rlm_sql_mysql: Starting connect to MySQL 
server for #1
Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): got socket 1 after skipping 
0 unconnected handles, tried to reconnect 1 though


However, maybe the previous log, is not freebsd concerns..but for a while i 
was thinking why

isql giving such an error, in the time its working and its up.
really no logs..
I tried to do fsck.. and here its...SUPERBLK errors.. and i cannot 
understand why @

can someone kindly look into these fsck output and explain for me please?
why and how to solve..
what makes it more wierd, that after 2 or 3 weeks, another server on 
diffrent network

had _same_problem_exactly_, any explains please?

192# fsck -y
** /dev/ad7s1a (NO WRITE)
** Last Mounted on /
** Root file system
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
1493 files, 29211 used, 7586428 free (740 frags, 948211 blocks, 0.0% 
fragmentation)

** /dev/ad7s1d (NO WRITE)
** Last Mounted on /tmp
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
38 files, 21 used, 7615618 free (154 frags, 951933 blocks, 0.0% 
fragmentation)

** /dev/ad7s1f (NO WRITE)
** Last Mounted on /usr
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
233993 files, 1179379 used, 38959217 free (47889 frags, 4863916 blocks, 0.1% 
fragmentation)

** /dev/ad7s1e (NO WRITE)
** Last Mounted on /var
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
UNREF FILE I=376867  OWNER=mysql MODE=100600
SIZE=0 MTIME=Dec  9 16:51 2006
CLEAR? no

UNREF FILE I=376868  OWNER=mysql MODE=100600
SIZE=0 MTIME=Dec  9 16:51 2006
CLEAR? no

UNREF FILE I=376869  OWNER=mysql MODE=100600
SIZE=0 MTIME=Dec  9 16:51 2006
CLEAR? no

UNREF FILE I=376870  OWNER=mysql MODE=100600
SIZE=0 MTIME=Dec  9 16:51 2006
CLEAR? no

UNREF FILE I=1530904  OWNER=root MODE=100644
SIZE=0 MTIME=Dec  9 16:51 2006
CLEAR? no

** Phase 5 - Check Cyl groups
SUMMARY BLK COUNT(S) WRONG IN SUPERBLK
SALVAGE? no

1464 files, 29446 used, 7586194 free (506 frags, 948211 blocks, 0.0% 
fragmentation)

192#

_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


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


Re: Optical PS/2 Mouse ???

2006-12-09 Thread a
On Sat, Dec 09, 2006 at 12:24:45PM +0100, P.U.Kruppa wrote:
> Hi,
> 
> I invested 5 EUR in a nice Optical PS/2 mouse and I can't get it working with 
> FreeBSD, neither on console nor on xorg.
> The mousepointer will only show up once on screen and then seems to vanish 
> somewhere in the lower border.
> Of course the thing works wonderfully when I boot into windows.
> 
> Does anyone have a working configuration ???
> 
> Thanks,
> 
> Uli.
> 
> Some data:
> --
> FreeBSD pukruppa.net 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Tue Dec  5 
> 07:50:41 CET 2006
> 
> 
> Originally my mouse identified as
>   psm0: model IntelliMouse Explorer device ID 4
> 
> Somewhere in the net I found the idea to set
>   hint.psm.0.flags="0x200"
> now I get
>   psm0:  flags 0x200 irq 12 on atkbdc0
>   psm0: [GIANT-LOCKED]
>   psm0: model Generic PS/2 mouse, device ID 0
> 
> In my xorg.conf I have
> 
> Section "InputDevice"
> Identifier  "Mouse0"
> Driver  "mouse"
> #   Option  "Protocol" "auto"
> Option  "Protocol" "ps/2"
> #   Option  "Device" "/dev/sysmouse"
> Option  "Device" "/dev/psm0"
> Option  "ZAxisMapping" "4 5 6 7"
> EndSection
> 
> (I experimented with the #'s)
> 
> 
> 
> Peter Ulrich Kruppa
> Wuppertal
> Germany
> 

I have a nice Optical PS/2 mouse and it works fine both on console and
on xorg.
But I use FreeBSD 6.1-RELEASE

psm0:  irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse, device ID 3

There are the following hints:

hint.psm.0.at="atkbdc"
hint.psm.0.irq="12"

I did not touch any hint since standard installation, and the kernel
detects the mouse as IntelliMouse.

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


strange locale issue

2006-12-09 Thread dick hoogendijk
# login.conf
#
me:\
:charset=iso-8859-1:\
:lang=en_US.ISO8859-1:
# :lang=nl_NL.ISO8859-1:

I've a strange issue. My wife runs with lang=nl_NL.ISO8859-1 and she
experiences weird dropouts when she types text into Abiword.

I upgraded to the latest ports but the issue was still there. Then I
thought: what's different in my login and hers. Two things: I use fvwm2
and she uses KDE and het login_conf differs.

So I changed her :lang=xxx" setting to en_US and Abiword reacts OK.

Does anybody have any clue on what can be the cause of this?
My wife likes the Dutch menu's and so on ;-)

-- 
http://nagual.nl/ -- PGP/GnuPG key: F86289CE
++ Running FreeBSD 6.1 ++ Solaris 10 6/06 ++

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


Re: error ouput of fsck

2006-12-09 Thread Daniel Molina Wegener
On Saturday 09 December 2006 11:48, Marwan Sultan wrote:
> Hello Gurus,
>
>   Im on FreeBSD 6.1R-p10, Box acting as NAT/gateway.
>   I have mysql, freeradius, chillispot installed all working
> okay.
>
>   Every like 2-3 weeks my box become slow...internet sharing
> works and stops,
>   timeout, page cannot be displayed... and when i dig in the
> logs... i see really nothing..
>   no i mean nothing! but 1 strange thing.. my radius log says
> the follow
>
> Sat Dec  9 16:51:18 2006 : Info: Ready to process requests.
> Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): Trying to
> (re)connect unconnected handle 4..
> Sat Dec  9 17:26:30 2006 : Info: rlm_sql_mysql: Starting
> connect to MySQL server for #4
> Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): got socket 4
> after skipping 0 unconnected handles, tried to reconnect 1
> though
> Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): Trying to
> (re)connect unconnected handle 3..
> Sat Dec  9 17:26:30 2006 : Info: rlm_sql_mysql: Starting
> connect to MySQL server for #3
> Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): got socket 3
> after skipping 0 unconnected handles, tried to reconnect 1
> though
> Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): Trying to
> (re)connect unconnected handle 2..
> Sat Dec  9 17:26:30 2006 : Info: rlm_sql_mysql: Starting
> connect to MySQL server for #2
> Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): got socket 2
> after skipping 0 unconnected handles, tried to reconnect 1
> though
> Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): Trying to
> (re)connect unconnected handle 1..
> Sat Dec  9 17:26:30 2006 : Info: rlm_sql_mysql: Starting
> connect to MySQL server for #1
> Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): got socket 1
> after skipping 0 unconnected handles, tried to reconnect 1
> though
>
> However, maybe the previous log, is not freebsd concerns..but
> for a while i was thinking why
> isql giving such an error, in the time its working and its
> up. really no logs..
> I tried to do fsck.. and here its...SUPERBLK errors.. and i
> cannot understand why @
> can someone kindly look into these fsck output and explain
> for me please? why and how to solve..
> what makes it more wierd, that after 2 or 3 weeks, another
> server on diffrent network
> had _same_problem_exactly_, any explains please?
>
> 192# fsck -y
> ** /dev/ad7s1a (NO WRITE)
> ** Last Mounted on /
> ** Root file system
> ** Phase 1 - Check Blocks and Sizes
> ** Phase 2 - Check Pathnames
> ** Phase 3 - Check Connectivity
> ** Phase 4 - Check Reference Counts
> ** Phase 5 - Check Cyl groups
> 1493 files, 29211 used, 7586428 free (740 frags, 948211
> blocks, 0.0% fragmentation)
> ** /dev/ad7s1d (NO WRITE)
> ** Last Mounted on /tmp
> ** Phase 1 - Check Blocks and Sizes
> ** Phase 2 - Check Pathnames
> ** Phase 3 - Check Connectivity
> ** Phase 4 - Check Reference Counts
> ** Phase 5 - Check Cyl groups
> 38 files, 21 used, 7615618 free (154 frags, 951933 blocks,
> 0.0% fragmentation)
> ** /dev/ad7s1f (NO WRITE)
> ** Last Mounted on /usr
> ** Phase 1 - Check Blocks and Sizes
> ** Phase 2 - Check Pathnames
> ** Phase 3 - Check Connectivity
> ** Phase 4 - Check Reference Counts
> ** Phase 5 - Check Cyl groups
> 233993 files, 1179379 used, 38959217 free (47889 frags,
> 4863916 blocks, 0.1% fragmentation)
> ** /dev/ad7s1e (NO WRITE)
> ** Last Mounted on /var
> ** Phase 1 - Check Blocks and Sizes
> ** Phase 2 - Check Pathnames
> ** Phase 3 - Check Connectivity
> ** Phase 4 - Check Reference Counts
> UNREF FILE I=376867  OWNER=mysql MODE=100600
> SIZE=0 MTIME=Dec  9 16:51 2006
> CLEAR? no
>
> UNREF FILE I=376868  OWNER=mysql MODE=100600
> SIZE=0 MTIME=Dec  9 16:51 2006
> CLEAR? no
>
> UNREF FILE I=376869  OWNER=mysql MODE=100600
> SIZE=0 MTIME=Dec  9 16:51 2006
> CLEAR? no
>
> UNREF FILE I=376870  OWNER=mysql MODE=100600
> SIZE=0 MTIME=Dec  9 16:51 2006
> CLEAR? no
>
> UNREF FILE I=1530904  OWNER=root MODE=100644
> SIZE=0 MTIME=Dec  9 16:51 2006
> CLEAR? no
>
> ** Phase 5 - Check Cyl groups
> SUMMARY BLK COUNT(S) WRONG IN SUPERBLK
> SALVAGE? no
>
> 1464 files, 29446 used, 7586194 free (506 frags, 948211
> blocks, 0.0% fragmentation)
> 192#

  Try booting in single user mode, and then unmounting all
units:
  # umount -a
  # fsck -y
  # mount -a

  If the last command goes well, the file system check is 
done...

> _
> Express yourself instantly with MSN Messenger! Download
> today it's FREE!
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/0
>1/
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"

Best regards,
-- 
 . 0 . | Daniel Molina Wegener
 . . 0 | dmw at unete dot cl
 0 0 0 | FreeBSD User
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebs

tip(1) connect to another host with serial cable: vim display junk text

2006-12-09 Thread 张韡武
Hello List.

This is another stupid frequent question that might already get answered
a thousand times, but I cannot do effective googles because the word
'tip' is too general.

Local host is freebsd 6.1, remote host is Gentoo Linux. Both connected
through serial cable on COM1. Now I wish to control Linux with my
FreeBSD. This command can let me login to the Linux host

$ tip com1

But after I logged in I found using VIM would create junk text. It seems
VIM do not know my terminal is very wide (more then 130 characters per
line).

So, how do I fix it? Google did give me a lot of 'tips' but none of them
is related to my problem...

Best Regards

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


has ANYONE used FreeBSD read Chinese directories from a Windows Share? (was: Re: (repost) cannot read windows share)

2006-12-09 Thread 张韡武
If our understanding to the current problem is correct (that FreeBSD
kernel iconv currently have problem with double-bit character-set), then
there should have never been FreeBSD users that can actually mount and
access a Windows Share that:
 I. is using GB2312 locale (that is, Windows Simplified Chinese
version);
II. have Chinese character in folder names

在 2006-12-05二的 17:36 +1100,Antony Mawer写道:
> On 5/12/2006 5:28 PM, 张韡武 wrote:
> > 在 2006-12-04一的 21:54 -0800,Garrett Cooper写道:
> >>Also, I'm not sure if FreeBSD has been configured to run the particular 
> >> character set you need (nor am I sure where any documentation may be 
> >> regarding how to set that up), but you also want to explore getting that 
> >> solved in tandem with the mount_smbfs item.
> > 
> > I read carefully with mount_smbfs and as far as I can tell mount_smbfs
> > is using iconv lib which compiled as kernel module. After I run
> > mount_smbfs I checked and made sure libiconv.ko is automatically loaded.
> > According to documents, mount_smbfs automatically load this kernel
> ...
> 
> I don't know if this is at all useful, but I have come across the 
> following patches, which appear to have been ported from Darwin, to 
> improve handling of multibyte character sets:
> 
>  http://people.freebsd.org/~imura/kiconv/
> 
> It would be interesting to see these committed (if they are valuable), 
> as I know there are issues with FreeBSD mount_smbfs when operating 
> against the Mac OSX samba implementation, which (I am told) only speaks 
> UCS2.
> 
> Given the work already gone into these, it would be nice to see them 
> finished off and committed... I wonder how many other smbfs-related 
> improvements may exist in Darwin that might be worth looking at?
> 
>  http://www.opensource.apple.com/darwinsource/10.4.8.x86/smb-217.18/
> 
> Cheers
> Antony

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


Re: Optical PS/2 Mouse ???

2006-12-09 Thread P.U.Kruppa

On Sat, 9 Dec 2006, [EMAIL PROTECTED] wrote:


On Sat, Dec 09, 2006 at 12:24:45PM +0100, P.U.Kruppa wrote:

Hi,

I invested 5 EUR in a nice Optical PS/2 mouse and I can't get it working with
FreeBSD, neither on console nor on xorg.
The mousepointer will only show up once on screen and then seems to vanish
somewhere in the lower border.
Of course the thing works wonderfully when I boot into windows.

Does anyone have a working configuration ???

Thanks,

Uli.

Some data:
--
FreeBSD pukruppa.net 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Tue Dec  5
07:50:41 CET 2006


Originally my mouse identified as
psm0: model IntelliMouse Explorer device ID 4

Somewhere in the net I found the idea to set
hint.psm.0.flags="0x200"
now I get
psm0:  flags 0x200 irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model Generic PS/2 mouse, device ID 0

In my xorg.conf I have

Section "InputDevice"
Identifier  "Mouse0"
Driver  "mouse"
#   Option  "Protocol" "auto"
Option  "Protocol" "ps/2"
#   Option  "Device" "/dev/sysmouse"
Option  "Device" "/dev/psm0"
Option  "ZAxisMapping" "4 5 6 7"
EndSection

(I experimented with the #'s)



Peter Ulrich Kruppa
Wuppertal
Germany



I have a nice Optical PS/2 mouse and it works fine both on console and
on xorg.
But I use FreeBSD 6.1-RELEASE

psm0:  irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse, device ID 3

There are the following hints:

hint.psm.0.at="atkbdc"
hint.psm.0.irq="12"

I have got these too,

thanks: Uli.



I did not touch any hint since standard installation, and the kernel
detects the mouse as IntelliMouse.

Elisej Babenko





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


X server remote login

2006-12-09 Thread dick hoogendijk
I run solaris and FreeBSD. In solaris I can login on a remote machine
with an X session. I can't see my freebsd machine though. I have no idea
where the config to make this possible resides on FreeBSD. I guess X
runs without broadcasting itself on fbsd. How can I change this?

-- 
http://nagual.nl/ -- PGP/GnuPG key: F86289CE
++ Running FreeBSD 6.1 ++ Solaris 10 6/06 ++

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


Example network protocol implementation

2006-12-09 Thread Vishal Patil

Could someone point me to an example that shows a SIMPLE network protocol
implemented over TCP/IP inside the FreeBSD kernel. I think I could look at
the NFS client driver but is there an example simpler than that. Also is
there a guide explaining how to go about developing TCP/IP based network
protocols for FreeBSD.
Thanks

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


Re: Configuration of Grub?

2006-12-09 Thread David Stanford

On 12/9/06, Karl Sinn <[EMAIL PROTECTED]> wrote:


Hi,

> I'm using this:
>
> title FreeBSD 6.2-STABLE
> root (hd1,0,a)
> kernel /boot/loader
>
> title FreeBSD 7.0-CURRENT
> root (hd0,2,a)
> kernel /boot/loader

I tried, but it still does not work.

Grub is giving a "file not found" message. If I understand it right it
searches the /boot/loader on my Linux hard disk.

I have found loader and loader.conf on the FreeBSD installation disk can I
just copy them?



What are you using now for your menu.lst? Still this?...

title FreeBSD
 root (hd3,0)
 chainloader +1

I can almost guarantee that you have your 'root' specified incorrectly. You
should have something similar to the following (as mentioned earlier by
Pieter):

title FreeBSD
   root (hd0,1,a)
   kernel /boot/loader

Unlike a Linux boot entry, you have to specify the 'a' portion of 'root' in
the menu.lst config. And remember that 'hd0' is defining exactly which hard
drive you have FreeBSD installed on (in this example, the first hard drive),
and '1' refers to the partition (in this example, the second partition). The
'a' will not have to be changed, assuming you performed a standard FreeBSD
installation as this is the slice / is installed on by default. Give it
another try with this info and reply back if you still have trouble. If you
reply back, please include 1.) the hard drive and 2.) the partition you
installed FreeBSD on.

P.S. Welcome to FreeBSD! :)

-David
--
[EMAIL PROTECTED] ~]# fortune
Happiness is just an illusion, filled with sadness and confusion.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: X server remote login

2006-12-09 Thread Derek Ragona

By default in FreeBSD X doesn't listen for TCP requests.  To change this do:
startx -listen_tcp

-Derek


At 01:14 PM 12/9/2006, dick hoogendijk wrote:

I run solaris and FreeBSD. In solaris I can login on a remote machine
with an X session. I can't see my freebsd machine though. I have no idea
where the config to make this possible resides on FreeBSD. I guess X
runs without broadcasting itself on fbsd. How can I change this?

--
http://nagual.nl/ -- PGP/GnuPG key: F86289CE
++ Running FreeBSD 6.1 ++ Solaris 10 6/06 ++

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

--
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.


--
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: Example network protocol implementation

2006-12-09 Thread perryh
"Vishal Patil" <[EMAIL PROTECTED]> wrote:

> Could someone point me to an example that shows a SIMPLE network
> protocol implemented over TCP/IP inside the FreeBSD kernel.
> I think I could look at the NFS client driver but is there an
> example simpler than that.

NFS normally runs over UDP, not TCP.  Telnet is one of the simpler
TCP-based applications, but it is not done in the kernel (nor are
most network apps).  Is there some particular reason why you need
an example that is implemented inside the kernel, vs in userland?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: X server remote login

2006-12-09 Thread dick hoogendijk
On Sat, 2006-12-09 at 21:54, Derek Ragona wrote:
> By default in FreeBSD X doesn't listen for TCP requests.  To change this do:
> startx -listen_tcp

Thank you. But can this be made "permanent" somewhere?
I guess the tcp port (6000?) should be made inaccessible to the outside
world.

-- 
http://nagual.nl/ -- PGP/GnuPG key: F86289CE
++ Running FreeBSD 6.1 ++ Solaris 10 6/06 ++

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


Re: Configuration of Grub?

2006-12-09 Thread Karl Sinn
Hi,

Am Samstag, 9. Dezember 2006 21:29 schrieb David Stanford:
> What are you using now for your menu.lst? Still this?...
>
> title FreeBSD
>   root (hd3,0)
>   chainloader +1

no

> I can almost guarantee that you have your 'root' specified incorrectly. You
> should have something similar to the following (as mentioned earlier by
> Pieter):
>
> title FreeBSD
> root (hd0,1,a)
> kernel /boot/loader

I tried this with (hd3,0,a) and (hd3,1,a).
It didn't work.

I got a message like: disk is not existing (don't remember the exact message)

If I understood right the hdd in Linux translates to ad3 in FreeBSD?

> 1.) the hard drive and 2.)
> the partition you installed FreeBSD on.

hdd/ad3 I used all the disk for FreeBSD and I used the automatic 
configuration.

Right now Linux can not read the FreeBSD disk. Does FreeBSD have its own 
filesystem?
Ans if it has its own filesystem how can grub read the /boot/loader in there?

Do I have to copy the loader on my Linux drive, configure it there so FreeBSD 
can then start?

Is there any other way to start the system on that disk? From the install-CD 
maybe?

> P.S. Welcome to FreeBSD! :)

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


How can I fix "Cannot find file system superblock" problem?

2006-12-09 Thread FK
Dear list members,

How can I fix "Cannot find file system superblock" problem?

I thought there would be a solution on the Internet, and
googled but could not find one yet. 
I hope you would have some hints. Thank you.

Background:
FreeBSD6.0-RELEASE.

#disklabel /dev/da0s2
# /dev/da0s2:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
a: 18994687   5242884.2BSD 2048 16384 28552 
b:   5242880  swap
c: 195189750unused0 0   # "raw" part, don't edit


What I did:

#fsck_ffs /dev/da0s2a
** /dev/da0s2a
Cannot find file system superblock

LOOK FOR ALTERNATE SUPERBLOCKS? [yn] y

32 is not a file system superblock
SEARCH FOR ALTERNATE SUPER-BLOCK FAILED. YOU MUST USE THE
-b OPTION TO FSCK TO SPECIFY THE LOCATION OF AN ALTERNATE
SUPER-BLOCK TO SUPPLY NEEDED INFORMATION; SEE fsck(8).

#newfs -N /dev/da0s2a
/dev/da0s2a: 9274.7MB (18994684 sectors) block size 16384, fragment size 2048
using 51 cylinder groups of 183.77MB, 11761 blks, 23552 inodes.
super-block backups (for fsck -b #) at:
 160, 376512, 752864, 1129216, 1505568, 1881920, 2258272, 2634624, 3010976,
 3387328, 3763680, 4140032, 4516384, 4892736, 5269088, 5645440, 6021792,
 6398144, 6774496, 7150848, 7527200, 7903552, 8279904, 8656256, 9032608,
 9408960, 9785312, 10161664, 10538016, 10914368, 11290720, 11667072, 12043424,
 12419776, 12796128, 13172480, 13548832, 13925184, 14301536, 14677888,
 15054240, 15430592, 15806944, 16183296, 16559648, 16936000, 17312352,
 17688704, 18065056, 18441408, 18817760, 19194112

I "fsck_ufs"ed every alternative superblock like below,
but the program complained they are not superblocks.

# fsck_ufs -b 160 /dev/da0s2
Alternate super block location: 160
** /dev/da0s2
160 is not a file system superblock
# fsck_ufs -b 376512 /dev/da0s2
Alternate super block location: 376512
** /dev/da0s2
376512 is not a file system superblock
# fsck_ufs -b 752864 /dev/da0s2
Alternate super block location: 752864
** /dev/da0s2
752864 is not a file system superblock

-- snip --

# fsck_ufs -b 18441408 /dev/da0s2
Alternate super block location: 18441408
** /dev/da0s2
18441408 is not a file system superblock
# fsck_ufs -b 18817760 /dev/da0s2
Alternate super block location: 18817760
** /dev/da0s2
18817760 is not a file system superblock
# fsck_ufs -b 19194112 /dev/da0s2
Alternate super block location: 19194112
** /dev/da0s2
19194112 is not a file system superblock


If alternatives are all copies of the master,
they must have the same contents. I checked and
found they are equal.

# dd if=/dev/da0s2a skip=160 bs=512 count=16 of=sb1
16+0 records in
16+0 records out
8192 bytes transferred in 0.013373 secs (612571 bytes/sec)
# dd if=/dev/da0s2a skip=376512 bs=512 count=16 of=sb2
16+0 records in
16+0 records out
8192 bytes transferred in 0.425421 secs (19256 bytes/sec)
# dd if=/dev/da0s2a skip=752864 bs=512 count=16 of=sb3
16+0 records in
16+0 records out
8192 bytes transferred in 0.018652 secs (439198 bytes/sec)

#diff -s sb1 sb2
Files sb1 and sb2 are identical
#diff -s sb1 sb3
Files sb1 and sb3 are identical
#diff -s sb2 sb3
Files sb2 and sb3 are identical


If you have any suggestions, I really aprreciate.
Thank you.

--
FK.

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


gmake upgrade

2006-12-09 Thread Grzegorz Danecki

Hello list!

it may be a stupid question, but i'm a little bit scared before gmake
upgrade. I'm not using portupgrade, everything is build from the ports tree,
so, when some package is old, and there is newer version in ports, then make
all && make deinstall && make install && make clean. It works pretty fine
for now. But what about gmake?
Will I be able to compile new gmake sources when I'll do `make deinstall in
/usr/ports/devel/gmake` first?

Few details:

pkg_version | grep "<"
gmake   <

pkg_info | grep gmake
gmake-3.80_2GNU version of 'make' utility

the latest version in my ports tree is make-3.81

The system is FreeBSD 6.1 Release with latest patches

it can be a problem like chmod -x /bin/chmod, but maybe You have an idea?

TIA, thanks also for Your great job and merry x-mas! :)

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


Re: gmake upgrade

2006-12-09 Thread Joe Holden
Grzegorz Danecki wrote:
> Hello list!
> 
> it may be a stupid question, but i'm a little bit scared before gmake
> upgrade. I'm not using portupgrade, everything is build from the ports
> tree,
> so, when some package is old, and there is newer version in ports, then
> make
> all && make deinstall && make install && make clean. It works pretty fine
> for now. But what about gmake?
> Will I be able to compile new gmake sources when I'll do `make deinstall in
> /usr/ports/devel/gmake` first?
> 
> Few details:
> 
> pkg_version | grep "<"
> gmake   <
> 
> pkg_info | grep gmake
> gmake-3.80_2GNU version of 'make' utility
> 
> the latest version in my ports tree is make-3.81
> 
> The system is FreeBSD 6.1 Release with latest patches
> 
> it can be a problem like chmod -x /bin/chmod, but maybe You have an idea?
> 

As far as make goes, that won't be a problem, gmake isn't present in the
base as you can see, bsd make is used for ports etc, gmake is only
installed if a port needs it.

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


dns cache on a desktop

2006-12-09 Thread Jonathan Horne
how can i flush the dns cache on my desktop system?  google turns up plenty on 
how to do it in linux or osx... but not freebsd.  can someone clue me in?

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


Re: gmake upgrade

2006-12-09 Thread Kris Kennaway
On Sat, Dec 09, 2006 at 10:44:29PM +0100, Grzegorz Danecki wrote:
> Hello list!
> 
> it may be a stupid question, but i'm a little bit scared before gmake
> upgrade. I'm not using portupgrade, everything is build from the ports tree,
> so, when some package is old, and there is newer version in ports, then make
> all && make deinstall && make install && make clean. It works pretty fine
> for now. But what about gmake?
> Will I be able to compile new gmake sources when I'll do `make deinstall in
> /usr/ports/devel/gmake` first?

gmake does not require gmake to build.  If it did, how could you build
it for the first time?

Kris


pgpBXouskof21.pgp
Description: PGP signature


Re: error ouput of fsck

2006-12-09 Thread Marwan Sultan

Hello Daniel,

The problem, is why its happening ?

 Also the other server had this sudden diffrent output

192# fsck
** /dev/ad8s1a (NO WRITE)
** Last Mounted on /
** Root file system
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
1492 files, 29045 used, 10125154 free (706 frags, 1265556 blocks, 0.0% 
fragmentation)

** /dev/ad8s1e (NO WRITE)
** Last Mounted on /tmp
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
UNREF DIR  I=659456  OWNER=admin MODE=40700
SIZE=512 MTIME=Dec 10 00:46 2006
RECONNECT? no

** Phase 4 - Check Reference Counts
LINK COUNT DIR I=659456  OWNER=admin MODE=40700
SIZE=512 MTIME=Dec 10 00:46 2006  COUNT 2 SHOULD BE 1
ADJUST? no

UNREF FILE  I=659457  OWNER=admin MODE=140755
SIZE=0 MTIME=Dec 10 00:46 2006
RECONNECT? no


CLEAR? no

** Phase 5 - Check Cyl groups
43 files, 24 used, 7615615 free (175 frags, 951930 blocks, 0.0% 
fragmentation)

** /dev/ad8s1f (NO WRITE)
** Last Mounted on /usr
** Phase 1 - Check Blocks and Sizes
UNKNOWN FILE TYPE I=7918875
UNEXPECTED SOFT UPDATE INCONSISTENCY

CLEAR? no

** Phase 2 - Check Pathnames
DUP/BAD  I=7918875  OWNER=root MODE=40755
SIZE=512 MTIME=Nov 16 15:29 2006
DIR=/ports/math/ump

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

fsck_ufs: cannot find inode 7918875



On Saturday 09 December 2006 11:48, Marwan Sultan wrote:
> Hello Gurus,
>
>   Im on FreeBSD 6.1R-p10, Box acting as NAT/gateway.
>   I have mysql, freeradius, chillispot installed all working
> okay.
>
>   Every like 2-3 weeks my box become slow...internet sharing
> works and stops,
>   timeout, page cannot be displayed... and when i dig in the
> logs... i see really nothing..
>   no i mean nothing! but 1 strange thing.. my radius log says
> the follow
>
> Sat Dec  9 16:51:18 2006 : Info: Ready to process requests.
> Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): Trying to
> (re)connect unconnected handle 4..
> Sat Dec  9 17:26:30 2006 : Info: rlm_sql_mysql: Starting
> connect to MySQL server for #4
> Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): got socket 4
> after skipping 0 unconnected handles, tried to reconnect 1
> though
> Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): Trying to
> (re)connect unconnected handle 3..
> Sat Dec  9 17:26:30 2006 : Info: rlm_sql_mysql: Starting
> connect to MySQL server for #3
> Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): got socket 3
> after skipping 0 unconnected handles, tried to reconnect 1
> though
> Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): Trying to
> (re)connect unconnected handle 2..
> Sat Dec  9 17:26:30 2006 : Info: rlm_sql_mysql: Starting
> connect to MySQL server for #2
> Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): got socket 2
> after skipping 0 unconnected handles, tried to reconnect 1
> though
> Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): Trying to
> (re)connect unconnected handle 1..
> Sat Dec  9 17:26:30 2006 : Info: rlm_sql_mysql: Starting
> connect to MySQL server for #1
> Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): got socket 1
> after skipping 0 unconnected handles, tried to reconnect 1
> though
>
> However, maybe the previous log, is not freebsd concerns..but
> for a while i was thinking why
> isql giving such an error, in the time its working and its
> up. really no logs..
> I tried to do fsck.. and here its...SUPERBLK errors.. and i
> cannot understand why @
> can someone kindly look into these fsck output and explain
> for me please? why and how to solve..
> what makes it more wierd, that after 2 or 3 weeks, another
> server on diffrent network
> had _same_problem_exactly_, any explains please?
>
> 192# fsck -y
> ** /dev/ad7s1a (NO WRITE)
> ** Last Mounted on /
> ** Root file system
> ** Phase 1 - Check Blocks and Sizes
> ** Phase 2 - Check Pathnames
> ** Phase 3 - Check Connectivity
> ** Phase 4 - Check Reference Counts
> ** Phase 5 - Check Cyl groups
> 1493 files, 29211 used, 7586428 free (740 frags, 948211
> blocks, 0.0% fragmentation)
> ** /dev/ad7s1d (NO WRITE)
> ** Last Mounted on /tmp
> ** Phase 1 - Check Blocks and Sizes
> ** Phase 2 - Check Pathnames
> ** Phase 3 - Check Connectivity
> ** Phase 4 - Check Reference Counts
> ** Phase 5 - Check Cyl groups
> 38 files, 21 used, 7615618 free (154 frags, 951933 blocks,
> 0.0% fragmentation)
> ** /dev/ad7s1f (NO WRITE)
> ** Last Mounted on /usr
> ** Phase 1 - Check Blocks and Sizes
> ** Phase 2 - Check Pathnames
> ** Phase 3 - Check Connectivity
> ** Phase 4 - Check Reference Counts
> ** Phase 5 - Check Cyl groups
> 233993 files, 1179379 used, 38959217 free (47889 frags,
> 4863916 blocks, 0.1% fragmentation)
> ** /dev/ad7s1e (NO WRITE)
> ** Last Mounted on /var
> ** Phase 1 - Check Blocks and Sizes
> ** Phase 2 - Check Pathnames
> ** Phase 3 - Check Connectivity
> ** Phase 4 - Check Reference Counts
> UNREF FILE I=376867  OWNER=mysql MODE=100600
> SIZE=0 MTIME=Dec  9 16:51 2006

Re: Configuration of Grub?

2006-12-09 Thread David Stanford


I tried this with (hd3,0,a) and (hd3,1,a).
It didn't work.

I got a message like: disk is not existing (don't remember the exact
message)



See below.

If I understood right the hdd in Linux translates to ad3 in FreeBSD?


> 1.) the hard drive and 2.)
> the partition you installed FreeBSD on.

hdd/ad3 I used all the disk for FreeBSD and I used the automatic
configuration.



ad3 may be (and probably is) correct for you, but this has no relationship
with the 'hdx' format that Grub uses. Using 'hd3' in your Grub config would
suggest that you have installed FreeBSD on the fourth (counting 0, 1, 2, 3)
hard drive on your machine. If you have only one hard drive on your machine
and have installed FreeBSD on it, you would have to use 'hd0' (the *first*
hard drive) in your config. You would use 'hd1' if you installed on your
second hard drive, and so on. I would guess, since you mentioned ad3, that
you have installed FreeBSD on a second hard drive; if so, try the following:

title FreeBSD
   root (hd1,0,a)
   kernel /boot/loader

Right now Linux can not read the FreeBSD disk. Does FreeBSD have its own

filesystem?



Yes, by default FreeBSD uses UFS2. There is almost certainly a third party
app out there that will allow you to read UFS2 from Linux if this is what
you want to do at some point. You can also check 'man mount' under SUSE to
see if there is built-in support for mounting UFS2 filesystems (though this
is probably a long shot).

Ans if it has its own filesystem how can grub read the /boot/loader in

there?



SUSE may not be able to read it, but remember that Grub is independent (so
to speak) from Linux and has support for booting *BSD OS's.

Do I have to copy the loader on my Linux drive, configure it there so

FreeBSD
can then start?



No, not at all. Like I said, I'm sure your error is in your menu.lst 'root'
config. Many people have dual-boot Linux/FreeBSD setups, and I myself used
to have a Gentoo/FreeBSD/Windows setup using Grub way back, and copying
files from one filesystem to another was never necessary.

Is there any other way to start the system on that disk? From the install-CD

maybe?



Hmm, never tried. You may have to use FreeSBIE for something like this, but,
again, try your config first.

Good luck!

-David
--
[EMAIL PROTECTED] ~]# fortune
Happiness is just an illusion, filled with sadness and confusion.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: tip(1) connect to another host with serial cable: vim display junk text

2006-12-09 Thread Harald Schmalzbauer
Am Samstag, 9. Dezember 2006 09:52 schrieb 张韡武:
> Hello List.
>
> This is another stupid frequent question that might already get answered
> a thousand times, but I cannot do effective googles because the word
> 'tip' is too general.
>
> Local host is freebsd 6.1, remote host is Gentoo Linux. Both connected
> through serial cable on COM1. Now I wish to control Linux with my
> FreeBSD. This command can let me login to the Linux host
>
> $ tip com1
>
> But after I logged in I found using VIM would create junk text. It seems
> VIM do not know my terminal is very wide (more then 130 characters per
> line).
>
> So, how do I fix it? Google did give me a lot of 'tips' but none of them
> is related to my problem...

You have to tell the applications the correct terminal settings, meaning 
number of rows and columns. With ssh or something similar this is done 
automatically, with tty you would set it on FreeBSD like 'stty rows 25 cols 
80'.
'stty -a' shows some tty settings, including rows and columns.
Alternately you could set some environment variables for vi, but that doen't 
work for all applications, so stty is prefered.

Best regards,

-Harry

>
> Best Regards
>
> ___
> 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: error ouput of fsck

2006-12-09 Thread Daniel Molina Wegener
On Saturday 09 December 2006 18:55, Marwan Sultan wrote:
> Hello Daniel,

  Hello, all this output looks like an abrupt power down in the
machine, try doing fsck with unmounted volumes in single user 
mode. If this does not works, maybe the hard drive have 
problems.

>
> The problem, is why its happening ?
>
>   Also the other server had this sudden diffrent output
>
> 192# fsck
> ** /dev/ad8s1a (NO WRITE)
> ** Last Mounted on /
> ** Root file system
> ** Phase 1 - Check Blocks and Sizes
> ** Phase 2 - Check Pathnames
> ** Phase 3 - Check Connectivity
> ** Phase 4 - Check Reference Counts
> ** Phase 5 - Check Cyl groups
> 1492 files, 29045 used, 10125154 free (706 frags, 1265556
> blocks, 0.0% fragmentation)
> ** /dev/ad8s1e (NO WRITE)
> ** Last Mounted on /tmp
> ** Phase 1 - Check Blocks and Sizes
> ** Phase 2 - Check Pathnames
> ** Phase 3 - Check Connectivity
> UNREF DIR  I=659456  OWNER=admin MODE=40700
> SIZE=512 MTIME=Dec 10 00:46 2006
> RECONNECT? no
>
> ** Phase 4 - Check Reference Counts
> LINK COUNT DIR I=659456  OWNER=admin MODE=40700
> SIZE=512 MTIME=Dec 10 00:46 2006  COUNT 2 SHOULD BE 1
> ADJUST? no
>
> UNREF FILE  I=659457  OWNER=admin MODE=140755
> SIZE=0 MTIME=Dec 10 00:46 2006
> RECONNECT? no
>
>
> CLEAR? no
>
> ** Phase 5 - Check Cyl groups
> 43 files, 24 used, 7615615 free (175 frags, 951930 blocks,
> 0.0% fragmentation)
> ** /dev/ad8s1f (NO WRITE)
> ** Last Mounted on /usr
> ** Phase 1 - Check Blocks and Sizes
> UNKNOWN FILE TYPE I=7918875
> UNEXPECTED SOFT UPDATE INCONSISTENCY
>
> CLEAR? no
>
> ** Phase 2 - Check Pathnames
> DUP/BAD  I=7918875  OWNER=root MODE=40755
> SIZE=512 MTIME=Nov 16 15:29 2006
> DIR=/ports/math/ump
>
> UNEXPECTED SOFT UPDATE INCONSISTENCY
>
> REMOVE? no
>
> fsck_ufs: cannot find inode 7918875
>
> >On Saturday 09 December 2006 11:48, Marwan Sultan wrote:
> > > Hello Gurus,
> > >
> > >   Im on FreeBSD 6.1R-p10, Box acting as NAT/gateway.
> > >   I have mysql, freeradius, chillispot installed all
> > > working okay.
> > >
> > >   Every like 2-3 weeks my box become slow...internet
> > > sharing works and stops,
> > >   timeout, page cannot be displayed... and when i dig in
> > > the logs... i see really nothing..
> > >   no i mean nothing! but 1 strange thing.. my radius log
> > > says the follow
> > >
> > > Sat Dec  9 16:51:18 2006 : Info: Ready to process
> > > requests. Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql):
> > > Trying to (re)connect unconnected handle 4..
> > > Sat Dec  9 17:26:30 2006 : Info: rlm_sql_mysql: Starting
> > > connect to MySQL server for #4
> > > Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): got
> > > socket 4 after skipping 0 unconnected handles, tried to
> > > reconnect 1 though
> > > Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): Trying to
> > > (re)connect unconnected handle 3..
> > > Sat Dec  9 17:26:30 2006 : Info: rlm_sql_mysql: Starting
> > > connect to MySQL server for #3
> > > Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): got
> > > socket 3 after skipping 0 unconnected handles, tried to
> > > reconnect 1 though
> > > Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): Trying to
> > > (re)connect unconnected handle 2..
> > > Sat Dec  9 17:26:30 2006 : Info: rlm_sql_mysql: Starting
> > > connect to MySQL server for #2
> > > Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): got
> > > socket 2 after skipping 0 unconnected handles, tried to
> > > reconnect 1 though
> > > Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): Trying to
> > > (re)connect unconnected handle 1..
> > > Sat Dec  9 17:26:30 2006 : Info: rlm_sql_mysql: Starting
> > > connect to MySQL server for #1
> > > Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): got
> > > socket 1 after skipping 0 unconnected handles, tried to
> > > reconnect 1 though
> > >
> > > However, maybe the previous log, is not freebsd
> > > concerns..but for a while i was thinking why
> > > isql giving such an error, in the time its working and
> > > its up. really no logs..
> > > I tried to do fsck.. and here its...SUPERBLK errors.. and
> > > i cannot understand why @
> > > can someone kindly look into these fsck output and
> > > explain for me please? why and how to solve..
> > > what makes it more wierd, that after 2 or 3 weeks,
> > > another server on diffrent network
> > > had _same_problem_exactly_, any explains please?
> > >
> > > 192# fsck -y
> > > ** /dev/ad7s1a (NO WRITE)
> > > ** Last Mounted on /
> > > ** Root file system
> > > ** Phase 1 - Check Blocks and Sizes
> > > ** Phase 2 - Check Pathnames
> > > ** Phase 3 - Check Connectivity
> > > ** Phase 4 - Check Reference Counts
> > > ** Phase 5 - Check Cyl groups
> > > 1493 files, 29211 used, 7586428 free (740 frags, 948211
> > > blocks, 0.0% fragmentation)
> > > ** /dev/ad7s1d (NO WRITE)
> > > ** Last Mounted on /tmp
> > > ** Phase 1 - Check Blocks and Sizes
> > > ** Phase 2 - Check Pathnames
> > > ** Phase 3 - Check Connectivity
> > > ** Phase 4 - Check Reference Counts
> > > ** Phase 5 - Check Cyl groups
> > > 38 files, 21 used, 7615618 

Re: dns cache on a desktop

2006-12-09 Thread Dan Nelson
In the last episode (Dec 09), Jonathan Horne said:
> how can i flush the dns cache on my desktop system?  google turns up
> plenty on how to do it in linux or osx... but not freebsd.  can
> someone clue me in?

Just bounce named:  /etc/rc.d/named restart

If you are not running named, you have no cache to flush :)

-- 
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: How can I fix "Cannot find file system superblock" problem?

2006-12-09 Thread perryh
FK <[EMAIL PROTECTED]> wrote:

> If alternatives are all copies of the master,
> they must have the same contents. I checked and
> found they are equal.
>
> # dd if=/dev/da0s2a skip=160 bs=512 count=16 of=sb1
> 16+0 records in
> 16+0 records out
> 8192 bytes transferred in 0.013373 secs (612571 bytes/sec)
> # dd if=/dev/da0s2a skip=376512 bs=512 count=16 of=sb2
> 16+0 records in
> 16+0 records out
> 8192 bytes transferred in 0.425421 secs (19256 bytes/sec)
...
>
> #diff -s sb1 sb2
> Files sb1 and sb2 are identical
> #diff -s sb1 sb3
> Files sb1 and sb3 are identical

It might be worthwhile to check one of these identical "alternates"
against the "real" superblock.  (AFAIK only the first 512 bytes, or
less, actually matter.)  You might also post a dump of the first 512
bytes and see if anyone notices anything.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Configuration of Grub?

2006-12-09 Thread Garrett Cooper
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David Stanford wrote:
>
> ad3 may be (and probably is) correct for you, but this has no relationship
> with the 'hdx' format that Grub uses. Using 'hd3' in your Grub config would
> suggest that you have installed FreeBSD on the fourth (counting 0, 1, 2, 3)
> hard drive on your machine. If you have only one hard drive on your machine
> and have installed FreeBSD on it, you would have to use 'hd0' (the *first*
> hard drive) in your config. You would use 'hd1' if you installed on your
> second hard drive, and so on. I would guess, since you mentioned ad3, that
> you have installed FreeBSD on a second hard drive; if so, try the
> following:
> 
> title FreeBSD
>root (hd1,0,a)
>kernel /boot/loader

Incorrect. If you installed the filesystem on ad3s1, it should be:

root (hd3,0,a)

Many people goof up GRUB by accident because it's numbering system is
zero-based and linux-like to a certain extent, so /dev/hda in Linux
translates to hd0 in GRUB, which is also ad0 in FreeBSD.

The second argument refers to the partition itself (which may or may not
be 0), and the third argument refers to the slice.

So, in /dev/ad0s1a, this would translate to what I show shortly, in Grub:

root (hd0,0,a)


Another method for accomplishing the same thing from info grub. This may
or may not be outdated information:

4.2.3 FreeBSD
- -

GRUB can load the kernel directly, either in ELF or a.out format. But
this is not recommended, since FreeBSD's bootstrap interface sometimes
changes heavily, so GRUB can't guarantee to pass kernel parameters
correctly.

   Thus, we'd recommend loading the very flexible loader `/boot/loader'
instead. See this example:

 grub> root (hd0,a)
 grub> kernel /boot/loader
 grub> boot

> Right now Linux can not read the FreeBSD disk. Does FreeBSD have its own
>> filesystem?
> 
> 
> Yes, by default FreeBSD uses UFS2. There is almost certainly a third party
> app out there that will allow you to read UFS2 from Linux if this is what
> you want to do at some point. You can also check 'man mount' under SUSE to
> see if there is built-in support for mounting UFS2 filesystems (though this
> is probably a long shot).

UFS2 is supported with a custom kernel IIRC. So, you'll have to
recompile a kernel from sources on your Suse system.

> Ans if it has its own filesystem how can grub read the /boot/loader in
>> there?
> 
> 
> SUSE may not be able to read it, but remember that Grub is independent (so
> to speak) from Linux and has support for booting *BSD OS's.

Grub knows how to deal with different filesystem formats, but this may
or may not be due to the fact that it depends upon other things
available in the kernel that it bootstraps (grub has 2 boot stages). I
will have to look into this a bit further..

> Do I have to copy the loader on my Linux drive, configure it there so
>> FreeBSD
>> can then start?

No. Set it up on linux, making sure that you reference the correct
locations for kernels, and root disks, and you will be fine. If you have
a (GRUB) bootloader setup from Linux, configure everything from there;
don't worry about configuring any other bootloader in any OS, since
everything else is managed by your Linux bootloader.

> Is there any other way to start the system on that disk? From the
> install-CD
>> maybe?
>
> 
> Hmm, never tried. You may have to use FreeSBIE for something like this,
> but,
> again, try your config first.

You can try booting from the grub shell as well (similar to bash). It
should say what the relevant key to enter in for entering the shell (C,
E, etc). Entering in the individual commands as noted above ("root...
loader") will help you test boot your FreeBSD OS.

Cheers,
- -Garrett
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFe0F96CkrZkzMC68RAuEaAJ9/8SrNjbgsUB0TsDluK1jSHqi25ACfa0rQ
dEGuwK4DP2JlcAVDu/xRb08=
=hVBk
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Configuration of Grub?

2006-12-09 Thread David Stanford

Incorrect. If you installed the filesystem on ad3s1, it should be:

root (hd3,0,a)



Thank you, I stand corrected. Not sure what I was thinking there... :)

Many people goof up GRUB by accident because it's numbering system is

zero-based and linux-like to a certain extent, so /dev/hda in Linux
translates to hd0 in GRUB, which is also ad0 in FreeBSD.



This now leads me to a thought: does Grub count only *existing* hard drives
on your system or does it count the hard drive channels on your system? In
this case, Karl says he has installed FreeBSD on ad3, which makes me think
he has installed on a second SATA drive (more likely that on a fourth hard
drive I would think), and FreeBSD has counted two IDE channels as ad0 and
ad1, and two SATA channels as ad2 and ad3. If this is the case, and Grub
counts only the *existing* drives on his system, then he would have to use
(hd1,0,a), no? This would also explain the "disk is not existing" error he
was recieving.

I'd be interested in hearing thoughts (or facts ;) on this as I hate being
left confused... :)

-David
--
[EMAIL PROTECTED] ~]# fortune
Happiness is just an illusion, filled with sadness and confusion.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Configuration of Grub?

2006-12-09 Thread Karl Sinn
Hi,

Am Samstag, 9. Dezember 2006 23:19 schrieb David Stanford:
> title FreeBSD
> root (hd1,0,a)
> kernel /boot/loader

This worked. 

But I have to say, I don't know why. 
It is the third harddisk in the system, and it's definitifly the slave on the 
second IDE-port.

During the installation I had to identify the disk with ad3.

How can grub mix the harddisks up and set this one to hd1?
Is there any logic behind?

Anyway I already have the next problem: How to start KDE
But I'll check the Handbook first and start a new thread if I don't manage.

Thanks for all the help and information
Karl
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Configuration of Grub?

2006-12-09 Thread Garrett Cooper
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David Stanford wrote:
>> Incorrect. If you installed the filesystem on ad3s1, it should be:
>>
>> root (hd3,0,a)
> 
> 
> Thank you, I stand corrected. Not sure what I was thinking there... :)
> 
> Many people goof up GRUB by accident because it's numbering system is
>> zero-based and linux-like to a certain extent, so /dev/hda in Linux
>> translates to hd0 in GRUB, which is also ad0 in FreeBSD.
> 
> 
> This now leads me to a thought: does Grub count only *existing* hard drives
> on your system or does it count the hard drive channels on your system? In
> this case, Karl says he has installed FreeBSD on ad3, which makes me think
> he has installed on a second SATA drive (more likely that on a fourth hard
> drive I would think), and FreeBSD has counted two IDE channels as ad0 and
> ad1, and two SATA channels as ad2 and ad3. If this is the case, and Grub
> counts only the *existing* drives on his system, then he would have to use
> (hd1,0,a), no? This would also explain the "disk is not existing" error he
> was recieving.
> 
> I'd be interested in hearing thoughts (or facts ;) on this as I hate being
> left confused... :)
> 
> -David

Good question; not sure about that one, since the BIOS may or may not
count the EIDE channels as 0 and 1, and the SATA as 2 and 3. Needless to
say, this little numbering scheme with grub has become confusing, esp
with the introduction of new technology (SATA) >.>. Not sure how
numbering would work with SCSI either (something I should try sometime),
because I don't know how the BIOS numbers drives with SCSI cards or SATA
drives put into the mix.

As an example, I'll use my Linux box (which has just EIDE drives in it):

Filesystem (as basis for understanding what's going on):
sprsd gcooper # fdisk -l

Disk /dev/hda: 80.0 GB, 800 bytes
16 heads, 63 sectors/track, 155009 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot  Start End  Blocks   Id  System
/dev/hda1   1   18601 9374872+  83  Linux
Partition 1 does not end on cylinder boundary.
/dev/hda2   18602   20799 1107508+  83  Linux
Partition 2 does not end on cylinder boundary.
/dev/hda3   *   20799   53311163863007  HPFS/NTFS
Partition 3 does not end on cylinder boundary.
/dev/hda4   53311  15500951255823+   5  Extended
Partition 4 does not end on cylinder boundary.
/dev/hda5   53312   53427   58432+  83  Linux
/dev/hda6   53428  15500951197328   83  Linux

For determining what's what, he could just load up the grub shell and
type in...

grub> root (hd0,0)
 Filesystem type is reiserfs, partition type 0x83

Note that it says what the partition type is and so you have an idea of
where you are and what's going on. Yet, GRUB's understanding is limited
because it doesn't directly understand NTFS, and hence I think that's
what the chainloader command is present when booting Windows since it
passes the ball for loading the OS to NTLDR (although a more technical
document could help tell why):

grub> root (hd0,1)
 Filesystem type unknown, partition type 0x83

- -Garrett
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFe1E+6CkrZkzMC68RAliBAJsHgkz/MlQ2tTHTvEkRZ4S64OWa6ACggsmu
RgVBQbEE0IR74tInOPTX0RM=
=Mch+
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: error ouput of fsck

2006-12-09 Thread Jerry McAllister
On Sat, Dec 09, 2006 at 09:55:06PM +, Marwan Sultan wrote:

> Hello Daniel,
> 
> The problem, is why its happening ?
> 
>  Also the other server had this sudden diffrent output
> 
> 192# fsck
> ** /dev/ad8s1a (NO WRITE)
> ** Last Mounted on /
> ** Root file system
> ** Phase 1 - Check Blocks and Sizes
> ** Phase 2 - Check Pathnames
> ** Phase 3 - Check Connectivity
> ** Phase 4 - Check Reference Counts
> ** Phase 5 - Check Cyl groups
> 1492 files, 29045 used, 10125154 free (706 frags, 1265556 blocks, 0.0% 
> fragmentation)
> ** /dev/ad8s1e (NO WRITE)
> ** Last Mounted on /tmp
> ** Phase 1 - Check Blocks and Sizes
> ** Phase 2 - Check Pathnames
> ** Phase 3 - Check Connectivity
> UNREF DIR  I=659456  OWNER=admin MODE=40700
> SIZE=512 MTIME=Dec 10 00:46 2006
> RECONNECT? no
> 
> ** Phase 4 - Check Reference Counts
> LINK COUNT DIR I=659456  OWNER=admin MODE=40700
> SIZE=512 MTIME=Dec 10 00:46 2006  COUNT 2 SHOULD BE 1
> ADJUST? no
> 
> UNREF FILE  I=659457  OWNER=admin MODE=140755
> SIZE=0 MTIME=Dec 10 00:46 2006
> RECONNECT? no
> 
> 
> CLEAR? no
> 

Hmmm.  
   RECONNECT?  no
   ADJUST? no
   CLEAR?  no
Why are you responding 'no' to each prompt to fix things?
If you keep doing that it will never get the file systems cleared up.

jerry

> ** Phase 5 - Check Cyl groups
> 43 files, 24 used, 7615615 free (175 frags, 951930 blocks, 0.0% 
> fragmentation)
> ** /dev/ad8s1f (NO WRITE)
> ** Last Mounted on /usr
> ** Phase 1 - Check Blocks and Sizes
> UNKNOWN FILE TYPE I=7918875
> UNEXPECTED SOFT UPDATE INCONSISTENCY
> 
> CLEAR? no
> 
> ** Phase 2 - Check Pathnames
> DUP/BAD  I=7918875  OWNER=root MODE=40755
> SIZE=512 MTIME=Nov 16 15:29 2006
> DIR=/ports/math/ump
> 
> UNEXPECTED SOFT UPDATE INCONSISTENCY
> 
> REMOVE? no
> 
> fsck_ufs: cannot find inode 7918875
> 
> >
> >On Saturday 09 December 2006 11:48, Marwan Sultan wrote:
> >> Hello Gurus,
> >>
> >>   Im on FreeBSD 6.1R-p10, Box acting as NAT/gateway.
> >>   I have mysql, freeradius, chillispot installed all working
> >> okay.
> >>
> >>   Every like 2-3 weeks my box become slow...internet sharing
> >> works and stops,
> >>   timeout, page cannot be displayed... and when i dig in the
> >> logs... i see really nothing..
> >>   no i mean nothing! but 1 strange thing.. my radius log says
> >> the follow
> >>
> >> Sat Dec  9 16:51:18 2006 : Info: Ready to process requests.
> >> Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): Trying to
> >> (re)connect unconnected handle 4..
> >> Sat Dec  9 17:26:30 2006 : Info: rlm_sql_mysql: Starting
> >> connect to MySQL server for #4
> >> Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): got socket 4
> >> after skipping 0 unconnected handles, tried to reconnect 1
> >> though
> >> Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): Trying to
> >> (re)connect unconnected handle 3..
> >> Sat Dec  9 17:26:30 2006 : Info: rlm_sql_mysql: Starting
> >> connect to MySQL server for #3
> >> Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): got socket 3
> >> after skipping 0 unconnected handles, tried to reconnect 1
> >> though
> >> Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): Trying to
> >> (re)connect unconnected handle 2..
> >> Sat Dec  9 17:26:30 2006 : Info: rlm_sql_mysql: Starting
> >> connect to MySQL server for #2
> >> Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): got socket 2
> >> after skipping 0 unconnected handles, tried to reconnect 1
> >> though
> >> Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): Trying to
> >> (re)connect unconnected handle 1..
> >> Sat Dec  9 17:26:30 2006 : Info: rlm_sql_mysql: Starting
> >> connect to MySQL server for #1
> >> Sat Dec  9 17:26:30 2006 : Info: rlm_sql (sql): got socket 1
> >> after skipping 0 unconnected handles, tried to reconnect 1
> >> though
> >>
> >> However, maybe the previous log, is not freebsd concerns..but
> >> for a while i was thinking why
> >> isql giving such an error, in the time its working and its
> >> up. really no logs..
> >> I tried to do fsck.. and here its...SUPERBLK errors.. and i
> >> cannot understand why @
> >> can someone kindly look into these fsck output and explain
> >> for me please? why and how to solve..
> >> what makes it more wierd, that after 2 or 3 weeks, another
> >> server on diffrent network
> >> had _same_problem_exactly_, any explains please?
> >>
> >> 192# fsck -y
> >> ** /dev/ad7s1a (NO WRITE)
> >> ** Last Mounted on /
> >> ** Root file system
> >> ** Phase 1 - Check Blocks and Sizes
> >> ** Phase 2 - Check Pathnames
> >> ** Phase 3 - Check Connectivity
> >> ** Phase 4 - Check Reference Counts
> >> ** Phase 5 - Check Cyl groups
> >> 1493 files, 29211 used, 7586428 free (740 frags, 948211
> >> blocks, 0.0% fragmentation)
> >> ** /dev/ad7s1d (NO WRITE)
> >> ** Last Mounted on /tmp
> >> ** Phase 1 - Check Blocks and Sizes
> >> ** Phase 2 - Check Pathnames
> >> ** Phase 3 - Check Connectivity
> >> ** Phase 4 - Check Reference Counts
> >> ** Phase 5 - Check Cyl groups
> >> 38 files, 21 used, 7615618 free (154 frags, 951933 blocks,
> >> 0.0%

Re: X server remote login

2006-12-09 Thread Tony Shadwick
I have to apologize, as I've never had x11 start automatically for me 
anyplace.  That said, you need to understand that the server/client 
relationship for X11 is backwards to what you might expect.  The 
display, keyboard, and mouse are at the x-server side, and the machine 
you connect to is the X-client.


On the xserver, if you want it to happen automatically, you would put 
startx in your .login file.  So if you wanted that flag passed, you 
would place startx -listen_tcp in your .login file.


On the client side, you're running an x-client, I presume that gets 
started from /etc/rc.conf.  There's probably something like 
xorg_enable="YES", and xorg_flags="blah", and you would put it in your 
xorg_flags statement.


dick hoogendijk wrote:

On Sat, 2006-12-09 at 21:54, Derek Ragona wrote:

By default in FreeBSD X doesn't listen for TCP requests.  To change this do:
startx -listen_tcp


Thank you. But can this be made "permanent" somewhere?
I guess the tcp port (6000?) should be made inaccessible to the outside
world.


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


Re: Example network protocol implementation

2006-12-09 Thread Daniel Molina Wegener
On Saturday 09 December 2006 17:18, Vishal Patil wrote:
> Could someone point me to an example that shows a SIMPLE
> network protocol implemented over TCP/IP inside the FreeBSD
> kernel. I think I could look at the NFS client driver but is
> there an example simpler than that. Also is there a guide
> explaining how to go about developing TCP/IP based network
> protocols for FreeBSD.

  Try looking at telnet(1) and telnetd(8) source code, also 
fetch(1) should works too...

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

Best regards,
-- 
 . 0 . | Daniel Molina Wegener
 . . 0 | dmw at unete dot cl
 0 0 0 | FreeBSD User
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Configuration of Grub?

2006-12-09 Thread David Stanford

On 12/9/06, Karl Sinn <[EMAIL PROTECTED]> wrote:


Hi,

Am Samstag, 9. Dezember 2006 23:19 schrieb David Stanford:
> title FreeBSD
> root (hd1,0,a)
> kernel /boot/loader

This worked.

But I have to say, I don't know why.
It is the third harddisk in the system, and it's definitifly the slave on
the
second IDE-port.

During the installation I had to identify the disk with ad3.

How can grub mix the harddisks up and set this one to hd1?
Is there any logic behind?



Can't definitively explain this one. I'm assuming your first IDE port has a
CD/DVD drive and the first disk?  The *only* guess I have is that Grub, in
fact, does only count existing hard drives and didn't find one of the first
two (for whatever reason). Other than that, I got nothing. Anyway, glad you
got it working.

Anyway I already have the next problem: How to start KDE

But I'll check the Handbook first and start a new thread if I don't
manage.



http://freebsd.kde.org/instructions.php

Good luck!

-David
--
[EMAIL PROTECTED] ~]# fortune
Happiness is just an illusion, filled with sadness and confusion.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Configuration of Grub?

2006-12-09 Thread David Stanford

Good question; not sure about that one, since the BIOS may or may not
count the EIDE channels as 0 and 1, and the SATA as 2 and 3. Needless to
say, this little numbering scheme with grub has become confusing, esp
with the introduction of new technology (SATA) >.>. Not sure how
numbering would work with SCSI either (something I should try sometime),
because I don't know how the BIOS numbers drives with SCSI cards or SATA
drives put into the mix.



Another good point. I suppose it's documented somewhere, but who has time to
RTFM? :)

-David
--
[EMAIL PROTECTED] ~]# fortune
Happiness is just an illusion, filled with sadness and confusion.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Printing (Trying)

2006-12-09 Thread Robbie Bykowski
I have been trying to get my Canon Pixma iP5000 to print on FreeBSD.I used 
Apsfilter cause apparently its more user friendly then CUPS. I when through all 
the settings and set everything up probably (i hope) as when i did a test print 
it printed, but it came out as an A5 size (is that normal?) on the A4. It had 
everything it should have on the test print so i did the I command, gave it the 
name lp and then Q command and read what came after.I did the:lpc restart 
alland came out with this:lp:no daemon to abortprinting enabled 
   daemon restartedif i do it again it would come the same as above.I then 
do lpr command:lpr linux.txtand does nothing.Any help is thanked in advanced 
(I've been trying to do this for a long time)also with your help, i can get one 
step futher away from windows :DPink and Blue 
_
Be one of the first to try Windows Live Mail.
http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Configuration of Grub?

2006-12-09 Thread Garrett Cooper
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

David Stanford wrote:
>> Good question; not sure about that one, since the BIOS may or may not
>> count the EIDE channels as 0 and 1, and the SATA as 2 and 3. Needless to
>> say, this little numbering scheme with grub has become confusing, esp
>> with the introduction of new technology (SATA) >.>. Not sure how
>> numbering would work with SCSI either (something I should try sometime),
>> because I don't know how the BIOS numbers drives with SCSI cards or SATA
>> drives put into the mix.
>>
> 
> Another good point. I suppose it's documented somewhere, but who has
> time to
> RTFM? :)
> 
> -David

Erm... although I don't mind the examples, the documentation for GRUB
seems a bit lacking (manpage yields almost nothing, but there's a bit in
"info grub").

Though, specifics like this aren't really explained.
- -Garrett
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFe3y16CkrZkzMC68RAjEKAJ0dkl9N9qVxC2uvt1mdGyyhKAFgLQCeIL1o
PGwdKfJ8an0hwfgM+dybPZc=
=jVLX
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Which one?

2006-12-09 Thread Warren Block

On Thu, 7 Dec 2006, Todd McNutt wrote:

I am hoping to install BSD on an IBM ThinkPad 600X that I have.  It 
has not been running the newer Windows and I popped a CD version of 
Knoppix in it and it works fantastic.


It got me thinking... I had used BSD in the past and I would like to 
find an OS that I can actually 'install' on the hard drive and just 
use the computer strictly as a BSD machine.  Do you have a version of 
BSD Free that will install and run on this machine?


On my PII-233 Thinkpad 600, I've used FreeBSD 5.x and 6.x without 
problems.  Maybe 4.x, too, can't recall.  X11 worked fine.  I didn't 
test any suspend or power save functions.  You can check the FreeBSD 
Laptop Compatibility List at:


http://gerda.univie.ac.at/freebsd-laptops/

Unfortunately, it seems to have been discovered by link spammers. 
Still, the original information looks intact.


-Warren Block * Rapid City, South Dakota USA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Example network protocol implementation

2006-12-09 Thread Vishal Patil

For implementing iSCSI protocol as a kernel driver.

On 12/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


"Vishal Patil" <[EMAIL PROTECTED]> wrote:

> Could someone point me to an example that shows a SIMPLE network
> protocol implemented over TCP/IP inside the FreeBSD kernel.
> I think I could look at the NFS client driver but is there an
> example simpler than that.

NFS normally runs over UDP, not TCP.  Telnet is one of the simpler
TCP-based applications, but it is not done in the kernel (nor are
most network apps).  Is there some particular reason why you need
an example that is implemented inside the kernel, vs in userland?


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


The FreeBSD Diary: 2006-11-19 - 2006-12-09

2006-12-09 Thread Dan Langille
The FreeBSD Diary contains a large number of practical 
examples and how-to guides.  This message is posted weekly
to freebsd-questions@freebsd.org with the aim of letting people
know what's available on the website.  Before you post a question
here it might be a good idea to first search the mailing list 
archives  
and/or The FreeBSD Diary . 

These are the articles posted during this period:

4-Dec : Putting sshd on a higher port
 Sometimes port 22 is just not convenient 
 http://freebsddiary.org/ssh-higher-port.php?2

27-Nov : Everything got owned
 I woke up, and everything was gone 
 http://freebsddiary.org/everything-got-owned.php?2


-- 
Dan Langille
BSDCan - http://www.BSDCan.org/ - BSD Conference

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


BREAK_TO_DEBUGGER over an SSH connection ... what is the sequence?

2006-12-09 Thread Marc G. Fournier
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


I swore I had it saved here somewhere, but can't seem to find it in my 
mailboxes :(

I have an HP Proliant DL360 G4p server (well, a few, actually), that allow for 
getting a remote console via ssh ... I have DDB/KDB enabled on the server, just 
like my other 'non-HP' boxes, and need to break into DDB over the SSH session 
...

Checking the man page for ssh, it seems to indicate that ~B should do it, but 
it doesn't ... so I'm obviously missing something, but what?

This is what happens when I try the ~B after logging into the remcons from my 
desktop here:


login:  ~B
dispatch_protocol_error: type 100 seq 73
buffer_get_ret: trying to get more bytes 4 than in buffer 0
buffer_get_int: buffer error
>

As expected, ~? does work, and lists ~B:

login:  ~?
Supported escape sequences:
~.  - terminate connection
~B  - send a BREAK to the remote system
~C  - open a command line
~R  - Request rekey (SSH protocol 2 only)
~^Z - suspend ssh
~#  - list forwarded connections
~&  - background ssh (when waiting for connections to terminate)
~?  - this message
~~  - send the escape character by typing it twice
(Note that escapes are only recognized immediately after newline.)

I've tried CR~B and that makes no difference either ... same 
'dispatch_protocol_error' as above :(

Help and thanks ...




- 
Marc G. Fournier   Hub.Org Networking Services (http://www.hub.org)
Email . [EMAIL PROTECTED]  MSN . [EMAIL PROTECTED]
Yahoo . yscrappy   Skype: hub.orgICQ . 7615664
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQFFe5zw4QvfyHIvDvMRAp+QAJ9qG5gE/tR0LbUelpmoWdJyXdqJewCeJ3Dx
GP2uVktF1qvJo6mXbb1JlzQ=
=AfVV
-END PGP SIGNATURE-

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


Re: dns cache on a desktop

2006-12-09 Thread Abdullah Al-Marrie

On 12/10/06, Dan Nelson <[EMAIL PROTECTED]> wrote:

In the last episode (Dec 09), Jonathan Horne said:
> how can i flush the dns cache on my desktop system?  google turns up
> plenty on how to do it in linux or osx... but not freebsd.  can
> someone clue me in?

Just bounce named:  /etc/rc.d/named restart

If you are not running named, you have no cache to flush :)

--


Is there away to cache dns for faster lookup, I don't run named? I use DHCP.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Example network protocol implementation

2006-12-09 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]>
"Vishal Patil" <[EMAIL PROTECTED]> writes:
: Could someone point me to an example that shows a SIMPLE network protocol
: implemented over TCP/IP inside the FreeBSD kernel. I think I could look at
: the NFS client driver but is there an example simpler than that. Also is
: there a guide explaining how to go about developing TCP/IP based network
: protocols for FreeBSD.

[ to implement iSCSI in the kernel ]

I'm unsure which side you wish to be on.

There's accept filters that you can write, but I doubt that's what you
want to do.  This would be good if you are implementing an iSCSI
target on FreeBSD, maybe (then again, maybe not).

If you want to be an iSCSI initiator (I think that's the right term),
then you'll need to do things similar to what
sys/nfsclient/nfs_socket.c does.  I could do a quick code walkthrough,
but you'd likely be better off studying the nfs code since it will
give you a better understanding than I can in a few lines.  In
addition, because locking has changed over time, the exact version
matters.  Careful study will show differences in what locks are
needed, if any.

But in a nutshell, you call socreate to get a socket.  You setup the
various fields in the socket data structures.  You call sosetopt to do
the latter.  sobind will set this host's endpoint, and soconnect will
connect the socket to the remote side.  You'll need to setup send and
receive buffers and manage them with soreceive and sosend.  there's
some callbacks that also need to be established as well.  And some
socket layer locking that may be exposed to your code because there
are so few in-kernel protocol implementations that aren't peers to
TCP, UDP or IP.

I hope this helps.

Warner


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