-
2008-08-16
让lotus notes收gmail邮件 - [软件]
所需软件:IBM lotus notes
设置步骤,因为我使用的lotus是英文版的,所以以下都用英文菜单说明.
1. 新建立一个Lotus Notes的数据文件用来保存你的gmail邮件,取名为gmail.nsf.
2. 使用client reconfiguration wizard来建立你的gmail账户.
3. 进入到address book中,选择advanced--> account,保留protocol为pop与smtp这两个account,分别点击后编辑这两个账户,具体设置内容如图所示:
POP设置
BASIC设置Advanced设置
SMTP设置
Basic设置
Advanced设置
设置完后就可以收取gmail邮件了,当然你要开通你的gmail的pop功能先,我的结果如下图
-
2008-07-20
firefox about:config备份 - [软件]
以下是我的firefox about:config设置,记录以作备份
network.http.pipelining=true
network.http.pipelining.maxrequests=10
network.http.proxy.pipelining=true
network.dns.disableIPv6=false
content.interrupt.parsing=true
content.max.tokenizing.time=2250000
content.notify.interval=750000
content.notify.ontimer=true
content.notify.backoffcount=5
content.switch.threshold=750000
nglayout.initialpaint.delay=0
config.trim_on_minimize=true
browser.sessionhistory.max_total_viewers=8 -
2008-07-17
在xubuntu上安装psptoolchain - [软件]
1.下载psptoolchain
wget http://ps2dev.org/psp/Tools/Toolchain/psptoolchain-20070626.tar.bz2
将其保存/opt目录并解包
2.安装相关的软件包
sudo apt-get install build-essential autoconf automake bison flex libncurses5-dev libreadline-dev libusb-dev texinfo
3.设置环境变量
sudo mousepad ~/.bashrc
在最后加上
export PSPDEV=/usr/local/pspdev
export PATH=$PATH:$PSPDEV/bin
4.重新加载
source ~/.bashrc
5.编译并安装psptoolcain和pspsdk
cd /opt/psptoolchain
sudo ./toolchain-sudo.sh
6.改变/usr/local/pspdev文件夹属性,加入使用的用户及组
7.检查编译器版本
psp-gcc -v
成功后会有如下输出
Using built-in specs. Target: psp Configured with: ../configure --prefix=/usr/local/pspdev --target=psp --enable-languages=c,c++ --with-newlib --enable-cxx-flags=-G0 Thread model: single gcc version 4.1.0 (PSPDEV 20060507)
8.编译测试
cd /usr/local/pspdev/psp/sdk/samples/savedata/decrypt
make
成功后会生成一个EBOOT.PBP文件。 -
2008-07-05
xubuntu中wine中文显示 - [软件]
代码: mousepad ~/.wine/system.re
搜索: LogPixels
找到的行应该是:[System\\CurrentControlSet\\Hardware Profiles\\Current\\Software\\Fonts]
将其中的:
“LogPixels”=dword:00000060
改为:
“LogPixels”=dword:00000070
搜索: FontSubstitutes
找到的行应该是:[Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes]
将其中的:
“MS Shell Dlg”=”Tahoma”
“MS Shell Dlg 2″=”Tahoma”
改为:
“MS Shell Dlg”=”SimSun”
“MS Shell Dlg 2″=”SimSun”拷贝simsun.ttc文件到wine中的windows/fonts下面。
-
2008-07-03
解决Xubuntu下锁屏问题 - [软件]
装好Xubuntu后,一直存在着这个不能锁屏的问题,但是自己一直在忙,也懒的去弄这个事情。刚刚今天下班比较早,就来处理了一下。Google了一下,发现这是一个已经报告的bug,已经有了解决方案。
https://bugs.launchpad.net/ubuntu/+source/xfce4-utils/+bug/200665
Binary package hint: xfce4-utils
1) Ubuntu version: Xubuntu 8.04
2) Source package: xfce4-utils and xfce4-panel
3) Package version: 4.4.2-3ubuntu2
4) What you expected to happen:
The "Lock screen" button should lock the screen.
5) What happened instead:
It doesn't lock the screen.
6) Steps to reproduce:
1. Right click on the Panel -> Add New Item -> Action Buttons -> Add
2. Select action type: Lock screen
3. Click on the "Lock screen" button in the Panel.
4. Nothing happening.
7) Possible reason:
The "Action Buttons" panel plugin uses the /usr/bin/xflock4 script (provided by the package xfce4-utils).
This script try to use xscreensaver to lock the screen ("xscreensaver-command -lock"), but if xscreensaver isn't running, try to use gnome-screensaver ("gnome-screensaver-command --lock"), but if gnome-screensaver isn't running, try to use the "xlock" command to lock the screen.
But, by default, neither xscreensaver, nor gnome-screensaver is running, and none of the packages providing "xlock" are installed (xlockmore and xlockmore-gl).
8) Possible solutions:
- Modify the xflock4 script, to show a warning, if xscreensaver or gnome-screensaver isn't running.
OR
- Make xfce4-panel depend on xlockmore or xlockmore-gl, so it will be able to lock the screen, even if xscreensaver or gnome-screensaver isn't running.
[9) Another suggestion: May be good, to use the keyboard shortcut Ctrl+Alt+L to lock the screen. Currently Ctrl+Alt+Del is used, but it could be useful, to let lock the screen also with Ctrl+Alt+L as in GNOME and KDE.]查了一下我的Xubuntu,发现没有安装xlock,下载xlockmore安装后,问题解决。xlockmore可以在这里下载:http://ftp.debian.org/debian/pool/main/x/xlockmore/xlockmore-gl_5.22-1.4_i386.deb
-
2008-06-29
USB Xubuntu 8.04 Persistent install from Linux - [软件]
出差背两个电脑是比较辛苦的事,但是公私需要分开,使用工作的电脑处理一些私人的事情,是比较麻烦的。这种安装在USB上的live Linux可以方便的处理。
PS:还没有试验过,试过之后再写个report.This tutorial covers the process of installing Xubuntu 8.04 to a USB flash drive from within a running (Ubuntu) Linux environment. Xubuntu uses the xfce desktop environment as opposed to Gnome or KDE. Xfce helps Xubuntu run smoother and quicker on older and slower PC's. In addition, this installation tutorial utilizes the casper persistence feature to enable changes to be saved and restored on subsequent boots. If you have access to a working Ubuntu Linux installation and your system does not have a CD drive, this tutorial is for you.
Basic essentials for Xubuntu 8.04 USB installation:
- Working Linux environment (we used a local Ubuntu installation)
- Established internet connection
- 1GB or larger USB flash drive
How to install Xubuntu 8.04 to a flash drive from Linux:
- Insert a 1GB or larger USB flash drive (2GB+ recommended)
- Open a terminal and type sudo su
- As one line, type wget cdimage.ubuntu.com/xubuntu/releases/hardy/release/xubuntu-8.04-desktop-i386.iso
- Type mount -o loop -tiso9660 xubuntu*.iso /cdrom
- Type fdisk -l to list available drives/partitions (note which device is your flash drive I.E. /dev/sdb). Throughout this tutorial, replace all instances of x with your flash drive letter. For example, if your flash drive is sdb, replace x with b.
- Type umount /dev/sdx1
- Type fdisk /dev/sdx
- type p to show the existing partition and d to delete it
- type p again to show any remaining partitions (if partitions exist, repeat the previous step)
- type n to make a new partition
- type p for primary partition
- type 1 to make this the first partition
- hit enter to use the default 1st cylinder
- type +750M to set the partition size
- type a to make this partition active
- type 1 to select partition 1
- type t to change the partition filesystem
- type 6 to select the fat16 file system
- type n to make another new partition
- type p for primary partition
- type 2 to make this the second partition
- hit enter to use the default cylinder
- hit enter again to use the default last cylinder
- type w to write the new partition table
- Type umount /dev/sdx1 to unmount the partition
- Type mkfs.vfat -F 16 -n xubuntu8 /dev/sdx1 to format the first partition
- Type umount /dev/sdx2 to ensure the partition is unmounted
- Type mkfs.ext2 -b 4096 -L casper-rw /dev/sdx2 to format the second partition
- Remove and re-insert your flash drive (if prompted that a new medium has been detected, select to open in a new window and click ok)
- Back at the terminal, type sudo apt-get install syslinux mtools
- Type syslinux -sf /dev/sdx1
- Type cd /cdrom
- Type cp -rfv casper dists install pics pool preseed .disk isolinux/* md5sum.txt README.diskdefines install/mt86plus /media/xubuntu8
- Type cd /media/xubuntu8
- Type wget pendrivelinux.com/downloads/xu8/syslinux.cfg
- Type cd casper
- Type rm initrd.gz
- Type wget pendrivelinux.com/downloads/xu8/initrd.gz
- Reboot your computer and set your system BIOS or Boot Menu to boot from the USB stick. Save your changes and proceed to boot from the USB device
You should now be booting Xubuntu 8.04 from the memory stick and by default it should save your changes, restoring them on subsequent boots.
Notes: If your having trouble getting Ubuntu to boot, your memory stick may have a corrupted MBR. To repair the MBR of your USB device, at the terminal type sudo apt-get install lilo then type lilo -M /dev/sdx (replacing x with the letter of your flash device)
- Working Linux environment (we used a local Ubuntu installation)
-
上海南站,在远处用
刚刚测试了一下豆瓣的相册,感觉不是很方便。因为上传图片的时候,需要一个图片一个图片的选择,非常的不方便。因为只是在最近一段时候,才开始使用网上的相册,感觉还是Picasa的图形好一些。
刚好豆瓣还有这个日记功能,也就是同时把这篇测试简报放在这里来了。感觉很简单,没有一个些大的变化,就是有一个BUG,我在写日记的同时上传图片,上传完毕后自动将图片插入进来了,但是之前写的东西都没有了。
因此,目前这两个功能,都不会去用的。日记,还是放在我的BLOG上;相册,我还是用picasa. -
2008-06-09
sendstatistic.exe百度和谷歌的不同结果 - [软件]
百度和谷歌,这两个搜索工具,是日常生活不可或缺的,对于百度,用的会比较少,因为个人认为他的精准度不是很高,广告太多,并且看起来,搜索时自己就忽略了自家的百科,看这个关于sendstatistic.exe文件的搜索,两者结果差异很明显,倒是谷歌,忠实的扮演着搜索互联网所有信息的责任,负责的说百度知道。


-
2008-05-11
brucebot.cn - [软件]
注册了一个独立域名,现在通过brucebot.cn就可以直接访问这个博客了,也更方便的记了。 -
2008-03-20
Ubuntu的load/unload cycles损伤硬盘的问题 - [软件]
今天很累也很困了,但是在浏览文章中发现了Ubuntu如果设置不好,会损坏甚至毁坏笔记本硬盘的问题,于是决定将这篇文章看完并写下这篇文章。这里就是看到的第一篇文章<Ubuntu电源管理问题的说明和解决方案>,看完之后对这个所谓的Load/unload Cycle还不是很了解,于是就做了一些调查,并且发现这个问题已经发给官方了,具体BUG Report可以在这里看到(https://bugs.launchpad.net/ubuntu/+bug/104535)。请看上图,所谓的load/unload cycle就是slider与硬盘盘片接触的周期,每一个硬盘出厂前都会有这么一个参数是固定的,也就是当硬盘快接近这个出厂参数时,就意味着这块硬盘已经接近报销的边缘。在西部数据官方上找到我的硬盘的相关参数信息,里面就有一个是Load/unload cycles at ambient condition 600,00(DATA Sheet),也就是说,我的硬盘的寿命取决于现有使用的这个参数值与官方值是否接近,具体查看及设置方法如下:- 安装smartmontools,因为需要名为smartctl的来检查相关的信息
sudo apt-get install smartmontools - 启用硬盘SMART监控功能
sudo smartctl -s on /dev/sda
brucebot@brucebot-laptop:/etc/laptop-mode$ sudo smartctl -s on /dev/sda
smartctl version 5.37 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enabled.
注:/dev/sda请选择你的硬盘,如果是IDE的,则是/dev/hda - 查看当前硬盘的详细状态
sudo smartctl -d ata -A /dev/sda
brucebot@brucebot-laptop:/etc/laptop-mode$ sudo smartctl -d ata -A /dev/sda
smartctl version 5.37 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 199 197 051 Pre-fail Always - 426
3 Spin_Up_Time 0x0003 185 180 021 Pre-fail Always - 1733
4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 450
5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0
7 Seek_Error_Rate 0x000f 200 200 051 Pre-fail Always - 0
9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 480
10 Spin_Retry_Count 0x0013 095 095 051 Pre-fail Always - 23
11 Calibration_Retry_Count 0x0012 100 100 051 Old_age Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 263
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 153
193 Load_Cycle_Count 0x0032 195 195 000 Old_age Always - 15977
194 Temperature_Celsius 0x0022 108 099 000 Old_age Always - 39
196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0
197 Current_Pending_Sector 0x0012 200 200 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 253 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0009 100 253 051 Pre-fail Offline - 0
请看,红色的即为我的硬盘的load/unload cycles看起来,已经有了四分之一多了,也就是说这块硬盘的四分之一寿命已经没有了。
当然,如果仅仅想知道这个参数,可以使用sudo smartctl -a /dev/sda | grep Load_Cycle_Count仅仅导出这个参数。如果你安装了Ubuntu,并且没有经过相应的设置,再次执行上面的命令后,load_Cycle_count的数值会不断增大。 Ubuntu默认不会改动内置的参数,笔记本硬盘内置的自动进入低耗状态的参数过于严厉,导致频繁的Load/Unload,其他系统则无视或者不使用硬盘的这一功能,反而保护了硬盘的寿命。也就是说,只有Ubuntu存在这个问题。 - 解决方法
- 关闭高级电源管理模块(Advanced Power Management setting)
Sudo hdparm -B 255 /dev/sda
brucebot@brucebot-laptop:/etc/laptop-mode$ sudo hdparm -B 255 /dev/sda
/dev/sda:
setting Advanced Power Management level to disabled - 使用laptop-mode-tools
- Sudo apt-get install laptop-mode-tools
- 查看Laptop-mode是否启动
grep ENABLE_LAPTOP_MODE /etc/default/acpi-supportbrucebot@brucebot-laptop:/etc/laptop-mode$ grep ENABLE_LAPTOP_MODE /etc/default/acpi-support
ENABLE_LAPTOP_MODE=false 启动laptop-mode
sudo cp /etc/default/acpi-support /etc/default/acpi-support_backup
sudo gedit /etc/default/acpi
找到ENABLE_LAPTOP_MODE=false,并且将其设置成true
注:我是同时设置了两种方法,使用命令sudo smartctl -d ata -A /dev/sda多次后可以看到,Load_cycle_count的值没有再增长。至此,问题解决!
- 关闭高级电源管理模块(Advanced Power Management setting)
- 安装smartmontools,因为需要名为smartctl的来检查相关的信息






