what is the difference between /usr/bin/X and /usr/bin/Xorg?

2011-07-26 Thread jiang lei
hi all:

is there any difference between /usr/bin/X and /usr/bin/Xorg? On my
debian box, /usr/bin/X is not symlink to /usr/bin/Xorg, and i can start X
server with /usr/bin/X but fail with /usr/bin/Xorg? i google it but find
nothing, could any one here help me? thanks in advance.


Re: Can not startx anymore after the laptop was forced to turn off

2011-07-22 Thread jiang lei
sorry to reply so late, i was assigned a business trip for 2 weeks,
now i am back. ;)

actually the entry in the xorg.conf generated by  Xorg :1 -configure
was nvidia, i changed it to nouveau because i could not startx. i
did not mention that in the first mail. Apologies! Now i am installing
the nvidia-kernel-dkms package and see what happens.


On 7/10/11, Hans-J. Ullrich hans.ullr...@loop.de wrote:
 ---

   how can i fix the issue, any idea? thanks in advance.

 I suggest, not to use the noveau driver. Maybe you should try to use the
 nvidia-drivers, which are offered in packages. For easy installation, you
 should use the nvidia-kernel-dkms and nvidia-glx package.

 Make sure, the linux-headers afre installed. module-assistant does that for
 you.

 When everything is installed,  especially the -dkms packages, then the
 modules
 will be automatically built (thank you, dear developers for the idea of
 dkms!)

 Maybe it is necessary to install the package nvidia-glx by hand.

 Change the entry in xorg.conf from nouveau to nvidia and leave the rest
 as
 is.


 For testing purposes I suggest to move your login-manager out of the way, so
 it will not start (for example move /etc/init.d/kdm to /root).

 When you restart you get a console and can start with startx and see the
 output when it fails.

 When everything is working fine, move kdm (or your choosen login-manager
 like
 gdm or xdm) back to /etc/init.d/ and have fun.

 Good luck!

 Hans


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact
 listmas...@lists.debian.org
 Archive: http://lists.debian.org/201107101816.24686.hans.ullr...@loop.de




-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CANhQ+ZihWZJwpcAftg0jzBUibXFHye_+j3tHp_wAXmmi66T=r...@mail.gmail.com



Re: Can not startx anymore after the laptop was forced to turn off

2011-07-22 Thread jiang lei
Here is the result. I installed the nvidia-kernel-dkms and nvidia-glx
package, changed the entry from nouveau to nvidia, and run startx
again. The nvidia LOGO showed and disappeared, still the black screen
is what i get. what else can i do, remove the xorg and install it
again?

any suggestion? thanks

On 7/22/11, jiang lei john.jiang...@gmail.com wrote:
 sorry to reply so late, i was assigned a business trip for 2 weeks,
 now i am back. ;)

 actually the entry in the xorg.conf generated by  Xorg :1 -configure
 was nvidia, i changed it to nouveau because i could not startx. i
 did not mention that in the first mail. Apologies! Now i am installing
 the nvidia-kernel-dkms package and see what happens.


 On 7/10/11, Hans-J. Ullrich hans.ullr...@loop.de wrote:
 ---

   how can i fix the issue, any idea? thanks in advance.

 I suggest, not to use the noveau driver. Maybe you should try to use the
 nvidia-drivers, which are offered in packages. For easy installation, you
 should use the nvidia-kernel-dkms and nvidia-glx package.

 Make sure, the linux-headers afre installed. module-assistant does that
 for
 you.

 When everything is installed,  especially the -dkms packages, then the
 modules
 will be automatically built (thank you, dear developers for the idea of
 dkms!)

 Maybe it is necessary to install the package nvidia-glx by hand.

 Change the entry in xorg.conf from nouveau to nvidia and leave the
 rest
 as
 is.


 For testing purposes I suggest to move your login-manager out of the way,
 so
 it will not start (for example move /etc/init.d/kdm to /root).

 When you restart you get a console and can start with startx and see
 the
 output when it fails.

 When everything is working fine, move kdm (or your choosen login-manager
 like
 gdm or xdm) back to /etc/init.d/ and have fun.

 Good luck!

 Hans


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact
 listmas...@lists.debian.org
 Archive: http://lists.debian.org/201107101816.24686.hans.ullr...@loop.de





-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/canhq+zimvwmxkrfjcjv7jmfn76iol893hn8uno0srjoxxag...@mail.gmail.com



Package name

2006-06-08 Thread Lei Kong
Hi all,

My system is debian testing, I just found I lost man pages
for basic system calls, like open(), read() write() ...
Can someone tell me what is the package I need to install?

Thanks.

Lei Kong


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



bash history search key binding

2006-02-25 Thread Lei Kong
Hi all,

