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
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
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.
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'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?
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"
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..
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.
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.
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'.
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?
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.
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)
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.
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).
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...
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).
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.
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.
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!
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.
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?
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.
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.
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.
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.
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?
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?