QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2273|回复: 23

LFS6.1普通用户不能登录X-Windows?

[复制链接]
发表于 2005-8-23 19:59:37 | 显示全部楼层 |阅读模式
为什么我的LFS6.1普通用户不能登录X-Windows?谢谢。
发表于 2005-8-24 13:06:00 | 显示全部楼层

Re: LFS6.1普通用户不能登录X-Windows?

Hi sinclair,

为什么我的LFS6.1普通用户不能登录X-Windows?
Pleae try follow;

# cat /etc/passwd[code:1]
root:x:0:0:root:/root:/bin/bash
USER:x:1000:100::/home/USER[/code:1]

add "/bin/bash" after /home/USER making it as "/home/USER/bin/bash"

Also check the content of /etc/ld.so.conf whether making sense.

B.R.
satimis

Ah sinclair, are you building BLFS 6.1 on chroot?  I got lot of problems building it on chroot environment.  The only advanges are not necessary to print LFS 6.1 book and burn all packages on CDs in advance.
回复

使用道具 举报

 楼主| 发表于 2005-8-24 20:49:37 | 显示全部楼层
Hi satimis
thanks for you advice
add "/bin/bash" after /home/USER making it as "/home/USER/bin/bash"

root@Fine-Lok:~# cat /etc/passwd
root:0:0:root:/root:/bin/bash
edwin:1000:100::/home/edwin:/bin/bash
sinclair:1003:100::/home/sinclair:/bin/bash
root@Fine-Lok:~#

I can't "startx" as User on LFS 6.1 yet.
sinclair@Fine-Lok:~$startx
.........
giving up
xinit:  connection refused (errno 111):  unable to connect to X server
xinit:  No such process  (errno 3): server error
sinclair@Fine-Lok:~$
Ah sinclair, are you building BLFS 6.1 on chroot? I got lot of problems building it on chroot environment. The only advanges are not necessary to print LFS 6.1 book and burn all packages on CDs in advance.

i builded BLFS 6.1 on LFS6.1.firstly i installed Xorg KDE then download BLFS6.1 book
http://www.linuxfromscratch.org/blfs/downloads/stable/
continue install software.because i can use copy and paste now.
回复

使用道具 举报

发表于 2005-8-25 00:20:31 | 显示全部楼层
Hi sinclair,

Login as sinclair.  Then run

$ echo $HOME

it should display "/home/sinclair"

Otherwise run
$ export $HOME=/home/sinclair

Then you can run startx to evoke X-window

i builded BLFS 6.1 on LFS6.1.firstly i installed Xorg KDE then download BLFS6.1 book
I see.  I'm trying to make Firefox to work and connection to broadband made.  Then I can start LFS 6.1 to continue building BLFS from there.

satimis
回复

使用道具 举报

 楼主| 发表于 2005-8-25 12:37:15 | 显示全部楼层
Hi satimis
thanks for you reply and advice
Login as sinclair.
$ echo $HOME
/home/sinclair    <=======yes
$startx
.........
giving up
xinit: connection refused (errno 111): unable to connect to X server
xinit: No such process (errno 3): server error
------------------------------------------------------------------------------------------
same error, i can't  "startx" as "sinclair" on LFS 6.1 yet.
i don't know .what's wrong with it. can you tell me? thanks
回复

使用道具 举报

发表于 2005-8-25 13:11:32 | 显示全部楼层
Hi sinclair,

How about your "/etc/ld.so.conf" file.  Does it look like[code:1]# Begin /etc/ld.so.conf

#/usr/local/lib
/usr/X11R6/lib
/usr/lib/qt-3.3/lib/
/opt/lib

# End /etc/ld.so.conf[/code:1]

satimis
回复

使用道具 举报

 楼主| 发表于 2005-8-25 13:21:08 | 显示全部楼层
Hi satimis
thanks for you reply
root@Fine-Lok:~# cat /etc/ld.so.conf
# Begin /etc/ld.so.conf

/usr/lib
/usr/local/lib
/usr/X11R6/lib
/opt/lib
/lib
/opt/kde/lib
/usr/lib/qt/lib

# End /etc/ld.so.conf
root@Fine-Lok:~#

can you connect to internet on you LFS6.1?
回复

使用道具 举报

发表于 2005-8-26 17:47:41 | 显示全部楼层
Hi sinclair,

I can login as User but to wait for a while.  I'm trying to find out its cause.  I'll post my solution here when available.

can you connect to internet on you LFS6.1?
Not yet.  Recompiling kernel can't be avoided.  I'm making some precaution before start and will retain the old kernel making it dual boot.  

I'll let you know my result later.

BR
satimis
回复

使用道具 举报

发表于 2005-8-26 23:13:12 | 显示全部楼层
Try xinit
回复

使用道具 举报

 楼主| 发表于 2005-8-26 23:35:43 | 显示全部楼层
Hi satimis
if you Recompiled kernel can't be avoided.i can send my kernel .config to you reference.

Hi linky_fan
Try xinit

我不太明白,请linky_fan兄详细讲讲。谢谢。
回复

使用道具 举报

发表于 2005-8-27 00:10:18 | 显示全部楼层
Hi sinclair,

if you Recompiled kernel can't be avoided.i can send my kernel .config to you reference.
No, thanks.  I'm aware which items to be turned on and which items to be set as "module"

B.R.
satimis
回复

使用道具 举报

发表于 2005-8-27 23:31:17 | 显示全部楼层
我不太明白,请linky_fan兄详细讲讲。谢谢。

startx是shell脚本文件,xinit是ELF格式文件(可执行)。
运行startx时会进行一系列的设置工作(可以打开看),
而xinit运行时可以通过参数或配置文件(如~/.xinitrc)进行设置,具体内容看man。

http://xxlinux.com/2004-12/20041230130848.htm
回复

使用道具 举报

发表于 2005-8-29 00:28:10 | 显示全部楼层
Hi folks,

After recompiling kernel, I can connect Internet.  Now I make this posting from LFS 6.1 Firefox.  My immediate need is to make Firefox reading Chinese, both Traditional and Simplified.  I'm now only working blindly OR in total darkness.

B.R.
satimis
回复

使用道具 举报

 楼主| 发表于 2005-8-29 14:22:37 | 显示全部楼层
Hi linky_fan
谢谢你的解释及URL,又学到点知识 thanks.

Hi satimis
congratulation!
i am useing fireflysung
http://www.study-area.org/apt/firefly-font/
root@Fine-Lok:~# mkdir /usr/X11R6/lib/X11/fonts/TrueType
put the fireflysung.ttf to TrueType directory
Now change to the directory where you have your TrueType fonts and run:
root@Fine-Lok:/usr/X11R6/lib/X11/fonts/TrueType#mkfontscale
root@Fine-Lok:/usr/X11R6/lib/X11/fonts/TrueType#mkfontdir
Ensure TrueType is Loaded in 'xorg.conf'
#    ModulePath "/usr/X11R6/lib/modules"

    FontPath         "/usr/X11R6/lib/X11/fonts/local"
    FontPath         "/usr/X11R6/lib/X11/fonts/misc"
    FontPath         "/usr/X11R6/lib/X11/fonts/TTF"
    FontPath         "/usr/X11R6/lib/X11/fonts/TrueType" <==============add this line
    FontPath         "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
    FontPath         "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
    FontPath         "/usr/X11R6/lib/X11/fonts/Type1"
    FontPath         "/usr/X11R6/lib/X11/fonts/CID"
    FontPath         "/usr/X11R6/lib/X11/fonts/Speedo"
    FontPath         "/usr/X11R6/lib/X11/fonts/cyrillic"
    FontPath         "/usr/local/share/fonts"
    FontPath         "/usr/X11R6/lib/X11/fonts"
EndSection

add the path "/usr/X11R6/lib/X11/fonts/TrueType " to /etc/fonts/fonts.conf
        <dir>/usr/share/fonts/local</dir>
        <dir>/usr/share/fonts</dir>
        <dir>/usr/X11R6/lib/X11/fonts</dir>
        <dir>/usr/X11R6/lib/X11/fonts/misc</dir>
        <dir>/usr/X11R6/lib/X11/fonts/local</dir>
        <dir>/usr/X11R6/lib/X11/fonts/TTF</dir>
        <dir>/usr/X11R6/lib/X11/fonts/75dpi</dir>
        <dir>/usr/X11R6/lib/X11/fonts/TrueType</dir>       <=======add this line
        <dir>~/.fonts</dir>
install "libXft-2.1.6.tar.bz2" package   <===bold
finally run "fc-cache"
root@Fine-Lok:~#fc-cache
restart "firefox"
if your chinses fonts blur,i can post my fonts.conf to you reference
good luck!
回复

使用道具 举报

发表于 2005-8-29 17:17:32 | 显示全部楼层
Hi sinclair,

Tks for your detail advice.

Fonts selection is already available on Firefox

View -> Character Encoding -> More Encodings -> East Asia -> big5/gbk, etc.

Then I added fireflysun.tty to /usr/X11R6/lib/X11/fonts/TrueType/

Also adding;[code:1]FontPath         "/usr/X11R6/lib/X11/fonts/TrueType"[/code:1] to xorg.conf'
and [code:1]<dir>/usr/X11R6/lib/X11/fonts/TrueType</dir>[/code:1]to  /etc/fonts/fonts.conf

ran;
# fc-cache

Re-started Firefox.  I'm now on my way with Firefox reading both big5 and gbk

Tks again.

install "libXft-2.1.6.tar.bz2" package <===bold
What will be the use of this package?  I have it download but without installed.

B.R.
satimis

P.S. Later I'll install Chinese input engine.  I'm only experienced on Cangjie, big 5 input.  That will be a problem to me.

Have you had any suggestion and also on its installation.  Tks.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-19 19:43 , Processed in 0.050590 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表