count the number of ports

2002-12-04 Thread Zhihui Zhang

Is there a way to count the number of ports in a FreeBSD release? I guess
this boils down to how to parse the file /usr/ports/INDEX easily.  
Thanks.

-Zhihui


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



Re: how to ssh as root

2002-11-27 Thread Zhihui Zhang


On Wed, 27 Nov 2002, Roman Neuhauser wrote:

> # [EMAIL PROTECTED] / 2002-11-27 11:58:27 -0500:
> > I used to ssh as root to a FreeBSD box and uses the root password.
> 
> don't do it.

I only use it for development purpose - it will probably be reinstalled
quickly.  No important data on it. Anyway, I am curious why ssh can not
protect root password.


> > Today, I reinstall 4.5-Release and try the same thing:
> 
> don't use 4.5-RELEASE, there are huge holes in it.
>  
> > $ ssh -l root mymachine
> > otp-md5 100 pl6491 ext
> > S/Key Password:
> 
> hit enter without typing anything, it'll prompt you for your
> password.

Do not work. Thanks anyway.

> > I was expecting something like:
> > 
> > $ ssh -l root mymachine
> > root@mymachine's password: 
> 
> *IIRC*, the S/Key prompt comes from ChallengeResponseAuthentication,
> but I'm not really sure.
> 
> -- 
> If you cc me or remove the list(s) completely I'll most likely ignore
> your message.see http://www.eyrie.org./~eagle/faqs/questions.html
> 


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



how to ssh as root

2002-11-27 Thread Zhihui Zhang

I used to ssh as root to a FreeBSD box and uses the root password.
Today, I reinstall 4.5-Release and try the same thing:

$ ssh -l root mymachine
otp-md5 100 pl6491 ext
S/Key Password:

I was expecting something like:

$ ssh -l root mymachine
root@mymachine's password: 

I did set PermitRootLogin to yes in file /etc/ssh/sshd_config. Why this
change?

Thanks.

-Zhihui


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



Re: Using msdos floppy on FreeBSD

2002-11-06 Thread Zhihui Zhang

You are right. The original short name files will be converted to capital
letters.  Thanks,

-Zhihui

On Tue, 5 Nov 2002, Dan Nelson wrote:

> In the last episode (Nov 05), Zhihui Zhang said:
> > I have two FAT floppy that I used to transfer files between FreeBSD
> > and Windows. One can show longer file names, the one cannot. What
> > format command (on FreeBSD or Windows) does this trick (i.e. choose
> > FAT32)?  I want to reformat the floppy that does not show longer than
> > eight names.  Thanks.
> 
> If a floppy has only short names, mount_msdos assumes it's a DOS floppy
> and will not generate long names when you create files on it.  You can
> force it by mounting the floppy with the -l option, or you can put a
> long filename on the floppy with a Windows machine, which should cause
> BSD to use long filenames the next that floppy is mounted.  You don't
> need to reformat.
> 
> -- 
>   Dan Nelson
>   [EMAIL PROTECTED]
> 


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



Using msdos floppy on FreeBSD

2002-11-05 Thread Zhihui Zhang

I have two FAT floppy that I used to transfer files between FreeBSD and
Windows. One can show longer file names, the one cannot. What format
command (on FreeBSD or Windows) does this trick (i.e. choose FAT32)?  I
want to reformat the floppy that does not show longer than eight names.  
Thanks.

-Zhihui


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



Re: Install FreeBSD on a Windows XP box

2002-10-25 Thread Zhihui Zhang
> 
> -Original Message-
> From: Zhihui Zhang <[EMAIL PROTECTED]>
> To: Jerry McAllister <[EMAIL PROTECTED]>
> Date: Fri, 25 Oct 2002 14:22:23 -0400 (EDT)
> Subject: Re: Install FreeBSD on a Windows XP box
> 
> Jerry:
> 
> Hi, Zhihui.  If you care to make the BootItNG
> partition smaller (though it looks as if you have
> plenty of space), you can uninstall it, resize your
> partition(s) to cover the newly opened space, and
> reinstall BootItNG.  You don't have to create a
> dedicated partition for it.  It will create its
> own 8mb FAT partition if installed to a drive
> without one.

I tried to let it create its own partition, but failed. I can probably
make the partition smaller if I use FAT16 instead of FAT32, which requires
some minimum space per partition.

-Zhihui


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



Configure X on FreeBSD 4.6 on Dell

2002-10-25 Thread Zhihui Zhang

I have a new Dell Dimension 4500 but with an old Dell monitor D1028L. I
have installed FreeBSD 4.6 on it, but I have troubles configuring X
server. I have chosen NVidia 0172 as the card and IntelliMouse as the
mouse (both shown in dmesg).  But I think the biggest problem is the
frequency.  I can not use graphics configurator, it just go blank. I have
to use CTRL+ALT+Backspace to bring back the text mode after each failure.
What is the right monitor type and frequency should I use?

Thanks!

-Zhihui


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



Re: Install FreeBSD on a Windows XP box

2002-10-25 Thread Zhihui Zhang
Jerry:

Thanks for your long response. I have downloaded bootitng v1.32 from
http://www.terabyteunlimited.com/ and it works great. It has nice menu.  
The only thing to watch is that I should create a dedicated partition for
bootitng before trying to install it. I also changed the timeout from 0 
to 5. The machine originally has:

MBR entry 031MB Dell Utility
MBR entry 1 all the rest of the disk space HPFS/NTFS

Now it has:

