rm set_fcitx and continue to use scim defaultly
modified: install_shell/create_users.sh deleted: install_shell/set_fcitx.sh new file: install_shell/set_tcsh_encode.sh modified: setup.sh
This commit is contained in:
@@ -40,7 +40,6 @@ check_konsole $HOME
|
|||||||
cp -r root-kde/.kde $HOME/
|
cp -r root-kde/.kde $HOME/
|
||||||
cp -r d5000-kde/.kde $USER_HOME/
|
cp -r d5000-kde/.kde $USER_HOME/
|
||||||
#cp -r /etc/skel/.kde $USER_HOME/
|
#cp -r /etc/skel/.kde $USER_HOME/
|
||||||
cp -r d5000-fcitx/.config $USER_HOME/
|
|
||||||
chown -R ${USER_NAME}:${USER_NAME} ${USER_HOME}
|
chown -R ${USER_NAME}:${USER_NAME} ${USER_HOME}
|
||||||
|
|
||||||
usermod -p `openssl passwd root` root
|
usermod -p `openssl passwd root` root
|
||||||
|
|||||||
@@ -1,35 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -x -e
|
|
||||||
|
|
||||||
IM_CONFIG=/usr/share/config/kdm/Xsession
|
|
||||||
|
|
||||||
#grep "LC_CTYPE" /etc/csh.cshrc
|
|
||||||
#if [ $? -ne 0 ];then
|
|
||||||
if grep -q -v "LC_CTYPE" /etc/csh.cshrc;then
|
|
||||||
echo "setenv LC_CTYPE zh_CN.gb18030">>/etc/csh.cshrc
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$1" = "scim" ];then
|
|
||||||
imethod=fcitx
|
|
||||||
elif [ "$1" = "fcitx" ];then
|
|
||||||
imethod=scim
|
|
||||||
else
|
|
||||||
echo "Usage:[fcitx | scim]"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
line1=$(grep -n $1 $IM_CONFIG | tail -n 1 | cut -d: -f1)
|
|
||||||
line2=$(grep -n ${imethod} $IM_CONFIG | tail -n 1 | cut -d: -f1)
|
|
||||||
|
|
||||||
#grep $1 $IM_CONFIG | tail -n 1 | grep '#' &> /dev/null
|
|
||||||
#if [ $? -eq 0 ];then
|
|
||||||
if grep "$1" "$IM_CONFIG" | tail -n 1 | grep '#';then
|
|
||||||
sed -i "${line1}s@#@@" $IM_CONFIG
|
|
||||||
sed -i "${line2}s@^@#&@" $IM_CONFIG
|
|
||||||
echo "$1 change successful."
|
|
||||||
else
|
|
||||||
echo "$1 already."
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
10
install_shell/set_tcsh_encode.sh
Executable file
10
install_shell/set_tcsh_encode.sh
Executable file
@@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if test "$1" != 'tcsh';then
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
if grep -q -v "LC_CTYPE" /etc/csh.cshrc;then
|
||||||
|
echo "setenv LC_CTYPE zh_CN.gb18030">>/etc/csh.cshrc
|
||||||
|
fi
|
||||||
|
|
||||||
4
setup.sh
4
setup.sh
@@ -50,8 +50,8 @@ echo "===Set /etc/fstab==="
|
|||||||
./set_close_ipv6.sh
|
./set_close_ipv6.sh
|
||||||
echo "===close ipv6 ip==="
|
echo "===close ipv6 ip==="
|
||||||
|
|
||||||
./set_fcitx.sh fcitx
|
./set_tcsh_encode.sh $3
|
||||||
echo "====Set fonts & Input method..."
|
echo "====Set tcsh encode to gb18030..."
|
||||||
|
|
||||||
./other.sh $1 $2 $3
|
./other.sh $1 $2 $3
|
||||||
echo "===Set other==="
|
echo "===Set other==="
|
||||||
|
|||||||
Reference in New Issue
Block a user