今天在按照如下方法安装中文输入法时,注销(重启后),再登陆时,尽管密码是对的,但是屏幕一闪之后仍是登时登陆界面,这样无限循环下去,始终进入不了桌面....,但是可以Ctrl + Alt +F1(~F6)进入到tty界面。
-----
apt-get install fcitx
安装以后在/etc/X11/Xsession.d下面新建一个文件,名为25xchinput-start
其文件内容是这样写的:
export G_FILENAME_ENCODING=@UTF-8
export XMODIFIERS=@im=fcitx
fcitx&
-----
查了下资料,遇到这种问题的人还真不少,回答的人也有一些,但均没有给出原因,也没说清楚为什么,倒是看到很多种建议,比如:(1)在tty下重启Xwindow:startx(2)在tty下重装桌面sudo apt-get install ubuntu-desktop。结果都未能成功,看的越多对问题的理解也就越清楚,废话不说,直奔主题,问题是export的变量出现了问题,注销掉即可。
表层原因方面(引参考信息2):例如在终端控制台输入:export TEST_ENV='test_enviroment',这时候就添加了TEST_ENV这一环境变量,通过命令:env | grep TEST_ENV能够查到,而且 echo $TEST_ENV的值正是test_enviroment,注消之后,这个环境变量就不存在了。如果写入文件一般的文件。之后source它,或者放到/etc/profile 等等的位置里,就是长期有效,不同的地方效果不同。
我就把export那两行注释掉,或者干脆把Xsession.d这个文件rm掉就可以了(注意,仅仅apt-get purge fcitx并不能删除25xchinput-start文件)。
本质原因,是由于用户输入正确密码后,系统会加载个人主目录下的隐藏文件.bashrc .profile等,这些文件最终会指向/etc/下的文件,如这里的/etc/profile, /etc/X11/Xsession.d等,如果它们中的变量设置错误,就无法进一步加载桌面了。道理如此、至于具体如何实现的还有待高人解答。
参考信息:
(1)http://hi.baidu.com/gnqbqyrnnlbaftd/item/09e76123d1573a50c28d59eb
(2)http://zhidao.baidu.com/question/181133165.html&__bd_tkn__=61a1546c70669f625a09ab70a7ac6ef48b0d8ae18078338d51fed8133ea5c69d362ad36bb4bcda3b39bb3949f6bbe47087ac3af56e60b1f4e7eb60157954fc339e64a8fe5b0f03de0125277ca337b10d3a739d047e23cb8cd339400976203a2cc4640b3548c6a9acee7cfcaccbdc8d03ca3021f24cae


