Cisco 1400 Password Recovery

1. Attach a terminal or PC with terminal emulation to the console port of the router. Use the following terminal settings:
9600 baud rate
No parity
8 data bits
1 stop bit
No flow control

The required console cable specifications are described in the Cabling Guide for RJ-45 Console and AUX Ports (Cisco’s 1000 series, 2500 series, and AS5100).

2. If you still have access to the router, type show version and record the setting of the configuration register; it is usually 0x2102 or 0x102. Click here to see the output of a show version command.

3. If you don’t have access to the router (because of a lost login or tacacs password), you can safely consider that your configuration register is set to 0x2102.

4. Using the power switch, turn off the router and then turn it back on.

Important: To simulate step 4 on a Cisco 6400, pull out and then replace the Node Route Processor (NRP) or Node Switch Processor (NSP) card.

Important: To simulate step 4 on a Cisco 6×00 using NI-2, pull out and then replace the NI-2 card.
5. Press Break on the terminal keyboard within 60 seconds of the power-up to put the router into ROMMON.

If the break sequence doesn’t work, see Possible Key Combinations for Break Sequence During Password Recovery for other key combinations.
6. Type confreg 0x2142 at the rommon 1> prompt to boot from Flash without loading the configuration.

7. Type reset at the rommon 2> prompt.

The router reboots but ignores its saved configuration.
8. Type no after each setup question or press Ctrl-C to skip the initial setup procedure.

9. Type enable at the Router> prompt.

You’ll be in enable mode and see the Router# prompt.
10. Important: Type configure memory or copy startup-config running-config to copy the nonvolatile RAM (NVRAM) into memory. Do not type configure terminal.

11. Type write terminal or show running-config.

The show running-config and write terminal commands show the configuration of the router. In this configuration you see under all the interfaces the shutdown command, which means all interfaces are currently shutdown. Also, you can see the passwords (enable password, enable secret, vty, console passwords, and so on) either in encrypted or unencrypted format. The unencrypted passwords can be re-used, the encrypted ones will have to be changed with a new one.
12. Type configure terminal and make the changes.

The prompt is now hostname(config)#.
13. Type enable secret
to change the enable secret password, for example.

14. Issue the no shutdown command on every interface that is used. If you issue a show ip interface brief command, every interface that you want to use should be “up up”.

15. Type config-register 0x2102, or the value you recorded in step 2.

16. Press Ctrl-z or end to leave the configuration mode.

The prompt is now hostname#.
17. Type write memory or copy running-config startup-config to commit the changes.

Enable Auto Logon

Open regedit

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]






讓終端機正確顯示輸入的 Unicode 中文

讓終端機正確顯示輸入的 Unicode 中文

昨天蘋果的技術支援網站貼出一篇標題為「How to Use High-Bit Characters in Terminal」的文章,文中說明要如何調整終端機的設定,以避免終端機將輸入資料視為是 7bit ASCII 碼,使得末位第 8 位元被截去,造成資料變成亂碼。在該文文末,有一段註明……



昨天蘋果的技術支援網站貼出一篇標題為「How to Use High-Bit Characters in Terminal」的文章,文中說明要如何調整終端機的設定,以避免終端機將輸入資料視為是 7bit ASCII 碼,使得末位第 8 位元被截去,造成資料變成亂碼。

在該文文末,有一段註明,大意是:在開啟此項功能後,使用 tcsh/bash shell(殼層,系統的使用者界面,讓使用者能透過螢幕和鍵盤與電腦做文字上的溝通。Mac OS X 預設使用 tcsh。)的使用者,在命令列輸入的 8bit 字元,會以溢位資訊的形式顯示,僅 zsh shell 會以正常字體顯示。

這就是 bash shell 輸入中文後的樣子。

而下面是一則小技巧,讓 bash shell(請注意,是 bash,不是系統預設的 tcsh)能像 zsh shell 一樣以正常字體顯示輸入的文字。由於 Mac OS X 10.2 內建的 bash shell 是完整的 2.05a 版本,我們可以藉由修改 bash 命令列編輯界面 readline 的設定來解決這問題。readline 的啟動檔是 .inputrc,bash 啟動時,會先讀取這份啟動檔,並套用當中的設定。

使用者可用文書編輯器如 TextEdit 或 pico,在家目錄(~/)下新增名為 .inputrc 的檔案,並在內容輸入:

set convert-meta off
set meta-flag on
set output-meta on

這三行後存檔即可。在下一次啟動 bash shell 輸入資料時,就可在命令列看見正常顯示的中文字了。

這就是 bash shell 修改過 readline 設定後的結果。

以上的修改僅對 Mac OS X 10.2 之後的 bash shell 有效,tcsh shell 若要有相同的效果,則需重新編譯安裝,手續較為麻煩,在此撇開不談,也歡迎大家加入 bash shell 的行列。

Configure CVS Server on Redhat How do I setup a cvs server with xinetd?
A. A user wrote in with this suggestion:

cvspserver stream tcp nowait root /usr/bin/cvs cvs –allow-root=/home/pauljohn/cvsroot –allow-root=/home/pauljohn/cvsmisc pserver

If you want to make the same work under xinetd, you save a config file in /etc/xinetd.d called cvspserver, (where the last line tells it the names of your repositories):
service cvspserver
socket_type = stream
protocol = tcp
wait = no
user = root
passenv =
server = /usr/bin/cvs
server_args = –allow-root=/home/pauljohn/cvsroot –allow-root=/opt/mycvsroot pserver

All the other cvs setup stuff is the same. This seems to work, afaik.