pi@raspberrypi ~ $ sudo apt-get install minicom
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libboost-atomic1.55.0 libboost-thread1.55.0 libqt4-dbus libqt5concurrent5 libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5 libqt5opengl5
libqt5printsupport5 libqt5svg5 libqt5widgets5 libruby2.1 libscsynth1 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0
libxcb-render-util0 libxkbcommon-x11-0 libyaml-0-2 qdbus qtchooser qttranslations5-l10n ruby ruby2.1 rubygems-integration
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
lrzsz
The following NEW packages will be installed:
lrzsz minicom
0 upgraded, 2 newly installed, 0 to remove and 97 not upgraded.
Need to get 332 kB of archives.
After this operation, 997 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main lrzsz armhf 0.12.21-7 [81.6 kB]
Get:2 http://mirrordirector.raspbian.org/raspbian/ jessie/main minicom armhf 2.7-1+deb8u1 [250 kB]
Fetched 332 kB in 1s (180 kB/s)
Selecting previously unselected package lrzsz.
(Reading database ... 108866 files and directories currently installed.)
Preparing to unpack .../lrzsz_0.12.21-7_armhf.deb ...
Unpacking lrzsz (0.12.21-7) ...
Selecting previously unselected package minicom.
Preparing to unpack .../minicom_2.7-1+deb8u1_armhf.deb ...
Unpacking minicom (2.7-1+deb8u1) ...
Processing triggers for man-db (2.7.5-1~bpo8+1) ...
Processing triggers for menu (2.1.47) ...
Setting up lrzsz (0.12.21-7) ...
Setting up minicom (2.7-1+deb8u1) ...
Processing triggers for menu (2.1.47) ...
pi@raspberrypi ~ $
pi@raspberrypi ~ $ ls -d /dev/* | grep ttyUSB
/dev/ttyUSB0
4.機器へのコンソール接続
これで準備は完了になりますので、いよいよ接続になります。接続のコマンドは以下になります。
minicom USB0
実行すると…
これでラズパイから機器へコンソール接続が可能になりました。なお、上記ではコンソールケーブルの先に、未設定のCisco機器が接続されています。 「Press CTRL-A Z for help on special keys」とあるので、Ctrl + A押下後、Zを押下すると、下記のようなメニューが出てきます。