2009年4月30日 星期四

在SuSE裡設定bridge network實現VirtualBox主客兩端網路互通

虚擬化機制,把一台機器實際的硬體效益提昇到兩台主機以上!
其實這個說法,也未必正確。
因為硬體資源的使用,在某程度上,是會彼此競爭的。
如記憶體、網路頻寬……

不過一個網工,在有限的實體機器資源可運用的狀態下。
若是能借助虚擬化技術,實現兩台機器以上,從事主從式架構的網路服務運作實驗。
實在是再好不過的了!

這陣子強迫自己換到 SuSE LNIUX,去進行以往使用 ubuntu LNIUX 的作業。
覺得也是有不錯的體驗成果!
SuSE 在有了 Novell 的加持之下,就商業的角度來看,市場推展自然是不同以往。
但它自身發展的 YaST系統,我認為是讓人切入SuSE LINUX使用,很重要的誘導利器。
真的是太好用了! ^_^|||a

離題了!
擷一段官網指導說明,如何在SuSE裡建構bridge network環境,讓主客兩端網路互通。

http://en.opensuse.org/Virtualbox_Network_Bridging
+=========================================+
Result of this scenario is,

* Host and guest machine can communicate,
* Guest can connect to other machine in LAN and internet and vice versa.

Take the following system as an example:

* User name of host machine : johndoe
* Host Machine with 'eth0' : 10.2.26.248 netmask 255.255.255.224
* Gateway : 10.2.26.225
* Proxy : 10.1.10.17
* Guest IP address : 10.2.26.249 netmask 255.255.255.224

Big step :

1. Turn down interface 'eth0'.
2. Set IP address of 'eth0' to 0.0.0.0 and with 'promisc' mode.
3. Create bridge interface 'br0' and set IP address and netmask of 'br0' to the value of IP address and netmask 'eth0' before we set it to 0.0.0.0.
4. Create virtual network card 'tap0' with VBoxAddIF and add 'tap0' to bridge 'br0'.
5. Do not forget to set 'tap0' to 'promisc' mode too.
6. Add 'eth0' to 'br0'.
7. Bring all interface up.

Detailed step,

* Turn down interface 'eth0'.

# /sbin/ifconfig eth0 down

* Set IP address of 'eth0' to 0.0.0.0 and with 'promisc' mode.

# /sbin/ifconfig eth0 0.0.0.0 promisc

To change the interface address to permanent, edit file '/etc/sysconfig/network/ifcfg-eth0' and comment IPADDR and NETMASK config and add LINK_OPTIONS.
Example of configuration :

BOOTPROTO='static'
STARTMODE='ifplugd'
IFPLUGD_PRIORITY='1'
#IPADDR='10.2.26.248'
#NETMASK='255.255.255.224'
NAME='Hewlett-Packard Company Presario V6133CL'
USERCONTROL='no'
LINK_OPTIONS='promisc on'

* Create bridge interface 'br0' and set their IP address.

To create temporary bridge interface (the interface will be gone if the computer is restarted) :

# /sbin/brctl addbr br0
# /sbin/ifconfig br0 10.2.26.248 netmask 255.255.255.224

To create permanent interface, go to /etc/sysconfig/network, create a file with name is 'ifcfg-br0' and content is:

BOOTPROTO='static'
STARTMODE='auto'
IPADDR='10.2.26.248/27'
NETMASK='255.255.255.224'
NAME='bridge for vbox'
BRIDGE='yes'
BRIDGE_PORTS='eth0 tap0'
BRIDGE_FORWARDDELAY='0'

* Create virtual network card 'tap0' with VBoxAddIF and add 'tap0' to bridge 'br0'.

This will create permanent virtual network card,

# /usr/bin/VBoxAddIF tap0 johndoe br0
+-----------------------------------------------------------------------------------------------------+
修正:
在使用OpenSuSE 10.3實戰過程中,發現 我目前版本的 VirtualBox 2.2 。
並没有 /usr/bin/VBoxAddIF 指令!
而是改成另一個指令:
# /usr/bin/VBoxTunctl -b -u bullock -t tap0

+-----------------------------------------------------------------------------------------------------+

* Do not forget to set 'tap0' to 'promisc' mode too.

# /sbin/ifconfig tap0 promisc

* Add 'eth0' to 'br0'.

# /sbin/brctl addif br0 eth0

* Bring all interface up.

# /sbin/ifconfig tap0 up
# /sbin/ifconfig eth0 up
# /sbin/ifconfig br0 up

* Last check, run

# /sbin/ifconfig

openSUSE新手指南[轉貼]

新手指南
From openSUSE
openSUSE 新手入门指南--解决使用 SUSE 系列 Linux 最常见的问题。文档还在不断完善中,欢迎到 http://www.linuxsir.org/bbs/showthread.php?p=1513513#post1513513 提出建议补充。
开始的第一步

什么是 openSUSE ?
openSUSE 是一个 Linux 发行版,简单易用的操作系统。同时, 致力于开发完善这个操作系统的项目和社区也叫做 openSUSE。
openSUSE、SUSE Linux 是什么关系?
openSUSE 原名 SUSE Linux,10.2版本以后的 SUSE Linux 改名 openSUSE。
openSUSE 项目和Novell是什么关系?
openSUSE 项目由Novell 公司赞助。openSUSE 操作系统和相关的开源程序会被 Novell 使用,作为 Novell 企业版 Linux (比如 SLES 和 SLED)的基础。总之,openSUSE对个人来说是完全免费的,包括使用和在线更新。
openSUSE 和其它 Novell提供的 Linux 有什么区别(比如 SLED 10)?
openSUSE 可以免费下载使用,openSUSE社区提供升级服务和软件。
Novell 改进优化 openSUSE ,创造稳定的企业版 Linux 并提供支持,比如 SUSE Linux Enterprise Desktop/Server 10。企业版 Linux 是商品,提供免费试用,但长期使用需要向 Novell 购买服务支持和升级。
哪里可以查看 openSUSE 截图?
用户截图欣赏:http://www.lynucs.org/?suse
哪里下载 openSUSE ?
如何自动安装一些附加软件?
如果是CD安装的话需要一张add-on镜像,在non-oss目录下下载,包含方正字体,Adobe Reader和Real Player等非开源软件,中文环境必须安装。DVD 安装不需要这一步。
1.随系统安装:
安装系统时许可协议对话框确定之后,有两个安装方式选项,全新安装和更新。下面还有一个方框选项- 包括个别媒体中的附加产品。钩选方框,然后选add-on CD,根据提示取出CD1放入add-on,点继续,按提示执行安装。
2.补装 add-on CD:
Yast-附加产品-添加-根据情况选择 CD 或者在硬盘上的 iso 镜像。如果选择 CD 插入 add-on CD。按照提示,选择需要安装的部件安装。
关于更多 openSUSE 的帮助与支持
中文维基: http://cn.opensuse.org
官方IRC频道: irc.freenode.net(服务器) #opensuse(频道)
软件库

如何新增其他的软件库?

打开 YaST, 在 KDE 中,K 菜单 -> 系统 -> YaST -> 安装源。 Gnome 中, 系统 -> YaST -> 安装源 。点击“添加...”,选择协议类型,填入相关信息,确定。
例: SUSE 10.1 添加 PACKMAN 源,源网址为 http://packman.iu-brenem.de/suse/10.1 image:addpackman.png
更新 openSUSE

如何手动更新 openSUSE
用户通过安装源可得到各个软件最新的版本,先添加安装源,YAST->系统更新。
敬告:openSUSE 官方并不建议用户自行升级系统组件负责,出现问题后果自负。
新增其他应用程序

如何安装 J2SE Runtime 环境 (JRE) 及相应的 Mozilla Firefox 插件?
将 add-on CD 或 SUSE DVD 加入源。
YAST->软件管理->搜索并钩选 java-1_5_0-sun 和 java-1_5_0-sun-plugin。
更多 JAVA 相关信息参见 java
如何安装 Flash 播放器 (Macromedia Flash) 及相应的 Mozilla Firefox 插件?
将 add-on CD 或 SUSE DVD 加入源。
YAST->软件管理->搜索并钩选 flash-player
如何安装 PDF 阅读器 (Adobe Reader) 及相应的 Mozilla Firefox 插件?
将 add-on CD 或 SUSE DVD 加入源。
YAST->软件管理->搜索并钩选 acroread
如何安装网络浏览器 (Opera)?
将 add-on CD 或 SUSE DVD 加入源。
YAST->软件管理->搜索并钩选 opera
设置 Opera:
以 root 权限编辑你的 opera 启动脚本文件,一般在 /usr/bin/opera ,在开头添加:
export QT_IM_MODULE=XIM  #使 SCIM 能够输入中文
export LC_ALL=zh_CN #使 Opera 能够以你选择的字体显示中文
保存。此外,Tools-Preferences-Advanced-Fonts-International Fonts 分别在 Chinese Simplified, CJK Symbols and Punctuation,选择同样的中文字体,确定。
注意:如果通过 rpm 包安装,升级 Opera 后要重复这些步骤。
如何安装下载管理器 (Downloader for X)?
加入 guru 源。
YAST->软件管理->搜索并钩选 d4x
如何安装 FTP 客户端 (gFTP)?
将 SUSE 安装盘加入源。
YAST->软件管理->搜索并钩选 gftp
如何安装 P2P BT客户端 (Azureus)?
http://azureus.sourceforge.net/download.php 下载适合你架构的最新版本 Azureus。
右击解压缩,进入新目录开终端。
./azureus
如何安装 P2P eMule 客户端 (aMule)?
加入 Packman 源。
YAST->软件管理->搜索并钩选 aMule
如何安装即时通讯软件 (Skype)?
http://skype.com/go/getskype-linux-suse 下载 SUSE 专用 skype 包。
输入以下命令:
rpm -Uvh skype-version.rpm
其中 skype-version.rpm 为已下载文件的名称,例如 skype-0_90_0_1.rpm。
如何安装多媒体 Codecs (解码/编码器)?
加入 Packman 和 SUSE 安装盘源。
YAST->软件管理->搜索并钩选w32codec-all,libxine1,ffmpeg,lame,faac,libmp4v2,mad,mjpegtools,openh323,libmusepack,libmpcdec。
如何安装 DVD 播放功能?
32位
rpm -Uhv libdvdcss2-1.2.9-1.i386.rpm
64位
右键解压
如何安装多媒体播放器 (xine-ui)?
将 SUSE 安装盘加入源。
YAST->软件管理->搜索并钩选 xine-ui
如何安装多媒体播放器 (MPlayer) 和相应的 Mozilla Firefox 插件?
加入 Packman 源。
YAST->软件管理->搜索并钩选 w32codec-all, libxine1, Mplayer, mplayerplug-in。
如何安装多媒体播放器 (Smplayer) ?
加入 Packman 源。
YAST->软件管理->搜索并钩选 w32codec-all,Smplayer。
如何观看 P2P 网络电视 (qsopcast) ?
如何安装多媒体播放器 (XMMS)?
将 SUSE 安装盘加入源。
YAST->软件管理->搜索并钩选 xmms
如何安装多媒体播放器 (RealPlayer)?
将 add-on CD 或 SUSE DVD加入源。
YAST->软件管理->搜索并钩选 realplayer
如何安装 ID3 Tag 编辑器 (EasyTAG)?
加入 Packman 源。
YAST->软件管理->搜索并钩选 easytag
如何安装影像编辑器 (Kino)?
加入 Packman 源或 SUSE 安装盘。
YAST->软件管理->搜索并钩选 kino
如何安装音效编辑器 (Audacity)?
加入 Packman 源或 SUSE 安装盘。
YAST->软件管理->搜索并钩选 audacity
如何安装 DVD Ripper (DVDRip)?
加入 Packman 源。
YAST->软件管理->搜索并钩选 Video-DVDRip
如何安装 CD Ripper (Sound-juicer)?
将 SUSE 安装盘加入源。
YAST->软件管理->搜索并钩选 sound-juicer
如何安装 Email 客户端程序 (Mozilla Thunderbird)?
将 SUSE 安装盘加入源。
YAST->软件管理->搜索并钩选 MozillaThunderbird
如何安装新闻阅读器 (Pan)?
将 SUSE 安装盘加入源。
YAST->软件管理->搜索并钩选 pan
如何安装网页编辑软件 (Nvu)?
加入 Packman 源。
YAST->软件管理->搜索并钩选 nvu
如何安装项目管理应用程序 (Planner)?
将 SUSE 安装盘加入源。
YAST->软件管理->搜索并钩选 planner
如何安装财务应用程序 (GnuCash)?
将 SUSE 安装盘加入源。
YAST->软件管理->搜索并钩选 gnucash
如何安装桌面排版 (Desktop Publishing) 应用程序 (Scribus)?
加入 guru 源。
YAST->软件管理->搜索并钩选 scribus
如何安装图表编辑器 (Dia)?
将 SUSE 安装盘加入源。
YAST->软件管理->搜索并钩选 dia
如何安装 chm 文件查看器 (kchmviewer)?
将 SUSE 安装盘加入源。
YAST->软件管理->搜索并钩选 kchmviewer
如何安装 CD/DVD 刻录软件 (GnomeBaker)?
加入 guru 源。
YAST->软件管理->搜索并钩选 gnomebaker
如何安装 CD/DVD 刻录软件 (k3b)?
将 SUSE 安装盘加入源。
YAST->软件管理->搜索并钩选 k3b
如何安装网络流量分析器 (Ethereal)?
将 SUSE 安装盘加入源。
YAST->软件管理->搜索并钩选 ethereal
如何安装其他字体?
KDE:
kdesu kcontrol
系统管理->字体安装程序->添加字体..

Gnome:
将字体文件复制到当前用户的 .fonts 目录,命令行:
cp 字体路径和文件名 ~/.fonts
如何安装桌面小程序 (Desktop Applets) (gDesklets)?
加入 guru 源。
YAST->软件管理->搜索并钩选 gDesklets
如何安装集成开发环境 (Anjuta)?
将 SUSE 安装盘加入源。
YAST->软件管理->搜索并钩选 anjuta
如何安装 3D 建模工具 (Blender 3d)?
加入 guru 源或 SUSE 安装盘。
YAST->软件管理->搜索并钩选 blender
如何安装虚拟天像仪 (Stellarium)?
加入 guru 源。
YAST->软件管理->搜索并钩选 stellarium
之后运行下面语句,解决中文显示为方块问题。
cp /usr/share/fonts/truetype/FZHeiTi.ttf /usr/share/stellarium/data/DejaVuSans.ttf
cp /usr/share/fonts/truetype/FZHeiTi.ttf /usr/share/stellarium/data/DejaVuSansMono.ttf
用户管理

如何设定/改变 root 用户的密码?
sudo passwd root
如何在终端模式里切换到 root 身份?
su
<按照提示输入密码>
如何新增/编辑/移除用户帐号?
YAST->安全与用户->用户管理
如何新增/编辑/移除系统群组?
YAST->安全与用户->组管理
如何设置/取消自动登录图形界面?
YAST->安全与用户->用户管理
选定要自动登录的用户,专家选项->登录设置
硬件

如何安装显卡驱动 (NVIDIA)?
YAST->软件管理, 确定安装了 gcc, kernel-source, make
http://www.nvidia.com/object/unix.html 下载适合你系统架构的驱动。
开终端,括号以及其中字符不要输入
init 3
sh NVIDIA-Linux-.....run(就是下载的那个文件) -q
sax2 -r -m 0=nvidia (0是数字,不是字母)
设置开启3d加速,重启计算机。详见NVIDIA 驱动教程
如何取消启动时显示 NVIDIA LOGO?
编辑 /etc/X11/xorg.conf
在 section “Device” 中加一行
Option "NoLogo"
如何安装显卡驱动 (ATI)?
YAST->软件管理, 确定安装了 gcc, kernel-source, make
http://www.ati.com/support/driver.html 下载对应你系统架构驱动。
开终端,括号及其中内容不输入:
chmod 755 ati-driver-installer-8.xx.xx-....run (就是下载的那个run文件名)
./ati-driver-installer-8.xx.xx-x86.run --buildpkg SuSE/版本-架构 (比如 32位 SUSE 10.1 此处是 SuSE/SUSE101-IA32,64位 SUSE 10.1 是 SuSE/SUSE101-AMD64,这步之后会生成一个rpm文件)
su
rpm -Uhv fglrx-......rpm (之前生成的rpm文件)
init 3
sax2 -r -m 0=fglrx
重启生效。详见ATI 驱动教程
如何列出硬盘分区表?
终端:
su
fdisk -l
KDE:
K菜单->系统->监视程序->分区
如何列出硬盘的文件系统空间使用状态?
终端:
df -T -h
KDE:
K菜单->系统->监视程序->存储设备
如何列出挂载中的设备?
终端:
mount
如何列出系统的 PCI 设备?
终端:
lspci
KDE:
K菜单->系统->监视程序->PCI
如何列出 USB 设备?
终端:
lsusb
KDE:
K菜单->系统->监视程序->USB 设备
如何不重新开机就重新挂载 /etc/fstab?
终端:
su
mount -a
CD/DVD 刻录
如何得到iso镜像的 MD5 验证码?
md5sum 文件名.iso
如何制作 MD5 校验文件?
md5sum 文件名.iso > 文件名.iso.md5
如何检查文件的 MD5 校验和?
假设文件名是 file ,文件与和对应的MD5 校验文件 file.md5 在同一目录
md5sum -c file.md5
如何从 CD/DVD 建立镜像 (ISO) 文件?
假设 CD/DVD-ROM 位置是 /dev/cdrom
su
umount /dev/cdrom
dd if=/dev/cdrom of=file.iso bs=1024
如何刻录镜像 (ISO) 文件到 CD/DVD?
KDE:
YAST->软件管理,确认安装了 k3b
Konqueror 文件管理器中,右击 iso 文件图标,动作->用 k3b 刻录 CD 映像..
Gnome:
YAST->软件管理,确认安装了 nautilus-cd-burner
Nautilus 文件管理器中, 右击 iso 文件图标 -> 写入碟片... -> 写入
如何不刻录就挂载/卸载镜像 (ISO) 文件?
要挂载镜像文件 (ISO) 时
su
mkdir /media/iso
mount 文件名.iso /media/iso/ -o loop
要卸载镜像文件 (ISO) 时
su
umount /media/iso/
网络

如何激活/禁用网络连接?
右击右下角 Network Manager 图标,选项->切换到脱机模式
如何配置 LAN 宽带接入?
YAST->网络设备->网卡->通过 NetworkManager 方法->选中网卡->编辑
自动获取 IP 选择自动地址设置。
手动设定 IP 选择静态地址设置:
静态IP地址-------------输入服务商给你的IP和子网掩码
主机和名称服务器-----名称服务器输入DNS服务器IP,右边可以留空
路由选择-----------------在默认网关输入网关IP
如何配置 ADSL 接入?
YAST->网络设备->DSL->添加->PPP方式(M)->PPP Over Ethernet,设备激活选“手动”,同时钩选“用户控制”,下一步。
因特网服务提供商点“新建(W)”,提供商名称任意填,用户名和密码填入ADSL用户名密码,下一步。
不做更改,下一步,完成。
终端输入
su
ifup dsl0
KDE可以安装 kinternet,如上设置后可右击右下角图标,选“拨入”即可上网。
如何浏览局域网内的其他计算机?
打开浏览器,输入:
smb://[对方 IP]
远程桌面

如何连接远程 openSUSE 计算机?
被访问的计算机配置 VNC 主机等待连接,设置如下:
YAST->网络服务->远程管理->允许远程管理并打开防火墙端口,按照提示操作。
终端运行vncserver,配置登录口令。KDE 可以在 krfb 配置 VNC 主机。

远程操作计算机通过 VNC 连接设置好的主机:
vncviewer [对方IP]:5901
KDE 可以在 krdc中连接 vnc:/[对方IP]:5901

