Tuesday, April 27, 2010

Linux telnet option negotiation - passive

Telnet client that comes with Debian Lenny (Linux Netkit 0.17) or Cygwin 1.7 telnet 1.7 (GNU inetutils) actively initiates option negotiation with the server. This is fine for most cases but there are old servers that just stops sending data when it does not like the option that the client tried to negotiate.

To passively participate in option negotiation, telnet can run with the following argument to force it not to send any further negotiation:
telnet <hostname> <port>
Note here that we specified the port number. By doing so, we are basically telling telnet that negotiation is done and so wait for any packet from the server.

And for old telnet server, the following .telnetrc maybe needed:
DEFAULT set echo mode character set crlf

~ts

Emacs command line arguments

Run Emacs in a terminal:
emacs -nw

Saturday, April 24, 2010

MinTTY shortcuts

I am using MinTTY in cygwin port, it looks and works nice. Below are some of the shortcuts I have come accustomed to:

Copy text into Windows clipboard
Ctrl-Ins
Paste from Windows clipboard
Shift-Ins
Open new instance of MinTTY
Alt-F2

Emacs common commands and configuration

Some of my .emacs customization:

Hide Emacs toolbar:
;;hide emacs toolbar (tool-bar-mode 0)
Highlight selection:
;;highlight selection (transient-mark-mode t)
Set major mode to shell scripting
M-x shell-script-mode
Run an emacs lisp program in the *scratch* buffer
In *scratch*, type (+ 1 1 ) Then, do: C-x C-e

~ts

.bashrc not run in Cygwin

This can be caused by having HOME defined in Windows system/user environment. Thus say, when you do:
set HOME
... and if you get a response of "Home=D:\Home" for example then this can be fixed by:
cp -p /etc/defaults/etc/skel/.bash_profile ~
in Cygwin bash shell.

See also this link for more information.
ts

Friday, April 23, 2010

Windows Explorer Shortcuts

Alt-D : Goto to locator bar
Ctrl-N : Open new Windows Explorer
F6 : Switch between windows
Shift+F10: Show context menu

Configuring TUN/TAP virtual network interface for use with QEMU on Xubuntu 24.04

Configuring TUN/TAP virtual network interface for use with QEMU on Xubuntu 24.04 I am planning to run qemu-system-ppc to play around QEMU ...