I am using debian testing, and the bash version is 3.1.5.
I have the following lines in my .bashrc to assign arrow keys to history 
search:

bind '\M-[A:history-search-backward'
bind '\M-[B:history-search-forward'


It worked well before, one day, after I did a routine upgrade,
it stopped working. The weird thing is, the arrow key search
still works in a sudo shell.


Anyone has a clue on what's wrong?

Many thanks.

Lei


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Re: bash history search key binding

2006-02-25 Thread Lei Kong


Hi all,

I am using debian testing, and the bash version is 3.1.5.
I have the following lines in my .bashrc to assign arrow keys to
history search:

bind '\M-[A:history-search-backward'
bind '\M-[B:history-search-forward'





what does

$ bind -P | grep history

say?

It worked well before, one day, after I did a routine upgrade,


what do you mean by this? did you upgrade your system as part of your 
weekly/monthly routine.. or did you upgrade something in particular? 
Were.. bash.. the readline library upgraded as part of the process?


it stopped working. The weird thing is, the arrow key search
still works in a sudo shell.


how do you start this sudo shell..? does it run under the same user 
as the other shell..?



Anyone has a clue on what's wrong?


the more likely cause is that the arrow keys are no longer bound when 
running in the regular shell context.. and do get bound in the sudo 
shell .. that's why I suggest checking the output of the bind command..


just a thougt but the up arrow is normally bound by default to 
previous-history - at least that's how it is in the version of bash 
I am running (2.05) .. what happens when you run your regular shell 
and you hit up-arrow.. do you get the default behavior .. or nothing 
happens..?



Thanks for your advice, but misteriously, it is back to normal now.
I swear to god I didn't do anything, oh, wait, maybe I did  an aptitude 
upgrade

without even knowing about it.

BTW, I wasn't talking about the default bash key binding.
I don't know the official name, it works like this:
enter a word, say cd in a bash shell, then press
up and down key will walk you through all previous commands
that start with cd one by one. This is more efficient
than the default behavior of up/down key binding, which
shows you the whole command history one by one.

Lei



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




bash history search key binding

2006-02-24 Thread Lei Kong

Hi all,

I am using debian testing, and the bash version is 3.1.5.
I have the following  lines in my .bashrc to assign arrow keys to 
history search:


bind '\M-[A:history-search-backward'
bind '\M-[B:history-search-forward'

It worked well before, one day, after I did a routine upgrade,
it stopped working. The weird thing is, the arrow key search
still works in a sudo shell.

Anyone has a clue on what's wrong?

Many thanks.

Lei


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: ACPI

2006-02-03 Thread Lei Kong



Hello,

I have Debian testing with kernel 2.6.12-1-386 on an IBM Thinkpad. For
some reason, ACPI is not enabled in the kernel by default. This is
unfortunate, because I cannot monitor the battery without ACPI.

How exactly do I go about configuring the kernel to enable ACPI? I am
sorry for the newbie question, but I have never compiled/configured
the kernel before?

Thanks in advance for your replies and patience.

--
Leonid Grinberg
[EMAIL PROTECTED]


Check out the thinkwiki link:

http://www.thinkwiki.org/wiki/How_to_make_ACPI_work

You can find a lot of information there about using linux on thinkpad.

Lei


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Re: module load sequence

2006-02-02 Thread Lei Kong



Lei Kong wrote:

How do I make sure ide_generic module is loaded before libata and
ata_piix? I need to do this on my thinkpad z60t, because the dvd rom
won't be recognized otherwise.


echo ide_generic  /etc/modules

--
Chris Howie



Thanks, I tried this before, it didn't work for me.
I was following the instructions from thinkwiki:



DVD drive not recognized

The ata_piix SATA driver grabs ownership over the IDE ports when it is 
loaded, but (by default) does not support PATA ATAPI devices such as 
the Ultrabay optical drives. Thus, if the ide driver is compiled as a 
module and loaded after ata_piix, the DVD drive will not be recognized 
by either driver.


Either of the following configurations will work:

* For kernel 2.6.14 and newer: enable ATAPI support in the SATA
  system using |libata.atapi_enabled=1| (see below; this is
  experimental).
* Compile IDE into the kernel (non-module).
* Compile both IDE and SATA as modules and make sure IDE is loaded
  first (the module is called 'ide_generic').

Note that the optical drive must be in the Ultrabay during system boot 
(Ultrabay device swapping is currently unsupported).


I wasn't able to get solution 1 work, solution 2 works, but the machine 
hangs there when
I took the dvd rom out from the bay.  So, I was trying to get number 3 
work. I tried the

follwing things:
1) put ide_generic in /etc/modules, no luck
2) put ide_generic in /etc/mkinitrd/modules or /etc/mkinitramfs/modules 
and reinstall
  the kernel, ide_generic was loaded before ata_piix and libata, but 
then my sata hd

  was recognized as hda instead of sda, which lead to boot failure.
3) make sata modules dependent on ide_generic by modifying 
/lib/modules/xxx/module.dep,

 didn't work.

Lei



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




module load sequence

2006-02-01 Thread Lei Kong

How do I make sure ide_generic module is loaded before libata and
ata_piix? I need to do this on my thinkpad z60t, because the dvd rom
won't be recognized otherwise.

Thanks.

Lei


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Re: sudo and X

2006-01-26 Thread Lei Kong



I haven't seen any definitive answers to this one yet and I'm not sure
if the behavior is different between sarge and etch (I have etch).

After the update of sudo I didn't have any problems, but as soon as I
put the Defaults env_reset into the /etc/sudoers as suggested by the
DSA 946-1, the sudo environment was limited to the few variables.
DISPLAY is not one the those variables.

According to the DSA, additional variables are only passed through when
set as env_check in /etc/sudoers, but I haven't got it working. I.e.

Defaults env_reset
Defaults env_check += DISPLAY

doesn't work for me.

So, until somebody comes up with the correct way of doing this, I use
env_keep to pass the needed variables to sudo:

Defaults env_reset
Defaults env_keep = DISPLAY

in my /etc/sudoers.

Simo


Cool! finally, that explains why X after sudo works on
my desktop, fails on my laptop. Obviously, sudo
upgrade on the desktop did not touch my /etc/sudoers,
and I installed debian on my laptop after the sudo
update, :-P

Thanks!

Lei


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Re: 100dpi vs. 75dpi fonts in X

2006-01-26 Thread Lei Kong

Thanks for the hint, now things looks all right now.
My laptop screen is 14in 5:3 wide screen, guess that's
why things got screwed up. Now I set the display size
explicitly in xorg.conf, I am running debian testing.

No way to let the machine detect the correct DPI
automatically? guess that requires the display
dimension be stored in the hardware.

Lei


-dpi 100 in Xservers is purely arbitrary, intended for the old xfs
system, not for moderm fontconfig apps. You may find elsewhere if you
look around with grep in /etc, e.g. in kdmrc, another instance(s) of an
arbitrary -dpi.

I don't have hardware that supports UseEdidDpi, and so can't test
myself, but I suggest unless you can find out that it's buggy that you
allow it to do its job, and adjust elsewhere to get the sizes you
prefer. If your desktop is set to 10pt, the size really should be 10pt,
and not some artificially shrunken size purporting to be 10pt. If you
don't like 10pt, choose something else in your font size chooser. If
UseEdidDpi on your system is broken, I suggest you try DisplaySize or
Xft.dpi rather than -dpi to force to your preference, or if you're using
Gnome, use its control center. If you are using Gnome, start by checking
in its control center to see if that's where the 75 is coming from when
you disable UseEdidDpi.

The log says 111x111. Is that correct, or nearly so? To see whether 111
or 75 is more nearly correct, look at
http://mrmazda.no-ip.com/auth/dpi.html . For web browsers, it's better
to err on the high side if possible, but the idea is for an inch wide
image on http://mrmazda.no-ip.com/auth/dpi-screen-window.html to display
at least an inch wide. Only after DPI is reasonably set should font size
adjustments elsewhere be made. It isn't just fonts that depend on a
proper DPI setting.
--
Blessed is the nation whose God is the Lord.Psalm 33:12 NIV

Team OS/2 ** Reg. Linux User #211409

Felix Miata  ***  http://mrmazda.no-ip.com/auth/




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Font size discrepancy

2006-01-25 Thread Lei Kong

The actuall font size is smaller when starting kde from  command line,
than the kde font size when started from kdm.  I am running debian
testing on my thinkpad z60t, and the font I am using is Bitstream Vera
Sans.

I noticed there is no difference in the console font size, which
is bitmap font, if I remember correctly.

My guess is the system resolution is different in two cases,
I mean the DPI thing, but I have no clue why they are different.

Can someone tell me how to correct this?

Thanks.

Lei


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Re: su/sudo cannot X

2006-01-19 Thread Lei Kong




As about the security concern, why is it more secure not to let root log
into X than otherwise? why is not letting root start X client after
su/sudo by default a good policy?


Because neither X nor any X applications are secure.


True, root X session over network is insecure,
but how about using locally? the restrictions
could have been set for remote usage only.
Why is it even enforced for local usage?
What is the security concern for local
root X session? can u give an example?

thanks.

Lei


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Re: su/sudo cannot X

2006-01-19 Thread Lei Kong

John Hasler wrote


X and X applications are exceedingly complex, unaudited, and likely to be
chock full of buffer overruns, format string vulnerabilities, and other