2009年4月28日 星期二

嘉嘉出院了



兒子出院之後,一直吵著要去佳樂福!
因為佳樂福有「湯瑪士」小火車,和其他好玩的電動遊樂器。

幫兒子理了的小平頭,認為這樣,既使他玩得滿頭大汗也比較不會著涼。



看照片,請不要誤會他是不喜歡拍照!
他是因為,不會比出「YA!」的手勢啦。

歹勢,歹勢,下次改進。

2009年4月26日 星期日

OpenSuSE10.3安裝oracle 10gR2[轉貼]

前段时间公司上了新的服务器,操作系统选择了SuSE linux 10.2 X86_64,数据库使用的是Oracle10gR2,本来安装应该挺容易的,结果出现了一堆错误,回忆了一下,赶紧记下来。

SuSE linux 10.2下安装Oracle10gR2 白皮书下载地址
http://ftp.novell.com/partners/oracle/docs/10gR2_openSuSE102_introduction.pdf

系统要求:
内存:推荐1G
Swap分区:设为内存的2倍
/tmp磁盘空间:400MB以上
磁盘空间:软件3.5G 数据1.2G
以下要用root用户操作

检查所需要的rpm包
rpm -q make binutils gcc compat-db compat-gcc compat-gcc-c
compat-libstdc 或打开YaST安装

compat-2006.1.25-29.x86_64
compat-libstdc -5.0.7-41.x86_64
compat-openssl097g-0.9.7g-33.x86_64
gcc-32bit-4.1.3-29.x86_64
gcc-4.1.3-29.x86_64
gcc-c -4.1.3-29.x86_64
gcc-gij-4.1.3-29.x86_64
gcc-java-4.1.3-29.x86_64
gcc41-32bit-4.1.2_20061115-5.x86_64
gcc41-4.1.2_20061115-5.x86_64
gcc41-c -4.1.2_20061115-5.x86_64
gcc41-gij-32bit-4.1.2_20061115-7.x86_64
gcc41-gij-4.1.2_20061115-7.x86_64
gcc41-java-4.1.2_20061115-5.x86_64
glibc-2.5-25.x86_64
glibc-32bit-2.5-25.x86_64
glibc-devel-2.5-25.x86_64
glibc-devel-32bit-2.5-25.x86_64
glibc-i18ndata-2.5-25.x86_64
glibc-locale-2.5-25.x86_64
glibc-locale-32bit-2.5-25.x86_64
java-1_4_2-gcj-compat-32bit-1.4.2.0-66.x86_64
libgcc41-32bit-4.1.2_20061115-5.x86_64
libgcc41-4.1.2_20061115-5.x86_64
libstdc 41-32bit-4.1.2_20061115-5.x86_64
libstdc 41-4.1.2_20061115-5.x86_64
libstdc 41-devel-4.1.2_20061115-5.x86_64
libstroke-0.5.1-37.x86_64
libaio
libaio-devel

上面的包可能根据系统版本的不同会有所不同

orarun包下载地址

下载地址:
http://ftp.novell.com/partners/oracle/sles-10
安装orarun,用命令:#rpm –ivh orarun-1.8-109.15.i586.rpm
安装或者直接双击用YaST安装

当orarun软件包安装时,会自动建立名为oracle的用户,和一个oinstall组。我们只需要将该用户设置为enable,安装完后,会在 /etc.profile.d下生成2个oracle.sch和oracle.sh文件,在/etc/sysconfig/ 下生成一个oracle文件。而且orarun软件包将ORACLE_HOME文件夹自动生成,减少了很多麻烦。OK,修改文件:

-更改 /etc/passwd文件

oracle:x:103:108:Oracle user:/opt/oracle:/bin/false
改为
oracle:x:103:108:Oracle user:/opt/oracle:/bin/bash
-修改/etc/sysconfig/oracle文件

START_ORACLE_DB="no" START_ORACLE_DB_LISTENER="no"
改为
START_ORACLE_DB="yes" START_ORACLE_DB_LISTENER="yes"
打开控制台,更改oracle用户的密码
#passwd oracle,填入新密码即可

然后以oracle用户身份登陆
安装oracle
解压oracle安装包
#tar –xzvf oracle_db.cpio.gz 或unzip oracle_db.cpio.gz
解压完后是一个cpio文件,继续解压
#cpio -idcmv < oracle_db.cpio

安装oracle
进入文件夹,运行
#./runInstaller
问题
--如果不出现oracle的图形安装界面,并出现
error:faild to load /usr/lib/libInternalSymbols.so,
错误,以root身份更改/etc/profile.d/oracle.sh文件


test -f /usr/lib/libInternalSymbols.so && export
LD_PRELOAD=/usr/lib/libInternalSymbols.so
更改为:
test -f /usr/lib/libInternalSymbols.so && export
LD_PRELOAD_32=/usr/lib/libInternalSymbols.so

--njni10错误
以root身份执行下面的命令
#rm -f $ORACLE_HOME/install/make.logcd $ORACLE_HOME/bin
#./relink all > $ORACLE_HOME/install/make.log

回忆的有些乱,有些错误只记得关键字。

2009年4月14日 星期二

文字模式使用VirtualBox

[轉貼]
http://cha.homeip.net/blog/archives/2008/10/_virtualbox.html#more
X-window 實在很耗資源!
原Host機,改用runlevel 3跑,也能執行 VirtualBox 。
真的太棒了!

2009年4月13日 星期一

木匠兄妹

01-YESTERDAY ONCE MORE


02-SUPERSTAR

03-RAINY DAY AND MONDAY

04-TOP OF THE WORLD

05-TICKET TO RIDE

06-GOODBYE TO LOVE

07-THIS MASQUERADE

08-HURTING EACH OTHER

09-SOLITAIRE

10-WE'VE ONLY JUST BEGUN

11-THOSE GOOD OLD DREAM

12-PLEASE MR. POSTMAN

13-I WONT LAST A DAY WITHOUT YOU

14-TOUCH ME WHEN WE DANCING

15-JAMBALAYA

16-FOR ALL WE KNOW

17-ALL YOU GET FROM LOVE IS A LOVING SONG

18-CLOSE TO YOU

19-ONLY YESTERDAY

20-CALLING OCCUPANTS OF INTERPLANETARY CRAFT


以下歌詞均轉載來自 ※Mojim.com魔鏡歌詞網


1.Yesterday once more昨日重現



When I was young I'd listen to the radio

當我年輕時 我常聽收音機

Waiting for my favorite songs

等待我最喜愛的歌曲

When they played I'd sing along

播出時就跟著哼唱

It made me smile

那使我非常快樂


Those were such happy times And not so long ago

那真是一段快樂時光 就在不久以前

How I wondered where they'd gone

