随笔分类 -  CentOS

1
摘要:复制多行:v 可视化,选择多行,然后yy复制。 阅读全文
posted @ 2015-07-22 21:24 丶Blank 阅读(132) 评论(0) 推荐(0)
摘要:转载自http://blog.chinaunix.net/uid-22891521-id-2109310.html由于一直以来在一个很old的linux版本下搞开发,里面的vim固然也是一个很old的版本,今天在工作完成的情况下,升级了下vim。不过在升级之前请保证你的os 之中安装了 ctags ... 阅读全文
posted @ 2015-07-22 21:07 丶Blank 阅读(733) 评论(0) 推荐(0)
摘要:网上有不少升级CentOS内核的文章,如《CentOS 6.5 升级内核到 3.10.28》,大部分都是下载源码编译,有点麻烦。在yum的ELRepo源中,有mainline(3.13.1)、long-term(3.10.28)这2个内核版本,考虑到long-term更稳定,会长期更新,所以选择这个... 阅读全文
posted @ 2015-07-16 18:08 丶Blank 阅读(401) 评论(0) 推荐(0)
摘要:中文输入使用ibus-pinyin。在ibus-pinyin里使用搜狗词库# wget http://hslinuxextra.googlecode.com/files/sougou-phrases-full.7z# 7za x sougou-phrases-full.7z# cp ibus/and... 阅读全文
posted @ 2014-05-30 15:16 丶Blank 阅读(467) 评论(0) 推荐(0)
摘要:首先,要检查一下网络适配器的型号。[root@localhost sam]# lspci -nn | grep -i net03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Ex... 阅读全文
posted @ 2014-05-30 13:15 丶Blank 阅读(2280) 评论(0) 推荐(0)
摘要:rpm -e `rpm -qa |grep openoffice` `rpm -qa |grep ooobasis` 这样算是比较彻底的 阅读全文
posted @ 2014-05-30 12:48 丶Blank 阅读(35513) 评论(0) 推荐(0)
摘要:在gdb调试时segmentation fault问题时,遇到下面的了问题:Program received signal SIGABRT, Aborted.0x00007ffff73eb925 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/... 阅读全文
posted @ 2014-05-05 13:56 丶Blank 阅读(1048) 评论(0) 推荐(0)
摘要:Shockwave Flash 是 Adobe Flash Player下的一个小插件,你可以在Google商店中找到并下载。通常来讲,Shckwave Flash会在安装Flash Player的时候自动开启,但是插件本身是不是会出点小问题(这里需要Adobe的技术人员来解决)。但是作为终端用户同样可以解决此类问题。1. 首先到Adobe官方网站下载最新的Flash Playerhttp://get2.adobe.com/flashplayer/并安装。2. 安装后打开Chrome,在地址栏内输入“Chrome://Plugins”,然后点击“Details”。3. 在Adobe Flash 阅读全文
posted @ 2014-03-22 20:50 丶Blank 阅读(10549) 评论(0) 推荐(0)
摘要:一、首先安装中文支持: su root yum install "@Chinese Support" exit yum remove ibus 注销再登陆 二、安装fcitx 下载fcitx输入法源码,百度搜索即可,我下载的是华军软件园提供的“Fcitx 小企鹅输入法 4.0 正式版”。 先安装fcitx所依赖的库: yum install gettext gettext-devel libXft libXft-devel libXpm libXpm-devel 解压缩源码包: unzip fcitx-4.0.0.tar.zip tar zxf fcitx-4.0.0.ta 阅读全文
posted @ 2014-03-22 15:13 丶Blank 阅读(311) 评论(0) 推荐(0)
摘要:#include 文件状态,是unix/linux系统定义文件状态所在的伪标准头文件。含有类型与函数: dev_t st_dev Device ID of device containing file. ino_t st_ino File serial number. mode_t st_mode Mode of file (see below). nlink_t st_nlink Number of hard links to the file. uid_t st_uid User ID of file. gid_t st_gid Group ID of file. dev_t st_rde 阅读全文
posted @ 2014-03-22 10:33 丶Blank 阅读(13193) 评论(0) 推荐(2)
摘要:参考http://stackoverflow.com/questions/7412548/gnu-stubs-32-h-no-such-file-or-directory1.OnCentOS 5.8, yum installglibc-devel.i386 OnCentOS 6.3, yum installglibc-devel.i686.2.OnCentOS 5you will need to doyum install libstdc++-devel.i386 OnCentOS 6you will need to doyum install libstdc++-devel.i686然后修改 阅读全文
posted @ 2014-03-04 20:02 丶Blank 阅读(1082) 评论(0) 推荐(0)
摘要:这个问题很basic,不过还是困扰了我一段时间.(这里主要讨论的是命令行模式下)我本来觉得应该使用命令 rmdir但是发现它无法删除非空的目录.后来发现了原来应该使用命令 rm -rf 目录名其中参数-f表示force.使用了这个参数就不会提示你是否要删除了. 阅读全文
posted @ 2013-08-21 10:41 丶Blank 阅读(695) 评论(0) 推荐(0)
摘要:LinuxYou can download the package and uncompress it manually. Alternatively, you can use the command line.For i386cd ~wget http://c758482.r82.cf2.rackcdn.com/Sublime\ Text\ 2.0.1.tar.bz2tar vxjf Sublime\ Text\ 2.0.1.tar.bz2For x64cd ~wget http://c758482.r82.cf2.rackcdn.com/Sublime Text 2.0.1 x64.tar 阅读全文
posted @ 2013-07-13 10:29 丶Blank 阅读(307) 评论(0) 推荐(0)
摘要:我们在编译c/c++代码的时候,有人用gcc,有人用g++,于是各种说法都来了,譬如c代码用gcc,而c++代码用g++,或者说编译用gcc,链 接用g++,一时也不知哪个说法正确,如果再遇上个extern "C",分歧就更多了,这里我想作个了结,毕竟知识的目的是令人更清醒,而不是更糊涂。误区一:gcc只能编译c代码,g++只能编译c++代码两者都可以,但是请注意:1.后缀为.c的,gcc把它当作是C程序,而g++当作是c++程序;后缀为.cpp的,两者都会认为是c++程序,注意,虽然c++是c的超集,但是两者对语法的要求是有区别的,例如:#include int main 阅读全文
posted @ 2013-07-11 16:59 丶Blank 阅读(210) 评论(0) 推荐(0)
摘要:在Linux下一会看到cc,另一会又看到gcc,感觉又点混乱的样子。它们是同一个东西么,有啥区别呢?一分为二地看:首先,如果讨论范围在Unix和Linux之间,那么cc和gcc不是同一个东西。cc来自于Unix的c语言编译器,是 c compiler 的缩写。gcc来自Linux世界,是GNU compiler collection 的缩写,注意这是一个编译器集合,不仅仅是c或c++。其次, 如果讨论范围仅限于Linux,我们可以认为它们是一样的,在Linux下调用cc时,其实际上并不指向unix的cc编译器,而是指向了gcc,也就是说cc是gcc的一个链接(快捷方式),看看下面的终端输出就明 阅读全文
posted @ 2013-07-11 16:57 丶Blank 阅读(420) 评论(0) 推荐(0)
摘要:很喜欢sublime text 2 总是在新窗口中打开文件,很麻烦,文件打多了,就会出现N多窗口,虽然可以直接打开当前目录可以解决,但有时候查看其它项目中的单个文件,就比较麻烦。百度一直在搜索,无果。今天去官方论坛看了一下,发现了一个设置:”open_files_in_new_window”: true,将其设置成false就OK了,会在当前窗口中打开文件具体设置:Preferences -> Settings – Default -> 搜索open_files_in_new_window,将其true 改为 false 后,重启一下sublime text 2 就OK。 阅读全文
posted @ 2013-07-01 20:05 丶Blank 阅读(350) 评论(0) 推荐(0)
摘要:貌似要用到EPEL的库.安装EPEL,安装ntfs-3gx86:rpm -ivh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpmx64: rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm然后导入公钥(不导入的话会出错) rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6最后执行yum update即可yum–y in 阅读全文
posted @ 2013-04-11 22:32 丶Blank 阅读(261) 评论(0) 推荐(0)
摘要:既然安装完进不去系统了...那还要它干嘛!理所当然的要卸载!!!可是系统都进不去怎么卸载呢?非也非也...这里系统并不是进不去,而是进不去图形界面而已!所以,有如下解决方法!步骤:1.在grub启动菜单界面修改参数,一次性地强制以字符界面启动。让系统进去字符界面!2.很简单,进入 /usr/share/ati/ 目录,在终端里运行sudo sh fglrx-uninstall.sh第一步怎么做呢?开机,在grub引导界面那里,选中将要启动的系统,按e(to edit the commands before booting),接着屏幕上出现三行菜单,分别是root/kernel/initrd,选 阅读全文
posted @ 2013-04-10 22:30 丶Blank 阅读(1565) 评论(0) 推荐(0)
摘要:首先在http://www.rarlab.com/download.htm下载RAR for Linux下载后解压后,依次执行 cd rar cp rar /usr/local/bin cp unrar /usr/local/bin cp rarfiles.lst /etc cp default.sfx /usr/local/lib可以打开rar格式并且可以压缩为rar格式了! 阅读全文
posted @ 2013-04-10 19:16 丶Blank 阅读(288) 评论(0) 推荐(0)
摘要:http://wiki.centos.org上面把地址搞错了。。。32位的下载地址上面写的i386.rpm,囧死,应该是i686!另外,我之前由于无知。。觉得RPMforge慢,直接把yum.repos.d下的rpmforge全删了,结果再安装,无法在这个目录下生成repo文件了...这种情况可以先卸载.如果不能在/etc/yum.repos.d中生成rpmforge.repo的软件源,则可能会存在以前的版本,可以使用rpm -e rpmforge-release卸载源。安装步骤:下载rpmforge-release这个组件。请从下面两个连结中选择一个与你的结构配合的连结。假若你不清楚应选用哪 阅读全文
posted @ 2013-04-10 11:58 丶Blank 阅读(322) 评论(0) 推荐(0)

1