#!/bin/bash
echo Starting Packet Tracer 5.3
PTDIR=/usr/local/PacketTracer5
#export LD_LIBRARY_PATH=$PTDIR/lib
pushd $PTDIR/bin > /dev/null
./PacketTracer5 $@ > /dev/null 2>&1
popd > /dev/null
然后你在启动PT看看,是不是漂亮很多了,心情是不是舒畅了,接着你就可以到“Options” -> “Perferences” -> "Font"下挑选字体啦。 大功告成~~~~~~~~~~~~~~,如果还有兴趣,如果觉得字体还是不怎么好看,接着往下看文字。
特别说明:在PT的Help中提到(General Issue下的第27个问题):
Q:
Why doesn't Packet Tracer display fonts properly in Linux?
A:
Packet Tracer uses fonts such as Verdana, Times New Roman, etc. which may not be installed on Linux distributions by default. All Linux distributions that do not have these fonts installed need to install them first.
从以上解释可以看出,PT使用的字体就是这些,好痛苦,有些事情不想做(因为要尊重别人劳动成果),但是我会把过程告诉你,做不做由你,It's up to u:
step one: create directory ttf-windows under /usr/share/fonts/truetype on Linux
step two: copy verdana*.ttf,times*.ttf,arial*.ttf ,couri.ttf from Windows/Fonts(os: windows) to
/usr/share/fonts/truetype/ttf-windows (os: Linux)
step three: run fc-cache under /usr/share/fonts/ directory (os: Linux)
It's OK. Enjoy yourself.
到此不禁要多问一句,为啥PT字体这么难看,原来为了跨平台,Cisco开发PT时用的是自带的QT库(不信你可以看看刚才注释的那句,就是$PTDIR/lib目录,里面放的就是Cisco自带的QT库),所以啊,Cisco的开发水准还是不容置疑的,呵呵……这样修改后,PT用的就是lenny系统自带的QT库。好,啥也别说了,翠花,上图……
OS : Debian 5.0 (Lenny) + GNOME(所以如果你安装的是KDE,则第一步可以省略)
PT : packet tracer 5.3