home

Archive for the 'linux' Category

CentOS编译安装rtorrent

Saturday, June 16th, 2007

rtorrent 编译安装前需要2个依赖包

http://libtorrent.rakshasa.no/wiki/Download


yum install gcc
yum install gcc-c++
yum install ncurses
yum install ncurses-devel
然后到这里下载,要注意版本

分别是
http://libsigc.sourceforge.net/
libsigc++ >= 2.0.x
http://curl.haxx.se/
libcurl >= 7.12.x (more…)

Linux下软件包的解压方式大全

Wednesday, May 2nd, 2007

.tar
解包:tar xvf FileName.tar
打包:tar cvf FileName.tar DirName
(注:tar是打包,不是压缩!)
———————————————\r
.gz
解压1:gunzip FileName.gz
解压2:gzip -d FileName.gz
压缩:gzip FileName (more…)

crontab 的格式备忘

Friday, April 20th, 2007

基本格式 :
*  *  *  *  *  command
分 时 日 月 周 命令

第1列表示分钟1~59 每分钟用*或者 */1表示
第2列表示小时1~23(0表示0点)
第3列表示日期1~31
(more…)

linux &centos 更改系统(本地)用户名

Friday, April 13th, 2007

改用户名可以修改 /etc/passwd 和 /etc/shadow 文件。
用vi就w!
改文件名用 mv 命令,操作与 DOS 的 rename 一样。

还有一种方法;

Usermod -l Usermod -l 新用户名 老用户名

没用过…

linux命令行下的BT软件 CTorrent

Monday, April 2nd, 2007

CTorrent简介\r
CTorrent 是用C语言写的一个BT客户端。现在可以运行在多种Linux 版本,MacOS 和 FreeBSD下,以后可能也会运行在Windows下。CTorrent是运行在命令行模式下的,这意味着它不需要任何图形组件(如X Server)。你可以通过远程访问来让它在后台运行。\r
CTorrent主页
http://ctorrent.sourceforge.net/
下载
http://ctorrent.sourceforge.net/ action=downloads
下载测试版本是1.3.2
用户在使用时发现CTorrent有一些bug,一个比较明显的例子是CTorrent下载完成后不会立即把缓存中的数据写入硬盘,这样如果按下Ctrl-C结束程序的话会造成数据的不完整。CTorrent的最新版本是1.3.4(2004年9月7日发布),作者后面就没有再发布新版本,软件的一些问题也没有得到修正。 (more…)

x-window 和shell的切换

Sunday, April 1st, 2007

ctrl+alt+f1~6 进入字符模式
alt+f7返回X-window

远程安装gnome yum方式

Sunday, April 1st, 2007

以centos4.2为例子,
#yum grouplist
显示系统已经安装的组件,和可以安装的组件
如果系统安装之初采用最小化安装,没有安装xwindow,那么\r
#yum groupinstall “X Window System”
#yum groupinstall “GNOME Desktop Environment” (more…)

linux screen 的使用 教程

Sunday, April 1st, 2007

我能够使用如下的方法开始一个叫做“radiostation”的screen对话:

  tmancill@ghostrider:~$ screen -S radiostation

  (此时出现一个空白的screen)

  tmancill@ghostrider:~$ mp3blaster

  (载入我的播放列表,然后按下play开始发射)

  (按下“CTRL-a”,然后按下“d”离开)

(more…)

查看vsftpd当前用户

Sunday, March 11th, 2007

ps -ef |grep ftp

ssh限制IP又一贴.转自gamearena

Saturday, February 24th, 2007

以前那个贴是是TCP Wrappers的过滤机制,它由tcpd程序控制,有点类似TCP包的检验程序,这个程序的主要参数文件在/etc/hosts.allow及/etc/hosts/hosts.deny两个文件中,必须要某个软件支持tcpd(TCP Wrappers)的功能才能接受TCP Wrappers的校验。\r

数据包的校验顺序首先是/etc/hosts.allow,然后才是/etc/hosts/hosts.deny。所以我们通常的设置方法是:在/etc/hosts/hosts.allow里针对某些服务与数据包来源开启它们的使用权限;在/etc/hosts/hosts.deny里将该服务的其它来源过滤掉。\r

注意:如果您在/etc/hosts/hosts.allow里没有设置,那么TCP Wrappers默认的动作是allow(通过校验并进入主机)。 (more…)

Google
 
Web www.sb123.org
Page 3 of 6«12345»...Last »