[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 221
  • Last Modified:

starting an X-app automatically from boot up.

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
mag062397
Asked:
mag062397
  • 3
  • 2
1 Solution
 
scrytchCommented:
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
 
ahoffmannCommented:
ad a line in your /etc/inittab (use a runlevel of you choice instead of 4):

al:4:respawn:/bin/login username
0
 
mag062397Author Commented:
That looks like it'll work.

But, will the login program prompt for a password?
0
Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

 
ahoffmannCommented:
Yes, it will prompt for a password.
0
 
mag062397Author Commented:
That looks like it'll work.

But, will the login program prompt for a password?
0
 
mag062397Author Commented:
Ignore previos comment.  My Netscape Reload also reposted.

0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now