[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

starting an X-app automatically from boot up.

Posted on 1998-07-09
6
Medium Priority
?
220 Views
Last Modified: 2010-04-20
I would like to have my Redhat 5 linux computer boot-up and automatically
startup an X application.  

I could do this (I think) if I could get linux to automatically log in a user.  That is,
I would create a user account with maybe a .login file that started X.  And
I'm guessing that startx has some command line arguments for auto starting an
app.  Does this make sense?  Is it possible?  Is there a better way to do this?

Bascially I want my app to be the only app that "appears" to be running.  I
have already created custom X config files that remove all of the menu items,
etc.  My app will also have an option for shuting the computer down.  I'm
trying to create a dedicated, bullet-proof, idiot-proof computer for running
a single program.

Any suggestions?
0
Comment
Question by:mag062397
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 

Expert Comment

by:scrytch
ID: 1637520
Put any programs you want to run when X starts in the .Xclients file.  Generally the window manager is last, and has an "exec" before it, ostensibly to keep it from running slow.

As for bulletproof, you'll want to either lock all the consoles with vlock -all after X is started (it shouldn't lock X), or compile linux without vc support.  Have the user's .login "exec startx" and not just startx, the former will replace the login shell, so if X crashes, it will log the user out, not give it a shell.

As for auto-logging a user in, that one's really tough, and I don't have an answer, so I'll leave it open.


0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 600 total points
ID: 1637521
ad a line in your /etc/inittab (use a runlevel of you choice instead of 4):

al:4:respawn:/bin/login username
0
 

Author Comment

by:mag062397
ID: 1637522
That looks like it'll work.

But, will the login program prompt for a password?
0
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 
LVL 51

Expert Comment

by:ahoffmann
ID: 1637523
Yes, it will prompt for a password.
0
 

Author Comment

by:mag062397
ID: 1637524
That looks like it'll work.

But, will the login program prompt for a password?
0
 

Author Comment

by:mag062397
ID: 1637525
Ignore previos comment.  My Netscape Reload also reposted.

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question