求助,无法进入用户图形界面
Tofloor
poster avatar
ztx97
deepin
2015-06-11 14:29
Author
如图之前修改过profile文件,但立即改了回去并保存,随后重启就这个样子了

可以进入ttf,然而本人蒟蒻不知道该输入什么命令

对linux系统基本不知,所以希望能够求得详细的帮助
Reply Favorite View the author
All Replies
1 / 2
To page
cxbii
deepin
2015-06-11 17:31
#1
我的profile文件内容为:
  1. # ~/.profile: executed by the command interpreter for login shells.
  2. # This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
  3. # exists.
  4. # see /usr/share/doc/bash/examples/startup-files for examples.
  5. # the files are located in the bash-doc package.

  6. # the default umask is set in /etc/profile; for setting the umask
  7. # for ssh logins, install and configure the libpam-umask package.
  8. #umask 022

  9. # if running bash
  10. if [ -n "$BASH_VERSION" ]; then
  11.     # include .bashrc if it exists
  12.     if [ -f "$HOME/.bashrc" ]; then
  13.         . "$HOME/.bashrc"
  14.     fi
  15. fi

  16. # set PATH so it includes user's private bin if it exists
  17. if [ -d "$HOME/bin" ] ; then
  18.     PATH="$HOME/bin:$PATH"
  19. fi
Copy the Code


你先说说怎么改profile了,这个是用户的登录配置文件,不应该随意更改的
Reply View the author
ztx97
deepin
2015-06-11 17:53
#2
本帖最后由 ztx97 于 2015-6-11 10:25 编辑
https://bbs.deepin.org/post/30738
我的profile文件内容为:

用deepin商店安装QT4后编译时显示找不到 QApplication , 但是在一个文件夹里确实找到了QApplication,推测可能没有设置环境变量,查看环境变量时没有找到 QTDIR 什么的,PATH里也没有关于qt的路径,
按照网上的一些网站提供的方法更改了profile文件
如 http://mobile.51cto.com/symbian-268657.htm
保存后应用,但是桌面都坏掉了,于是删去添加的内容并保存
重启后就是这个样子了,
profile文件现在应该是和原来的一样的
Reply View the author
ztx97
deepin
2015-06-11 18:23
#3
现在的profile文件是这个样子的
Reply View the author
ztx97
deepin
2015-06-11 18:29
#4
https://bbs.deepin.org/post/30738
我的profile文件内容为:

为什么我的profile文件和您的差别很大QAQ
Reply View the author
MattD
deepin
2015-06-11 18:37
#5
https://bbs.deepin.org/post/30738
为什么我的profile文件和您的差别很大QAQ

从/etc/skel下复制一份原始的.profile就行了。
Reply View the author
ztx97
deepin
2015-06-11 18:39
#6
https://bbs.deepin.org/post/30738
从/etc/skel下复制一份原始的.profile就行了。

开机时的lightDM是什么东西?
Reply View the author
ztx97
deepin
2015-06-11 18:46
#7
本帖最后由 ztx97 于 2015-6-11 10:48 编辑
https://bbs.deepin.org/post/30738
从/etc/skel下复制一份原始的.profile就行了。

好吧找到了,这两个文件真的是一样的么。。。。。。。。还有就是linux命令行怎么复制。。
Reply View the author
ztx97
deepin
2015-06-11 18:56
#8
https://bbs.deepin.org/post/30738
从/etc/skel下复制一份原始的.profile就行了。
  1. cp  -f  /etc/skel/.profile  /etc/.profile
Copy the Code


这个样子可以么?
Reply View the author
lcw0268
deepin
2015-06-11 19:00
#9
https://bbs.deepin.org/post/30738
好吧找到了,这两个文件真的是一样的么。。。。。。。。还有就是linux命令行怎么复制。。
...

lightdm是显示管理器。
输入 cp --help
看看。复制命令我也不会,好像是上面那个cp.
不过,可以用移动命令mv,进入桌面再复制一份移动回原位置。
Reply View the author
ztx97
deepin
2015-06-11 19:02
#10
本帖最后由 ztx97 于 2015-6-11 11:04 编辑
https://bbs.deepin.org/post/30738
我的profile文件内容为:

我的 ~/.profile 文件跟您的是完全一样的
刚才那个是我的 ~/profile  文件
现在不知道该怎么办了QAQ
而且现在进不了桌面命令行中文都是乱码。。。
Reply View the author
ztx97
deepin
2015-06-11 19:03
#11
https://bbs.deepin.org/post/30738
lightdm是显示管理器。
输入 cp --help
看看。复制命令我也不会,好像是上面那个cp.

我现在不敢cp呢。。。。因为我发现有两个文件 .profile  和 profile。。。
Reply View the author
lcw0268
deepin
2015-06-11 19:14
#12
https://bbs.deepin.org/post/30738
我现在不敢cp呢。。。。因为我发现有两个文件 .profile  和 profile。。。

怕什么?只要记住位置,搞错了再改回来。
你可以先试试:
dpkg-reconfigure lightdm
或者
apt-get remove lightdm && apt-get install lightdm
Reply View the author
ztx97
deepin
2015-06-11 19:21
#13
https://bbs.deepin.org/post/30738
怕什么?只要记住位置,搞错了再改回来。
你可以先试试:
dpkg-reconfigure lightdm

嗯我会试试的,现在暂时有一些事情
Reply View the author
ztx97
deepin
2015-06-11 19:22
#14
我的qq 1454664515
mail      tianxiang971016@gmail.com
十分希望能够有人帮助我解决这个问题
Reply View the author
jiuny0209
deepin
2015-06-11 20:16
#15
https://bbs.deepin.org/post/30738
为什么我的profile文件和您的差别很大QAQ

因為路徑不同,一個在etc底下一個在家目錄底下。
Reply View the author
jiuny0209
deepin
2015-06-11 20:36
#16
本帖最后由 jiuny0209 于 2015-6-11 12:43 编辑

  你照那篇教學再做一次,但是下面這一行不要打上。先試試看結果如何。(寫在 /etc/profile 與 ~/.zprofile裡面都可以)


    export QTDIR=/usr/local/Trolltech/Qt-4.5.1  
    export PATH=/usr/local/Trolltech/Qt-4.5.1/binPATH  
    (      PATH=$QTDIR/binPATH   )  -----------------------------------------這一行不可以貼上去-------------------------------------------------
    export MANPATH=$QTDIR/manMANPATH  
    export LD_LIBRARY_PATH=$QTDIR/libLD_LIBRARY_PATH


Reply View the author
ztx97
deepin
2015-06-11 20:38
#17
https://bbs.deepin.org/post/30738
你照那篇教學再做一次,但是下面這一行不要打上。先試試看結果如何。

问题是我都进不了桌面啊囧
Reply View the author
ztx97
deepin
2015-06-11 20:40
#18
https://bbs.deepin.org/post/30738
怕什么?只要记住位置,搞错了再改回来。
你可以先试试:
dpkg-reconfigure lightdm

这两个方法过后开机时都是提示starting LightDM Display Manager  【fail】
Reply View the author
jiuny0209
deepin
2015-06-11 20:52
#19
本帖最后由 jiuny0209 于 2015-6-11 13:01 编辑
https://bbs.deepin.org/post/30738
问题是我都进不了桌面啊囧

按下Ctrl-Alt-F6 可以跑到tty6號控制台嗎?直接在命令行打上 nano ~/.zprofile 編輯文件,保存完以後在重新啟動看看,真的連C-M-F6都不能用,那你就只有用deepin安裝碟來開機了。


Reply View the author
ztx97
deepin
2015-06-22 00:06
#20
去了一趟长沙培训(搞OI的蒟蒻到处跑QAQ
所以没有什么时间鼓捣系统
当前系统是 deepin 引导 win7
现在主要是以下问题

1.  lightdm --reinstall 与 LinghtDM --reinstall  重启以后还是提示starting fail
2.  reconfigure 后显示图片一,两个选项都试过,还是提示starting fail
3. ~/.profile 文件确实不与 etc/skel/.profile 文件一样,但是复制过去之后还是无法进入用户图形界面. ~/.profile 改过之后的文件如图二所示,文件原本内容如在图中分隔线的下面那一部分(已经注释掉了)

还有一个疑问,如果重新用U盘安装一遍,还安装在那个盘,可以成功覆盖么?会有导制win7挂掉的风险么?
(因为那个deepin系统里没有什么东西)
Reply View the author
1 / 2
To page