Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problem with gnome-terminal and lxterminal
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
ashi
n00b
n00b


Joined: 22 Aug 2011
Posts: 5

PostPosted: Sat Dec 03, 2011 6:09 am    Post subject: problem with gnome-terminal and lxterminal Reply with quote

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
View user's profile Send private message
Aquous
l33t
l33t


Joined: 08 Jan 2011
Posts: 700

PostPosted: Sat Dec 03, 2011 9:00 am    Post subject: Reply with quote

Why don't you just use /etc/init.d/xdm to start X?
Back to top
View user's profile Send private message
Dominique_71
Veteran
Veteran


Joined: 17 Aug 2005
Posts: 1712
Location: Switzerland (Romandie)

PostPosted: Sun Dec 04, 2011 5:00 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Dominique_71
Veteran
Veteran


Joined: 17 Aug 2005
Posts: 1712
Location: Switzerland (Romandie)

PostPosted: Sun Dec 04, 2011 5:20 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
ashi
n00b
n00b


Joined: 22 Aug 2011
Posts: 5

PostPosted: Wed Dec 07, 2011 5:55 am    Post subject: Reply with quote

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
View user's profile Send private message
Dominique_71
Veteran
Veteran


Joined: 17 Aug 2005
Posts: 1712
Location: Switzerland (Romandie)

PostPosted: Wed Dec 07, 2011 7:21 pm    Post subject: Reply with quote

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,
Back to top
View user's profile Send private message
ashi
n00b
n00b


Joined: 22 Aug 2011
Posts: 5

PostPosted: Fri Dec 09, 2011 9:49 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum