?
Solved

Lock the x terminal / display.

Posted on 2004-04-21
6
Medium Priority
?
255 Views
Last Modified: 2010-04-21
Hi - I am trying to understand how we can lock the x terminal / display on RedHat?
 Are there some API's that we can use for this purpose ?

Basically lock the x display just like Xlock does but I would like to implement my own and not use xlock.

Thanks.
0
Comment
Question by:menong120699
3 Comments
 
LVL 12

Accepted Solution

by:
stefan73 earned 200 total points
ID: 10886291
Hi menong,
Check the source code of xlockmore at
http://debian.mirror.solnet.ch/debian-archive/dists/Debian-1.1/source/x11/xlockmore-3.9-0.tar.gz

You'll find the source for locking in xlock.c

Cheers,
Stefan
0
 
LVL 9

Assisted Solution

by:Alf666
Alf666 earned 200 total points
ID: 10892025
Basically, "locking" just means grabbing the keyboard and mouse events. You can use :

XGrabKeyboard
XGrabPointer

use man :

man XGrabKeyboard
man XGrabPointer

0
 

Author Comment

by:menong120699
ID: 10901277
How can I make use of xlock.java ? I want to launch my own Java login GUI instead of the standard login and password gui that xlock provides.

Also, which file does xlock use to implement the login/passwd GUI ?

Thanks.
0

Featured Post

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.

Question has a verified solution.

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

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

862 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