MBR entry 031MBDell Utility
MBR entry 1  7499MBHPFS/NTFS
boot  126MBFAT-32<-- BootItNG
FreeBSD 68661MBxBSD

Who said four primary partitions is enough? 

-Zhihui

On Thu, 24 Oct 2002, Jerry McAllister wrote:

> > 
> > 
> > I have a machine preinstalled with Windows XP and I do not want to remove
> > it or reinstall it. Is there a way to install FreeBSD on the free space? I
> > do not have Partition Magic. Any free software out there that can
> > repartition without reinstallation?  Thanks.
> 
> There is a freeware utility that can do this with Microsloth file systems
> up through fat-32 but since it is XP and, probably, an NTFS partition, 
> invest in a partition managing utility.   
> 
> I have used Partition Magic successfully and have seen BootItNG recommended.  
> I haven't used BootItNG.  Partition Magic is generally available in stores 
> like Best Buy, etc.  I would guess that BootItNG is also, but it can be 
> had from: http://www.terabyteunlimited.com as well.
> 
> Generally you want to squeeze the XP partition down to the front of
> the disk enough to give you what space you want for FreeBSD and have
> it make you an empty parition (called slice in FreeBSD PARLANCE) out 
> of the rest of the space above it.  
> 
> Then you install FreeBSD in that empty slice.   
> You will divide that FreeBSD slice up in to the FreeBSD partitions 
> you will use for mountable filesystems and swap space.   Note the 
> difference in use of the term 'partition' between BreeBSD and MS.
> 
> Choose to install the full boot manager when you do the FreeBSD
> install or get one of the other popular ones and install it.
> The FreeBSD boot manager will allow you to boot either OS just fine, 
> but it does not know what to call XP on an NTFS system so it just 
> labels it  ??  in the selection menu.   Some of the others are
> prettier and let you play with stuff a little more.
> 
> Things to watch:
> Some older BIOSes will not boot stuff if the address is too high -
> around 8GB in most disks.  It has to do with a cylinder counter
> not being large enough to count beyond 1024.   Partition Magic
> warns you of where that point is on the disk when you partition it.
> 
> Microsloth seems to like to have an extra partition or some kind of
> space at a high address on the disk that I don't know much about - 
> seems to be some sort of scratch space.  Make sure you don't wipe 
> that out on a fully running system if it is there.  
> 
> Some vendors, such as Dell make their own sort of hidden space on
> the disk for their own maintenance utilities.  I think that must be
> treated as a partition (slice) and protected from tinkering.  Someone
> else can probably answer better on this.
> 
> If you use Partition Magic and the MS stuff is an NTFS partition, you 
> must first install Partition Magic, then make the two "rescue disk"
> floppies it tells you about (format two floppies ahead of time)  and 
> finally boot to the floppies and do the partition resizing from there.  
> It doesn't seem to like to do it from the installed version on a running
> system - probably due to the scratch space thing I mention above, but it 
> won't boot the rescue disk without the thing being installed, I guess as 
> some sort of copy protection.
> 
> I am guessing that BootItNG has to take care of similar housekeeping
> issues as the NTFS scratch space as well, but don't know how it goes 
> about handling them.
> 
> Now, of course, you can just have a complete separate disk for the 
> FreeBSD installation if you like and you have the disk available.
> Then, forget all the Partition Magic or BootItNG stuff.  Just
> make the second disk one big FreeBSD slice, divide it up in to 
> appropriate FreeBSD partitions and then install FreeBSD in that.  
> Still install the boot manager (which will still go in to the 
> sector 0 MBR area of the first disk) so you can choose to boot 
> either OS.
> 
> jerry
> 
> > 
> > -Zhihui
> > 
> 


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



Re: Connect two machines via plip0

2002-10-19 Thread Zhihui Zhang

Never mind.  I misspell 192 as 129 on one machine. It works now.

On Fri, 18 Oct 2002, Zhihui Zhang wrote:

> 
> I tried to connect two machines with a parallel cable.  Some 
> configuration files are as follows:
> 
> In file /etc/rc.conf, add following lines:
> 
> inetd_enable="YES"
> hostname="pc1.myhome.org"
> ifconfig_lp0="inet 192.168.1.1 192.168.1.2 netmask 255.255.255.0"
> 
> In file /etc/hosts, add the following line:
> 
> 192.168.1.1 pc1.myhome.org pc1
> 192.168.1.2 pc2.myhome.org pc2
> 
> Of course, I do this on both machines (with necessary changes).
> But ping won't work.  I have done this with the same machines and cable
> many times before. Only this time, I am using 4.6-release. Anything
> changes in 4.6-release or am i missing something?  Do I have to explicitly
> enable ICMP or what?
> 
> Thanks for any suggestions.
> 
> -Zhihui
> 
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message
> 


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



Connect two machines via plip0

2002-10-18 Thread Zhihui Zhang

I tried to connect two machines with a parallel cable.  Some 
configuration files are as follows:

In file /etc/rc.conf, add following lines:

inetd_enable="YES"
hostname="pc1.myhome.org"
ifconfig_lp0="inet 192.168.1.1 192.168.1.2 netmask 255.255.255.0"

In file /etc/hosts, add the following line:

192.168.1.1 pc1.myhome.org pc1
192.168.1.2 pc2.myhome.org pc2

Of course, I do this on both machines (with necessary changes).
But ping won't work.  I have done this with the same machines and cable
many times before. Only this time, I am using 4.6-release. Anything
changes in 4.6-release or am i missing something?  Do I have to explicitly
enable ICMP or what?

Thanks for any suggestions.

-Zhihui


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