Visit Our UNIX and Linux User Community


AIX 7.1 Login Terminal


 
Thread Tools Search this Thread
Operating Systems AIX AIX 7.1 Login Terminal
# 1  
Old 08-05-2014
Question AIX 7.1 Login Terminal

Hi there, I am a newbie in AIX. I have reboot the AIX today and then the CDE login screen disappear. SmilieI have reboot several times and still it only shows the terminal (lft0) with only green characters and black screenSmilie. Anyway I can have the CDE login screen back?Smilie

Also, as I need to reset the root password for another AIX7.1... (just received from the vendor and they didn't give me the root passwordSmilie), may I ask how can I get the fix packs without an IBM client no or any method I can reset it without the installation media? Smilie

Hope u guys can help me out. Thanks!

Last edited by sunnytai; 08-05-2014 at 06:45 AM..
# 2  
Old 08-05-2014
Firstly I must say that I don't have an AIX 7 server. The CDE is controlled by the dtlogin daemon. The command to run is:-
Code:
/usr/dt/bin/dtlogin -daemon

It is usual to have a script in /etc/rc.d/rc2.d called S99dtlogin or similar to do this for you when the server boots. Note the capital S marks this be run with a parameter start during the boot.

This might be in rc3.d if your run-level is 3. Check this by looking at /etc/inittab
Code:
grep initdefault /etc/inittab



Separately, have a look at this for an IBM AIX root password resetYou should get a list of useful sites and even a you-tube video walking you through the process. For this reason you must keep your console (physical serial console, serial console server or HMC managed) very secure.



I hope that this helps,
Robin
This User Gave Thanks to rbatte1 For This Post:
# 3  
Old 08-05-2014
Quote:
Originally Posted by rbatte1
Firstly I must say that I don't have an AIX 7 server. The CDE is controlled by the dtlogin daemon.
This is correct but starting it directly is only a one-time solution. The way to set the default environment permanently is the command dtconfig. For the documentation see here. For a minimum you need two commands, both need to be issued as root:

Code:
dtconfig -d       # disables CDE login
dtconfig -e       # enables CDE login

I hope this helps.

bakunin
These 2 Users Gave Thanks to bakunin For This Post:
# 4  
Old 08-05-2014
thanks both of your reply!

I just found that the my default boot is rc.2, however I just saw these file in /etc/rc.d/rc2.d:
Code:
# ls
K71itcaTivoliCommonAgent0  Kwpars                     S71itcaTivoliCommonAgent0
Ksshd                      S00ct_boot                 Ssshd

I am not sure how to check if the file is running with a parameter
Code:
start

during the boot. Could you please help me on this?

Re bakunin:
I have enable the CDE login already and still won't show the CDE login screen. Actually I can type
Code:
#startx

to enable a X windows but all the desktop icons were still disappear.
When I connect to the AIX by ssh, it shows that:
Code:
X11 forwarding request failed on channel 0

I don't know if there are any settings error....but I am sure I have set X11 Forwardingto Yes

For the root password problem, I have check a lot of post and videos and still all the method still need an installation media. However my boss said that he didn't have the installation disc when he gets the blade.....

Sunny

Last edited by sunnytai; 08-05-2014 at 10:43 PM..
# 5  
Old 08-06-2014
Quote:
Originally Posted by sunnytai
I just found that the my default boot is rc.2, however I just saw these file in /etc/rc.d/rc2.d:
Code:
# ls
K71itcaTivoliCommonAgent0  Kwpars                     S71itcaTivoliCommonAgent0
Ksshd                      S00ct_boot                 Ssshd

I am not sure how to check if the file is running with a parameter
Code:
start

during the boot. Could you please help me on this?
You do not have to. When a certain runlevel is entered (in your case runlevel 2) all the S-scripts (S for Start) are executed. If another runlevel is entered all the K-scripts (K for Kill) for the current runlevel, then the S-scripts for the runlevel to be entered are executed. The numbers after the K/S just make sure they are executed in a certain order because prior to starting them they are sorted alphabetically.

But this all does not matter, because "dtlogin" is started in the inittab (see below) and you do not need any rc-scripts, at least not in runlevel 2 (see below).

Quote:
Originally Posted by sunnytai
I have enable the CDE login already and still won't show the CDE login screen. Actually I can type
Code:
#startx

to enable a X windows but all the desktop icons were still disappear.
"startx" does NOT start CDE but the native X-server (and the mwm Window Manager) This is what is called "AIXWindows". Post the output of

Code:
lsitab dt_nogb

to verify your really configured dtlogin. It should look like this:

Code:
# lsitab dt_nogb
dt_nogb:2:wait:/etc/rc.dt

Now have a look at what is in "/etc/rc.dt". There should be a line

Code:
/usr/dt/bin/dtlogin -daemon

in the script. rbatte1 gave you the correct command already, but it has to be started every time the system starts, this is why it has to be in this script rather than be issued by hand. Nevertheless you could issue it by hand, check if it has the desired effect and report any occurring error messages here.


Quote:
Originally Posted by sunnytai
When I connect to the AIX by ssh, it shows that:
Code:
X11 forwarding request failed on channel 0

I don't know if there are any settings error....but I am sure I have set X11 Forwardingto Yes
You need to set X11forwarding not only on the server but also on the client side. Check your local ssh-daemon as well as the /etc/ssh/sshd_config on your target machine.

Quote:
Originally Posted by sunnytai
For the root password problem, I have check a lot of post and videos and still all the method still need an installation media. However my boss said that he didn't have the installation disc when he gets the blade.....
If you have support you can request such a CD from IBM. Otherwise you cannot install or maintain the system at all because for any update you need the base level fileset as a prerequisite.

I hope this helps.

bakunin
These 2 Users Gave Thanks to bakunin For This Post:
# 6  
Old 08-07-2014
Lightbulb

Thanks bakunin....I have the following output in /etc/inittab:
Code:
...
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3
l4:4:wait:/etc/rc.d/rc 4
l5:5:wait:/etc/rc.d/rc 5
l6:6:wait:/etc/rc.d/rc 6
l7:7:wait:/etc/rc.d/rc 7
l8:8:wait:/etc/rc.d/rc 8
l9:9:wait:/etc/rc.d/rc 9
naudio2::boot:/usr/sbin/naudio2 > /dev/null
naudio::boot:/usr/sbin/naudio > /dev/null
rcml:2:once:/usr/ml/aix71/rc.ml > /dev/console 2>&1
rcwpars:2:once:/etc/rc.wpars > /dev/console 2>&1 # Corrals autostart
logsymp:2:once:/usr/lib/ras/logsymptom # for system dumps
perfstat:2:once:/usr/lib/perf/libperfstat_updt_dictionary >/dev/console 2>&1
diagd:2:once:/usr/lpp/diagnostics/bin/diagd >/dev/console 2>&1
artex:2:wait:/usr/sbin/artexset -q -c -R /etc/security/artex/config/master_profile.xml > /
dev/console 2>&1
cimservices:2:once:/usr/bin/startsrc -s cimsys >/dev/null 2>&1
clcomd:23456789:once:/usr/bin/startsrc -s clcomd
pconsole:2:once:/usr/bin/startsrc -s pconsole  > /dev/null 2>&1
xmdaily:2:once:/usr/bin/topasrec -L -s 300 -R 1 -r 6 -o /etc/perf/daily/ -ypersistent=1 2>
&1 >/dev/null #Start local binary recording
ctrmc:2:once:/usr/bin/startsrc -s ctrmc > /dev/console 2>&1
ha_star:h2:once:/etc/rc.ha_star >/dev/console 2>&1
vty0:2:off:/usr/sbin/getty /dev/vty0
orapw:2:wait:/etc/loadext -L /etc
dt:2:wait:/etc/rc.dt
cons:0123456789:respawn:/usr/sbin/getty /dev/console

Also I have check enable both server and client enabled the SSH Forwarding to YES. Now the AIX keeps looping between a grey background with a black X cursor and a black screen. After a several times, it shows:
Code:
************************************************** ***************************
*
* Suspending Desktop Login...
*
* Press [Enter] for a login prompt.
*
* Log in. Desktop Login will resume shortly after you log out.
*
************************************************** ***************************

then turn it back to the loop.......Smilie I have rebooted and connect with ssh, it shows:
Code:
# ps -ef|grep dt
    root  1245298        1   0 09:41:04      -  0:00 /usr/dt/bin/dtlogin -daemon
    root  2555992  1245298   0 10:21:40      -  0:00 /usr/dt/bin/dtlogin -daemon
    root  2818478  1245298   0 10:21:40      -  0:00 /usr/lpp/X11/bin/X -cc 4 -D /usr/lib/     X11/rgb -T -force :0 -auth /var/dt/A0-m-ahia
    root  4325670  3604732   0 10:21:58  pts/0  0:00 grep dt
#

I think the CDE is running but I don't know if there are any CDE files corrupted.....Smilie (Recently I have install a vnc server and mozilla firefox, but after I restart the server, I can't have the CDE back....Smilie)

Regarding the reset root password problem, finally we will have a clean install of AIX6.1 next week....(because we only have a licensed AIX6.1 instead of 7Smilie)

---------- Post updated at 12:21 PM ---------- Previous update was at 12:19 PM ----------

Finally the problem solved!!!Smilie
I have do a few things:

1. Check the /etc/ssh/sshd_conf (find out that there exist 2 entries, one is X11 forwarding to No and the other one is Yes.
2. Check /etc/hosts to find out if there are any incorrect entry
3. Check /etc/dt/config/Xservers (I have uncomment it and changed to:
Code:
:0   Local local@console /usr/lpp/X11/defaults/xserverrc -T -force :0

4. Restart the server (#shutdown -r)



Finally my CDE login screen shows again!!SmilieSmilieSmilie

p.s.: In addition, I have Google a lot and find that the system locale setting will also cause errors in displaying CDE. (but not in my case, so I haven't check my settings)

Hope this post can helps!

Sunny

Last edited by sunnytai; 08-07-2014 at 03:01 AM..

Previous Thread | Next Thread
Test Your Knowledge in Computers #147
Difficulty: Easy
Linus Torvalds released the Linux kernel as free software under the GNU General Public License in 1991.
True or False?

10 More Discussions You Might Find Interesting

1. AIX

Unable to login in ssh terminal

Hi guys when ever i tried to connect aix server in my institute through ssh terminal the pop is coming like network is unreachable .Am using MacBook air the other guys who are using putty software in windows they can easily login in tho the server through remotely . Is there any one can... (3 Replies)
Discussion started by: aashishb007
3 Replies

2. AIX

Not able to login AIX server but able to login thru console.

Hi, i am able to login to AX server thru console but not able to login directly thru server. also the server is not ping-able with other server. filesystem is fine. and OS version is AIX 5.3. please let me know if you need any specific log. thx in advance. Scriptor (2 Replies)
Discussion started by: scriptor
2 Replies

3. UNIX for Dummies Questions & Answers

Resizing Terminal Size Upon Login?

Hello All, PC: CuBox-i OS: OpenSuSE 13.1 uname: Linux CuBox 3.14.14-cubox-i #1 SMP Sat Sep 13 03:48:24 UTC 2014 armv7l armv7l armv7l GNU/Linux Shell: Bash So I was trying to see if there was a way to resize the terminal dynamically upon logging into a remote PC. How I login now is to use... (3 Replies)
Discussion started by: mrm5102
3 Replies

4. AIX

User Account Login Login on your AIX server

I want to learn AIX. I would like to find someone who would be willing to give me a login to their AIX home lab server. My intent is to poke around and discover the similarities and differences of AIX compared to other *NIXs. I am a UNIX admin so I can think of what some immediate concerns may... (1 Reply)
Discussion started by: perl_in_my_shel
1 Replies

5. AIX

AIX 5.3 on p275 - how to login from ANSI terminal?

I did a fresh install of AIX 5.3 on my p275. I can now boot the system from the disk and login as root, but only from the directly attached graphics console (keyboard+LCD monitor). Over on the ASCII terminal, I see all messages up to and including "Completed NFS services" but the actual login:... (3 Replies)
Discussion started by: smithfarm
3 Replies

6. OS X (Apple)

How to prompt for login on OSX when starting Terminal

I was wondering if anyone can tell me how to log back in to unix after logging out. I have a MBPro. If I don't have the window close after exiting, then there is the phrase 'process completed' in brackets with a blinking cursor, but I can't type anything in. Is it also possible to start the... (4 Replies)
Discussion started by: Straitsfan
4 Replies

7. Shell Programming and Scripting

Remote Login in to another Terminal

hi all , i need the command for remote login in to another terminal, came accross by using "tty" command. please suggest and help me out in this. Regrds Sridhar. (1 Reply)
Discussion started by: Sridhar_dev
1 Replies

8. Solaris

Login from X-terminal

I have a Solaris 8 system acting as a NIS slave. My /etc/nsswitch.conf file specifies passwd: files nis and in general users can login successfully. However, I have a few users who use X-terminals booted off the Solaris box and these people are unable to login unless they have entries in the... (0 Replies)
Discussion started by: Scrollon
0 Replies

9. Solaris

How to allow root login from a specified terminal ?

I want to enable root login just from one terminal machine, can i do that via /etc/default/login in console=/dev/console line ? and if so what i have to type exactly, another question is it normal to edit the files inside defaults directly ? or i can copy it to /etc/ and edit it there and its... (3 Replies)
Discussion started by: XP_2600
3 Replies

10. UNIX for Dummies Questions & Answers

won't allow root login from another terminal to my sun

I'm trying to log in to one of my sun boxes via EXCEED's X-terminal and it won't allow me to do so as root, says not at system console, is there a way to change that so it allows logging in as root at a remote terminal? (3 Replies)
Discussion started by: kymberm
3 Replies

Featured Tech Videos