Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Conf] XFCE4 avvio automatico [risolto]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
alexio2ky
Apprentice
Apprentice


Joined: 25 Jun 2004
Posts: 199

PostPosted: Sun Jul 04, 2004 3:08 pm    Post subject: [Conf] XFCE4 avvio automatico [risolto] Reply with quote

Ciao,

come si può configurare il sistema, per evitare il login dell'utente (tramite i vari kdm, gdm, xdm) in ingresso, facendo partire direttamente xfce4?

grazie,
Alessio


Last edited by alexio2ky on Sun Jul 04, 2004 6:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31461
Location: here

PostPosted: Sun Jul 04, 2004 3:27 pm    Post subject: Reply with quote

Allora in questo post si parla di login automatico della console (non grafica). Quindi se questa si avvia con il tuo utente nel .bashrc potresti mettere startx (e nel file .xinitrc metti xfce4). Facendo cosi' (teoricamente) dovrebbe andare ma non ne sono sicuro
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
ProT-0-TypE
Veteran
Veteran


Joined: 20 Dec 2003
Posts: 1624
Location: Cagliari

PostPosted: Sun Jul 04, 2004 3:36 pm    Post subject: Reply with quote

emergi mingetty ed edita /etc/inittab sostituendo la riga

Code:
c1:12345:respawn:/sbin/agetty 38400 tty1 linux

con
Code:
c1:12345:respawn:/sbin/mingetty --noclear --autologin NOMEUSER tty1



poi edita il .bash_profile della tua home e aggiungici un

Code:
  if [ -z "$DISPLAY" ] && [ $(tty) == /dev/vc/1 ]; then
    startx
  fi


[se non dovesse funzionare prova nella prima console a dare un echo $(tty) e vedi effettivamente che dev è, ed eventualmente lo sostituisci nello script]
Back to top
View user's profile Send private message
alexio2ky
Apprentice
Apprentice


Joined: 25 Jun 2004
Posts: 199

PostPosted: Sun Jul 04, 2004 5:47 pm    Post subject: Reply with quote

ho provato in quella maniera ma nulla...
Cercando in giro mi sembra di aver capito che cmq sia xdm non offre questa possibilità, mentre gdm e kdm sì. Solo che per installare questi 2 sia necessario installare gnome o kde, e non mi sembra il caso.

L'unica maniera penso che sia:

echo "/usr/bin/startxfce4" > ~/.xinitrc

in maniera tale che xfce parti con un semplice startx da utente, e chiamare startx all'avvio da utente (senza passare da xdm).

Alessio
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31461
Location: here

PostPosted: Sun Jul 04, 2004 5:49 pm    Post subject: Reply with quote

Ma sei riuscito a fare partire la console senza mettere nome utente e password?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
alexio2ky
Apprentice
Apprentice


Joined: 25 Jun 2004
Posts: 199

PostPosted: Sun Jul 04, 2004 6:10 pm    Post subject: Reply with quote

no, non ci sono riuscito. Ho installato mignetty e fatto come sopra, però niente. Quando parte, và direttamente su xdm.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31461
Location: here

PostPosted: Sun Jul 04, 2004 6:11 pm    Post subject: Reply with quote

alexio2ky wrote:
no, non ci sono riuscito. Ho installato mignetty e fatto come sopra, però niente. Quando parte, và direttamente su xdm.

Beh dai il comando
Code:
# rc-update del xdm

cosi' al prossimo riavvio non lo carica automaticamente
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
alexio2ky
Apprentice
Apprentice


Joined: 25 Jun 2004
Posts: 199

PostPosted: Sun Jul 04, 2004 6:26 pm    Post subject: Reply with quote

fedeliallalinea wrote:

Code:
# rc-update del xdm



:oops: me ne ero dimenticato :oops:

Adesso funziona, però c'è ancora un piccolo problema: ogni volta che faccio partire una shell, il sistema tenta di riaprire X segnandomi ovviamente errore nella shell. Mi conviene mettere il lancio di startx in .bashrc in un

if [non_lanciato] startx

o c'è un modo diverso?

Grazie,
Alessio
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31461
Location: here

PostPosted: Sun Jul 04, 2004 6:31 pm    Post subject: Reply with quote

Questo dovrebbe essere il codice
Code:
ISSTARTED=`ps | grep startx`
if [ $ISSTARTED == 0 ]; then
  startx
fi


PS: dimmi se funziona
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
alexio2ky
Apprentice
Apprentice


Joined: 25 Jun 2004
Posts: 199

PostPosted: Sun Jul 04, 2004 6:45 pm    Post subject: Reply with quote

Grazie mille a te e prototype!

Riassumo i punti, se magari qualcuno è interessato in futuro:

da utente:

1) nella $HOME dell'utente interessato bisogna lanciare:

echo "/usr/bin/startxfce" > ~/.xinitrc

ed aggiungere in coda al file ~/.bash_profile:


if [ -z "$DISPLAY" ] && [ $(tty) == /dev/vc/1 ]; then
startx
fi


[se non dovesse funzionare prova nella prima console a dare un echo $(tty) e vedi effettivamente che dev è, ed eventualmente lo sostituisci nello script]

quindi da root:

2) # emerge mingetty

e nel file /etc/inittab sostituire l'eventuale:

c1:12345:respawn:/sbin/agetty 38400 tty1 linux

con

c1:12345:respawn:/sbin/minc1:12345:respawn:/sbin/mingetty --noclear --autologin nome_utente tty1

infine se si ha come default installato in partenza xdm, lanciare:

# rc-update del xdm

Alessio


Last edited by alexio2ky on Mon Jul 05, 2004 6:28 am; edited 2 times in total
Back to top
View user's profile Send private message
ProT-0-TypE
Veteran
Veteran


Joined: 20 Dec 2003
Posts: 1624
Location: Cagliari

PostPosted: Sun Jul 04, 2004 6:47 pm    Post subject: Reply with quote

scusa ma se in .bash_profile hai messo lo scriptino come te l'ho detto io startx dovrebbe partire solo se apri la console 1 (a me funziona così)
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31461
Location: here

PostPosted: Sun Jul 04, 2004 6:48 pm    Post subject: Reply with quote

Metti il tag [risolto] al titolo
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
alexio2ky
Apprentice
Apprentice


Joined: 25 Jun 2004
Posts: 199

PostPosted: Sun Jul 04, 2004 6:54 pm    Post subject: Reply with quote

Funziona in entrambi i modi :) - cancellando e rifacendo prove varie me ne ero dimenticato -
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
Page 1 of 1

 
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