You are not logged in.

#1 2008-10-22 15:52:24

venky80
Member
Registered: 2007-05-13
Posts: 996

Auto load archassistant with sudo permission

I want to auto load archassistant after startup as a superuser in my kdemod4 laptop.
Could someone tell me how to achieve it?
Thanks


DELL XPS 1640 with ATI Mobility Radeon  HD 3670. Arch Linux KDE Minimal Install

Offline

#2 2008-10-22 16:02:25

amranu
Member
Registered: 2008-09-25
Posts: 94

Re: Auto load archassistant with sudo permission

put it in /etc/rc.local?

Offline

#3 2008-10-22 16:26:30

venky80
Member
Registered: 2007-05-13
Posts: 996

Re: Auto load archassistant with sudo permission

ok how can i do it?


DELL XPS 1640 with ATI Mobility Radeon  HD 3670. Arch Linux KDE Minimal Install

Offline

#4 2008-10-22 16:42:33

amranu
Member
Registered: 2008-09-25
Posts: 94

Re: Auto load archassistant with sudo permission

sudo nano /etc/rc.local

put the command to load it in there

Offline

#5 2008-10-23 14:23:22

venky80
Member
Registered: 2007-05-13
Posts: 996

Re: Auto load archassistant with sudo permission

would it load with sudo privileges then?
I mean would I be able to change rc.conf etc through archassistant without password?
Also isnt rc.local for non X programs? Archassistant needs to start after X loads

Last edited by venky80 (2008-10-23 14:24:02)


DELL XPS 1640 with ATI Mobility Radeon  HD 3670. Arch Linux KDE Minimal Install

Offline

#6 2008-10-26 00:26:11

venky80
Member
Registered: 2007-05-13
Posts: 996

Re: Auto load archassistant with sudo permission

could someone explain as to what method should be used to autostart there are way too many places for autostarting stuff...also I want the autostarted application to have sudo permission sad
Thanks


DELL XPS 1640 with ATI Mobility Radeon  HD 3670. Arch Linux KDE Minimal Install

Offline

#7 2008-10-26 10:17:05

Cappy
Member
Registered: 2008-10-13
Posts: 20

Re: Auto load archassistant with sudo permission

rc.local won't work because that's boot time and archassistant needs X.

what you do is run

sudo visudo

which will open a vim session. Hit 'i'
Add this to the bottom:

your_user_name_here   ALL=(ALL) NOPASSWD: /usr/bin/archassistant

Hit 'ESC' once
Hold 'Shift' and press 'Z' twice to save your changes

Then add "sudo archassistant" in your KDE4 control panel to startup applications. It may be under "Sessions" or something. I don't have KDE4 so I can't tell you exactly.

Offline

#8 2008-10-26 16:27:18

venky80
Member
Registered: 2007-05-13
Posts: 996

Re: Auto load archassistant with sudo permission

Thanks for the information I appreciate it.

Last edited by venky80 (2008-10-26 16:36:29)


DELL XPS 1640 with ATI Mobility Radeon  HD 3670. Arch Linux KDE Minimal Install

Offline

#9 2008-10-26 16:33:34

creslin
Member
Registered: 2008-10-04
Posts: 241

Re: Auto load archassistant with sudo permission

Wouldn't archassistant need kdesu?


ARCH|awesome3.0 powered by Pentium M 750 | 512MB DDR2-533 | Radeon X300 M
The journey is the reward.

Offline

Board footer

Powered by FluxBB