摘要: When I first use swat to admin my samba, I met many problems, the largest one is: no matter what I click, the swat left me with a blank bar.The solution is simple:sudo apt-get remove libpam-smbpassI don't have enough time to inspect why this happened, just a reminder here.http://www.linuxquestio 阅读全文
posted @ 2013-04-13 15:34 UniMouS 阅读(249) 评论(0) 推荐(0) 编辑
摘要: In case of bash:$ cmd &In case of ssh (we want cmd to be executed after we input the password):$ ssh -f user@host cmdIn case of sudo (we want cmd to be executed after we input the password):$ sudo -b cmd 阅读全文
posted @ 2013-01-18 11:06 UniMouS 阅读(237) 评论(0) 推荐(0) 编辑
摘要: I do not know why, but Kate(http://kate-editor.org) really have a line length limitation, with the default value of 1024 characters. When a file containing a line with more then 1024 characters is opened, a prompting will show: "xxx was opened and contained too many long lines (more than 1024 c 阅读全文
posted @ 2012-12-29 21:31 UniMouS 阅读(279) 评论(0) 推荐(0) 编辑
摘要: :iabbrev i18n internationalization 阅读全文
posted @ 2012-11-03 13:12 UniMouS 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 1. bash命令行中的变量赋值语句只适用于该命令This example comes from A practical guide to Fedora and Red Hat Enterprise Linux (6th ed.).$ cat my_scriptecho $TEMPDIR$ TEMPDIR=/home/sam/temp ./my_script/home/sam/temp$ echo $TEMPDIR$2. bash在将变量作为参数传给其他程序时会自动压缩相邻的空格如果想保留多个相邻的空格,则应该使用双引号将变量引起。This example comes from Sobell 阅读全文
posted @ 2012-10-27 10:49 UniMouS 阅读(278) 评论(0) 推荐(0) 编辑
摘要: $ dhclient -r$ dhclient 阅读全文
posted @ 2012-10-24 10:25 UniMouS 阅读(273) 评论(0) 推荐(0) 编辑
摘要: How to update locate database?There is the solution:$ sudo updatedb 阅读全文
posted @ 2012-10-20 10:22 UniMouS 阅读(334) 评论(0) 推荐(0) 编辑
摘要: How to grep a string that do no cantain another substring?There is the solution:$ ls | grep -ivE 'unimous'Here is a practical example of using it. If you want to find all the files with names containing 'wireshark' and without 'unimous', and then delete all of them:$ sudo upd 阅读全文
posted @ 2012-10-20 10:20 UniMouS 阅读(315) 评论(0) 推荐(0) 编辑
摘要: How to pipe some file names to rm, here is the solution:$ ls | xargs rm 阅读全文
posted @ 2012-10-20 10:18 UniMouS 阅读(195) 评论(0) 推荐(0) 编辑
摘要: Vim有四个与编码相关的选项:encoding,termencoding,fileencoding,fileencodings,具体参见Reference 1。为防止乱码,可在~/.vimrc脚本中添加如下几行set encoding=utf-8set termencoding=utf-8set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1Referencehttp://edyfox.codecarver.org/html/vim_fileencodings_detection.html。 阅读全文
posted @ 2012-10-19 13:26 UniMouS 阅读(269) 评论(0) 推荐(0) 编辑
摘要: Single QuoteUse single quote when you want to literally print everything inside the single quote. Even the special variables such as $HOSTNAME will be print as $HOSTNAME instead of printing the name of the Linux host.$ echo 'Hostname=$HOSTNAME ; Current User=`whoami` ; Message=\$ is USD'Host 阅读全文
posted @ 2012-10-16 11:36 UniMouS 阅读(919) 评论(0) 推荐(0) 编辑
摘要: Print Screen: Take a screenshot.Ctrl+Print Screen: Take a screenshot (Without saving dialog).Alt+Print Screen: Take a screenshot of a window.Shift+Print Screen: Take a screenshot of an area of the screen. The pointer changes to a crosshair. Click and drag to select an area. 阅读全文
posted @ 2012-10-04 20:24 UniMouS 阅读(328) 评论(0) 推荐(0) 编辑
摘要: To getYou must use#\#$\$%\%&\&\\textbackslash{}^\^{} OR \textasciicircum{}_\_{\{}\}~\~{} OR \textasciitilde{} 阅读全文
posted @ 2012-09-28 09:19 UniMouS 阅读(221) 评论(0) 推荐(0) 编辑
摘要: sudo rm /var/lib/apt/lists/locksudo apt-get cleansudo apt-get update 阅读全文
posted @ 2012-09-16 16:52 UniMouS 阅读(964) 评论(0) 推荐(0) 编辑
摘要: To login# mysql -u root -pShow databasesmysql> show databases;Switch to a databasemysql> use [db name]Show tables (relations)mysql> show tables; 阅读全文
posted @ 2012-09-16 08:40 UniMouS 阅读(212) 评论(0) 推荐(0) 编辑
摘要: The data contained within a CRM application is often a company's most critical asset, yet because of the pivotal role this information plays in day-to-day business activities, it also often the most vulneralbe to security breaches and disruptons (Seitz, 2006 p62).Reference ListSeitz, K. (2006). 阅读全文
posted @ 2012-08-10 19:26 UniMouS 阅读(162) 评论(0) 推荐(0) 编辑
摘要: I have learnt some discussing phrases this week, just list some of them here:Asking for Opinions: What do you reckon about?Giving Opinions: As far as I'm concerned...Agreeing: I'm inclined to agree with you.Disagressing: I wouldn't go along with you on that.Expressing Doubt: Do you reall 阅读全文
posted @ 2012-07-07 15:19 UniMouS 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 系统启动时自动运行的那个X,或者当你输入startx运行的那个X是默认的screen 0上的,使用如下命令可一启动另一个X:startx -- :1后面的1指的是screen 1Referencehttp://www.tuxfiles.org/linuxhelp/multiple-x.html 阅读全文
posted @ 2012-04-24 23:20 UniMouS 阅读(441) 评论(0) 推荐(0) 编辑
摘要: Some useful words connected with Computer Science.mandatory /ˈmændəˌtɔri/ adj. <that you must do, have, obey, etc.> 强制的;必须做、有或服从的e.g.: The crime carries a mandatory life sectence.Why This: /etc/gconf/gconf.xml.mandatorydemon /ˈdiːmən/ n[C] <an evil spirit> 魔鬼,恶魔daemon /ˈdeɪmən/ n[C] 阅读全文
posted @ 2012-04-23 14:30 UniMouS 阅读(305) 评论(0) 推荐(0) 编辑
摘要: Les Misérables (literally "The Miserable Ones"; usually play /leɪ ˌmɪzəˈrɑːb/; French pronunciation: [le mizeʁabl(ə)]), translated variously from the French as The Miserable , The Wretched, The Poor Ones, The Wretched Poor, or The Victims), is an 1862 French novel by author Victor Hug 阅读全文
posted @ 2012-04-10 19:22 UniMouS 阅读(402) 评论(6) 推荐(0) 编辑
摘要: 这篇文章用于测试博客园里的文章是否可以使用CSS与Javascript。Hello WorldLa Guida CompletaCodice prelevabile dal sito www.informatica.mcgraw-hill.itC++Quarta edizioneLa guida di riferimento di Schildt sul linguaggio C++, ulteriormente aggiornata e ampliata.Descrive lo standard internazionale del linguaggio C++, comprese le p 阅读全文
posted @ 2012-04-10 17:23 UniMouS 阅读(191) 评论(0) 推荐(0) 编辑
摘要: :set wrap:set nowrap 阅读全文
posted @ 2012-04-06 18:43 UniMouS 阅读(974) 评论(0) 推荐(1) 编辑
摘要: 在用户登录系统之后,系统会显示一条简短的消息,被称作当日消息(Message Of The Day, motd),该消息存放于/etc/motd文件中。系统管理员可以直接编辑这个文件以显示不同的消息,通常,这个文件的内容不应该超过一屏显示。此文件通常包含一些问候语,下次备份时间,下次关机时间,上次系统更新的内容,等等。在用户登录之前,系统也会提示一些信息,详见/etc/issue 与 /etc/issue.net文件。[参考资料]http://uw714doc.sco.com/en/SM_startup/sstT.etcmotd.html 阅读全文
posted @ 2012-04-05 11:00 UniMouS 阅读(1645) 评论(0) 推荐(1) 编辑
摘要: Linux系统中的Ctrl-组合键列表如下:Ctrl-S告诉系统停止向屏幕发送数据(意外地按到Ctrl-S会使屏幕静止);Ctrl-Q告诉系统继续向屏幕发送数据(多按几下Ctrl-Q不会产生什么额外影响);Ctrl-C告诉系统终止当前程序(并做相应清理工作);Ctrl-\告诉系统终止当前程序(立即终止,不做任何清理工作);Ctrl-H向前删除一个字符;Ctrl-W向前删除一个单词;Ctrl-U向前删除一行;Ctrl-D输入EOF字符,或者表示注销登录(使用文本环境登陆时);Referencehttp://pangea.stanford.edu/computing/unix/shell/logi 阅读全文
posted @ 2012-04-04 09:03 UniMouS 阅读(641) 评论(0) 推荐(0) 编辑
摘要: 在使用文本设备(关于文本设备的例子,见下面的说明)登录Linux系统之前,系统会显示一条被称作“issue”的消息:若是通过本地文本设备(如本地终端,本地虚拟控制台等)登录,则该信息存放与/etc/issue文件中;若是通过远程本文设备(如通过ssh或telnet等)登录,则该信息存放与/etc/issue.net文件中。1. 第一映像:unimous@unimous-f41:~$ cat /etc/issueUbuntu 11.10 \n \lunimous@unimous-f41:~$ cat /etc/issue.netUbuntu 11.102. \n \l 是什么?在/etc/iss 阅读全文
posted @ 2012-04-03 22:49 UniMouS 阅读(4045) 评论(0) 推荐(0) 编辑
摘要: 1. Install telnet server$ sudo apt-get install telnetd$ sudo /etc/init.d/openbsd-inetd restart2. Install openssh server$ sudo apt-get install openssh-server$ sudo /etc/init.d/ssh restartReferencehttp://www.cyberciti.biz/faq/ubuntu-linux-enable-telnet-service/http://www.cyberciti.biz/faq/ubuntu-linux 阅读全文
posted @ 2012-04-03 18:03 UniMouS 阅读(358) 评论(0) 推荐(0) 编辑
摘要: 在虚拟机中常常会遇到这样的问题:想输入某个组合键到虚拟机中,却被宿主机给截取了。例如:我的宿主机是Ubunut,虚拟机是fedora,在fedora中输入 Ctrl+Alt+F1 会自动被Ubuntu截取。当让,VirtualBox的设计者已经为我们考虑好了这个问题:http://www.virtualbox.org/manual/ch01.html#idp7707936VirtualBox提供了一个Host键,默认为右Ctrl键,也就是说,当你按 右Ctrl+F1 的时候就相当于向虚拟机发出了 Ctrl+Alt+F1。类似的:Host+DEL: Ctrl+Alt+DELHost+Backsp 阅读全文
posted @ 2012-03-31 11:48 UniMouS 阅读(3454) 评论(0) 推荐(0) 编辑
摘要: 如题,在linux中,选中某段文本,系统会自动将该段文本复制到选择缓冲区(selection buffer)中,在需要粘贴的地方单击鼠标中键即可粘贴。多的也什么好说的,试试看吧。 阅读全文
posted @ 2012-03-31 10:44 UniMouS 阅读(5925) 评论(2) 推荐(0) 编辑
摘要: C/C++中的strncpy()函数功能为将第source串的前n个字符拷贝到destination串,原型为:char * strncpy ( char * destination, const char * source, size_t num );各个参数的含义显而易见,其中返回值与destination相同。这个函数会出现三种情况:1、num<source串的长度(包含最后的'\0'字符):那么该函数将会拷贝source的前num个字符到destination串中(不会自动为destination串加上结尾的'\0'字符);2、num=source 阅读全文
posted @ 2012-03-05 23:26 UniMouS 阅读(18097) 评论(0) 推荐(1) 编辑
摘要: 在英语中,经常遇到两个容易弄混淆的缩写:“i.e.”和“e.g.”。“e.g.”是拉丁语“exempli gratia”的缩写,表示“例如”,就是“for example”的意思;“i.e.”是拉丁语“id est”的缩写,表示补充说明,就是“that is”的意思;还有一个缩写也比较常用:“etc.”,它是拉丁语“et cetera”的缩写,表示“等等”,就是“and so on”的意思。[注意] “e.g.”已经表示后面跟的是一个不完全的列表,如果在后面再加上“etc.”,则显得多余。参考资料http://public.wsu.edu/~brians/errors/e.g.html 阅读全文
posted @ 2012-02-29 23:05 UniMouS 阅读(37891) 评论(0) 推荐(1) 编辑
摘要: 写着代码,想知道时间(或者日期,看你的想法),Linux中有个很好的命令:date。Have a try...unimous@unimous-f41:~$ dateSun Feb 26 22:39:43 CST 2012So strange... 可能我们都很不习惯看这种默认的“星期、月、日、时间”,还加个“CST”(美国中部标准时间?为什么?)、然后“年”的格式,我希望这样:时间,然后日期,然后星期,help一下:unimous@unimous-f41:~$ date --helpUsage: date [OPTION]... [+FORMAT] or: date [-u|--utc|-.. 阅读全文
posted @ 2012-02-26 23:01 UniMouS 阅读(2929) 评论(0) 推荐(0) 编辑
摘要: Associativity RulesThe associativity rules of a language specify which operator is evaluated first when two operators with the same precedence are adjacent in an expression.当一个表达式中有两个相同优先级的操作符相邻时,结合律规定了哪个操作符先进行操作。[例]x = 3 + 2 - 1;因为这里的加(+)操作符和减(-)操作符优先级相同,而+、-的结合律都是从左向右的,所以先执行加法,后执行减法,所以x的结果为4。[参考资料 阅读全文
posted @ 2012-02-25 12:00 UniMouS 阅读(1149) 评论(1) 推荐(0) 编辑
摘要: up2date是较早版本的Red Hat Linux Enterprise, Client OS 和 Fedoa Core使用的一个包管理工具,从RHLE5和Fedora Core 5开始被YUM替代。又被称作:Red Hat Update Agent。 阅读全文
posted @ 2012-01-13 10:35 UniMouS 阅读(604) 评论(0) 推荐(0) 编辑
摘要: pirut是Fedora Core 5到Fedora 8中使用的包管理器,是yum的图形化版本。发音同pirate /ˈpaɪrət/。为Package Install Remove, and Update Tool的缩写。参见:http://fedoraproject.org/wiki/Tools/pirut 阅读全文
posted @ 2012-01-13 10:29 UniMouS 阅读(471) 评论(0) 推荐(0) 编辑
摘要: 最近对车产生了浓厚的兴趣,进而对引擎也产生了兴趣,这里记录了一些网站:http://www.animatedpiston.com/Home.htmhttp://www.animatedengines.com/备忘。 阅读全文
posted @ 2011-10-09 23:21 UniMouS 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 路由选择信息协议(RIP)攻击常见于使用了最初 RIP 协议的路由器中。路由选择信息协议(RIP)用于在网络中发布路由选择信息,如最短路径,并从本地网络向外广播路径。RIP 没有内置的验证机制,RIP 数据包中所提供的信息通常未经检验就已经被使用。攻击者可以伪造 RIP 数据包,宣称其主机“X”拥有最快的连接网络外部的路径。然后,所有需要从那个网络发出的数据包都会经 X 转发,而在 X 中,这些数据包既可以被检查,也可以被修改。攻击者也可以使用 RIP 来有效地模仿任何主机,使得所有应该发送到那台主机的通信都被发送到攻击者的计算机中。RIP 路由选择攻击的防范第二版本的 RIP 得到了增强,它 阅读全文
posted @ 2011-08-18 21:29 UniMouS 阅读(2314) 评论(0) 推荐(0) 编辑
摘要: 1. 【书籍】《计算机网络(第4版)》;特南鲍姆(Tanenbaum, A. S.)著;潘爱民译;北京:清华大学出版社;2004.8。这是我见过的计算机入门级最好的书。这本书写的太详细,太精彩了。第5版已经出版了,但是现在在中国还买不到。2. 【教程】 Network Essentials+ http://network3000.brinkster.net/MCSE_Training_%20Networking/index.html。在Google Image中搜vampire tap(插入式分接头)时,发现了这个网站,将的是真够详细的,还有很多图片。 阅读全文
posted @ 2011-07-30 16:40 UniMouS 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 此文章产生的缘由:每次试图回到主页的时候都要用鼠标点击主页按钮,太过麻烦,于是Google了一下,发现了FF中,Alt+Home是主页的快捷键。此文章摘录自:http://support.mozilla.com/en-US/kb/Keyboard%20shortcuts。注:firefox不提供任何自定义键盘快捷键的方法(至少在5.01及之前是这样的)。一、导航相关的快捷键:1. 后退:Alt+Left Arrow, Backspace;2. 前进:Alt+Right Arrow, Shift+Backspace;3. 主页:Alt+Home;4. 重新载入:F5, Ctrl+R;5. 重新载 阅读全文
posted @ 2011-07-18 18:58 UniMouS 阅读(414) 评论(0) 推荐(0) 编辑
摘要: sudo rm -vf /var/lib/apt/lists/* 阅读全文
posted @ 2011-06-26 15:17 UniMouS 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 所有RFC的打包下载地址:http://www.rfc-editor.org/download.html纯文本版:ftp://ftp.rfc-editor.org/in-notes/tar/RFC-all.tar.gzPDF版:ftp://ftp.rfc-editor.org/in-notes/tar/pdfrfc-all.tar.gz 阅读全文
posted @ 2011-06-15 02:25 UniMouS 阅读(2210) 评论(0) 推荐(2) 编辑

版权所有 © 2011-2012 方一曙

Copyright © 2011-2012 Fang Yishu (UniMouS)