Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including
Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
The best answers are voted up and rise to the top
4 years, 8 months ago
I have created cronjob as
@reboot root sleep 75 && firefox
but then I test it, but it didn't work.
In /var/spool/mail/root it shows me this
what I want to archive is after every reboot I want to automatically load my firefox browser.
Want to do it with this with cron job or even with systemd unit file as
Crontab job start +1 min after @reboot
Rui F Ribeiro
55.5k 26 26 gold badges 146 146 silver badges 225 225 bronze badges
Sep 24, 2018 at 2:41
after every reboot I want to automatically load my firefox browser.
A cronjob is not the correct way to do so.
For Firefox to be able to run, your X environment (KDE or GNOME) must have already started. Hence the error about
$DISPLAY mentioned in the last line of your input.
Therefore you need to configure KDE or GNOME to run Firefox upon start. For instance, here's a related question regarding GNOME:
Sep 24, 2018 at 6:51
27.9k 19 19 gold badges 87 87 silver badges 128 128 bronze badges
log in to answer this question.
Not the answer you're looking for? Browse other questions tagged
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our
Accept all cookies
Necessary cookies only
textfrom the screen instead of a picture of the screen. The primary reason is that it's considered good etiquette on unix.se, and will help you get answers more quickly.