Vim, system locale and digraphs
I'm having fun and games getting vim to play nicely with my system locale. It did once work, however I have no backup state to restore from: The problem: I cannot get vim to input and use both accented characters and the euro symbol. If I set encoding to latin1, it will happily input accented characters, but not the euro symbol. If I set encoding to iso-8859-15, it will happily input the euro symbol, but not accented characters. When I say input, I mean using the CTRL+K+digraph. Vim will happily display all the symbols: MM_CHARSET=ISO-8859-15 LANG=en_GB.ISO8859-15 Regards, Richard Jones -- Richard Jones MSN: [EMAIL PROTECTED] Y!M: rwkjones http://www.jonze.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Kernel module path
On Wed, Jun 07, 2006 at 11:28:09AM +0100, Richard Jones wrote: Hi, I'm having trouble loading kernel modules. Put simply make installkernel seems install native kernel modules into /boot/kernel/, but kldload seems to want to load them from /boot/modules. Obviously I can load modules by hand and/or copy the modules into /boot/modules, but surely there's a better way - either by modifying the installkernel behaviour or kldload. And in answer to my own question, I've found the answer. Despite the man page suggesting the default value for module_path being /boot/kernel;/boot/modules, my /boot/defaults/loader.conf had just /boot/modules. I've checked in /usr/src/sys/boot and this seems to be system default, does anyone know why this is? Regards, Richard -- Richard Jones MSN: [EMAIL PROTECTED] Y!M: rwkjones http://www.jonze.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Kernel module path
Hi, I'm having trouble loading kernel modules. Put simply make installkernel seems install native kernel modules into /boot/kernel/, but kldload seems to want to load them from /boot/modules. Obviously I can load modules by hand and/or copy the modules into /boot/modules, but surely there's a better way - either by modifying the installkernel behaviour or kldload. R -- Richard Jones MSN: [EMAIL PROTECTED] Y!M: rwkjones http://www.jonze.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Kernel module path
On Wed, Jun 07, 2006 at 10:40:54PM +1000, Nick Withers wrote: On Wed, 7 Jun 2006 11:28:09 +0100 Richard Jones [EMAIL PROTECTED] wrote: Hi, I'm having trouble loading kernel modules. Put simply make installkernel seems install native kernel modules into /boot/kernel/, but kldload seems to want to load them from /boot/modules. From kldload's man page: FILES /boot/kernel directory containing loadable modules. Modules must have an extension of .ko. This having been said, it _does_ look in /boot/modules as well. I'm able to load a module from either directory without specifying the full path and / or extension and without either directory being my current working directory on 6.1-RELEASE. What's the problem you're actually having? What version of FreeBSD are you running? Yes, sorry, that wasn't the most infomational email. FreeBSD-6.1-RELEASE. me ~ # ls -1 /boot/kernel fire_saver.ko if_tun.ko ipfw.ko kernel libiconv.ko libmchain.ko linker.hints linux.ko smbfs.ko me ~ # ls -1 /boot/kernel nvidia.ko linker.hints me ~ # kldload smbfs kldload: can't load smbfs: No such file or directory me ~ # cp /boot/kernel/{smbfs.ko,libiconv.ko,libmchain.ko} /boot/modules/ me ~ # kldload smbfs short pause me ~ # kldstat Id Refs AddressSize Name 1 12 0xc040 3c68c4 kernel 22 0xc07c7000 1f280linux.ko 31 0xc07e7000 3f2e00 nvidia.ko 61 0xc50e 2smbfs.ko 72 0xc4f51000 4000 libiconv.ko 82 0xc4154000 3000 libmchain.ko -- Richard Jones MSN: [EMAIL PROTECTED] Y!M: rwkjones http://www.jonze.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Files left over from a installworld
Hi, I've been continuously upgrading my machine from (I think) RELEASE-4.8, and I'm beginning to see lots of cruft from older releases accumulating. What are the list's feelings on deleting the majority of files listed by: find / /usr -xdev -mtime +7 There are plenty there that I created or belong the packages e.g. /etc/mail/$HOSTNAME.mc and /etc/X11/XFConfig but what about, for example: /etc/netconfig /etc/pam.d/ftpd /etc/periodic/daily/100.clean-disks /etc/amd.map /sbin/ip6fw /sbin/ilmid /lib/libdevstat.so.4 /lib/libutil.so.4 /rescue/ipmon Obviously dollops of common sense are needed, but has anyone attempted to formalize this type spring cleaning? Regards, Richard ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Disk repair
Hello, I have a disk which seems to have developed some faults or bad sectors. fsck yields the following: ** /dev/ccd0 ** Last Mounted on /export ** Phase 1 - Check Blocks and Sizes CANNOT READ BLK: 50795296 CONTINUE? yes THE FOLLOWING DISK SECTORS COULD NOT BE READ: 50795409, etc. there's about 4 sectors/blocks that can't be read. Now I know I should go and buy a new disk, but I just need this one to keep limping along for a month or so more. So my question is, how can I get the OS/BIOS to recognize the disk sectors as bad, and get over it? Here's the details Sun Ultra 10, FreeBSD sol.jonze.com 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov 5 19:30:40 UTC 2004 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC sparc64 ad1: 38182MB MAXTOR 4K040H2/A08.1500 [77578/16/63] at ata3-master WDMA2 And yes, I know I shouldn't be running non-Sun disks in a Sun box, but, well, it works most of the time :-) Regards, Richard -- Richard Jones http://www.jonze.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
OpenSSH, Kerberos and RedHat
Hi, I'm trying to get OpenSSH with Kerberos5/GSSAPI authentication up and running in an heterogenous environment, but having problems. I'm running a vanilla FreeBSD-5.4p1 box as the KDC. I have another FreeBSD-5.4 box, and a RedHat ES3 box running as a test client/server. kinit works fine on both boxes. PuTTY patched with Kerberos support works fine as a client to both boxes (and obviously has no problems with the KDC). Each box can negociate a login to itself However neither can talk to the other. I first recompiled the stock RedHat OpenSSH with the gss tag change to allow it to compile against GSSAPI. However this did not work, I believe, as this was an older package patched to provide gssapi, and not the newer gssapi-with-mic. This did not work. So I tried a more recent RPM: openssh-3.9p1-8.0.2.src.rpm compiled with the tag change to use gssapi-with-mic. Server: Connection from 10.1.0.112 port 54409 debug1: Client protocol version 2.0; client software version OpenSSH 57:41 redhat sshd[844]: debug1: match: OpenSSH_3.8.1p1 FreeBSD-20040419 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-1.99-OpenSSH_3.9p1 debug1: Received some client credentials debug1: temporarily_use_uid: 504/504 (e=0/0) debug1: trying public key file /home/richard/.ssh/authorized_keys debug1: restore_uid: 0/0 debug1: temporarily_use_uid: 504/504 (e=0/0) debug1: trying public key file /home/richard/.ssh/authorized_keys2 debug1: restore_uid: 0/0 debug1: do_cleanup Client: OpenSSH_3.8.1p1 FreeBSD-20040419, OpenSSL 0.9.7e 25 Oct 2004 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug1: Connecting to redhat.digitalrum.net [10.1.0.83] port 23. debug1: Connection established. debug1: identity file /usr/local/home/richard/.ssh/id_rsa type 1 debug1: identity file /usr/local/home/richard/.ssh/id_dsa type -1 debug1: Remote protocol version 1.99, remote software version OpenSSH_3.9p1 debug1: match: OpenSSH_3.9p1 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_3.8.1p1 FreeBSD-20040419 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server-client aes128-cbc hmac-md5 none debug1: kex: client-server aes128-cbc hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(102410248192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: Host 'redhat.digitalrum.net' is known and matches the DSA host key. debug1: Found key in /usr/local/home/richard/.ssh/known_hosts:79 debug1: ssh_dss_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,gssapi-with-mic,keyboard-interactive debug1: Next authentication method: gssapi-with-mic debug1: Delegating credentials debug1: Delegating credentials debug1: Authentications that can continue: publickey,gssapi-with-mic,keyboard-interactive debug1: No more authentication methods to try. Permission denied (publickey,gssapi-with-mic,keyboard-interactive). Can anyone help? I thought it may be a Kerberos flavour mismatch; RedHat is compiled against MIT, and FreeBSD against Heimdal. I tried recompiling FreeBSD's openssh-portable against MIT Kerberos, but it failed to build with a slew of GSSAPI errors. Regards, Richard -- Richard Jones MSN: [EMAIL PROTECTED] Y!M: rwkjones http://www.jonze.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
sio clock interrupt problem
-LOCKED] usb1: Intel 82801BA/BAM (ICH2) USB controller USB-B on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered pci0: multimedia, audio at device 31.5 (no driver attached) fdc0: floppy drive controller port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0 fdc0: [FAST] fd0: 1440-KB 3.5 drive on fdc0 drive 0 sio0: 16550A-compatible COM port port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio1: 16550A-compatible COM port port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A orm0: ISA Option ROMs at iomem 0xca000-0xcbfff,0xc-0xc9fff on isa0 pmtimer0 on isa0 atkbdc0: Keyboard controller (i8042) at port 0x64,0x60 on isa0 atkbd0: AT Keyboard irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] sc0: System console at flags 0x100 on isa0 sc0: VGA 16 virtual consoles, flags=0x300 vga0: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb on isa0 Timecounter TSC frequency 1129672946 Hz quality 800 Timecounters tick every 10.000 msec ad0: 239372MB Maxtor 6Y250P0/YAR41BW0 [486344/16/63] at ata0-master UDMA100 acd0: DVDROM SAMSUNG DVD-ROM SD-616/bp06 at ata1-master UDMA33 Mounting root from ufs:/dev/ad0s1a Regards, Richard Jones ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Compaq ML370 and FreeBSD-5.1
On Mon, Jul 21, 2003 at 05:29:27PM +, Kerberus wrote: Odd i have it running on an ML530 fine, saw the same errors at first and just disabled ACPI, it worked and installed fine from there, though during the boot process after disabling ACPI let it sit a while during the hang time, its probably probing something but it should boot. I found the smartstart cd's and tried using those with manual integration and linux. That didn't work, so I tried other. That didn't work either. I left the box over night (12 hours) and found it in the same state the next day. i.e. at the kernel init, having just print acd0: Just to recap: booting with default, the kernel gets to Timecounters tick every 10.000msec, then takes another three or so hours to get to cd0: where it hangs for 12 hours. when booting with single-user, ACPI disabled, or safe-mode, I get a kernel panic Page not present[0]. Verbose mode seems to be the same as default except, well, more verbose ;-) vga0: generic ISA VGA at port ... isa_probe_children: probing PnP devices Device configuration finished procfs registered Is there anything else I can try? The F10 System Partition utilties didn't want to play nicely because I couldn't provide it with a server profile diskette. R P.S. I've a very funny feeling that this is PnP BIOS issue. [0] I can provide full output if someone really wants it. -- Richard Jones http://www.jonze.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Compaq ML370 and FreeBSD-5.1
On Tue, Jul 22, 2003 at 10:45:04AM +0100, Richard Jones wrote: On Mon, Jul 21, 2003 at 05:29:27PM +, Kerberus wrote: Odd i have it running on an ML530 fine, saw the same errors at first and just disabled ACPI, it worked and installed fine from there, though during the boot process after disabling ACPI let it sit a while during the hang time, its probably probing something but it should boot. I found the smartstart cd's and tried using those with manual integration and linux. That didn't work, so I tried other. That didn't work either. I left the box over night (12 hours) and found it in the same state the next day. i.e. at the kernel init, having just print acd0: Just to recap: booting with default, the kernel gets to Timecounters tick every 10.000msec, then takes another three or so hours to get to cd0: where it hangs for 12 hours. when booting with single-user, ACPI disabled, or safe-mode, I get a kernel panic Page not present[0]. Verbose mode seems to be the same as default except, well, more verbose ;-) And to answer my own question. Here's the bug report for anyone experiencing the same problems... http://www.freebsd.org/cgi/query-pr.cgi?pr=53245 R -- Richard Jones http://www.jonze.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Compaq ML370 and FreeBSD-5.1
On Tue, Jul 22, 2003 at 01:55:06PM -0700, James Long wrote: On Tue, Jul 22, 2003 at 10:45:04AM +0100, Richard Jones wrote: Is there anything else I can try? You could try posting to the correct mailing list for FreeBSD-CURRENT. But I'm not running CURRENT, and have no idea if this is a Compaq issue or a kernel issue. So I wrote to questions@ to find out where better to place the question. And then I found an open pr, and posted the id to the list answering many people who'd emailed me privately with the same problem. ;-P -- Richard Jones http://www.jonze.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Compaq ML370 and FreeBSD-5.1
Hi, I'm having problems installing FreeBSD 5.1 on a Compaq ML370. When booting the default kernel it hangs after printing: vga0: generic ISA VGA at port 0x3c Timecounters tick every 10.000 msec If I try any of the other options (safe-mode, disable ACPI), the kernel panics with a page not present error. Has anyone else had this problem? Regards, Richard Jones -- Richard Jones http://www.jonze.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Compaq ML370 and FreeBSD-5.1
On Mon, Jul 21, 2003 at 05:29:27PM +, Kerberus wrote: Odd i have it running on an ML530 fine, saw the same errors at first and just disabled ACPI, it worked and installed fine from there, though during the boot process after disabling ACPI let it sit a while during the hang time, its probably probing something but it should boot. It only hangs with the default kernel. Every other options results in a (non recoverable) panic. I left the default kernel hanging, and it now seems to be progressing through the kernel init, albeit painfully slowly (so far two hours). R -- Richard Jones http://www.jonze.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
ftpchroot
Hi, I'm trying to get ftpchroot to work and having problems: In the ftpchroot man page it states that a user (non-anonymous) can be chrooted by specifying the username and directory as so user ftp_dir if there is no leading / then the directory is relative to the user's home directory. The problem is that user ftp_dir works, but user /home/user/ftp_dir does not, giving an error 421 Service not available, remote server has closed connection. There's nothing in syslog or /var/log/xfer.log to indicate why, just ftpd exited, and FTP LOGIN FROM ... I'm using FreeBSD-5.1 RELEASE, can anyone help? Richard Jones -- Richard Jones http://www.jonze.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
ftpchroot
Hi, I'm trying to get ftpchroot to work and having problems: In the ftpchroot man page it states that a user (non-anonymous) can be chrooted by specifying the username and directory as so user ftp_dir if there is no leading / then the directory is relative to the user's home directory. The problem is that user ftp_dir works, but user /home/user/ftp_dir does not, giving an error 421 Service not available, remote server has closed connection. There's nothing in syslog or /var/log/xfer.log to indicate why, just ftpd exited, and FTP LOGIN FROM ... I'm using FreeBSD-5.1 RELEASE, can anyone help? Richard Jones -- Richard Jones http://www.jonze.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
ttpx
Hi, I've installed poppassd and am having problems getting it to work. $ telnet localhost 106 Connected to foo.com Escape character is '^]'. 200 poppassd v1.2 hello, who are you? user bar 200 your password please. pass oldpassword 200 your new password please. newpass newpassword 500 Server busy - try again later. Connection closed by foreign host. Then syslog shows: Jul 4 14:36:06 poppassd[774]: can't find pty Jul 4 14:36:06 dogstar kernel: Jul 4 14:36:06 foo poppassd[774]: can't find pty A quick look in /dev shows that there are no ttyp[0-x]. I've created a custom kernel to be sure that pty is included, and the same kernel config works on two other boxes. I guess what I'm asking is, how do I debug devfs for FreeBSD 5.1? TIA, Richard Jones -- Richard Jones http://www.jonze.com ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Dual monitor console
Hi, Can anyone help me with documentation on how to set up a dual headed console? I've got two nVidia cards playing quite nicely with X, but what I'd really like is to have them run two consoles e.g. ttyv1 maps to monitor0 and ttyv2 maps to monitor1. For those wondering, I often find console text the most comfortable to read, and would love, when for example troubleshooting, to have logs scrolling on one monitor whilst tinkering on the other. (Plus it would look very 80's hacker film ;) TIA, Richard -- Richard Jones http://www.jonze.com To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: advise on gateway-setup
On Thu, Oct 03, 2002 at 12:47:48PM +0200, Morten Grunnet Buhl wrote: Thanks everyone. To summon what I have been told. I need a fair amount of RAM, medium CPU, reliable disk (RAID of some sort), and cooling - you can never get enough. This pretty much what I expected - but I must admit its nice to hear some production-case-stories. Hmmm, I'm not too sure what you're trying to deploy here. I would start by saying that a router/firewall traditionally has very low requirements compared with other computing tasks (gaming, development). In our office here, rather than buy a dedicated firewall router, I built a Linux and then FreeBSD machine for a firewall. It's a P100 with 48M RAM and a 1Gb HDD. It's load average rises slightly above zero when I log in and otherwise not at all. It services about 30 people with a 1Mb link, and mixed 10Mb, 100Mb internal service subnets. If *all* you are doing is routing and firewalling, then you will not need so much RAM, the processor speed will depend to some degree the complexities of your firewall/NAT tables, and the speed of your network connections. Bear in mind though, before you starting splashing out on processors, that your PCI bus is limited in its bandwidth (33Mhz?). For resilience, I would recommend mirrored drives, but they need be no larger than your install - 1GB should do as you won't need source, X etc. They don't need to be fast either, once the firewall's up and running everything will sit in memory. doing a fiber solution. So if anybody has some fiber specific Now this could make a big difference. Running several Gb NIC cards might start to test your PCI bus and possibly processor. Regards, Richard -- Richard Jones http://www.jonze.net To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Wondering about mail clients (specific features)
On Thu, Sep 26, 2002 at 03:38:35PM -0500, Oscar Ricardo Silva wrote: Is there something I'm missing in pine that will do this? Are there other mail clients that will notify you when new mail has been received and placed in a mailbox other than IN ? Mutt does, you need to add mailboxes =mbox =freebsd-questions =personal Where the = refers to the specified default directory (a bit like the shell's ~). Otherwise I used to have something like the following in my ~/.bashrc: MAILPATH=$(echo $(find ~/Mail -type f) | sed 's/ /:/g')) HTH R -- Richard Jones http://www.jonze.net To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message