Category Archives: Linux

Linux 桌面虚拟化请选择 VirtualBox,误使用 KVM/Xen

不管你是使用 Linux 办公、学习或者娱乐(做服务器请忽略本内容),或多或少都需要一些 Windows 专用软件, 不得已只得使用虚拟机。我在 openSUSE 上面折腾了1年的 KVM/Xen 使用 Windows 系统,中间的辛酸可是不少, 当我使用了 VirtualBox,真的超级好用,不折腾,真的是流畅。 主要原因是因为 KVM/Xen 本身缺少对图形虚拟化的支持,虽然 Red hat 有 SPICE/qxl,比 KVM 原生好不少, 应付下服务器的下面的图形还行,做桌面使用的化还是处于玩具阶段,各种的卡、卡、卡。当然 VirtualBox 的 设置也不 KVM 好不少。 Linux 桌面虚拟化请选择 VirtualBox (也叫VBox)

Posted in Linux | Tagged | 3 Comments

ubuntu 12.04安装ruby mysql2 gem的问题

gem install mysql2 出现下面错误: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. checking for rb_thread_blocking_region()… yes checking for rb_wait_for_single_fd()… yes checking for mysql_query() in -lmysqlclient… no checking for main() in -lm… yes checking for mysql_query() in -lmysqlclient… no checking for … Continue reading

Posted in Linux, ruby on rails | Tagged | Leave a comment

ssh使用密码登录

太多文章介绍如何不使用密码登录,也就是使用密钥证书登录,但是但是,当你配置好了证书登录之后如何临时的使用密码方式登录呢? ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no host.example.com

Posted in FreeBSD, Linux | Tagged | Leave a comment

ubuntu常用软件

用ubuntu也有一些时间了,常用软件记录下 青松二笔输入法(ibus) gftp pycharm netbeans vlc kiki google chrome dropbox gimp remmina rapidsvn 自带的不就写了,足够满足工作,简单娱乐需求,不过操作体验gnome还是和mac有一定差距的。

Posted in Linux | Leave a comment

yum增加源

默认的yum源中很多软件都没有,要想使用yum,首先得些增加yum的源 一般增加2个就够了 1.添加[CentALT]源 在/etc/yum.repos.d 目下创建 alt.ru.repo 文件内容如下: [shell][CentALT] name=CentALT Packages for Enterprise Linux 5 – $basearch baseurl=http://centos.alt.ru/repository/centos/5/$basearch/ enabled=1 gpgcheck=0 [/shell] 2.添加EPEL 64位系统 rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm 32位系统 rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm

Posted in Linux | Tagged , , | Leave a comment