配置环境:CentOS 5.2, Motorola E680i
Google了很久,终于找到了gnokii,这是为一些老式的NOKIA手机设计的Linux驱动与管理程序,但是也可以通过支持AT命令的SMS modem。E680i自带的USB模式支持Modem,只需要在连接之前更改为这种模式,然后连接USB接口,CentOS 会自动将其识别为/dev/ttyACM0。
使用minicom -s 设置好modem的连接参数:
- Bit per second: 9600kbps,
- Data bits: 8,
- Parity: None
- Stop bits: 1,
- Flow control: Hardware Flow control.
从http://www.gnokii.org下载gnokii,编译安装。由于涉及到系统设备操作,因此整个操作过程都需要root账户权限。
[root@wardking gnokii-0.6.27]# ./configure
[root@wardking gnokii-0.6.27]# gmake
[root@wardking gnokii-0.6.27]# gmake install
[root@wardking gnokii-0.6.27]# cp Docs/sample/gnokiirc ~/.gnokiirc
编辑.gnokiirc文件,注释掉port=/dev/ttyS0,启用port=/dev/ttyACM0,注释掉model=6510,启用model=AT。
初始化连接:
[root@wardking ~]# gnokii --identify
此时会显示一些测试信息,完成后就可以使用以下命令发短信:
[root@wardking ~]# echo "This is a SMS from Linux shell" | gnokii --sendsms 13000000000
后来我又找到一台NOKIA6310i,发现其带有蓝牙和红外线,也可以通过这种方式连接,只需要在.gnokiirc中进行相应的更改。
Google了很久,终于找到了gnokii,这是为一些老式的NOKIA手机设计的Linux驱动与管理程序,但是也可以通过支持AT命令的SMS modem。E680i自带的USB模式支持Modem,只需要在连接之前更改为这种模式,然后连接USB接口,CentOS 会自动将其识别为/dev/ttyACM0。
使用minicom -s 设置好modem的连接参数:
- Bit per second: 9600kbps,
- Data bits: 8,
- Parity: None
- Stop bits: 1,
- Flow control: Hardware Flow control.
从http://www.gnokii.org下载gnokii,编译安装。由于涉及到系统设备操作,因此整个操作过程都需要root账户权限。
Quotation
[root@wardking gnokii-0.6.27]# ./configure
[root@wardking gnokii-0.6.27]# gmake
[root@wardking gnokii-0.6.27]# gmake install
[root@wardking gnokii-0.6.27]# cp Docs/sample/gnokiirc ~/.gnokiirc
编辑.gnokiirc文件,注释掉port=/dev/ttyS0,启用port=/dev/ttyACM0,注释掉model=6510,启用model=AT。
初始化连接:
[root@wardking ~]# gnokii --identify
此时会显示一些测试信息,完成后就可以使用以下命令发短信:
[root@wardking ~]# echo "This is a SMS from Linux shell" | gnokii --sendsms 13000000000
后来我又找到一台NOKIA6310i,发现其带有蓝牙和红外线,也可以通过这种方式连接,只需要在.gnokiirc中进行相应的更改。
这两天在宿舍里一人写作论文,窗外是昏暗的天和寂寞的雨,忧郁的我心机械地敲打着这生硬的键盘。于是,我开启了Foobar,试着把寂寞和抑郁赶走。Celtic音乐一直是钟爱的类型,这种音乐的精神元素来自于他们民族的历史。当我还在倾听A Perfect Indian的伤感时,这位留着个性短发的女歌手深情演唱Oro Se Do Bheatha 'Bhaile,就是在用一种魔力穿过骨头抚摸我的心灵。
已经很久没有推荐音乐的我,在Songtaste推荐了这首歌,很幸运,我还是第一位推荐人。从优酷上很容易找到这位歌手的视频,我从VeryCD下载了Celtic Woman的五张专辑,算是给自己储备过冬的精神食粮。
Flash Player File
已经很久没有推荐音乐的我,在Songtaste推荐了这首歌,很幸运,我还是第一位推荐人。从优酷上很容易找到这位歌手的视频,我从VeryCD下载了Celtic Woman的五张专辑,算是给自己储备过冬的精神食粮。
Flash Player File
装好CentOS 5,也配置了最新的ATI驱动,使用 aticonfig --initial=dual-head --screen-layout=right试了几次都启动不起来,索性自己写xorg.conf文件。这个显示并不是我期望的,左右屏幕各自的桌面,不像是Windows下的延展桌面,而且这样直接修改xorg.conf后,ATI control center提示运行不了。
Fri Oct 31,更新:
终于配置好延展桌面,ATI配置窗口的分辨率设置一定要正确才可以。
更新后的xorg.conf里面居然是single head.
# Xorg configuration created by system-config-display
Section "ServerLayout"
Identifier "single head configuration"
Screen 0 "aticonfig-Screen[0]-0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
EndSection
Section "Module"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection
Section "Monitor"
Identifier "aticonfig-Monitor[0]-0"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection
Section "Monitor"
Identifier "amdcccle-Monitor[1]-1"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection
Section "Device"
Identifier "Videocard0"
Driver "radeon"
EndSection
Section "Device"
Identifier "aticonfig-Device[0]-0"
Driver "fglrx"
BusID "PCI:1:0:0"
EndSection
Section "Device"
Identifier "amdcccle-Device[1]-1"
Driver "fglrx"
BusID "PCI:1:0:0"
Screen 1
EndSection
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024" "1280x960" "1280x800" "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Section "Screen"
Identifier "aticonfig-Screen[0]-0"
Device "aticonfig-Device[0]-0"
Monitor "aticonfig-Monitor[0]-0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "amdcccle-Screen[1]-1"
Device "amdcccle-Device[1]-1"
Monitor "amdcccle-Monitor[1]-1"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
双屏各自独立桌面的配置,用起来感觉就像是两台电脑:
Fri Oct 31,更新:
终于配置好延展桌面,ATI配置窗口的分辨率设置一定要正确才可以。
更新后的xorg.conf里面居然是single head.
Quotation
# Xorg configuration created by system-config-display
Section "ServerLayout"
Identifier "single head configuration"
Screen 0 "aticonfig-Screen[0]-0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
EndSection
Section "Module"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection
Section "Monitor"
Identifier "aticonfig-Monitor[0]-0"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection
Section "Monitor"
Identifier "amdcccle-Monitor[1]-1"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection
Section "Device"
Identifier "Videocard0"
Driver "radeon"
EndSection
Section "Device"
Identifier "aticonfig-Device[0]-0"
Driver "fglrx"
BusID "PCI:1:0:0"
EndSection
Section "Device"
Identifier "amdcccle-Device[1]-1"
Driver "fglrx"
BusID "PCI:1:0:0"
Screen 1
EndSection
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024" "1280x960" "1280x800" "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Section "Screen"
Identifier "aticonfig-Screen[0]-0"
Device "aticonfig-Device[0]-0"
Monitor "aticonfig-Monitor[0]-0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "amdcccle-Screen[1]-1"
Device "amdcccle-Device[1]-1"
Monitor "amdcccle-Monitor[1]-1"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
双屏各自独立桌面的配置,用起来感觉就像是两台电脑:
由于BLOG在弘弘的服务器上使用同一用户名与密码,这次弘弘更改数据库密码后,正好是我回家装修屋子,所以有10余天BLOG无法访问。今天终于更正了!
PS: Bo-BLOG更改数据库连接密码在data/config.php文件中
Back again!
PS: Bo-BLOG更改数据库连接密码在data/config.php文件中
Back again!
准备在这个国庆节回家装修爸妈的房子了,最近一段时间一直在为此事准备。去年就注意到业之峰装饰的50日装修视频,最近又看了一遍,记了些许笔记,结合自己以前学过的土木工程知识,期待这次回家能给爸妈装出一个温馨的家。
施工前准备工作
1、成品保护:门窗、水电设施
2、房屋内水平线施划
3、处理毛坏房地面水泥颗粒,避免扬尘与空谷
水路改造
测量划线:确定管道走向(走顶比走低下好),弹线,切割出管线槽。(伟星PPR管,热熔接管,管理直径20mm:6s, 16mm:5s,直径25mm以下熔接完保持时间大于15s)
PVC管采用胶粘,在接口处涂抹PVC专用凝胶,完成后进行严密性实验,橡皮胆堵住下水口注水10分钟后不漏水。左热右冷,上热下冷。
塑料水平管道的管卡间距:直径15mm冷水管卡间距不大于0.6m,热水管卡间距不大于0.25m;直径20mm冷水管卡间距不大于0.6m,热水管卡间距不大于0.3m
打压试验:给水管路安装完成24小时后进行压力测试,使用手动试压泵加压至0.6Mpa,观察节头是否有漏水,不能有任何渗水迹象
涂涮防水涂层:首先清理墙面与地面,划出防水
施工前准备工作
1、成品保护:门窗、水电设施
2、房屋内水平线施划
3、处理毛坏房地面水泥颗粒,避免扬尘与空谷
水路改造
测量划线:确定管道走向(走顶比走低下好),弹线,切割出管线槽。(伟星PPR管,热熔接管,管理直径20mm:6s, 16mm:5s,直径25mm以下熔接完保持时间大于15s)
PVC管采用胶粘,在接口处涂抹PVC专用凝胶,完成后进行严密性实验,橡皮胆堵住下水口注水10分钟后不漏水。左热右冷,上热下冷。
塑料水平管道的管卡间距:直径15mm冷水管卡间距不大于0.6m,热水管卡间距不大于0.25m;直径20mm冷水管卡间距不大于0.6m,热水管卡间距不大于0.3m
打压试验:给水管路安装完成24小时后进行压力测试,使用手动试压泵加压至0.6Mpa,观察节头是否有漏水,不能有任何渗水迹象
涂涮防水涂层:首先清理墙面与地面,划出防水




11/20/2008 09:30 | by
11/02/2008 14:48 | by 
10/21/2008 11:08 | by





