Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users Forum italiano (Italian) Risorse italiane (documentazione e tools)
  • Search

[tip] migliorare aspetto xdm

Forum riservato alla documentazione in italiano.

Moderator: ago

Post Reply
  • Print view
Advanced search
145 posts
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • Next
Author
Message
luna80
Veteran
Veteran
User avatar
Posts: 1569
Joined: Sun Feb 01, 2004 7:51 am
Location: switzerland

[tip] migliorare aspetto xdm

  • Quote

Post by luna80 » Mon Jan 31, 2005 8:17 pm

aggiornato 13.2.'05

ho trovato questo thread inglese in cui si trova il link per questo how-to, anch'esso in inglese;...
ho pensato di tradure brevemente l'how-to e di postarlo perchè secondo me ne vale la pena...


per cambiare sfondo a xdm

aggiungere al file /etc/X11/xdm/Xsetup_0 la seguente riga

Code: Select all

/usr/bin/xsetbg -fork path_immagine_desiderata
per cambiare la finestra di login

modificare i seguenti valori in /etc/X11/xdm/Xresources a piacimento

Code: Select all

! Prompts
xlogin*greeting: Welcome to CLIENTHOST
xlogin*namePrompt: Login:

xlogin*fail: Login incorrect

! Font
xlogin*font: -*-snap-*-*-*-*-*-*-*-*-*-*-*-*
xlogin*Font: -*-snap-*-*-*-*-*-*-*-*-*-*-*-*

! Borders
xlogin*borderWidth: 0
xlogin*frameWidth: 0

! Element colours
xlogin*background: black
xlogin*foreground: grey
xlogin*greetColor: green
xlogin*failColor: red
*Foreground: grey
*Background: black

! Shape and size
xlogin*useShape: true
xlogin*geometry: 350x100+200+200

dove

xlogin*greeting = messaggio di login
xlogin*namePrompt = testo visualizzato per l'iserimento dell'user
xlogin*fail = messaggio da visualizzare in caso di errore di login
xlogin*borderWidth e xlogin*frameWidth = lunghezza bordi per la finestra
xlogin*background = colore sfondo finestra
xlogin*foreground = colore testo fienestra
xlogin*greetColor = colore messaggio di login
xlogin*failColor = colore messaggio errore login
xlogin*geometry = larghezzaxaltezza+posizione_orizzontale+posizione_verticale

ci sono molti altri parametri settabili, ma non ne ho trovata una lista completa, se la trovo aggiornerò questo thread.

per aggiungere bottoni (halt, shutdown,...) (grazie ad @ares)

1. creare il file /usr/local/sbin/xdm_button e editarlo con quanto segue

Code: Select all

#!/usr/bin/wish
wm geometry . +950+900
button .halt -highlightthickness 0 -font -*-fixed-*-*-*-*-*-*-*-*-*-*-*-* -bg black -fg gray -bd 0 -text halt -command {exec shutdown -h now}
button .reboot -highlightthickness 0 -font -*-fixed-*-*-*-*-*-*-*-*-*-*-*-* -bg black -fg gray -bd 0 -text reboot -command {exec shutdown -r now}
button .screen -highlightthickness 0 -font -*-fixed-*-*-*-*-*-*-*-*-*-*-*-* -bg black -fg gray -bd 0 -text screenshot -command {exec import -window root /home/luna80/screen.png}
pack .screen .reboot .halt  -side right
2 editare il file /etc/X11/xdm/Xsetup_0, aggiungendo le seguenti righe

Code: Select all

/usr/local/sbin/xdm_button &
echo $! > /var/run/xdm_button.pid
....
exit
(fate attenzione a dove mettete "exit", tutto ciò che c'è dopo non verrà eseguito)

/usr/local/sbin/xdm_button & = serve per far partire in background lo script che visualizza i bottoni
echo $! > /var/run/xdm_button.pid = crea un file con il pid (process id) assegnato allo script del bottoni, servirà una volta loggati per killare lo script, altrimenti i bottoni rimangono sul desktop

3 controllare il file /etc/X11/xdm/xdm-config, per vedere se c'è la linea

Code: Select all

DisplayManager._0.startup:      /etc/X11/xdm/GiveConsole 
4 editare il file /etc/X11/xdm/GiveConsole, aggiungendo la seguente riga

Code: Select all

if test -r /var/run/xdm_button.pid; then kill `cat /var/run/xdm_button.pid`; fi 
la quale controlla se esiste il file xdm_button.pid (creato da xdm in precedenza) e se esiste usa il pid in esso contenuto per killare il processo dei bottoni


questo è il risultato della mia configurazione.


se avete altri suggerimenti o se questo howto non vi sembra chiaro fatemi sapere!

ciao

(segnalo che l'howto è disponibile anche sul wiki a questo indirizzo)
Last edited by luna80 on Mon Feb 14, 2005 9:22 pm, edited 7 times in total.
Top
gutter
Bodhisattva
Bodhisattva
User avatar
Posts: 7162
Joined: Sat Mar 13, 2004 10:37 pm
Location: Aarau, Aargau, Switzerland
Contact:
Contact gutter
Website

  • Quote

Post by gutter » Mon Jan 31, 2005 10:24 pm

Aggiunto ai "Post utilissimi" sezione Tips.
Registered as User #281564 and Machines #163761
Top
neon
l33t
l33t
User avatar
Posts: 759
Joined: Mon Aug 04, 2003 11:47 am
Location: Catania, Italy, Europe

  • Quote

Post by neon » Mon Jan 31, 2005 10:34 pm

Sempre in argomento consiglio questo thread che spiega come mettere uno screensaver come sfondo di XDM

http://forums.gentoo.org/viewtopic.php?t=262251
Io credo che le tecnologie siano moralmente neutrali fino a quando non le utilizziamo - William Gibson

LINEE GUIDA DEL FORUM
Top
cloc3
Advocate
Advocate
User avatar
Posts: 4845
Joined: Tue Jan 13, 2004 10:09 am
Location: http://www.gentoo-users.org/user/cloc3/
Contact:
Contact cloc3
Website

  • Quote

Post by cloc3 » Mon Jan 31, 2005 10:38 pm

Molto bello.

Sapete per caso se xdm (o eventualmente gdm) possono supportare una finestra scorrevole con il nome degli utenti, in stile kdm?
Per me, sarebbe l'elemento fondamentale per sentirmi libero di scegliere il display manager preferito.
vu vu vu
gentù
mi piaci tu
Top
cloc3
Advocate
Advocate
User avatar
Posts: 4845
Joined: Tue Jan 13, 2004 10:09 am
Location: http://www.gentoo-users.org/user/cloc3/
Contact:
Contact cloc3
Website

Re: [mini howto] migliorare aspetto xdm

  • Quote

Post by cloc3 » Mon Jan 31, 2005 11:31 pm

luna80 wrote: ma... :oops: :oops: :oops: ...come faccio a fare un print screen della schermata di login?
Ci sono appena riuscito per una sessione gdm. Ho fatto così:
  • 1. Nel file /etc/X11/gdm/Init/Default ho aggiunto provvisoriamente la riga:

    Code: Select all

    xhost +
    2.

    Code: Select all

    gentoo-amd cloc3 # gdm
    gentoo-amd cloc3 # DISPLAY=:1 ksnapshot
    QPixmap: Cannot create a QPixmap when no GUI is being used
    QPixmap: Cannot create a QPixmap when no GUI is being used
    QPixmap: Cannot create a QPixmap when no GUI is being used
    QPixmap: Cannot create a QPixmap when no GUI is being used
    kbuildsycoca running...
    KWrited - Ascolto il dispositivo /dev/pts/2
    
    3. CTRL-ATL-F8 (senza dare CTRL-c)

    4. scattato e salvato
    5. gioia e tripudio
vu vu vu
gentù
mi piaci tu
Top
unz
l33t
l33t
User avatar
Posts: 819
Joined: Wed Jul 28, 2004 12:19 am
Location: Roma, Italia

  • Quote

Post by unz » Tue Feb 01, 2005 12:22 am

Potresti provare anche con "nuovo login in finestra" e poi pigi stamp ... non è a tutto schermo però è immediato
Ma che c'hai là? Sulla spalla!!!! http://lascimmia.it/
Top
luna80
Veteran
Veteran
User avatar
Posts: 1569
Joined: Sun Feb 01, 2004 7:51 am
Location: switzerland

  • Quote

Post by luna80 » Tue Feb 01, 2005 4:43 am

io lo snapshot son riuscita a farlo ma...il risultato? beh un'immagine piena di righe colorate, incomprensibili,...se qualcuno ne sa qualcosa ... i consigli son sempre ben accetti :)
Top
cloc3
Advocate
Advocate
User avatar
Posts: 4845
Joined: Tue Jan 13, 2004 10:09 am
Location: http://www.gentoo-users.org/user/cloc3/
Contact:
Contact cloc3
Website

  • Quote

Post by cloc3 » Tue Feb 01, 2005 9:20 am

unz wrote: e poi pigi stamp ...
Ma hai preventivamente configurato la tastiera in qualche modo?

Con le mie impostazioni, Stamp è un tasto muto. Per usare ksnapshot da konsole, con xdm, ho dovuto dare preventivamente:

Code: Select all

echo "INET:localhost" >/etc/X0.hosts &&/etc/init.d/xdm restart
vu vu vu
gentù
mi piaci tu
Top
unz
l33t
l33t
User avatar
Posts: 819
Joined: Wed Jul 28, 2004 12:19 am
Location: Roma, Italia

  • Quote

Post by unz » Tue Feb 01, 2005 11:29 am

cloc3 wrote:
unz wrote: e poi pigi stamp ...
Ma hai preventivamente configurato la tastiera in qualche modo?

Con le mie impostazioni, Stamp è un tasto muto. Per usare ksnapshot da konsole, con xdm, ho dovuto dare preventivamente:

Code: Select all

echo "INET:localhost" >/etc/X0.hosts &&/etc/init.d/xdm restart
assolutamente no ... uso gnome e non ho dovuto impostare niente, era già abilitato di default
Ma che c'hai là? Sulla spalla!!!! http://lascimmia.it/
Top
ares
Apprentice
Apprentice
User avatar
Posts: 280
Joined: Mon Oct 13, 2003 6:06 pm
Location: Savigliano (CN)
Contact:
Contact ares
Website

  • Quote

Post by ares » Tue Feb 08, 2005 6:15 pm

Aggiungo una stringa al tips
xlogin*logoFileName: /opt/xdm/pixmap/gentoologo.xpm

Se qualcuno vuole dare un'occhiata
http://www.genbuild.org/gallery/view.php?gid=3&phid=0
My portage and homepage
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 32019
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Tue Feb 08, 2005 8:33 pm

@ares: come hai messo i pulsanti sotto?
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
ares
Apprentice
Apprentice
User avatar
Posts: 280
Joined: Mon Oct 13, 2003 6:06 pm
Location: Savigliano (CN)
Contact:
Contact ares
Website

  • Quote

Post by ares » Tue Feb 08, 2005 9:22 pm

Ho modificato /etc/X11/xdm/Xsetup_0 aggiungendo uno script da avviarsi
/usr/local/sbin/start &

Questo è il codice dello script start

Code: Select all

#!/usr/bin/wish
wm geometry . +270+710
set systemTime [clock seconds]
button .clock -font -*-bitstream\ vera\ sans-bold-r-*--20-*-*-*-*-*-iso10646-1 -bg white -fg LightSlateBlue -bd 0 -text "[clock format $systemTime -format %H:%M:%S]"
button .halt -font -*-bitstream\ vera\ sans-bold-r-*--20-*-*-*-*-*-iso10646-1 -bg white -fg LightSlateBlue -bd 0 -text Halt -command {exec shutdown -h now}
button .reboot -font -*-bitstream\ vera\ sans-bold-r-*--20-*-*-*-*-*-iso10646-1 -bg white -fg LightSlateBlue -bd 0 -text Reboot -command {exec shutdown -r now}
button .screen -font -*-bitstream\ vera\ sans-bold-r-*--20-*-*-*-*-*-iso10646-1 -bg white -fg LightSlateBlue -bd 0 -text Screenshot -command {exec import -window root /home/ilyth/screen.png}
button .start -font -*-bitstream\ vera\ sans-bold-r-*--20-*-*-*-*-*-iso10646-1 -bg white -fg LightSlateBlue -bd 0 -text Adsl-Start -command {exec adsl-start}
button .kill -font -*-bitstream\ vera\ sans-bold-r-*--20-*-*-*-*-*-iso10646-1 -bg white -fg LightSlateBlue -bd 0 -text Kill -command {exec killall -9 start}
pack .clock .start .screen .reboot .halt .kill -side left
My portage and homepage
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 32019
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Tue Feb 08, 2005 9:25 pm

@ares: grazie mille non sapevo
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
ares
Apprentice
Apprentice
User avatar
Posts: 280
Joined: Mon Oct 13, 2003 6:06 pm
Location: Savigliano (CN)
Contact:
Contact ares
Website

  • Quote

Post by ares » Tue Feb 08, 2005 9:29 pm

@fedeliallalinea: Di niente
My portage and homepage
Top
unarana
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 120
Joined: Fri Mar 05, 2004 12:44 pm
Location: Erice (TP) Italy
Contact:
Contact unarana
Website

  • Quote

Post by unarana » Tue Feb 08, 2005 10:56 pm

@ares molto bello lo sfondo ed i loghi che hai usato per xdm, mi potersti dire dove l'hai presi?

Grazie

Ciao :mrgreen:
Top
ares
Apprentice
Apprentice
User avatar
Posts: 280
Joined: Mon Oct 13, 2003 6:06 pm
Location: Savigliano (CN)
Contact:
Contact ares
Website

  • Quote

Post by ares » Tue Feb 08, 2005 11:05 pm

@unarana: presi su kde-look.org
Purtroppo il link esatto nn me lo ricordo, cmq basta che imposti la ricerca in basso a sinistra e nel campo metti gentoo, dovrebbero comparire 5 o 6 pagine
My portage and homepage
Top
unarana
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 120
Joined: Fri Mar 05, 2004 12:44 pm
Location: Erice (TP) Italy
Contact:
Contact unarana
Website

  • Quote

Post by unarana » Tue Feb 08, 2005 11:07 pm

:D Grazie mille

[edit] se a qualcun altro interessa http://kde-look.org/content/show.php?content=18506 [edit]

Ciao :mrgreen:
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 32019
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Wed Feb 09, 2005 12:18 am

Ecco il mio xdm.

Una domanda ancora quando parte il wm poi mi resta aperta anche una finestra con iu bottoni screenshot, halt, reboot si puo' evitare questo?
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
ares
Apprentice
Apprentice
User avatar
Posts: 280
Joined: Mon Oct 13, 2003 6:06 pm
Location: Savigliano (CN)
Contact:
Contact ares
Website

  • Quote

Post by ares » Wed Feb 09, 2005 1:02 am

fedeliallalinea wrote:Ecco il mio xdm.

Una domanda ancora quando parte il wm poi mi resta aperta anche una finestra con iu bottoni screenshot, halt, reboot si puo' evitare questo?
Domani guardo per una soluzione al problema.....ora vado a nanna
Io lo chiudevo prima di entrare in fluxbox tramite il pulsante Kill
Bello screen
My portage and homepage
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 32019
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Wed Feb 09, 2005 1:52 am

ares wrote:Domani guardo per una soluzione al problema.....
Allora ne faccio un'altra si puo' togliere il bordo? Ho provato ma non ci sono riuscito
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
luna80
Veteran
Veteran
User avatar
Posts: 1569
Joined: Sun Feb 01, 2004 7:51 am
Location: switzerland

  • Quote

Post by luna80 » Wed Feb 09, 2005 5:41 am

fedeliallalinea wrote:Ecco il mio xdm.

non mi hai più detto che ci eri riuscito a fare lo screenshot!! :twisted:

me lo spieghi pf? :)
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 32019
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Wed Feb 09, 2005 8:29 am

Ho messo i pulsanti come ares http://forums.gentoo.org/viewtopic.php? ... 11#2071211 cosi' avevo anche quello per lo screenshot
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
luna80
Veteran
Veteran
User avatar
Posts: 1569
Joined: Sun Feb 01, 2004 7:51 am
Location: switzerland

  • Quote

Post by luna80 » Wed Feb 09, 2005 8:34 am

fedeliallalinea wrote:Ho messo i pulsanti come ares http://forums.gentoo.org/viewtopic.php? ... 11#2071211 cosi' avevo anche quello per lo screenshot


grazie mille, stasera provo, adesso non posso (sono al lavoro su win :cry: )

ciao


p.s.: bellissimo, non avevo visto l'immagine di ares!
Top
mouser
Veteran
Veteran
User avatar
Posts: 1419
Joined: Tue Aug 10, 2004 10:49 am
Location: Milano
Contact:
Contact mouser
Website

  • Quote

Post by mouser » Wed Feb 09, 2005 9:30 am

Ciao!!!! Prima di tutto ottimo howto!!!! :D :D

Finalmente posso staccarmi da gdm (trooooppo pesante :lol: ) e personalizzarmi xdm! Posterò al piu' presto uno screenshot.

Ciriciao
mouser :wink:
Top
.:deadhead:.
Advocate
Advocate
User avatar
Posts: 2963
Joined: Tue Nov 25, 2003 5:17 pm
Location: Milano, Italy

  • Quote

Post by .:deadhead:. » Wed Feb 09, 2005 10:26 am

Molto bello! Complimenti Luna80.

/consigli per l'emerge mode ON

Usate già il FrameBuffer? Volete provare a vivere senza XDM? Provate Qingy!
Qingy è un progetto tutto italiano che merita di esser sostenuto (chissà perchè non l'hannoiscritto all'OpenSourceContest :-? ).
tradotto al volo wrote:qingy è un sostituto di getty. Scritto in C usa DirectFB per fornire una GUI veloce e accattivante, senza il peso di un X Windows System. Permette all'utente di loggarsi e far partire la sessione che desidera [sia essa una normale console, gnome kde, wmake, xfce, quel che volete...).
ulteriori info, screenshot e temi [sì, ci son già dei temi pronti, oppure con il minimo sforzo potete crearvi voi il vostro tema!!] le potete trovare sul sito del progetto: qingy.sf.net
/consigli per l'emerge mode OFF
Proudly member of the Gentoo Documentation Project: the Italian Conspiracy ! ;)
Top
Post Reply
  • Print view

145 posts
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • Next

Return to “Risorse italiane (documentazione e tools)”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Authors
Gentoo is a trademark of the Gentoo Foundation, Inc. and of Förderverein Gentoo e.V.
The contents of this document, unless otherwise expressly stated, are licensed under the CC-BY-SA-4.0 license.
The Gentoo Name and Logo Usage Guidelines apply.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy