仅列出标题 列出摘要
2013年11月22日

mac vim设置python语法高亮

摘要: 1 "显示行号 2 set nu 3 4 "设置缩进tabstop 5 set ts=4 6 set shiftwidth=4 7 set expandtab 8 set ruler 9 10 "语法高亮11 syntax on12 13 "设置编码14 set encoding=utf-815 16 "高亮搜索的关键字17 set hlsearch18 19 "设置自动缩进20 "set cindent21 22 "设置鼠标操作23 set mouse=i 阅读全文
posted @ 2013-11-22 10:31 baoyiluo 阅读(1742) 评论(0) 推荐(0) 编辑
2013年11月21日

在mac下做web开发,shell常用的快捷键

摘要: Ctrl + A 光标移动到行首Ctrl + E 光标移动到行末Ctrl + K 清屏(也可是用clear命令)Command +shift+{} 终端的tab左右切换 阅读全文
posted @ 2013-11-21 17:23 baoyiluo 阅读(237) 评论(0) 推荐(0) 编辑
2013年11月19日

mac vim编辑器常用操作快捷方式

摘要: 0 行首$ (shift+6)行尾gg 文首G(shift+g) 文尾A(Shift+a)文尾,并编辑ctrl+f 向上翻页ctrl+b 向下翻页ctrl+u 向上翻半页ctrl+d 向下翻半页数字+gg,跳转到数字指定的行 ,如25gg或者25G 跳转到第25行另外命令模式下直接输入数字后回车,跳转到数字指定的行 阅读全文
posted @ 2013-11-19 17:11 baoyiluo 阅读(2230) 评论(0) 推荐(0) 编辑
2013年11月18日

svn 版本库信息修改

摘要: root@hpcstack hpcweb]# svn info路径: .URL: http://svn.pyindex.com/hpcweb版本库根: http://svn.pyindex.com/hpcweb版本库 UUID: ec3f00ee-c93b-4532-b418-24bc49ae8624版本: 1179节点种类: 目录调度: 正常最后修改的作者: lijialong最后修改的版本: 1179最后修改的时间: 2013-07-01 19:54:19 +0800 (一, 2013-07-01)[root@hpcstack hpcweb]# svn sw --relocate http 阅读全文
posted @ 2013-11-18 10:47 baoyiluo 阅读(749) 评论(0) 推荐(0) 编辑
2013年11月13日

win7 命令行禁用开启usb存储

摘要: 禁用: reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\usbstor" /v Start /t reg_dword /d 4 /f开启: reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\usbstor" /v Start /t reg_dword /d 3 /f 阅读全文
posted @ 2013-11-13 17:49 baoyiluo 阅读(519) 评论(0) 推荐(0) 编辑
2013年9月23日

win下配置qt creator 能够执行c/c++

摘要: 首先需要相关包共四个:qt-win-opensource-4.8.5-mingw.exeqt-creator-windows-opensource-2.8.1.exeMinGW-gcc440_1.zipcmake-2.8.3-win32-x86.zip由于Mingw并没有被qt-win-opensource-4.8.4-mingw.exe安装包集成,所以需要先安装mingw,安装很简单,直接解压到指定的目录就行,我的路径d:/mingw。接下来安装qt-win-opensource-4.8.4-mingw.exe,按照过程中会要求指定mingw,指定刚刚的解压目录即可。然后安装qt-creat 阅读全文
posted @ 2013-09-23 16:42 baoyiluo 阅读(1113) 评论(0) 推荐(1) 编辑
2013年9月18日

ubuntu 普通用户运行virt-manager时libvirt权限设置

摘要: error: Failed to connect socket to '/var/run/libvirt/libvirt-sock':Permission deniederror: failed to connect to the hypervisor(当前用户没有权限,修改/etc/libvirt/libvirtd.conf,unix_sock_rw_perms = 0777,使所有用户都有权限读写) 阅读全文
posted @ 2013-09-18 15:53 baoyiluo 阅读(2389) 评论(0) 推荐(0) 编辑
2013年9月17日

freenas 系统可能存在的bug

摘要: 1.portal 中ip端口显示有问题。2.创建extend/target映射之后重启iscsi服务有的时候不能启动。3.后台/usr /etc 重启系统会自动还原。 阅读全文
posted @ 2013-09-17 11:47 baoyiluo 阅读(246) 评论(0) 推荐(0) 编辑
2013年9月16日

freenas iscsi initiator 配置

摘要: 1、加载Iscsi Initiator 模块freebsd从7.0开始已经包含了Iscsi Initiator ,不需要安装后再使用,但在使用前,需要加载模块。 # kldload -v iscsi_initiator.ko如果想以后开机后自动加载,则#vi /boot/loader.conf添加 iscsi_initiator_load=”YES”2、查找iscsi存储 # iscontrol -v -d targetaddress=XXX.XXX.XXX.XXX3、建立连接#iscontrol targetaddress=xxx.xxx.xxx.xxx TargetName=iqn.199 阅读全文
posted @ 2013-09-16 17:15 baoyiluo 阅读(975) 评论(0) 推荐(0) 编辑
2013年9月11日

ubuntu 12.04 配置iscsi共享及挂载iscsi共享

摘要: 一、配置ubuntu 下iscsi下的target1.配置iscsi-target: sudo apt-get install iscsi*2.配置一个简单的iscsi target: iscsi Enterprise Target 的主配置文件为/etc/iet/ietd.conf,此文件中的选项默认全部被注释掉了,有需要用到这些选项是,再将注释去掉即可。 打开ietd.conf文件,首先找到类似如下行: #Target iqn.2001-04.com.example:storage.disk2.sys1.xyz 此选项表示该iSCSI Target的命名,先将前面的“#”号去掉, T... 阅读全文
posted @ 2013-09-11 14:03 baoyiluo 阅读(3221) 评论(2) 推荐(0) 编辑