LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-08-2020, 09:55 AM   #1
finalturismo
Member
 
Registered: May 2019
Posts: 120

Rep: Reputation: Disabled
[Request] xinit surf , set window size? no dm or wm. Internet kiosk


Ok guys so i know this is possible but iam not sure what is going on here.

So iam using xinit to start surf browser.

I do not want a display or window manager.

I want to start surf in the X window system only and in full screen mode.

I need it to be compatible in any system it is run on.

The problem i am having is when i start surf using the .xinitrc file, it starts full screen

but only is taking up a corner of the screen at the top left.

also a single window launcher would work for me too , if there is such a thing.....?
 
Old 03-08-2020, 10:56 AM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
Look at surfs docs and set the size of it.
https://www.mankier.com/1/surf
Does -F work? How about xprop?
It must be launching with a specific size.
Does it have a . config file?
 
Old 03-08-2020, 12:41 PM   #3
finalturismo
Member
 
Registered: May 2019
Posts: 120

Original Poster
Rep: Reputation: Disabled
Yes -F is used for full screen and surf is in full screen mode but not utilizing all the resolution available from X. X is also in full screen mode and working properly.

xinit does this with many programs and it has something to do with setting its window space. But i don't know how to do, i need someone who is familiar with X server when it was more widely used for these things, like this back in the early 2000s.

Just try it for your self, install surf and drop into a tty. Add surf -F www.google.com to your .xinitrc file and type startx

I need some people to help me troubleshoot this. Also its EXTREMELY useful to run in lightweight secure environments where you only want a system for running 1 application.
 
Old 03-08-2020, 03:21 PM   #4
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
I have a 1920x1080 monitor.

From ~/.dillo/dillorc
Code:
# Set the desired initial browser size
geometry=1200x1000
From tty
Code:
startx /usr/bin/dillo
starts dillo at 1200x1000 pixels.

Try again
Code:
startx /usr/bin/dillo -g 1920x1080
Opens dillo fullscreen. Tabs work, slide bar works, links work. No window manager corners/headers, keybindings ect. Because there are none.

Same with xterm and rox filer.
You'll need to find out how to config surf.

Let the forum know when you find it. Others will benefit.
https://surf.suckless.org/files/

Look at:
man xprop
man xwininfo
https://surf.suckless.org/
 
Old 03-08-2020, 11:07 PM   #5
finalturismo
Member
 
Registered: May 2019
Posts: 120

Original Poster
Rep: Reputation: Disabled
So dillo does work with the geometry settings either in the command line or in the xinit file.

surf on the other hand does not work with geometry.

I think i might just go with rat poison and surf.

I really would like to get surf going without a wm , but i just cant see it happening.

Last edited by finalturismo; 03-09-2020 at 11:11 AM.
 
Old 03-09-2020, 02:08 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
I'm intrigued.
I can see a few more options in surf's man page, e.g. -e (reparenting to root window possible?) and -x (xdotool?).
Try with xprop as mentioned:
1. start surf
2. get WINID
3. adjust geometry with xprop
 
Old 03-09-2020, 11:18 AM   #7
finalturismo
Member
 
Registered: May 2019
Posts: 120

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
I'm intrigued.
I can see a few more options in surf's man page, e.g. -e (reparenting to root window possible?) and -x (xdotool?).
Try with xprop as mentioned:
1. start surf
2. get WINID
3. adjust geometry with xprop


From what i have seemed to find is that when using xdotool or wmcrtl i cant seem to get a winid when i scan for one. I think this is because there is no window manager what so ever installed. Now with some research on Google i have seen some people claim otherwise, but iam not sure this is the case. I might be doing something wrong. As far as xprop, no i have not tried this and i think it might actually work. The other problem i have is resolution , this needs to be able to work on many rackmount systems in server racks. Most systems are at least 1080p, but this is not the case with server rack mounts. The resolution can be much lower in average, which causes an issue even when using a tool to force a resolution setting on the window. As far as xprop, what should i do? What are some other ways to get a window id without wmctrl or xdotool? As these tools dont seem to find any winids?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Set up "Kiosk" directory, Ubuntu Linux ver 10.04 server-i386; cannot open odt docs SteveLange9949 Linux - Server 4 05-01-2011 07:45 PM
Input problems when running startx/xterm/xinit without a window manager RaisedByWolves Linux - Newbie 9 04-12-2011 05:04 PM
Changing Window manager through /etc/X11/xinit/xinitrc issacnewton Debian 1 12-15-2010 05:17 AM
Path of xinit; window managers location; root's home; frankie_DJ Solaris / OpenSolaris 4 08-02-2005 03:46 AM
Linux Internet Kiosk penguinpower Linux - Software 3 05-24-2005 02:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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