Re: NFS and crossmount

2009-11-18 Thread John Nielsen
On Monday 16 November 2009 06:10:23 Patrik Usher wrote:
 I'm chaning fileserver to a FreeBSD 7.2 from my old linux and can't find
 how to define the option crossmnt (crossmount) for NFS.

 Does anyone know if it's supported under FreeBSD 7 and if so, how to
 define it ?

I don't believe a similar option is available. You need a line in /etc/exports 
for each filesystem (mountpoint) you wish to export.

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


Re: Failure to do netinstall

2009-10-30 Thread John Nielsen
On Friday 30 October 2009 03:12:29 Vadim Maksimenko wrote:
 I have faced an unpleasant fact that your netinstall ability of 7.2
 RELEASE and 8.0-RC2 are dead. My network card is being identified and
 initialized properly (an old 3com980), it gets DHCP setup (IP, gateway, DNS
 info is ok), but... That's all that is done properly. When I try to select
 any flavor of network install, it crashes with a message like Cannot
 connect bla bla bla: the connect is in wrong state.

I just did a network installation of 8.0-RC2 yesterday (albeit from an 8.0-RC1 
bootonly CD) so I'm fairly certain it's not totally broken. Since you 
apparently got a valid DHCP lease on your NIC it's probably not the card or 
the driver that's broken either

 What should I do now if I want to install FreeBSD via network and have
 no option of changing the hardware?

We need to figure out what _is_ wrong. Can you provide more details of the 
exact steps you took during the setup? Do you have the exact error message?

Guessing wildly, it's entirely possible that sysinstall got confused at some 
point. Did you have to repeat the network configuration or FTP server 
selection? Did you try repeating the installation after a reboot?

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


Re: Change one file in an ISO image

2009-09-17 Thread John Nielsen
On Thursday 17 September 2009 17:09:28 Tim Judd wrote:
 On 9/16/09, Gelsema, P (Patrick) - FreeBSD free...@superhero.nl wrote:
  I need to change one file in an existing ISO image. It is a DVD image
  btw. Unfortunately I dont have many options of changing the fie before
  creating the image.

 the cd9660/iso9660 filesystem type doesn't support rw options.  Even
 if you mdconfig and mount -o rw, it is mounted ro

If your change does not require altering the size of the file you wish to edit 
you may be able to just use a hex editor. I don't know enough about the ISO 
9660 filesystem to say whether and how often it fragments files, but for a 
localized change you should be able to find the block containing the original 
file data and alter it. On the plus side you can check your work by mounting 
the modified ISO image and making sure you got the right file, etc.

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


Re: [OFF?] Mac OX Driver

2009-09-13 Thread John Nielsen

On Sep 13, 2009, at 2:53 PM, Mario Lobo ml...@digiart.art.br wrote:

Sorry to put a lame question here but I need a little feedback as to  
keep my

hopes up or bury them.

I have an old sound board (echo gina20) that I need to keep using  
(for $$$
reasons), but I also must upgrade my OSes to 64 bits. There are XP  
32bit
drivers but no XP 64bit ones for it. There are no Gina20 drivers for  
freebsd

but there IS a Mac OS X driver for it!.

Is it possible to use a Mac driver on FreeBSD?


In a word, no. If you have access to the source it should be possible  
to port the driver, but there's no reason to assume the effort would  
be trivial.



Has this ever been tried or
done? should I bury my hopes?


See above. Drivers do get ported between OSes all the time but there's  
no magic involved. FreeBSD and Darwin have very different kernel  
origins. Snow Leopard may be your friend.


JN

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


Re: [OFF?] Mac OX Driver

2009-09-13 Thread John Nielsen

On Sep 13, 2009, at 8:22 PM, Mario Lobo ml...@digiart.art.br wrote:


On Sunday 13 September 2009 17:39:50 John Nielsen wrote:


origins. Snow Leopard may be your friend.

JN


What do you mean by that, John? What help can I get from Snow Leopard?


Your only stated OS requirement other than your soundcard working was  
64-bit support, and Snow Leopard provides that (even more than its  
predecessors). If the mac driver for your card still works in that  
version then it might fit the bill. Of course if you have other  
requirements or preferences then it may not, I was just throwing it  
out as an idea.

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


Re: RAID10 setup

2009-08-23 Thread John Nielsen
You're on the right track, additional comments inline.

On Saturday 22 August 2009 06:49:06 am Phil Lewis wrote:
 This question was asked a few weeks ago, but the original poster
 must have had their questions amswered. As follow-ups offered
 further assistance given more detail, I wonder if I could be so bold
 as to provide that detail for my own circumstances.

 I have six disks:

 ad4  - 500MB
 ad5  - 500MB
 ad6  - 500MB
 ad7  - 400MB
 ad8  - 500MB
 ad10 - 500MB

 These are SATA drives, with ad8 and ad10 on a PCIe SATA controller.

 ad7 was my first disk and currently contains FreeBSD7.2-RELEASE.
 I've been using that to gain some familiarity with FreeBSD, but it
 need not be preserved (in fact, I'd rather not preserve it!). When I
 built the machine, I just plugged the 400GB drive in any old slot,
 so it can move if that makes sense. When I got the new drives I tried
 to get identical to the 400GB drive, but couldn't. The 400GB drive
 currently has a single slice using the full drive.

Just make sure you have the disk(s) you plan to boot from on a controller 
that will boot in your machine. If the controllers have different 
performance characteristics then you probably want to share the wealth of 
the better one between multiple mirrors.

 What I'd like to end up with is a three-way stripe across three
 two-way mirrors, containing as much of the system as possible.

This is certainly do-able. If it were me I'd put the whole OS on 
the spare change partitions and leave the whole stripe for your serious 
data consumer(s): /home, /data, possibly /usr/local or some or all 
of /var, etc. Depends on your intended use of the storage naturally.

 I understand that you can't boot from a stripe, so some part of some
 disk will have to be outside the stripe. However, as the stripe will
 also be limited to the smallest disk, I'm going to have 5 x 100 GB
 bits left over anyway, so I guess /boot can go on one of these..?

Absolutely. I'd make a gmirror of two or three of them and put / on it. If 
you really want to be minimal w/ your use of the extra space then you 
could do /boot as you propose.

 If possible, I'd like set this up pre-install. If it has to be done
 post-install, or is easier to describe how to do post-install, then
 that's fine.

Either will work. Exactly how you do it depends on how much of the base 
system you want to end up on the stripe.

 From here on in, this email becomes speculative.

 All of the examples I've seen for setting up GEOM stripes and mirrors
 have used the raw disk as the base-level provider. On the other hand,
 I've seen nothing that says that the bottom level cannot be a slice,
 rather than a raw disk, and given the way GEOM works, I suspect this
 is true.

Yes, you can use partitions, slices or any other GEOM providers as members 
of gstripe, gmirror and friends.

 My current plan, based on this assumption, is as follows:

 With my current FreeBSD installation, create 2 slices on each 500GB
 disk, 1 x ~400GB,  1 x ~100GB (the same size as the slice of my 400GB
 disk, and the rest of the disk).

 Boot from the FreeBSD 7.2-RELEASE dvd, and enter fixit mode. I'm
 not sure which would be best, or even if both are feasible for what I
 want to do. (I was at this point in my researchwhen I found this
 post!).

 From here, kldload geom_stripe and kldload geom_mirror.

 Then, create the three mirrors:

 gmirror label -v main0 /dev/ad4s1 /dev/ad5s1
 gmirror label -v main1 /dev/ad6s1 /dev/ad571
 gmirror label -v main2 /dev/ad8s1 /dev/ad10s1

 This should give me /mirror/main0|main1|main2, right?

Right.

 Next create the stripe:

 gstripe label -v -s 131072 raid10 /dev/mirror/main0
   /dev/mirror/main1
   /dev/mirror/main2
   (that's all one line)


 If I'm right so far, then hopefully I should be able to boot to the
 install dvd again (or just rerun sysnstall?), and from there I should
 be able to choose a slice from outside 'raid10' to mount /boot, and
 use 'raid10' for everything else. Do I need anything else on a
 non-striped slice?

/boot or equivalent is the only thing required to smell like a normal disk 
(which gmirror is capable of but gstripe isn't). You may want to use some 
of the space for swap. The virtual memory system should do its own 
version of stripe or interleave if you feed it multiple swap devices.

 Maybe I could even create another mirror:

 gmirror label -v boot /dev/ad4s2 /dev/ad5s2

 and use that to mount /boot, leaving me with s2 on ad6,8 and 10 as
 3 spare 100GB slices?

 Or am I just way off track?

You seem to be pretty well on track. It seems you've already parsed the 
gstripe and gmirror man pages. You should probably look at fdisk(8) and 
bsdlabel(8) as well in case sysinstall doesn't tie up all your loose 
ends. Additionally you could just reinstall to a plain disk (or use your 
existing installation) and use dump/restore (and/or rsync) to move your 
filesystems to their multi-disk destinations.

 PS. I 

Re: Getting rid of X

2009-08-19 Thread John Nielsen
On Wednesday 19 August 2009 12:17:10 Scott Schappell wrote:
 In a parallel sort of thread to the current desktop thread, when I
 installed FreeBSD 7.2 since I had plenty of disk space and memory I
 installed X, however, I don't need it or really want it.

 How can I pare that out of the system short of doing a complete rebuild?

Install and run pkg-cutleaves, and let it loop through as many iterations as 
it needs.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: amd64 native ports?

2009-08-06 Thread John Nielsen
On Thursday 06 August 2009 10:19:47 Robert Huff wrote:
   Somewhere in *.freebsd.org is a page that lists which ports run
 natively on amd64 and what the status is for the others.  I've seen it,
 I have it bookmarked in a place that is currently unavailable, and I
 can't find it by hand.  Anyone have the URL handy?

There's always the build logs on pointyhat:
http://pointyhat.freebsd.org/errorlogs/

And some reports here:
http://portsmon.freebsd.org/index.html

Not sure which of those is exactly what you're looking for though.

HTH,

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


7.2 CD won't boot

2009-08-05 Thread John Nielsen.
Hi guys,

My 7.2 Release Disc 1 won't boot.  I get the following and nothing more:

CD Loader 1.2

Building the boot loader arguments
Looking up /BOOT/LOADER... Found
Relocating the loader and the BTX

I'm running on a Intel SE7501BR2, single Xeon, 2GB.  I have burned a
second CD and swapped the CD drive, cable and RAM, all to no avail.  I
have a RR1520 RAID controller, but removed that as well.  On-board SCSI
controller and serial ports have been disabled, too.  Nothing seems to
make a difference.

What on earth could be going on?

Thanks,

Brad Waite

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


Re: Striping a live file system RAID 10 help

2009-07-30 Thread John Nielsen
On Wednesday 29 July 2009 15:54:42 Richard Fairbanks wrote:
 OK, so this is what I want to do. I have 4 big fast drives that I want to
 run in RAID 10 (1+0). So, I'll need to mirror two sets of two disks, then
 stripe those two mirrors. So, how do I do this if I want this striped set
 of mirrors to be my entire fs? I can create both mirrors and have the
 entire fs on one of the mirrors (*mirror0*), but then I need to stripe it
 with the other mirrors (*mirror1*), and trying to create a stripe
 (*stripe*) from that a set of mirrors in which one of the mirrors contains
 the live file system does not work, obviously.

 I was thinking, very generally, of creating the fstab file that I'll need
 to point to the stripe instead of ad4 for example, rsyncing everything to a
 disk on a diffferent server, using a live CD to create the stripe, then
 rsyncing back to the stripe. I don't know if this will work, and haven't
 even come to a conclusion of the particulars needed.

When changing disk configurations on the same server I generally do everything 
by hand, then use dump+restore (rather than rsync) to move (UFS) filesystems 
around. (ZFS has zfs send/recv).

 Of course, if there is a way to create the striped set off mirrors before
 installation then installing onto that stripe, that'd be perfect. I don't
 know if that can be done. I'm sure someone has configured a RAID 10
 standalone system before. (Oh, I'm using 7.2). I'm just stuck at this
 point!

You need to consider where/how you are going to boot the system. It's 
straightforward to boot from a gmirror'ed UFS filesystem (the BIOS just uses 
one disk and thinks everything is normal), but you can't do the same from a 
stripe. You will either need a separate disk/device for your / or /boot 
partition or you will need to use slices/partitions on your disks. I 
frequently have the root filesystem on a small gmirror (partitions on 2 
disks) then use the equivalent extra space on the remaining disk(s) for 
swap.

Youi should be able to do this pre-install from the Fixit shell. Boot to the 
live CD, enter the shell, kldload geom_mirror and geom_stripe, create the 
mirrors, create the stripe, exit the shell, start the install, and tell 
sysinstall to use the device node under /dev/stripe for your filesystem.

Alternatively you could just do a regular install to one of the disks and do 
everything post-install. In this case you'd still create two mirrors but one 
of them would only contain a single disk at first. Then create your stripe, 
dump/restore your files, update fstab (in both locations if needed), reboot 
using the stripe, then add the original system disk into its mirror.

If you provide more details of how you want your setup to look I can give you 
a specific walkthrough if needed.

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


Re: FreeBSD-update fails finding upgrade

2009-07-29 Thread John Nielsen
On Wednesday 29 July 2009 11:31:51 Glen Barber wrote:
 On Wed, Jul 29, 2009 at 10:58 AM, Predrag Aleksicape...@gmail.com wrote:
  freebsd-update fetch
  Looking up update.FreeBSD.org mirrors... 3 mirrors found.
  Fetching metadata signature for 7.2-RELEASE from update5.FreeBSD.org...
  done.
  Fetching metadata index... done.
  Inspecting system... done.
  Preparing to download files... done.
 
  No updates needed to update system to 7.2-RELEASE-p2.
 
 
  Is that normal? I mean, there obviously seems to be a 7.2-RELEASE-p3 but
  then why isn't my system getting updated to that?

 The patch version is only bumped when there is a change in the kernel.

 See also:
 http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2009-03/msg00069.
html

Also see also 
http://security.freebsd.org/advisories/FreeBSD-SA-09:12.bind.asc. And either 
be patient or use one of the other methods mentioned to update:

NOTE: Due to this issue being accidentally disclosed early, updated
binaries are yet not available via freebsd-update at the time this
advisory is being published.  Email will be sent to the freebsd-security
mailing list when the binaries are available via freebsd-update.

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


Re: VMWare ESX and FBSD 7.2 AMD64 guest

2009-07-24 Thread John Nielsen
On Thursday 23 July 2009 19:44:15 Steve Bertrand wrote:
 This message has a foot that has nearly touched down over the OT
 borderline.

 We received an HP Proliant DL360G5 collocation box yesterday that has
 two processors, and 8GB of memory.

 All the client wants to use this box for is a single instance of Windows
 web hosting. Knowing the sites the client wants to aggregate into IIS, I
 know that the box is far over-rated.

 Making a long story short, they have agreed to allow us to put their
 Windows server inside of a virtual-ized container, so we can use the
 unused horsepower for other vm's (test servers etc).

 My problem is performance. I'm only willing to make this box virtual if
 I can keep the abstraction performance loss to 25% (my ultimate goal
 would be 15%).

 The following is what I have, followed by my benchmark findings:

 # 7.2-RELEASE AMD64

 FreeBSD 7.2-RELEASE #0: Fri May  1 07:18:07 UTC 2009
 r...@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC

 Timecounter i8254 frequency 1193182 Hz quality 0
 CPU: Intel(R) Xeon(R) CPU5150  @ 2.66GHz (2666.78-MHz
 K8-class CPU)
   Origin = GenuineIntel  Id = 0x6f6  Stepping = 6

 usable memory = 8575160320 (8177 MB)
 avail memory  = 8273620992 (7890 MB)

 FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
  cpu0 (BSP): APIC ID:  0
  cpu1 (AP): APIC ID:  1
  cpu2 (AP): APIC ID:  6
  cpu3 (AP): APIC ID:  7:

Did you give the VM 4 virtual processors as well? How much RAM did it have? 
What type of storage does the server have? Did the VM just get a .vmdk on 
VMFS? What version of ESX?

 Benchmarks:

 # time make -j4 buildworld (under vmware)

 5503.038u 3049.500s 1:15:46.25 188.1%   5877+1961k 3298+586716io 2407pf+0w

 # time make -j4 buildworld (native)

 4777.568u 992.422s 33:02.12 291.1%6533+2099k 25722+586485io 3487pf+0w

Note that the user time is within your 15% margin (if you round to the 
nearest percent). The system time is what's running away. My guess is that 
that is largely due to disk I/O and virtualization of same. What you can do 
to address this depends on what hardware you have. Giving the VM a raw 
slice/LUN/disk instead of a .vmdk file may improve matters somewhat. If you 
do use a disk file be sure that it lives on a stripe (or whatever unit is 
relevant) boundary of the underlying storage. Ways to do that (if any) depend 
on the storage. Improving the RAID performance, etc. of the storage will 
improve your benchmark overall, and may or may not narrow the divide.

The (virtual) storage driver (mpt IIRC) might have some parameters you could 
tweak, but I don't know about that off the top of my head.

 ...both builds were from the exact same sources, and both runs were
 running with the exact same environment. I was extremely careful to
 ensure that the environments were exactly the same.

 I'd appreciate any feedback on tweaks that I can make (either to VMWare,
 or FreeBSD itself) to make the virtualized environment much more efficient.

See above about storage. Similar questions come up periodically; searching the 
archives if you haven't already may prove fruitful. You may want to try 
running with different kernel HZ settings for instance.

I would also try to isolate the performance of different components and 
evaluate their importance for your actual intended load. CPU and RAM probably 
perform like you expect out of the box. Disk and network I/O won't be as 
close to native speed, but the difference and the impact are variable 
depending on your hardware and load.

A lightly-loaded Windows server is the poster child of virtualization 
candidates. If your decision is to dedicate the box to Winders or to 
virtualize and use the excess capacity for something else I would say it's a 
no-brainer if the cost of ESX isn't a factor (or if ESXi gives you similar 
performance). If that's already a given and your decision is between running 
a specific FreeBSD instance on the ESX host or on its own hardware then 
you're wise to spec out the performance differences.

HTH,

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


Re: OT: wget bug

2009-07-17 Thread John Nielsen
On Friday 17 July 2009 06:12:33 pm Joe R. Jah wrote:
 I want to wget a site at regular intervals and only get the updated
 pages, so I use the this wget command line:

 wget -b -m -nH http://host.domain/Directory/file.html

 It works fine on the first try, but it fails on subsequent tries with
 the following error message:

 --8--
 Connecting to host.domain ... connected.
 HTTP request sent, awaiting response... 401 Unauthorized
 Authorization failed.
 --8--

 I can change directory from which to run wget every time, but that
 defeats the purpose of downloading only the changed files.

 I googled wget fails on second try and found this small patch in a
 Linux group that should supposedly fix the problem:

 --8--
 --- wget-1.10.2/src/ftp.c.cwd   2006-12-03 13:23:08.801467652 +0100
 +++ wget-1.10.2/src/ftp.c   2006-12-03 20:30:24.641876672 +0100
 @@ -1172,7 +1172,7 @@
 len = 0;
err = getftp (u, len, restval, con);

 -  if (con-csock != -1)
 +  if (con-csock == -1)
 con-st = ~DONE_CWD;
else
 con-st |= DONE_CWD;
 --8--

 My wget is the latest version in the ports, 1.11.4.

 Any ideas or advise is greatly appreciated.

I can't tell if your patch has already been applied upstream or if it's 
a reverse patch. The current distfile matches the +++ version at line 
1185. (normally the +++ file is the new version but it's easy to get 
the order reversed if you're not used to running diff).

You could always just try the patch. Something along the lines of this:

cd /usr/ports/ftp/wget
make clean
make patch  #extract the distfiles and apply FreeBSD patches
cd work/wget-1.11.4/src
vi ftp.c#or any editor you like
  ...go to line 1185 and change == to !=
  ...save and quit the editor
cd /usr/ports/ftp/wget
make
make deinstall  make reinstall
  ... try your procedure again.

If you don't like the results a make clean will erase your (modified) 
work directory and you can build the original version again.

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


Re: Utah Open Source Conference

2009-07-09 Thread John Nielsen
On Wednesday 08 July 2009 23:02:00 Adam Barrett wrote:
 Dear Sir:

That's your first misconception (of at least two, I'm afraid). 
freebsd-questions is a mailing list intended for users of FreeBSD to ask 
questions which can then be answered by other members of the community.

 My name is Adam Barrett and I am with the Utah Open Source
 Foundation.This coming October we are proud to present our Third
 Annual Utah Open Source Conference, the premier gathering of 600+
 Geeks, Nerds, and just plain folks interested in Open Source and
 Technology.

That's interesting. A link to http://utosc.com would have been helpful here. 
(I first landed at your blog via http://utahcon.com.)

 This year we would like to extend the opportunity to FreeBSD to
 sponsor our event.

Misconception number two. FreeBSD is an operating system, not a corporation or 
other human entity. The FreeBSD Project consists mostly of developers and 
other volunteers, and is likely to have neither motive nor means to sponsor 
your event.

 I have attached a break down of our Sponsorship 
 packages, which I think you will find are extremely generous. I would
 suggest that you go with a Diamond package. This will give you the
 best penetration you can get in our conference.

See above. While we (and I use the term as a member of the community only, I 
don't speak for the FreeBSD Project) would like to see the project grow, 
paying for marketing is probably not the way it is going to happen.

On the other hand, if you wanted to offer a non-profit booth (gratis) to the 
FreeBSD Foundation, that would certainly be appropriate and probably 
well-received. See http://freebsdfoundation.org for contact and other 
information.

 I look forward to seeing FreeBSD at the Utah Open Source Conference this
 fall!

Maybe someone will show up with a laptop running FreeBSD. Or you could use a 
FreeBSD box to provide network services for the conference..

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


Re: port for separation audio from video in mp4 file

2009-06-09 Thread John Nielsen
On Monday 08 June 2009 03:05:20 pm Stefan Miklosovic wrote:
 title says it, i downloaded mp4 file by youtube-dl,
 but it downloaded video and audio as well. I would
 like to separate audio from that file.

 i try to find some port in /usr/ports/audio but nothing
 reasonable occudred.

For things that understand mp4 you should also look under 
ports/multimedia. The transcode program includes tcextract which is one 
way to do what you're asking.

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


fsck on 1.5TB drive

2009-06-06 Thread John Nielsen.
Hey guys...

I just installed 7.2 on a 1.5TB RAID 5. I'm using about 10GB for the
system and swap, and the rest for a single large partition to be used for
backups.  As of right now, the single partition, /bkup, is empty.

When booting after an improper shutdown, the system starts the backgrounds
fsck as usual and on all the other partitions, seem to take the normal
amount of time.  When it gets to the dirty /bkup however, fsck takes about
30 minutes - on an empty partition.  On top of that, running a df shows
that as much as 2GB of the partition is in use.  There's a .snap directory
off /bkup, but I can't ls it without the shell hanging.

Is this normal behavior?  Why is the fsck taking so long on an empty
drive?  What's the .snap dir for since I haven't run any dumps?  Disk
access on the rest of the system seems fine, so it doesn't appear to be an
issue with the RAID itself.

Thanks.

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


FreeBSD on USB drive for a MacBook Pro

2009-05-30 Thread John Nielsen
I'm looking for advice and/or pointers. I have an Intel-based MacBook Pro 
and I would like to use a USB thumb drive to be able to boot FreeBSD on 
it. Some questions:

1) Is this even possible? I've read that you _can_ boot Mac OS X from a 
USB hard drive on a new MacBook but I'm not sure if the same goes for 
non-Mac OSen or thumb drives.

2) What steps should I take to partition the thing? What boot code should 
I use and where should it live? I'm planning to do a manual installation 
in any event.

3) If I manage to get 1 and 2 sorted out, will I be able to boot the same 
thumb drive on a regular PC? Will any additional steps be necessary?

4) Just to be contrary, I'd also like to use GELI (if possible) for 
everything but /boot. Does needing an extra /boot partition change 
anything?

I'll be doing some experimenting, but if some things are already known 
(not) to work I'd like to start with as much info as possible.

Thanks,

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


Re: Configuring an IPv6 router to assign addresses

2009-05-06 Thread John Nielsen
On Wednesday 06 May 2009 10:39:24 am Odhiambo  ワシントン wrote:
 On Wed, May 6, 2009 at 5:30 PM, af300...@gmail.com wrote:
  Hi,
 
  I've found in the handbook how to start up a v6 router and some other
  helpful links on this topic at the FreeBSD diary. However, I'm
  wondering, how do I configure the router to assign addresses to
  hosts.

 Nice question. I wonder if isc-dhcp-server can already handle IPv6
 addresses. I, too, am interested in knowing and I guess it's time I
 start learning these IPv6 stuff.

Is there a reason you need to control the addresses used by your clients 
(other than the prefix)? I set up IPv6 on my LAN and while I have DHCPd 
running on the router for IPv4 addresses rtadvd is all I needed for IPv6. 
Clients assign themselves addresses based on the network prefix they 
learn from route solicitation and their own MAC address. That's supposed 
to be one of the reduced administration benefits of the new 
protocol. :)

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


Re: Broken Partition

2009-05-04 Thread John Nielsen
It is best to include the list in all replies, so that people other than 
the original responder can offer additional help and so people searching 
the list archives in the future will have a complete picture.

Also, not top-posting (putting replies in the context of the original 
message) is is preferred on this and many other lists. I've reformatted 
your message and added comments inline below.

On Monday 04 May 2009 04:18:37 am Chris Chambers wrote:
 On Sun May 03 John Nielsen wrote:
  On Sunday 03 May 2009 09:26:42 pm Chris Chambers wrote:
   Using partition magic, I freed some space from my msdos partition.
   Then using sysinstall's fdisk and label, I attempted to add the
   space to my freebsd partition. I broke the installation. The boot
   loader can not find /boot/kernal. I tried mounting the partition
   under FixIt, but mount says broken argument.
 
  When you say add the space to my freebsd partition what exactly did
  you do?

 Sorry, what I meant by add the space to my freebsd partition was:

 I created the free space, giving me:
 ad0s1
 ad0s2
 Free Space
 ad0s3

 I deleted and recreated ad0s3 in fdisk. Inside the label tool, I added
 swap space and mounted the remaining on / (as before).

You forgot to say I made a backup. If you really skipped that step then 
hopefully you'll remember next time..

Did you write down the original values from fdisk and bsdlabel? Putting 
them back may be your best bet for recovery.

I would avoid using _any_ swap until you have your data back.

If your new free space had been _after_ the FreeBSD slice on the disk you 
may have had better luck. Since you moved the _beginning_ of your slice 
that changed the relative offsets of everything else which is probably 
why your filesystem is broken (I am not a UFS expert). What is surprising 
is that the loader ran at all... unless you used bsdlabel -B or 
similar.

If you revert the fdisk and bsdlabel values, save your data and want to 
try again a safer approach would be to define a fourth slice to occupy 
the free space (yes it will be out of order but FreeBSD shouldn't care.. 
not sure about DOS or PartitionMagic). Then just use the slice as 
additional swap directly (no bsdlabel, just ad0s4). But do make a backup 
this time.

  What device nodes are listed for your disk from the fixit
  environment?

 Currently, the devices are:
 ad0s1 - DOS, type 7
 ad0s2 - DOS, type 7
 ad0s3
 ad0s3a - UFS
 ad0s3b - Swap
 ad0s3c - ?

The c partition is the raw partition and is always the same size as 
the underlying device (or should be). I don't know that it's used for 
much any more, but there are historical reasons it's there.

 I would settle for the ability to mount the drive so that I could
 retrieve a few files.

Try reverting the fdisk and bsdlabel values (see above).

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


Re: Broken Partition

2009-05-03 Thread John Nielsen
On Sunday 03 May 2009 09:26:42 pm Chris Chambers wrote:
 Using partition magic, I freed some space from my msdos partition. Then
 using sysinstall's fdisk and label, I attempted to add the space to my
 freebsd partition. I broke the installation. The boot loader can not
 find /boot/kernal. I tried mounting the partition under FixIt, but
 mount says broken argument.

When you say add the space to my freebsd partition what exactly did you 
do?

What device nodes are listed for your disk from the fixit environment?

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


Re: CVS history access?

2009-04-27 Thread John Nielsen
On Saturday 25 April 2009 09:12:50 pm Giorgos Keramidas wrote:
 On Fri, 24 Apr 2009 05:35:34 -0400, John Nielsen li...@jnielsen.net 
wrote:
  I'm working on a machine learning project and I'd like to use the
  FreeBSD src CVS commit history as a datasource. Is there a
  resource-friendly way for me to download some or all of it? Format
  isn't too big an issue.
 
  I tried a few cvs history commands against the anoncvs servers but
  get this: cvs [history aborted]: cannot open history file:
  /home/ncvs/CVSROOT/history: No such file or directory

 Do you really want just the `CVSROOT/history' file?  We allow mirroring
 of the entire repository, which you can then use to extract any sort of
 historical commit data.  (Well, _almost_ anything.  Some things like
 repo-copies and renames of raw repository files have been done without
 any sort of record, so it may be impossible to recover *those*
 particular bits.)

I'm basically looking for a list of all commits over the past N (2) years 
with committer, timestamp, affected file(s) and/or subsystems and 
possibly diff size information, etc. I don't know anything about 
the history file in particular other than that's what cvs complained 
about when I tried the cvs history commands against anoncvs. It looks 
like the /pub/FreeBSD/development/FreeBSD-CVS/src ftp path may have what 
I'm looking for (though it may be scattered through the individual 
files). I'll probably (try to) set up a local CVS repo and source it from 
there and see where that gets me. My CVS-fu is weak so I'm still open to 
pointers.

 We also have a Subversion repository now, that you can use to grab
 commit information.  It takes slightly more disk space than the CVS
 repository, but subversion can export XML formatted commit logs, which
 may be slightly more useful if you plan to automate parts of the
 parsing and info-gathering.

Yes, I'll definitely be automating the parsing, etc. Is it safe to assume 
that the cvs2svn migration went successfully? XML logs do sound appealing 
and aggregated (same time, multiple files) commits would be more useful 
than per-file. Can I just check everything out from 
svn://svn.freebsd.org/base/?

Thanks!

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


Re: [compiling installing FreeBSD]

2009-04-27 Thread John Nielsen
On Monday 27 April 2009 11:42:15 am alligator...@free.fr wrote:
 does make installworld  do any backup of the files it touch? is any
 way to failback that installworld?

No. Restore from (your own) backups, installation media, or rebuild the 
world you need from appropriately-dated sources.

 I think I have read that make installkernel do a backup of the kernel
 in kernel.old but for the world I would like to know.

That is correct, but it is only the kernel (and modules) that are backed 
up this way.

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


Re: CVS history access?

2009-04-27 Thread John Nielsen
On Monday 27 April 2009 12:39:53 pm Giorgos Keramidas wrote:
 On Mon, 27 Apr 2009 11:23:32 -0400, John Nielsen li...@jnielsen.net 
wrote:
  I'm basically looking for a list of all commits over the past N (2)
  years with committer, timestamp, affected file(s) and/or subsystems
  and possibly diff size information, etc. I don't know anything about
  the history file in particular other than that's what cvs
  complained about when I tried the cvs history commands against
  anoncvs. It looks like the /pub/FreeBSD/development/FreeBSD-CVS/src
  ftp path may have what I'm looking for (though it may be scattered
  through the individual files). I'll probably (try to) set up a local
  CVS repo and source it from there and see where that gets me. My
  CVS-fu is weak so I'm still open to pointers.

 There are online instructions for mirroring a full CVS copy, so it
 should be relatively easy to do that.  It mostly boils down to setting
 up the necessary disk space somewhere locally, installing one of the
 CVSup ports and configuring a `supfile' like this:

 *default host=CHANGE_THIS.freebsd.org
 *default base=/path/to/local/cvs/mirror
 *default prefix=/path/to/local/cvs/mirror
 *default release=cvs
 *default delete use-rel-suffix
 *default compress

 cvs-all

Thanks! I had forgotten about the cvs-all target.

[additional helpful info snipped]

  We also have a Subversion repository now, that you can use to grab
  commit information.  It takes slightly more disk space than the CVS
  repository, but subversion can export XML formatted commit logs,
  which may be slightly more useful if you plan to automate parts of
  the parsing and info-gathering.
 
  Yes, I'll definitely be automating the parsing, etc. Is it safe to
  assume that the cvs2svn migration went successfully? XML logs do
  sound appealing and aggregated (same time, multiple files) commits
  would be more useful than per-file. Can I just check everything out
  from svn://svn.freebsd.org/base/?

 The conversion from CVS to Subversion was ``good enough'' from what I
 see in the svn commit logs.  So it may be a good idea to use `svnsync'
 to mirror the /base/ repository locally and take it from there.

I installed the subversion-freebsd port and pulled in src from head. 
This lets me do e.g. svn log -g --xml locally and get an XML list of 
commits along the main (head/current) development line going back to 
1993.

For files changed with each revision I can do svn diff -c 
NUM --summarize. Is there a way to get this information integrated with 
the svn log output short of running the command for each revision in 
the log output?

 The instructions for mirroring the Subversion repository are a bit more
 involved, but if you decide to go that way, let me know and I will
 write a short description of how to do it.

I checked out base/head and am in the process of checking out base/stable 
so I can get commit data from -STABLE branches as well. (I'll probably 
figure out when each branch (in CVS terms) was created and then use svn 
log to just get commits after that date for each branch). I don't know 
that I need to mirror the whole SVN repository but at this point I am 
planning on going the SVN route so if you have additional tips they would 
be appreciated. Thanks!

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


Re: CVS history access?

2009-04-27 Thread John Nielsen
On Monday 27 April 2009 03:29:03 pm Giorgos Keramidas wrote:
 On Mon, 27 Apr 2009 15:03:30 -0400, John Nielsen li...@jnielsen.net 
wrote:
  I installed the subversion-freebsd port and pulled in src from
  head. This lets me do e.g. svn log -g --xml locally and get an
  XML list of commits along the main (head/current) development line
  going back to 1993.
 
  For files changed with each revision I can do svn diff -c
  NUM --summarize. Is there a way to get this information integrated
  with the svn log output short of running the command for each
  revision in the log output?

 It's already part of 'svn log --xml' output if you use the -v option.
 When you use -v *and* --xml at the same time, an additional element is
 inserted to each changeset listing all the path changes:

   $ svn log -v --xml -c 191585 file:///home/svn/base
   ?xml version=1.0?
   log
   logentry
  revision=191585
   authorrpaulo/author
   date2009-04-27T18:59:40.453027Z/date
 % paths
 % path
 %kind=
 %   
 action=M/projects/mesh11s/sys/net80211/ieee80211_output.c/path %
 /paths
   msgAppend Mesh Configuration IE on probe responses and beacons.

   Sponsored by:   The FreeBSD Foundation
   /msg
   /logentry
   /log

 I think the paths list of path changes is what you are after :)

Exactly right. Thanks much!

JN

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


Re: maybe OT, but involves OOO its slideshow fmt, ``Impress''

2009-04-24 Thread John Nielsen
On Friday 24 April 2009, Gary Kline wrote:
   This ought to help if I ever find a free speech synthesizer.
   I found one yesterday that must be a real human voice;
   unfortunately, commercial.

audio/festival in the ports is decent and has a few voices to choose from.

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


CVS history access?

2009-04-24 Thread John Nielsen
I'm working on a machine learning project and I'd like to use the FreeBSD 
src CVS commit history as a datasource. Is there a resource-friendly way 
for me to download some or all of it? Format isn't too big an issue.

I tried a few cvs history commands against the anoncvs servers but get 
this:
cvs [history aborted]: cannot open history file: /home/ncvs/CVSROOT/history: 
No such file or directory

I'm not too experienced with cvs so if I'm missing something let me know. 
The Mailman archives for freebsd-cvs are one option, but I was hoping for 
more of a direct approach if possible.

Thanks,

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


Re: legal aspects in order to use the open source sw fsck_msdosfs

2009-04-21 Thread John Nielsen
On Tuesday 21 April 2009 08:33:00 am Stefan Beskow wrote:
 Hello,
 My name is Stefan Beskow and I work as a configuration manager within
 Ericsson AB.
 I am investigating the legal aspects of the use of open source sw
 within a project.

 Could you please help me with information about license issues and
 copywriting issues ea for the fsck_msdosfs ?
 What is required in order to use the fsck_msdosfs software?

fsck_msdosfs is provided under a BSD license like most of the rest of 
FreeBSD. See: 
http://www.freebsd.org/copyright/index.html and especially 
http://www.freebsd.org/copyright/freebsd-license.html.

For fsck_msdosfs in particular, see also the comments at the top of the 
source files, e.g.:
http://www.freebsd.org/cgi/cvsweb.cgi/src/sbin/fsck_msdosfs/main.c?rev=1.15.20.1;content-type=text%2Fplain.

JN

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


Re: Build/Install world via ssh

2009-04-01 Thread John Nielsen
On Wednesday 01 April 2009 05:38:47 pm Simon Griffiths wrote:
 Hello,

 I tried to get an answer to this via web searches etc.  I have a
 freebsd 7 box that I plan on upgrading remotely via

 Make buildworld
 Make buildkernel KERNCONF=xyz

 Now im stuck,  I cannot get it down to single user because I only have
 access via ssh.  Would it hurt to

 Make installkernel KERNCONF=xyz
 Make installworld

 Mergemaster etc.

 Reboot

What specific versions are you upgrading to/from?

I personally do upgrades over SSH all the time (by skipping the 
single-user step) but there are reasons it's not recommended. If your new 
kernel doesn't work or play nicely for some reason you don't want to be 
stuck with a world newer than your (reinstalled) old kernel. If the 
system doesn't come back up multi-user for any of a variety of reasons 
then you won't have SSH access, etc.

You should have good backups and a way to get console access if it's 
needed. That said, it usually works--especially for small incremental 
upgrades (7.0 to 7.1 or just different points along the same -STABLE 
branch, etc).

So in a nutshell there are no guarantees but if you have an adequate 
bailout plan it can be a timesaver.

JN

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


Re: too many video drivers

2009-03-31 Thread John Nielsen
On Tuesday 31 March 2009 03:08:14 pm Tsu-Fan Cheng wrote:
I am rebuilding ports and realize that i have too many input/video
 drivers for x-win installed. i know i need nv driver since my graphic
 card is from nvidia, and i want to deinstall all others. but i am not
 sure if its safe to do so, e.g. i am confused by xf86-video-chips
 since i don't know what kind of chip that stands for. can someone
 tell me which are basics and which are safe to remove? thanks!!

Obviously you should keep mouse, keyboard and whatever driver(s) you 
actually plan to use (nv in this case). It's also a good idea to keep 
vesa as a fallback option. I habitually also keep the dummy driver though 
I'm not sure what it's used for. Everything else is fair game and should 
be safe to remove. Chips is (or was) a video card vendor so if you 
don't have such a card it's safe to remove as well.

JN

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


Re: Anyone know SunFire hardware

2009-03-04 Thread John Nielsen
On Monday 02 March 2009 01:57:21 pm Paul Schmehl wrote:
 We have FreeBSD installed on a SunFire box running two AMD Opteron
 processors. I was upgrading to 7.1 STABLE on Friday, and after
 installing the kernel I rebooted.  Now the box is completely unusable. 
 Does anyone know how to get a SunFire box to boot from the CD ROM?  Any
 changes I make to the BIOS seem to be completely ignored.  When I get
 to the FreeBSD boot loader, I lose keyboard, so I can't even go to
 single user mode.  Not being able to boot off the CD is a royal pita.

 I've done some Googling, and the most common answer seems to be hit
 STOP+A, but there is no STOP key on an Intel keyboard.  Is there a
 magic incantation that will work?   Maybe the entrails of a young goat?

I've been working on an X2100 recently. Unfortunately it is running Linux 
but I was able to boot from both a FreeBSD CD (in an external USB CD 
drive) and a USB stick without issue. Keyboard was USB as well.

F2 should take you to the BIOS setup screen, make sure you save your 
changes before exiting.. pretty standard AWARD-type BIOS. There's one 
screen where you can set the boot order between cdrom, hard drive, etc. 
and another submenu where you can set the hard drive boot priority.

HTH,

JN


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


Re: ping stucks/hangs on PCI 3com NIC sk0 interface but works on builtin NIC

2009-02-25 Thread John Nielsen
On Wednesday 25 February 2009 12:35:23 pm Faizan ul haq Muhammad wrote:
 Hi
 I have two PCI NICs and one builtin NIC on freebsd 7.0
 ifconfig shows information somthing like:

 bge0: flags=8843UP, broadcast, runing, simplex, multicastmetric 0 mtu
 1500 options=9bRXCSUM,TXCSUM, VLAN_HWTAGGING. VLAN_HWCSUM
 ether 00:13:21:f8:7e:56
 inet 192.168.0.1 netmask 0xff00 broadcast 192.168.0.255
 media: Ethernet autoselect (none) status: no carrier

This is NIC doesn't appear to be plugged in.

 sk0: flags=8843UP, broadcast, runing, simplex, multicastmetric 0 mtu
 1500 options=bRXCSUM,TXCSUM, VLAN_MTU
 ether 00:0a:5e:1a:69:25
 inet 192.168.0.2 netmask 0xff00 broadcast 192.168.0.255
 media: Ethernet autoselect (none) status: no carrier

Neither is this one.

 Note: bge0 is builtin NIC
 sk0 is 3com PCI NIC

 now after configuration of IPV4 Addresses, when i verify the
 configuration with ping

 if i ping bge0(ping 192.168.0.1) i get the response of success
 but when i ping sk0 (ping 192.168.0.2) Ping gets stuck and gives no
 response, neither it gives success or host unreachable or denied kinda
 errors..

Why do you want both interfaces to be configured on the same subnet?

 it just hangs over there.. and i can juz see one line of ping 
 not proceeding anyway. and if I terminate it via CTRL C then i get
 statistics sumthing like 3 packets sent, 0 received and 100% loss...

This is probably expected behavior. What does netstat -rn show? My guess 
is that the route for 192.168.0.0/24 is link#1 aka bge0 and since it's 
not plugged in to anything that's as far as it gets.

 I am stuck and my brain does not work any more here..
 Can anybody help me ...

JN

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


Re: ping stucks/hangs on PCI 3com NIC sk0 interface but works on builtin NIC

2009-02-25 Thread John Nielsen
On Wednesday 25 February 2009 01:11:42 pm Faizan ul haq Muhammad wrote:
  From: li...@jnielsen.net
  On Wednesday 25 February 2009 12:35:23 pm Faizan ul haq Muhammad 
wrote:
   Hi
   I have two PCI NICs and one builtin NIC on freebsd 7.0
   ifconfig shows information somthing like:
  
   bge0: flags=8843UP, broadcast, runing, simplex, multicastmetric 0
   mtu 1500 options=9bRXCSUM,TXCSUM, VLAN_HWTAGGING. VLAN_HWCSUM
   ether 00:13:21:f8:7e:56
   inet 192.168.0.1 netmask 0xff00 broadcast 192.168.0.255
   media: Ethernet autoselect (none) status: no carrier
 
  This is NIC doesn't appear to be plugged in.

 no it is not plugged into any other yet and if i plug it and ping it
 from an external machine, it works

That's good.

   sk0: flags=8843UP, broadcast, runing, simplex, multicastmetric 0
   mtu 1500 options=bRXCSUM,TXCSUM, VLAN_MTU
   ether 00:0a:5e:1a:69:25
   inet 192.168.0.2 netmask 0xff00 broadcast 192.168.0.255
   media: Ethernet autoselect (none) status: no carrier
 
  Neither is this one.

 You are right, but it does not reply to ping even if i plug this to an
 external system with crossover cable and ping from that PC.

Still not surprising. See below.

 that is the difference in behaviour of both NICs

   Note: bge0 is builtin NIC
   sk0 is 3com PCI NIC
  
   now after configuration of IPV4 Addresses, when i verify the
   configuration with ping
  
   if i ping bge0(ping 192.168.0.1) i get the response of success
   but when i ping sk0 (ping 192.168.0.2) Ping gets stuck and gives no
   response, neither it gives success or host unreachable or denied
   kinda errors..
 
  Why do you want both interfaces to be configured on the same subnet?

 that is not required as such, I am just preparing the setup to use this
 machine a bridge and configure dummynet on this machine.

You might try a different configuration for your testing. I suspect if you 
changed the IP address of sk0 to 192.168.1.2 or similar it would behave 
as you are expecting.

   it just hangs over there.. and i can juz see one line of ping
   not proceeding anyway. and if I terminate it via CTRL C then i get
   statistics sumthing like 3 packets sent, 0 received and 100%
   loss...
 
  This is probably expected behavior. What does netstat -rn show? My
  guess is that the route for 192.168.0.0/24 is link#1 aka bge0 and
  since it's not plugged in to anything that's as far as it gets.

 btu it does not show any other interface in netstat printout with this
 -rn switch

 and can you explain, how this is the expected behavior then..?

There can only be one route at any time for any given network. When you 
bring up bge0 with 192.168.0.1 a route is automatically created for 
192.168.0.0 pointing to that interface. When you then bring up sk0 with 
192.168.0.2 no additional route can be added for 192.168.0.0 since there 
is already one present. Therefore ALL traffic destined for the 
192.168.0.0 network will go out via bge0.

In order to be able to ping 192.168.0.2 _locally_ you'd either need to 
connect the interfaces with a crossover cable (well, crossover isn't 
strictly necessary since gigabit ethernet adapters can figure it out on 
their own..) OR plug both interfaces into a switch/hub. Ping packet goes 
out bge0 (according to the route), across the wire and comes in on sk0 
(destination address). The response would be delivered directly to bge0 
(without going over the wire).

Similarly, in order to be able to ping 192.168.0.2 from a second machine 
all _three_ interfaces would need to be connected to the same network 
segment (via a switch/hub, etc). Ping packet goes out from peer, across 
the wire and in on sk0 (destination address). Response goes out bge0 
(according to route), across the other wire and back to the peer.

I hope this helps you make sense of things.

JN

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


Re: reread newsyslog.conf without reboot

2009-02-16 Thread John Nielsen
On Friday 13 February 2009 05:44:55 am Proskurin Kirill wrote:
 Fbsd1 wrote:
  How do I get the system to reread /etc/newsyslog.conf file with out
  rebooting the system?

 /etc/rc.d/newsyslog restart

Since newsyslog is run from cron (and doesn't stay active as a daemon) no 
action is strictly necessary. However running the script above will save 
you the trouble of creating empty logfiles if needed.

JN

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


Re: Wifi Card for laptop

2008-11-18 Thread John Nielsen
On Tuesday 18 November 2008 09:55:35 am Albert Shih wrote:
 Hi all

 I would like to buy a PCMCIA card for my new laptop (because FreeBSD do
 not recognise my internal wifi AND RJ45 ethernet cardsh** windows
 say it's Broadcom netXtreme 57xx gigabit ).

 So I just want to known what 802.11G card I can buy without drivers
 problem.

 My local dealer have those card :
[snip]
   Trendnet TEW-441PC

I ordered this card from newegg not long ago. It's inexpensive and 
well-supported by the ath(4) driver (unlike the (slightly cheaper) other 
trendnet card you mentioned).

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


Re: Official FreeBSD Forums

2008-11-17 Thread John Nielsen
On Sunday 16 November 2008 11:04:28 am Brad Davis wrote:
 The FreeBSD project is finally, after much work, pleased to announce
 the availability of an official FreeBSD web based discussion forum.

Thank you!

For problem-solving and discussion my personal preference is still for 
mailing lists, but given this announcement I decided to check out the 
forums. I am impressed by the layout and design and the thought that has 
obviously gone into setting up the categories, etc. I think the Howto/FAQ 
section alone will be a tremendous resource even for those of us who 
generally stick to mailing lists. It's only been online for a day and 
I've already learned something by scanning the rapidly growing number of 
posts in that section.

The forums also provide a valuable means for those of us who don't 
frequently contribute code to support the community in other ways. 
Timely, helpful answers to questions of all levels combined with 
moderation and involvement from a large community of users will make the 
site a valuable, lasting resource for the projet. I hope to contribute 
what I can and encourage others to do the same.

Regards,

John Nielsen

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


Re: Console size and scrollback buffer.

2008-11-10 Thread John Nielsen
On Monday 10 November 2008 08:07:23 am James Williams wrote:
 Hello List,

 [On FreeBSD 7.1-BETA2, i386.]

 1) How can I change the number of rowsxcols of the console? I'd like
 to use the maximum rows/cols available for the 1440x900 screen.

In order to use graphical VESA modes you need a custom kernel that 
includes these options:

options VESA
options SC_PIXEL_MODE

You will only be able to use a 1440x900 resolution if your video hardware 
advertises that as a standard VESA mode. Once you are running a kernel 
with the above options you can use vidcontrol to list the available 
options:

vidcontrol -i mode

When you see a mode you like you can switch to it using vidcontrol again. 
For example:

vidcontrol MODE_XX -f 8x8 cp437-8x8.fnt

Replace XX with the number of the mode you'd like to use. Adjust the 
arguments to -f to suit your needs. Other sizes are 8x14 and 8x16. You 
should choose a font to match the specified size and the character set 
you're using. See the manpage for vidcontrol for greater detail.

With a standard kernel you can use text modes like 80x50 or even 80x60 
to get more rows than the standard 80x25. e.g:

vidcontrol -f 8x8 cp437-8x8.fnt VGA_80x60

 2) How can these settings be made default (takes effect at boot)?

 IOW, what is the equivalent of the vga=0x365 Linux kernel option?

Use the allscreens_flags option in rc.conf. For the text example above 
you'd want:

allscreens_flags=-f 8x8 cp437-8x8.fnt VGA_80x60

Similarly for graphics modes, just include everything you'd include on the 
command line to vidcontrol.

 3) How I can set the scrollback buffer size (if that's the name) of
 the console -- the equivalent of Shift+{PgUp,PgDn} on Linux?

I usually do this via the SC_HISTORY_SIZE kernel option. Scroll-lock can 
be used to browse the history in any console virtual terminal.

See the sc(4) manpage for details on this option and the SC_PIXEL_MODE 
option mentioned above.

JN

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


Re: Geom multipath

2008-11-06 Thread John Nielsen
On Thursday 06 November 2008 07:13:36 am Ganesh kamath wrote:
 I am trying to get multipath running in freebsd version 7. Are there
 any configuration files that i can tweak with geom multipath?. The
 paths are active/passive to the storage array and i dont seem to have
 control of what path the IO takes, so i was wondering if there are any
 tweaks thati could do to control the flow of IO to a specific path.

Read the manpage. Thoroughly. gmultipath(8). :) There is only one active 
path to any device, and it is the first in the list of devices. You 
specify the device list when you create the provider and it is updated if 
errors occur and when gmultipath labeled devices reappear. I would 
guess/hope that the order would be preserved across a reboot but I'm not 
sure. That type of question might be suitable for the freebsd-geom@ 
mailing list.

 Also, the IO doesnt resume when i try to do some cable pulls and plug
 them back.

If you're not using an mpt or isp disk controller then you have to 
initiate a rescan manually for the device to reappear. See camcontrol 
and/or atacontrol. When the device _does_ reappear it will be inserted at 
the end of the list, so I/O will continue across the alternate path which 
is still first in the list.

JN

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


Re: recommendation word processer for xfce

2008-11-06 Thread John Nielsen
 --- On Thu, 11/6/08, FBSD1 [EMAIL PROTECTED] wrote:
  From: FBSD1 [EMAIL PROTECTED]
  Subject: recommendation word processer for xfce
  To: [EMAIL PROTECTED] ORG freebsd-questions@FreeBSD.ORG
  Date: Thursday, November 6, 2008, 8:40 PM
  Looking for word processer that runs on xfce and can output
  document in
  ms/word format.
 
On Thursday 06 November 2008, FBSD1 wrote:
   I looked at OpenOffice but there is no package of it since freebsd
 release 6 stable.
   It takes a very very long time to compile this port.

Take a look at abiword.

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


Re: Backup Winserver

2008-11-04 Thread John Nielsen
On Tuesday 04 November 2008 06:43:23 am Roey D wrote:
 2008/11/4 Graham Bentley [EMAIL PROTECTED]:
  Is there anyone using Rsync on windows to backup to a Linux or
  FreeBSD server?
 
  Are the Windows Rsync implementations reliable?

 I used to do that, the windows rsync client (runs on the top of
 cygwin) worked well for me.
 You can use this package:
 http://www.aboutmyip.com/AboutMyXApp/DeltaCopy.jsp
 which provides cygwin rsync plus GUI.
 The only issue I had is with files with non-latin characters in their
 names, in my case, Hebrew.
 Once I downloaded the Cygwin UTF-8 dll, which can be found here:
 http://www.okisoft.co.jp/esc/utf8-cygwin/
 everything seemed to work.

I've done this as well without problem. Look for cwrsync if you don't want 
to bother installing Cygwin yourself. It comes with the rsync tools and 
ssh all ready to go.

JN

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


Re: raid tool

2008-11-03 Thread John Nielsen
On Monday 03 November 2008 09:19:45 am Brent Clark wrote:
 New to BSD, Using FreeBSD 7.
 I need to build a test fileserver,  but I want it to use Raid 5.
 Googling says I must use vinum.

You have a few options, but strictly speaking the best-supported way to do 
RAID5 in FreeBSD is to use gvinum (vinum's GEOM-ified successor). It is 
part of the base system and not in ports.

There is also an unofficial geom_raid5 module, but last I was aware it 
still had some issues (and you'd have to grab the source and built it 
manually).

 Looking in the ports I see its not available. The links / sites google
 suggests were moderately old, so my question is, whats the tool for
 raid?

If you replace raid5 with redundancy and n-1 capacity then you could 
also look at geom_raid3, which is much simpler to configure than gvinum 
and also part of the base system. Additionally, FreeBSD 7.x has 
experimental support for ZFS (again in the base system and not in ports). 
That includes raidz, which is designed to have all of the good features 
of raid5 and none of the bad. I use it and it works well but you will 
need to do some reading and some manual tuning of your system. You'll 
also want a system with plenty of RAM and preferrably running 
FreeBSD-amd64 (vs FreeBSD-i386).

If you want to look in to RAID1 or RAID1+0 see geom_mirror and 
geom_stripe, also in the base system.

JN

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


Re: flash-9, 10 on FreeBSD

2008-10-29 Thread John Nielsen
On Tuesday 28 October 2008 01:30:18 pm matt donovan wrote:
 On Tue, Oct 28, 2008 at 10:41 AM, Dánielisz László 
 [EMAIL PROTECTED] wrote:
  I also had some fight with Adobe's Flash player, but unfortunately
  without success.
  I remaing curios about any solution.
  
  From: Mikhail Teterin [EMAIL PROTECTED]
  Sent: Tuesday, October 28, 2008 1:59:23 PM
 
  I'm having serious problems with Adobe's Flash 9 and 10 on my
  FreeBSD-7/amd64
  system.
 
  If I try to use it directly with linux-firefox, the entire browser
  crashes quickly. If I try www/nspluginwrapper with a native browser,
  the wrapper-launched npviewer.bin seg-faults instead. Either way, the
  plugin does
  not work...
 
  It appears, there was some activity recently in trying to fix these
  problems
  (is it all in linprocfs/?) What is the current status? Thanks,

 FreeBSD 7.1 should work with flash9 myself I had no luck so far but
 nox- does say it should work

I just updated to RELENG_7 (aka 7.1-PRERELEASE these days) on Monday and 
am able to use Flash 9 in native Firefox 3 with sound, no sound lag and 
no crashes so far. I have:

FreeBSD 7.1-PRERELEASE #0: Mon Oct 27 18:31:37 EDT 2008
compat.linux.osrelease=2.6.16
linux_base-f8-8_8
firefox-3.0.3,1
linux-flashplugin-9.0r124_2
nspluginwrapper-1.0.0

JN

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


Re: flash-9, 10 on FreeBSD

2008-10-29 Thread John Nielsen
On Wednesday 29 October 2008 01:22:40 pm Mikhail Teterin wrote:
 Sent by John Nielsen:
  I just updated to RELENG_7 (aka 7.1-PRERELEASE these days) on Monday
  and am able to use Flash 9 in native Firefox 3 with sound, no sound
  lag and no crashes so far. I have:
 
  FreeBSD 7.1-PRERELEASE #0: Mon Oct 27 18:31:37 EDT 2008
  compat.linux.osrelease=2.6.16
  linux_base-f8-8_8
  firefox-3.0.3,1
  linux-flashplugin-9.0r124_2
  nspluginwrapper-1.0.0

 Congratulations. i386 or amd64, though?

i386.

JN



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


Re: gconcat question

2008-10-19 Thread John Nielsen
On Sunday 19 October 2008, Roger Olofsson wrote:
 -Ursprungligt Meddelande-

 From: John Nielsen [EMAIL PROTECTED]
 Sent: 19/10/2008 3:39:00 AM
 To: freebsd-questions@freebsd.org
 Cc: [EMAIL PROTECTED]
 Subject: Re: gconcat question
 
 On Saturday 18 October 2008, Roger Olofsson wrote:
  What are the steps to bring back gconcatenated disks if doing an
  upgrade from FreeBSD6 to FreeBSD7 like this?
 
  As-is situation:
  FreeBSD 6.2-STABLE ad0 has FreeBSD ad1, ad2 and ad3 are gconcatenated
  using 'gconcat label -v data /dev/ad1 /dev/ad2 /dev/ad3'.
 
 The concat device should just appear automatically after the upgrade as
 long as you (continue to) load the geom_concat kernel module. Be aware
 that if
 the on-disk metadata format has changed then it will automatically be
 upgraded. This is usually a good thing but if you need to roll back to
 6.x for some reason it's something to take into consideration.
 
  Planned upgrade:
  Reboot from cdrom, install FreeBSD7 from cd to ad0
 
 Just curious, is there a reason you're going this route instead of
 upgrading from source?

 Hello John and thank you for your reply!

 Follow-up question - /dev contains a /dev/concat/label entry - is this
 entry created when loader.conf invokes the kernel module?

Yes. Many of the GEOM modules (label, mirror, concat, stripe, etc) create 
nodes in the relevant subdirectories in /dev as soon as they taste the 
drives (or other providers) and discover metadata belonging to them. This 
is generally when they are loaded (if modules) or at boot time (if compiled 
into the kernel or preloaded by loader.conf). Any time you insert a device 
(such as a USB stick) the loaded modules also have an opportunity 
to taste it and create nodes as appropriate.

 The machine won't be rollbacked so that's not an issue.

 The reason for following this route is that it's faster than doing it
 from source (it's an old machine). The machine has been a playground and
 has alot of ports installed that aren't being used anymore. The
 concatenated drives contain data only hence the need to preserve those.

Makes sense. :)

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


Re: gconcat question

2008-10-18 Thread John Nielsen
On Saturday 18 October 2008, Roger Olofsson wrote:
 What are the steps to bring back gconcatenated disks if doing an upgrade
 from FreeBSD6 to FreeBSD7 like this?

 As-is situation:
 FreeBSD 6.2-STABLE ad0 has FreeBSD ad1, ad2 and ad3 are gconcatenated
 using 'gconcat label -v data /dev/ad1 /dev/ad2 /dev/ad3'.

The concat device should just appear automatically after the upgrade as long 
as you (continue to) load the geom_concat kernel module. Be aware that if 
the on-disk metadata format has changed then it will automatically be 
upgraded. This is usually a good thing but if you need to roll back to 6.x 
for some reason it's something to take into consideration.

 Planned upgrade:
 Reboot from cdrom, install FreeBSD7 from cd to ad0

Just curious, is there a reason you're going this route instead of upgrading 
from source?

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


Re: Using mirroring to replace drive?

2008-10-18 Thread John Nielsen
On Saturday 18 October 2008, Chris Pratt wrote:
 Hi, For years I've been upgrading by building a temp
 server, transferring a production function to it and
 temporarily decommissioning the one server while
 I upgrade and rebuild it. I was thinking of trying a different
 approach since having tried out gvinum in the last
 couple of years.

 The current scenario is that I have a machine where the
 adaptec controller is suggesting I replace a failing SCSI
 drive which happens to be the system disk. I purchased
 a couple of new drives and thought I might just plug it in
 and mirror the failing drive on the new drive. Then
 pull the failing drive and plug in the other new drive as
 the second mirrored drive and be done with it. One
 obvious outcome would be a having a system drive
 mirror for future such issues. I have never built a mirror
 on the fly but it seems many have from what I've read
 and the cookbooks out there make it sound very
 easy. I was going to use GEOM Mirror on 6.2 (then
 upgrade to 7.0 after establishing the new good drives).

 1. Is this an appropriate way to deal with this?

It could be. However if the new disks are not the same size as the failing 
disk (or perhaps even if they are) I would recommend using dump/restore to 
do the transfer rather than including the failing drive in the mirror. 
Assuming you can only have 2 disks attached at any given time and want to 
mirror at the disk level (as opposed to partition or slice), the sequence 
would be something like this:

Connect new disk.
Gmirror label ... (create a single-member (broken) mirror on the new disk)
Partition (fdisk) and label (bsdlabel) the new mirror device, installing 
boot blocks as appropriate (fdisk -B and bsdlabel -wB, for example)
Newfs and mount (to a temporary location) each filesystem on the mirror.
Dump the contents of each filesystem from the original disk to the mirror 
device. Use the -L flag to dump to dump from a snapshot for live 
filesystems.
Edit temproot/etc/fstab and change the relevant mountpoint entries to 
refer to the ones on the mirror.
Ensure that temproot/boot/loader.conf contains 'geom_mirror_load=YES'.
Shut down, remove the old disk and connect the second new disk.
Boot (from the first new disk). If this doesn't succeed switch back to the 
old disk and figure out why.
Gmirror insert ... (add the second disk to the mirror)
Wait for rebuild to complete
Finished!

 2. Are there any high risk aspects of doing this while running
 a server in production? I'm thinking of things like how
 probable it is of trashing the original disk, making the
 system unbootable in the process etc?

Like other GEOM classes gmirror stores its metadata in the last sector of 
the provider (the disk, in this case). If you decide to include the old 
disk in a mirror there is a chance that this sector will have been in use 
by the filesystem, though in the whole-disk scenario this is somewhat rare. 
Using the approach I outlined above avoids the possibility altogether.

Other risks are minimal. The system will be I/O loaded during the 
dump/restore and mirror resync phases, though decent hardware can make this 
less obvious. If you manage to tickle a UFS snapshot bug during the dump 
the system could panic, though in my experience (on lightly-loaded systems 
without other snapshots and not using quotas) this has not happened.

Having a fallback plan (revert to the unmodified original disk) is another 
selling point of the method I outlined above.

 3. Are there better approaches that are safer (aside from
 my normal hardware swap MO).

See my response to 1).

 4. Does using GEOM Mirror RAID-1 make the upgrade from
 6.2 to 7.0 a dangerous proposition. I do upgrades via
 cvsup and buildworld.

Not really. The gmirror module in 7.x will read and understand (and possibly 
update) the on-disk metadata as soon as it sees it. Just be sure to load 
it. Worst case you end up booting from a single drive and have to manually 
specify your root partition.

 The environment is
   FreeBSD 6.2
   Supermicro with Adaptec SCSI
   All ~73 GB Maxtor and Seagate drives
   Current da0 system is Maxtor, there
   will be minor size differences, the
   replacement Cheetah is a hair larger.
   Apache, PHP5 and Mysql
   No existing RAID Configuration

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


Re: acpi_tz0: _TMP value is absurd ignored (-269.7C) Message in every 3 seconds .

2008-10-06 Thread John Nielsen
On Monday 06 October 2008 02:07:17 am dhaneshk k wrote:
 I installed freebsd-7.0  in a p4 machine , after installation when I
 reboot the machine , I am getting the message

 acpi_tz0: _TMP value is absurd ignored (-269.7C)   in every 3 seconds

I have a machine that does this as well. I haven't done any research into 
the cause or an actual fix, but a workaround is to add
hw.acpi.thermal.polling_rate=0
to /etc/sysctl.conf.

JN

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


Re: silicon Graphics hardware

2008-09-22 Thread John Nielsen
On Sunday 21 September 2008 03:23:58 pm Erik Trulsson wrote:
 On Sun, Sep 21, 2008 at 12:48:37PM -0400, Tim Kellers wrote:
  I googled a bit this morning and, except for some old (Freebsd 4.x)
  posts, I didn'r see anything terribly relevant, but does FreeBSD run
  on any Silicon Graphics hardware?  I've heard that (maybe) an Ubuntu
  distro _might_ run if the hardware was booted/configged with the Irix
  Foundations disks.  The Information Systems department where I work
  is aswim in some SGI hardware that they'd like to relocate and
  reclaim the space, so I'm looking for alternatives to repurpose the
  hardware.  Since I know FreeBSD better than any flavor of Linux, I'm
  looking for a BSD solution, first.
 
  I don't, yet, have the Foundations Irix disks, so I'm looking for any
  alternative I can find.

 FreeBSD does not (AFAIK) run on any Silicon Graphics machines.
 NetBSD is however capable of running on several Silicon Graphics
 machines, so you might take a look at that and see if it supports the
 particular hardware you have (it probably does, but no guarantees.)

Use this as a starting point:

http://www.netbsd.org/ports/sgimips/

JN

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


Re: Multiple installation of one ports

2008-09-16 Thread John Nielsen
On Tuesday 16 September 2008 01:26:35 pm FreeBSD wrote:
 I've been asked by a customer to install Drupal on one server to manage
 a new site. No problem yet. But, he also asked if it would be possible
 to install it for other sites.

 I know that there is a warning if you want to install a port that is
 already installed, but is there a way to bypass this? I know I could
 install it from the tarball from the website, but I want to be able to
 use portupgrade and portaudit to deal with it.

I've done this in the past with Gallery and it looks like Drupal should be 
workable too. The thing to do is to make either a clone port or a slave 
port of the original and tweak a few things. In particular you'll want to 
add some sort of suffix to the port name and change the installation 
directory.

For example, you could make a directory called ports/www/drupal6-customer 
and drop this in its Makefile:

PKGNAMESUFFIX=-${CUSTNAME}
DRUPAL_BASE=drupal6-${CUSTNAME}
.include ../drupal6/Makefile

You could then do things like
# cd /usr/ports/www/drupal6-customer
# make CUSTNAME=foo install clean
# make CUSTNAME=bar install clean
which would (with any luck) create independent installations of drupal 
under /usr/local/www/drupal6-foo and /usr/local/www/drupal6-bar. Or if 
you didn't want to worry about defining CUSTNAME all the time (or the 
desired name/location won't follow a predictable pattern) you could make 
a different slave port for each installation and hard-code the two 
values. I haven't tested any of this other than some quick verification 
of variables using make -V.

HTH. If you have specific questions about port mechanics the ports@ list 
might be the best place to ask. See also the Porter's Handbook: 
http://www.freebsd.org/doc/en/books/porters-handbook/

JN

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


Re: State of 3d video, which vendor has best support?

2008-09-08 Thread John Nielsen
On Monday 08 September 2008, KlaymenDK wrote:
 I'm about to build a new pc, the first in quite a few years. My problem
 is that I can't find out if I should choose a 3D chipset from Intel, Ati,
 or nVidia. What's the state of support, track record, and such for these
 nowadays?

This is becoming a FAQ. You should be able to find some good information in 
a couple of relatively recent threads.

The nutshell summary (in my opinion, from memory) is this:
 nVidia support is good w/ the binary driver on i386. Not available on amd64
 ati support is great for hardware supported by radeon(4x). The manpage has 
a pretty good list. Better support for fancier cards (hd, etc) is coming 
but not quite all the way there
 intel support is very good. Not quite as many souped-up options but modern 
onboard intel graphics are more than adequate for almost anything, 
including many games.

Personally I would look for Intel gfx in a laptop and a well-supported ATI 
card for a desktop.

 I'm planning to use FreeBSD (duh) mainly as a quad-core, dual-headed,
 desktop workstation, but would very much like to be able to play the
 occasional BZFlag (call me oldschool). Which vendor I choose will affect
 my options for motherboard and (onboard/separate) video, which will
 affect my choice of CPU, and so on. So this seems to be a fundamental
 question, but I can't find an authoritative guide to 3D in FreeBSD.

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


Re: Google Chrome

2008-09-05 Thread John Nielsen
On Tuesday 02 September 2008, Vlad GURDIGA wrote:
 On Wed, Sep 3, 2008 at 12:14 AM, Beech Rintoul [EMAIL PROTECTED] wrote:
  On Tuesday 02 September 2008, Vlad GURDIGA said:
  Hello,
 
  In Google Chrome System requirements
  (http://www.google.com/support/chrome/bin/answer.py?answer=95411to
 pic=14660) they say that a Linux version is going to appear. And in
  the Download and install help article
  (http://www.google.com/support/chrome/bin/answer.py?answer=95346qu
 ery=open-sourcetopic=type=) they say that it is open-source.
 
  Does this mean that is hope we'll have a FreeBSD version?
 
  If someone steps up and rolls and submits the port. You're welcome to
  volunteer :-)

 I'd be glad to, but I'm afraid I do not have the skills for that... :-(

It won't be trivial to port. Last night I got as far as installing the 
recommended versions of the dependencies (including nspr and nss a version 
ahead of what's currently in ports). The chromium build script assumes the 
existence of /proc and /bin/bash. I stopped trying for now when I 
discovered that it doesn't even run configure for some of the third-party 
tools. It uses canned header files generated for Linux or Mac..

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


Re: Google Chrome

2008-09-05 Thread John Nielsen
On Friday 05 September 2008, Robert Huff wrote:
 John Nielsen writes:
   It won't be trivial to port. Last night I got as far as
   installing the recommended versions of the dependencies
   (including nspr and nss a version ahead of what's currently in
   ports). The chromium build script assumes the existence of /proc
   and /bin/bash. I stopped trying for now when I discovered that it
   doesn't even run configure for some of the third-party
   tools. It uses canned header files generated for Linux or Mac..

   Have you offered your changes back to Google?

Haven't made any changes yet, just observations. I did send my updated nss 
port to the maintainer.. If I make any headway on Chromium itself I don't 
intend to keep it private, though I don't think it'll be a priority any 
time soon.

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


Re: vmware tools for ESX Server 3.5

2008-09-04 Thread John Nielsen
On Thursday 04 September 2008, B. Cook wrote:
 On Sep 3, 2008, at 12:11 PM, John Nielsen wrote:
  On Wednesday 03 September 2008, B. Cook wrote:
  I am setting up FreeBSD 7.0 and he is asking about the vmware-tools.
 
  Ports has some things, but I am not sure what I need, and neither
  is he.
 
  Can anyone tell me what it needs?
 
  I usually create VM's with the Intel gigabit vNIC's which can use
  FreeBSD's em driver. Since Xorg includes the vmmouse and vmware
  video
  drivers already, the main things you should be looking for are the
  memory balloon driver and the guestd service. In the past I have
  gotten
  these to work by using the supplied tools (on the CD image that
  is inserted when you select Install VMware tools from the host).
  However it is much easier nowadays to use the free version in
  ports/emulators/open-vm-tools (or open-vm-tools-nox11).
 
  JN

 Well this is the other way..

 FreeBSD is the guest not the host.

What I said applies to FreeBSD running as a guest VM. (You don't install 
VMware tools on a host.)

 This is what the owner of the cluster is telling me:

 The tools aren't absolutely necessary but if we can we always install
 them in guest machines.
 They allow the VMWare server to gracefully shutdown the guest

That's guestd. The VMware-supplied version actually does a shutdown -h for 
power-down. On Linux that works but on FreeBSD it simply halts the OS so 
you have to power down the VM yourself. The open-vm-tools power down 
correctly.

 improve 
 memory management

That's the balloon memctl driver. It actually improves memory management 
for the host by asking the guest (where it is running) to feed it available 
memory, which the host can then allocate to other VM's if needed.

 replace the virtual NIC with a higher performance 
 one

That applies to the vmxnet/lance type of virtual NIC. I've heard of people 
getting the VMware-supplied driver running under FreeBSD, but I've never 
messed with it. The le(4) driver does fine. Or you can do as I suggested 
and switch your virtual NIC to an intel one (which is the default for 
64-bit VM's, may require editing the .vmx file for 32-bit VM's) which will 
use the em(4) driver.

 replace the video driver (if you are running a GUI which we 
 aren't in this case.)

The vmware video driver is already included in current versions of Xorg, 
as is the vmmouse input driver which will synch the mouse pointer with 
the viewer's external session and release the cursor when it reaches the 
edge.

 etc 

I think he covered just about everything. :)

 But this machine is running fine, including the nightly snapshots.

I would still advise you to install some form of VMware tools. Again my 
preferences is for open-vm-tools.

 Below is the dmesg from the guest:
snip
 le0: AMD PCnet-PCI port 0x1400-0x147f irq 18 at device 17.0 on pci0
 le0: 16 receive buffers, 4 transmit buffers
 le0: Ethernet address: 00:50:56:83:49:9d

You may want to look at switching to the Intel virtual nic in the VM's 
configuration. (You would then also need to change any ifconfig_le0 entries 
in the guest's /etc/rc.conf to ifconfig_em0). For Workstation (and IIRC 
it's the same for Server and ESX) you do this by changing (or adding) a 
line like this:
ethernet0.virtualDev = e1000
in the config (.vmx) file for the VM.

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


Re: vmware tools for ESX Server 3.5

2008-09-03 Thread John Nielsen
On Wednesday 03 September 2008, B. Cook wrote:
 I am setting up FreeBSD 7.0 and he is asking about the vmware-tools.

 Ports has some things, but I am not sure what I need, and neither is he.

 Can anyone tell me what it needs?

I usually create VM's with the Intel gigabit vNIC's which can use 
FreeBSD's em driver. Since Xorg includes the vmmouse and vmware video 
drivers already, the main things you should be looking for are the 
memory balloon driver and the guestd service. In the past I have gotten 
these to work by using the supplied tools (on the CD image that 
is inserted when you select Install VMware tools from the host). 
However it is much easier nowadays to use the free version in 
ports/emulators/open-vm-tools (or open-vm-tools-nox11).

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


Re: Cloning a gmirrored hard drive

2008-08-25 Thread John Nielsen
On Monday 25 August 2008 11:50:41 am Julien Cigar wrote:
 Stupid question: can't you use growfs on the existing gmirror (after
 replace /dev/oneofdisk, resync, replace /dev/otherdisk, resync) ?
 Is it mandatory to create a *new* gmirror ?

There is no way to resize a gmirror provider without creating a new one. 
You could possibly insert the new large drive into the mirror, deactivate 
it, make a new gmirror on it (clobbering the old one), THEN use growfs.. 
but that's a lot mor ecomplicated and error-prone than doing it the right 
way using dump/restore. If downtime is a concern then use Ivan's method 
below but without going into single-user--just be sure to give -L to 
dump.

 On Mon, 2008-08-25 at 14:37 +0200, Wojciech Puchar wrote:
   Hi!
  
   My situation: I have a server with FBSD 7 installed with two 40 GB
   disks in RAID 1 (gmirror) config.
   Now I have noticed the lack of space on the drive so I am thinking
   to change these disks for two 160 GB.
   What is the best way to clone the main hard disk in raid 1 config?
   Is
 
  gmirror remove yourmirrorname /dev/oneofdisk
 
  shutdown and replace this one with 160GB
 
  boot single user
 
  make gmirror with this new 160GB drive (only one drive now so not
  real mirror)
 
  newfs and copy all data make it bootable, shutdown, remove second
  40GB drive, add second 160GB drive, boot and then
 
  gmirror insert yournewmirror seconddrive
 
  that's all.
  ___
  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: /etc/groups gone

2008-08-21 Thread John Nielsen
I would start by comparing the contents of /usr/ports/GIDs with the ports 
you have installed (as listed in /var/db/pkg). You can get a stock group 
file from src/etc/group. Reinstalling ports will recreate the groups they 
use (though you could do most of it manually), and you may be on your own 
for any custom groups you have.

On Thursday 21 August 2008 12:05:49 pm [EMAIL PROTECTED] wrote:
 Hi,

 Yesterday night at 1 a.m. I have managed to remove /etc/groups (rm
 instead of vi, was already sleepying). Luckily only a few groups (2-3)
 was created earlier. No backup, of course.

 I believe the file system is still correct, it uses group IDs instead
 of names (?). Though ls does not show the correct group names (only
 IDs) and creating new groups will reuse the old group IDs.

 Is there any better way of rebuilding /etc/groups than guessing and
 manually adding one-by-one.

 Can I somehow list all group IDs used by the file system?

 Many thanks.

 Balazs
 _
 News, entertainment and everything you care about at Live.com. Get it
 now! http://www.live.com/getstarted.aspx
 ___
 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: Migrating to gmirrored RAID1

2008-08-18 Thread John Nielsen
On Monday 18 August 2008 05:39:10 am Henry Karpatskij wrote:
 Hi,

 I have a failing IDE disk which is running my 7.0-p1 server. I've been
 investigating the possible solutions and I've decided to go with two
 new IDE disks and gmirror. However, I'm not too familiar with disk
 internals, I know how to install the system and somehow understand the
 concept of slices and partitions, but that's about it.

 I found some examples on how to install the gmirror on a running
 system, but they all have in common that they just add new spare disk
 to the system and turn on the mirroring to it, but I need to replace
 the current disk which is not the same size as the new ones.

 Any suggestions how one would do such an operation? Should I just re-
 install the server to a new disk, turn on the mirroring and then
 restore the configuration and files from the failing disk? Or is it
 easier to add the disks to the running system, turn on mirroring and
 then somehow dump the current disk to the mirror and then re-configure
 it to boot from the gmirror and remove the failing disk?

I think the latter approach is easier and makes the most sense for your 
situation. Install the disks, set up the mirror(s) that you want, 
transfer data and then do a boot test.

Something along these lines should work. Substitue device and volume names 
to match your hardware and tastes.
#set up a single mirror to use the whole disk (versus mirroring 
individual slices/partitions)
gmirror label myraid1 /dev/ad4 /dev/ad6
#install a partition table and the boot0 code
fdisk -BI /dev/mirror/myraid1
#install a default label and the main boot code
bsdlabel -wB /dev/mirror/myraid1s1
#create BSD partitions by hand. remember to set EDITOR if you don't 
like 
vi
bsdlabel -e /dev/mirror/myraid1s1
#This is the tricky part. Create the partitions you want on the mirror. 
Use the output of bsdlabel /dev/ad0s1 as a guide. Remember that a 
should be root, b is traditionally swap, c is the raw partition and 
should not be changed, and d - h are other partitions. I find a 
spreadsheet to be handy for figuring out the correct values, though a 
calculator is adequate (I've used dc more than once..). The units you are 
dealing with are 512-byte sectors. Best practice (which sysinstall 
doesn't follow but bsdlabel -w does) is to leave 16 sectors at the start 
of the slice for the boot code (but both swap and UFS will avoid 
clobbering it even if you don't do this). If you follow the best practice 
and do the partitions in order, then the offset for a is 16, and the 
offset for any other partition is the offset of the previous one plus the 
size of the previous one. Assuming your last filesystem wants to use the 
remainder of the slice, figure its offset as above then subtract it from 
the total (the size of c) for the size. For filesystem partitions the 
fstype should be 4.2BSD, and use 2048 16384 0 for the last three 
columns unless you have reason to do otherwise. (The bps is recalculated 
when you create a filesystem so it won't be 0 later. That's expected.) 
The fstype for swap space is swap and the last three columns are 
omitted. Save and exit the editor when finished.)
#Create filesystems
newfs /dev/mirror/myraid1s1a
#(repeat for other filesystems, changing the partition letter as 
appropriate)
#Make temp mountpoints
mkdir /newroot
#(again repeat as needed)
#Mount new filesystems
mount /dev/mirror/myraid1s1a /newroot
#(repeat as needed)
#Dump/restore filesystems
cd /newroot
dump -0 -L -C32 -f - / | restore -r -f -
rm restoresymtable
#(repeat as needed, changing the filesystem argument to dump and the 
cwd 
for your new filesystems. one or two messages from restore about getting 
a different inode than expected is normal.)
#edit /newroot/etc/fstab. Change the device for / 
to /dev/mirror/myraid1s1a. Make a similar change for other filesystems.
#edit /newroot/boot/loader.conf. Make sure it includes this line:
geom_mirror_load=YES
#shut down, remove the original disk, and try booting

Good luck!

JN

 Current df output:

 Filesystem  1K-blocksUsedAvail Capacity  Mounted on
 /dev/ad0s1a507630  159262   30775834%/
 devfs   1   10   100%/dev
 /dev/ad0s1e507630  56   466964 0%/tmp
 /dev/ad0s1f  33573476 6044408 2484319020%/usr
 /dev/ad0s1d   1762414  381632  123979024%/var
 devfs   1   10   100%/var/named/dev

 Thanks in advance,


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


Re: Unable to update transcode port

2008-08-14 Thread John Nielsen
On Wednesday 13 August 2008 07:54:47 pm Clint Olsen wrote:
 Hi:

 I've not been able to upgrade my transcode port for some time.  It
 eventually fails with:

 ERROR: requirement failed: cannot link against libavcodec
 libavcodec can be found in the following packages:
   FFmpeg  http://www.ffmpeg.org/

Do you have ffmpeg installed? Is it up-to-date? Are you using any WITH or 
WITHOUT knobs for the make?

I can't tell from the output you provided if this is relevant, but I 
recently had to install the archivers/lzo2 port before I could get ffmpeg 
upgraded (on one machine) or transcode installed (on another). Give that 
a shot.

   Please see the INSTALL file in the top directory of the
   transcode sources for more information about building
   transcode with this configure script.

   ===  Script configure failed unexpectedly.
   Please report the problem to [EMAIL PROTECTED] [maintainer] and
 attach the
 /usr/ports/multimedia/transcode/work/transcode-1.0.6/config.log
 including the output of the failure of your make command. Also, it
 might be a good idea to provide an overview of all packages installed
 on your system (e.g. an `ls /var/db/pkg`).
   *** Error code 1

   Stop in /usr/ports/multimedia/transcode.
   ** Command failed [exit code 1]: /usr/bin/script -qa
 /tmp/portupgrade.14149.0 env UPGRADE_TOOL=portupgrade
 UPGRADE_PORT=transcode-1.0.5_3 UPGRADE_PORT_VER=1.0.5_3 make ** Fix the
 problem and try again.
   ** Listing the failed packages (-:ignored / *:skipped / !:failed)
 ! multimedia/transcode (transcode-1.0.5_3)  (unknown build
 error)

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


Re: ATi Intel graphics

2008-08-13 Thread John Nielsen
On Wednesday 13 August 2008, Jim wrote:
 At some point fairly soon, I'll be rebuilding my computer, and I want
 three things.

 64 Bit for more memory, maybe a bit of performance boost as well -
 it's mostly a multimedia machine
 decent/good 3D acceleration (better than a GeForce 7300GS - a few
 games in WINE in 1920x1080 - yes, believe it or not, the 7300GS
 doesn't do /bad/ on many of the games, but it certainly could be
 better).
 FreeBSD.

You may want to rethink this. The emulators/wine port is i386-only:

%grep -i arch /usr/ports/emulators/wine/Makefile
ONLY_FOR_ARCHS= i386

 I've used Solaris and Linux, and honestly, I'd rather go back to
 Windows and use Cygwin for my *nix needs.
 I'd rather use FreeBSD for the system than Windows.

 64 Bit immediately knocks out the thoughts on using an nVidia card.

 Has anyone had much experience with a 3600 series ATi card, it's the
 best in the discreet-video category for my target price/performance,
 but not listed in the man pages for the Radeon (non-HD) - only the
 3400s and the 3800s). Aside from that, going for the really cheap end,
 has anyone had much experience with the Intel 4500HD chipsets yet? I'm
 lousy with other people's code (barely good with my own), but I could
 test if needed, if/when I get the board.

In my experience the Intel and Radeon drivers for Xorg work very well on 
FreeBSD, but I don't have experience with any of the specific hardware you 
mention.

 Could anyone give me some of their experiences here? How are your
 experiences with these pieces of hardware and their drivers in terms
 of stability/reliability (in FreeBSD of course)? Are either of these
 setups in a place where a tester would be needed/welcome?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ATi Intel graphics

2008-08-13 Thread John Nielsen
On Wednesday 13 August 2008, Jim wrote:
 On Wed, Aug 13, 2008 at 2:06 PM, John Nielsen [EMAIL PROTECTED] wrote:
  On Wednesday 13 August 2008, Jim wrote:
  At some point fairly soon, I'll be rebuilding my computer, and I want
  three things.
 
  64 Bit for more memory, maybe a bit of performance boost as well -
  it's mostly a multimedia machine
  decent/good 3D acceleration (better than a GeForce 7300GS - a few
  games in WINE in 1920x1080 - yes, believe it or not, the 7300GS
  doesn't do /bad/ on many of the games, but it certainly could be
  better).
  FreeBSD.
 
  You may want to rethink this. The emulators/wine port is i386-only:
 
  %grep -i arch /usr/ports/emulators/wine/Makefile
  ONLY_FOR_ARCHS= i386

 I was under the impression you could build it with -m32 set in CFLAGS
 and CXXFLAGS and it worked fine.

You may already know more than I do then; I haven't tried that and my main 
desktop is currently running i386.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to set quota ( as Mbyte ) for a directory?

2008-08-09 Thread John Nielsen
On Friday 08 August 2008, Chuck Swiger wrote:
 On Aug 8, 2008, at 11:49 AM, Yavuz Maslak wrote:
  On freebsd7, How to set quota for a directory?
  For instance I want to set 100Mbyte quota for a directory. How can
  I do
  that ?

 Quotas are handled per filesystem, not per directory.
 See man quotaon  man quotacheck, or the FreeBSD Handbook.

If you're in a position to use/migrate to ZFS, quotas are something you 
get for free. You still have to apply them on a per-filesystem basis but 
a ZFS filesystem is just part of a pool so it's a lot more dynamic. See 
the quota and refquota property descriptions in the zfs(1M) manpage.

However, ZFS is only available in FreeBSD 7.0 or newer and is still 
considered experimental. There is a patch for -HEAD (8-CURRENT) that brings 
in the latest version and addresses many issues, but it hasn't been 
backported to 7.x (and may not be).

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


Re: Adding device to FreeBSD 6.3-STABLE

2008-08-01 Thread John Nielsen
On Friday 01 August 2008, Jack Raats wrote:
 I would like to add the zyd device to FreeBSD.
 The zyd driver allready is in FreeBSD 7.0.
 Which steps do I have to take to add the zyd device to FreeBSD?

Sorry, what are you asking? What version of FreeBSD are you using and what 
do you need help doing?

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


Re: mount_msdosfs usb flash stick

2008-08-01 Thread John Nielsen
On Saturday 02 August 2008, joeb wrote:
 On 6.2 release of FBSD trying to mount a usb flash memory stick. The
 stick has a msdos file system on it and has been loaded with files using
 windows xp. When I plug the stick into my FBSD box I get console msg
 about da0 device as usb flash memory stick. All looks good at this point.
 When is issue this command,  mount_msdosfs /dev/da0 /mnt  I get this
 error msg  ' invalid argument' .  Also tried this format of the command
 with same results.mount -t msdos /dev/da0 /mnt (note typing error
 on msdos in first post. Sorry)

Most of the time usb drives are partitioned like regular hard drives. Do 
an ls /dev/da0* to see what you have, but you'll probably want:
mount -t msdos /dev/da0s1 /mnt

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


Re: Mounting hfs+ ipod on freebsd i386

2008-07-31 Thread John Nielsen
On Thursday 31 July 2008, David Gurvich wrote:
 Does the kernel need to be rebuilt in order to mount an ipod formatted
 with apple's hfs+ filesystem?  If yes, what options are needed in the
 kernel and if not, what needs to be done?  Other than reformatting to
 fat32.

Take a look at emulators/hfs and/or emulators/hfsutils. I haven't used 
either but it looks like they should do the trick. My guess is they run in 
userland and don't require kernel modifications.

JN

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


Re: upgrade from 6.3 to 7.0

2008-07-25 Thread John Nielsen
On Friday 25 July 2008, tethys ocean wrote:
 I ve got 6.3 stable database server.  Can i directly upgrade my server
 from 6.3 to 7.0

Sure. Be prepared to rebuild and/or reinstall all your ports/packages and 
follow the other guidelines in src/UPDATING and other documentation.

 *default release=cvs tag=RELENG_6

That's 6-STABLE..

 *default release=cvs tag=.

..and that's 8-CURRENT. You probably want tag=RELENG_7 (7.0-STABLE) or 
RELENG_7_0 (7.0-RELEASE + security fixes).

 and also may i add ZFS to my server if such kind of update succsessfull. 
 is it possible or not and advantage and disadvantage.

Since ZFS in FreeBSD is still experimental you should do a lot of testing 
and otherwise keep that in mind. For many loads and with the right tuning 
(see the wiki) it works fine. Advantages and disadvantages are many but a 
useful response depends on your goals. Why do you think ZFS would be a good 
thing for this server?

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


Re: Java

2008-07-22 Thread John Nielsen
On Tuesday 22 July 2008 12:20:48 pm [EMAIL PROTECTED] wrote:
 I read in _Absolute FreeBSD_ that there is now an easy-to-install Java
 package for 64-bit AMD FreeBSD 7.0, but I have so far not found this
 package. Does it exist?

Yes. These packages are created. licensed and maintained by the FreeBSD 
Foundation. See this link:

http://www.freebsdfoundation.org/downloads/java.shtml

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


Re: Using ccd with zfs

2008-07-21 Thread John Nielsen
On Tuesday 22 July 2008 12:18:31 am Steven Schlansker wrote:
 Hello -questions,
 I have a FreeBSD ZFS storage system working wonderfully with 7.0.
 It's set up as three 3-disk RAIDZs -triplets of 500, 400, and 300GB
 drives.

 I recently purchased three 750GB drives and would like to convert to
 using a RAIDZ2.  As ZFS has no restriping capabilities yet, I will
 have to nuke the zpool from orbit and make a new one.  I would like to
 verify my methodology against your experience to see if what I wish to
 do is reasonable:

 I plan to first take 2 of the 750GB drives and make an unreplicated
 1.5TB zpool as a temporary storage.  Since ZFS doesn't seem to have
 the ability to create zpools in degraded mode (with missing drives) I
 plan to use iSCSI to create two additional drives (backed by /dev/
 zero) to fake having two extra drives, relying on ZFS's RAIDZ2
 protection to keep everything running despite the fact that two of the
 drives are horribly broken ;)

 To make these 500, 400, and 300GB drives useful, I would like to
 stitch them together using ccd.  I would use it as 500+300 = 800GB and
 400+400=800GB

 That way, in the end I would have
 750 x 3
 500 + 300 x3
 400 + 400 x 1
 400 + 200 + 200 x 1
 as the members in my RAIDZ2 group.  I understand that this is slightly
 less reliable than having real drives for all the members, but I am
 not interested in purchasing 5 more 750GB drives.  I'll replace the
 drives as they fail.

 I am wondering if there are any logistical problems.  The three parts
 I am worried about are:

 1) Are there any problems with using an iSCSI /dev/zero drive to fake
 drives for creation of a new zpool, with the intent to replace them
 later with proper drives?

I don't know about the iSCSI approach but I have successfully created a 
degraded zpool using md and a sparse file in place of the missing disk. 
Worked like a charm and I was able to transfer everything to the zpool 
before nuking the real device (which I had been using for temporary 
storage) and replacing the md file with it.

You can create a sparse file using dd:
dd if=/dev/zero of=sparsefile bs=512 seek=(size of the fake device in 
512-byte blocks) count=0

Turn it into a device node using mdconfig:
mdconfig -a -t vnode -f sparsefile

Then create your zpool using the /dev/md0 device (unless the mdconfig 
operation returns a different node number).

The size of the sparse file should not be bigger than the size of the real 
device you plan to replace it with. If using GEOM (which I think you 
should, see below), be sure to remember to subtract 512 bytes for each 
level of each provider (GEOM modules store their metadata in the last 
sector of each provider so that space is unavailable for use). To be on the 
safe side you can whack a few KB off.

You can't remove the fake device from a running zpool but the first time you 
reboot it will be absent and the zpool will come up degraded.

 2) Are there any problems with using CCD under zpool?  Should I stripe
 or concatenate?  Will the startup scripts (either by design or less
 likely intelligently) decide to start CCD before zfs?  The zpool
 should start without me interfering, correct?

I would suggest using gconcat rather than CCD. Since it's a GEOM module (and 
you will have remembered to load it via /boot/loader.conf) it will 
initialize its devices before ZFS starts. It's also much easier to set up 
than CCD. If you are concatenating two devices of the same size you could 
consider using gstripe instead, but think about the topology of your drives 
and controllers and the likely usage patterns your final setup will create 
to decide if that's a good idea.

 3) I hear a lot about how you should use whole disks so ZFS can enable
 write caching for improved performance.  Do I need to do anything
 special to let the system know that it's OK to enable the write
 cache?  And persist across reboots?

Not that I know of. As I understand it ZFS _assumes_ it's working with whole 
disks so since it uses its own i/o scheduler performance can be degraded 
for anything sharing a physical device with a ZFS slice.

 Any other potential pitfalls?  Also, I'd like to confirm that there's
 no way to do this pure ZFS-like - I read the documentation but it
 doesn't seem to have support for nesting vdevs (which would let me do
 this without ccd)

You're right, you can't do this with ZFS alone. Good thing FreeBSD is so 
versatile. :)

JN

 Thanks for any information that you might be able to provide,
 Steven Schlansker
 ___
 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: FreeBSD + ZFS on a production server?

2008-07-06 Thread John Nielsen
I'm behind on my mailing list reading and don't really want to 
prolong/resurrect this thread unduly, but I do want to respond to this 
point:

On Thursday 12 June 2008 07:37:06 am Wojciech Puchar wrote:
 you must have disks dedicated for raidz, disks dedicated for mirrored
 storage and disks dedicated for unprotected storage. it's inflexible
 and not much usable.

 actually - much less usable than legacy
 gmirror/gstripe/gconcat+bsdlabel.

ZFS on FreeBSD is GEOM-ified. While I believe what Wojciech said about 
needing a full disk is correct under Solaris, it's not the case in 
FreeBSD. Any GEOM provider can be added to a zpool--disk, slice, 
partition, gmirror, gstripe, md device, etc. I just added some storage to 
a personal server and re-did the layout using ZFS. My zpool (raidz) is 
made up of two partitions and one gstripe, spanning a total of four 
disks. I haven't had any issues with it at all (7-STABLE i386, 1.5GB RAM, 
no tuning other than kmem size and MAXPAGES).  All of the disks also have 
other small partitions--two for a gmirrored root and three for swap.

I think FreeBSD is a great storage/fileserver platform exactly _because_ 
there are so many options. UFS is great, gmirror and gstripe and friends 
are fantastic, and ZFS is yet another powerful tool in the arsenal. In my 
case ZFS was the best meeting point for space vs redundancy vs 
performance. Not having real RAID hardware my other candidates were 
graid3, graid5 and gvinum. ZFS is much easier to configure than gvinum, 
much more proven and stable than graid5 (which isn't even in the tree 
yet), and ought to perform better than graid3. I didn't do any testing to 
verify the last assertion since this is just a personal box, but I don't 
have any complaints about performance.

JN

 one of my systems have 8 disks. 80% of data doesn't need any
 protection, it's just a need for a lot of space, other 20 needs to be
 mirrored. this 80% of data is used in high bandwidth/low seeks style
 (only big files).

 i simply partitioned every disk on 2 partitions, every first is used to
 make gmirror+gstripe device, every second is used to make gconcat
 device, and i have what i need WITH BALANCED LOAD.

 with ZFS i would have to make first 2 drives as mirror, another 6 for
 unprotected storage, having LOTS of seeks on first 2 drives and very
 little seeks on other 6 drives. the system would be unable to support
 the load.



 to say more: zfs set copies could be usable to selectively mirror given
 data while not mirroring other (using unprotected storage for ZFS).
 but it's broken. it writes N copies under write, but don't remake
 copies in case of failure!

 ___
 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: USB wireless AP?

2008-04-23 Thread John Nielsen
On Wednesday 23 April 2008 11:57:28 am Ivan Voras wrote:
 I've found a perfect match for my needs: D-Link DWL-G122, with the
 rum driver. Not a single problem so far, everything works as
 documented. Truly a plug and play experience.

 I'm just curious about one more thing: I wish to set up a b/g
 network, so both b and g devices can connect. Apparently this is set up
 via the mode argument to ifconfig, which accepts 11g and 11b but
 not the obvious 11bg. Any pointers on this?

You can either omit the mode argument altogether and get both supported 
by default, or just specify 11g, which will also support both. I 
typically omit the mode unless I want to limit things to only 11b.

JN


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


Re: Booting 7.0 off of USB Flash Card....

2008-04-16 Thread John Nielsen
On Wednesday 16 April 2008 08:55:41 am [EMAIL PROTECTED] wrote:
 I'm a newbie to FreeBSD and I've installed 7.0 on a USB flash card, but
 I can't seem to boot off of
 it. I don't get an error message, the PC just goes through POST, then
 re-cycles and continues this loop.

 I was able to get OpenBSD to boot off of this flash card, so I know my
 hardware setup is ok.

 A couple other things I tried, from the loader prompt:

 set currdev=disk1s1a:
 load /boot/kernel/kernel

 but I just get BTX halted.

 Just wondering if anyone else has seen this issue?

This is a known issue, especially with USB devices and/or newer hardware. 
Search the archives for btx issues if you want the gory details. A fix 
was committed several weeks ago, but still after the release of 7.0. Try 
using a 7.0-STABLE snapshot from 
ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/200804. Those images should 
all have the new btx/boot code. You will need to reinstall the boot 
blocks on your usb drive, so starting from scratch with the new CD image 
could be the simplest way to go.

HTH,

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


Re: How to switch scheduler on 7.0?

2008-04-15 Thread John Nielsen
On Tuesday 15 April 2008 04:56:37 pm Robert Huff wrote:
 Josh Carroll writes:
 I would like to switch scheduler on my FreeBSD 7.0 box but I
don't know how todo that.
 
   You will want to use options SCHED_ULE instead of SCHED_4BSD in your
   kernel config.

   Am I correct in remembering SCHED_ULE /is/ the default for 7.0+?
   If this is true, and you (the OP) do not need the machine for
 production, there are people who would be interested in hearing
 about your problems - especially if you are prepared to define (and
 document) terrible performace and help diagnosing the issue.

No. It was at one point planned to be but re@ and others decided it hadn't 
had enough time to settle in the tree for the 7.0 release. AFAIK it will 
be the default for 7.1.

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


Re: interactive stop on boot

2008-03-14 Thread John Nielsen
On Friday 14 March 2008 11:24:57 am Jason Barnes wrote:
 Hi -- I'm running a Tombstone machine that's functioning as a
 server.  The machine is located somewhere with a fast connection, and
 not somewhere that I have easy access to.  As such, I want this
 machine to do its best to boot up and get onto the network, no matter
 what happens on boot, so that I have a chance to actually fix the
 problem.

 Lately when it boots it runs into an NFS mounting error, claiming that
 some of my NFS-mounted drives have unexpected inconsistencies.  It
 says unexpected error - help! and then quits to a /bin/sh
 single-user-mode prompt.  As I am 10 miles away, this is decidedly
 unhelpful.  I don't care if it can't mount some irrelevant drive or
 not; I want it to boot up and ask me questions later.

You probably want your NFS entries in fstab to have the noauto option, 
and you _definitely_ want the last two fields to be zeroes. Even if you 
_do_ want the NFS mounts to come up at boot I would still set them to be 
noauto and then write your own script to try to mount them later.

 Is there a way that I can set the machine to do its best to boot no
 matter what it finds at boot time?  Thanks in advance for any help you
 can provide,

The bootup rc script is just a sh script, you can hack it to do whatever 
you want. That said, it only bails out if there's a (potentially) 
significant problem. Given that this is a remote machine, you should be 
extra-careful when modifying anything to do with the startup process, 
especially fstab or any firewall rules. You could also look at options 
like a serial console, IP KVM, or something like a LightsOut card for 
your system.

JN

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


Re: Switching terminals under VMWare Fusion

2008-03-12 Thread John Nielsen
On Wednesday 12 March 2008 04:37:44 pm Alexander Sack wrote:
 On Wed, Mar 12, 2008 at 4:29 PM, Alexander Sack [EMAIL PROTECTED] 
wrote:
  Hello Everydoy:
  I apologize if this isn't exactly the right place but I'm out of
  options! I've posted on the Fusion community website up on vmware.com
  but am still lost.  I'm running 7.0-RELEASE under VMWare Fusion on a
  MBP/Leopard ( 10.5.1).  I've installed the vmware-tools port as well
  as the tools shipped with Fusion and made some edits to accommodate
  7.0-RELEASE.  All is well minus the fact that either the ALT key or
  some other issue is preventing me from switching terminals (ALT-F1,
  F2, etc.).  Has anyone seen this problem before?  If you run
  Workstation or Fusion have you seen any issues with switching
  terminals?
 
  Any pointers would be much appreciated!
 
 Btw, the reason why I say its the handling of the ALT key is that I
 can't get into kdb (ALT-CTLR-ESC, etc.).  This is really frustrating!
 -aps

I just happened to read this from a Workstation VM so I played around with 
it a bit. The reason ctrl-alt keystrokes don't work is that they never 
get to the VM. VMware uses them for its own hotkey combos: ctrl-alt = 
release mouse/keyboard, ctrl-alt-enter = toggle full-screen, 
ctrl-alt-right = next running VM, etc. I went into the options for VMware 
(on the host, Windows in my case) and changed the hotkey to 
ctrl-alt-shift. It didn't take effect immediately, but once I paused my 
VM, closed VMware and started it back up again I was able to use ctrl-alt 
combos in my VM. That includes switching to a virtual terminal from X, 
switching workspaces in xfce (ctrl-alt-left and right), etc.

JN

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


Re: VPN - Which way to go?

2008-03-05 Thread John Nielsen
On Wednesday 05 March 2008 06:21:47 pm Alphons Fonz van Werven wrote:
 I need to setup a VPN connection to the university's network. Now,
 there's a chapter in the handbook about VPN over IPsec and there
 seems to be this thing called OpenVPN in the ports collection. Which is
 the better way to go? All I need is to obtain an IP address within the
 university's IP range (because otherwise I can't use their outgoing
 STMP), that's all. So as simple a solution as possible would be
 preferred.

Unless you control a machine on the university side you'll have to use 
something interoperable with their setup. I think OpenVPN is great and 
use it regularly, but as far as I know it only interoperates with 
OpenVPN, and I'd be surprised if your university were using it.

See what you can find out about the setup on the other side. If they have 
some sort of generic setup guide for Windows users you can probably 
deduce from that. If it's a straight PPTP VPN (like you'd use with 
Windows' dial-up networking sans IPSEC) you can use net/poptop. If they 
require some kind of client then you may or may not be able to get it to 
work, but do ask again if you learn more about what's on the other side 
and get stuck.

JN

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


Re: looks like success

2008-03-03 Thread John Nielsen
On Sunday 02 March 2008 03:50:43 am Daniel Gerzo wrote:
 Hello B.,

 Thursday, February 28, 2008, 9:27:03 PM, you wrote:
  Hello all,
 
  make delete-old (took a long time to do by hand)
  and make delete-old-libs (went rather quickly)

 if you really want to delete all things:

 # yes | make delete-old

While I've seen this suggestion before (and it's a very unix-y way to do 
it), the canonical method (from build(7)) is to run
 make -DBATCH_DELETE_OLD_FILES delete-old

What I'd like to see (although I realize this isn't the correct forum..) 
is a make target that produces a list of files that _would_ be deleted, 
which the admin could then review and approve all or remove individual 
files to be preserved. But until I turn this into a useful PR or a nice 
request on a different list just consider it a rant. :)

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


Re: looks like success

2008-03-03 Thread John Nielsen
On Monday 03 March 2008 12:45:31 pm John Nielsen wrote:
 On Sunday 02 March 2008 03:50:43 am Daniel Gerzo wrote:
  Hello B.,
 
  Thursday, February 28, 2008, 9:27:03 PM, you wrote:
   Hello all,
  
   make delete-old (took a long time to do by hand)
   and make delete-old-libs (went rather quickly)
 
  if you really want to delete all things:
 
  # yes | make delete-old

 While I've seen this suggestion before (and it's a very unix-y way to
 do it), the canonical method (from build(7)) is to run
  make -DBATCH_DELETE_OLD_FILES delete-old

 What I'd like to see (although I realize this isn't the correct
 forum..) is a make target that produces a list of files that _would_ be
 deleted, which the admin could then review and approve all or remove
 individual files to be preserved. But until I turn this into a useful
 PR or a nice request on a different list just consider it a rant. :)

Heh.. I didn't read the manpage I just referred to closely enough. There's 
a check-old (and a check-old-libs) target that makes just such a list.

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


Re: Booting from Memory Stick

2008-03-01 Thread John Nielsen
On Saturday 01 March 2008 04:23:24 pm [EMAIL PROTECTED] wrote:
 I am working on getting a FreeBSD system to boot from a USB memory
 stick.

 Would it be possible to install the operating system using the
 following:

 cd /usr/src
 make DESTDIR=/mnt/usbdisk world
 boot0cfg -v -B -o noupdate da0

 Or, is there an easier way to do this?

I know you've gotten some other responses, but I wanted to chime in and 
say that I've done this (just today, actually) using an approach similar 
to what you're outlining. In a nutshell:

(assuming USB stick is da0, you don't care about what's on it, and you 
want to use the whole thing with one partition and no swap)

##prepare the destination disk, including boot blocks, and mount
fdisk -BI /dev/da0  #ignore the GEOM not found message
bsdlabel -wB /dev/da0s1
newfs -U -L mystick /dev/da0s1a #optional flags for softupdates and label
mount /dev/ufs/mystick /mnt

##prepare obj tree (skip if you already have one with the kernel you want)
cd /usr/src
make buildworld
make KERNCONF=MYUSBKERNEL   #or GENERIC, whatever

##install to the stick
cd /usr/src
make KERNCONF=MYUSBKERNEL DESTDIR=/mnt installkernel
make DESTDIR=/mnt installworld
mergemaster -i -D /mnt  #review list, answer yes to followup ?'s

##The only other thing that's required is an fstab file:
echo /dev/ufs/mystick / ufs rw 1 1  /mnt/etc/fstab

##and don't forget to un-mount the stick when you're done
umount /mnt

That's a bit quick and dirty, obviously, but you can boot from the stick 
and have a complete system at this point. Setup of the root password, 
users, groups, hostname, interfaces, timezone, etc not included. 
Sysinstall or manual config (either from the initial host or after 
booting from the stick) can get you the rest of the way. Or  you may 
discover that one of the other approaches suggested is easier. :)

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


Re: FreeBSD 7.0 and VMware tools (was Re: FreeBSD 7RC2 and VMware tools)

2008-02-28 Thread John Nielsen
On Thursday 28 February 2008 09:48:43 pm Sean Cavanaugh wrote:
 which version of the guest tool should I be installing for VMWare
 Server 1.0.4?
 guestd5 and guestd6 both core dump.

I haven't actually tried to use any version from the ports recently, 
opting instead to manually use the tarball on the CD that gets inserted 
when you select the Install VMware Tools option in the host.

JN

 --
 From: [EMAIL PROTECTED]
 Sent: Thursday, February 28, 2008 9:56 AM
 To: freebsd-questions@freebsd.org
 Subject: Re: FreeBSD 7.0 and VMware tools (was Re: FreeBSD 7RC2 and
 VMware tools)

  Barry Byrne wrote:
  I've had no problem installing the tools via the ports on 7.0
  release on ESX
  server 3.0.1.
 
  ...
 
  cd /usr/ports/emulators/vmware-guestd6/
  make clean install
 
  reboot.
 
  I was thinking about the ports. How does the ports version compare to
  the official coming with the VMware?
 
  Iv
  ___
  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: FreeBSD 7RC2 and VMware tools

2008-02-27 Thread John Nielsen
On Wednesday 27 February 2008 11:14:26 am Dimitri Yioulos wrote:
 On Monday 18 February 2008 5:02 pm, Dimitri Yioulos wrote:
  On Mon, 18 Feb 2008 15:58:26 -0500, John Nielsen wrote
 
   On Monday 18 February 2008 01:47:14 pm Dimitri Yioulos wrote:
On Mon, 18 Feb 2008 13:29:28 -0500, John Nielsen wrote
   
 On Monday 18 February 2008 12:31:37 pm Dimitri Yioulos wrote:
  On Sun, 17 Feb 2008 22:44:17 -0500, John Nielsen wrote
 
   On Sunday 17 February 2008 01:06:28 pm Dimitri Yioulos 
wrote:
I'm not sure whether to have posted this here or on a
VMware list; apologies if I'm in the wrong place.
   
The other day, I did a fresh install of v. 7RC2 from the
minimal CD on a CentOS 5.1 box running VMware server
1.0.4.  I had previously successfully installed v. 6.2,
and upgraded to 6.3 on the same box. All has gone well,
except for the installation of VMware Tools. Getting the
Tools tarball and extracting the requisite files was
trivial. However, when I try to run
Vmware-Config-Tools.pl, I get a message saying that the
program must be run on a virtual machine. Well, it is. 
Is there a needed FBSD package I'm missing (the Tools
install program doesn't complain about it).  A known
issue, or bug, maybe?  Or is VMware support not yet
enabled?  Help would be greatly appreciated.
  
   I just went through almost the same thing, installing
   FreeBSD 7 under VMware Workstation on Windows. The
   config-tools script has a hard-coded version check which
   looks for libc.so.6 under /lib only. Rather than mess with
   the script, I just hard-linked the library from
   /usr/local/lib/compat (where it was installed by the
   compat6x port). Seemed to work fine after that. You'll need
   to be careful not to erase it if you ever run make
   delete-old-libs, though.
 
  Thanks for the response!
 
  A symlink won't do for the above?

 Try it and see! I think I decided on a hard link since the
 script uses something like if [ -f /lib/libc.so.6 ] so it's
 looking only for a regular file and not a symlink.
   
Hmm, when I try to hard-link (ln /usr/compat/linux/lib/libc.so.6
libc.so.6), I get ln: ./libc.so.6: Cross-device link.  But,
when I do a symlink, which takes, I get
/usr/libexec/ld-elf.so.1: Shared object ld-linux.so.2 not
found, required by libc.so.6 when i run
vmware-config-tools.pl.  So, I symlink ld-linux.so.2, and run
tools. Then, I get /usr/libexec/ld-elf.so.1: Undefined symbol
__stdoutp referenced from COPY relocation in
/usr/local/sbin/vmware-checkvm. Arrgh.  Any other ideas?
  
   You have /usr on a different partition than / in your VM, so you
   can't do a hard link. I would just copy the file back to /lib and
   not worry about it. Linking in other random libraries will cause
   problems, as you've observed.
  
   JN
 
  If I copy libc.so.6 to /lib, then tools complains about
  ld-linux.so.2.  If I copy ld-linux.so.2, it then complains about
  /usr/libexec/ld-elf.so.1: Undefined symbol __stdoutp referenced
  from COPY relocation in /usr/local/sbin/vmware-checkvm.  This is
  pretty much the same as if I symlink the two files.  Even though I'm
  a glass half-full guy, this is beginning to look dire (but it's the
  worst thing to happen to me, I'm sure I'll live).  Still, it would be
  nice to get this working.

 I did this a few days ago:

 /lib/libc.so. existed.  I symlinked libc.so.6 to it.  I then proceeded
 to install VMware Tools without complaint.

 However, I'm not sure if there's a vmware FreeBSD NIC driver.  If there
 is, it's not being used (as per dmesg, the AMD PCnet-PCI driver appears
 to be used).  On a Linux vm (please, no stone throwing  :-)  ), to use
 the vmxnet driver, I'd stop the network service, load the vmxnet driver
 module, then restart the service.  Is there a similar procedure on
 FreeBSD?

FreeBSD 7 handles the NIC with the le(4) driver, which is built in to the 
GENERIC kernel by default. In order for the hardware to be available for 
the vmxnet driver to attach to, le needs to be disabled. I would do this 
by building a custom kernel that doesn't include it, but it may also be 
possible using device.hints.

Once you're able to boot without another driver attaching to the hardware, 
you should be able to load the vmxnet module and have it see the 
hardware. If it's available and will work with 7.0, that is..  I've been 
happy enough with re(4) that I haven't gone that route myself. Further, 
64-bit VM's use an e1000 NIC which is supported by the em driver.

JN

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


Re: wi0 (4.11) = rum0 (7.0)

2008-02-21 Thread John Nielsen
On Thursday 21 February 2008 02:46:09 am Lystopad Oleksandr wrote:
 Hi!

 I have two FreeBSD boxes. One with 4.11 and wi0 device, and another
 with 7.0-PRE with rum0 device. I need to connect wi0 and rum0 via
 adhoc mode. 7.0 cant find wi0 device with ifconfig rum0 scan.

 Please, help me to connect this two networks together.

 ifconfig rum0:
 rum0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu
 1500 ether 00:c0:a8:f4:53:18
 media: IEEE 802.11 Wireless Ethernet DS/11Mbps mode 11b adhoc
 status: no carrier
 ssid MYNET channel 1 (2412 Mhz 11b) bssid 00:02:2d:30:2d:22
 authmode OPEN privacy OFF txpower 50 scanvalid 60 bgscan
 bgscanintvl 300 bgscanidle 250 roam:rssi11b 7 roam:rate11b 1
 roaming MANUAL

 ifconfig wi0:
 wi0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
 inet 10.xx.xx.10 netmask 0xfffc broadcast 10.xx.xx.11
 ether 00:02:2d:30:2d:22
 media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps
 adhoc) status: associated
 ssid MYNET 1:RS
 stationname my-name
 channel 1 authmode OPEN powersavemode OFF powersavesleep 100
 wepmode OFF weptxkey 1

I'm pretty sure you only want one of the adapters in ad-hoc mode. The 
other one can just be in station mode.

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


Re: FreeBSD 6.3 as guest: vmware-config.pl problem

2008-02-18 Thread John Nielsen
On Monday 18 February 2008 03:07:48 pm Olivier Robert wrote:
 I try to install FreeBSD 6.3 64 bits in a Fedora VMware Workstation
 6.0..2. I have done the install by choosing ALL + no extra packages
 (but bash).

 Xorg is 1.4.0
 I can have a working X with vesa drivers.

 When running ./vmware-config-tools.pl, I get the following:

 -
 Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: 
 done Guest memory manager: 
  done


 Detected X.org version 0.0.0.


 No drivers for X.org version: 0.0.0.

 It replaced the vesa driver in xorg.conf as it should do, but X
 wouldn't start anymore because the vmware module does not exist.
 I was expecting to see some compilation going on here to build the
 necessary stuff, but as it doesn't detect Xorg, it doesn't build the
 appropriate module (I guess)

 Anyone encountered this problem?
 Any help greatly appreciated.

The script is too old to know what to do with a modular X.org so the 
version detection breaks. Fortunately, X.org ships with the vmware 
(video) and vmmouse (input) drivers these days. If they are not installed 
in your VM then you can install them by hand from 
ports/x11-drivers/xf86-video-vmware and 
ports/x11-drivers/xf86-input-vmmouse respectively. Alternatively you can 
do something like cd /usr/ports/x11-drivers-xorg-drivers  make 
config, select the vm drivers from the list, and then upgrade the 
xorg-drivers port (portupgrade -f xorg-drivers if you use portupgrade).

You can install and use these drivers without ever installing the VMware 
tools, although the guestd and memctl components of the tools are useful.

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


Re: FreeBSD 7RC2 and VMware tools

2008-02-18 Thread John Nielsen
On Monday 18 February 2008 01:47:14 pm Dimitri Yioulos wrote:
 On Mon, 18 Feb 2008 13:29:28 -0500, John Nielsen wrote

  On Monday 18 February 2008 12:31:37 pm Dimitri Yioulos wrote:
   On Sun, 17 Feb 2008 22:44:17 -0500, John Nielsen wrote
  
On Sunday 17 February 2008 01:06:28 pm Dimitri Yioulos wrote:
 I'm not sure whether to have posted this here or on a VMware
 list; apologies if I'm in the wrong place.

 The other day, I did a fresh install of v. 7RC2 from the
 minimal CD on a CentOS 5.1 box running VMware server 1.0.4.  I
 had previously successfully installed v. 6.2, and upgraded to
 6.3 on the same box. All has gone well, except for the
 installation of VMware Tools. Getting the Tools tarball and
 extracting the requisite files was trivial. However, when I try
 to run Vmware-Config-Tools.pl, I get a message saying that the
 program must be run on a virtual machine. Well, it is.  Is
 there a needed FBSD package I'm missing (the Tools install
 program doesn't complain about it).  A known issue, or bug,
 maybe?  Or is VMware support not yet enabled?  Help would be
 greatly appreciated.
   
I just went through almost the same thing, installing FreeBSD 7
under VMware Workstation on Windows. The config-tools script has
a hard-coded version check which looks for libc.so.6 under /lib
only. Rather than mess with the script, I just hard-linked the
library from /usr/local/lib/compat (where it was installed by the
compat6x port). Seemed to work fine after that. You'll need to be
careful not to erase it if you ever run make delete-old-libs,
though.
  
   Thanks for the response!
  
   A symlink won't do for the above?
 
  Try it and see! I think I decided on a hard link since the script
  uses something like if [ -f /lib/libc.so.6 ] so it's looking only
  for a regular file and not a symlink.

 Hmm, when I try to hard-link (ln /usr/compat/linux/lib/libc.so.6
 libc.so.6), I get ln: ./libc.so.6: Cross-device link.  But, when I
 do a symlink, which takes, I get /usr/libexec/ld-elf.so.1: Shared
 object ld-linux.so.2 not found, required by libc.so.6 when i run
 vmware-config-tools.pl.  So, I symlink ld-linux.so.2, and run tools. 
 Then, I get /usr/libexec/ld-elf.so.1: Undefined symbol __stdoutp
 referenced from COPY relocation in /usr/local/sbin/vmware-checkvm. 
 Arrgh.  Any other ideas?

You have /usr on a different partition than / in your VM, so you can't do 
a hard link. I would just copy the file back to /lib and not worry about 
it. Linking in other random libraries will cause problems, as you've 
observed.

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


Re: FreeBSD 7RC2 and VMware tools

2008-02-17 Thread John Nielsen
On Sunday 17 February 2008 01:06:28 pm Dimitri Yioulos wrote:
 I'm not sure whether to have posted this here or on a VMware list;
 apologies if I'm in the wrong place.

 The other day, I did a fresh install of v. 7RC2 from the minimal CD on
 a CentOS 5.1 box running VMware server 1.0.4.  I had previously
 successfully installed v. 6.2, and upgraded to 6.3 on the same box. 
 All has gone well, except for the installation of VMware Tools. 
 Getting the Tools tarball and extracting the requisite files was
 trivial. However, when I try to run Vmware-Config-Tools.pl, I get a
 message saying that the program must be run on a virtual machine. 
 Well, it is.  Is there a needed FBSD package I'm missing (the Tools
 install program doesn't complain about it).  A known issue, or bug, 
 maybe?  Or is VMware support not yet enabled?  Help would be greatly
 appreciated.

I just went through almost the same thing, installing FreeBSD 7 under 
VMware Workstation on Windows. The config-tools script has a hard-coded 
version check which looks for libc.so.6 under /lib only. Rather than mess 
with the script, I just hard-linked the library 
from /usr/local/lib/compat (where it was installed by the compat6x port). 
Seemed to work fine after that. You'll need to be careful not to erase it 
if you ever run make delete-old-libs, though.

JN

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


Re: Any way to configure VIA Chrome9?

2008-01-30 Thread John Nielsen

Quoting Tore Lund [EMAIL PROTECTED]:

My new motherboard has the built-in VIA Chrome9 graphics processor,
which seems to use the xf86-video-via driver.  The driver works, no
doubt about that, but I badly want to configure gamma, contrast, etc.

There is supposedly a configuraton utility for Linux, but the few
comments I can find about it are not very encouraging.  After all, even
the s3gamma utility for Windows is rather clunky and lackluster.

I may simply have to buy yet another grahics card (there is no AGP slot
on this board).  But it seems odd that there is no way to configure this
processor, which otherwise seems fairly capable (unlike, say, the nv
driver).  Being able to somehow set gamma independently on the RGB
channels might be all I need.  Thanks for any hints.


I haven't used it, but you may want to check out the openchrome project 
(http://www.openchrome.org). There is a FreeBSD port available in the 
ports tree under x11-drivers/xf86-video-openchrome.


JN

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


Re: Huawei 3g Modem

2008-01-28 Thread John Nielsen
, dmesg shows a lot of  
lines like these:

ucom0: ubsa_request: STALLED
ucom0: ubsa_request: STALLED



I've seen these before and in my case (using a different 3g modem) they 
were harmless.



Can anyone help me to get this to work?
Thanks and best regards,


Focus your efforts on the ppp documentation and look for working 
examples in the archives. This thread (started by me) is an example, 
and also mentions the STALLED messages:


http://groups.google.com/group/mailing.freebsd.mobile/browse_thread/thread/8f47c04e4d3058ed/65791d94e7a405e4?lnk=stq=john+nielsen+freebsd+ppp+v620#65791d94e7a405e4

I'm not a ppp guru by any means, so post back to the list the next time 
you get stuck (or if you get it working!) with what you 
changed/tried/learned..


JN

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


Re: mfsbsd

2008-01-23 Thread John Nielsen

Quoting Chris Haulmark [EMAIL PROTECTED]:

Anyone used mfsbsd to do remote install of a dedicated server with
success?


No, but..


Summary:

A dedicated server has FreeBSD 6.x running with / as the entire
partition of the entire disk.  Hoping to find a solution to do reinstall
remotely.


That's unfortunate. Is it really the entire disk? If you even had, say, 
a swap partition you could potentially use it to bootstrap the process--

1) Comment out swap line in /etc/fstab
2) Reboot
3) re-label and newfs the swap partition
4) dump/restore some or all of your existing setup to the new fs (or do 
a manual minimal install using sysinstall, or do an installworld with 
DESTDIR set to the new fs ...)
5) Change /etc/fstab on the ORIGINAL root partition (since that's still 
what you'll be booting from for now) to mount root from the new fs

6) Reboot and cross your fingers
7) Observe that the new fs is mounted and the original one is not. Make 
your partitioning changes. Move / restore / reinstall your directories 
and mountpoints as needed.
8) Make sure the /etc/fstab on the NEW root (preferrably on partition 
a) points to the right place.
9) Re-install the boot blocks on the disk and the slice for good 
measure (using fdisk and bsdlabel respectively)

10) Reboot and cross your fingers and toes
11) Observe that your original swap area is NOT mounted and that 
everything else is. Edit /etc/fstab to use your swap area for swap 
again.

12) swapon -a


depenguinator seems incompatible with the current latest FreeBSD
releases.

Advices other than DRAC, IPKM or hire a tech are welcome.


Using mfsbsd, depenguinator, or an approach like the one above there is 
at least one point in the process where you only get one chance to get 
it right. Depending on your personality this might be an adrenaline 
rush, but in any case you should have a backup plan such as DRAC, IPKM, 
or an available tech. Or an IP KVM (Belkin makes one that will let you 
use ISO images over the network as a USB CD). Or a serial console. etc. 
etc.


JN

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


Re: FBSD or PCBSD?

2008-01-18 Thread John Nielsen

Quoting Robin Becker [EMAIL PROTECTED]:


Zbigniew Szalbot wrote:



Which is a better solution for a home user?

Thank you very much for your practical recommendations!

...

I have had great success using PCBSD on various acers, I eventually 
got fed up with it being not quite identical to FreeBSD and I now 
have FreeBSD 6.2 on my current acer laptop (a 1680).

--


I was unable to even boot my Wife's Acer (an Aspire 5520) with FreeBSD 
6.3-pre or 7.0-pre. I'm also pretty sure the Acer wireless is NOT 
supported by any native drivers; I haven't seen any success or failure 
stories from anyone trying NDIS. I expect the same will be true with 
PC-BSD, since AFAIK their kernel is pretty much stock FreeBSD (main 
differences are in the installer and package management).


JN

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


Re: Frequent DHCP requests from Wii

2008-01-09 Thread John Nielsen

Quoting Jeffrey Goldberg [EMAIL PROTECTED]:

This is particularly a FreeBSD question, but finding that there isn't 
 a newsgroup for DHCP (and I am running dhcpd on FreeBSD), I'll ask 
here.


We've got a Wii in the house, and I've got an entry for it in my  dhcpd.conf

 host wii { hardware ethernet 00:19:1d:dd:66:d3; fixed-address  
wii.ewd.goldmark.org; }


which correctly resolves to 10.1.10.145

And everything works fine.  However, the Wii keeps on making requests 
 every few minutes.  Here is a bit of the dhcpd logs.  The requests  
come at irregular 1, 2, 5, and 9 minute intervals in this bit of the  
log.


Jan  9 11:59:08 kreacher dhcpd: DHCPREQUEST for 10.1.10.145 from  
00:19:1d:dd:66:d3 via em0
Jan  9 11:59:08 kreacher dhcpd: DHCPACK on 10.1.10.145 to 
00:19:1d:dd: 66:d3 via em0


[additional log entries snipped]

Was there a question in there somewhere? :)

You could try putting a long-ish default-lease-time statement in your 
subnet clause in dhcpd.conf. See also the max-lease-time and 
min-lease-time statments in dhcpd.conf(5).


If you have those already and the Wii isn't respecting them then that's 
an issue to take up with Nintendo. You could also consider setting the 
IP on the Wii statically (not sure if that's supported or if you move 
it around to different networks at all) or trying to adjust dhcpd's 
logging if that's all that's bothering you...


JN

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


Re: changing the postion of a partion in fdisk

2008-01-08 Thread John Nielsen

Quoting Aryeh M. Friedman [EMAIL PROTECTED]:


I have my FreeBSD partition as partition 1 and my ntfs as partition 2
but Vista insists that there is no suitable partion to install to
(even though the ntfs partition is big enough)... after some research
I found that vista absolutely insists that the ntfs partition be
partition 1... how do I swap them and/or delete the ntfs one and
renumber it so freebsd is in partion slot 2 (with nothing in 1 and
then I can use fdisk to make a new slot 1)


You can probably just use FreeBSD's fdisk to swap them. Something along 
the lines of:


1) Verify your backups
2) Boot from a FreeBSD Rescue CD and enter the fixit shell
3) Type fdisk /dev/yourdisk. I'll assume ad0 from this point.
4) Write down the output. All of it. Keep a copy in a safe place (this 
is actually good practice even if you're _not_ intentionally messing 
with your partitions). If you're feeling clever and/or lazy you could 
of course bring up a line printer or a network interface and print the 
output or copy it to another machine (from which you should then print 
it), but a file on the local disk will not serve (and a file on the 
mfsroot will go away as soon as you reboot or if anything unexpected 
happens, which it usually does).
5) Type fdisk -u /dev/ad0 (or whatever your disk is). Manually enter 
the numbers (including explicitly setting the start/end sector, etc) 
for partition 2 as partition 1 and vice versa. Think about which 
partition you want to mark as active (probably 2, see step 10) and do 
so. Verify your changes against your printout, then commit them.
6) Type ls /dev/ad0* and verify that you see the devices you expect 
(including your FreeBSD partitions, probably something like ad0s2[a-d]).
7) Mount your root partition, e.g. mount /dev/ad0s2a /mnt. If it 
doesn't mount then abort. Run fdisk again and change the values back to 
what they were initially.
8) Edit your fstab to update the slice numbers. e.g. vi 
/mnt/etc/fstab or sed -e s/ad0s1/ad0s2/g  /mnt/etc/fstab  
/mnt/etc/fstab.new followed by a sanity check and a couple mv commands.

9) Unmount your root partition, e.g. umount /mnt.
10) Reboot and verify that your FreeBSD installation is still alive.
11) Carry on...

This information comes with no warranty. :)

JN

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


Re: Fortune

2008-01-08 Thread John Nielsen

Quoting Jon Dowd [EMAIL PROTECTED]:

On Jan 8, 2008 9:09 AM, Jonathan Horne [EMAIL PROTECTED] wrote:


Jon Dowd wrote:
 Is there a port for the game fortune? I recently installed 6.2 AMD64
 and I can't find it when I do a 'pkg_add -rv fortune' or 'pkg_add -rv
 fortune-mod'

 The ones I find I am not interested in; such as:
 zh-fortunetw-1.3
 wmfortune-0.241_2
 fortune-mod-bible-1.0_1
 fortune-mod-bofh-2.0_3
 fortune-mod-culmea-culmilor-2005.12.15
 fortune-mod-ferengi_rules_of_acquisition-2006.01.26
 fortune-mod-futurama-0.2_3
 fortune-mod-the-godfather-2.0
 fortuneit-1.99
 pl-fortunepl-0.0.20051022
 ru-fortune-bashorgru-20070808
 ru-fortuneru-0.9
 fortunelock-0.1.2
 e17-splash-fortune-1.1_1

 Am I missing something?

 Thanks for your help.


its a part of the base system afaik.

$ which fortune
/usr/games/fortune


Somehow there is nothing in my /usr/games directiory.

[EMAIL PROTECTED]
~ $ ls -l /usr/games/
total 0

[EMAIL PROTECTED]

How do I fix that?


You probably did a minimal install and have not yet updated, correct? 
Install the games distribution from sysinstall or just do a 
buildworld/installworld.


JN

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


Re: mounting geom partition

2008-01-03 Thread John Nielsen

Quoting John Clement [EMAIL PROTECTED]:


Quite some time ago I setup a machine with a couple of 250GB disks in
that were mirrored using geom, although I can't remember if I mounted it
as 1x 250GB partition or several smaller ones.  The machine they were in
died, and I kept hold of one of the two disks so I could restore the
data.  I'm now at that point and it occurs to me that I don't know for
sure how to remount it.

Before I plug it in and accidentally write over the partition table or
something, I just wanted to check with someone that what I'm thinking is
about right.  Having been going over the documentation again and from
what I remember the partition table should still be there (fdisk should
tell me this) and I should, in theory, be able to simply mount the
partition(s) as regular filesystem(s), is this correct?

Thanks in advance!


That's correct. Additionally, if you have the gmirror kernel module 
loaded it will recognize the mirror component(s) and you will be able 
to access it/them as (degraded) gmirror devices.


JN

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


Re: Small Unix install

2007-12-28 Thread John Nielsen

Quoting DAve [EMAIL PROTECTED]:

I am looking for a small install for an old laptop. I have an old but
quite reliable Toshiba 330CDT that used to be my personal laptop. I ran
FBSD 3.x/4.x on it for years but it has been wiped and in a closet for
years. I want to use it again just to access a few web forums and read
my email. I don't do POV RAY or 3D, I don't need Open Office, I don't
watch any Tubes. Mutt, Fluxbox and a minimal browser would make me happy.

I don't have the time or inclination to roll my own again. PCBSD can't
finish the install due to only having 96mb of memory. Desktop BSD wants
more than 4gb of drive space just to complete the install.

I currently have 98SE on it only consuming 300mb and it runs fine, but
it's 98SE ;^) Does anyone know of anything ready to install? BSD, Linux,
I don't care.


Is there a reason a standard installation of FreeBSD 4/6/7 won't work 
for you? Just do a minimal install of the OS from CD or network then 
install [parts of] X, fluxbox, and your other apps from ports or 
packages and away you go. You could weigh the benefits [possible memory 
savings] of compiling your own kernel against the time and disk space 
required, but you shouldn't ever have to build world or ports unless 
you feel so inclined, especially now that freebsd-update is part of the 
base system.


JN

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


Re: rough method of cleaning the ports tree

2007-12-18 Thread John Nielsen
On Tuesday 18 December 2007, Erich Dollansky wrote:
 after noticing how large my ports tree grows while compiling, I thought
 of simply deleting it and do a CVSup to get a new one after the
 compilation is finished.

 This should be much faster and also should do some kind o
 defragmentation. I simply cannot believe that the huge ports tree will
 still be very well organised after some months.

 What does the list think of this method?

There are at least two better ways of doing this that will take less time 
and not put unnecessary load on the CVS servers.

1) Delete work directories after building ports. If you use the clean 
make target it will do this automatically. I typically do make install 
clean to install the port then delete the work directory in one command. 
Portupgrade and other tools will generally do this as well. If you already 
installed a port you can just do make clean to get rid of its work 
directory. If you (suspect that you) have a large number of work 
directories (either because your builds got interrupted or you forgot to 
use the clean target) you can do something 
like find /usr/ports -maxdepth 3 -type d -name work -delete to get them 
all in one go.

2) Use WRKDIRPREFIX. I set this in my .cshrc, but you can set it manually or 
in whatever file is appropriate for your (root) shell. e.g. after doing 
a setenv WRKDIRPREFIX /usr/scratch all of the work directories are 
created under /usr/scratch/usr/ports/category/portname instead of 
under /usr/ports directly. Whenever I feel like cleaning up I can 
just rm -r /usr/scratch/usr/ports without losing anything.

See man ports for more information on the port build infrastructure and 
associated make targets and environment variables.

The other thing in the ports collection that tends to take up space is the 
distfiles directory. If you want to delete it wholesale then go ahead 
(rm -r /usr/ports/distfiles), but it's not uncommon to have multiple 
ports or multiple revisions of the same port use the same distfile(s), so 
you'll end up downloading them again and again. I prefer to use the 
script /usr/ports/Tools/scripts/distclean.sh. Run with a -f flag it will 
automatically delete all distfiles no longer referenced by any port in your 
ports tree.

HTH,

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


Re: still no luck in coping a 6 G dvd to a 4.7 dvd.

2007-12-12 Thread John Nielsen

Quoting Gary Kline [EMAIL PROTECTED]:

On Tue, Dec 11, 2007 at 11:28:10AM +0100, Michel Talon wrote:

Gary Kline wrote:

 Guys, I've set up a test account which is pure KDE.  Still, using both
 my Pioneer and the Lite-on burners, no luck in burning a DVD that is
 larger than thee default.

How do want this to work? You have to recompress the initial DVD stream,
and for that there is an excellent program to run under your KDE account
(k9copy).



i don't seem too get very far with k9copy. I have two burners,
and can open either device. I had it set to read from cd0 and
wwrite to cd1. The app reports that there is no documentation
available for k9copy.  Is there a front commmand string I can use
here?  Or online docs?


FWIW the most useful howto on DVD backup techniques I've ever seen is here:

http://kavlon.org/index.php/dvdbackup

It says it's for Linux but all of the programs needed are available in 
FreeBSD's ports tree. It's command-line based, but parts of it could be 
scripted, etc.


One additional note on the original ripping phase: I find tccat to be 
more reliable than vobcopy, although with some DVD's it makes sense to 
try both. And vobcopy is better at guessing which title is the feature 
if there is more than one.


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


Re: Getting DHCP to 'update' DNS records locally

2007-11-29 Thread John Nielsen
On Thursday 29 November 2007, Clint Olsen wrote:
 Apologies if this isn't the correct forum.  I'd like to configure DNS on
 my home network but make it work simultaneously with DHCP.  So, when
 hosts are plugged into the network and issued an IP, DNS is updated to
 reflect the hostnames.  That way I can refer to all my machines by name
 in all databases and I can avoid hardcoding IP addresses.  I know Windows
 allows name-based recognition even in the instance you're using DHCP, but
 I'd like it to work more generally with any type of machine on the
 network.

 The problem is, when I search for terms related to this, I get hits for
 DynDNS and all that stuff which is /not/ what I want.  I'm not trying to
 update a remote DNS record.  This is just a local thing.

 If there's a lightweight DNS server that comes with a DHCP daemon, that
 would be fine too.  I just need to know where to start.

You can do this fairly easily with isc-dhcp3-server and bind/named. The 
dhcpd.conf(5) manpage (from isc-dhcp3-server) goes into quite a bit of 
detail on how to set this up (including what to put in named.conf).

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


Re: Desktop printing, a request for your experiences

2007-11-26 Thread John Nielsen

Quoting Dominic Marks [EMAIL PROTECTED]:

Can anyone give me their experiences of desktop printing
(OpenOffice/KDE/Gnome/Mozilla Firefox and Thunderbird, etc) recently?
I haven't tried for a while but it was a pain to setup and maintain the last
time I looked at it.

If you are using this for real-work and you are getting good results please
let me know what you are using (software and hardware ideally).

The environment I would like to put this into is a family house, very small
setup with 2 PCs and 2 printers. Currently both are Windows PCs but
one is experiencing all of the classic issues with a multi-year Windows
installation and since they are used exclusively for E-Mail and word
processing I am interested in migrating one PC over to FreeBSD.

.. If the solution was a Linux distro (box package, or otherwise) I would
also be interested.
... I am not a subscriber so please keep me CC'ed in the discussion.


At home I have one headless FreeBSD server, one FreeBSD desktop, one 
Windows desktop, and one or more laptops running either OS at various 
times. I also have an old cheap (non-PS) laser printer and a new-ish 
multifunction photo printer. The laser printer is connected to the 
FreeBSD server, which runs CUPS and Samba, among other things. The 
inkjet is connected to the Windows Desktop.


Printing from FreeBSD (all stations also use CUPS) to the laser printer 
always works fine. Printing from Windows to the laster printer (talking 
to Samba with a CUPS backend) works fine most of the time. Occasionally 
graphics-intensive jobs will come out screwy, and Acrobat Reader 
doesn't always behave well for some reason (even though I'm using the 
Adobe Windows PS driver..).


Printing from Windows to the inkjet always works well, and the vendor 
driver obviously supports all of the printer's features. Printing from 
FreeBSD to the inkjet (using an SMB backend to CUPS on the FreeBSD 
server) works well for standard documents and resolutions. If I need to 
print high-res or borderless photos I do it from Windows. (I also use 
the Windows station for scanning.)


Much of the above could be different for different people using 
different printers. In my case attaching the dumb laser printer to a 
FreeBSD server makes it more usable, whereas attaching the inkjet 
printer to the FreeBSD server made it less so (vs Windows). The 
gutenprint drivers are catching up to the vendor ones but for this 
printer they aren't there yet.


On the whole I'm quite happy with my CUPS server on FreeBSD, especially 
when printing from other CUPS-capable workstations (i.e. anything BUT 
Windows). Printers show up automatically and work the same from all 
stations with no need to distribute drivers, etc.


JN

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


Re: make delete-old question

2007-11-04 Thread John Nielsen
On Sunday 04 November 2007, Per olof Ljungmark wrote:
 Hi,

 Is there a clever way to run make delete-old in /usr/src so that (y)
 will be the default answer? Otherwise it's pressing y 437 times in my
 case...

This is covered in build(7), one of the manpages in the 
very-useful-but-not-very-obvious category (along with ports, hier, security 
and tuning IMO (all of which are also in section 7 of the manual..))

Anyway, it's
 make -DBATCH_DELETE_OLD_FILES delete-old
 make -DBATCH_DELETE_OLD_FILES delete-old-libs

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


Re: Determining the number of files in a directory

2007-11-03 Thread John Nielsen
On Saturday 03 November 2007, Daniel Bye wrote:
 On Sat, Nov 03, 2007 at 12:41:51PM +, Daniel Bye wrote:
  On Sat, Nov 03, 2007 at 05:27:06AM -0700, White Hat wrote:
   This is probably a dumb question; however, I never let a little thing
   like that bother me in the past.
 
  Heheh! You and many more, my friend, myself absolutely included!
 
   Using FreeBSD-6.2 and Bash, how do I determine the number of files in
   a given directory? I have tried all sorts of combinations using
   different flags with the 'ls' command; however, none of them displays
   the number of files in the directory.
 
   $ ls | wc -l
 
  will show you how many files and directories in the current (target)
  directory. To count just files, and exclude directories, you could try
  something like
 
   $ find /target/directory -type f -print | wc -l

 Except of course, that would descend into the subdirectories you're
 trying not to count... Sorry - an object lesson in not hitting send
 before you've tested what you scribbled.

find /target/directory -type f -maxdepth 1 | wc -l

should do the trick. See also man find and man wc, of course.

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


Re: Mounting/examining dd image?

2007-11-03 Thread John Nielsen
On Saturday 03 November 2007, Jon Drukman wrote:
 Hm, anything that works in Freebsd 4.9?  I've never been able to
 install 5.0 or higher on this machine, it always freezes when booting.

In 4.x the analogous command is called vnconfig with slightly different 
syntax.

 On Nov 2, 2007 10:22 PM, John Nielsen [EMAIL PROTECTED] wrote:
  On Friday 02 November 2007, Jon Drukman wrote:
   I was trying to transplant my system from a small, old drive to a
   big, new one.  I made a dd dump of the entire small drive, but then I
   accidentally destroyed the drive (be careful with bare drives and
   metal PC cases...)
  
   Anyway, I have the dd file but I don't have a spare drive onto which
   to copy it.  Is there a way to read its contents/mount it/explore
   it/hopefully extract files from it on a running system?
 
  Yes there is:
 
  mdconfig -a -t vnode -f /path/to/dd/image/file
 
  That will cause the file to be treated as an md device. See also man
  mdconfig. The output of that command is the newly created /dev/md?
  device node. Depending on whether you dumped the whole disk, a slice,
  or a partition there may be additional devices. If you dd'ed the whole
  disk your former root partition might show up as /dev/md0s1a, for
  example.
 
  Once you've identified the device node(s) that contain(s) the
  filesystem(s) you're interested in, just mount it/them like you would
  any other device, e.g.
  mount /dev/md0s1a /mnt
 
  JN


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


Re: Mounting/examining dd image?

2007-11-02 Thread John Nielsen
On Friday 02 November 2007, Jon Drukman wrote:
 I was trying to transplant my system from a small, old drive to a big,
 new one.  I made a dd dump of the entire small drive, but then I
 accidentally destroyed the drive (be careful with bare drives and
 metal PC cases...)

 Anyway, I have the dd file but I don't have a spare drive onto which
 to copy it.  Is there a way to read its contents/mount it/explore
 it/hopefully extract files from it on a running system?

Yes there is:

mdconfig -a -t vnode -f /path/to/dd/image/file

That will cause the file to be treated as an md device. See also man 
mdconfig. The output of that command is the newly created /dev/md? device 
node. Depending on whether you dumped the whole disk, a slice, or a 
partition there may be additional devices. If you dd'ed the whole disk your 
former root partition might show up as /dev/md0s1a, for example.

Once you've identified the device node(s) that contain(s) the filesystem(s) 
you're interested in, just mount it/them like you would any other device, 
e.g.
mount /dev/md0s1a /mnt

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


Re: extracting 7_bit_ascii from ms_word files

2007-11-01 Thread John Nielsen

Quoting spellberg_robert [EMAIL PROTECTED]:

i finally ran into a situation where
  my existing approaces are no longer satisfactory.

i never bought office.
i have a twelve_year_old version of wordperfect
  from [ at that time ] novell that still works just fine
  [ i first used wordperfect in the early 1980's; why change ?
  ].
it doesn't recognize new ms formats.

sometimes, i can use wordpad on
  my win_98_se box that still works;
  but not always.

my lawyer insists on hard_copy and snail_mail,
  so my principal application is, actually, obviated.

if files only had a few dozen lines,
  i could edit them by hand in vi.

i simply did not have enough situations
  to demand a more sophisticated approach;
  now, i do.

i started here [ over 1000 entries ]

http://www.freebsd.org/ports/textproc.html

  where i found nothing relevant under doc and
  where i found word2x, which looks --really-- old and
  where i found wv, which seemed more promising.


wv by itself could probably do most of what you're looking for. It 
includes a wvText binary which produces quasi-formatted text-only 
output from .doc input. It also includes wvHtml, wvPS, wvPDF, wvLatex, 
etc.


Others have already commented on the GUI-based Word workalikes 
available but I'll add my own. I like Abiword since it's lightweight 
but I tend to use OpenOffice.org on modern-ish machines since it can 
handle more bells and whistles (and if I'm using a word processor 
instead of a text editor then bells and whistles are frequently the 
reason). Koffice/kword is between the other two in regard to complexity 
and is a good alternative if something doesn't work quite right 
elsewhere. All can read and write Word documents compatible with the 
97/XP/2003 versions of Office. Not sure about the Word 2007 format.


-JN


searching the questions and newbies mail archives,
  i found antiword and catdoc, but this is from 2002_feb.

while reading up on wv, i found this

http://www.abisource.com/

  which caused me to search.

i found this

http://www.freebsd.org/cgi/ports.cgi?query=abiwordstype=all

both of these seem to jog my memory, but my memory 



my application is to exchange text files, by e_mail,
  with someone who thinks ms products are the be_all and end_all
  [ after all,
  if everyone is spending thousands of dollars on software,
  just like he is,
  what makes me so special ?
  ].
i anticipate acquiring other people like this in the near future,
  so my time on this just may be well_spent.
in general,
  these are not the kind of folks who find
  manipulating files intuitively obvious.
yet, i may find that i have to give them special instruction.

i am not looking for something wonderful,
  just reasonably competent and reasonably current.
if, in addition to my desired direction,
  i can convert a 7_bit_ascii to a .doc file for his benefit,
  that's some further whining that i can avoid.



i strongly suspect that,
  as soon as this becomes a solved problem,
  ms changes something critical,
  so this may be a fool's errand.
none_the_less, i'll give it a try.

which one or several things are generally accepted
  for this format_conversion task ?

is this abiword one of them or do i seek something else ?

if something else, can someone point me in a useful direction
  [ whether or not it is something i have named ] ?



while 6.2 and, soon, 7.x are de rigeur,
  if it works on 4.11 [ very long story ], that's a plus.



thanks whole bunches in advance.

[ please cc me,
as my attempt to re_subscribe to the list as a courtesy
doesn't seem to be taking.
]


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


  1   2   3   4   >