LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-20-2008, 05:26 AM   #1
grzes
LQ Newbie
 
Registered: Mar 2008
Location: Poland
Distribution: Ubuntu 7.10
Posts: 3

Rep: Reputation: 0
Smile Using virtual terminal as console


Hello guys!

I have a problem that I can't resolve for a long time, maybe you can help me. I have a console application written in dialog, this is a couple of simple function for users. I would like to run this dialog inside virtual terminal called fbiterm, but this virtual terminal needs to be run on system startup and inside them i want to run this dialog application.

I read something about change inittab entries but don't know exactly how run this application inside fbiterm.

Any solutions guys?, would be great
thanks
 
Old 03-20-2008, 11:26 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
To generalize your question: you want to start an interactive text-mode application on system boot, but there is no text terminal in which to run the application until after the system has booted and someone has logged in. This is a somewhat common problem. The one workaround that I have used is very messy, and I would be happy if someone could come up with a better solution.
I start up a Gnu screen session. Using some scripting in rc.local, I stuff commands into the screen session, to start up my application(s). Screen is started in multi-user mode, so anyone sufficiently privileged can later connect to the session. The terminal that screen uses initially is an xterm, which uses the virtual X server, xvfb, which is started up before xterm & screen. Much of this would be unnecessary, but for a bug in screen, which causes it to disregard any stuff commands until such time as it has entered the 'attached' state. It can be started in 'detached' mode, and even receive commands in 'detached' mode, but must first have entered the 'attached' state in order to receive any stuff commands. In order to 'attach' during boot time, it requires the terminal, which requires a tty....

Looking for a better way.

--- rod.
 
Old 03-21-2008, 02:47 AM   #3
grzes
LQ Newbie
 
Registered: Mar 2008
Location: Poland
Distribution: Ubuntu 7.10
Posts: 3

Original Poster
Rep: Reputation: 0
The problem is that I don't have X, only raw console, what about that?
 
Old 03-21-2008, 12:02 PM   #4
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
man xvfb.
There is no X when a system first boots either.
--- rod.
 
Old 03-22-2008, 03:55 AM   #5
grzes
LQ Newbie
 
Registered: Mar 2008
Location: Poland
Distribution: Ubuntu 7.10
Posts: 3

Original Poster
Rep: Reputation: 0
Lightbulb

thank you very much theNbomr, I'll check it.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between a Shell terminal window and the KDE Linux Console terminal window? bostonantifan Fedora 2 03-25-2007 07:23 PM
Virtual Console gitano Linux - Newbie 2 03-17-2006 07:27 AM
virtual terminal deity46 Fedora 2 06-07-2005 08:39 PM
virtual console Ammad Linux - Networking 2 04-05-2005 10:20 PM
virtual console kjsubbu Linux - Networking 0 07-23-2003 11:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:18 AM.

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