存档

文章标签 ‘centos’

CentOS 5 彻底关闭SELinux

2010年3月23日 Slyar 1 条评论

文章作者:Slyar 文章来源:Slyar Home (www.slyar.com) 转载请注明,谢谢合作。

最近写东西的时候发现这个玩意太讨厌了,总是冒出一些无聊的错误让我浪费笔墨,索性直接禁用它,以后写安全方面的时候再说...

用vim打开 /etc/selinux/config

在 SELINUX=enforcing 前面加个#号注释掉它
#SELINUX=enforcing

然后新加一行
SELINUX=disabled

保存,退出,重启系统,搞定。

分类: Linux相关 标签:

Install VMware Tools on CentOS(Linux)

2010年3月19日 Slyar 2 条评论

文章作者:Slyar 文章来源:Slyar Home (www.slyar.com) 转载请注明,谢谢合作。

1、Make sure you already have gcc and kernel devel installed. You can install it by running the command.

yum install gcc kernel-devel

2、Select "Tools" from the VMWare Workstation GUI menu, and then "Install VMWare Tools". This doesn't actually appear to do anything in the guest machine. All it really does is to connect the virtual CD-ROM device to the appropriate CD image containing the tools for your virtual machine.

3、Open a console or SSH session.

4、Mount the virtual cd drive.

mount /dev/cdrom /mnt

5、Copy file to the /tmp.

cp /mnt/VM*.rpm /tmp

6、Unmount the virtual cd drive.

umount /dev/cdrom

7、Run the installer

rpm -i /tmp/VM*.rpm

8、Run the install script. just hit enter all the way through.

/usr/bin/vmware-config-tools.pl

9、Done.

分类: Linux相关 标签: ,

How to boot Linux in text-only mode

2010年3月19日 Slyar 2 条评论

文章作者:Slyar 文章来源:Slyar Home (www.slyar.com) 转载请注明,谢谢合作。

The default runlevel is defined in /etc/inittab

Default runlevel. The runlevels used by RHS are:
0 - halt (Do NOT set initdefault to this)
1 - Single user mode
2 - Multiuser, without NFS (The same as 3, if you do not have networking)
3 - Full multiuser mode
4 - unused
5 - X11
6 - reboot (Do NOT set initdefault to this)

So,If you want to always boot to the text-only mode,edit "/etc/inittab" and change "id:5:initdefault:" to "id:3:initdefault:"

分类: Linux相关 标签:
bnuep:0801010047