Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Starting ICA Client on bootup

Status
Not open for further replies.

TheMac28nearly

Technical User
Jan 31, 2002
111
GB
Im trying to configure redhat 8 so it will start up the ICA client when a particular user logs on. I presume i will need to create a script that will sit in the init.d folder.

Ive looked at some existing scripts and it looks like they execute programs with IF ---- THEN ---- ELSE.

Is this correct? all help much apprecitaed

Thanks

Andy
 
Just set the login shell for that user to point to the ICA Client or if you create a new user for Citrix:

adduser ica -s /usr/lib/ICAClient/wfcmgr

"/usr/lib/ICAClient/wfcmgr" may vary depending on where you installed it.
 
Zeland, ive implemented this, but when i logon with the user, i get a message saying

'your session only lasted less than 10 seconds. If you have not logged out yourself, this could mean that there is some installation problem or that you may be out of diskspace'

ive changed the login shell back for the user, logged into x and configured the ica connection, but i still get this message when i change the login shell again

any ideas ?
 
Is this a valid way to do this ?

i logged on as another user whose shell was /bin/bash and ran chsh and typed the path to the ica client and it said it did not exist

however, i changed it to /bin/bash2 and it was fine

any ideas, this would be a great help
 
I'm grasping here...

Check /etc/shells. You may need to add the path (like /usr/lib/ICAClient/wfcmgr, whatever it is on your box) to that so that, when chsh checks it, it thinks your wfcmgr is a valid shell. Bit of a security check-and-balance thing.

It's worth a shot. Good luck.

----
JBR
 
Flugh, nice try but that didnt work. It definetely seemed plausable as when i entered the path it gave me the option of selecting the shell from the pulldown menu for the user, but i still get the same error

i started looking at another way of doing it. I discovered there is a wfica.sh file so ive tried placing this in etc/init.d, and then making a link in etc/rc.d/rc5.d called S11wfica

This hasnt worked though, at bootup it tries to start wfica but says it cannot open display

the script itself is saying

#!/bin/sh
ICAROOT=/usr/lib/ICAClient
export ICAROOT
$ICAROOT/wfica -file $1

am i going in the right direction here ?
 
Only if you want the ICA client to be the primary function of the machine. /etc/init.d/ is a system-wide thing. If you only want it to apply to a single user, try leaving your 'ica' user's shell as /bin/bash, then in /home/ica/.bashrc, put at the bottom /path/to/wfica.sh. That way, when the ica user logs in, the program should be executed.

I'm curious why zeland's simple solution doesn't work though. It would seem the 'right' way to do it.

----
JBR
 
Im not too sure either ?, but then i guess thats why im here !

The way ive done it at the moment is just to logon as the user, go to extras/preferences/sessions and add a startup program here, seems to work ok. The only thing i would like to do now is when the user exits the ica session, or just presses cancel at the logon prompt to actually shutdown redhat

has anyone come across this ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top