风歌的blog

已搬家到 blog.imxjf.top
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  C.Unix&Linux

摘要:没开tmux时使用vim 以及 开了tmux后使用vim 主题颜色不一致。随便打开一个.py文件,发现着色较深,非常影响阅读。开始在.tmux.conf 中设置set -g default-terminal "linux" ,解决了颜色问题,但后来发现vim中自定义的快捷键F1-F12 都失效了... 阅读全文

posted @ 2014-04-10 11:08 风歌 阅读(8939) 评论(2) 推荐(0) 编辑

摘要:要安装YouCompleteMe ,vim须支持python。看是否支持,可以在vim中:version 查看, 如果python前有+号,就是支持,减号就是不支持。如果不支持,需要以编译安装方式重新安装vim。编译配置选项:./configure --with-features=huge --en... 阅读全文

posted @ 2014-03-30 17:17 风歌 阅读(44880) 评论(4) 推荐(1) 编辑

摘要:1. 进入 vm setting ,对要增加空间的磁盘 expand,指定变更空间大小(如由20G 调整到 50G),vmware需要处理一段时间。2. 开linux虚拟机,fdisk -l 会发现磁盘空间大了,但文件系统的分区大小还是原来size。(以下对需要调整空间的磁盘分区称为“原分区”)3. 备份原分区资料 cp 或 mv 到其他硬盘分区。4. 通过fdisk删除原分区,重建新分区,把50G大小分给此分区,也即是这个硬盘只有一个分区。当然也可以有多个分区,但本次只想对一个分区增加空间。 最后把此分区标记为8e 类型(LVM)5.pvcreate /dev/sdb1, 以分区 /dev/ 阅读全文

posted @ 2013-05-20 13:25 风歌 阅读(1464) 评论(0) 推荐(0) 编辑

摘要:摘自http://stackoverflow.com/questions/9191668/error-longjmp-causes-uninitialized-stack-frameI ran into the same issue; as noted above, it is a curl bug. I thought I would put an answer up here to pull together all of the available information on the problem.Fromthe Red Hat bug report:libcurl built wi 阅读全文

posted @ 2013-02-05 23:19 风歌 阅读(2047) 评论(0) 推荐(0) 编辑

摘要:我总以为LD_LIBRARY_PATH是ld的编译链接时的默认搜索路径,其实不是,只是程序运行时的搜索库路径。于是有了以下的问题明明在LD_LIBRARY_PATH配置了boost_thread lib的路径,ld却报找不到。g++ thread.cpp -lboost_thread/usr/bin/ld: cannot find -lboost_threadcollect2: 错误:ld 返回 1对这编译链接,一定要用-L指定路径。 阅读全文

posted @ 2012-12-06 16:37 风歌 阅读(3907) 评论(0) 推荐(0) 编辑

摘要:安装:1。首先当然要下载2。解压 tar jxvf vim-7.0.tar.bz2建解压成vim70目录3。安装进入vim70/src, make install将自动进行安装。4。安装目录/usr/local/share/vim/vim70vim7多了一个很突出的功能,就是可以显示相关的变量名称。不知什么能有参数提示呢? 阅读全文

posted @ 2006-06-11 17:39 风歌 阅读(817) 评论(0) 推荐(0) 编辑

摘要:Some other common control characters are: [CTRL-U] Erases the whole input line; you can start over. [CTRL-S] Pauses output from a program that is writing to the screen. [CTRL-Q] Restarts outpu... 阅读全文

posted @ 2005-07-26 12:56 风歌 阅读(314) 评论(0) 推荐(0) 编辑

摘要:1。可以在图形界面上设置ip等。#sysinstall在安装过程中可以设置。2。手工修改配置文件。/etc/rc.conf设置ip、网关和子掩码linux_enable="YES"moused_enable="YES"moused_port="/dev/psm0"usbd_enable="YES"# -- sysinstall generated deltas -- # Tue Jul 19 11... 阅读全文

posted @ 2005-07-21 17:50 风歌 阅读(4295) 评论(0) 推荐(0) 编辑