无权限 SSH  账户创建方法

[不指定 2010/10/01 22:13 | by Totti ]
方法如下:
首先写一段shell
代码:
#!/bin/sh
echo ""
echo "  ********************************************************************"
echo "  *     welcome to http://bmforum.com- SSH Tunnel , press a key to exit.      *"
echo "  ********************************************************************"
echo ""
read x
exit

保存为: /bin/tunnel.sh
代码:
chmod 755 /bin/tunnel.sh   #加权限
useradd tunnel -g nobody -s /bin/tunnel.sh   #加用户
passwd tunnel  #给他个密码。
更新:Ubuntu下没有nobody组,请改为nogroup

删除账户使用命令
userdel [-r][用户帐号]
userdel可删除用户帐号与相关的文件。若不加参数,则仅删除用户帐号,而不删除相关文件。
-f 删除用户登入目录以及目录中所有文件。

Install Transmission on CentOS

[不指定 2010/10/01 13:07 | by Totti ]
I often use Transmission as my torrent client on my MacBook, so I tried to install it on my VPS. Downloading torrents on your VPS have many benefits. You will be seeding from your VPS instead of your home computer, so your home internet connection will not be slowed. You will also be able to start the torrent on the VPS at night, and download it in the morning. Anyways, here’s the direction to install Transmission on CentOS.

Install the Necessary Packages

Building Transmission requires the following packages, so you will need to download it from the yum repository.

gcc
cURL
libevent
intltool
gettext
yum install gcc curl curl-devel libevent libevent-devel intltool gettext

Download and Extract Transmission

The latest version of Transmission as of writing is 2.03. You can always grab the link to the latest version on Transmission’s download page. Note that the file name of the latest version may differ.

wget http://mirrors.m0k.org/transmission/files/transmission-2.03.tar.bz2Extract the package now:

tar -xvf transmission-2.03.tar.bz2Installing Transmission
To begin the installation, go inside the Transmission folder:

cd transmission-2.03Here’s the fun part. You’re going to run the configure script and make! Afterwards, you’ll just run make install and you’ll be done!

./configure -q && make -s
make install

Conclusion

Congratulations! You have successfully installed Transmission! Now, run the following command to view Transmission’s help guide:

transmissioncli -hI prefer Transmission over the variety of torrent clients, since Transmission uses much less memory and CPU that many others, and has a simple installation process. In a few days, I will go over the process of setting up Transmission’s web interface.

查看CentOS版本方法

[不指定 2010/09/26 14:48 | by Totti ]
有以下命令可以查看:

# lsb_release -a
LSB Version:    :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: CentOS
Description:    CentOS release 5.5 (Final)
Release:        5.5
Codename:       Final


这个命令适用于所有的linux,包括Redhat、SuSE、Debian等发行版。


[root@us ~]# uname
Linux
[root@us ~]# uname -a
Linux 2.6.18-194.11.4.el5 #1 SMP Tue Sep 21 05:04:09 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux


以下二种方法适用于RedHat,CentOS


[root@us ~]# cat /etc/redhat-release
CentOS release 5.5 (Final)
用记事本等编辑器打开include/js/common.js 找到

BROWSER.firefox = document.getBoxObjectFor && USERAGENT.indexOf('firefox') != -1 && USERAGENT.substr(USERAGENT.indexOf('firefox') + 8, 3);
中的
document.getBoxObjectFor &&

将其去掉,保存回去,然后到后台更新缓存。
     许庚 中山大学附属第一医院耳鼻咽喉科医院教授、博士生导师 全国鼻外科学组组长

  在《现代汉语词典》中,“窦”这个字的释义有两种:①孔;洞。②人体某些器官或组织的内部凹入的部分。在人体上,人们最为耳熟能详的窦,莫过于鼻窦了。

  鼻窦是鼻腔周围颅骨中的含气空腔,共有四对,分别称为上颌窦、额窦、筛窦及蝶窦。在鼻腔周围相对排列,深藏而不露。
《康健》的人都不會被病痛所困擾?錯了,總編輯就曾經為鼻竇炎所苦。 當她居住澳洲時,因為不適應乾燥的氣候而得了急性鼻竇炎。 情況嚴重的時候,從額頭、眼睛到臉頰都淪陷在脹痛中,到後來蔓延到連喉嚨也在痛,根本無法專心完成任何一件事,當然,除了「受苦」這件事以外。 最後經由手術治療,她才脫離鼻竇炎的夢魘。但往後只要搭飛機或到太乾的地方,又會開始鼻塞、眼眶脹痛,鼻水直直流。 讓她不解的是,她的老公有慢性鼻竇炎,大聲擤鼻涕與打呼聲讓她覺得一點氣質都沒有。
温馨提示:本文是一篇科普文章。如果您想详细地知道中医是如何治疗慢性鼻窦炎的,请您点击我的专业论著:慢性鼻窦炎的中医治疗(谭敬书、李凡成经验):http://lifancheng.haodf.com/wenzhang/113757.htm湖南中医药大学第一附属医院耳鼻咽喉头颈科李凡成

参考文章:急性鼻窦炎各家医案解析:http://lifancheng.haodf.com/wenzhang/140713.htm

          慢性鼻窦炎各家医案解析:http://lifancheng.haodf.com/wenzhang/140711.htm

长期低剂量罗红霉素治疗慢性鼻窦炎:http://lifancheng.haodf.com/wenzhang/142456.htm



如果有鼻窦囊肿,请参考文章:http://lifancheng.haodf.com/wenzhang/148836.htm
分页: 9/51 第一页 上页 4 5 6 7 8 9 10 11 12 13 下页 最后页 [ 显示模式: 摘要 | 列表 ]