Eydfdfob4 于 2014-09-17 21:53:26发表:
Beach Tanning
Travel Articles | December 9, 2007
There are many people who love the idea of having a golden skinned tan. For these people who want to have a tan it is possible to obtain their tan is a number of ways. One of the more popular methods is having a suntan. You can also call this beach tanning, and it is one of the more fun and popular ways of getting a tan.
The products which you can use as a self tanner include sun tanning lotion, tanning beds. While tanning by the poolside and beach tanning are great natural alternatives to these. When you look into the ways that you can get a great looking tan you will need to remember that any tanning method be it self tanning, or something along the lines of beach tanning, should be undertaken with care. This is especially true with the many skin diseases which are now doing the rounds.Of the many tanning options available it is a well known fact that tanning beds can help people get a great tan just as if they were on a private beach, and although this is a viable a alternative to beach tanning, it is not as fun as getting roasted on the beach with a balmy breeze blowing over you. You will find that there are lots of different models of tanning beds available to buy, and you will need to look into these different beds quite closely in order to find one that suits you. There is however a note of caution that you should keep in mind when using tanning beds. Tanning beds use high temperatures to effect the changes your body goes through when you are getting a tan, so you will need to be careful as to how long you stay under a tanning bed. You will also need to wear the protective eye goggles which have been provided for your safety. There are however, also a few advantages to having a tanning bed, even over the benefits of beach tanning. The first benefit can be seen in a few hours time as you slowly develop a perfect all over body tan. Another benefit is that of not having to worry about rain or other weather problems from disrupting your beach tanning session. Now before you jump up to buy one of these tanning beds it is best if you look at some reviews for the different brands.That said, although beach tanning can have lead to problems of its own, it is, in the eyes of many people, still a vastly superior way to get tan. Because when all is said and done,cheap jordan 5Jordan 3Lab5Jordan 5 3Lab53Lab5 Jordansjordan 3lab5 metallic silvercheap air jordanshttpsmarts1.com, there is nothing to compare to a proper beach tan.
blueszcd 于 2014-09-12 19:22:34发表:
感谢分享,对于linux新手来说帮助很大,谢谢分享,楼主辛苦了
cep2000 于 2014-09-09 12:40:20发表:
hao
jf1989117 于 2014-03-12 22:01:49发表:
希望有用~
Jack561 于 2014-01-13 15:20:10发表:
谢谢分享
ubuntulove 于 2013-12-21 20:11:35发表:
牛人啊,学习了啊
idlerinwind 于 2013-09-30 11:31:09发表:
努力学习Linux
goldenrich 于 2013-09-10 14:26:06发表:
还是觉得OS系统好用啊
xjboy 于 2013-09-03 10:01:38发表:
有深度
qwer5111 于 2013-08-20 16:38:08发表:
学习了
dym168888 于 2013-03-31 20:56:27发表:
刚下了一个LINUX学习一下。
d.x 于 2013-03-29 20:20:54发表:
我遇到过,无选择的是强关,重启就好了
shell10000 于 2013-03-29 17:02:55发表:
多谢分享。
行走之处 于 2013-03-28 14:28:15发表:
(o):tx、、、、、、、、、、、、、、、、、
行走之处 于 2013-03-28 14:27:13发表:
:0wmjh(1、、、、、、、、、、、、、、、、、、、、、、、、、、、、
wyruirui118 于 2013-03-09 23:04:08发表:
mark
ymygy 于 2013-02-08 11:44:55发表:
路过学习一下
yuanyepeng 于 2012-12-21 22:09:13发表:
谢谢,顶起,,,,,,,
pythonner 于 2012-12-15 10:08:30发表:
学习了
makertang 于 2012-12-11 14:30:24发表:
thanks a lot!!!!!
醉尘风 于 2012-12-11 14:22:56发表:
学习
gky2009514 于 2012-12-07 11:50:25发表:
新手完成任务,求下书籍~
空中的云 于 2012-11-06 20:41:23发表:
好
ffmdaxia 于 2012-11-06 10:55:53发表:
不好意思,新人来此,得耍下积分
liuyongqing 于 2012-11-06 09:29:42发表:
谢谢楼主分享
liuyongqing 于 2012-11-06 09:29:34发表:
谢谢楼主分享
liuyongqing 于 2012-11-06 09:29:24发表:
谢谢楼主分享
jjx0223 于 2012-10-30 00:27:56发表:
感?您的教?分享!!!
cppbbs 于 2012-10-23 12:01:08发表:
路过!!!
帮顶……
寂寞弯刀 于 2012-10-05 00:04:33发表:
感谢 适合新手
flybackl 于 2012-10-03 11:42:15发表:
这个问题我还没碰到过
flybackl 于 2012-10-03 11:41:50发表:
好问题啊 很适合新手
ouyangcp 于 2012-10-03 06:50:33发表:
感?您的教?分享!
tscndd 于 2012-09-21 17:18:37发表:
[i=s] 本帖最后由 tscndd 于 2012-9-21 17:19 编辑 [/i]
还是觉得OS系统好用啊
xb2002.com箱包网 tscndd.com集成吊顶315jcdd.com
Growth兆 于 2012-09-21 09:49:16发表:
感谢wfc1102的分享,本贴加入到论坛顶置的Linux应用贴中
SMuonon 于 2012-09-21 08:51:49发表:
强文支持