Linux
Safin
这个作者很懒,什么都没留下…
展开
-
Search and replace string
We can use sed to replace some stringfor example: sed -i s/new_string/old_string/guse grep tosearch filesso:sed -i s/new_string/old_string/g `grep old_string -rl --include="*.html" ./`原创 2015-09-17 13:34:07 · 541 阅读 · 0 评论 -
linux install kernel headers
#install kernel headers with right versionapt-get install linux-headers-$(uname -r)#query headers weather install correctlydpkg-query -s linux-headers-$(uname-r) #list kernel version原创 2015-09-19 17:25:28 · 1014 阅读 · 0 评论 -
debian apt-get update GPG error for NO_PUBKEY
apt-get update #W: GPG error: http://debian.cn99.com squeeze Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY AED4B06F473041FA NO_PUB原创 2015-09-19 10:51:03 · 481 阅读 · 0 评论 -
debian repertory && source.list
debian repertory http://debian.cn99.com/debian/pool deb main non-free contrib http://debian.cn99.com/debian/dist/ version squeeze wheezy jessie /etc/apt/source.list原创 2015-09-19 11:23:25 · 374 阅读 · 0 评论 -
vim
stage 1i [insert]x [delete]p [put]dd [delete line] kh l j:w [write]:q [quit]:x [:wq]原创 2015-09-19 17:27:10 · 306 阅读 · 0 评论 -
vmware disk space
In vmware virtual machine such as ubuntu, there is a 40G disk, which has 20G data and 20G empty space, so, vmware will use 20G real disk space. If you delete 10G data, vmware will also use原创 2015-09-20 20:08:56 · 412 阅读 · 0 评论 -
ubuntu-server 安装在lenonvo RD45服务器上
1. 分区的时候 选择 安装到整个disk,不要选LVM那项 RD45使用了soft radio,选择LVM的话,grub安装失败2. 网卡的名字不是eth0,是em1 用ifconfig -a 可以查看3. IP设置完毕,需要up网卡 ifup em1 ifconfig em1 up /etc/init.d/networking res原创 2015-11-13 21:10:51 · 708 阅读 · 0 评论