Disable Chromium Ctrl+T, Ctrl+N, Ctrl+W, Alt+F4, etc on Linux in kiosk mode? - linux

Is there a way to disable Chormium's shortcut keys in Linux? I've tried the --app and --kiosk flags but they don't disable the shortcuts, you can still create a new (though unusable) tab with Ctrl+T and can create a new (fully functional) window with Ctrl+N. Also, Chromium appears to do it's own check for Alt+F4 because even though I have it disabled in the window manager it will close Chromium. How do I disable all the shortcuts within Chromium? Window manager is matchbox, started with xorg + nodm (the default lightdm+openbox system didn't allow me to auto-restart the session or get rid of Alt+Tab).
This is for an embedded system using node.js in the background to handle hardware io, but it will need a network connection to function so I want to ensure users are locked out of the browsers (the various Ctrl+Alt+F* shortcuts have already been removed, Chromium is all that remains in making it a real kiosk system). Alt+F4 isn't a major concern (though it would be really nice to get rid of) because when Chromium crashes nodm will automatically restart it and it handles the Alt+F4 somewhat reasonably (black screen, flashing white, then it's back up - it's not a security concern just a severely ugly "feature" people might stumble accross).

I don't think chromium has an inbuilt interface for disabling os keyboard shortcuts like ALT+F4, but what you could do is intercept those key-presses with javascript and that should be enough to stop the key-presses from working.
To enable such a script on all your pages, you'd need something like greasemonkey, which chromium has a support for out of the box, you can read about it here.

Custom Keyboard Shortcuts - Chromium extensions

Related

How do I prevent Electron from swallowing keys (especially shortcuts that control the screen reader/accessibility tools)?

Users of our Electron app on Linux are unable to use some global shortcuts for other applications.
Specifically, in normal use Insert+Space should bring up Orca configuration options. However, when the Electron app has focus, the shortcut doesn't work -- I'm assuming because the keyboard event is swallowed by Electron.
What can I do within Electron to pass the keyboard event up and prevent swallowing it?
Also, to make it more complicated, the specific keyboard shortcut can be configured so a solution shouldn't rely on a hard-coded list of allowable key events.

Is it possible to permanently disable autoscroll?

This is most often an annoyance when I'm web browsing, but if I middle click somewhere, I get the stupid autoscroll icon. I would like for this to never, ever happen again. I don't know whether this is a windows 10 setting, a mouse driver setting, or a browser setting; but if I could disable it in all three places, that would make me extremely happy.
This probably occurs due to a setting of your mouse driver. So you could change it easily if your mouse driver would offer a settings dialog.
But the ability to change it depends on the capabilities of your mouse driver, because not all options could be changed in the Windows 10 property dialog.

What's the status of the WebExtensions' background page implementations by browser/OS

In Chrome for Win/Mac/Linux it is possible to have browser addon scripts running before the user launches the browser and after they shut the last browser window. In Chrome this is done by claiming the background permission - see the Chrome extensions API docs on background. Other browsers don't seem to support this permission. So my questions:
Is this also possible with other browsers (e.g. by using some other permission/API...) and with other operating systems (specifically Android/iOS)?
What is the behavior of this feature across different operating systems? (I have tried it with Chrome on Ubuntu and while Chrome does continue running and the script keeps performing its task, it doesn't automatically start in background after restarting the OS - I guess one would have to manually add an autostart script for that)
What I'm trying to accomplish is something similar as to what as been asked here: Display a Chrome desktop notification every day at specific time. But I want to learn about cross-browser-and-OS-compatibility before putting too much effort into it. Also an outlook for what's going to be possible in the near future would be nice. :)
(I am aware that something like this could be done using push notifications, but I would also like my app to work offline, so that's not an option.)

Script solution for tabs in bash wanted

i'm in search for a solution for the following situation:
I am working for a customer who only allows accessing the linux servers
by putty (from a Windows Terminal Server).
Unfortunately i need multiple Session to work properly and effective.
Tmux and Screen are not a good option for me, because i need a visual
"tab" to keep track of all the stuff im doing.
Is this even possible or am i lost here?
Best regards.
MremoteNG does tabs and uses Putty (Putty comes with it). If you have RDP or console access to Windows server, you can upload MremoteNG portable.
Perfectly possible in screen: How to open tabs windows in GNU screen – DevSolar
Perfectly solved my problem! Thanks DevSolar!
If you're using PuTTY, you can simply open two sessions at once. Open your first session, then right-click on the PuTTY icon in your taskbar, click "PuTTY" from the context menu, and it'll open a new instance of the program. Unfortunately, this won't result in a second tab, but instead it will result in a second window and you can swap back and forth between windows.
Other SSH clients do have actual tabs as a feature - one example is MobaXTerm, which is free and doesn't require admin privileges to use on your computer, and which is indeed tabbed. It can also import your existing PuTTY configurations, so setting it up is pretty quick.
You can get this application that allows you to have mulptiple tabs in putty. you dont need to "install" it so your lack of permissions wont be an issue :
http://ttyplus.com/multi-tabbed-putty/
Regarding your auth issue, I would recommend read this :
https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys--2
Note - Dont worry about being lost, everybody learns at different speeds.
Regards!

Chrome Kiosk mode ignores zoom settings

I have a simple shell script that starts chromium in kiosk mode on a certain url. It works fine, but in kiosk mode the zoom level from Chrome's settings seems to be ignored.
I could normally use ctrl + or ctrl - to zoom in or out, but this is obviously not an option if the browser is run from the script without "human help"
Because of a low screen resolution, It is zoomed in too much by default. I tried the Chrome Autozoom extension, but for some reason this made it zoom out way too much (and it didn't matter at which zoom level I set the extension).
All I want is to be able to specify the zoom level when I start the browser in Kiosk mode. Any ideas?
We have this same setup [ linux kiosk running chrome in kiosk mode ] but I haven't seen this.
You can set the default zoom settings in Chrome:
http://fartersoft.com/blog/2010/11/12/setting-a-default-zoom-level-for-chrome-browser/
Are you syncing home directories and possibly overwriting chrome's settings directory? There must be some mechanism in your setup overwriting settings --- or possibly it's a permissions issue. Be sure to setup Chrome the way you want --- make sure the settings stick --- before enabling your privacy/security settings and scripts.
If chrome can't write to it's config directory, or, if that directory is getting overwritten your settings will not be preserved --- otherwise, a kiosk like you describe should work with the settings you specify. As I said, we have kiosks setup this way with default zoom settings for touchscreens with low resolutions.
Have any other info on your setup that might affect this issue?

Resources