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 07-11-2017, 08:30 AM   #1
mnageeb
LQ Newbie
 
Registered: Jul 2017
Posts: 2

Rep: Reputation: Disabled
ways to setup one application device


hi Guys

i just would like to ask about the ways the one can follow to achieve the following

creating Setup box to only run one application same as kiosks in malls and airport , i have application which is auto launch once the device boot in addition to follow remove all ubuntu desktop elements , protect terminal launching by password / custom key combination
 
Old 07-11-2017, 08:43 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,789
Blog Entries: 13

Rep: Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831
Hi and welcome to LQ.

That's a moderately large thing, notwithstanding that you may wish to remove the mouse cursor also as part of that.

Short answer is to run the XServer, but not a window manager. This is one part of how I've done that in the past.

There are various settings in the XServer config to do things like rotate the screen, turn off cursors, and so forth. Your application needs also to be able to be full screen with no borders or window styles. This is why it is better to not use a Window manager because all that styling usually does come from the window manager.

There are some situations where you can have your application write directly to the frame buffer, and thus not use even the XServer, but I've never been successful unless I purchased a commercially tuned version of Linux where they have staged this as part of the sale for the specific project.

Other than that, I've said this is a large task. I can offer guidance by way of some former experience with it, however you'll need to go down the path a bit yourself to determine what things work for you as well as what is adequate considering some of it may be a lot of difficult to find settings, which are small and subtle, just not blatantly explained in any documentation.
 
Old 07-11-2017, 01:39 PM   #3
mnageeb
LQ Newbie
 
Registered: Jul 2017
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks for your reply , do you have any documentation , web links for something similar so we can start with it





Quote:
Originally Posted by rtmistler View Post
Hi and welcome to LQ.

That's a moderately large thing, notwithstanding that you may wish to remove the mouse cursor also as part of that.

Short answer is to run the XServer, but not a window manager. This is one part of how I've done that in the past.

There are various settings in the XServer config to do things like rotate the screen, turn off cursors, and so forth. Your application needs also to be able to be full screen with no borders or window styles. This is why it is better to not use a Window manager because all that styling usually does come from the window manager.

There are some situations where you can have your application write directly to the frame buffer, and thus not use even the XServer, but I've never been successful unless I purchased a commercially tuned version of Linux where they have staged this as part of the sale for the specific project.

Other than that, I've said this is a large task. I can offer guidance by way of some former experience with it, however you'll need to go down the path a bit yourself to determine what things work for you as well as what is adequate considering some of it may be a lot of difficult to find settings, which are small and subtle, just not blatantly explained in any documentation.
 
Old 07-11-2017, 01:45 PM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
How to Easily Create a Ubuntu Kiosk Computer
Known as "Kiosk Mode".

Hope that helps.
 
Old 07-11-2017, 02:13 PM   #5
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,789
Blog Entries: 13

Rep: Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831Reputation: 4831
Quote:
Originally Posted by mnageeb View Post
Thanks for your reply , do you have any documentation , web links for something similar so we can start with it
I do not. Habitual posted a link which leads to additional links and they have some of the details that come to mind about this topic. For instance I neglected to note the dpms and xset s to shut off screen dimming and power saving. However I know of them.

That first level link says about exactly what I say, "It's not for the faint of heart."

General recommendations are:
  • Be prepared to redo multiple times from scratch
  • Learn to establish backups and detail all that you've done, be that successful versus not
  • Study information you can find, such as the link offered by Habitual and other things you can find on the web, key terms are Linux and Kiosk
  • Have additional things there while you configure and have a second system which you are not setting up, but is there for you to do your general web searching or fetching of information. The additional things are a keyboard, mouse, screen for the system even if you are not going to have a keyboard once it is all set up
  • Learn how to build and install from source, learn how to write scripts, learn how the system initializes itself and how to create, configure, remove startup daemons or services
  • Be prepared to tune the system to contain only the services and capabilities you need and only be running the application you need
  • Learn to use dd to get a backup image of your whole system and then be capable of restoring from a former backup.
You can "do" something like this in an afternoon, however it really depends how far, how secure, how extensive, and how well tested this all needs to be. If it's for an assignment, "get it working" and then tweak it, but show it to your instructor and find out if you've gone far enough. If it's for a museum, government, any form of commercial use, test, test, test it like crazy and then test it some more. Fix all you can find. Have a certified idiot/genius test it for you and then fix all the stuff they find. If they find nothing, you didn't find a good tester, or a you didn't find a "helpful" tester.

And you're asking us if we have documentation or a guide. Haven't you looked this up? How did you come to understand the concept in the first place?

And note that I've already told you a key thing. Kiosk computers typically have touch screens. Even though you won't have a mouse, you'll likely have a mouse cursor. That is NOT convenient on a kiosk. I forget the various ways I've suppressed or removed the mouse cursor, a glimmer tells me it is an XServer setting, another memory (a very old one) tells me I used a "remove the mouse cursor" application of some type. Once again, this also depended on whether I used an actual window manager or just the XServer.

I feel your final solution is going to be a culmination of numerous sources and it will be custom to your needs, or the needs of this project.

There is no single die to cut exactly a kiosk computer that will work perfectly for you in very short order, unless your goals and needs are very loose and the system doesn't have to be tested and hardened to any serious level.
 
Old 07-12-2017, 10:10 AM   #6
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,406
Blog Entries: 8

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
Will this kiosk have a keyboard attached? If so, then you'll probably want to do something to prevent the keyboard escape sequences to switch to console and reset X. I happen to remember a recent thread solving this problem:

http://www.linuxquestions.org/questi...ns-4175607708/
 
  


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
Bind and stuff on a moving device with different network access ways MrScoville Linux - Mobile 1 12-13-2015 09:21 PM
I need to setup kyless ssh between CentOS and HP-UX both ways xombboxer Linux - Newbie 5 05-20-2015 07:19 AM
LXer: Five ways to prolong your Android device's battery life LXer Syndicated Linux News 0 01-09-2014 07:42 PM
LXer: Five simple ways to tune your LAMP application LXer Syndicated Linux News 0 01-26-2011 04:50 AM
LXer: Five ways to maximise Android device compatibility LXer Syndicated Linux News 0 09-21-2010 10:00 PM

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

All times are GMT -5. The time now is 02:02 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