Tag Info

New answers tagged

0

Thank you for this delay solution. I confirm it works on Dell Inspiron E1405, Ubuntu 14.04, with the lowest possible value of 3, which I assume is three seconds. If I go down to 2 seconds, it hijacks the shutdown options. Once again, thanks a bunch!


2

Don't use forever. It's dead easy. As you've already observed, forever is unnecessary here as runit already is a service manager, and is already starting and restarting your program. As you've also already observed, there are a few rules for what run programs must do. They must not fork and exit the main program. The runit service manager, like most ...


0

You could try to do this enter this in the terminal: ecron /etc/service/myapp/run and then enter this also: @reboot -i and it might work fine this way.


2

Most certainly, ~/.config/autostart does work if the command works "normally", but you have to be aware of two possible bottlenecks: The launcher in ~/.config/autostart is a .desktop file. To run a complicated command from a .desktop file, use the command: /bin/bash -c "setxkbmap -layout us -option ctrl:nocaps" Some commands break if they run while the ...


0

In addition to the good description of the vboxautostart-service above, you can do VBoxManage modifyvm server --autostop-type savestate to automatically stop the guest at shutdown. For Ubuntu 14.04 I had to add a sleep 30 to the vboxautostart-service stop section, so that it waits until guest has been saved completely.


0

There could be better ways, but you can create an upstart script in /usr/share/upstart/sessions/, called evolutionsync.conf description "my script" start on started unity8-dash exec /path/to/your/script This will essentially run once the desktop has started and you see the "home screen" (apps menu and scopes etc.).


0

Ubuntu has a program where you can set certain programs to run at startup. I'm in KDE right now, so I can't get the exact name, but it should come up with a search of startup. Here, point to the script you use to start the services (make sure the script is executable) and apply. If you use commands to start the services, make a .sh file with #!bin/bash at ...


2

If you want to have your command use a given locale's time format, just set the LC_TIME variable for it. For example, if your command in rc.local is: /path/to/foo arg1 arg2 ... Use: /usr/bin/env LC_TIME=de_AT.UTF-8 /path/to/foo arg1 arg2 ... You can also set additional locale variables this way, but for the time format, LC_TIME should be enough.


1

I installed Kodi using this guide on Ubuntu Server 15.04 And then by try and error came up with this. [Unit] Description=Job that runs Kodi After=default.target graphical.target getty.target sound.target [Service] User=kodi Restart=always RestartSec=1s ExecStart=/usr/bin/xinit /usr/bin/kodi --standalone -- -nocursor [Install] WantedBy=default.target I ...


0

The solution below is not specifically for Lubuntu, only the way to set an application to autostart from GUI is a bit different, since Lubuntu does not have Startup Applications -application, like Ubuntu. Check if a script has started within a certain time limit from log in With the script below, you can check if a script started successfully, within a ...


1

It is assumed that your startup programs are in /home/<your_username>/.config/autostart/. And than something like this in your crontab: awk -F'[= ]' '/^Exec/{print $2}' /home/<your_username>/.config/autostart/*.desktop | while IFS= read -r target; do [ ! -x "${target/\~/$HOME}" ] && ! type "${target/\~/$HOME}" &> /dev/null ...


0

I've written a small script to work around the issue, just follow the commented instructions.


0

this script might work with some tweakings with your need #! /bin/bash id_of_software=$(pidof <software name>) if [[ -n $id_of_software ]] then echo "it is running" + $id_of_software run your script else echo "not running" do something fi



Top 50 recent answers are included