LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-07-2013, 05:28 AM   #1
sprajavel
LQ Newbie
 
Registered: Apr 2006
Posts: 11

Rep: Reputation: 0
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
 
Old 08-07-2013, 05:42 AM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,252

Rep: Reputation: 313Reputation: 313Reputation: 313Reputation: 313
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.

Last edited by eSelix; 08-07-2013 at 06:09 AM.
 
Old 08-08-2013, 12:49 AM   #3
sprajavel
LQ Newbie
 
Registered: Apr 2006
Posts: 11

Original Poster
Rep: Reputation: 0
os = Redhat Enterprise Linux 6.1
gnome desktop manager we used
 
Old 08-08-2013, 08:30 AM   #4
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,252

Rep: Reputation: 313Reputation: 313Reputation: 313Reputation: 313
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.

Last edited by eSelix; 08-08-2013 at 08:36 AM.
 
Old 08-26-2013, 02:03 AM   #5
sprajavel
LQ Newbie
 
Registered: Apr 2006
Posts: 11

Original Poster
Rep: Reputation: 0
its nice.... and working...
thank u...
is there any chance to change background when login screen appear...
 
Old 09-11-2013, 01:42 AM   #6
sprajavel
LQ Newbie
 
Registered: Apr 2006
Posts: 11

Original Poster
Rep: Reputation: 0
xclock

i invoke xclock through script (rhel6)
i dont want maximize button and close button.
how can i remove
 
Old 09-11-2013, 10:06 AM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,949

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by sprajavel View Post
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.
 
  


Reply

Tags
loginbox


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Disable login screen (auto login) after waking from sleep (KDE/KDM) damgar Slackware 1 10-31-2012 11:07 AM
Cant login into Hardy...Screen hangs up at login screen linuxlover.chaitanya Ubuntu 5 12-23-2008 08:18 AM
typing login only changes screen resolution at login screen raggedyman Linux - Software 1 01-21-2007 12:32 PM
Change Fedora Login Screen to KDE login screen ada601 Linux - Software 2 08-15-2004 06:07 PM


All times are GMT -5. The time now is 06:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration