10 More Discussions You Might Find Interesting
1. HP-UX
HI. I was wondering if anyone can assist me in this. I have an HP-UX 11.31 server at work which keeps expiring my NIS password. I cannot log in unless I use root access. It worked before and I think some of the settings changed since then. My boss has told me that since we're taking some... (1 Reply)
Discussion started by: zixzix01
1 Replies
2. Shell Programming and Scripting
I'm creating a scrip for auditing our AIX box's to ensure that they are built according to our system standards. I'm not sure on the logic for checking to see if the NIS and NIS+ services are disabled. any idea's? (2 Replies)
Discussion started by: sport
2 Replies
3. Solaris
Hi everyone! I have a problem with NIS and I'm hoping one of you experts can point me in the right direction :)
I have setup 2 Solaris10 machines in VMWare and I was following this guide I found:
Solaris: NIS installation and configuration - Basically Tech
After following that guide, I was... (3 Replies)
Discussion started by: Keepcase
3 Replies
4. Solaris
Hi, all.
I have a Solaris client here needs to bind to NIS server in another subnet. Following is the configuration i made on the client,
1) edit /etc/inet/hosts to add an entry of the NIS server -- nserver01
2) execute `domainname` to set local NIS domain to the domain of the NIS server.... (1 Reply)
Discussion started by: sn_wukong
1 Replies
5. UNIX for Advanced & Expert Users
Our NIS master server went down. We have since fixed it and brought it back up. However all of are machines still point to the slave server when looking at it with ypwhich. My question is how do i point the servers back to the master.
Frank (2 Replies)
Discussion started by: frankkahle
2 Replies
6. UNIX for Advanced & Expert Users
We have a RedHat 8.0 NIS master, with a RedHat 8.0 NIS Slave.
We also have a small number of SUSE 9.1 and SUSE 10 machines here for evaluation.
However, no matter what i do, the SUSE machines will not talk to the NIS Servers.
If i broadcast for NIS Servers for the specified NIS domain, it... (1 Reply)
Discussion started by: fishsponge
1 Replies
7. UNIX for Dummies Questions & Answers
Hi all,
I just took over the admin role from someone and I wanna setup sendmail (just to send mail from the host) however, after I config all the resolv.conf, nssitch.conf, hosts file and when I try to send a mail out, after I punched ctl-D, it returned he following,
"NIS map mail.aliases... (2 Replies)
Discussion started by: stancwong
2 Replies
8. UNIX for Dummies Questions & Answers
I changed the root password on the NIS master, now I cant login to any of the NIS clients. Or even the NIS master using normal logons, any ideas what might be wrong or how I can solve this?
Im running solaris 2.6 btw. (1 Reply)
Discussion started by: blakmk
1 Replies
9. IP Networking
Hello together.
Is there someone who is able to explain me the differences between NIS and NIS+.
thanks in advance
joerg (2 Replies)
Discussion started by: joerg
2 Replies
10. UNIX for Advanced & Expert Users
Hello all,
I'm not sure if this is the right forum, but I would like to know if Redhat running NIS ( not NIS +) would have conflict with Solaris running NIS+. Currently I am running NIS+ on Solaris but will be adding RedHat to the network. I seem to be unable to find and information regarding... (2 Replies)
Discussion started by: larry
2 Replies
Tk_MaintainGeometry(3) Tk Library Procedures Tk_MaintainGeometry(3)
__________________________________________________________________________________________________________________________________________________
NAME
Tk_MaintainGeometry, Tk_UnmaintainGeometry - maintain geometry of one window relative to another
SYNOPSIS
#include <tk.h>
Tk_MaintainGeometry(slave, master, x, y, width, height)
Tk_UnmaintainGeometry(slave, master)
ARGUMENTS
Tk_Window slave (in) Window whose geometry is to be controlled.
Tk_Window master (in) Window relative to which slave's geometry will be controlled.
int x (in) Desired x-coordinate of slave in master, measured in pixels from the inside of master's left border to the
outside of slave's left border.
int y (in) Desired y-coordinate of slave in master, measured in pixels from the inside of master's top border to the
outside of slave's top border.
int width (in) Desired width for slave, in pixels.
int height (in) Desired height for slave, in pixels.
_________________________________________________________________
DESCRIPTION
Tk_MaintainGeometry and Tk_UnmaintainGeometry make it easier for geometry managers to deal with slaves whose masters are not their parents.
Three problems arise if the master for a slave is not its parent:
[1] The x- and y-position of the slave must be translated from the coordinate system of the master to that of the parent before posi-
tioning the slave.
[2] If the master window, or any of its ancestors up to the slave's parent, is moved, then the slave must be repositioned within its
parent in order to maintain the correct position relative to the master.
[3] If the master or one of its ancestors is mapped or unmapped, then the slave must be mapped or unmapped to correspond.
None of these problems is an issue if the parent and master are the same. For example, if the master or one of its ancestors is unmapped,
the slave is automatically removed by the screen by X.
Tk_MaintainGeometry deals with these problems for slaves whose masters are not their parents, as well as handling the simpler case of
slaves whose masters are their parents. Tk_MaintainGeometry is typically called by a window manager once it has decided where a slave
should be positioned relative to its master. Tk_MaintainGeometry translates the coordinates to the coordinate system of slave's parent and
then moves and resizes the slave appropriately. Furthermore, it remembers the desired position and creates event handlers to monitor the
master and all of its ancestors up to (but not including) the slave's parent. If any of these windows is moved, mapped, or unmapped, the
slave will be adjusted so that it is mapped only when the master is mapped and its geometry relative to the master remains as specified by
x, y, width, and height.
When a window manager relinquishes control over a window, or if it decides that it does not want the window to appear on the screen under
any conditions, it calls Tk_UnmaintainGeometry. Tk_UnmaintainGeometry unmaps the window and cancels any previous calls to Tk_MaintainGeom-
etry for the master-slave pair, so that the slave's geometry and mapped state are no longer maintained automatically. Tk_UnmaintainGeome-
try need not be called by a geometry manager if the slave, the master, or any of the master's ancestors is destroyed: Tk will call it
automatically.
If Tk_MaintainGeometry is called repeatedly for the same master-slave pair, the information from the most recent call supersedes any older
information. If Tk_UnmaintainGeometry is called for a master-slave pair that is is not currently managed, the call has no effect.
KEYWORDS
geometry manager, map, master, parent, position, slave, unmap
Tk 4.0 Tk_MaintainGeometry(3)