I guess a checking on CERT's vulnerability list will reveal if this is true, X 
vs
non-X.


nasties.  Consider the segfaults and memory leaks in Firefox, for example.

It only makes sense that you should want to run as little code as possible
as root.  X drags in cubic miles of it.


Yeah, that's a general rule, but I am not sure if it is legit to 
draw the line on whether it is X or not. I am actually not trying to run 
tons of X applications as root, just some of the admin tools insist

on connecting to X, like my printer driver from samsung. Making sudo/su
X painful doesn't mean I will give up running them. I wondering how much
difference it makes on security by making sudo/su incapable of connecting
to X by default. This is different than logging into X as root.

Lei



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Re: su/sudo cannot X

2006-01-18 Thread Lei Kong

I tried it, and it works with su, but not su - or sudo -s
then I removed these lines, and guess what,
it still allows me to open a window with su, and su -
and sudo -s still fail, mysterious, huh?

In summary, sudo -s never allows me to start an X client.

On my another machine, I never had any problem with openning
a window after sudo -s, and I don't remember I did anything special,
and I don't need to run xhost + either.


try putting this in /root/.bashrc:

# allow root to run programs when another
# user is in X
if [ ! $USER = root ]; then
export XAUTHORITY=/home/$USER/.Xauthority
fi

or just run the export line.  now you should be able to su to root and
run an X11 client locally.




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Re: su/sudo cannot X

2006-01-18 Thread Lei Kong

thanks, sux works beautifully.
but still I don't understand why sudo -s has problems,
and on my desktop, on problem at all, and I don't remember
doing special thing on it.

As about the security concern, why is it more secure not to
let root log into X than otherwise? why is not letting root start X
client after su/sudo by default a good policy?  I just feel it is a
bit funny, root can do anything, it just can't open a damn window.
Maybe I really need to dig into xauth manual for an answer.

Lei


Or you can try sux




# apt-cache show sux
Package: sux
Priority: optional
Section: admin
Installed-Size: 64
Maintainer: Millis Miller [EMAIL PROTECTED]
Architecture: all
Version: 1.0.1-3
Recommends: xbase-clients
Filename: pool/main/s/sux/sux_1.0.1-3_all.deb
Size: 8560
MD5sum: 868e114a14297b521a55a329c45c7d3b
Description: wrapper around su which will transfer your X credentials
Sux is a wrapper around the standard su command which will transfer
your X credentials to the target user.
.
http://sourceforge.net/projects/sux/
( from http://fgouget.free.fr/sux/ )
Tag: admin::login, interface::commandline, security::authentication,
use::login, x11::application




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Re: su/sudo cannot X

2006-01-18 Thread Lei Kong




$xhost +
$ sudo -s
#kedit
kedit: cannot connect to X server


Leave off the xhost line when using sudo.  It inheirets the parent shell's 
environment.
 


I did try  it without xhost+ first, didn't work.
The inherit thing is default, or I need to configure it?
On my desktop, sudo -s does allow me to start X apps
without xhost+ or anything extra.

thanks.

Lei


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




su/sudo cannot X

2006-01-17 Thread Lei Kong
Hi,

I have a strange problem with my thinkpad z60t, running debian testing.
I ran these commands in konsole or xterm under kde:

$xhost +
$ sudo -s
#kedit 
kedit: cannot connect to X server

What is wrong?
My desktop runs debian testing too, but after su or sudo,
root can open windows even without xhost +.

xserver-xorg 6.8.2.dfsg.1-11
sudo 1.6.8p12-1
kdebase   3.4.3-3

Can someone enlighten me?

Thanks.

Lei Kong


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: su/sudo cannot X

2006-01-17 Thread Lei Kong
On Tuesday 17 January 2006 19:17, you wrote:
 On Tue, 2006-01-17 at 17:29 -0500, Lei Kong wrote:
  Hi,
 
  I have a strange problem with my thinkpad z60t, running debian testing.
  I ran these commands in konsole or xterm under kde:
 
  $xhost +
  $ sudo -s
  #kedit
  kedit: cannot connect to X server
 
  What is wrong?
  My desktop runs debian testing too, but after su or sudo,
  root can open windows even without xhost +.
 
  xserver-xorg 6.8.2.dfsg.1-11
  sudo 1.6.8p12-1
  kdebase   3.4.3-3
 
  Can someone enlighten me?
 
  Thanks.
 
  Lei Kong

 This should be considered to be a security feature. X generally does not
 permit root logins and for the same reason, root (via sudo) cannot
 access the X system.

Thanks, but, with xhost +, root should be able to start X applications.
Like I said, I don't have such a problem with my desktop.

Lei

 Thanks,
 Martin OConnor


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Re: superblock last write time is in the future on boot

2006-01-04 Thread Lei Kong

 On Tue, 03 Jan 2006, Brandon Simmons wrote:
  boot. According to the Debian changelog for the e2fsprogs package, the 
  newest
  version checks for this, so I don't know whether e2fsprogs is mistaken or
  whether there really is a problem. How would I go about checking this?
 
 Short and to the point: stop using your RTC in local timezone mode.
 Currently it simply cannot be as well supported as a RTC in UTC mode, and it
 was never a sound engineering idea to begin with to have that in local time,
 even back on the DOS days it was already broken by design.
 
 Real fix: whatever you do, make sure /etc/localtime IS IN THE ROOT
 FILESYSTEM (it is usually a symlink to /usr, and since you got the bug, your
 /usr is probably a separate partition...).
 
I don't have a seperate partition for /usr, and still I have this problem.
so this real fix is not a fix to me, :-(

 
 Cosmetic fix: Edit hwclockfirst.sh and add right at the top of the file
 TZ=TMP+200 (if your timezone is two hours less than UTC) or TZ=ABC-500 (if
 it is five hours more than UTC).  Move hwclock.sh in /etc/rcS.d to priority
 36.  Forget about getting it right for daylight savings, leap seconds and
 any other advanced timezone stuff until after S35mountall has run, you'll
 have to update that TZ= thing manually...
 
 See tzset(3) for more information on TZ. See
 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=342887 for more details.
 
 Note that glibc will have to change how they deal with /etc/localtime for a
 proper fix to this one.
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Re: superblock last write time is in the future on boot

2006-01-04 Thread Lei Kong

   On Tue, 03 Jan 2006, Brandon Simmons wrote:
boot. According to the Debian changelog for the e2fsprogs package, the 
newest
version checks for this, so I don't know whether e2fsprogs is mistaken 
or
whether there really is a problem. How would I go about checking this?
   
   Short and to the point: stop using your RTC in local timezone mode.
   Currently it simply cannot be as well supported as a RTC in UTC mode, and 
   it
   was never a sound engineering idea to begin with to have that in local 
   time,
   even back on the DOS days it was already broken by design.
   
   Real fix: whatever you do, make sure /etc/localtime IS IN THE ROOT
   FILESYSTEM (it is usually a symlink to /usr, and since you got the bug, 
   your
   /usr is probably a separate partition...).
   
  I don't have a seperate partition for /usr, and still I have this problem.
  so this real fix is not a fix to me, :-(
 
 That's a very interesting datapoint.  Does /etc/localtime point to a valid
 file, and more important, to the file corresponding to the timezone your RTC
 is in?  Is UTF=yes set in /etc/default/rcS?  Is your RTC in local time
 instead of in UTC?
 
I followed the link in your previous post, and solved the problem by making
hardware clock store UTC time (UTF=yes in /etc/default/rcS).
Now, my question is, any drawback in doing so? besides possbile windows problem
on a dual boot machine and confusion when looking at bios.

thanks.

Lei Kong


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



firefox crashes on flash

2005-11-15 Thread Lei Kong
My system is debian testing, with kde 3.4, xorg 6.8.2.
After upgradeing from kde 3.3.x to kde 3.4.2,
firefox crashes everytime I visit a site
with flash stuff. Anyone has a clue on how 
to get around without removing flash plugin?

thanks.

Lei Kong



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



one column of pixels missing

2005-06-03 Thread Lei Kong
Hi all,

I have sarge running on a dell inspiron 8200.
In kde, I noticed something really weird:
About 1/3 screen width from the right, there 
is one (maybe more) column of pixels missing. 
Whenever I move a window there, I can see contents 
missing in that column, no matter it is text or graphics.
For example, letter l appears to be ., a squre across
that column looks not-so-square, narrower than it is supposed to be.

When it boots into windows, I don't see such a thing,
so it is not a hardware defect, or windows knows how
to handle it by default.

Anyone met similar problems before?

My video card is a Nvidia Gefore2, and the stock nv driver
is used for X11.

The following is my /etc/X11/XF86Config-4:

Section Files
FontPathunix/:7100# local font server
# if the local font server has problems, we can fall back on these
FontPath/usr/lib/X11/fonts/misc
FontPath/usr/lib/X11/fonts/cyrillic
FontPath/usr/lib/X11/fonts/100dpi/:unscaled
FontPath/usr/lib/X11/fonts/75dpi/:unscaled
FontPath/usr/lib/X11/fonts/Type1
FontPath/usr/lib/X11/fonts/CID
FontPath/usr/lib/X11/fonts/Speedo
FontPath/usr/lib/X11/fonts/100dpi
FontPath/usr/lib/X11/fonts/75dpi
EndSection

Section Module
LoadGLcore
Loadbitmap
Loaddbe
Loadddc
Loaddri
Loadextmod
Loadfreetype
Loadglx
Loadint10
Loadrecord
Loadspeedo
Loadtype1
Loadvbe
EndSection

Section InputDevice
Identifier  Generic Keyboard
Driver  keyboard
Option  CoreKeyboard
Option  XkbRules  xfree86
Option  XkbModel  pc104
Option  XkbLayout us
EndSection

Section InputDevice
Identifier  Configured Mouse
Driver  mouse
Option  CorePointer
Option  Device/dev/psaux
Option  Protocol  ImPS/2
Option  Emulate3Buttons   true
Option  ZAxisMapping  4 5
EndSection
Section InputDevice
Identifier  Generic Mouse
Driver  mouse
Option  SendCoreEventstrue
Option  Device/dev/input/mice
Option  Protocol  ImPS/2
Option  Emulate3Buttons   true
Option  ZAxisMapping  4 5
EndSection

Section Device
Identifier  Generic Video Card
Driver  nv
EndSection

Section Monitor
Identifier  Generic Monitor
HorizSync   30-75
VertRefresh 50-85
Option  DPMS
EndSection

Section Screen
Identifier  Default Screen
Device  Generic Video Card
Monitor Generic Monitor
DefaultDepth24
SubSection Display
Depth   1
Modes   1600x1200
EndSubSection
SubSection Display
Depth   4
Modes   1600x1200
EndSubSection
SubSection Display
Depth   8
Modes   1600x1200
EndSubSection
SubSection Display
Depth   15
Modes   1600x1200
EndSubSection
SubSection Display
Depth   16
Modes   1600x1200
EndSubSection
SubSection Display
Depth   24
Modes   1600x1200
EndSubSection
EndSection

Section ServerLayout
Identifier  Default Layout
Screen  Default Screen
InputDevice Generic Keyboard
InputDevice Configured Mouse
InputDevice Generic Mouse
EndSection

Section DRI
Mode0666
EndSection



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Re: gnome and kde conflicts?

2005-05-28 Thread Lei Kong
 Incoming from Lei Kong:
  
  I like the consistent look across kde and gtk applications offered by
  this feature, but with this enabled, gnome doesn't start any more.
 
 The first thing you should be offering people who might be able to
 help you is error messages.  Does ~/.xsession-errors exist?  With the
 line env  ~/.xenv in ~/.xsession (or ~/.xinitrc, if that's what you
 use), what's in ~/.xenv?  Also see /var/log/XFree86*.  Do everything
 you can think of to trap error messages.  _Then_ we (or someone) might
 be able to help.
 
 Personally, I choose to avoid the living daylights out of both of them
 (there are many far less finicky environments out there), but that's
 neither here nor there.
 
Here you go:
Xsession: X session started for konglei at Sat May 28 15:14:04 EDT 2005
SESSION_MANAGER=local/puma:/tmp/.ICE-unix/5202
Gnome-Message: gnome_execute_async_with_env_fds: returning -1
Gnome-Message: gnome_execute_async_with_env_fds: returning -1
Not initializing the Gtk-Qt theme engine

It seems gnome is trying to start qt engine, which is not available in gnome?



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



gnome and kde conflicts?

2005-05-27 Thread Lei Kong
I am using sarge, both kde and gnome are installed.

I chose to use kde style and font for gtk application
in kde (kcontrol - appearance  themes - gtk styles and fonts),
then I found kde wrote the following into .gtkrc-2.0:

include /usr/share/themes/Qt/gtk-2.0/gtkrc

style user-font
{
  font_name=Bitstream Vera Sans 12
}
widget_class * style user-font

gtk-theme-name=Qt
gtk-font-name=Bitstream Vera Sans 12


I like the consistent look across kde and gtk applications offered by
this feature, but with this enabled, gnome doesn't start any more.
If I remove the lines written by kde in .gtkrc-2.0, gnome will start.
Does anyone know how to get around this problem? It will be great
if I can have this kde-gtk thing and gnome work at the same time.

By the way, kdm is running on my machine, not sure if it has something
to do with this.

thanks.

Lei


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: interesting boot problem

2005-05-27 Thread Lei Kong

 Ok. Here is the story. I have Debian Sarge CDs. I can boot the first
 cd on my laptop and install Debian easily. But when i want to boot
 that cd with my old pc which is P2 i cant boot it. But, i can boot
 other distro's cds with that machine, Slackware and Knoppix is an
 exapmle. So i cant figure out where is the problem. I copied the cd
 and try, but no solution. I have a CDrom which is SONY and CD-WR which
 is ASUS. I cant boot the cd by using both of them. This is so
 interesting and i cant find any suggustion.
 
Maybe you need to upgrade your bios, just a guess.
I had the same problem when trying to install gentoo
on a PII, solved it after upgrading bios.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: xine error

2004-12-02 Thread Lei Yu
I have tried what you said below for the mouse, but I can only use the
touch pad, the ps2 mouse is disabled, I could use both on Suse 9.1
before, do you know a way to do this?

Did what  you said for the dvd, still got error, it cannot find dvd. 

I kept on have xine engine error

There is no input plugin available to handle 'dvd:/' Maybe MRL syntax
is wrong or file/stream source doesn't exist.

please help. Thanks a lot.




On Mon, 29 Nov 2004 15:11:14 -0800, Jim McCloskey [EMAIL PROTECTED] wrote:
 | I have just installed debian on my machine. But the touch pad does
 
 
 | not work and also the dvd player xine does not work either. I thought
 | swap from suse to debian enable me to watch dvd on my laptop, but it
 | doesn't seem to be the case. :-( it kept on throw the error message,
 | the plugin for /dev/dvd cannot be found...:-(
 
 For the second of these problems, I believe that you need the libdvdcss
 libraries. Because of their dubious legal status, they are not included
 in Debian proper (they decrypt encrypted DVDs). You can install the libdvdcss
 package from unofficial Devian sources. Add this to your 
 /etc/apt/sources.list:
 
   deb http://download.videolan.org/pub/videolan/debian sid main
 
 then:
 
   apt-get update
   apt-get install libdvdcss
 
 Then when you click on the DVD button of the xine GUI the decryption libraries
 will be called and you should be able to watch (encrypted) DVDs just fine.
 
 For the touchpad, if you have a Synaptics touchpad, you can install the 
 special
 driver for it, and then in /etc/X11/XF86Config-4. include this stanza:
 
 --
 Section InputDevice
   Driversynaptics
   IdentifierTouchPad
   OptionDevice/dev/psaux
   OptionProtocol  auto-dev
   OptionLeftEdge  1900
   OptionRightEdge 5400
   OptionTopEdge   1900
   OptionBottomEdge4000
   OptionFingerLow 25
   OptionFingerHigh30
   OptionMaxTapTime180
   OptionMaxTapMove220
   OptionVertScrollDelta 100
   OptionMinSpeed  0.02
   OptionMaxSpeed  0.18
   OptionAccelFactor 0.0010
   OptionSHMConfig on
 EndSection
 ---
 
 I compiled this driver from source, but there seems to be a Debian package
 in the unstable archive:
 
 xfree86-driver-synaptics (0.13.6-1)
 
 Hope this helps,
 
 Jim
 



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



xine error

2004-11-29 Thread Lei Yu
Hello,

I have just installed debian on my machine. But the touch pad does not
work and also the dvd player xine does not work either. I thought swap
from suse to debian enable me to watch dvd on my laptop, but it
doesn't seem to be the case. :-( it kept on throw the error message,
the plugin for /dev/dvd cannot be found...:-(

can anyone help.

Larinia


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: xine error

2004-11-29 Thread Lei Yu
/dev/dvd does exist, and it is linked to hdc. I will give vlc a try. Thanks.


On Mon, 29 Nov 2004 13:49:52 +, Anthony Campbell
[EMAIL PROTECTED] wrote:
 On 29 Nov 2004, Lei Yu wrote:
 
 
  Hello,
 
  I have just installed debian on my machine. But the touch pad does not
  work and also the dvd player xine does not work either. I thought swap
  from suse to debian enable me to watch dvd on my laptop, but it
  doesn't seem to be the case. :-( it kept on throw the error message,
  the plugin for /dev/dvd cannot be found...:-(
 
  can anyone help.
 
  Larinia
 
 Does /dev/dvd exist? If not, you may need to make it a link to /dev/hdc
 or wherever your CD drive is. (It's /dev/hdc on my Thinkpad.)
 
 Incidentally, have a look at vlc. I find this to be better than xine for
 watching dvds.
 
 --
 [EMAIL PROTECTED]||  http://www.acampbell.org.uk
 using Linux GNU/Debian ||  for book reviews, electronic
 Windows-free zone  ||  books and skeptical articles
 
 --
 To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
 



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: xine error

2004-11-29 Thread Lei Yu
just tried vlc, I got the following messages

libhal.c 696 : org.freedesktop.DBus.Error.ServiceDoesNotExist raised
Service org.freedesktop.Hal does not exist

libdvdnav: Using dvdnav version 0.1.9 from http://dvd.sf.net
libdvdread: Encrypted DVD support unavailable.
libdvdread: Could not open input: No medium found
libdvdread: Can't open /dev/dvd for reading
libdvdnav: vm: faild to open/read the DVD
libdvdread: Encrypted DVD support unavailable.

****
**  No css library available. See **
**  /usr/share/doc/libdvdread3/README.Debian  **
**  for more information. **
****

libdvdread: Could not open input: No medium found
libdvdread: Can't open /dev/dvd for reading
[0236] dvdread demuxer error: DVDRead cannot open source: /dev/dvd
[0237] vcd access error: could not read TOCHDR
[0237] vcd access error: no movie tracks found
[0237] access_file access error: file /dev/dvd is empty, aborting
[0237] cdda access error: could not read TOCHDR
[0237] cdda access error: no audio tracks found
[0235] main input error: no suitable access module for `dvd:///dev/dvd'

Is it because the vlc don't support encrypted dvds? is there a way to
get around this?

Larinia


On Mon, 29 Nov 2004 18:40:24 +, Lei Yu [EMAIL PROTECTED] wrote:
 /dev/dvd does exist, and it is linked to hdc. I will give vlc a try. Thanks.
 
 
 
 
 On Mon, 29 Nov 2004 13:49:52 +, Anthony Campbell
 [EMAIL PROTECTED] wrote:
  On 29 Nov 2004, Lei Yu wrote:
 
 
   Hello,
  
   I have just installed debian on my machine. But the touch pad does not
   work and also the dvd player xine does not work either. I thought swap
   from suse to debian enable me to watch dvd on my laptop, but it
   doesn't seem to be the case. :-( it kept on throw the error message,
   the plugin for /dev/dvd cannot be found...:-(
  
   can anyone help.
  
   Larinia
 
  Does /dev/dvd exist? If not, you may need to make it a link to /dev/hdc
  or wherever your CD drive is. (It's /dev/hdc on my Thinkpad.)
 
  Incidentally, have a look at vlc. I find this to be better than xine for
  watching dvds.
 
  --
  [EMAIL PROTECTED]||  http://www.acampbell.org.uk
  using Linux GNU/Debian ||  for book reviews, electronic
  Windows-free zone  ||  books and skeptical articles
 
  --
  To UNSUBSCRIBE, email to [EMAIL PROTECTED]
  with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
 
 



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



problem while update to kernel 2.6.6

2004-06-14 Thread Jinzhi Lei
Dear all,
 While I update the the kernel from 2.2 to 2.6.6, I had the following question:
 VFS: Cannot open root device 1606 or unknown-block(22,6)
 Please append a correct root= boot option
 Kernel panic: VFS: Unable to mount root fs on unknown-block(22,6)

But I had root=/dev/hdc6 at the file LILO.conf. Who can tell me how to resolve this 
problem? Thank you. 

Jinzhi Lei
[EMAIL PROTECTED]
2004-06-14


Re: Unavailable Delivery : Mail was rejected

2004-04-05 Thread Rose Lei
,



=== 2004-04-05 16:57:00 ===

Response Message :
   To: [EMAIL PROTECTED]
   Subject:
   Reason: 550 Error: No attachments allowed
Response Message :
   To: [EMAIL PROTECTED]
   Subject:
   Reason: 550 Error: No attachments allowed

= = = = = = = = = = = = = = = = = = = =


[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@



Rose Lei
[EMAIL PROTECTED]
   2004-04-05





How do I know which version of GNOME I am using?

2004-03-08 Thread Lei
How do I know which version of GNOME I am using?

(I used apt-get from ftp.us.debian.org for stable version)

and if I am not using the 2.4 version, how do I get the latest version?

Lei

--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Where is XFree86

2004-03-07 Thread Lei
Hi,

I saw Kent's message,

I did apt-get install x-windows-system as root

It says could not find package x-windows-system

Is there something wrong with my apt source list?

but I use the ones from debian.org... :(

--

Also, how come that I can't receive the messages that I sent from this 
mailing list?

Lei

--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



how to force the install cd to use EXT3 type partition

2004-03-07 Thread Lei
I am trying to install debian using the vanilla CD.

But when I choose to partition the disk, it only tells me 82 for swap, 
and 83 for linux native.

I found 83 could be EXT2, EXT3 or reiserfs, but when I am doing the 
initializing the disk part, it tells me that it is going to make it 
EXT2 only, I don't have any other choice...

Can anyone tell me, what should I do to enable the choice of which type, 
(EXT2, EXT3, REISERFS) to use for my file system?

Lei

--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Where is XFree86?

2004-03-06 Thread Lei
I am a newbie debian and I am trying to make my toshiba 2405-s202 laptop 
 to work with xserer.

I found 
http://lists.debian.org/debian-user/2002/debian-user-200210/msg01878.html

but I can't find where XFree86 executable is, which I would like to run 
XFree86 -configure for auto detection configuration...

Please help

Lei

--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]