08-26-2008
add the following to the unixID's .profile
if tty -s; then
DISPLAYHOST=$(who -muR | awk '{print $NF}')
DISPLAYHOST=${DISPLAYHOST%%:0.0}
DISPLAY=$DISPLAYHOST:0.0; export DISPLAY
echo "DISPLAY has been set to $DISPLAY"
fi
try it, you'll like it
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Ok I've lost myself and hit a brick wall.
What I am trying to do is avoid the login screen when the machine is turned on. So no login screen is needed unless you turn the machine on and log out to login and change users. But as I said before I've hit a brick wall. I got not an idea of what I... (4 Replies)
Discussion started by: merlin
4 Replies
2. UNIX for Dummies Questions & Answers
Hey all,
I'm trying to configure a system so when it reboots it'll automatically log as a user I have selected. I've never done this nor' as I to sure on how to. This is teh best I have found on teh web and well I've changed a few things. but does anyone who has done this know if it'll work... (1 Reply)
Discussion started by: merlin
1 Replies
3. UNIX for Advanced & Expert Users
I am trying to bypass the login screen when the system boots and auto-login to open windows. I believe I need to modify the S99dtlogin but I don't know what to add/modify. Has anyone ever created an auto-login for Solaris 8? (1 Reply)
Discussion started by: nvanduyne
1 Replies
4. Solaris
I am trying to bypass the login screen when the system boots and auto-login to open windows. I believe I need to modify the S99dtlogin but I don't know what to add/modify. Has anyone ever created an auto-login for Solaris 8? (1 Reply)
Discussion started by: nvanduyne
1 Replies
5. Solaris
Hi All,
How do you get around SFTP not having the 'cat' command to set up scripts to run cron jobs for passwords?
I am use to the FTP allowing that, but we are converting to SFTP and need to be able to still run the same scripts in off hrs. Is there a way to still cat the password at the prompt... (14 Replies)
Discussion started by: wsiefkas
14 Replies
6. Shell Programming and Scripting
Hi,
I looked into lot of posts on this question but i could not figure out the solution. we are using the following ftp shell program to send the file to target server.
#!/usr/bin/ksh
ftp -n -i<<EOF 2>&1
open <target server ip>
user <username> <pwd>
lcd /sc/doc/prd/FCSTP
put file1.txt... (3 Replies)
Discussion started by: srrao.ch
3 Replies
7. Windows & DOS: Issues & Discussions
can any one help me for auto login bat file from windows to unix,to check the server daily..
Thanks
Mohan (1 Reply)
Discussion started by: mohankasi
1 Replies
8. Windows & DOS: Issues & Discussions
Hi,
i am trying to connect to unix server from windows bat file using telnet command. But bat file is unable to pass username and password hence could not login to UNIX.
My requirement is to connect UNIX server from .bat file and run few macros at a perticular schedule. My UNIX login does... (1 Reply)
Discussion started by: rahulbahulekar
1 Replies
9. SCO
OS: SCO Openr Server 6.0 MP4
HW: Dell R710 Server
When I try to login to the console, the login prompt keeps filling with *
even when I presss enter after the password prompt the login starts filling automatically with the multiple asterisks. This is happening on the console only and if I... (0 Replies)
Discussion started by: atish0
0 Replies
10. UNIX for Dummies Questions & Answers
Hello All ,
Requiremnt : i want to login to putty automatically and change the settings like i want , for ex : changing the "lines of scrollback" , " under colors , want to check to checkmark the option use system colors" . Like this i want to do .
I have a bash file created to login . But... (2 Replies)
Discussion started by: radha254
2 Replies
LEARN ABOUT DEBIAN
catalystx::simplelogin::controller::login
CatalystX::SimpleLogin::Controller::Login(3pm) User Contributed Perl Documentation CatalystX::SimpleLogin::Controller::Login(3pm)
NAME
CatalystX::SimpleLogin::Controller::Login - Configurable login controller
SYNOPSIS
# For simple useage exmple, see CatalystX::SimpleLogin, this is a
# full config example
__PACKAGE__->config(
'Controller::Login' => {
traits => [
'WithRedirect', # Optional, enables redirect-back feature
'-RenderAsTTTemplate', # Optional, allows you to use your own template
],
actions => {
login => { # Also optional
PathPart => ['theloginpage'], # Change login action to /theloginpage
},
},
},
);
See CatalystX::SimpleLogin::Form::Login for configuring the form.
DESCRIPTION
Controller base class which exists to have login roles composed onto it for the login and logout actions.
ATTRIBUTES
login_form_class
A class attribute containing the class of the form to be initialised. One can override it in a derived class with the class of a new form,
possibly subclassing CatalystX::SimpleLogin::Form::Login. For example:
package MyApp::Controller::Login;
use Moose;
extends('CatalystX::SimpleLogin::Controller::Login');
has '+login_form_class' => (
default => "MyApp::Form::Login",
);
1;
login_form_class_roles
An attribute containing an array reference of roles to be consumed by the form. One can override it in a similar way to "login_form_class":
package MyApp::Controller::Login;
use Moose;
extends('CatalystX::SimpleLogin::Controller::Login');
has '+login_form_class_roles' => (
default => sub { [qw(MyApp::FormRole::Foo MyApp::FormRole::Bar)] },
);
1;
METHODS
BUILD
Cause form instance to be built at application startup.
do_post_login_redirect
This method does a post-login redirect. TODO for BOBTFISH - should it even be public? If it does need to be public, then document it
because the Pod coverage test failed.
login
Login action.
login_redirect
Redirect to the login action.
login_GET
Displays the login form
login_POST
Processes a submitted login form, and if correct, logs the user in and redirects
not_required
A stub action that is anchored at the root of the site ("/") and does not require registration (hence the name).
redirect_after_login_uri
If you are using WithRedirect (i.e. by default), then this methd is overridden to redirect the user back to the page they intially hit
which required authentication.
Note that even if the original URI was a post, then the redirect back will only be a GET.
If you choose NOT to compose the WithRedirect trait, then you can set the uri users are redirected to with the "redirect_after_login_uri"
config key, or by overriding the redirect_after_login_uri method in your own login controller if you need custom logic.
render_login_form
Renders the login form. By default it just calls the form's render method. If you want to do something different, like rendering the form
with a template through your view, this is the place to hook into.
required
A stub action that is anchored at the root of the site ("/") and does require registration (hence the name).
SEE ALSO
CatalystX::SimpleLogin::TraitFor::Controller::Login::WithRedirect
CatalystX::SimpleLogin::Form::Login
AUTHORS
See CatalystX::SimpleLogin for authors.
LICENSE
See CatalystX::SimpleLogin for license.
perl v5.14.2 2012-07-15 CatalystX::SimpleLogin::Controller::Login(3pm)