随笔分类 -  00.Unix/Linux

摘要:http://www.cyberciti.biz/tips/freebsd-how-to-change-ip-address-or-setup-new-ip-address-to-existing-interface.html1.修改IP# vi /etc/rc.confhostname="fbsdx.test.com"ifconfig_lnc0="inet 192.168.0.6 netmask 255.255.255.0"### Default gateway ###defaultrouter="192.168.0.254"2.修 阅读全文
posted @ 2012-10-23 22:28 庚武 阅读(1276) 评论(0) 推荐(0)
摘要:objects = main.o kbd.o command.o display.o \insert.o search.o files.o utils.oedit : $(objects) cc -o edit $(objects)$(objects) : defs.hkbd.o command.o files.o : command.hdisplay.o insert.o search.o files.o : buffer.h.PHONY : cleanclean :rm edit $(objects)########################end################## 阅读全文
posted @ 2012-10-23 17:24 庚武 阅读(179) 评论(0) 推荐(0)
摘要:http://www.apuebook.com/Advanced Programming in the UNIX® Environment, Second Edition源码:http://files.cnblogs.com/wucg/AdvancedProgrammingInTheUnixEnvironment2ed_src.zip官方源码:http://www.apuebook.com/src.tar.gz 阅读全文
posted @ 2012-10-23 14:00 庚武 阅读(184) 评论(0) 推荐(0)
摘要:http://www.lemis.com/grog/Documentation/CFBSD/ 阅读全文
posted @ 2012-10-16 14:11 庚武 阅读(107) 评论(0) 推荐(0)
摘要:.vimrc vim,gvim启动设定 推荐 git clone git://github.com/amix/vimrc.git ~/.vim_runtimesh ~/.vim_runtime/install_awesome_vimrc.shsh ~/.vim_runtime/install_bas 阅读全文
posted @ 2012-09-22 14:52 庚武 阅读(430) 评论(0) 推荐(0)
摘要:安装好系统后,发现没有我习惯使用的五笔输入法。你可以在这里设置:system->preferences->inputmethod。如果在安装系统时选择语言包括UK和中文了,这块应该就有五笔等汉语输入法了。但如果没有的话,就这样操作:1.yuminstall"@ChineseSupport"2.到设置输入的地方添加即可http://hi.baidu.com/limingpeng2008/item/b0b13ec5711c904aa8ba9430 阅读全文
posted @ 2012-09-15 11:17 庚武 阅读(1052) 评论(0) 推荐(0)
摘要:原文:http://www.cnblogs.com/alaska1131/articles/1659654.htmlSSH为 Secure Shell 的缩写,由 IETF 的网络工作小组(Network Working Group)所制定;SSH 为建立在应用层和传输层基础上的安全协议。传统的网络服务程序,如FTP、POP和Telnet其本质上都是不安全的;因为它们在网络上用明文传送数据、用户帐号和用户口令,很容易受到中间人(man-in-the-middle)攻击方式的攻击。就是存在另一个人或者一台机器冒充真正的服务器接收用户传给服务器的数据,然后再冒充用户把数据传给真正的服务器。而 SS 阅读全文
posted @ 2012-09-06 17:21 庚武 阅读(190) 评论(0) 推荐(0)
摘要:http://www.netsarang.com/products/xsh_overview.htmlXshell 4DOWNLOADXshell is a powerful terminal emulator that supports SSH, SFTP, TELNET, RLOGIN and SERIAL. It delivers industry leading performance and feature sets that are not available in its free alternatives. Features that enterprise users find 阅读全文
posted @ 2012-09-05 10:54 庚武 阅读(1353) 评论(0) 推荐(0)
摘要:under Ubuntu:sudo apt-get install chmsee 阅读全文
posted @ 2011-08-20 10:36 庚武 阅读(227) 评论(0) 推荐(0)
摘要:windows客户程序访问Linux:1.PuTTY: 免费软件2.SecureCRT_5.1.3 :收费软件远程管理软件:vcn-4.0-x86_win32.exe 免费Linux 与 Windows文件传输工具:SSH.Secure.Shell.Client_3.2.9.exe (免费)---------------------Linux常用命令ls -a all-l longd rwx r-x r-x文件类型 d 目录directory- 二进制文件l 软链接文件linkr: read; w: write; x:execute1.所有者u(谁创建;也可以转让)userowner2.所属组 阅读全文
posted @ 2011-08-16 01:18 庚武
摘要:转自ubuntu.org.cn http://forum.ubuntu.org.cn/viewtopic.php?f=68&t=268875 原因:Ubuntu 10.04 Lucid Lynx默认安装将会把中文区域设置为zh_CN.utf8,而GVim能识别的中文区域设置为zh_CN.UTF-8。因此GVim会在启动时报错,且无法正常加载中文菜单。解决方案:代码:cd /usr/share/vim/vim72/langsudo ln -s menu_zh_cn.utf-8.vim menu_zh_cn.utf8.vim此方法使得GVim可以识别zh_CN.utf8,并采用于zh_CN.UT 阅读全文
posted @ 2011-01-21 09:44 庚武 阅读(636) 评论(1) 推荐(0)
摘要:法一:单行删除,:1(待删除行)d多行删除 ,:1,10d法二:光标所在行,dd光标所在行以下的N行,Ndd方法1:光标放到第6行,输入:2yy光标放到第9行,输入:p此方法适合复制少量行文本的情况,复制第6行(包括)下面的2行数据,放到第9行下面。方法2:命令行模式下输入6,9 co 12复制第6行到第9行之间的内容到第12行后面。方法3:有时候不想费劲看多少行或复制大量行时,可以使用标签来替代光标移到起始行,输入ma光标移到结束行,输入mb光标移到粘贴行,输入mc然后 :'a,'b co 'c 把 co 改成 m 就成剪切了要删除多行的话,可以用 :5, 9 deVIM常用命令 常用命令1 阅读全文
posted @ 2011-01-19 10:40 庚武 阅读(37788) 评论(1) 推荐(2)
摘要:Software RepositoriesAs mentioned previously, dgkg and APT take care of package management within Ubuntu. These tools are taken from teh Debian distribution of Linux, on which Ubuntu is babsed.Debian Package or dpkg, is the most basic part of the system. It's used to install and uninstall software, 阅读全文
posted @ 2011-01-18 14:48 庚武 阅读(660) 评论(0) 推荐(0)
摘要:BASH tricks1. TAB key, autocomplete2. Piping outpute.g.:ls -al | lessls -al | grep -i flowerhistory | less3. Redirecting outpute.g.:ls -l directory_listing.txtls -l directory_listing.txtls -l ~/file_list.txtsort ~/file_list.txt ~/file_list_sorted.txt4. Using Brace Expansione.g.:mkdir Phot 阅读全文
posted @ 2011-01-18 13:56 庚武 阅读(175) 评论(0) 推荐(0)
摘要:http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_nightly_build_on_Ubuntu1. Download the tar.gz file to your computer and extract the files to an empty directory, such as one called temp for example.tar xvf CB_date-of-build_revision-number_Ubuntu6.10+7.04_wx2.8.4.tar.gz2. Install al 阅读全文
posted @ 2011-01-14 10:50 庚武 阅读(2578) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2011-01-08 16:47 庚武 阅读(314) 评论(0) 推荐(0)
摘要:Viewing Text FilesYou can easily view files by using command-line tools ,including cat,less,head,and tail.The simplest command for dealing with text files is cat.e.g.:cat mytextfiletail mytextfile ( v... 阅读全文
posted @ 2010-10-16 17:14 庚武 阅读(141) 评论(0) 推荐(0)
摘要:Most versions of Linux have two types of user accounts: standard and root.The root user can access and /or delete whatever files it wants.It can configure hardware,change settings, and so on.Ububntu i... 阅读全文
posted @ 2010-10-16 15:35 庚武 阅读(326) 评论(0) 推荐(0)
摘要:Application->Accessories->Terminalspark@spark-desktop:~$~ means: /home/spark$ menas: normal users (# means root)hundreds of commands can be used in linux, only 10 to 20 command are usually used ... 阅读全文
posted @ 2010-10-15 18:13 庚武 阅读(362) 评论(0) 推荐(0)
摘要:http://www.pidgin.im/download/ubuntu/IM all your friends in one placePidgin is an easy to use and free chat client used by millions. Connect to AIM, MSN, Yahoo, and more chat networks all at once.Supp... 阅读全文
posted @ 2010-10-14 19:13 庚武 阅读(648) 评论(0) 推荐(0)