2010年02月4日
by 温 云龙
147 views
0 comments
基本界面设定
set nocompatible “去掉讨厌的有关vim一致性模式,避免以前版本的一些bug和局限.
set history=500 “设置命令历史记录为50条
set incsearch “搜索选项
set nobackup “关闭备份文件
set noswapfile “关闭交换文件
set viminfo+=! “保存全局变量 (全文…)
Linux
2009年09月24日
by 温 云龙
257 views
0 comments
config.h
#ifndef __CONFIG_H__
#define __CONFIG_H__
#include \"list.h\"
typedef struct config_node {
char *section;
char *name;
char *value;
} config_node_t;
int config_node_add(list_t *list, char *section, char *name, char *value);
int config_load(list_t **list, const char *filepath);
char *config_get(list_t *list, const char *section, const char *name, const char *def);
void config_free(list_t *list);
#endif /* __CONFIG_H__ */
(全文…)
C/C++
2009年08月31日
by 温 云龙
127 views
0 comments
Linux 下无线网卡启动脚本
不使用dhcp
#!/bin/sh
ifconfig wlan0 up
iwconfig wlan0 ESSID MYESSID
iwconfig key s:PASSWORD
ifconfig wlan0 192.168.0.xxx
route add gw 192.168.0.1
(全文…)
Linux
2008年12月26日
by 温 云龙
118 views
0 comments
主题文件:Thinkpad Slim Theme
安装方法,解压缩到 /usr/share/slim/themes 就可以了
# tar -xf thinkpad.tar.gz -C /usr/share/slim/themes
修改slim配置文件 /etc/slim.conf
# current theme, use comma separated list to specify a set to
# randomly choose from
current_theme thinkpad
Linux
2008年09月4日
by 温 云龙
89 views
0 comments
检查原因,执行
/opt/eclipse/plugins/org.eclipse.tptp.platform.ac.linux_ia32_4.4.1.v200806171132/agent_controller/bin/ACStart.sh
提示缺少 ibstdc++-libc6.2-2.so.3
下载 ibstdc++-libc6.2-2.so.3 解压缩 放置到 /usr/lib/ 问题解决
wget http://www.opzn.org/wp-content/uploads/2008/09/libstdc-libc62-2so3.gz
gunzip libstdc-libc62-2so3.gz
mv libstdc-libc62-2so3.gz /usr/lib/
Linux