How repair disk issue when "Fsck Failed please repair manually and reboot"

摘要: " Fsck Failed please repair manually and reboot. the root filesystem is currently mounted as read-only. to remount it red-write do : bash# mount -n -... 阅读全文
posted @ 2015-10-27 15:21 Newbie wang 阅读(791) 评论(0) 推荐(0) 编辑

How to change hostname on SLE

摘要: 修改/etc/HOSTNAME文件,在此文件中保存主机名,例如: linuxserv1然后运行命令设置主机名 # /etc/rc.d/boot.localnet start 方法3. 运行 sysctl 动态改变主机名 # sysctl -w kernel.hostname=linuxserv1 阅读全文
posted @ 2015-10-10 13:54 Newbie wang 阅读(147) 评论(0) 推荐(0) 编辑

How to install starDIct on suse OS?

摘要: 1. Access page http://code.google.com/p/stardict-3/ to download starDict package or use zypper in to install it from product repo2. Download dictionar... 阅读全文
posted @ 2015-09-21 11:30 Newbie wang 阅读(117) 评论(0) 推荐(0) 编辑

python logging usage

摘要: python中,logging模块主要是处理日志的。 所谓日志,可理解为在软件运行过程中,所记录的的一些运行情况信息 软件开发人员可以根据自己的需求添加日志,日志可以帮助软件开发人员 了解软件的运行信息,对软件的维护尤为重要。 日志级别: Level ... 阅读全文
posted @ 2015-08-25 15:00 Newbie wang 阅读(226) 评论(0) 推荐(0) 编辑

How to reset password for unknow root

摘要: 1. Click "e" when entering the grub2. Add option " init=/bin/sh" to linux line. (/bin/sh can not be replace by /bin/bash , /bin/bash do not have passw... 阅读全文
posted @ 2015-07-02 14:58 Newbie wang 阅读(182) 评论(0) 推荐(0) 编辑

How to use wget ?

摘要: 1.How to get conent (not download page) of website?wget -q -O - 阅读全文
posted @ 2015-06-15 17:33 Newbie wang 阅读(133) 评论(0) 推荐(0) 编辑

How to only capute sub-matched character by grep

摘要: File content: ceph-0.80.9-82.1.x86_64.rpm 11-Jun-2015 16:37 9.9M Details ceph-common-0.80.9-82.1.x86_64.rpm 11-Jun-2015 16:37 3.9M Details ceph-common... 阅读全文
posted @ 2015-06-15 17:29 Newbie wang 阅读(186) 评论(0) 推荐(0) 编辑

How to inspect who is caller of func and who is the class of instance

摘要: 1. Who is the class of self instance ?class aa(object): def a(self): if self.__class__.__name__ == 'aa': print "aa, a func()" ... 阅读全文
posted @ 2015-06-15 16:51 Newbie wang 阅读(180) 评论(0) 推荐(0) 编辑

How to use groovy script on jenkins

摘要: 1. Install groovy plugin2. Add a step of groovy. (normal & systerm)3. Execute groovy scriptimport jenkins.model.*def q = Jenkins.instance.queueq.items... 阅读全文
posted @ 2015-06-11 14:49 Newbie wang 阅读(1541) 评论(0) 推荐(0) 编辑

Vim ide for shell development

摘要: Source : This article is part of the ongoing Vi / Vim Tips and Tricks Series. As a Linux sysadmin or programmer, you may do following repetitive tasks... 阅读全文
posted @ 2015-05-18 17:31 Newbie wang 阅读(637) 评论(0) 推荐(0) 编辑