LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-19-2004, 04:24 PM   #1
vitaliiluchka
LQ Newbie
 
Registered: Sep 2004
Posts: 4

Rep: Reputation: 0
konsole or gnome-terminal at startup


this must be easy for someone here. How do i make konsole or gnome-terminal to open
at start up when user logs in?
 
Old 10-19-2004, 05:29 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Depends on which wm you're using and how you start X
and how they log into the machine ... the most generic
way would be to put a .xsession/.xinitrc file in their home
that does have

xterm
exec <their windowmanager>

as the last two lines (and no exec before those ;})


Cheers,
Tink
 
Old 10-19-2004, 05:32 PM   #3
Peacedog
Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,292

Rep: Reputation: 167Reputation: 167
<edit>Tinkster to the rescue. Quicker than I once again. </edit>

Last edited by Peacedog; 10-19-2004 at 05:34 PM.
 
Old 10-19-2004, 07:44 PM   #4
vitaliiluchka
LQ Newbie
 
Registered: Sep 2004
Posts: 4

Original Poster
Rep: Reputation: 0
thanks for your reply Tink
I am new to Linux and don't know much about it.
i followed what you said
1) created directory .xsession in my home directory
2)created file .xinitrc in that directory with following text
xterm
konsole
3) i logged out and tried to log in again but It was unseccesful.
some kind of session error pop up and after i click ok i was send back to logging
window(i use graphical login window and x-windows is KDE)
can you tell me exactly what i have to write in .xinitrc file ?

Depends on which wm you're using and how you start X
and how they log into the machine ... the most generic
way would be to put a .xsession/.xinitrc file in their home
that does have

xterm
exec <their windowmanager>

as the last two lines (and no exec before those ;})


Cheers,
Tink
 
Old 10-19-2004, 10:58 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Sorry, my bad.

.xsession and .xinitrc are files... .xsession is being used
if you e.g. use xdm for a login. If the users long in on the
shell and then run startx .xinitrc is being used.

My .xsession file looks like this:
Code:
#!/bin/sh
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi


if [ -f $userresources ]; then
    xrdb -merge $userresources                                                   
fi

if [ -f $usermodmap ]; then
    xmodmap $usermodmap                                                           
fi

/usr/local/bin/tpb&
/usr/X11R6/bin/xscreensaver& 
exec /usr/local/bin/fluxbox

Cheers, and good luck
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stop gnome terminal startup notification manobes Linux - Software 0 11-04-2004 09:42 AM
Alternative terminal to konsole & gnome-terminal Adony Linux - Software 3 10-08-2004 03:59 AM
KDE konsole - Gnome-terminal language encoding or keytab thk33 Linux - Software 3 09-19-2004 03:59 PM
gnome-terminal command line startup fredgarvin Red Hat 2 09-16-2004 10:39 PM
Fortune on gnome-terminal startup? schmmd Linux - Software 1 03-08-2004 05:18 PM


All times are GMT -5. The time now is 03:07 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration