Re: FreeBSD commands... refcard
On Fri, Sep 11, 2009 at 8:30 AM, Matthias Apitz g...@unixarea.de wrote: In some Linux mailing list of Cuba I'm subscribed to, I just stumbled over this Debian GNU/Linux Reference Card: http://xinocat.com/refcard/ which is available in many languages. This would be very helpfull for my wife which 'must' ( :-)) run FreeBSD on her laptop. Is there something like this for FreeBSD, and even in Spanish? Thanks Not quite the same, but have a look at the Rosetta Stone for Unix: http://bhami.com/rosetta.html /JMS ___ 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: single SATA disk and yet identified as 'ad4'
On Mon, May 11, 2009 at 3:30 PM, Jonathan McKeown j.mcke...@ru.ac.za wrote: Your BIOS is reporting two IDE interfaces, each of which could have a master and slave disk drive, so ad0-3 are reserved for those four drives, meaning SATA starts at ad4. Some BIOSes let you change this. Or you can take option ATA_STATIC_ID out of your kernel config. /JMS ___ 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
Surprisingly high interrupt rate on idle machine's uhci controller on 7.1
Hello, While checking out the -P option for top in 7.1 I noticed that my desktop at home (which is currently idle) was spending nearly 100% of one core on interrupt: last pid: 5678; load averages: 0.00, 0.00, 0.00 59 processes: 1 running, 58 sleeping CPU 0: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle CPU 1: 0.0% user, 0.0% nice, 0.8% system, 0.0% interrupt, 99.2% idle CPU 2: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle CPU 3: 0.0% user, 0.0% nice, 0.0% system, 90.3% interrupt, 9.7% idle So I looked at vmstat -i: interrupt total rate irq16: nvidia0 em* 5009831 88 irq18: uhci2 ehci+ 66595 1 irq19: uhci4++2855320585 50637 irq22: pcm0 213238 3 irq23: uhci3 ehci1 1 0 cpu0: timer112447860 1994 cpu1: timer112444767 1994 cpu3: timer109457852 1941 cpu2: timer109457830 1941 Total 3304418559 58602 The interrupt rate for uhci4 seems very high for an idle system. % dmesg | grep uhci4 uhci4: UHCI (generic) USB controller port 0xb400-0xb41f irq 19 at device 29.1 on pci0 uhci4: [GIANT-LOCKED] uhci4: [ITHREAD] usb5: UHCI (generic) USB controller on uhci4 % dmesg | grep usb5 usb5: UHCI (generic) USB controller on uhci4 usb5: USB revision 1.0 uhub6: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb5 usb7: companion controllers, 2 ports each: usb4 usb5 usb6 % usbdevs -v ... Controller /dev/usb5: addr 1: full speed, self powered, config 1, UHCI root hub(0x), Intel(0x), rev 1.00 port 1 powered port 2 powered Nothing is plugged in there! The only USB devices I have plugged in are: addr 1: EHCI root hub, Intel addr 2: USB2.0 Hub, vendor 0x05e3 addr 3: Microsoft 2.4GHz Transceiver v4.0, Microsoft addr 1: UHCI root hub, Intel addr 2: Generic USB Hub, Chicony addr 3: PFU-65 USB Keyboard, Chicony The receiver for my wireless mouse, which is plugged into a USB hub (this is to fix a different problem where if the receiver is directly plugged into the machine it stops working and FreeBSD complains that it has disabled the USB controller!), and my Happy Hacking keyboard which sits behind its own built-in hub. The machine is: % uname -a FreeBSD tomo.jamesoff.net 7.1-RELEASE FreeBSD 7.1-RELEASE #4: Mon Jan 26 22:16:37 UTC 2009 r...@tomo.jamesoff.net:/usr/obj/usr/src/sys/GENERIC i386 The board is an ASUS P5Q3 with a Q6600 2.4GHz installed. If there is any other information I should supply or debugging I can do, please let me know. /JMS ___ 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: Importing into VMWare Workstation 6.5
On Fri, Jan 16, 2009 at 2:56 PM, Odhiambo Washington odhia...@gmail.com wrote: For those who are running FreeBSD inside VMWare, I have a FreeBSD-7.1 on a hard disk. I also run VMware Wkstn 6.5 running on a Windows XP PC. Is there an easy way to import from the hard disk to a guest OS? Suppose I have the hard disk connected to the XP box? If you're happy to leave FreeBSD on its own disk (rather than importing into a .vmdk), simply create a new VM and tell VMware to Use a physical disk in the Select a Disk part of the configuration. Point it at the required drive and away you go. I have used this before to allow me to both boot my PC to FreeBSD, and to Windows with FreeBSD still available. /JMS ___ 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: Importing into VMWare Workstation 6.5
On Fri, Jan 16, 2009 at 4:10 PM, DAve dave.l...@pixelhammer.com wrote: While I have not tried it, it claims it can make a vmdk from a physical server. I have used it to move virtualized FreeBSD installs from one vmware server to another. http://www.vmware.com/products/converter/overview.html I can't remember why I didn't use this when I last did P2V on a FreeBSD box, but I ended up just creating a VM with a new vmdk of the correct size and then using dd over nc to copy the disk from the physical machine, which worked fine too. An important gotcha is if the host is IDE but you create your VM with SCSI disks (e.g. for ESX) and the disk devices change name :) /JMS ___ 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: Importing into VMWare Workstation 6.5
On Fri, Jan 16, 2009 at 4:41 PM, DAve dave.l...@pixelhammer.com wrote: Nope, the starter edition is free. Believe me, if we had to pay for it, my boss wouldn't let me use it 8^( What are the restrictions on the starter version? Maybe one of those is why I ended up not using it. If it will do it, it will definitely be the most efficient route. /JMS ___ 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: Importing into VMWare Workstation 6.5
On Fri, Jan 16, 2009 at 4:33 PM, Odhiambo Washington odhia...@gmail.com wrote: Could you kindly share the steps you followed? It looks like that's what I have to do, as this app is commercial and I don't have that money now:-) Here's a page that describes the process: http://digiassn.blogspot.com/2006/01/dd-over-netcat-for-cheap-ghost.html The only change I'd suggest to that is adding something like bs=1M to the dd command on the source to speed up reading a bit. You can also achieve this with dump instead of dd if you want to change the disk size, for example. When I did it I believe I booted both sides off a FreeSBIE disc/ISO since it offers a nicer environment than e.g. the recovery console. The LiveCD option in sysinstall may also be a good way to go. /JMS ___ 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: Script works fine from CLI, but not when Cron'd
On Tue, Oct 7, 2008 at 10:20 AM, Marc Coyles [EMAIL PROTECTED] wrote: I've got a script to backup my MySQL databases, which works absolutely fine from the command line, but when I add it in to root's cronjobs it always fails with mysqldump: not found - what am I doing wrong? Things started from cron inherit a different PATH. Either add the appropriate directories to PATH or specify the full path to mysqldump. -- /JMS ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pf vs. RST attack question
On Mon, Oct 6, 2008 at 12:51 PM, Jeremy Chadwick [EMAIL PROTECTED] wrote: I've never gotten a definite answer as to what happens if you use flags S/SA on a rule that is for UDP, since UDP is a non-negotiated protocol. That's why I split them up per protocol on RELENG_6 boxes. It intelligently ignores it: % pfctl -vn -f- pass out proto { tcp udp } all flags S/SA keep state Output: pass out proto tcp all flags S/SA keep state pass out proto udp all keep state /JMS ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Is this safe? Copying a complete install from one HD to another
On Tue, Mar 25, 2008 at 2:55 AM, Norberto Meijome [EMAIL PROTECTED] wrote: tar or dump | restore , etc... as long as the different file types (normal, links, sockets,etc) are transferred correctly. the same for user permissions. I actually did this the other week for similar reasons - smartd was starting to give warnings on the drive so I bought a new one and used dump | restore for each partition to move things across. Worked fine and I now have a happier, quieter and more spacious system :) ___ 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)
On Wed, Mar 5, 2008 at 1:44 PM, Ivan Voras [EMAIL PROTECTED] wrote: - Timer problems can be lessened (never solved, even with vmware tools) by reducing kern.hz to something like 50 or 100 Hz (in loader.conf), and installing ntpd. Installing the VMware Tools is a very good idea for timer problems as it helps the VM catch up after the host was unable to send it interrupts fast enough. If you don't install the tools, you should run ntp instead (but never both together). ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: VPN server software ?
On 5/23/07, Frank Bonnet [EMAIL PROTECTED] wrote: I have to setup a VPN server and I wonder which free software running on FreeBSD to choose as my knowledge in such softwares is very limited for now. OpenVPN is in ports and is working very well for me (including having Windows clients connect). /JMS ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Find out startup programs execution order..
On 5/16/07, Agus [EMAIL PROTECTED] wrote: Yes..thats the way i found that the error was from mysql-server... but i thought that there might be a way to see the order programs boot...and maybe change it... man 8 rcorder /JMS ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: var/log/messages umass da0 6 how to stop?
On 4/27/07, David Southwell [EMAIL PROTECTED] wrote: The problem is that although messages stop for da0 I cannot stop da1 AND I would really like to be able to control this without having to have memory cards et al in the devices at all times. I get this when I have my USB card reader plugged in (and empty). I'm pretty sure it's hal (via KDE) which is responsible for the polling in my case. My low-tech fix is to yank the USB cable out when I'm not using the reader :) If there was a way to stop it filling up my syslog though I'd love to know. /JMS ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pf and keep/modulate state on 6.2
On 2/25/07, J.D. Bronson [EMAIL PROTECTED] wrote: I was noticing sporadic FTP transfers DOWN to my fbsd 6.2 machine over my DSL line...it would go/pause/go/pause - just a bit, but overall slowed the transfers down quite a bit. I looked at my pf.conf file and changed MODULATE state to KEEP state in all places and my issues went awayfast clean consistent downloads. Wow, this fixed my FTP-over-DSL-to-6.2 problem too. With modulate state, I was getting ~30K/sec. With just keep state, I'm now getting more like what my connection is capable of. This is between two 6.2 hosts on opposite sides of the Atlantic. Ted, I use pf because I like the format of the configuration file, I like the logging and pftop, and like how it's harder to lock yourself out of a remote machine by accident :) /JMS ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD as VM host OS?
On 12/18/06, David Newman [EMAIL PROTECTED] wrote: You really need some other OS as the host OS is a perfectly valid response too. I run VMware Server on Ubuntu (one of the supported Linux host flavours, and the only one I'm prepared to put up with), hosting currently two Windows Server 2003 and two FreeBSD 6.x VMs on a Dell 1855 blade. While I haven't performed any benchmarks (benchmarks inside a VM are tricky to get right) I can report no noticable performance problems with the workload the machines have to handle. The Windows machines are a small fileserver and a WSUS server; the FreeBSD machines are performing spam-assassination and NFS serving. vmware1$ uptime 16:27:45 up 66 days, 5:17, 1 user, load average: 0.27, 0.56, 0.54 I have a FreeBSD-based PXE server running in Workstation 5.5 on my desktop, and have had success running FreeBSD 4.x under ESX Server 2.5.x in a previous life. /JMS ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: image based stock spam
On 11/13/06, Brian [EMAIL PROTECTED] wrote: ugh, I'm running a 6.2 prerelease. The package doesn't exist, so I build the port, or try to. The tiff port wont build, so I pkg_add that. It gets a lil further along, the pkgconfig port won't build, I pkg_add that. Then, a little further here comes an x windows install, a 31 mb download. I don't want that on my server. I'll live with it for now till something better comes along. I succeeded in getting FuzzyOCR installed on several 6.1 systems before it appeared in ports, and documented my method here: http://jamesoff.net/site/projects/freebsd/fuzzyocr-for-spamassassin-on-freebsd/ Note that it will still pull in Xorg for some libraries, but doesn't actually install X itself (assuming you remember to declare WITHOUT_X11). I note that the libungif port still doesn't appear to have the patch suggested by FuzzyOCR's author to prevent segfaults. I can vouch for FuzzyOCR's effectiveness, as the image-based spam was about the only stuff still getting through my SpamAssassin. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Is Active Directory integrated file sharing possible on FreeBSD?
On 9/18/06, Ashley Moran [EMAIL PROTECTED] wrote: Winbind is [not?] fully functional on FreeBSD so it doesn't work authenticating with windows, ive tried compiling the Solaris version which is supposedly meant to work but I cant get it to compile. I don't know anything about Samba, so I was wondering if someone here has seen a similar setup working. Is it really impossible to do what I want? In a previous job I've had squid using winbindd to do user authentication against a native-mode Windows Server 2003 domain; I'd say it works pretty well. Due to it being a previous job I can't recall/lookup the exact procedure I went though to do it, but you just have to join the BSD machine to the domain. IIRC this used to be done with smbpasswd -J but I think they changed that to a new tool. /JMS ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Still can't boot on 6.0-STABLE Nov 2005 or 6.1-BETA
On 3/15/06, James Seward [EMAIL PROTECTED] wrote: Hello folks, [booting problems with newer kernels] Replying to myself in case this is of use to anyone else. After some tinkering this evening, I had determined that unplugging all my PATA devices (leaving just the SATA ones, where FreeBSD lives) allows a normal boot, although this isn't acceptable as I need my DVD drives. Disabling APIC in the BOIS with the PATA drives plugged in allows booting. I tried booting with it enabled and telling FreeBSD not to use ACPI but that didn't help. Mark Linimon asked me to check to see if my PR was showing up now and if not resubmit it, so I shall do that too. /JMS ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Still can't boot on 6.0-STABLE Nov 2005 or 6.1-BETA
Hello folks, A while back (January) I posted to the list about a problem I had booting 6.0-STABLE built with sources after about November 2005 on my workstation. Since that point, and including (I have now discovered) 6.1-PRERELEASE (as my freshly built kernel identified itself just now), I can't boot. At the point where the kernel should mount my root fs and continue booting, it decides it can't see any disks other than fd0, and presents me with a mountroot prompt. Looking through the scrollback, it correctly identifies my ata controllers earlier in the boot process. A boot -v (captured over serial) is available here: http://sakaki.jamesoff.net/~james/dmesg-broken.txt A successful boot is available here: http://sakaki.jamesoff.net/~james/dmesg-working.txt When I get to the mountroot prompt, my IDE light is stuck on solid. At the time I initially reported this problem I was running amd64. I have since moved back to i386 (mainly for things like nvidia-driver and win32-codecs), but the problem persists :( My motherboard is an A8V-E Deluxe, and my disks are on both IDE and SATA; the IDE disk plays no role in my FreeBSD boot (it has WinXP on it). FreeBSD lives on my SATA drives. 5.3 and 5.4, as well as WinXP, have no problems with the disks. I'm not doing anything funky like RAID or geom. I did try posting a PR for this a while back, but it never even seemed to be recorded. If I'm sending this request the wrong way, please let me know! I'd love to help get this fixed so I can take advantage of the latest and greatest on this machine :) Thanks in advance, James ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: OT-EXIM
On 3/3/06, Jean-Paul Natola [EMAIL PROTECTED] wrote: I know this is not an EXIM forum but I'm desperate at the moment I ran portupgrade on BSD and afterwards exim is failing to start, What does /var/log/exim/paniclog say? -- /JMS ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 6-STABLE/amd64 recent kernel can't see any ata disks
With apologies for the delay (due to external influences and problems like finding my serial cable), here is the output of boot -v on a newer kernel (compiled Monday morning from a cvsup on Sunday if memory serves). http://sakaki.jamesoff.net/~james/dmesg-broken.txt If anyone has any suggestions of things to try or to check I'd be most grateful; should I just go ahead and file a PR for this? Thanks, James ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
6-STABLE/amd64 recent kernel can't see any ata disks
Hello list :) I am having some issues with recent kernels since about the 6th Nov. All kernels I have build since then have failed to boot, stopped at the point they should mount root, and offering me a mountroot prompt to give the root device. Entering ? at this prompt returns something along the lines of: List of GEOM-managed devices: /dev/fd0 (The exact wording escapes me as I'm writing this at work and the machine is at home.) At this point, the HD LED on the computer and the floppy drive's LED are stuck on. I have tried several builds at various intervals since this problem first showed up, including a complete fresh cvsup of /usr/src and building GENERIC. (My custom kernel config did not change before the problem surfaced.) Unfortunately because of scroll I cannot see if the ata controllers are detected during boot - but I am going to attempt to get a serial cable onto the machine and grab the boot messages that way tonight. The uname output for the working kernel is: FreeBSD ... 6.0-STABLE FreeBSD 6.0-STABLE #6: Sun Nov 6 13:10:48 GMT 2005 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/MYCONF amd64 The motherboard is an Asus A8V-Deluxe and I have both SATA and PATA disks attached to it - all of which work fine on the old kernel, and also in Windows XP (which dual boots on that machine). dmesg from a successful start: http://sakaki.jamesoff.net/~james/dmesg-working.txt pciconf -lv: http://sakaki.jamesoff.net/~james/pciconf.txt Hopefully I can update this later with the dmesg from a newer kernel failing to start. Any and all suggestions gratefully received :) Cheers, James ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Mounting an iPod
On 11/4/05, edward [EMAIL PROTECTED] wrote: Assistance welcome, James. I finally gave up trying to mount the iPod as an HFS+ device and reformated it in FAT32. Now I can mount it and access its content (I use mount -t msdos /dev/da0s2 /mnt/ipod). However, I can unmount it using umount /mnt/ipod, but I'm not quite sure how to get it to understand its not connected anymore. I wouldn't mind taking a look at the scripts you mentionned early on. The camcontrol utility can cause a loss of data and/or system crashes if used improperly. Even expert users are encouraged to exercise caution when using this command. Novice users should stay away from this utility says the man page. With such an invitation, I can't wait to get my hands into this one :). Thanks, Edward Here's my script, which I put in /usr/local/bin. You will have to change the mount point and device for camcontrol to suit your setup. You may also want to change permissions on things in /dev so that you can do this as a user. Don't forget that you need to change passN and xpt0, not just the da device. Look in /etc/devfs.conf to see how to make the chanages stick, and change the vfs.usermount sysctl to 1. I based my setup of this on the various documents out there about user-mounting CDs. ---CUT--- #!/bin/sh case $1 in start) echo Mounting ipod... mount /ipod ;; stop) echo Ejecting ipod... umount /ipod camcontrol eject 0:0 ;; *) echo echo Usage: `basename $0` { start | stop } echo exit 64 ;; esac ---CUT--- I just modified one of the rc scripts to make it :) Now I can do ipod start and ipod stop to mount and umount/eject it. On a sort of related note, anyone had problems with gtkpod reporting double the free space on the ipod? df and my iPod agree about the free space, but gtkpod says that double that amount is free. I've had this on 5.4 and 6.0 and on both i386 and amd64. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Mounting an iPod
On 10/29/05, edward [EMAIL PROTECTED] wrote: The iPod uses an HFS+ file system. It's been loaded from a Mac. I would like to mount it to /mnt/ipod A quick Google suggests you can try http://people.freebsd.org/~yar/hfs/ to add HFS support to FreeBSD, otherwise you're going to have to reformat your iPod for Windows and then mount it as FAT. I then added this line: /dev/da0s2 /ipod msdos rw,noauto 0 0 to my fstab, and wrote myself a little ipod script I can use to mount and umount/eject it. To mount it it just mounts /ipod, and to eject it, i umounts /ipod and then calls camcontrol eject on the right device ID to eject it (so the iPod stops thinking it's connected). I can offer further assistance with the 2nd half but not the 1st half of this :) /JMS ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]