LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   login screen (https://www.linuxquestions.org/questions/linux-newbie-8/login-screen-4175472437/)

sprajavel 08-07-2013 04:28 AM

login screen
 
i have two script for mounting server1 and server2.
i want to select this script before login.
if i chooser "server1" script it will mount with server 1 and login.
ig i choose "server2" script it will mount with server2 and login.
pls help me

eSelix 08-07-2013 04:42 AM

What login manager do you use - kdm, gdm, etc. or what desktop environment? And what distribution. The easy and general method can be to replace your X client application to your own which ask to choose server1 or 2 and then run orginal X client.

sprajavel 08-07-2013 11:49 PM

os = Redhat Enterprise Linux 6.1
gnome desktop manager we used

eSelix 08-08-2013 07:30 AM

You can edit file "/etc/gdm/Init/Default" and paste for example this script at beginning or at end
Code:

ANSWER=$(zenity --list --text 'Select server' --column 'option' --hide-header 'server1' 'server2')

if [[ $ANSWER == 'server1' ]] ; then
  zenity --info --text 'Chosen server1'
#  call_mount_script1
elif [[ $ANSWER == 'server2' ]] ; then
  zenity --info --text 'Chosen server2'
#  call_mount_script2
fi

You can probably also edit file "/usr/share/gdm/gdm-greeter-login-window.ui" for better interface, but I did not tested this.

sprajavel 08-26-2013 01:03 AM

its nice.... and working...
thank u...
is there any chance to change background when login screen appear...

sprajavel 09-11-2013 12:42 AM

xclock
 
i invoke xclock through script (rhel6)
i dont want maximize button and close button.
how can i remove

TB0ne 09-11-2013 09:06 AM

Quote:

Originally Posted by sprajavel (Post 5025610)
i invoke xclock through script (rhel6)
i dont want maximize button and close button.
how can i remove

You don't, unless you want to re-write/re-compile the source code for xclock.


All times are GMT -5. The time now is 08:05 PM.