幸福飞过海 - 2013年5月 风起的网络记事本 2013-05-27T08:16:00+00:00 Typecho https://fengqi.me/feed/atom/2013/05/ <![CDATA[[记录]vim 记住上一次编辑的位置]]> https://fengqi.me/unix/137.html 2013-05-27T08:16:00+00:00 2013-05-27T08:16:00+00:00 风起 http://fengqi.me 打开/etc/vimrc 在最后一行 加入:

if has("autocmd")
    au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif

如果已经有, 去掉注释即可.

]]>
<![CDATA[[原创]Ubuntu/LinuxMint下安装rabbitvcs(类似Windows下的Tortoisesvn)]]> https://fengqi.me/unix/128.html 2013-05-27T06:31:00+00:00 2013-05-27T06:31:00+00:00 风起 http://fengqi.me 参考文章: Ubuntu RabbitVCS

LinuxMint是Ubuntu的一个衍生版, 系统大体一样, 自我感觉LinuxMint比原版Ubuntu好用, 所以本文围绕着LinuxMint展开.

RabbitVCS是Ubuntu下的可视化SVN客户端, 类似Windows下的Tortoisesvn;
安装和Ubuntu下安装差不多, 唯一的区别就是Ubuntu下的文件管理器是Nautilus, LinuxMint下的的Nautilus的分支Nemo.

PS:LinuxMint16已经不需要额外添加ppa了,需要的包都已经纳入官方库,所以第一第二步可以省略,然后第三第四步更改为如下就可以了:

apt-get install rabbitvcs-core nemo-rabbitvcs python-nemo

一: 添加rabbitvcs的ppa源

sudo add-apt-repository ppa:rabbitvcs/ppa # 会提示确认, 直接按回车键

二: 更新本地源缓存

apt-get update

三: 安装rabbitvcs

apt-get install rabbitvcs-core rabbitvcs-cli rabbitvcs-thunar thunarx-python # 若依赖错误, 可手工一个个安装

四: 安装nemo-python, nemo-rabbitvcs插件

apt-add-repository ppa:gwendal-lebihan-dev/cinnamon-stable # 会提示确认, 直接按回车键
apt-get update
apt-get install python-nemo

从这里: python-nemo 下载RabbitVCS.py, 放入到/usr/share/nemo-python/extensions/下, 或直接安装nemo-rabbitvcs

五: 重启Nemo

[...]

]]>
<![CDATA[换域名了, 从今天开始使用fengqi.me域名]]> https://fengqi.me/default/127.html 2013-05-20T14:57:14+00:00 2013-05-20T14:57:14+00:00 风起 http://fengqi.me RT 换域名了, 从今天开始启用fengqi.me域名, 原windphp.com做301重定向, 部分图片缺失问题, 可不理会, 我会慢慢补回来.

]]>
<![CDATA[[记录]为CentOS添加第三方源]]> https://fengqi.me/unix/121.html 2013-05-10T02:01:00+00:00 2013-05-10T02:01:00+00:00 风起 http://fengqi.me 参考链接: 为CentOS添加第三方源

一、安装CentOS yum源优先级插件yum-priorities

yum install yum-priorities -y

二、设置CentOS默认yum源的优先级为最高

cd  /etc/yum.repos.d/

在[base]、[updates]、[extras]组下面添加priority=1,在[centosplus]、[contrib]组下面添加priority=2

[...]

]]>
<![CDATA[[总结]自行编译php手册]]> https://fengqi.me/php/119.html 2013-05-08T02:34:01+00:00 2013-05-08T02:34:01+00:00 风起 http://fengqi.me 占位, 正在折腾集成评论编译...

]]>
<![CDATA[[总结]Linux下安装php的pear和pecl]]> https://fengqi.me/php/117.html 2013-05-08T02:21:00+00:00 2013-05-08T02:21:00+00:00 风起 http://fengqi.me 参考链接: Linux上安装php的pear

首先下载安装脚本, 使用curl下载, wget也可以, 如果没有这两个命令请自行安装:

cd /usr/local/php/bin/
curl -o go-pear.php http://pear.php.net/go-pear
curl -o go-pear.php http://pear.php.net/go-pear.phar # 如果你的php版本高于php5.3, 执行这条

安装:

php go-pear.php # 回车, 会提示选择安装的东西, 直接回车, 安装全部, 若后面有要选择y/n的, 输入y回车

[...]

]]>