Re: a technical how to
On Mon, Dec 08, 2003 at 05:51:25PM -0800, homeyra g wrote: Here is the question: How to truncate a file from the begining to a certain point in the file? You can do this in vi. If you are trying to keep only the beginning, you'd do this, where ++ is the first line you don't want: :++,$d If you only want the chunk at the end there are a couple of good ways: :0,++-1d or, if you want to keep the original file: :++-1,$w newfile Where newfile is the file name you want to keep your output in. vi does a whole lot of fine things, and because it is nearly ubiquitous in UNIX it may be worth using for such things. If you want to do this from the command line you can do so with ex scripts. This is the use vi for all text processing approach. Perl, sed, awk, shell scripting; they'll all do the same job. Pick a tool and you'll get a lot of mileage out of it. Have fun. -- yours, William ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: config(8) out of sync with source
Your version of config(8) is out of sync with your kernel source. Did you follow the procedure out of the handbook? # cvsup # make buildworld # cd /usr/src # make buildkernel KERNCONF=MYKERNEL # make installkernel KERNCONF=MYKERNEL # make installworld I hadn't used that method, because I was unsure of the results, and the procedure in the Handbook is more extensive than I had time for. My reticence was well founded, since when I followed the above procedure it rendered the computer non-bootable. -- yours, William ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: config(8) out of sync with source
Your version of config(8) is out of sync with your kernel source. Did you follow the procedure out of the handbook? # cvsup # make buildworld # cd /usr/src # make buildkernel KERNCONF=MYKERNEL # make installkernel KERNCONF=MYKERNEL # make installworld I hadn't used that method, because I was unsure of the results, and the procedure in the Handbook is more extensive than I had time for. My reticence was well founded, since when I followed the above procedure it rendered the computer non-bootable. If you followed the above steps and everything completed successfully then that should not occur, but without more details it's impossible to tell what went wrong on your system. The above steps did not complete successfully. Rather a lot seemed to go wrong. Since there has been a format and reinstall since then, there is little value in diagnostics. Thanks though. -- yours, William ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
ASUS WL-100
After much rooting through this list's archives I tried adding this to /etc/pccard.conf: # Asus WL-100 card ASUS 802_11b_PC_CARD_25 config auto wi ? insert /etc/pccard_ether $device start remove /etc/pccard_ether $device stop Now that card works just fine. Now, since this card *is* supported, how do I contribute the info so that it gets included in /etc/defaults/pccard.conf and man wi? -- yours, William ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
config(8) out of sync with source
I've been googling this error: Your version of config(8) is out of sync with your kernel source. and looked through the FAQ, Handbook and list archives and I can't find a fix. I have installed this system via a 4.9 RELEASE CD, and updated via cvsup a couple of times, and I need to recompile the kernel to turn on some key features. Is there a way to update config(8) so I can build my new kernel? Thanks. -- yours, William ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: wireless networking
On Mon, Nov 24, 2003 at 06:26:09AM -0500, Bruce Mackay wrote: I'm no networking guru but I had similar issues trying to get my network up and running. I ran route add default 192.168.1.1 at the command prompt which started to let me ping my router. I guess in your case you probably need 192.168.100.1. You may have already done this though. Another thing I found that was to ping names (yahoo.com) I had to set my /etc/resolv.conf with search your domain nameserver put in your ips dns address It was the route add default 192.168.1.1 (the wireless router, where I had been trying to use 192.168.0.1, which is the network gateway) that did the trick. Thanks. -- yours, William ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: wireless networking
On Mon, Nov 24, 2003 at 09:03:29AM +0200, Kim Fredenberg wrote: sudo ifconfig wi0 ssid kieran I still cannot ping either by ip or dns. Here is the output of ifconfig: What are you trying to ping, your gateway or something in the Internet? If your pinging outside of your network your route (default gateway) settings might be incorrect. Try pinging something in the same subnet and see if that works. I have tried pinging the gateway (192.168.0.1) and another computer on the network (192.168.0.42) and an outside IP address and google.com. No joy on any of them. -- yours, William ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: vim keyboard mapping problems (ssh)
On Thu, Nov 27, 2003 at 02:59:56AM +0800, Khairil Yusof wrote: vim (command mode): home,end,cursor keys work, but tab doesn't work for commands. tab key displays ^I instead. vim (insert mode): up cursor= A + enter left cursor = D + enter right cursor = C + enter down cursor = B + enter home= H end = F Put this in your .vimrc file: set nocompatible I may have misremembered the command, but it should be in in /usr/share/examples/vimrc, or somewhere very like it. Do a find /usr -name *vimrc* and your should be able to find the settings you need. -- yours, William O'Higgins [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
wireless networking
After much effort I found a wireless PCMCIA card that is supported by FreeBSD. Now I have to get connected to a wireless network, and I need some help. I have read man wi, and the Handbook, but I'm still missing something. When I stick in the card in it is recognized and here is the output of ifconfig: lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 inet 127.0.0.1 netmask 0xff00 ppp0: flags=8010POINTOPOINT,MULTICAST mtu 1500 sl0: flags=c010POINTOPOINT,LINK2,MULTICAST mtu 552 faith0: flags=8002BROADCAST,MULTICAST mtu 1500 wi0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 inet 192.168.100.24 netmask 0xff00 broadcast 192.168.100.255 inet6 fe80::206:25ff:fe2a:4197%wi0 prefixlen 64 scopeid 0x5 ether 00:06:25:2a:41:97 media: IEEE 802.11 Wireless Ethernet autoselect (DS/2Mbps) status: no carrier ssid 1: stationname FreeBSD WaveLAN/IEEE node channel 0 authmode OPEN powersavemode OFF powersavesleep 100 wepmode OFF weptxkey 1 I enter the following to connect with the unencrypted network with the SSID kieran, which is not broadcasting its SSID: sudo ifconfig wi0 ssid kieran I still cannot ping either by ip or dns. Here is the output of ifconfig: lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 inet 127.0.0.1 netmask 0xff00 ppp0: flags=8010POINTOPOINT,MULTICAST mtu 1500 sl0: flags=c010POINTOPOINT,LINK2,MULTICAST mtu 552 faith0: flags=8002BROADCAST,MULTICAST mtu 1500 wi0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 inet 192.168.100.24 netmask 0xff00 broadcast 192.168.100.255 inet6 fe80::206:25ff:fe2a:4197%wi0 prefixlen 64 scopeid 0x5 ether 00:06:25:2a:41:97 media: IEEE 802.11 Wireless Ethernet autoselect (DS/2Mbps) status: associated ssid kieran 1:kieran stationname FreeBSD WaveLAN/IEEE node channel 6 authmode OPEN powersavemode OFF powersavesleep 100 wepmode OFF weptxkey 1 As near as I can tell, I don't know enough about networking FreeBSD, and it is that ignorance that is the problem. Any suggestions? I am including the output of dmesg, in case that's useful. -- yours, William Copyright (c) 1992-2003 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 4.9-RELEASE #0: Mon Oct 27 17:51:09 GMT 2003 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC Timecounter i8254 frequency 1193182 Hz CPU: Intel Pentium III (498.27-MHz 686-class CPU) Origin = GenuineIntel Id = 0x683 Stepping = 3 Features=0x383f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE real memory = 201129984 (196416K bytes) config en pcic1 config po pcic1 0x3e2 config ir pcic1 0 config iom pcic1 0xd4000 config f pcic1 0 config en sn0 config po sn0 0x300 config ir sn0 10 config f sn0 0 config q avail memory = 190193664 (185736K bytes) Preloaded elf kernel kernel at 0xc053f000. Preloaded userconfig_script /boot/kernel.conf at 0xc053f09c. Pentium Pro MTRR support enabled md0: Malloc disk pcibios: No call entry point npx0: math processor on motherboard npx0: INT 16 interface pcib0: Intel 82443BX (440 BX) host to PCI bridge on motherboard pci0: PCI bus on pcib0 agp0: Intel 82443BX (440 BX) host to PCI bridge mem 0x4000-0x43ff at device 0.0 on pci0 pcib1: Intel 82443BX (440 BX) PCI-PCI (AGP) bridge at device 1.0 on pci0 pci1: PCI bus on pcib1 pci1: NeoMagic MagicMedia 256ZX SVGA controller at 0.0 irq 11 pcic0: TI PCI-1450 PCI-CardBus Bridge mem 0x50103000-0x50103fff irq 11 at device 2.0 on pci0 pcic0: TI12XX PCI Config Reg: [ring enable][speaker enable][pwr save][FUNC pci int + CSC serial isa irq] pccard0: PC Card 16-bit bus (classic) on pcic0 pcic1: TI PCI-1450 PCI-CardBus Bridge mem 0x50102000-0x50102fff irq 11 at device 2.1 on pci0 pcic1: TI12XX PCI Config Reg: [ring enable][speaker enable][pwr save][FUNC pci int + CSC serial isa irq] pccard1: PC Card 16-bit bus (classic) on pcic1 pci0: unknown card (vendor=0x11c1, dev=0x0449) at 3.0 irq 11 pci0: unknown card (vendor=0x1013, dev=0x6003) at 6.0 irq 11 isab0: Intel 82371AB PCI to ISA bridge at device 7.0 on pci0 isa0: ISA bus on isab0 atapci0: Intel PIIX4 ATA33 controller port 0xfcf0-0xfcff at device 7.1 on pci0ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: Intel 82371AB/EB (PIIX4) USB controller port 0x4000-0x401f irq 11 at device 7.2 on pci0 usb0: Intel 82371AB/EB (PIIX4) USB controller on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered chip0: Intel 82371AB Power management controller port 0xefa0-0xefaf at device 7.3 on pci0 orm0: Option ROM at iomem 0xc-0xcbfff on isa0 pmtimer0 on isa0 fdc0: NEC 72065B or clone at port
Re: beeping on console...NOT X - related question
On a related note, where do you set the amount of scrollback kept in the console or xterm? If I want to Shift-PageUp I can only go a few screens before stopping. I don't need to scroll back to the beginning of something really silly like 'find / *e*', but I'd love to be able to get back to the beginning of 'dmesg' (I know, I should pipe to 'less' or a file, but I like being able to retrace my steps when I realize partway through that I should have been running 'script'). Thanks. -- yours, William ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
exim not running after portupgrade?
I recently ran portupgrade to get to a state that approximates current, and when I rebooted exim is not running. It used to, just fine, but now when I boot I've got no MTA. I can tell you, fetchmail thinks this is quite the problem :-) What could have caused this? As far as I can tell it was being started *somehow* before, and now it isn't. It works fine if I just remember to # sudo exim -bd -q5m but I think it shouldn't have stopped starting just because of a portupgrade. I went from exim 4.12 to 4.24, but there are no changes in the configuration needed for that update. Any ideas? -- yours, William ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
portupgrade -arR
Quite foolishly, I ran this command without thinking it through: portupgrade -arR It's been running for 15 hours or so now, and I'm wondering how much longer it is likely to take? I realize that that depends grin /, but I've love some anecdotal hints if anyone's got some. I installed 4.8 from a CD, and didn't upgrade much of anything, and I have since CVSup'd a new ports tree, built the pkgdb and now portupgrade is just running and running. It's not looping, it's just working away, and I have no idea where it is in the process (it compiling kdeutils as we speak - I wish I'd remembered to uninstall *that* before I started). Any suggestions? Thanks. -- yours, William ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Flash, FreeBSD and Opera
On Tue, Nov 04, 2003 at 11:19:07PM -0800, lists wrote: I just got Flash working on FreeBSD 4.8 RELEASE, so I hope this helps you with 5.1. First off, I'm running linux-opera from the ports. Here is the output from pkg_info | grep opera: linux-opera-7.11.20030515_2. Second, I installed the port for Flash, the output from pkg_inf | grep flash is: linux-flashplugin-6.0r79 The official Macromedia Flash Player for Linux Mozilla and I downloaded the flash port here: http://www.freebsd.org/cgi/ports.cgi?query=linux-flashstype=allrelease=4.9-STABLE%2Fi386 Once the Flash player is installed, I went to my Opera plugins directory located at: /usr/X11R6/share/opera/plugins I then ran the following commands: ln -s /usr/local/lib/linux-flashplugin6/flashplayer.xpt ln -s /usr/local/lib/linux-flashplugin6/libflashplayer.so Then I started opera and all was happy. I just did this, but I am unable to register the plugin in Opera. I am using FreeBSD 4.8 and Opera 7.21. I am not sure if this is a problem, but this is the output of pkg_info | grep opera: linux-opera-6.12.20030305 A blazingly fast, full-featured, standards-compliant browse opera-6.12.20030305 A blazingly fast, full-featured, standards-compliant browse opera-7.21.20031013 A blazingly fast, full-featured, standards-compliant browse I have set the synlinks in the plugins directory, and since that didn't work I also added /usr/local/lib/linux-flashplugin6/ to the plugin path, to no avail. Anyone have any suggestions? -- yours, William ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
hacking broken ports
I was trying to build mplayer tonight, and I ran into a problem with net/liveMedia. The port that I've got calls for the build done on 10.24.2003. This file was unavailable on *any* of the listed mirrors, with the closest match being one built on 10.30.2003. I got around this problem by putting the file into /usr/ports/distfiles, and then modifying two files in /usr/ports/net/liveMedia; Makefile and distfile. I found that there was only on reference to the filename in the Makefile, so I changed it, and then I generated an MD5 on the file that I had and put it into distfile. After all of that foolishness mplayer built just fine. My question is this; am I on the right track, or am I going to screw something up if I keep using this slash-and-burn method? I'm new to FBSD (and *NIX), but this method seemed like it'd work. I'd just hate to do something that's going to bite me in the ass later on. Also, what do I have to do to the permissions of /dev/dvd so that I can open a DVD in userspace. Right now I have to sudo mplayer to watch a movie, and that seems silly. Thanks. -- yours, William ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: *Editing* PDFs?
On Mon, Oct 13, 2003 at 09:59:31AM -0700, Bill Campbell wrote: On Mon, Oct 13, 2003, Alexander Farber wrote: I've read some where that the new OpenOffice is capable of pdf-output There's an article in this month's Linux Journal on Scribus saying that it has very good PDF capabilities. The article said that Scribus is available on a number of *ix platforms, and I think FreeBSD was on the list. We've determined that Scribus doesn't allow us to edit PDFs created by others, and thus doesn't fit the original criterion. That said, people may be interested in the above-mentioned article. Here is a URI: http://www.linuxjournal.com/article.php?sid=7054 -- yours, William ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
writing pdfs
I have grown tired of using MS Word as my standard document output format. I haven't gotten OpenOffice to work under FreeBSD (and it isn't my favourite tool by a long shot) and I am most happy generating text in vi. PDF is eminently portable, and I think that it would suit my purposes nicely. I had some thoughts about generating PDFs, but I was hoping for advice about which tools to use. Should I just learn how to mark up a text page manually (I write HTML almost as quickly as plain text)? Should I learn TeX or some variant and translate it? I hear that PHP has some excellent PDF-generation tools; should I write up a command-line interpreter myself? Any suggestions would be appreciated. I did a bit of searching, but I didn't find any real *advice* on what process to use, and most of the tools that I found are for viewing PDFs, not writing them. Thanks. -- yours, William ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: writing pdfs
Thanks to all who, very quickly, gave recommendations, hints, references and ports locations. An excellent response. I'm going to look into DocBook and LaTex and see where that takes me. Thanks also to those who offered help with OpenOffice, but I have come to *profoundly* dislike Word and all its work-alikes, not just for its file format, but for its properties as a tool. To sum up, Word and family is a tool, in the derogatory sense. The last item that I forgot to mention is that I wanted a non-binary working format that better supports versioning with cvs, which I use to keep my laptop and desktop in sync. Thanks again to all. -- yours, William ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
running at as a user
How do you run at as a user? I get the following error: at: you do not have permission to use this program I thought it might work to change the permissions on the executable to 555, but that yields the same result. Suggestions? -- yours, William ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
PCMCIA NIC
I have FreeBSD installed on a laptop, but I am having trouble with setting up networking. ifconfig does not show the PCMCIA NIC (3Com 10/100, pretty standard and works under Linux, so I expect it's supported), and after some looking I think that I have the necessary kernel parameters built, but I'm definitely missing something. -- yours, William ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: PCMCIA NIC
Original problem description: ifconfig does not show the PCMCIA NIC (3Com 10/100, pretty standard and works under Linux, so I expect it's supported), and after some looking I think that I have the necessary kernel parameters built, but I'm definitely missing something. One of several interesting replies: FWIW, on my Thinkpad 600X w/ Linksys pcmcia, I had to use OLDCARD to configure a kernel that would use the card. I may be missing the point, but it might be worthy to note it also. Responses: It was suggested that I try ifconfig -a to see if the card was detected but not configured. It does not appear to be recognized. pccard_enabled=YES was and is in my rc.conf, but that was a good suggestion. The card is found in dmesg, but I find a message that looks ominous: 32-bit cardbus not supported or similar. I get the same message when I hotplug the card in. The card is a 3Com Megahertz 10/100 card, model number 3CCFE575BT I am disappointed to not see this card in /etc/defaults/pccard.conf I am running 4.8, and I suspect that this is obvious to the more knowledgable by this point. I don't quite know what to do with the suggestion that I use OLDCARD to configure a kernel. Could someone point me at some documentation? Request for Advice: If, in fact, I cannot use FreeBSD 4.8 and cardbus cards, am I better to get a 16-bit card (possibly tricky, I did some looking) or move to 5.x (which makes me, perhaps unnecessarily, nervous)? -- thanks to all, William ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
laptop booting issue
I recently installed FreeBSD 4.8 on a ThinkPad 600X. The install seemed to go fine, but when I reboot and I look at the menu, I have two choices - F1 DOS, F2 FreeBSD. There is nothing on the DOS partition, so I want to press F2. There isn't any response however. If I hit F1 it tries to boot the remnants of the previous OS (Win98), but if I hit F2 I get squat. Does this ring any bells for anyone? Or should I just install Windoze first (I have to dual-boot :-( ) and then try again? Any input would be appreciated. Thanks. -- yours, William O'Higgins [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
exim configurations?
Is anyone using exim as their MTA? I am attempting to migrate to FreeBSD, but this is my stumbling block. exim works, but it will not send mail out of the machine, and the log has Operation timed out messages for every queue run on every message until they get returned as undeliverable. Has anyone got a sample FreeBSD exim config I can look at, perhaps one that uses a smarthost (but that's not strictly necessary)? Thanks. -- yours, William ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
colour in the console and xterms
I am trying to migrate to FreeBSD from Linux, but some things just aren't working the way I'd like. When I launch an xterm it honours my .bashrc, and I get my custom prompt, which includes colour, but no other colour seems to work - not vim, not ls -G, not mutt. In the console, however, I never get the prompt or the aliases specified in my .bashrc, and I never get colour. Any pointers? Thanks. -- yours, William ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
laptop install problem - usb cd drive
The Challenge: An old laptop, with no OS that can only boot from a floppy. I want to install FreeBSD. I have a USB CDROM, but I cannot make it bootable at the BIOS level. I have a network card (PCMCIA) but no knowledge of how to get drivers for it on a FreeBSD install floppy. I'm pretty sure I'll have to either install entirely from floppies (not worth the time) or from the CDROM or network, but I don't know how to make those devices work from a blank hd and a floppy. Any pointers? Thanks. -- yours, William ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]