View previous topic :: View next topic |
Author |
Message |
ashi n00b
Joined: 22 Aug 2011 Posts: 5
|
Posted: Sat Dec 03, 2011 6:09 am Post subject: problem with gnome-terminal and lxterminal |
|
|
Hi,all. I have a problem with gnome-terminal in my Openbox3. I try to start X automatically as login by adding a startx.sh in the /etc/profile.d/ directory. And the startx.sh just has only one line:startx. When I login, it work very well as I want. However, when I start a terminal(the gnome-terminal exactly) in Openbox, it prompts: can't start X, X is running. I'm sure the reason it that the gnome-terminal is running /etc/profile again. It seems that gnome-terminal is always started as a login shell, and leads to always run /etc/profile.
And then I try to use lxterminal instead. It has no problem like gnome-terminal. But under lxterminal, I find the vim become extremely slow, however, vim is very fast under gnome-terminal.
How can I solve those problems?
Best regards. |
|
Back to top |
|
|
Aquous l33t
Joined: 08 Jan 2011 Posts: 700
|
Posted: Sat Dec 03, 2011 9:00 am Post subject: |
|
|
Why don't you just use /etc/init.d/xdm to start X? |
|
Back to top |
|
|
Dominique_71 Veteran
Joined: 17 Aug 2005 Posts: 1895 Location: Switzerland (Romandie)
|
Posted: Sun Dec 04, 2011 5:00 pm Post subject: |
|
|
I have this into my ~/.xinitrc :
Code: | exec ck-launch-session fvwm-crystal 2> .errors_fvwm-crystal |
See https://forums.gentoo.org/viewtopic-t-858965
Also, you must not make a custom script called startx.sh. It is already a program called startx into your system, and you can configure it into ~/.xinitrc _________________ "Confirm You are a robot." - the singularity |
|
Back to top |
|
|
Dominique_71 Veteran
Joined: 17 Aug 2005 Posts: 1895 Location: Switzerland (Romandie)
|
Posted: Sun Dec 04, 2011 5:20 pm Post subject: |
|
|
Aquous wrote: | Why don't you just use /etc/init.d/xdm to start X? |
It is a long story. With wm like fvwm or openbox, their developers recommend to launch them with startx because it is simpler (from the system point of vue) and they can sometime interfere with the wm, making debugging harder, or causing strange problems.
Also, on gentoo, startx is installed by default and very easy to configure. _________________ "Confirm You are a robot." - the singularity |
|
Back to top |
|
|
ashi n00b
Joined: 22 Aug 2011 Posts: 5
|
Posted: Wed Dec 07, 2011 5:55 am Post subject: |
|
|
Dominique_71 wrote: | I have this into my ~/.xinitrc :
Code: | exec ck-launch-session fvwm-crystal 2> .errors_fvwm-crystal |
See https://forums.gentoo.org/viewtopic-t-858965
Also, you must not make a custom script called startx.sh. It is already a program called startx into your system, and you can configure it into ~/.xinitrc |
Dominique_71, thanks for your reply. I really have such stuff in my ~/.xinitrc:
Code: | exec openbox-session |
but I try to make it more automatically. that is when I login, namely, after type the password and tap enter, I want gentoo to run startx automatically. |
|
Back to top |
|
|
Dominique_71 Veteran
Joined: 17 Aug 2005 Posts: 1895 Location: Switzerland (Romandie)
|
Posted: Wed Dec 07, 2011 7:21 pm Post subject: |
|
|
ashi wrote: | Dominique_71 wrote: | I have this into my ~/.xinitrc :
Code: | exec ck-launch-session fvwm-crystal 2> .errors_fvwm-crystal |
See https://forums.gentoo.org/viewtopic-t-858965
Also, you must not make a custom script called startx.sh. It is already a program called startx into your system, and you can configure it into ~/.xinitrc |
Dominique_71, thanks for your reply. I really have such stuff in my ~/.xinitrc:
Code: | exec openbox-session |
|
This is for you gnome-terminal issue.
ashi wrote: | but I try to make it more automatically. that is when I login, namely, after type the password and tap enter, I want gentoo to run startx automatically. |
You can try to add "startx" at the end of your ~/.bash_profile file. Never tried it, but it should work, _________________ "Confirm You are a robot." - the singularity |
|
Back to top |
|
|
ashi n00b
Joined: 22 Aug 2011 Posts: 5
|
Posted: Fri Dec 09, 2011 9:49 am Post subject: |
|
|
Dominique_71 wrote: |
This is for you gnome-terminal issue.
|
Yeah, I also think the issue is related to gnome-terminal.
And accidentally, I found if I start vim without ~/.vimrc file in lxterminal, vim is very fast. However, even start with an empty vimrc file, vim becomes very slow again. When tested under gnome-terminal, vim has no such problem. Then I think there is also a problem with lxterminal.
And adding a startx line to the ~/.bash_profile has a same result as adding my startx.sh file to /etc/profile.d directory. |
|
Back to top |
|
|
|