May 4, 2010

讓 Chrome 支援 Java

  1. mkdir /opt/google/chrome/plugins
  2. cd /opt/google/chrome/plugins
  3. ln -s `dpkg -L sun-java6-bin | grep libnpjp2.so` .

recover juniper ex-4200's root password

今天跟Lab拿了一台 Juniper EX-4200 24Port L3 Switch,開機之後,發現,需要帳號,問了所有可能模過這台機器的同事,沒想到沒人知道有帳號這回事 = ="....,那不就是買了快一年的機器,都被亮在那裡沒人去動。
其實一拿到 juniper 的機器就有很多地方覺的很有趣,如:它的boot loader是用 u-boot,system是用 freebsd 改的,還有 csh or bash 可以用 @@",裡面有很多設計讓我大開眼境,不像 cisco like般,只有很單純的 cli 可以使用,而是你可以看到它與OS的整合,希望之後還有時間可以讓我慢慢玩這台機器。
recove的方法:

1. 開機之後,出現下列文字,快點按下你的 SPACE
Hit [Enter] to boot immediately, or space bar for command prompt.
Booting [/kernel] in 1 second...

2. 輸入 "boot -s"
3. 出現 "Enter full pathname of shell or 'recovery' for root password recovery or RETURN for /bin/sh" 輸入 recovery
4. 之後就能順立開機,進入 single mode,且只要按照它的指示做就好了
NOTE: Once in the CLI, you will need to enter configuration mode using
NOTE: the 'configure' command to make any required changes. For example,
NOTE: to reset the root password, type:
NOTE: configure
NOTE: set system root-authentication plain-text-password
NOTE: (enter the new password when asked)
NOTE: commit
NOTE: exit
NOTE: exit
NOTE: When you exit the CLI, you will be asked if you want to reboot
NOTE: the system