Showing posts with label centos. Show all posts
Showing posts with label centos. Show all posts

Friday, June 16, 2017

CentOS NetworkManager

CentOS NetworkManager


Starting the NetworkManager service


First we are going to configure your CentOS system to automatically start the NetworkManager on startup. You can do this by running: 

chkconfig NetworkManager on
 

Then we are going to start it so we can use it right away without needing to reboot: 

service NetworkManager start
 

If you have done that in your graphical environment (Gnome), your Notification Area (usually in the Gnome panel on the top-right) will show a new icon. If you left-click on this icon, you will see a list of possible Wireless networks to connect to.
You may also want to disable the network and wpa_supplicant services at boot time, as NetworkManager will now handle these. For this, simply do:

chkconfig network off
chkconfig wpa_supplicant off
 
There is nothing more to it !

Go to link Download

Read more »

Thursday, May 18, 2017

CentOS 5 6ä¸‹ç¼–è¯‘å ‰è£ Fcitxï¼ˆå°ä¼é¹ è¾“å ¥æ³•ï¼‰

CentOS 5 6ä¸‹ç¼–è¯‘å ‰è£…Fcitx(小企鹅输入法)


?????? Fcitx ?????

Fcitx?????gettext, gettext-devel, libXft, libXft-devel, libXpm?libXpm-devel?????????????????
??? yum install xxx?????????????????????????????
yum install gettext gettext-devel libXft libXft-devel libXpm libXpm-devel automake autoconf libXtst-devel gtk+-devel gcc zlib-devel libpng-devel gtk2-devel glib-devel -y
??????
1. ??Fcitx?????????wget http://www.fcitx.org/download/fcitx-3.6.3.tar.bz2
2. ???? /usr/src ????tar jxvf fcitx-3.6.3.tar.bz2 -C /usr/src
3. ?????cd /usr/src/fcitx-3.6.3
4. ??”.configure“??? ./autogen.sh
5. ????? ./configure
???Centos 5??????????????????????RHEL??????????
6. ?????
make
make install
7. ????????????fcitx -h??????????????????????
[root@CentOS ~]# fcitx -h
Usage: fcitx [OPTION]
-d run as daemon(default)
-D don’t run as daemon
-c (re)create config file in home directory and then exit
-n[im name] run as specified name
-v display the version information and exit
-h display this help and exit
????Fcitx??????
???????????
1. ?????? vim /etc/X11/xinit/xinput.d/fcitx.conf ?????
XIM=fcitx
XIM_PROGRAM=/usr/local/bin/fcitx
XIM_ARGS=”-d”
GTK_IM_MODULE=fcitx
QT_IM_MODULE =fcitx
2. ???/etc/alternatives/?????????xinputrc?????????
mv /etc/alternatives/xinputrc /etc/alternatives/xinputrc.bak
ln -s /etc/X11/xinit/xinput.d/fcitx.conf /etc/alternatives/xinputrc
3. ?????? ??——???——?????——??? ????“??????????[fcitx]”???“??”?????“ctrl+??”????fcitx????
??????????????????????????????.bashrc????????????
export LANG=”zh_CN.UTF-8?
export LC_CTYPE=”zh_CN.UTF-8?
export XIM=fcitx
export XIM_PROGRAM=fcitx
export GTK_IM_MODULE=xim
export XMODIFIERS=”@im=fcitx”
????????CentOS 5.3?????5.5??????
1. ???????vim /etc/X11/xinit/xinput.d/fcitx?????
XIM=fcitx
XIM_PROGRAM=fcitx
GTK_IM_MOUDLE=fcitx
QT_IM_MOUDLE=fcitx
?????????
2. ??Fcitx?????????????fcitx???????Start FCITX error. Another XIM daemon named SCIM is running??????????”4“
3. ??????????ln -s /etc/X11/xinit/Xinput.d/fcitx /$HOME/.xinputrc
4. ??? fcitx -nb ????????
??fcitx???????????????????????????????????
ctrl+?? ??????
??fcitx?????vim ~/.fcitx/config???????????
??????
?????cd /usr/src/fcitx-3.6.3
???make uninstall
????fcitx?????? vim ~/.fcitx/config
[??]
????(?)=??
????(?)=Courier
??????=20
???????=12
????AA??=1
[??]
????????=1
Enter???=1
??????=0
????????=1
????????=1
LumaQQ??=0
[??]
?????=9
???????3D??=0
?????3D??=1
???????=0
?????????=0
#?????????????????0???????
???????=600
?????=0
??????=1
???=92 210 131
??????=220 220 220
??????=100 180 255
?????????=170 170 170 150 200 150 0 0 255
??????=240 240 240
??????=255 0 0
????????=0 0 255
??????=200 0 0
??????????=0 150 100
#????????????????
????????=0 0 255
????????=100 100 255
#????????/??????????
????????=0 0 0
??????=100 200 255
??????=255 150 255
????????=220 220 220
????????=80 0 0
????????=0 0 0
#??“????????”??????????????????????
[??]
??/?????=CTRL_SPACE
#???????? ?????L_CTRL R_CTRL L_SHIFT R_SHIFT
????????=L_CTRL
???????=0
??????=250
????=CTRL_K
GBK??=CTRL_M
????=CTRL_L
????=CTRL_ALT_E
???=SHIFT_SPACE
????=ALT_SPACE
???=-
???==
?????????=SHIFT
[???]
????=1
????=0
????=1
????=1
????????=0
[??]
????=0
??????=1
??????=0
???????=CTRL_8
???????=CTRL_7
????????=CTRL_DELETE
#?????????????????????
???????=[]
#?????????0–>??? 1–>???? 2–>?????
??????????=2
??????????=1
???????????=0
????an?ang=0
????en?eng=0
????ian?iang=0
????in?ing=0
????ou?u=0
????uan?uang=0
????c?ch=0
????f?h=0
????l?n=0
????s?sh=0
????z?zh=0

Go to link Download

Read more »

Friday, February 17, 2017

CentOS RHEL Linux Remove GDM

CentOS RHEL Linux Remove GDM


GDM is the GNOME Display Manager, a graphical login program for Redhat, RHEL, Fedora and CentOS Linux based systems. The X Window System by default uses the XDM display manager which needs editing files. GDM allows to customize login using GUI based tools. It also supports customization with themes.

Method # 1: Delete GDM and X Window

Type the following command:
# yum groupremove "X Window System"
Reboot the systems:
# reboot

Method # 2: Disable GDM and X Windows Login For All Sessions

Edit /etc/inittab, enter:
# vi /etc/inittab
Find:
id:5:initdefault:
Replace with:
id:3:initdefault:
Save and close the file. Stop currently running GUI session:
# init 3

Method # 3: Temporarily Disable GDM and X Windows Login For Current Sessions

Just type the following command:
# init 3
To get back to GUI login session again, enter:
# init 5

Go to link Download

Read more »