Re: bash: delete key sends ~ instead of [del]
[EMAIL PROTECTED]:~ cat .inputrc \e[3~: delete-char \e[1~: beginning-of-line \e[4~: end-of-line [EMAIL PROTECTED]:~ uptime 2:18PM up 527 days, 9:49, 3 users, load averages: 0.85, 0.97, 0.99 [EMAIL PROTECTED]:~ Heh... just thought I would throw out the uptime. It's my longest uptime (freebsd 5.2.1 btw). cheers. On 4/9/06, viq [EMAIL PROTECTED] wrote: On Sunday 12 February 2006 07:51, jared r r spiegel wrote: On Sat, Feb 11, 2006 at 05:17:29PM -0500, Nick Guenther wrote: Yeah, it does that. I don't know why, I assume historical reasons, and I would like to learn from someone here who does know. Use backspace instead. On 2/11/06, Martin Schrvder [EMAIL PROTECTED] wrote: Hi, on my freshly installed 3.7 in bash the delete key sends an ~ instead of [del]. How can I fix this? it *is* sending del. rather, the characters sent when you strike the delete key are recognized by the shell and the shell executes the editing command delete-char-backward. problem is it also sends a tilde after the sequence that the shell recognizes. ^[[3~ is what i get here if i just go to a normal console terminal and hit delete. that is one character more than my shell is listening for. i believe, at least with respect to ksh, bound keys are editing commands that are executed when the shell sees a a control character, which may be have a prefix-character in front of it, come across. the ksh manpage (/ for bind) describes it better than i do, but basically, look at it like this: ^[[3~ is three parts. ^[[, 3, and ~. ^[[ == ^X, 3 == 3, ~ == ~. when the shell sees that, it recognizes ^[[ as 'prefix-2', or ^X. ^X3 is (i think?) set to 'delete-char-backward'. at that point, the shell does that. the ~ was not part of the sequence of keys the shell recognized because it is too many chars. you get a prefix and a control char, not a prefix and two control chars. if you type: blah and hit 'delete', usually you'll end up with bla~ because it did the delete-char-backward, which killed the 'h', but then the '~' showed up after any shell-recognition was done and so it made it out to the terminal as a normal character. a hackish way around that is to use '-m' and make it so that the shell substitutes ^[[3 with a control-X. eg: $ bind -m '^[[3'='^X' ( where '^X' isn't shift-6, shift-x, but rather: control-v, control-x. ) and then $ bind '^X~'=delete-char-backward which makes it to that when the shell sees '^[[3', it substitutes that for a real ^X. if i'm hitting delete, the ~ is also sent by my keypress, but at that point, the sequence has become '^X~', which then executes 'delete-char-backward'. perhaps bash is the same... And what about the home and end keys? Any way to make them work? -- viq -- Poznaj Stefana! Zmien komunikator! http://link.interia.pl/f1924
Re: bash: delete key sends ~ instead of [del]
hahahaha I think I just got owned. That is so awesome. I needed the laugh, thank you. On 4/12/06, Otto Moerbeek [EMAIL PROTECTED] wrote: On Wed, 12 Apr 2006, imEnsion wrote: [EMAIL PROTECTED]:~ cat .inputrc \e[3~: delete-char \e[1~: beginning-of-line \e[4~: end-of-line [EMAIL PROTECTED]:~ uptime 2:18PM up 527 days, 9:49, 3 users, load averages: 0.85, 0.97, 0.99 [EMAIL PROTECTED]:~ Heh... just thought I would throw out the uptime. It's my longest uptime (freebsd 5.2.1 btw). To cure this, take art's GENERIC viagra: http://www.blahonga.org/~art/diffs/index.html. -Otto
Re: using openbsd on zaurus
If all you are looking for is a small portable email client/web browser for the road, check ebay for a really small/cheap laptop.. aka: the thinkpad 240. It is fully supported by openbsd extremely easily. An out of the box install of openbsd easily runs on the 240 without much configuration needed. These little laptops are cheap and reliable. The only thing which kinda sucks... when playing music, if you use headphones, you can hear the hard drive access noises since the laptop is so small. That doesn't bother me much though as I whore the ipod everywhere I go anyway. I'm hoping to use a zaurus as a full featured browser, email client while on the road
Re: stuck on upgrading from 3.7 to 3.8 - Exception handling flag day
Oh give it up. You are clearly not skilled enough to even compile code, let alone provide consulting services. Everytime Theo speaks, I have some new quote materal. woo
Re: downloading http
download http? I think you're looking for wget. /usr/ports/net/wget/ On 9/15/05, George Georgalis [EMAIL PROTECTED] wrote: Pardon the stupid question. But how does one download http in OpenBSD? I looked for fetch in packages but did not find. I see this dir /usr/rOPENBSD_3_7/infrastructure/fetch but I'm not sure what it is or how to use it. Is ports required to get files by this protocol? I'm not sure what else I can do to find the package ls ~ftp/OpenBSD/3.7/packages/i386/ |grep get ls ~ftp/OpenBSD/3.7/packages/i386/ |grep ht and search for http download didn't get me anything but fetchmail. Is there a better way to search for packages? // George -- George Georgalis, systems architect, administrator IXOYE http://galis.org/ cell:646-331-2027 mailto:[EMAIL PROTECTED]
Re: [OT]: good home switch?
I've seen how a lot of people recommend the metal case Netgear FS105 and FS108. I am currently using the FS105 -- and have been using it for well over 4 years now. It just sits there in the corner, always on, never bitching, and always working. What more can I ask for? PS: a vonage router is connected to it, along with a windows box, a 24 port 10/100 switch (which is connected to openbsd/freebsd/solaris machines). Anyway, I haven't had any major complaint with it, as it works for my use (home networking such). Just my $0.02USD On 9/4/05, Shawn K. Quinn [EMAIL PROTECTED] wrote: On Sun, 2005-09-04 at 13:57 +0200, [EMAIL PROTECTED] wrote: p.s. Forget about D-Link! I recomment to stay far far away of these crap. I am using a D-Link switch and it has performed acceptably so far. Their wireless access points might be another story, though... -- Shawn K. Quinn [EMAIL PROTECTED]
Re: ThinkPad testers required
I have a thinkpad x22.. not sure if I can help, but if i can slap a snapshot on the lappy, would it be of any help? On 8/27/05, Jonathan Gray [EMAIL PROTECTED] wrote: Can people with the following laptops: - ThinkPad R50, R50p, R51, R52 - ThinkPad T41, T41p, T42, T42p, T43, T43p - ThinkPad X40 - ThinkPad X41, X41 Tablet Try running the latest snapshot (08/27/05 06:49:00) Check they have working aps via sysctl hw.sensors Numbers should change when tilting the laptop. Suspend the system ie zzz Resume and check they still have normal looking numbers when running the same sysctl command again? We need this to be tested on as wide a range of models as possible ASAP. Send all reports positive and negative alike to djm@ and me.
Re: Text editor
I'm surprised everyone keeps recommending using vi and vim, yet no one has given a pointer on how to learn it. Sure, an OReilly book may come in handly for this (such as the pocket version of vi tips), but the best way to learn is of course to read the man page. Aside from the man page, if you install vim (which i highly recommend), there is a little program/script/whatever called vimtutor that will get you familiar with vi/vim. I hop this helps a little bit. Good luck.. and welcome to UNIX (not those linux wannabees :P) On 8/7/05, Jason McIntyre [EMAIL PROTECTED] wrote: On Sun, Aug 07, 2005 at 06:21:55PM +1000, Zoong PHAM wrote: On Sunday, 7 August 2005 at 9:34:18 +0200, Sigfred Heversen wrote: The only text editor in bsd.rd is ed, so chances are that one may have to use it on occasion (shudder). And if you are in support role, sometimes you have to tell someone on the phone how to edit system config files (in single user mode) with ed. Life is tough :-) shudder? tough? it is 166kb of kick ass editor that will save your life someday. all hail and revel in the glory that is ed(1)! SEE ALSO A Tutorial Introduction to the UNIX Text Editor, /usr/share/doc/usd/09.edtut/. jmc
Re: syslogd udp port
haha, henning.. i love your technical responses to problems. they're always very short, sweet and to the point (and you're 99.999% of the time right). if i could make it to a hackathon (or even get invited, heh) i'd buy a round of beer for everyone to calm the *%# down :P On 8/5/05, Henning Brauer [EMAIL PROTECTED] wrote: syslog shutdown()s the port for reading. there is no real difference to not opening it at all. * mdff [EMAIL PROTECTED] [2005-08-05 13:13]: snipblah blah...snap he'd better do man syslogd... but assume this: - no pf for udp/514. - a DOS or DDOS to this OPEN port. - syslogd running just in send mode. - and finally: no remote syslogging configured because of only 1 box here. will it take more ressources to handle this with an open port compared to a closed one or not? i guess yes. and for security, i guess a closed port is still better, than an application reading all packets and discarding them... question: what about 1 more argv to have syslogd not to bind udp/514 at all? br, mdff... -- BS Web Services, http://www.bsws.de/ OpenBSD-based Webhosting, Mail Services, Managed Servers, ... Unix is very simple, but it takes a genius to understand the simplicity. (Dennis Ritchie)
Re: 3.7 latest and hidden ssid?
I wish I could chime in and let you know more specifics about your question, but I want to let you know my experience with wireless and just leave it at that. Maybe someone can actually help you with your question. Either way, what I've found is that hiding your ssid from the world does nothing except make it harder for you to connect to your own access point. If someone wants to get in to your network, hiding the ssid won't do anything. Programs like netstumbler on windows and kismet on linux can *EASILY* see a hidden ssid. This makes me ask the question, why do you need to hide your ssid? Yes, I know how asking redundant questions like why are you doing this, why are you doing that isn't really helpful, but in this case it seems a justified answer.. given that people can easily get around a hidden ssid and it just makes life for YOU harder. I hope this helps in just a little way. If not, then I hope someone else can chime in with a more relevant answer. On 8/2/05, Jonas Fischer [EMAIL PROTECTED] wrote: Hi. I'm have problems to connect to a AP with hidden ssid. As soon as I unhides the ssid my OpenBSD client can connect and when I hides the ssid on the AP again, my client drops the connection!? Why is that? I'm using OpenBSD snapshot (from 31/7) and a Ralink rt2500 pccard (Level One WPC-0301).
Re: sleep patterns...
hahaha. in one of my sleep deprived moments a couple years ago.. i was messing with kernel compiles and such, when i mistakenly did... rm -rf /etc instead of rm -rf etc of course i immediately realized this and hit ctrl + c needless to say, the box was unimportant (THANK GOD) and this was back when 3.1 just got released. either way, the box ran for about a month after that without any problems. then one day i wanted to add a user and found i couldn't. ah, the stupidity of working sleep deprived for days =/ On 7/4/05, viq [EMAIL PROTECTED] wrote: On Monday 04 of July 2005 21:25, Todd C. Miller wrote: In message [EMAIL PROTECTED] so spake unixadmin99 (unixadmin99): Accidently emptied half the contents of src.tar.gz into /usr/bin while undergoing an install under the intoxication of sleep. Be glad you didn't do this in /usr (as I have done). Things get downright unhappy when /usr/libexec/ld.so is a directory ;-) that's what i managed to do - couldn't even log in or shut down system properly :( that's where upgrade helped ;) - todd viq -- Na randke, na randke, na randke... http://link.interia.pl/f189c