problem in restart x windows


Forum: X and Fluxbox
Topic: problem in restart x windows
started by: kuangtu

Posted by kuangtu on May 11 2006,07:58
i install a DSL in my flash memory.
the knoppix is the same one as in the DSL-2.2.iso.
when i boot from the flash ,i can enter the x windows.
Then i enter the Ctrl+Alt+backspace to quit the x windows.
But,i restart the x windows through command startx ,there is
a problem. the system can enter the x windows ,but the background and icons are disppeared.the x windows is very ugly.

i don't know hwo to fixed it.
3ks!

Posted by kerry on May 11 2006,09:37
?
Why are you using ctrl+alt+backspace?
Does it do the same thing when you right click the desktop>window manager> exit?
Did you try right click the desktop> desktop>full enhanced desktop?

Posted by mikshaw on May 11 2006,15:05
Quote (kerry @ May 11 2006,05:37)
?
Why are you using ctrl+alt+backspace?

Because it's quicker and easier than "right click the desktop>window manager> exit", and is a standard method of killing X.

kuangtu: Did you make any changes to .xinitrc or any other config file in /home/dsl?

Posted by pr0f3550r on May 11 2006,18:09
kuangtu,
try this: when you are in console, instead of startx type 'exit', that will read .bash_profile.

Another thing that worked for me on jwm was setting  a higher pause (default is 2, I think).

Posted by mikshaw on May 11 2006,18:38
Basically all .bash_profile does in a default DSL setup is run "startx", so there's no reason to exit unless you've made changes to the file (even then you can do "source .bash_profile" instead of logging out).
Posted by kerry on May 11 2006,20:00
mikshaw, i knew that. :p
I meant to ask why is exiting at all? :D  But i was tired so i kept the question simple, did i mention i was tired? :O

Posted by mikshaw on May 12 2006,05:26
I understand. =o)

I can't speak for kuangtu, but personally I like to leave X occasionally simply because the console is much more serene in some situations....no icons, no menus, few colors, no mouse, no distractions...nothing but my single black screen and text.

Posted by skaos on May 12 2006,11:13
I don't have a DSL box nearby, but normally you should be able to switch to console with crtl+alt+F1 through crtl+alt+F6. Use crtl+alt+F7 to switch back to X.
Posted by mikshaw on May 12 2006,14:02
<voice class="homestar">I think I has a solution!</voice>

kuangtu: did you happen to cd to another directory before starting X?
DSL has more than a couple of features that tend not to work properly if you are not in /home/dsl when X is started, including xmms skin and desktop icons.  The default configs for these programs use relative paths (".xtdesktop" instead of "/home/dsl/.xtdesktop"), so they will not work unless you either change the configs or cd to $HOME before running them.

If you don't want to bother hunting down the configs, you could make an alias to startx in /home/dsl/.bash_profile:
Code Sample
alias startx='cd && startx'


skaos: That doesn't work in a default DSL setup in runlevel 5, since there are no virtual terminals.  Besides that, sometimes a user doesn't want X running at all.

Posted by pr0f3550r on May 12 2006,15:21
Mikshaw,
that's exactly what I meant when suggesting to exit.
Exiting, you login again and that resets the paths.

Posted by mikshaw on May 12 2006,17:08
ah...i see how that works now, thanks.
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.