Re: vim question...
On Sun, Jun 14, 2009 at 11:51 PM, Gary Kline wrote: > On Sun, Jun 14, 2009 at 11:24:29PM -0400, Glen Barber wrote: >> On Sun, Jun 14, 2009 at 11:18 PM, Gary Kline wrote: >> > >> >hi glenn, >> >> One 'n'. :) >> > >gotcha! and see, this is a case of my occasionally typing > 1 >key. in vim, typing 'uu' can cause a truckload of code or whatever to >vanish. ... > Agreed. :) >> > >[ ... ] >> > use mutt is that my fingers know vi. unfortunately, there're too >> >> I use mutt because "it sucks less", quoting the author. > > >be nice if there were a quasi-gui version of mutt > > Interesting idea >> >> >many things in email now that require a gui reader. be nice to >> >be able to read in evo and if i had to reply, use gvim. >> > >> >> Hmm Well, for what it's worth, I didn't even know *vi* had an >> 'undo' option. I thought that was what 'q!' was for. :) >> > >that's almost funny; i have had to use "q!" all to often if i >forget and use vim. it does indeed have some nice features. >but if you have to reply using a gui mailer and your typing isn't >flawlwss, it's keyboard <-> mouse. > I've found that 'q!' is now muscle-memory to me. When I'm actually in front of a GUI, the Gmail/Firefox spellcheck tends to find most of my typographical mistakes, though unfortunately, not my logic mistakes. :) -- Glen Barber ___ 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: vim question...
On Sun, Jun 14, 2009 at 09:18:42PM -0700, Michael K. Smith wrote: > On 6/14/09 7:46 PM, "Gary Kline" wrote: > > > > the main reason i don't use vim is because of its [u]ndo > > command. as most of you can understand, there are a whole slew > > of times when i need to undo something. too often in vim, > > hitting 'u' --- sometimes > once accidentally --- has resulted in > > a small disaster. [[i have too many current/recent copies of > > my working files to do TOO much damage!]] Anyway, is there a > > means of setting the undo key to mimic vi/nvi? > > > If you undo something and it was a mistake, just use the period (.). It's probably better to get in the habit of using :redo than the period to undo an undo, since :redo (or :red for not-very-short) can advance through several levels of undos, but the period can only repeat one single thing over and over again. If you're six levels back in undos, and you want to undo all six levels, but you use the period once, I think that'd wipe out all those levels of undo so they aren't recoverable. I haven't directly tested that recently, but that's how I recall it working back when I first learned about multiple undo/redo levels for Vim, lo these many moons ago when the world was young and dinosaurs roamed the Earth. -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] Quoth H. L. Mencken: "Democracy is the theory that the common people know what they want and deserve to get it good and hard." pgpUEQPgDuua5.pgp Description: PGP signature
Re: vim question...
On 6/14/09 7:46 PM, "Gary Kline" wrote: > > > the main reason i don't use vim is because of its [u]ndo > command. as most of you can understand, there are a whole slew > of times when i need to undo something. too often in vim, > hitting 'u' --- sometimes > once accidentally --- has resulted in > a small disaster. [[i have too many current/recent copies of > my working files to do TOO much damage!]] Anyway, is there a > means of setting the undo key to mimic vi/nvi? > > thanks, > > gary > > If you undo something and it was a mistake, just use the period (.). Mike ___ 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: vim question...
On Sun, Jun 14, 2009 at 11:24:29PM -0400, Glen Barber wrote: > On Sun, Jun 14, 2009 at 11:18 PM, Gary Kline wrote: > > > > hi glenn, > > One 'n'. :) > gotcha! and see, this is a case of my occasionally typing > 1 key. in vim, typing 'uu' can cause a truckload of code or whatever to vanish. ... > > [ ... ] > > use mutt is that my fingers know vi. unfortunately, there're too > > I use mutt because "it sucks less", quoting the author. be nice if there were a quasi-gui version of mutt > > > many things in email now that require a gui reader. be nice to > > be able to read in evo and if i had to reply, use gvim. > > > > Hmm Well, for what it's worth, I didn't even know *vi* had an > 'undo' option. I thought that was what 'q!' was for. :) > that's almost funny; i have had to use "q!" all to often if i forget and use vim. it does indeed have some nice features. but if you have to reply using a gui mailer and your typing isn't flawlwss, it's keyboard <-> mouse. > I'm as interested as you are now. > > -- > Glen Barber -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org For FBSD list: http://transfinite.thought.org/slicejourney.php ___ 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: vim question...
On Sun, Jun 14, 2009 at 11:18 PM, Gary Kline wrote: > > hi glenn, One 'n'. :) > > yeah, i read the recent posts about the key binding and vim; > that's what brought my question to the fore. i did read on the > evolution list that a gvim plugin may happen. the main reason i > use mutt is that my fingers know vi. unfortunately, there're too I use mutt because "it sucks less", quoting the author. > many things in email now that require a gui reader. be nice to > be able to read in evo and if i had to reply, use gvim. > Hmm Well, for what it's worth, I didn't even know *vi* had an 'undo' option. I thought that was what 'q!' was for. :) I'm as interested as you are now. -- Glen Barber ___ 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: vim question...
On Sun, Jun 14, 2009 at 11:00:59PM -0400, Glen Barber wrote: > Hi, Gary > > On Sun, Jun 14, 2009 at 10:46 PM, Gary Kline wrote: > > > > > > the main reason i don't use vim is because of its [u]ndo > > command. as most of you can understand, there are a whole slew > > of times when i need to undo something. too often in vim, > > hitting 'u' --- sometimes > once accidentally --- has resulted in > > a small disaster. [[i have too many current/recent copies of > > my working files to do TOO much damage!]] Anyway, is there a > > means of setting the undo key to mimic vi/nvi? > > > > thanks, > > > > gary > > > > > > > > I don't know what the keybindings for [u]ndo in Vim versus Vi/Nvi are, > but there was a recent thread about Vi keybindings for .vimrc. > > Perhaps that'll provide some insight. > > Cheers. > > -- > Glen Barber hi glenn, yeah, i read the recent posts about the key binding and vim; that's what brought my question to the fore. i did read on the evolution list that a gvim plugin may happen. the main reason i use mutt is that my fingers know vi. unfortunately, there're too many things in email now that require a gui reader. be nice to be able to read in evo and if i had to reply, use gvim. gary -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org For FBSD list: http://transfinite.thought.org/slicejourney.php ___ 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: vim question...
Hi, Gary On Sun, Jun 14, 2009 at 10:46 PM, Gary Kline wrote: > > > the main reason i don't use vim is because of its [u]ndo > command. as most of you can understand, there are a whole slew > of times when i need to undo something. too often in vim, > hitting 'u' --- sometimes > once accidentally --- has resulted in > a small disaster. [[i have too many current/recent copies of > my working files to do TOO much damage!]] Anyway, is there a > means of setting the undo key to mimic vi/nvi? > > thanks, > > gary > > > I don't know what the keybindings for [u]ndo in Vim versus Vi/Nvi are, but there was a recent thread about Vi keybindings for .vimrc. Perhaps that'll provide some insight. Cheers. -- Glen Barber ___ 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"
vim question...
the main reason i don't use vim is because of its [u]ndo command. as most of you can understand, there are a whole slew of times when i need to undo something. too often in vim, hitting 'u' --- sometimes > once accidentally --- has resulted in a small disaster. [[i have too many current/recent copies of my working files to do TOO much damage!]] Anyway, is there a means of setting the undo key to mimic vi/nvi? thanks, gary -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org For FBSD list: http://transfinite.thought.org/slicejourney.php ___ 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: Terminal / vim / shortcuts
Thanks for these great answers! I already use a customized .vimrc file. So I can just add the mappings to this file, instead of to .exrc, right? ___ 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: Terminal / vim / shortcuts
>> On Sat, 13 Jun 2009 20:18:02 -0400, >> Daniel Underwood said: D> I edit python code in vim using Terminal on xfce. I find myself, not D> surprisingly, having to exit "insert mode" and save changes frequently D> (when making code changes and wishing to test the immediate effects of D> the changes in a separate terminal). This requires pressing 4 keys: D> "esc", ":", "w", and "enter". How can I configure a shortcut (ideally D> using an F# key) that will perform this sequence of 4 key-presses? If you're moving to a separate terminal to test, that sounds like another keystroke or mouse-movement. You could set up vi/vim to autosave on suspension, then use one function key to suspend back to your shell prompt, run your test, and use a shell alias to get back to your edit session. VIM settings: set autowrite imap #5 :suspend Shell aliases (works for bash/zsh, syntax for tcsh is different): alias 1='%1' alias 2='%2' alias 3='%3' alias 4='%4' alias 5='%5' alias 6='%6' alias 7='%7' alias 8='%8' alias 9='%9' This way, you can restart a suspended job without having to type a dopey percent sign first. Here are some other VIM mappings I've found useful. I hate using the shift key unless it's essential, so to indent/deindent: map ; >> map = << It's easier for me to see context when the cursor is around the middle of the screen: map q z. Sometimes I like a column ruler just for a second or two. Press 'E' to see it, then 'u': map E oi+1+2+3+4+5+6+7+ I like my paragraphs ragged-right, around 75 columns long. This lets me reformat whatever paragraph I'm in by pressing 'v': map v }jmbk{ma}:'a,.!fmt -1^V|fmt -75'b The "^V" is an actual control character, so you have to hit Ctrl-V twice to put it in your .vimrc file. My .vimrc file is here: http://www.hcst.net/~vogelke/src/editors/vim/ -- Karl Vogel I don't speak for the USAF or my company To sin by silence when they should protest makes cowards of men. --Abraham Lincoln ___ 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: upgrade almost done on ns1.thought.org
On Sun, Jun 14, 2009 at 06:03:50PM -0500, Kevin Kinsey wrote: > Gary Kline wrote: > > well, guys, i just pulled the trigger and install kernel and > > world. upon reboot most things worked. i'm having trouble with > > the ntp stuff and need help there. > > > > who can tell me what idiot thing is wrong with my ntp.conf file: > > > >drwx-- 2 root wheel 512 Dec 24 2007 ntp > >-rw-r--r-- 1 root wheel 157 Jan 19 2008 ntp.conf > > > > the ntp directory is/has been empty. in ntp.conf i thought this > > was correct, but upon reboot, i get sudden errors (with 7.2) > > > >sage# cat ntp.conf > >server 0.us.pool.ntp.org > >server 1.us.pool.ntp.org > >server 2.us.pool.htp.org > >driftfile /var/db/ntp.drift > >restrict 10.47.0.0 mask 255.255.255.0 nomodify notrap > > > > anybody? > > Not certain, Gary, as IANAE; here, /etc/ntp/holds "ntpd.conf", > and /etc/ntp.conf is a symlink to said file. No issues with > ntp; I'm running 7-STABLE from last summer. > > Kevin Kinsey > well, maybe the way i had the pool listed, 0.us., 1.us., &c was wrong. i'll know more after i shutdown -r my ns1 machine. same thing here on "tao", my desktop. i just exec'd the /usr/sbin/ntpd on my server and no errors. are there any diagnostics that i can use? (don't make the read the man page until i know what the heck i'm doing!!) gary ps: to the entire list:: my heart is beating again. it was stalled for a couple hours while i finished the 7.2 stuff ;-) --pps: i've done this scores of times, yes, but had it failed, i'd be getting ready to blow my brains out with a pea shooter > -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org For FBSD list: http://transfinite.thought.org/slicejourney.php The 4.98a release of Jottings: http://jottings.thought.org/index.php ___ 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: Unable to start clamsmtpd
On Sun, 14 Jun 2009 22:55:03 +0300 Ott Köstner wrote: >On Sunday 14 June 2009 10:46:01 pm Jerry wrote: > >> I had: >> >> ClamAddress: /var/run/clamav/clamd >> >> in my config file. I changed the clamd to clamd.sock but it did not >> make a difference. >> >> The clamd.pin, clamd.sock= and freshclam.pid files are in >> the /var/run/clamav directory. >> >> This is becoming really annoying. Aparently, clamdsmtp will not >> create its own clamsmtpd.pid file. > >Name does not matter, but '/var/run/clamav/' should be owned by >'clamsmtp' owner. Also 'clamd.conf' should be edited. The socket must >be the same in both configuration files. > ># Path to a local socket file the daemon will listen on. ># Default: disabled (must be specified by a user) >LocalSocket /var/run/clamav/clamd.sock > >All 3 programs should run under the same username: > > PID USERNAME THR PRI NICE SIZERES STATE C TIME WCPU > COMMAND >56863 clamav 3 450 236M 28292K ucond 0 0:03 0.98% >clamd 21484 clamav 1 40 15704K 984K accept 1 1:44 >0.00% clamsmtpd 56894 clamav 1 200 19188K 636K pause 1 >0:39 0.00% freshclam > >Works fine. I can send all my conf files, if needed. Probably not a >very good idea to copy/paste these into this list. My clamd works fine >for some time already. This very e-mail goes through my clamd... OK, when I reboot, clamsmtpd will install it's 'PID' file in the /var/run/clamav directory. There are no errors shown. Postfix then immediately starts. Now, when I receive a message, the maillog has an error message: clamsmtpd: 17: CLAMAV: couldn't connect to : /var/run/clamav/clamd: No such file or directory. Now, the file and directory do exist. If I stop or restart clamsmtpd, that error message about "clamsmtpd: invalid OutAddress socket or ip:" reappears. -- Jerry ges...@yahoo.com How come only your friends step on your new white sneakers? signature.asc Description: PGP signature
Re: upgrade almost done on ns1.thought.org
Gary Kline wrote: well, guys, i just pulled the trigger and install kernel and world. upon reboot most things worked. i'm having trouble with the ntp stuff and need help there. who can tell me what idiot thing is wrong with my ntp.conf file: drwx-- 2 root wheel 512 Dec 24 2007 ntp -rw-r--r-- 1 root wheel 157 Jan 19 2008 ntp.conf the ntp directory is/has been empty. in ntp.conf i thought this was correct, but upon reboot, i get sudden errors (with 7.2) sage# cat ntp.conf server 0.us.pool.ntp.org server 1.us.pool.ntp.org server 2.us.pool.htp.org driftfile /var/db/ntp.drift restrict 10.47.0.0 mask 255.255.255.0 nomodify notrap anybody? Not certain, Gary, as IANAE; here, /etc/ntp/holds "ntpd.conf", and /etc/ntp.conf is a symlink to said file. No issues with ntp; I'm running 7-STABLE from last summer. Kevin Kinsey -- It's better to be quotable than to be honest. -- Tom Stoppard ___ 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 and apache 2.2 band width limiting
On Sun, Jun 14, 2009 at 3:06 PM, Dave wrote: > Hello, >I've got a FreeBSD 7.2 box that i want to run web services on with > apache. I've got requirements to have protected content. Two groups of > users > should be able to access it and no one else, in one group they get a > certain > amound of band width, the other group gets another set amount. I'm > wondering > if this is doable? > Thanks. > Dave. > > mod_throttle and ThrottleUser ? ___ 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"
Network interface dc0 fails to negotiate media type
I have installed FreeBSD 7.2-RELEASE i386 on a Fujitsu Siemens Scaleo T P 340 0 1,0G PC (mainboard name D1826-G). $ uname -a FreeBSD dhcppc0.thorup 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 1 08:49:13 UTC 2009 r...@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 $ I will mention that I have csup'ed and updated my ports the 31.th May. Some time after that the network (interface dc0) suddenly stopped working. First I saw it was not possible to get an IP address from my router. I thought initially that it was the network cable or router, that caused the problem but the PC can still boot up with Win XP without any network connectivity problems. I can see that there must be problems with the negotiation of media type and options from: $ ifconfig -m dc0 dc0: flags=8847 metric 0 mtu 1500 options=8 capabilities=8 ether 00:30:05:d4:25:c7 inet 0.0.0.0 netmask 0xff00 broadcast 255.255.255.255 media: Ethernet autoselect (none) status: active supported media: media autoselect media 10baseT/UTP mediaopt full-duplex media none $ The strange thing is that the normal selection "media 100baseTX mediaopt full-duplex" (before this error) are not on the list of supported meadia. When I boot up in Win XP, the negotiation ends up with 100baseTX / full-duplex. If I try to configure "sudo ifconfig dc0 media 100baseTX mediaopt full-duplex", I receive the answer "ifconfig: SIOCSIFMEDIA (media): Device not configured". If I try to configure "sudo ifconfig dc0 media 10baseT/UTP mediaopt full-duplex", the command changes the settings. I have been studying the FreeBSD man pages, reading the Handbook, searching the mailing lists and searching the internet without finding something that did could help me. Can you at freebsd-questions@freebsd.org help me, so that I can get my network up and running again. dmesg output and sysctl's of interest: $ dmesg Copyright (c) 1992-2009 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.2-RELEASE #0: Fri May 1 08:49:13 UTC 2009 r...@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Pentium(R) 4 CPU 3.40GHz (3401.05-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf34 Stepping = 4 Features=0xbfebfbff Features2=0x441d Logical CPUs per core: 2 real memory = 1072627712 (1022 MB) avail memory = 1035931648 (987 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP/HT): APIC ID: 1 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0xf008-0xf00b on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: irq 16 at device 1.0 on pci0 pci1: on pcib1 vgapci0: port 0x4000-0x40ff mem 0xe000-0xefff,0xf010-0xf010 irq 16 at device 0.0 on pci1 vgapci1: mem 0xf011-0xf011 at device 0.1 on pci1 pci0: at device 27.0 (no driver attached) pcib2: irq 17 at device 28.0 on pci0 pci3: on pcib2 pcib3: irq 16 at device 28.1 on pci0 pci5: on pcib3 pcib4: irq 18 at device 28.2 on pci0 pci7: on pcib4 pcib5: irq 19 at device 28.3 on pci0 pci9: on pcib5 uhci0: port 0x2000-0x201f irq 23 at device 29.0 on pci0 uhci0: [GIANT-LOCKED] uhci0: [ITHREAD] usb0: on uhci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 2 ports with 2 removable, self powered uhci1: port 0x2400-0x241f irq 22 at device 29.1 on pci0 uhci1: [GIANT-LOCKED] uhci1: [ITHREAD] usb1: on uhci1 usb1: USB revision 1.0 uhub1: on usb1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0x2800-0x281f irq 21 at device 29.2 on pci0 uhci2: [GIANT-LOCKED] uhci2: [ITHREAD] usb2: on uhci2 usb2: USB revision 1.0 uhub2: on usb2 uhub2: 2 ports with 2 removable, self powered uhci3: port 0x2c00-0x2c1f irq 20 at device 29.3 on pci0 uhci3: [GIANT-LOCKED] uhci3: [ITHREAD] usb3: on uhci3 usb3: USB revision 1.0 uhub3: on usb3 uhub3: 2 ports with 2 removable, self powered ehci0: mem 0xf0004000-0xf00043ff irq 23 at device 29.7 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb4: EHCI version 1.0 usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3 usb4: on ehci0 usb4: USB revision 2.0 uhub4: on usb4 uhub4: 8 ports with 8 removable, self powered ugen0: on uhub4 pcib6: at device 30.0 on pci0 pci11: on pcib6 dc0: port 0x5000-0x50ff mem 0xf0201000-0xf02013ff irq 23 at device 4.0 on pci11 miibus0: on dc0 ukphy0: PHY 1 on miibus0 ukphy0: 10baseT-FDX, auto dc0: Ethernet address: 00:30:05:d4:25:c7 dc0: [ITHREAD] fwohci0: mem 0xf020-0xf0200fff irq 20 at device 6.
Re: still no speil checking with openoffice.org-3.1
On Sunday 14 June 2009, ltcdd...@nildram.co.uk wrote: > After building openoffice3.1 three times and trying the binary > versions I am still not able to get the spell checker to work. I have > openoffice3.0 also built and working ok with spell checking but for > some reason the writing aids edit button remains greyed out on > OOo-3.1.0 The patch at http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/127946 fixed it for me. -- Mike Clarke ___ 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: Cannot login as root, exited on signal 11
On Sun, Jun 14, 2009 at 9:06 AM, Unga wrote: > > Hi all > > This is FreeBSD 7.2 on i386. > > After a custom compiled from sources installation, root cannot log in but > normal users can log in. > > Here are the messages in /var/log/messages: > Jun 14 00:44:58 xxx login: ROOT LOGIN (root) ON ttyv0 > Jun 14 00:44:58 xxx kernel: pid 757 (login), uid 0: exited on signal 11 > Jun 14 00:45:00 xxx kernel: pid 760 (cron), uid 0: exited on signal 11 (core > dumped) > > Note, cron also fails. > > When try to log in, it checks the password correctly, ie. if I type a wrong > password for root, it says "Incorrect ...", but when type the correct > password, it simply come out and prompts the login prompt. > > It looks like something is missing required for the root to log in. I'm using > bash shell. Any ideas? I'll make the (probably correct) assumption that you've changed root's default shell to bash. If so, reboot into single-user mode, and change it back. This is one of the best reasons not to screw around with the root account. -- Glen Barber ___ 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: Unable to start clamsmtpd
On Sunday 14 June 2009 10:46:01 pm Jerry wrote: > I had: > > ClamAddress: /var/run/clamav/clamd > > in my config file. I changed the clamd to clamd.sock but it did not > make a difference. > > The clamd.pin, clamd.sock= and freshclam.pid files are in > the /var/run/clamav directory. > > This is becoming really annoying. Aparently, clamdsmtp will not create > its own clamsmtpd.pid file. Name does not matter, but '/var/run/clamav/' should be owned by 'clamsmtp' owner. Also 'clamd.conf' should be edited. The socket must be the same in both configuration files. # Path to a local socket file the daemon will listen on. # Default: disabled (must be specified by a user) LocalSocket /var/run/clamav/clamd.sock All 3 programs should run under the same username: PID USERNAME THR PRI NICE SIZERES STATE C TIME WCPU COMMAND 56863 clamav 3 450 236M 28292K ucond 0 0:03 0.98% clamd 21484 clamav 1 40 15704K 984K accept 1 1:44 0.00% clamsmtpd 56894 clamav 1 200 19188K 636K pause 1 0:39 0.00% freshclam Works fine. I can send all my conf files, if needed. Probably not a very good idea to copy/paste these into this list. My clamd works fine for some time already. This very e-mail goes through my clamd... greetings, Ott ___ 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"
Bootable GPT USB device
Hello, I'm trying to create a bootable USB drive using the new GEOM_PART_ partitioning technology. Following gpart(8), I've done this... gpart create -s GPT da0 gpart bootcode -b /boot/pmbr da0 gpart add -b 34 -s 128 -t freebsd-boot da0 gpart bootcode -p /boot/gptboot -i 1 da0 gpart add -b 162 -s 2097152 -t freebsd-ufs da0 gpart add -b 2097314 -s 8388608 -t freebsd-swap da0 gpart add -b 10485922 -s 2097152 -t freebsd-ufs da0 gpart add -b 12583074 -s 8388608 -t freebsd-ufs da0 gpart add -b 20971682 -s 135329773 -t freebsd-ufs da0 # gpart show => 34 156301421 da0 GPT (75G) 341281 freebsd-boot (64K) 16220971522 freebsd-ufs (1.0G) 209731483886083 freebsd-swap (4.0G) 1048592220971524 freebsd-ufs (1.0G) 1258307483886085 freebsd-ufs (4.0G) 20971682 1353297736 freebsd-ufs (65G) newfs -L boot /dev/da0p2 newfs -L swap /dev/da0p3 newfs -UL tmp /dev/da0p4 newfs -UL var /dev/da0p5 gjournal load gjournal label /dev/da0p6 newfs -L usrgj /dev/da0p6.journal mkdir -p /mnt/{boot,var,tmp,usr} mount /dev/ufs/boot /mnt/boot/ mount /dev/ufs/tmp /mnt/tmp mount /dev/ufs/var /mnt/var/ mount -o async /dev/ufs/usrgj /mnt/usr/ cd /mnt/boot && dump -0aLuC32 -f- /| restore -rf- cd /mnt/tmp && dump -0aLuC32 -f- /tmp | restore -rf- cd /mnt/var && dump -0aLuC32 -f- /var | restore -rf- cd /mnt/usr && dump -0aLuC32 -f- /usr | restore -rf- I've tried this on two systems now, 7.1-RELEASE i386 and 7.2-STABLE amd64. In each case, I cannot boot from the newly create USB drive. I know each machine is capable of USB boot as I have a 4GB thumbdrive created with the traditional bsdlabel partitioning tools. Each box boots nicely off that USB disk. So, question is, what am I doing wrong? And, how can use the new disk partitioning GEOM class to create a bootable, external, USB drive? Many thanks in advance. -- Regards, Doug ___ 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: Unable to start clamsmtpd
On Sun, 14 Jun 2009 22:28:17 +0300 Ott Köstner wrote: >On Sunday 14 June 2009 9:28:31 pm Carmel wrote: >> I just installed clamsmtpd on a fresh FreeBSD-7.2 installation. When >> I attempt to start the program via the start up script supplied by >> the port maintainer, I receive this error message: >> >> Clamsmtpd: invalid Outaddress socket name or ip: start > >I have clamsmtp running fine on my mail server. Hope I can help You. > >First, please check that the directory, where clamsmtpd creates >socket, is writable by clamsmtpd user. For example, I have yhe >following lines in my config file: > >[...] ># The address clamd is listening on >ClamAddress: /var/run/clamav/clamd.sock >[...] ># User to switch to >User: clamav > >...and... > ># ls -ld /var/run/clamav/ >drwxr-xr-x 2 clamav clamav 512 Nov 27 2008 /var/run/clamav/ > ># ls -l /var/run/clamav/clamd.sock >srwxrwxrwx 1 clamav clamav 0 Nov 27 2008 /var/run/clamav/clamd.sock I had: ClamAddress: /var/run/clamav/clamd in my config file. I changed the clamd to clamd.sock but it did not make a difference. The clamd.pin, clamd.sock= and freshclam.pid files are in the /var/run/clamav directory. This is becoming really annoying. Aparently, clamdsmtp will not create its own clamsmtpd.pid file. -- Jerry ges...@yahoo.com We are not loved by our friends for what we are; rather, we are loved in spite of what we are. -- Victor Hugo signature.asc Description: PGP signature
Re: what is the best way to remove a program?
Mark Hartkemeyer wrote: I was installing the mysql51-server port and I had a message that the install could not proceed, because mysql50-client was already installed. I simply ran a "cd" and then a "make deinstall" in the mysql50-client directory. Is this is the best way to remove a program? Does it depend on how the program was added (compiled versus prebuilt binary added with pkg_add -r)? I've tried pkg_delete in the past, but it seems to always complain about dependencies and not actually remove the program. In this case, pkg_delete should do the work for you. with best regards, Ott ___ 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: upgrade almost done on ns1.thought.org
About the NTP problem, I'd start with the bare necessities, then extend until the breakage reappears. My only line I leave in ntp.conf is server us.pool.ntp.org There was a recent ntp security announcement too; so if you missed it, I'd rebuild it again. --Tim On 6/14/09, Gary Kline wrote: > > well, guys, i just pulled the trigger and install kernel and > world. upon reboot most things worked. i'm having trouble with > the ntp stuff and need help there. > > who can tell me what idiot thing is wrong with my ntp.conf file: > > > > drwx-- 2 root wheel 512 Dec 24 2007 ntp > -rw-r--r-- 1 root wheel 157 Jan 19 2008 ntp.conf > > the ntp directory is/has been empty. in ntp.conf i thought this > was correct, but upon reboot, i get sudden errors (with 7.2) > > > > sage# cat ntp.conf > server 0.us.pool.ntp.org > server 1.us.pool.ntp.org > server 2.us.pool.htp.org > driftfile /var/db/ntp.drift > restrict 10.47.0.0 mask 255.255.255.0 nomodify notrap > > > anybody? > > gary > > ps: i'm having similar problems on 'tao.thought.org' where i live > 90% of the time, so a fix on my server might fix my desktop > freebsd > > > -- > Gary Kline kl...@thought.org http://www.thought.org Public Service Unix > http://jottings.thought.org http://transfinite.thought.org >For FBSD list: http://transfinite.thought.org/slicejourney.php > The 4.98a release of Jottings: http://jottings.thought.org/index.php > > ___ > 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-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: Unable to start clamsmtpd
On Sunday 14 June 2009 9:28:31 pm Carmel wrote: > I just installed clamsmtpd on a fresh FreeBSD-7.2 installation. When I > attempt to start the program via the start up script supplied by the > port maintainer, I receive this error message: > > Clamsmtpd: invalid Outaddress socket name or ip: start I have clamsmtp running fine on my mail server. Hope I can help You. First, please check that the directory, where clamsmtpd creates socket, is writable by clamsmtpd user. For example, I have yhe following lines in my config file: [...] # The address clamd is listening on ClamAddress: /var/run/clamav/clamd.sock [...] # User to switch to User: clamav ...and... # ls -ld /var/run/clamav/ drwxr-xr-x 2 clamav clamav 512 Nov 27 2008 /var/run/clamav/ # ls -l /var/run/clamav/clamd.sock srwxrwxrwx 1 clamav clamav 0 Nov 27 2008 /var/run/clamav/clamd.sock ___ 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: The freebsd-questions Archives
On Friday 12 June 2009 22:21:08 Leslie Jensen wrote: > No matches were found for ... htdung is a failed project. > How should I search the list ? http://www.freebsd.org/search/search.html#mailinglists -- Mel ___ 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 and apache 2.2 band width limiting
Hello, I've got a FreeBSD 7.2 box that i want to run web services on with apache. I've got requirements to have protected content. Two groups of users should be able to access it and no one else, in one group they get a certain amound of band width, the other group gets another set amount. I'm wondering if this is doable? Thanks. Dave. ___ 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"
upgrade almost done on ns1.thought.org
well, guys, i just pulled the trigger and install kernel and world. upon reboot most things worked. i'm having trouble with the ntp stuff and need help there. who can tell me what idiot thing is wrong with my ntp.conf file: drwx-- 2 root wheel 512 Dec 24 2007 ntp -rw-r--r-- 1 root wheel 157 Jan 19 2008 ntp.conf the ntp directory is/has been empty. in ntp.conf i thought this was correct, but upon reboot, i get sudden errors (with 7.2) sage# cat ntp.conf server 0.us.pool.ntp.org server 1.us.pool.ntp.org server 2.us.pool.htp.org driftfile /var/db/ntp.drift restrict 10.47.0.0 mask 255.255.255.0 nomodify notrap anybody? gary ps: i'm having similar problems on 'tao.thought.org' where i live 90% of the time, so a fix on my server might fix my desktop freebsd -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org For FBSD list: http://transfinite.thought.org/slicejourney.php The 4.98a release of Jottings: http://jottings.thought.org/index.php ___ 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"
Unable to start clamsmtpd
I just installed clamsmtpd on a fresh FreeBSD-7.2 installation. When I attempt to start the program via the start up script supplied by the port maintainer, I receive this error message: Clamsmtpd: invalid Outaddress socket name or ip: start I receive the exact same message when I terminate the program, except start is replaced by stop. In the config file, this is listed: OutAddress: 10026 That is the default setting. I made sure that clamav was running. I cannot figure out what the problem is. Anyone have any suggestions? -- Carmel ___ 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"
still no speil checking with openoffice.org-3.1
Hi After building openoffice3.1 three times and trying the binary versions I am still not able to get the spell checker to work. I have openoffice3.0 also built and working ok with spell checking but for some reason the writing aids edit button remains greyed out on OOo-3.1.0 The DicOOo.sxw macro appears to work (security set to low for macros) and runs through without errors but on restart there is no change in the writing aids box. Has anyone else had this problem and or fix? ___ 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: what is the best way to remove a program?
Pieter de Goeje wrote: This will replace mysql50-client with mysql51-client and reinstall all ports depending on mysql50-client ("-rf"), so they will use the new version. In this case the last step probably isn't necessary because the libraries are (mostly I think) compatible, but in general it is recommended. Rebuilding all dependents when upgrading from mysql50 to mysql51 is absolutely required. mysql50-client installs ${LOCALBASE}/lib/mysql/libmysqlclient.so.15 whereas mysql51-client installs ${LOCALBASE}/lib/mysql/libmysqlclient.so.16 -- note the changed ABI version number. Unless you use portupgrade(1) or save a copy of the old shlib by other means, anything that linked against libmysqlclient would be rendered inoperable by the change, and must at least be re-linked. Yes, the APIs have not changed, but APIs are a matter for programmers at the time of writing the source code -- once compiled, it's the ABI that counts. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: what is the best way to remove a program?
Pieter de Goeje wrote: > On Sunday 14 June 2009 14:58:46 Mark Hartkemeyer wrote: > >> I was installing the mysql51-server port and I had a message that the >> install could not proceed, because mysql50-client was already >> installed. I simply ran a "cd" and then a "make deinstall" in the >> mysql50-client directory. Is this is the best way to remove a >> program? Does it depend on how the program was added (compiled versus >> prebuilt binary added with pkg_add -r)? I've tried pkg_delete in the >> past, but it seems to always complain about dependencies and not >> actually remove the program. >> >> Thanks, >> Mark Hartkemeyer >> > > "make deinstall" is a good way to remove a program, but it ignores > dependencies as you discovered. Some other program on your system requires > mysql50-client to function and might now be broken. > pkg_delete -f does basically the same. pkg_deinstall (which comes with > portupgrade) also does the trick. > > Before doing a "make deinstall" you can check which installed packages > require > it by: > pkg_info -Rx mysql-client > > If you want to upgrade mysql-client from 5.0 to 5.1, use portupgrade: > portupgrade -rf -o databases/mysql51-client mysql-client > > This will replace mysql50-client with mysql51-client and reinstall all ports > depending on mysql50-client ("-rf"), so they will use the new version. In > this > case the last step probably isn't necessary because the libraries are (mostly > I think) compatible, but in general it is recommended. > > For more information, see "man ports" and "man portupgrade". > > For an easy interactive program that takes care of dependencies, I would suggest ports-mgmt/pkg_rmleaves ___ 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: what is the best way to remove a program?
On Sunday 14 June 2009 14:58:46 Mark Hartkemeyer wrote: > I was installing the mysql51-server port and I had a message that the > install could not proceed, because mysql50-client was already > installed. I simply ran a "cd" and then a "make deinstall" in the > mysql50-client directory. Is this is the best way to remove a > program? Does it depend on how the program was added (compiled versus > prebuilt binary added with pkg_add -r)? I've tried pkg_delete in the > past, but it seems to always complain about dependencies and not > actually remove the program. > > Thanks, > Mark Hartkemeyer "make deinstall" is a good way to remove a program, but it ignores dependencies as you discovered. Some other program on your system requires mysql50-client to function and might now be broken. pkg_delete -f does basically the same. pkg_deinstall (which comes with portupgrade) also does the trick. Before doing a "make deinstall" you can check which installed packages require it by: pkg_info -Rx mysql-client If you want to upgrade mysql-client from 5.0 to 5.1, use portupgrade: portupgrade -rf -o databases/mysql51-client mysql-client This will replace mysql50-client with mysql51-client and reinstall all ports depending on mysql50-client ("-rf"), so they will use the new version. In this case the last step probably isn't necessary because the libraries are (mostly I think) compatible, but in general it is recommended. For more information, see "man ports" and "man portupgrade". -- Pieter de Goeje ___ 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: Terminal / vim / shortcuts
I edit python code in vim using Terminal on xfce. I find myself, not surprisingly, having to exit "insert mode" and save changes frequently (when making code changes and wishing to test the immediate effects of the changes in a separate terminal). This requires pressing 4 keys: "esc", ":", "w", and "enter". How can I configure a shortcut (ideally using an F# key) that will perform this sequence of 4 key-presses? This would rather be a question for the Vim mailing list. imap :wsleep 1gi The purpose of the sleep is that you see the "written" message. It may be off topic, but also very cool! Thanks for the question and the answer. -- John ___ 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: Terminal / vim / shortcuts
Hi, Am Samstag, 13. Jun 2009, 20:18:02 -0400 schrieb Daniel Underwood: > I edit python code in vim using Terminal on xfce. I find myself, not > surprisingly, having to exit "insert mode" and save changes frequently > (when making code changes and wishing to test the immediate effects of > the changes in a separate terminal). This requires pressing 4 keys: > "esc", ":", "w", and "enter". How can I configure a shortcut (ideally > using an F# key) that will perform this sequence of 4 key-presses? This would rather be a question for the Vim mailing list. imap :wsleep 1gi The purpose of the sleep is that you see the "written" message. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de ___ 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"
Cannot login as root, exited on signal 11
Hi all This is FreeBSD 7.2 on i386. After a custom compiled from sources installation, root cannot log in but normal users can log in. Here are the messages in /var/log/messages: Jun 14 00:44:58 xxx login: ROOT LOGIN (root) ON ttyv0 Jun 14 00:44:58 xxx kernel: pid 757 (login), uid 0: exited on signal 11 Jun 14 00:45:00 xxx kernel: pid 760 (cron), uid 0: exited on signal 11 (core dumped) Note, cron also fails. When try to log in, it checks the password correctly, ie. if I type a wrong password for root, it says "Incorrect ...", but when type the correct password, it simply come out and prompts the login prompt. It looks like something is missing required for the root to log in. I'm using bash shell. Any ideas? Many thanks in advance. Best regards Unga ___ 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"
sound disappeared when transition from linux_base-fc4 to linux_base-fc6
Hello,all! The problem is as follows. A couple of days ago I did transition from linux_base-fc4 (default linux support module) to linux_base-fc6. The purpose was to install skype, which rquires at least linux_base-fc6 support. Along with this I completely reinstalled ("pkg_delete" then "make install clean" from week-ago portsnapped ports tree) all the dependent ports, including linux-flashplugin-9.0r159 and nspluginwrapper. The rusult is: skype works OK, but sound completely disappeared when when watchin videos from, say, youtube. Sound system itself works OK, as well as skype, too :-)) Could anyone give me a hint or readdress me to the right mailing list? Regards, P.S.OS FreeBSD 7.1 ___ 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"
what is the best way to remove a program?
I was installing the mysql51-server port and I had a message that the install could not proceed, because mysql50-client was already installed. I simply ran a "cd" and then a "make deinstall" in the mysql50-client directory. Is this is the best way to remove a program? Does it depend on how the program was added (compiled versus prebuilt binary added with pkg_add -r)? I've tried pkg_delete in the past, but it seems to always complain about dependencies and not actually remove the program. Thanks, Mark Hartkemeyer ___ 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: Google groups
i've been using the mailman interface for a long time now to read the various freebsd mailinglists. recently i found out about Google groups which are great isn't standard interface the simplest? you get it on your mailbox, and you use .procmailrc to put it into separate folder each mailing list. Or whatever you like. and a lot better than the mailman interface imo. (no broken search, etc.) however a lot of mailinglists seem to be missing on google. what's the reason Few years more and EVERYTHING will be on by google ;) All data about everything in single place. ___ 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"