我很想知道它們到哪裡去了

But they're back again

但它們回來了

Just like a long lost friend

像個失去聯絡很久的朋友

All the songs I loved so well

每首歌都是我所鍾愛的


Every Sha-la-la-la Every Wo-o-wo-o

每一句Sha-la-la-la 每一句Wo-o-wo-o

Still shines

依然閃亮

Every shing-a-ling-a-ling

每一句shing-a-ling-a-ling

That they're starting to sing's

它們就是這麼開始唱的

So fine

真是美極了……

When they get to the part where he's breaking her heart

當唱到他傷了她的心那一段

It can really make me cry

真的會讓我掉淚

Just like before

就像從前一樣

It's yesterday once more

彷彿昨日重現


Looking back on how it was in years gone by

回顧歲月的流逝

And the good times that I had

以及我曾擁有的美好時光

Makes today seem rather sad

相較之下,如今真是可悲

So much has changed

只因物事已非

It was songs of love that I would sing to then

那是我當時唱的情歌

And I'd memorize each word

我還記得每一句歌詞

Those old melodies

那些古老的旋律

Still sound so good to me

聽起來依然甜美

As they melt the years away

似乎把歲月都融化了


All my best memories

所有最美好的回憶

Come back clearly to me

都清晰的回到我面前

Some can even make me cry

有些甚至會使我哭泣

轉載來自 ※Mojim.com魔鏡歌詞網

Just like before

就像從前

It's yesterday once more

彷彿昨日重現.


02-SUPERSTAR


Written:Leon Russell/Bonnie Bramlett


Long ago and oh so far away

I fell in love with you before the second show

Your guitar, it sounds so sweet and clear

But you're not really here

It's just the radio


(*)Don't you remember you told me you loved me baby

You said you'd be coming back this way again baby

Baby, baby, baby, baby,

oh, baby, I love you I really do


Loneliness is a such a sad affair

And I can hardly wait to be with you again


What to say to make you come again

Come back to me again

And play your sad guitar


Repeat(*)twice



03-RAINY DAY AND MONDAY


Rainy Days And Mondays(雨天和星期一)

Written:Paul Williams/Roger Nichols


Talking to myself and feeling old

Sometimes I'd like to quit

Nothing ever seems to fit

Hangin' around, nothing to do but frown

Rainy days and Mondays always get me down


What I've got they used to call the blues

Nothing is really wrong

Feeling like I don't belong

Walking around some kind of lonely clown

Rainy days and Mondays always get me down


Funny but it seems I always wind up here with you

It's nice to know somebody loves me

Funny but it seems that it's the only thing to do

To run and find the one who loves me


(*)What I feel is come and gone before

No need to talk it out

We know what it's all about

Hanging around, nothing to do but frown

Rainy days and Mondays always get me down


Funny but it seems that it's the only thing to do

Run and find the one who loves me


Repeaat(*)


Hanging around, nothing do to but frown

Rainy days and Mondays always get me down


====[中譯歌詞]=============================================


雨天和星期一


喃喃自語,覺得自己已老

有時我想放棄

做什麼事都不對勁

無所是事

整天眉頭深鎖

雨天和星期一總讓我心情低落


我得了人們所謂的'憂鬱'

沒有什麼是真的錯了

只是沒有歸屬感

四處遊盪

像某些寂寞的小丑

雨天和星期一總讓我心情低落


有趣的是,我似乎總是和你在此告別

知道有人愛著我,的確很好

好笑的是,我唯一該做的

是找出那個愛我的人


那些感覺來了又去

其實都不足為外人道

我們都明白那是怎麼回事

無所是事

整天眉頭深鎖

雨天和星期一總讓我心情低落




04-TOP OF THE WORLD


Written:Richard Carpenter/John Bettis Arranger:Richard Carpenter


Such a feeling's coming over me

There is wonder in most everything I see

Not a cloud in the sky

Got the sun in my eyes

And I won't be surprised if it's a dream


Everything I want the world to be

Is now coming true especially for me

And the reason is clear

It's because you are here

You're the nearest thing to heaven that I've seen


(*)I'm on the top of the world looking down on creation

And the only explanation I can find

Is the love that I've found ever since you've been around

Your love's put me at the top of the world


Something in the wind has learned my name

And it's telling me that things are not the same

In the leaves on the trees and the touch of the breeze

There's a pleasing sense of happiness for me


There is only one wish on my mind

When this day is through I hope that I will find

That tomorrow will be just the same for you and me

All I need will be mine if you are here


Repeat(*)twice



05-TICKET TO RIDE


Lyrics:John Lennon Music:John Lennon


(*)I Think I'm gonna be sad

I think it's today, yeah

The boy that's driving me mad is going away


(**)He's got a ticket to ride

He's got a ticket to ride

He's got a ticket to ride

And he don't care


He said that living with me

Is bringing him down, yeah

He would never be free

When I was around


Repeat(**)


Don't know why he's ridin' so high

He ought to do right

He ought to do right by me

Before he gets to sayin' good-bye

He ought to do right

He ought to do right by me


Repeat(*)

Repeat(**)


Don't care

Think I'm gonna be sad...



06-GOODBYE TO LOVE


Written:Richard Carpenter/John Bettis


I'll say goodbye to love

No one ever cared if I should live or die

Time and time again the chance for love has passed me by

And all I know of love is how to live without it

I just can't seem to find it


So I've made my mind up

I must live my life alone

And though it's not the easy way

I guess I've always know


I'd say goodbye to love

There are no tomorrows for this heart of mine

Surely time will lose these bitter memories

And I'll find that there is someone to believe in

And to live for something I could live for


All the years of useless search

Have finally reached an end

Loneliness and empty days will be my only friend

From this day love is forgotten

I'll go on as best I can


What lies in the future is a mystery to us all

No one can predict the wheel of fortune as it falls

There may come a time when I will see that I've been wrong

But for now this is my song

And it's goodbye to love

I'll say goodbye to love


07-THIS MASQUERADE


This Masquerade

Lyrics:Leon Russell Music:Leon Russell


Are we really happy with

This lonely game we play

Looking for the right words to say

Searching but not finding

Understanding anyway

We're lost in this masquerade


Both afraid to say we're just too far away

From being close together from the start

We tried to talk it over

But the words got in the way

We're lost inside this lonely game we play


(*)Throughts of leaving disappear

Each time I see your eyes

And no matter how hard I try

To understand the reason

Why we carry on this way

And we're lost in this masquerade


We tried to talk it over

But the words got in the way

We're lost inside this lonely game we play


Repeat(*)


We're lost in a masquerade



08-HURTING EACH OTHER


Lyrics:Peter Udell/Gary Geld Music:Peter Udell/Gary Geld


No one in the world

Ever had a love as sweet as my love

For nowhere in the wolrd

Could there be a boy as true as you love

All my love

I give gladly to you

All your love

You give gladly to me

Tell me why then

Oh why should it be that


We go on hurting each other

We go on hurting each other

Making each other cry

Hurting each other

Without ever knowing why


Close than the leaves

On a weepin' willow, baby, we are

Closer dear are we

Than the simple letters 'A' and 'B' are

All my life

I could love only you

All your life

You could love only me

Tell me why than

Oh why should it be that


We go on hurting each other

We go on hurting each other

Making each other cry

Hurting each other

Without ever knowing why


Can't we stop hurting each other

Gotta stop hurting each other

Making each other cry

Breaking each other's heart

Tearing each other apart



09-SOLITAIRE


Lyrics:Neil Sedaka/Phil Cody Music:Neil Sedaka/Phil Cody


There was a man

A lonely man

Who lost his love

Through his indifference


A heart that cared

That went unshared

Until it died

Within his silence


(*)And solitaire's the only game in town

And every road that takes him

Takes him down

And by himself it's easy to pretend

He'll never love again


(**)And keeping to himself

He plays the game

Without her love


It always ends the same

While life goes on around him everywhere

He's playing solitaire


A little hope

Goes up in smoke

Just how it goes

Goes without saying


There was a man

A lonely man

Who would command

The hand he's playing


Repeat(*)

Repeat(**)

Repeat(*)


10-WE'VE ONLY JUST BEGUN


Written:Paul Williams/Roger Nichols


We've only just begun to live

White lace and promises

A kiss for luck and we're on our way

We've only just begun


Before the rising sun we fly

So many roads to choose

We start our walking

And learn to run

And yes! We've only just begun


(*)Sharin' horizons that are new to us

Watchin' the signs along the way


Talkin' it over just the two of us

Workin' together day to day, together


(**)And when the evening comes we smile

So much of life ahead

We'll find a place where there's room to grow

And yes! We've only just begun


Repeat(*)

Repeat(**)


11-THOSE GOOD OLD DREAM


Written:Richard Carpenter/John Bettis


As a child I was known for makes-believing

All alone I created fantasies

As I grew people called it self deceiving

But my heart helped me hold the memories


As I walk through the world I find around me

Something new yet familiar's in the air

I feel it everywhere


Like a child's eyes on a Christmas night

I'm looking at you now finding answers to my prayers


It's a new day for those good old dreams

One by one it seems they're coming true

Here's the morning that my heart had seen

Here's the morning that just had to come through


12-PLEASE MR. POSTMAN


Written:Brian Holland/Robert Bateman/Berry Gordy


( Stop )Oh yes, wait a minute

Mister Postman

( Wait )

Wait Mister Postman


(*)Please Mister Postman look and see

( Oh yeah )

If there's a letter in your bag for me

( Please, Please, Mister Postman )

Why's it takin' such a long time

( Oh yeah )

For me to hear from that boy of mine


There must be

Some word today

From my boyfriend

So far away

Please Mister Postman

Look and see

If there's a letter

A letter for me


I've been standin' here

Waitin' Mister Postman

So patiently

For just a card

Or just a letter

Sayin' he's returning'

Home to me


Repeat(*)


So many days

You passed me by

See the tears

Standin' in my eyes

You didn't stop

To make me feel better

By leavin' me

A card or a letter


Repeat(*)


( Why don't you check it and see one more time

for me you gotta )

Wait a minute, wait a minute...

( Mister Postman )

Mister Postman look and see


( C'mon deliver the letter, the sooner, the better )

Mister Postman


======================[中譯歌詞]=================


請等一下,郵差先生


請等一下,郵差先生

等一等,郵差先生

等一下,郵差先生,請查查看

袋子裡是不是有我的信?

請等一下,郵差先生

為什麼讓我等這麼久

只為了等我男友的音訊


今天應該有隻字片語

來自我那遠方的男友

等一下,郵差先生,請查查看

是不是有信件是寄給我的?


我一直站在這兒耐心的等待郵差先生

只為了一張明信片或一封信

告訴我他將回到家裡

你從我面前經過這麼多天了

看見我眼裡的淚水

卻不曾停下來安慰我

給我一封明信片或信件


為何你不再為我查看一遍?

你一定得等一下

請等一下,等一下

郵差先生,請查查看

快給我一封信,越快越好

郵差先生........



13-I WONT LAST A DAY WITHOUT YOU


Written:Paul Williams/Roger Nichols


Day after day, I must face a world of strangers

Where I don't belong,

I'm not that strong

It's nice to know that there's someone

I can turn to

Who will always care

You're always there


(*)When there's no gettin' over that rainbow

When my smallest of dreams won't come true

I can take all the madness the world has to give

But I won't last a day without you


So many times when the city seems to be

Without a friendly face, a lonely place

It's nice to know that you'll be there if

I need you And you'll always smile

It's all worthwhile


Repeat(*)


Touch me and I end up singing

Trouble seems to up and disappear

You touch me with the love you're bringing

I can't really lose when you're near


If all my friends

Have forgotten half their promises

They're not unkind,

Just hard to find


One look at you and

I know that I could learn to live

Without the rest

I found the best


Repeat(*)



14-TOUCH ME WHEN WE DANCING


Lyrics:Klaatu Music:Klaatu


In your mind you have capacities you know

To telepath messages through the vast unknown

Please close your eyes and concentrate

With every thought you think

Upon the recitation we're about to sing


(*)Calling occupants of interplanetary craft

Calling occupants of interplanetary most extraordinary craft


Repeat(*)


You've been observing our earth

And we'd like to make a contact with you

We are your friends


Calling occupants of interplanetary craft

Calling occupants of interplanetary ultra-emissaries


We've been observing your earth

And one night we'll make a contact with you

We are your friends


Calling occupants of interplanetary quite extraordinary craft


And please come on peace, we beseech you

Only a landing will teach them

Our earth may never survive

So do come, we beg you

Please interstellar policeman

Oh, won't you give us a sign

Give us a sign that we've reached you


With your mind you have ability to form

And transmit thought energy far beyond the norm

You close your eyes, you concentrate

Together that's the way

To send the message

We declare world contact day


Repeat(*)twice


We are your friends


15-JAMBALAYA


Lyrics:Hank Williams Music:Hank Williams


Good-bye Joe, he gotta go, me oh my oh

He gotta go-pole the pirogue down the bayou

His Yvonne the sweetest one,me oh my oh

Son of a gun, we'll have big fun on the bayou


Thibodaux,Fontaineaux the place is buzzin'

A Kin-folk come to see Yvonne by the dozen

Dress in style the go hog wild, me oh my oh

Son of a gun, we'll have big fun on the bayou


(*)Jambalaya and a crawfish pie and fillet gumbo

Cause tonight, I'm gonna see my ma cher a mi-o


Pick guitar, fill fruit far and be gay-o

Son of a gun, we'll have big fun on the bayou


Settle down far from town get him a pirogue

And he'll catch all the fish in the bayou

Swap his mon to buy Yvonne what she need-o

Son of a gun, we'll have big fun on the bayou


Repeat(*)



16-FOR ALL WE KNOW


Written:Fred Karlin/Robb Wilson/Arthur James


Love, look at the two of us

Strangers in many ways

We've got a lifetime to share

So much to say and as we go on from day to day

I'll feel you close to me

But time alone will tell

Let's take a lifetime to say

I knew you well

For only time will tell us so

And love may grow for all we know


Love, look at the two of us

Strangers in many ways

Let's take a lifetime to say

I knew you well

For only time will tell us so

And love may grow for all we know



17-ALL YOU GET FROM LOVE IS A LOVING SONG


Lyrics:Steve Eaton Music:Steve Eaton


Like sailin' on a sailin' ship to nowhere,

Love took over my heart like an ocean breeze.

As season fly I knew that I was losing

Love was washed away with the driftin tide.


Oh it's a dirty old shame that all you get from love is a love song

It's gotcha layin up nights waiting for the music to start.

It's such a dirty old shame when you got to take the blame for a love song.

Because the best love song is writing with a broken heart.


Now the tears in my eyes are ever blindin'

The future that lies before me I cannot see

Although tomorrow I know the sun is rising

Lightin' up the world for everyone, but not for me.



18-CLOSE TO YOU


Lyrics:Burt Bacharach/Hal David Music:Burt Bacharach/Hal David


Why do birds

Suddenly appear?

Everytime you are near

Just like me

They long to be

Close to you


Why do stars

Fall down from the sky?

Everytime you walk by

Just like me

They long to be

Close to you


(*)On the day that you were born

The angels got together and decided

To create a dream come true

So they sprinkled moondust in your hair



Of gold and starlight in your eyes of blue


(**)That is why all the girls in town

Follow you all around

Just like me

They long to be

Close to you


Repeat(*)

Repeat(**)


Just like me

They long to be

Close to you


Woo... Close to you...


19-ONLY YESTERDAY


Written:Richard Carpenter/John Bettis


After long enough of being alone

Everyone must face their share of loneliness

In my own time nobody knew

The pain I was goin' through

And waitin' was all my heart could do


Hope was all I had until you came

Maybe you can't see how much you mean to me

You were the dawn breaking the night

The promise of morning light

Filing the world surrounding me

When I hold you


(*)Baby, Baby

Feels like maybe things will be all right

Baby, Baby

Your love's made me

Free as a song singin' forever


(**)Only yesterday when I was sad


And I was lonely

You showed me the way to leave

The past and all its tears behind me

Tomorrow may be even brighter than today

Since I threw my sadness away

Only Yesterday


I have found my home here in your arms

Nowhere else on earth I'd really rather be

Life waits for us

Share it with me

The best is about to be

So much is left for us to see

When I hold you


Repeat(*)

Repeat(**)twice



20-CALLING OCCUPANTS OF INTERPLANETARY CRAFT


Lyrics:Klaatu Music:Klaatu


In your mind you have capacities you know

To telepath messages through the vast unknown

Please close your eyes and concentrate

With every thought you think

Upon the recitation we're about to sing


(*)Calling occupants of interplanetary craft

Calling occupants of interplanetary most extraordinary craft


Repeat(*)


You've been observing our earth

And we'd like to make a contact with you

We are your friends


Calling occupants of interplanetary craft

Calling occupants of interplanetary ultra-emissaries


We've been observing your earth

And one night we'll make a contact with you

We are your friends


Calling occupants of interplanetary quite extraordinary craft


And please come on peace, we beseech you

Only a landing will teach them

Our earth may never survive

So do come, we beg you

Please interstellar policeman

Oh, won't you give us a sign

Give us a sign that we've reached you


With your mind you have ability to form

And transmit thought energy far beyond the norm

You close your eyes, you concentrate

Together that's the way

To send the message

We declare world contact day


Repeat(*)twice


We are your friends












音樂試貼


2009年4月11日 星期六

在SUSE中啓動MySQL

MySQL一直是LINUX發展中不可或缺的重要軟體。
因為就我所知,LINUX能快速發展,和LAMP的建置方便以及推廣。
有很大的關係!

但其實LAMP平台的建置,到底是不是真的很方便,可能有不少人會質疑。
畢竟在建置LAMP的過程中,需要的網管技術,和LINUX使用基礎,也是很重要的一環。
很難跳過一些基本功的修練,就順順利利建置好LAMP平台的。

RedHat/Fedora,Debian/Ubuntu,SuSE……
都有一套管理它們 Daemon 的專有指令。
service , invoke-rc.d , rcxxx ……
各有特色和便利性!

雖然,其實都是去對應的 runlevel 系統目錄下,去跑 script 罷了。
和最初基本的 /etc/init.d/xxx start|stop|status|reload|restart| ……
功能差不了多少,結果也通常會一樣。

我想這就是玩LINUX的最大優勢所在,把LINUX搞懂到一定程度。
去碰 BSD 系列的系統管理,也不會難倒你的。




該寫些呼應主題的東東了!
在SuSE啓動 MySQL ,指令可以用 rcmysql start。
反正在SuSE中想啓動什麼服務,試試 rcxxx 。
而rcmysql start 也等於是 /usr/bin/mysqld_safe & ,和在其他版本的LINUX下執行MySQL的原始方法,一樣!

圖片是初次啓動 MySQL 的訊息,要求馬上修改 MySQL root 的密碼。
#mysqladmin -uroot password 'new-password'

2009年4月9日 星期四

在SUSE環境玩Debian

http://rpm.pbone.net/index.php3/stat/4/idpl/7162266/com/debootstrap-0.3.3.1-8.2.noarch.rpm.html

http://www.cwhuang.idv.tw/2008/09/build-mini-debian-by-debootstrap


我開了 /opt/debian 打算用來裝debian etch!
# debootstrap --arch i386 etch /opt/debian
執行指令後,我把訊息擷圖放在下面。
請大家參考……


它會自動上debian官方網站,下載必要的basesystem套件。


安裝好之後,用 ls 檢視一下!

一個 Debian 的環境,準備好了哦。
Go Go Go ……

再來就是把這個 Debian 給RUN起來。
讓它真的能跑 一些 Daemon ,但因為它不算是虚擬的機器環境。
有些地方,要區分清楚!
比如用這個 Debian 來跑 Apache2 ,那麼原來的 SuSE 就一定不能有 Apache2 也在運行中……
否則會有衝突!

YaST把光碟映像檔設成更新來源

野人獻曝,來分享一下,使用SuSE YaST的小小技巧!
把當初安裝OS的光碟,搞成一個映像檔。
然後設定進YaST的更新來源之一,好讓我們往後要再安裝軟體時,不必再放光碟片了!

再把光碟放入,準備「燒錄」成映像檔!

開啓YaST2控制中心!
點選 [Software Repositories] ~
再來,[新增] !


媒體類型 --> 本機 ISO 影像


去找到你生成映像檔,放置的路徑。
指定好ISO檔案!


看到授權合約,不用多想,同意下去就對了!
以後不用再放光碟,方便多了。


看到和先前圖片(第二張)不同的地方了吧!
軟體套件庫來源,多了 suse103 iso的項目。

OK!那個 openSUSE-10.3-DVD 10.3 的項目,可以刪掉它了。
以後再也用不到光碟片了哦。

使用SUSE的陣痛期

兩年前打算認真考認證時,我要挑一個用來實戰用的LINUX版本,有過一些掙扎。
到底要選RPM系列的RedHat/Fedora?還是選DEB系列的Debian/Ubuntu?

RedHat是我接觸LINUX的最初版本,相信也是很多人開始接觸和自學LINUX的入門版本。
而我去拜師正式學LINUX,教的則是用CADELA的版本!
就這樣的源由來推,本來我是對RPM比較熟悉的。

可是,好奇試用Ubuntu的結果,出乎我意料之外的從此對Ubuntu產生好感。
愛不釋手它的APT更新機制~
許多套件的安裝和更新,透過APT的管理,變得簡單到讓我完全改觀。
因為在RedHat9以前的LINUX使用經驗,挫折和痛苦的程度,叫人實在難以領教。
過去安裝套件的常會有的相依性問題,相信也曾經是不少LINUX學習者,有過的惡夢。
回想過去,學習文字指令和背背那些設定稿件,並不是難事。
難的是當你要安裝一套服務套件,面臨的套件相依性問題!
往往是讓剛入門的新手陣亡的一道門檻。

如今使用Ubuntu已經很上手的我,決定現在要再來做個轉換。
改用SUSE!

為的就是準備要考NCLP!

先從SUSE 10.3 ,開始學起。
根據可靠消息指出,我拜的老師 Netman陳思永!
現在教的是就是SUSE。

老師對不起!學了六年後,才去考到LPI L1。
現在我再來考NCLP,看以後能否再衝LPI L2和RHCE。
我一定會把LINUX所學,發掦光大的!

現在使用SUSE有些瓶頸!
慢慢克服去……

寄件者 SuSE LINUX
解決之道! --> http://blog.yam.com/gentoolin/article/13841263

2009年4月7日 星期二

LAMP!BAPP?

LAMP大家應該還不陌生吧!
就是Linux + Apache + MySQL + PHP !
BAPP呢?

剛好有個中國玩開放源始碼的朋友來提問,才讓我從而接觸到這個名詞.
BAPP照他的說法,就是 FreeBSD + Apache + Postgresql + PHP .

BAPP!嗯!
長了見識~

上網Google一下,發現這詞還不是很被發揚廣大啊!
最近也又碰了一些FreeBSD的機器,發現它的設計果然有著學院派的嚴謹.
雖然没有Linux的豐富,在硬體的支援度,FreeBSD也實在遜於Linux.
所以想由FreeBSD去玩X-window的話,挫折感應該會很大.
但是用FreeBSD來架SERVER,性能和安全性,可能要比Linux好上許多?

就看各人喜好啦!

2009年4月6日 星期一

NMAP的圖形介面


開始要玩翻SUSE Linux了!
心血來潮,找到nmap 的圖形化軟體,試用一下。

掃掃我的Debian Linux主機 10.1.131.0 ,結果居然出現了紅字。
曾幾何時,我啓動了 telnet 服務而不自知!
驚~

回想一下,可能是當初在試著設 inetd / xinetd 超級服務,後來忘了關掉!

處理方法有二:
一是拿掉 xinetd 服務!
#update-rc.d -f xinetd remove

二是把 /etc/xinetd.d/ 目錄下的 telnet 設定檔內容,全部註解掉。
再重啓服務!
#invoke-rc.d xinetd restart

第二個方式,好像比較 stupid !


還有!
nmap掃埠的功能,好好運用,能增加不少安全性哦。
厲害的是,nmap也能用來偵測人家伺服器的一些資訊。
不過,SUSE 10.3的nmap版本是4.20,卻比Debian 4附的nmap 4.11要來得差勁。
SUSE裡的nmap -O 居然會查不出對方主機OS是啥?

反倒是Debian 裡的nmap 4.11 能查出以下資訊!(敏感文字用x馬賽克起來!)
+===============================================================+
debian:/etc/xinetd.d# nmap -sT -O -PT 10.1.128.x

Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2009-04-06 16:10 CST
Interesting ports on x.niceplaza.com.tw (10.1.128.x):
Not shown: 1672 closed ports
PORT STATE SERVICE
21/tcp open ftp
22/tcp open ssh
25/tcp open smtp
53/tcp open domain
80/tcp open http
110/tcp open pop3
389/tcp open ldap
10000/tcp open snet-sensor-mgmt
MAC Address: 00:30:6E:A7:29:71 (Hewlett Packard)
Device type: general purpose
Running: FreeBSD 4.X|5.X
OS details: FreeBSD 4.3 - 4.4PRERELEASE, FreeBSD 4.9 - 5.1
Uptime 102.468 days (since Thu Dec 25 04:57:55 2008)

Nmap finished: 1 IP address (1 host up) scanned in 17.968 seconds

+===============================================================+

我又要當爸爸了!

寄件者 My Pictures 4 My Family

weiwei 會是你的小名!
你會在六月出生,雙子。

你的模樣,像極了嘉嘉哥哥。
爸爸期待你的出世,weiwei!

寄件者 My Pictures 4 My Family
男生!

寄件者 My Pictures 4 My Family
四肢建全!
嗯!吳家的興盛,指日可待。

搜尋此網誌

本站大事記

這個部落格(網站)內容以分享LINUX和延伸出的技術文章為主!
特別是為了工作和進修需要,搜集了不少網站連結。
希望對來這裡觀文的朋友們,有提供一些有用的資訊或文章。
但這裡的文章中,也包含個人的心情扎記和隨興言談……
若是當中沒有對上你的口味,請多包涵!

原「琳娜絲與希斯寇的邂逅」,改名為「愛上琳娜絲」!

原「琳娜絲與希斯寇的邂逅」,改名為「愛上琳娜絲」!
--原序文--
就是當LINUX遇上CISCO啦!他們的結合還能作什麼事…不就是讓這個世界的網路,串…串起來啊…不然你們那能上這網站看部落格!