Link to home
Start Free TrialLog in
Avatar of Jonathan Duane
Jonathan Duane

asked on

Launching Firefox automatically on ubuntu server

Hi, i have just installed Ubuntu Server 16 and i have installed firefox, my aim would be to have firefox launch automatically when machine starts up on a web address https://www.iradio.ie
Avatar of serialband
serialband
Flag of Ukraine image

It should be easy enough to add it to the .login or .profile.

Add this line to ~/.login
firefox https://www.iradio.ie
You said, "Hi, i have just installed Ubuntu Server 16 and i have installed firefox, my aim would be to have firefox launch automatically when machine starts up on a web address https://www.iradio.ie"...

Unlikely this will work.

1) Servers generally have no head/display.

2) If you really must run FireFox (which no one can see, because there is no head/display), you'll have to go through some procedure to install a video subsystem simulator.

How you do this will require far more context about your server setup.

3) Geez... Ubuntu 16... is... many years old now, so likely you'll have far more problems getting this working, then using Ubuntu 18 (Bionic).

Suggestion: If you're really running Ubuntu on a local machine which has a head/display, then you'll install one of the many Desktop version of Ubuntu, which will avoid attempting to cobble together video subsystem simulator.

If you really must do this, best to install Ubuntu Bionic, then search for - firefox ubuntu server boot OR startup -desktop - to find many guides about how to approach this.
Avatar of Jonathan Duane
Jonathan Duane

ASKER

ok maybe i will go with the desktop version.

What i would like to achieve is, ubuntu booting, then launching firefox in kiosk mode on a website address that displays a video system we have
I assume you want firefox and only ff to run

You need to install xorg and setup your startx to fire firefox -fullscreen rather than whatever window manager it will pick.

if you already are on a desktop, you can instruct the login manager to use ff as the shell
Yes, only FF to run, i tried installing xorg but it gave me an error saying no display had ben specified. i then set the display to both 0 and 1 (maybe i put in wrong command)

i would prefer if it ran command line and then launched firefox on startup
ASKER CERTIFIED SOLUTION
Avatar of David Favor
David Favor
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Aside: Was just thinking about the previous question you asked.

Since you have access to your own audios, might be easier to point a normal .mp3 player at your audio files + play them directly, rather than even using a browser.

Something to consider.
Yes, only FF to run, i tried installing xorg but it gave me an error saying no display had ben specified. i then set the display to both 0 and 1 (maybe i put in wrong command)

i would prefer if it ran command line and then launched firefox on startup

setting up xorg is much more complex than using display 0 or 1... you would usually use "xorg -configure" to start with. and it is most of the time enough to keep the default generated config.

ubuntu will likely install the world including a session manager. you probably want to install xserver-xorg rather than xorg if you want something simpler that starts from the command line.

then edit the startx config and make it run firefox

you may also with to consider a different distro or os : ubuntu makes a lot of assumtions regarding what you want and you will easily endup with half a gnome and tons of complex config files and scripts while what you want to do can be performed in a few simple steps on other dists.