Executing a command at login [Solved]

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Executing a command at login [Solved]

Postby rodgoslin » Jan 7th, '15, 19:50

I've recently loaded BitTorrent Sync, as a way of disrtibuting files about my system, machine to machine and platform to platform. Whilst the setup is a bit obscure, it does work well.. The only snag, is that you have to execute a file (btsync), which is a local file. In my long ago, experience with UNIX, there used to be an rc file in the user environment, which would set things up at login, and to which you could add commands to launch programmes. This is absent in Mageia, as far as I can see. This is something that can be done by the user, and not neccesarlily at bootup. So a local user launch option would be entirely adequate
Last edited by rodgoslin on Jan 8th, '15, 02:43, edited 1 time in total.
rodgoslin
 
Posts: 523
Joined: Nov 19th, '11, 01:31

Re: Executing a command at login

Postby doktor5000 » Jan 8th, '15, 02:25

Should it be started together with desktop login, or also for tty login?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18066
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Executing a command at login

Postby rodgoslin » Jan 8th, '15, 02:42

Thanks for the reply. I finally managed to sort the problem myself, after a bit of searching. I wrote a shell script to launch the command, , then added it to 'Autostart' in system settings>startup & shutdown. The addition was to start, automatically, a BitTorrent Sync session. It didn't seem to be adequately explained in the BitTorrent Sync setup instructions
rodgoslin
 
Posts: 523
Joined: Nov 19th, '11, 01:31

Re: Executing a command at login [Solved]

Postby tarakbumba » Jan 9th, '15, 11:01

We have it on our Cauldron repos as btsync package and it automatically starts when system boots via systemd. You may want to use our spec and source files or source rpm to build a Mageia 4 package.
tarakbumba
 
Posts: 138
Joined: Apr 6th, '11, 22:50


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron