LinuxQuestions.org
Review your favorite Linux distribution.
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 09-07-2007, 05:46 AM   #1
linuxbetty
LQ Newbie
 
Registered: Aug 2007
Posts: 3

Rep: Reputation: 0
set up user to start with terminal


Hi,

I have set up a user that starts with an application (by setting the application as login shell in passwd). The application is a command line interface, so I get an x-server xsession error when I try to log in from my standard graphical Fedora Core 2 login page.

I can log in via ssh or from any other command line terminal alright.

Is there any way to set the user up so that I can log into the x-server, but with a command line terminal running?

Thanks.
 
Old 09-07-2007, 06:34 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
In Kde, each user has a ~/.kde/Autostart folder. One can drag the icon of the console from the system tray and drop it in the Auto start folder. From the dialogue box that pops up, select 'Link here' to add a link. On boot and login, Kde starts with a console window open and ready for use.

I would expect that the Gnome desktop has something similar to autostart an application.
 
Old 09-07-2007, 07:23 AM   #3
Valkyrie_of_valhalla
Member
 
Registered: Jan 2006
Location: Romania
Distribution: Suse 12.0, Slackware 12.1, Debian, Ubuntu, Gentoo
Posts: 301

Rep: Reputation: 30
If you want Linux to boot in CLI mode you need to set the default runlevel in /etc/inittab . Usually CLI mode is 3. Graphical runlevel is usually 4 or 5.

There should be a line such as
Code:
id:3:initdefault:
Where 3 is the runlevel. The file should give you details regarding the runlevels on Fedora.

But I'm curious... what kind of application is that, and why is it needed? Why not use the standard bash or sh, and then launch that program? Depending on that, changing runlevels might make it work or not...
 
Old 09-07-2007, 01:56 PM   #4
linuxbetty
LQ Newbie
 
Registered: Aug 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you for your suggestions.

To satisfy your curiosity: I don't always want to give access to the linux system, just to the CLI of that application.

Thanks for your help.
 
  


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
How to set wallpaper via terminal? Vitalka Linux - General 3 05-13-2010 01:35 AM
Cannot start vnc server because the USER environment variable is not set izac5 Linux - Newbie 4 11-21-2009 08:10 PM
cpufreqd can't start (Couldn't set profile "Performance High" set for cpu0) simopal6 Linux - Laptop and Netbook 2 05-10-2007 08:31 AM
Dumb X terminal; how to set up? outsider787 Linux - Networking 3 10-21-2005 05:15 PM
How to view set-user-ID and set-group-ID Xris718 Linux - General 7 01-10-2004 01:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:19 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration