Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Script d'avvio, come lanciare programma da utente? [RISOLTO]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
Sasdo
Guru
Guru


Joined: 18 Feb 2004
Posts: 542
Location: 44.476474,11.644446 circa.

PostPosted: Wed Feb 09, 2005 9:50 am    Post subject: Script d'avvio, come lanciare programma da utente? [RISOLTO] Reply with quote

Ciao,

vorrei che all'avvio del mio pc venga lanciato un programma.
Però vorrei che questo programma venisse lanciato da un particolare utente.

E' possibile farlo?

Se sì, come?

Grazie!
_________________
LinuxUser #362518
--
Ochei lo ammetto: il mio cervello lo tengo in frigo.


Last edited by Sasdo on Wed Feb 09, 2005 10:42 am; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31525
Location: here

PostPosted: Wed Feb 09, 2005 10:00 am    Post subject: Reply with quote

Di solito nei vari wm/de c'e' un file nella cartella dell'utente (es: kde) che fa l'autostart
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
superfayan
Apprentice
Apprentice


Joined: 13 Jan 2005
Posts: 175
Location: Castelcucco !!!

PostPosted: Wed Feb 09, 2005 10:01 am    Post subject: Re: Script d'avvio, come lanciare programma da utente? Reply with quote

Sasdo wrote:
Ciao,

vorrei che all'avvio del mio pc venga lanciato un programma.
Però vorrei che questo programma venisse lanciato da un particolare utente.

E' possibile farlo?

Se sì, come?

Grazie!

anke a me interessava .. ma non essendo un guru di linuz... ho usato vie traversse...
ho messo su webmin su consiglio di un amico e guardando qua e la ho notato che si può creare dei semplici script che si avviano probabilmente prima del X ...

avevo bisogno di dare ad una cartella permessi in lett-scritt-esec a tutti gli utenti... :wink:
_________________
__AceR__Aspire_2023*POWERED *By*GENTOO-[kernel-2.6.10-r6]
Back to top
View user's profile Send private message
Josuke
Veteran
Veteran


Joined: 07 May 2003
Posts: 1175
Location: Italy - Bolzano

PostPosted: Wed Feb 09, 2005 10:03 am    Post subject: Reply with quote

io uso semplicemente su...es se voglio che all'avvio l'utente josuke lanci il programma "pippo" edito il file /etc/conf.d/local.start e ci metto una stringa di questo tipo:
Code:
su - josuke -c pippo

_________________
fletto i muscoli...e sono nel vuoto
Back to top
View user's profile Send private message
superfayan
Apprentice
Apprentice


Joined: 13 Jan 2005
Posts: 175
Location: Castelcucco !!!

PostPosted: Wed Feb 09, 2005 10:06 am    Post subject: Reply with quote

Josuke wrote:
io uso semplicemente su...es se voglio che all'avvio l'utente josuke lanci il programma "pippo" edito il file /etc/conf.d/local.start e ci metto una stringa di questo tipo:
Code:
su - josuke -c pippo


e con questo fa partire il programma pippo come SuperUser ? non capisco... :?
_________________
__AceR__Aspire_2023*POWERED *By*GENTOO-[kernel-2.6.10-r6]
Back to top
View user's profile Send private message
Josuke
Veteran
Veteran


Joined: 07 May 2003
Posts: 1175
Location: Italy - Bolzano

PostPosted: Wed Feb 09, 2005 10:09 am    Post subject: Reply with quote

no con questo fa partire pippo come user josuke
_________________
fletto i muscoli...e sono nel vuoto
Back to top
View user's profile Send private message
Sasdo
Guru
Guru


Joined: 18 Feb 2004
Posts: 542
Location: 44.476474,11.644446 circa.

PostPosted: Wed Feb 09, 2005 10:10 am    Post subject: Reply with quote

Josuke wrote:
io uso semplicemente su...es se voglio che all'avvio l'utente josuke lanci il programma "pippo" edito il file /etc/conf.d/local.start e ci metto una stringa di questo tipo:
Code:
su - josuke -c pippo


esattamente quello che cercavo grazie!

e per le password come fai?
_________________
LinuxUser #362518
--
Ochei lo ammetto: il mio cervello lo tengo in frigo.
Back to top
View user's profile Send private message
Sasdo
Guru
Guru


Joined: 18 Feb 2004
Posts: 542
Location: 44.476474,11.644446 circa.

PostPosted: Wed Feb 09, 2005 10:17 am    Post subject: Reply with quote

forse mi rispondo da solo.... con sudo?
_________________
LinuxUser #362518
--
Ochei lo ammetto: il mio cervello lo tengo in frigo.
Back to top
View user's profile Send private message
Josuke
Veteran
Veteran


Joined: 07 May 2003
Posts: 1175
Location: Italy - Bolzano

PostPosted: Wed Feb 09, 2005 10:29 am    Post subject: Reply with quote

cosa intendi per le password?
_________________
fletto i muscoli...e sono nel vuoto
Back to top
View user's profile Send private message
Sasdo
Guru
Guru


Joined: 18 Feb 2004
Posts: 542
Location: 44.476474,11.644446 circa.

PostPosted: Wed Feb 09, 2005 10:37 am    Post subject: Reply with quote

me spieg:

se do il comando che hai suggerito, poi mi chiede la password.

Vorrei evitare questo passaggio perchè la mia intenzione è di fare una cosa tipo questa:

in /etc/conf.d/local.start

Code:

su - sasdo -c vncserver


ovvero, all'avvio del pc, l'utente sasdo lancia l'applicazione vncserver.

il problema è che questo sitema mi chiede poi la password.

Vorrei sapere se è possibile fare sì che non me la chieda e se la vada a leggere in un qualche file...
_________________
LinuxUser #362518
--
Ochei lo ammetto: il mio cervello lo tengo in frigo.
Back to top
View user's profile Send private message
Josuke
Veteran
Veteran


Joined: 07 May 2003
Posts: 1175
Location: Italy - Bolzano

PostPosted: Wed Feb 09, 2005 10:39 am    Post subject: Reply with quote

no no non ti chiede la password se usi su da root puoi loggarti con ogni utente senza bisogno di password...io facevo lastessa cosa per lanciare psybnc :)
_________________
fletto i muscoli...e sono nel vuoto
Back to top
View user's profile Send private message
Sasdo
Guru
Guru


Joined: 18 Feb 2004
Posts: 542
Location: 44.476474,11.644446 circa.

PostPosted: Wed Feb 09, 2005 10:41 am    Post subject: Reply with quote

mi sono risposto da solo:

con
Code:
 su - sasdo -c vncserve

lanciato da superuser non chiede password =)

grazie mille!

ora appoggio il tag risolto =)
_________________
LinuxUser #362518
--
Ochei lo ammetto: il mio cervello lo tengo in frigo.
Back to top
View user's profile Send private message
Sasdo
Guru
Guru


Joined: 18 Feb 2004
Posts: 542
Location: 44.476474,11.644446 circa.

PostPosted: Wed Feb 09, 2005 10:43 am    Post subject: Reply with quote

ochei, è evidente che quell'ultimo mio post l'ho scritto senza leggere il tuo =)
_________________
LinuxUser #362518
--
Ochei lo ammetto: il mio cervello lo tengo in frigo.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31525
Location: here

PostPosted: Wed Feb 09, 2005 10:49 am    Post subject: Reply with quote

Ma cosi' non parte a tutti gli utanti quel comando? Non e' meglio usare i file di autostart?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Josuke
Veteran
Veteran


Joined: 07 May 2003
Posts: 1175
Location: Italy - Bolzano

PostPosted: Wed Feb 09, 2005 10:56 am    Post subject: Reply with quote

m si..ma da quel che ho capito lui vuole semplicemente lanciare un servizio esterno da un determinato utente all'avvio della macchina..e non un settaggio specifico per un utente..quindi la soluzione al suo problema mi sebra questa..ma immagino ce ne possano essere anche altre :)
_________________
fletto i muscoli...e sono nel vuoto
Back to top
View user's profile Send private message
Sasdo
Guru
Guru


Joined: 18 Feb 2004
Posts: 542
Location: 44.476474,11.644446 circa.

PostPosted: Wed Feb 09, 2005 10:56 am    Post subject: Reply with quote

fedeliallalinea wrote:
Ma cosi' non parte a tutti gli utanti quel comando? Non e' meglio usare i file di autostart?


in che senso non parte a tutti gli utenti?
_________________
LinuxUser #362518
--
Ochei lo ammetto: il mio cervello lo tengo in frigo.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31525
Location: here

PostPosted: Wed Feb 09, 2005 11:11 am    Post subject: Reply with quote

Sasdo wrote:
in che senso non parte a tutti gli utenti?

Volevo dire l'esatto contrario :? . E' quello che vuoi?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Sasdo
Guru
Guru


Joined: 18 Feb 2004
Posts: 542
Location: 44.476474,11.644446 circa.

PostPosted: Wed Feb 09, 2005 11:47 am    Post subject: Reply with quote

beh così parte solo all'utente sasdo ed è ciò che voglio =)

mi basta che ci sia un solo server vnc sulla macchina... non importa che ce ne siano duecento =)
_________________
LinuxUser #362518
--
Ochei lo ammetto: il mio cervello lo tengo in frigo.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31525
Location: here

PostPosted: Wed Feb 09, 2005 11:49 am    Post subject: Reply with quote

Sasdo wrote:
beh così parte solo all'utente sasdo ed è ciò che voglio =)

No parte con privilegi di sasdo per tutti gli utenti
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Sasdo
Guru
Guru


Joined: 18 Feb 2004
Posts: 542
Location: 44.476474,11.644446 circa.

PostPosted: Wed Feb 09, 2005 11:56 am    Post subject: Reply with quote

allora non avevo capito =)

comunque... non ho ancora avuto modo di provarlo ma, con quel comando, ottengo che all'avvio del computer mi parta una sessione di vnc con i privilegi dell'utente sasdo?

se sì, ho risolto =)

grazie ancora!
_________________
LinuxUser #362518
--
Ochei lo ammetto: il mio cervello lo tengo in frigo.
Back to top
View user's profile Send private message
Josuke
Veteran
Veteran


Joined: 07 May 2003
Posts: 1175
Location: Italy - Bolzano

PostPosted: Wed Feb 09, 2005 11:59 am    Post subject: Reply with quote

si fa esattamente questo
_________________
fletto i muscoli...e sono nel vuoto
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31525
Location: here

PostPosted: Wed Feb 09, 2005 12:22 pm    Post subject: Reply with quote

Sasdo wrote:
comunque... non ho ancora avuto modo di provarlo ma, con quel comando, ottengo che all'avvio del computer mi parta una sessione di vnc con i privilegi dell'utente sasdo?

Si fa questo ma se entri con un utente non sasdo parte lo stesso
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Sasdo
Guru
Guru


Joined: 18 Feb 2004
Posts: 542
Location: 44.476474,11.644446 circa.

PostPosted: Wed Feb 09, 2005 1:32 pm    Post subject: Reply with quote

fedeliallalinea wrote:
Si fa questo ma se entri con un utente non sasdo parte lo stesso


Vabbè tanto lo metto sul serverino di casa mia che è senza monitor tastiera e mouse e nessuno ci si logga sopra =)

così posso gestire X anche senza schermo in remoto =)

grazie!

ciao!
_________________
LinuxUser #362518
--
Ochei lo ammetto: il mio cervello lo tengo in frigo.
Back to top
View user's profile Send private message
Cerberos86
Guru
Guru


Joined: 13 Dec 2003
Posts: 581
Location: Padova

PostPosted: Wed Feb 09, 2005 1:40 pm    Post subject: Reply with quote

visto che siamo in tema, per fare partire uno script/programma all'avvio di un singolo utente, come si fa? si può evitare di usare i singoli script dei wm (kde/fluxbox etc).....?

Thanks u all
_________________
Account jabber: cerberos@jabber.org
"I'm using the hand..." ~ Guybrush Threepwood ~
Back to top
View user's profile Send private message
Josuke
Veteran
Veteran


Joined: 07 May 2003
Posts: 1175
Location: Italy - Bolzano

PostPosted: Wed Feb 09, 2005 1:51 pm    Post subject: Reply with quote

se vuoi che parta al login dell'utente...c'è il file .bashrc
_________________
fletto i muscoli...e sono nel vuoto
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum