![]() |
![]() |
#1 |
Oct 2008
n00bville
25×23 Posts |
![]()
It's quite easy to automate the start of mprime
- create a mprime directory in your home directory (in my example joblack - change it for your user name ...) - create an executable file called mprime in /etc/init.d/ --- PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin" . /lib/lsb/init-functions case "$1" in start) su joblack -c /home/joblack/mprime/mprime & ;; stop) killall mprime ;; force-reload|restart) killall mprime su joblack -c /home/joblack/mprime/mprime & ;; *) echo "Usage: /etc/init.d/mprime {start|stop|restart|force-reload}" exit 1 ;; esac exit 0 --- create a link in /etc/rc2.d called root root 16 2009-07-09 20:22 S30mprime -> ../init.d/mprime (ln -s is your friend ). Now you can start mprime with /etc/init.d/mprime start or it starts automatically if you get in init 2 (normal in debian and a lot of clones like kubuntu). Other Linuxes have probably slightly different methods but it should be nearly the same .. --- Suggestions and improvements are welcome Last fiddled with by joblack on 2009-07-13 at 20:50 |
![]() |
![]() |
![]() |
#2 |
Jan 2009
3 Posts |
![]()
Im no Linux expert but, couldnt you simply add the path to mprime in a file that gets checked at startup? For example, in ubuntu you could add /path/to/mprime in the /etc/rc.local file and it should be executed every time the computer starts.
If this would cause issues let me know... |
![]() |
![]() |
![]() |
#3 | |
Oct 2008
n00bville
25×23 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#4 | |
Oct 2008
n00bville
25·23 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#5 |
Bamboozled!
"๐บ๐๐ท๐ท๐ญ"
May 2003
Down not across
2·73·17 Posts |
![]() |
![]() |
![]() |
![]() |
#6 |
Oct 2008
n00bville
73610 Posts |
![]() |
![]() |
![]() |
![]() |
#8 |
Jul 2005
Des Moines, Iowa, USA
2×5×17 Posts |
![]()
man means read the "user manual" and su means the superuser command
|
![]() |
![]() |
![]() |
#9 |
Jul 2006
Calgary
52×17 Posts |
![]()
An alternative that works well for me is:
echo "@reboot cd ~/gimps ; ./mprime & " | crontab - Assuming you aren't already using crontab. |
![]() |
![]() |
![]() |
#10 |
Jun 2010
23 Posts |
![]()
i think you have error in this message.
|
![]() |
![]() |
![]() |
#11 |
Oct 2008
n00bville
25×23 Posts |
![]() |
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
mprime 28.9 - occassional segmentation fault during start | pessoft | Software | 0 | 2016-06-13 20:58 |
Seeking help on packaging mprime for Debian | alexvong1995 | Linux | 3 | 2015-05-13 12:49 |
Linux (debian/grub) help | LaurV | Linux | 10 | 2015-04-24 15:39 |
HowTo: Switch to Linux to finish factoring | Batalov | Linux | 25 | 2009-09-18 06:38 |
Debian package of mprime | Matt | Linux | 1 | 2007-02-22 22:36 |