2010/12/11

Desktop Environment


*CentOS

nautilus --help

yum groupinstall "GNOME Desktop Environment"

yum -y groupinstall ‘X Window System’

yum -y groupinstall ‘GNOME Desktop Environment’

yum groupinstall "chinese support"

//
vi /etc/sysconfig/i18n

LANG="en_US.UTF-8″ 
>>LANG="zh_TW.UTF-8"



VMWare bundle

*CentOS
*bundle

chmod -R 777 VMware-Workstation-Full-7.1.3-324285.x86_64.bundle

./VMware-Workstation-Full-7.1.3-324285.x86_64.bundle

sh VMware-Workstation-Full-7.1.3-324285.x86_64.bundle


***

sudo chmod+x ****.bundle

sudo sh [vmware file name].bundle

sudo vmware-uninstall //@usr/bin

***

vmware-installer -u vmware-workstation



Ref>>>

2010/12/10

update

#CentOS

[update]
yum -y update

yum

[yum-check]
ls -l /etc/yum.repos.d/

[yum-/var/cache/yum]
yum clean all

[yum-install & remove & search & list & info & search ooxx]
yum install ooxx

yum remove ooxx

yum search ooxx

yum list

yum info ooxx

yum grouplist

yum groupinstall "ooxx"

,etc

rpm -qc yum
/var/log/yum.log

release

#CentOS

[ ~]# rpm -q centos-release
centos-release-5-5.el5.centos

2010/12/09

system


shutdown  -h  now
shutdown  -r  now
shutdown  -h  11:23
shutdown  -h  +10

sync; sync; sync; reboot

pstree [-A|U] [-up]
-A  
-U
-p
-u 

free [-b|-k|-m|-g] [-t]
-b 
-t  

uname [-asrmpi]

uptime

vmstat [-a] 
vmstat [-fs]                     
vmstat [-S]                 
vmstat [-d]                    
vmstat [-p] 

fuser -uv /proc

cat
/proc/loadavg
/proc/cpuinfo
/proc/meminfo

getconf LONG_BIT

virt-clone


#CentOS

virt-clone \
     --original demo \
     --name newdemo \
     --file /var/lib/xen/images/newdemo.img

openssh

#ubuntu

[ssh-install]
sudo apt-get install openssh-server
[ssh-check]
ps aux | grep ssh
[ssh-config]
sudo vim /etc/ssh/sshd_config
[ssh-root_login]
#PermitRootLogin Yes 
>>
PermitRootLogin no
[ssh-port]
# What ports, IPs and protocols we listen for
Port 22
[check-in_using_port]
sudo less /etc/services
[ssh-ip_allow+deny]
sudo vim /etc/hosts.allow
sudo vim /etc/hosts.deny
[ssh-ip_allow_ex]
sshd:xxx.xxx.xxx.xxx :allow
[ssh-ip_deny_ex]
sshd:all:deny
[ssh-restart]
sudo /etc/init.d/ssh stop
sudo /etc/init.d/ssh start