Debian Programming :: Starting Chromium In Kiosk Mode From Bash

Dec 14, 2014

I'm trying to start Chrome in kiosk mode from a systemd service on boot. The 'webserver app' named 'xx' in the samples launches but chromium never comes up.

xx.service :

Code: Select all[Unit]
Description=xx Service
After=syslog.target

[Service]
Environment="DISPLAY=:0.0"
Type=forking
WorkingDirectory=/usr/bin/xx/
ExecStart=/usr/bin/xx/xx
ExecStartPost=/usr/local/xx/chromium.sh
Restart=on-abort

[Install]
WantedBy=multi-user.target

chromium.sh

Code: Select allchromium-browser --kiosk http://xx-01.local:8081 &

View 1 Replies


ADVERTISEMENT

Debian Multimedia :: Xfce Panel Error Upon Login - Kiosk Mode

Mar 27, 2015

I just completed a fresh install of the weekly jessie build (downloaded today). All I've done is install updates, add my username to sudoer list, and reboot. When I did, the xfce panel was not there. When I right clicked, Apps, Panel, it opened with an error that I cannot make changes unless I save my session and that it's in kiosk mode. After a logoff or reboot, it's still not there. I saw one thread asked for the output of /.xsession-errors, which I've done, and it doesn't look good... I'm just not sure how to fix:

Code: Select allopenConnection: connect: No such file or directory
cannot connect to brltty at :0
/usr/bin/x-session-manager: X server already running on display :0
xfce4-session-Message: ssh-agent is already running; starting gpg-agent without ssh support

(xfce4-panel:896): xfce4-panel-CRITICAL **: panel-window.c:2698 (panel_window_thaw_autohide): expression 'window->autohide_block > 0' failed.

(process:1035): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
tpatt@debian:~$

Like I said I've made no changes other than updates and installing sudo.

View 4 Replies View Related

General :: Linux In Locked Down Kiosk-mode?

Jan 21, 2010

I have a few old workstations no longer serving the company. My thought was to use these as internet stations where employees can register their time thru our internal web-based application. I would like to have an environment working like Windows with the SteadyState add-on, access to a limited list of web-sites and no system changes by the user. I have looked at [URL] and [URL] which both meets me criteria when it comes to locking out the user from all system settings, but both seems to be totally open to all web-sites without the possibility for the admin to make a list of allowed sites.

Running it from a bootable CD without using the HD seems like the way to go for a surf-kiosk.

View 3 Replies View Related

Server :: Firefox Kiosk Mode - How To Resize

May 15, 2009

I'm trying to run Firefox 3 in a VNC server without a window manager, since I don't want Firefox window chrome. My only problem is that I can't figure out how to resize Firefox. There are parameters to specify width and height, but they don't work (#5104). Please, are there any solutions?

Another question: VNC server seems to run twm, even though it isn't installed. How is that possible?

I'm using Ubuntu Server 9.04.

View 1 Replies View Related

General :: Using Single Computer To Show Two Websites In Kiosk Mode

Jul 18, 2011

I've written two web pages that show the status of a internal application. The idea was to display both of them, on two different monitors, using only a single PC with two graphic cards. The system will be mounted to a wall and has no keyboard or mouse. That's why I need a script that will automatically launch two instances of firefox (in kiosk mode), each on it's own monitor.Currently the OS installed on the PC is OpenSuse, but I'm free to install a different linux flavor.So, how do I launch firefox on a specific monitor?

View 1 Replies View Related

Slackware :: Bash - Random Headers When Starting Bash In X?

Jan 13, 2011

I have searched and searched and maybe I don't know how to articulate this issue with out just posting the problem I'm having. Every time I bring up a terminal window I get the following "Header"

declare -x COLORTERM="gnome-terminal"
declare -x CPLUS_INCLUDE_PATH="/usr/lib64/qt/include"
declare -x DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-xSFd6zqrYQ,guid=dc5e07974559da016842742900000090"
declare -x DISPLAY=":0.0"

[Code]...

To be honest I cheated and used the .bashrc / .profile files from Ubuntu and all was working fine for a while now and it seems something changed to cause this... any ideas on why I am getting this? I checked my .bashrc and my /etc/profile and it doesn't look like anything is amiss..

View 3 Replies View Related

Debian Programming :: Bash Scripting For Jessie

Aug 25, 2015

You are probably using systemd (check it with ps --pid 1) and therefore /etc/init.d isn't considered for autostart. Here can you find some information about systemd and autostart [1]. As far as I know systemd isn't intended to start applications with systemd. I recommend you to use the autostart feature of your window manager or desktop environment or at least the .xinitrc.

[URL] ....

View 7 Replies View Related

Debian Programming :: Running Programs In Parallel In Bash

Jul 22, 2014

I am trying to replicate what is happening on this page under the tcsh shell, but using the bash shell found in Wheezy. Here is the page I am referring to:[URL] The command I am trying to replicate is on page 6 under figure 2.4. The command is "prompt> ./mem &; ./mem &".

I would like to run the same program twice, concurrently, but do not know how. Note that I am not trying to use a bash script, but rather by simply using syntax on the command line.

View 4 Replies View Related

Debian Programming :: BASH Script For Battery Alert (Low)

May 19, 2010

I'm trying to make my own BASH script for alerting low battery. It's working well, but it simply show messages, whether the state is 'Discharging' or 'Charging'.

Here is the code:

Code: Select all#!/bin/bash

#checking sleep time
SLEEP_TIME="60"

#actions
ACTION="xfce4-terminal -x sudo shutdown -h now"

[Code] ....

View 6 Replies View Related

Debian Programming :: Yesterday Date In Bash Script

Jun 22, 2011

I have used "FILENAME="`TZ=$TZ+24 date +%y%m%d`" in a bash script that run in openbsd. What my script does is to changes a file name to "yesterdays date". I tried to use it in a script that runs in debian but it doesnt work. Is there any other command that i can use in debian?

View 3 Replies View Related

Ubuntu Installation :: No GUI Interface / Keeps Starting In Console Mode

Jan 1, 2011

I recently installed ubuntu 10.10 on my Acer Aspire laptop 5745G-7671 laptop. It has an Nvidia Geforce gt 420m dedicated card, and an Intel HD integrated GPU. The problem is, I recenly installed a driver for it (because ubuntu had already found a driver in hardware management). After I did that, everytime I try to start ubuntu, I can no longer see any GUI interface.I have tried everything. I tried restarting X (which doesn't seem to work in Ubuntu 10.10, and tried holding CTRL+ALT+F7 too, but it just displays a few "[ OK ]" messages.

View 1 Replies View Related

Debian Programming :: Assign Variable In Bash When Stdout Is Updated

Jan 17, 2014

I am writing a script that calls a program which writes a lot of lines to stdout continuosly. If the last line in stdout has some regex, THEN, certain variables are updated. My problem is that I don't know how to do that.

A simplified example would be (it's not my exact case, but it I write it here to clarify): suppose I issue a ping command (which writes output to stdout continuously). Every time that the response time is t=0.025 ms, THEN, VARIABLE1=(column1 of that line) and VARIABLE2=(column2 of that line).

I think the following code would work in awk (however, I want the variables in bash and I don't know how to export them)

Code: Select allping localhost |awk '{ if ( $8 == "time=0.025" ) var1=$1 var2=$2}'

In the previous code, awk analyzes each line of the output of the ping command as soon as it is created, so the variables $var1, $var2, ... are updated at the appropriate time. But I need the "real-time" updated values of $var1, $var2 in bash, for later use in the script.

View 7 Replies View Related

Debian Programming :: How To Do Code Bash Script To Run Su And Enter Password

Sep 15, 2014

Whats the bash script for like, how synaptic package manager runs ..

When you run synaptic it ask for root password ..

How do I do this in bash script?

View 5 Replies View Related

Ubuntu :: Bash Not Starting Automatically?

Apr 28, 2010

everytime i open a terminal window, all i see is:

$ _

and i have to type bash everytime to get it running. i found a bandaid fix by having it type bash at the "custom command" profile preference... but i still consider the problem to be unsolved, because i still have to manually type 'bash' whenever i log remotely (putty). it seems like something happened, and now bash is not loaded by the terminal by default like it should.

PS: i already tried 'cp /etc/skel/.bashrc ~./bashrc', and it didn't seem to do anything.

I am using Ubuntu 9.10, fairly fresh install. Had one hard reset since I installed it, which could be when the problem started. Also, I was messing a bit with profiles, switching their ID's and adding/deleting them (not sure if that would be the problem).

View 2 Replies View Related

Programming :: Invoke Java From Bash Terminal Via Shell Script Fails Under Mint Debian / Fix It?

Feb 16, 2011

I am running a Java application on the command line bash terminal under Mint Debian. I have JDK1.6.0_22 installed 64-bit, and the OS is 64-bit too. I have a few JAR files in the directory and a few native LWJGL libraries. When I run the application using the command line, all works fine.
Lets assume my directory where the files are is called /home/riz/MyGame. I change to that directory and this is the command I use code...

View 3 Replies View Related

Ubuntu :: Chromium Application Shortcuts In Unity - Not Including Most Of Chromium's Toolbars

May 2, 2011

I often use the option in Chromium to create 'application shortcuts'. These are instances of Chromium that make a website look more like an app by not including most of Chromium's toolbars. I use it for gmail and google docs and spreadsheets and calendar. In 11.04 I have set up Desktop launchers and copied them across to the Launcher (what an odd way to add something to the launcher, why no right-click 'add launcher' option?)

The problem is that the launcher thinks all these apps are chromium (which they are really, but I would like them to be seen as separate apps). If I minimize my gmail window, a little triangle appears next to the chromium icon, not the gmail icon. To get the window back, I have to click on the Chromium icon. Clicking on the gmail icon launches a new instance of it (also tied to the Chromium icon).

View 7 Replies View Related

Ubuntu Networking :: Run Chromium With -enable-gpu-rendering Flag Chromium's Display Looks Like It's Shattered Into Thousands Of Pieces

Dec 2, 2010

if i run chromium with --enable-gpu-rendering flag chromium's display looks like it's shattered into thousands of pieces and I can't understand a thing. This doesn't happens if I have a previous instance of chromium opened in the usual way, without any flag. In this case if I open another chromium window with the --enable-gpu-rendering flag it's display looks ok, but I can't figure out what's the problem and how could this be fixed if there's solution for it of course.

View 1 Replies View Related

Programming :: Bash: Printing The Line Number In Bash Script?

Feb 4, 2011

I would like to know how do I print the line # in a script. My requirement is, I have a script which is about ~5000 lines long. If there are any errors happen I just exit. And I would like to add the line # of the script where the error happened.

View 3 Replies View Related

Programming :: Bash Ctrl+c Tarp And Bash Read With Timeout?

Jan 24, 2010

simple bash code:

Code:
#!/bin/bash
trap "echo 'you got me'" SIGINT SIGTERM # to trap ctrl+c
echo "Press ctrl+c during 5 sec loop"
for ((i=0;i<5;i++)); do

[Code]...

How come code behaves normally and stops when ctrl+c signal is caught and resumes, but after I use at least one timeout read in the code it looks like, if signal is caught again it doesn't pause the execution but skips the loop. If you remove -t (timeout) option from the read, both loops look the same!

View 10 Replies View Related

Programming :: Reading A Bash Variable In Bash Scripting ?

Nov 26, 2008

I have a config file that contains:

my.config:

Code:

Now in my bash script, I want to get the output /home/user instead of $HOME once read. So far, I have managed to get the $HOME variable but I can't get it to echo the variable. All I get is the output $HOME.

Here is my parse_cmd script:

Code:

View 3 Replies View Related

Programming :: Run Multiple Bash And Php Scripts From A Bash Script?

Jul 25, 2011

I have written quite a few separate bash & scripts and php scripts that up to now I have run from cron jobs. However I have to estimate how long each takes to run, before running the next and so it probably takes much longer than necessary to run them all. They have to run in order.

Now there are so many I am thinking it would be better to have a master bash script that would run one after the other, but I am not sure how to get the master script to wait before starting to run the next script. Is this possible and is there a command that will make the script wait between bash and php scripts , for them to finish, before running the next?

View 5 Replies View Related

Ubuntu :: AWN Grouping Chromium Shortcuts Under Chromium

Oct 22, 2010

I made a shortcut with chromium browser to listen.grooveshark.com. This is great as it's almost like the grooveshark VIP desktop application like this. However AWN dock groups it with other chromium windows like this:Kuvakaappaus.jpg

Is it possible to force AWN to group this specific chromium window under the Grooveshark launcher that I have in the dock? Turning off grouping does not solve this either, as it just shows grooveshark as another chromium window.

View 6 Replies View Related

Programming :: Bash: Get Filename And Extension Using Bash?

Jan 9, 2010

I would like to get the filename (without extension) and the extension separately. The best solution I found so far is:

Let FILE="thefilenameofsomefilesfor_instance.txt"

Code:

NAME=`echo "$FILE" | cut -d'.' -f1`
EXTENSION=`echo "$FILE" | cut -d'.' -f2`

I think it would be better to count the len and remove 3 chars to right to get the extension, but it can be macintosh filenames with have 4 chars for extensions.

View 5 Replies View Related

OpenSUSE :: Using Emacs Shell-bash-mode-hook?

Feb 26, 2010

I want to show line numbers automatically in bash scripts (a habit of being a programmer) and when I load an emacs lisp file it works from the command below but the following command that sets up the same thing for bash scripts doesn't work. I played around with this for quite some time and couldn't find anything that would make work.This is the first time I have tried to customize emacs so it could easily be something ignorant on my part.

;; Load additional packages
(load-file "~/.elisp/whitespace.el")
(load-file "~/.elisp/setnu+.el")

[code]....

View 1 Replies View Related

Ubuntu :: Won't Boot With Bash - Turn Into Console Mode

Oct 21, 2010

I've got a problem with bash, when I run my terminal or I turn into console mode, I get:

Code:

And I have to type "bash" and after I got:

Code:

How to make that bash alway running?

View 2 Replies View Related

CentOS 5 :: 5.1 Bash - After First Reboot After Installing In Text Mode

Dec 17, 2009

I got this message after installing CentOS 5.1 in text mode and console:

It occures after the first reboot after installing:

I pushed TAB and get a list with possible commands.

I used "boot" but without success.

View 2 Replies View Related

OpenSUSE Install :: Trying To Get A USB Kiosk?

Nov 30, 2009

I've been trying for a while to get an 8GB usb stick configured with a bootable version of openSUSE. Without any real luck. We are running the 64 bit 11.0 on the server and I've tried various versions of the kiwi build process, without much luck. I've tried building against different versions of Suse and both 32 and 64 bit version.

I've tried copying 11.2 to a usb stick - I was able to get that to boot, but it was read only, then when I tried adding an additional partition, it wouldn't work. I've tried installing 11.2 to a USB drive and I then had a problem with GRUB. I've also tried thependrive linux link - that worked (with 11.2) up until I applied the script in the last step. Has anyone successfully done something like this? Which approach did you take? I want to be able to plug the usb stick in to a PC, boot it, and have the desktop automatically login with a couple of applications on the desktop.

View 1 Replies View Related

General :: How To Make VLC Act As A Kiosk

Jun 20, 2011

I need VLC to start in fullscreen mode (easily done) but not allow the users to open new files or anything. Seeing as this is for a Kiosk I need to lockdown the system behind the application. After the video is done, VLC should simply quit and exit. A user could be able to prematurely kill VLC (Alt+F4) which is also fine. Would I need a script calling VLC to add extra features instead of calling it right from my application?

View 1 Replies View Related

Debian :: Use The Repo For Chromium And Its Dependencies?

Jun 19, 2010

I usually install chromium from the frickelpatz repo. On one previous update I noticed that other packages that had not been installed from frickelpatz were updated with packages from there (i guess frickel had a higher version number - k3b i think the package was). So I would like to see what other packages it offers so I am aware of which packages are at risk. failing that is there a way to tell apt that i only want to use the repo for chromium and its dependencies?

View 3 Replies View Related

Debian :: Why Chromium Can't Open From Shell

Sep 2, 2015

Why chromium can't open from shell ?

appears [3354:3354:0902/083750:ERROR:browser_main_loop.cc(231)] Gtk: cannot open display:

View 11 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved