显示系统已经安装的组件,和可以安装的组件:
#yum grouplist
如果系统安装之初采用最小化安装,没有安装xwindow,那么先安装:
#yum groupinstall “X Window System”
安装GNOME桌面环境
yum groupinstall “GNOME Desktop Environment”
安装KDE桌面环境
yum groupinstall “KDE (K Desktop Environment)”
卸载GNOME桌面环境
yum groupremove “GNOME Desktop Environment”
卸载KDE桌面环境
yum groupremove “KDE (K Desktop Environment)”
1.yum -y install samba
2.编辑/etc/samba/smb.conf
追加
[share] windows客户端查看时看到的文件夹名
path = /var/samba/share 共享目录位置,要系统中存在的目录,也可以配置完再创建
read only = no
public = yes
3.smbpasswd -a username
将linux系统已存在用户 username(例)加入到 Samba 用户数据库,windows访问samba共享目录时需要输入此用户名和密码
xen依赖的两个系统服务
messagebus,haldaemon 这两个服务要启用。不然,XEN网卡桥接不能使用。
我试了好久。唉%
下载最新的BIND 9.7.0b3
http://www.bind.com/pub/bind9/
编译安装
./configure –prefix=/usr/local/named –enable-threads –with-dlz-mysql –disable-openssl-version-check
建立localhost.zone
[root@vi named]# pwd
/usr/local/named
[root@vi named]# vim localhost.zone
$TTL 86400
@ IN SOA @ root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS @
IN A 127.0.0.1
IN AAAA ::1
建立named.ca 。可以通过dig >named.ca获取
[root@vi named]# pwd
/usr/local/named
[root@vi named]# vim named.ca
. 518400 IN NS L.ROOT-SERVERS.NET.
. 518400 IN NS M.ROOT-SERVERS.NET.
. 518400 IN NS A.ROOT-SERVERS.NET.
. 518400 IN NS B.ROOT-SERVERS.NET.
. 518400 IN NS C.ROOT-SERVERS.NET.
阅读全文…
yum -y install vnc vnc-*
编辑VNC Server配置文件 vi /etc/sysconfig/vncservers
- # The VNCSERVERS variable is a list of display:user pairs.
- #
- # Uncomment the lines below to start a VNC server on display :2
- # as my ‘myusername’ (adjust this to your own). You will also
- # need to set a VNC password; run ‘man vncpasswd’ to see how
- # to do that.
- #
- # DO NOT RUN THIS SERVICE if your local area network is
- # untrusted! For a secure way of using VNC, see
- # .
-
- # Use “-nolisten tcp” to prevent X connections to your VNC server via TCP.
-
- # Use “-nohttpd” to prevent web-based VNC clients connecting.
-
- # Use “-localhost” to prevent remote VNC clients connecting except when
- # doing so through a secure tunnel. See the “-via” option in the
- # `man vncviewer’ manual page.
-
- # VNCSERVERS=”2:myusername”
- # VNCSERVERARGS[2]=”-geometry 800×600 -nolisten tcp -nohttpd -localhost”
-
- VNCSERVERS=”1:root”添加的
- VNCSERVERARGS[2]=”-geometry 800×600″添加的
运行vncserver,首次运行会创建xstartup
vi /root.vnc/xstartup
- #!/bin/sh
- # Uncomment the following two lines for normal desktop:
- # unset SESSION_MANAGER
- # exec /etc/X11/xinit/xinitrc
-
- [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
- [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
- xsetroot -solid grey
- vncconfig -iconic &
- xterm -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
- #twm & 注释这条
- exec gnome-session 添加这条
连接的IP 192.168.18.211:1 。。注意后面的 :1
在CentOS5.4新系统yum update后无service、ntsysv、chkconfig命令,提示command not found。
解决方法:
先在命令行中输入
export PATH=$PATH:/usr/sbin:/sbin
这样你可以临时恢复环境变量设置。
vi /etc/profile 更改
前两天去了趟机房,事先不知道机房是那么的烂,USB光驱都没有,要重装系统的又是HP小机,拆了机箱,也没有IDE接口。尴尬而返。
转载请注明!
所需软件:
1. centos 5.4 ISO
2. tftpd32 下载地址 http://tftpd32.jounin.net/tftpd32_download.html
3. http file server (hfs) 下载地址 http://www.rejetto.com/hfs/?f=dl
4. pxelinux.0 文件
/usr/lib/syslinux/pxelinux.0,pxelinux.0一定是要匹配的版本,不同版本的linux是无法使用的。
安装:
1. ISO文件解压,把\images\pxeboot下的vmlinuz、initrd.img两个文件拷贝到pxe目录下
2. pxe 目录下载创建pxelinux.cfg目录
3. ISO文件解压,把\isolinux下的isolinux.cfg文件拷贝到pxe\pxelinux.cfg目录下,并重命为default
4 配置tftpd32(如图)
阅读全文…