05 2014 档案

摘要:Linux系统使用time计算命令执行的时间当测试一个程序或比较不同算法时,执行时间是非常重要的,一个好的算法应该是用时最短的。所有类UNIX系统都包含time命令,使用这个命令可以统计时间消耗。例如:[root@localhost ~]# time lsanaconda-ks.cfg insta... 阅读全文
posted @ 2014-05-30 15:48 jeremyatchina 阅读(5447) 评论(0) 推荐(0)
摘要:vim /etc/lightdm/lightdm.confFinally, edit the file as shown below and save it.autologin-user=autologin-user-timeout=0 阅读全文
posted @ 2014-05-26 15:10 jeremyatchina 阅读(267) 评论(0) 推荐(0)
摘要:We added a system call to modify idt table, then programed it inmodify_idt.c1. Put our modify_idt.c file in/usr/src/linux-3.10.15/arch/x86/kernel2./us... 阅读全文
posted @ 2014-05-21 22:43 jeremyatchina 阅读(509) 评论(2) 推荐(0)
摘要:在一台機器上寫好這樣的Makefile用以編譯modulesobj-m:=hello.oCURRENT_PATH:=$(shell pwd)VERSION_NUM:=$(shell uname -r)LINUX_PATH:=/usr/src/linux-$(VERSION_NUM)all : ma... 阅读全文
posted @ 2014-05-21 11:07 jeremyatchina 阅读(427) 评论(0) 推荐(0)
摘要:裝好ssh後,發覺無法用root登入,可是sshd_config接正確。後來發現原因在於,Ubuntu沒有root帳號,但是可以透過sudo -s拿到root權限。su root 密碼怎樣打也行不通,不過sudo -s卻可以。總之就是要用sudo -s 後 執行passwd 建立帳號ref.http... 阅读全文
posted @ 2014-05-20 23:04 jeremyatchina 阅读(239) 评论(0) 推荐(0)
摘要:Type 'ipconfig' (without the quotes) to view the status of the computer's IP address(es).If the computer is holding a current IP address, type 'ipconf... 阅读全文
posted @ 2014-05-19 13:59 jeremyatchina 阅读(190) 评论(0) 推荐(0)
摘要:1. 追蹤Kernel function (以schedule()示範)先至/sys/kernel/debug/tracing# cat available_tracers確定有無 函式追蹤器(function)blk mmiotrace function_graph wakeup_rt wakeu... 阅读全文
posted @ 2014-05-15 13:59 jeremyatchina 阅读(536) 评论(0) 推荐(0)
摘要:Using perf, the Linux Performance Analysis tool on Ubuntu KarmicA lot has been going on with Linux performance counters (now called performance events... 阅读全文
posted @ 2014-05-15 10:49 jeremyatchina 阅读(600) 评论(4) 推荐(0)
摘要:How to use DISM to install a hotfix from within WindowsJeff Hughes (CORE)15 Feb 2011 10:10 AM22Hello, my name is Emmers Presson. I am a Support Escala... 阅读全文
posted @ 2014-05-14 23:51 jeremyatchina 阅读(679) 评论(0) 推荐(0)
摘要:ssh登录服务器时总是要停顿等待一下才能连接上,这是因为OpenSSH服务器有一个DNS查找选项UseDNS默认是打开的。UseDNS选项打开状态下,当客户端试图登录OpenSSH服务器时,服务器端先根据客户端的IP地址进行DNS PTR反向查询,查询出客户端的host name,然后根据查询出的客... 阅读全文
posted @ 2014-05-09 01:31 jeremyatchina 阅读(453) 评论(0) 推荐(0)
摘要:Fix invisible cursor issue in Ubuntu 13.10Fixing this problem is rather too easy. Open a terminal (Ctrl+Alt+T) and use the following command:gsettings... 阅读全文
posted @ 2014-05-08 22:44 jeremyatchina 阅读(185) 评论(0) 推荐(0)