Discussion:
// napp-it 0.306 - help needed with Expect.pm on eon/Opensolaris
Günther
2010-07-09 07:29:53 UTC
Permalink
hello all

up from napp-it 0.306, i will include Expect.pm to my free web-gui to handle interactive cli commands like passwd or smbadm. <br>On my Nexenta version, all needed files are included with napp-it. (No need to install something).
see my running installation: http://www.napp-it.org/pop_en.html

new features:
user management with change passwort via passwd is now working
join a workgroup or domain via menue service-cifs

On Eon/ Opensolaris it's not working although all needed files seems to be there. (see errors in apache.log). I would prefer to have this running also on eon/ opensolaris without installation. If someone got it running without install Expect.pm, please share this info.

gea
www.napp-it.org
--
This message posted from opensolaris.org
Andre Lue
2010-07-09 22:18:23 UTC
Permalink
Hi Gea,

Dunno if I did this right but I went to user tab, on "all accounts" "system accounts", I get
pfexec: can't execute /usr/bin/logins: Permission denied

if I enter passwd admin in the cmd box , I get back
Permission denied

It seems to be looking for napp-it/_lib/auto/IO/Tty/Tty.so, which returns a truncated and unknown ELF header. I suspect something is wrong with this library.

[Fri Jul 09 15:05:02 2010] [error] [client 10.72.100.128] Can't load '/var/apach
e2/2.2/cgi-bin/napp-it/_lib/auto/IO/Tty/Tty.so' for module IO::Tty: ld.so.1: per
l: fatal: /var/apache2/2.2/cgi-bin/napp-it/_lib/auto/IO/Tty/Tty.so: unknown file
type at /usr/perl5/5.8.4/lib/i86pc-solaris-64int/DynaLoader.pm line 230., refer
er: http://10.72.100.148/cgi-bin/napp-it/admin.pl?id=admin,!UxEpTkN87xpY&l1=03_u
ser%20and%20user-groups&l2=02_all%20accounts

pwd
/var/apache2/2.2/cgi-bin/napp-it/_lib/auto/IO/Tty
ldd Tty.so
ldd: Tty.so: elf_getehdr: Format error: shdr table truncated

file Tty.so
file: Tty.so: can't read ELF header

I'm guessing it's because this is linked a gcc 4.2.3

ERROR: pty_allocate: ttyname truncated
@(#)SunOS Nexenta NexentaOS_134e
@(#)SunOS Nexenta NexentaOS_134e
GCC: (GNU) 4.2.3 (Ubuntu 4.2.3-2nexenta7)
GCC: (GNU) 4.2.3 (Ubuntu 4.2.3-2nexenta7)
GCC: (GNU) 4.2.3 (Ubuntu 4.2.3-2nexenta7)
@(#)SunOS Nexenta NexentaOS_134e
.symtab
.strtab
.shstrtab
--
This message posted from opensolaris.org
Günther
2010-07-10 09:34:25 UTC
Permalink
helo andre

thanks for your investigations. i know Nexenta and base Ubuntu handling, but not eon/Opensolaris and no unix internals at all (you know, im from mac/win-world), so your help is more than welcome, in fact it is needed for napp-it on eon.

if you are right, the solution is to have eon-specific versions of the *.so files in napp-it/_lib/auto/IO. (having Nexenta and eon-versions included in napp-it, using the right ones after login)

is it possible for you install Expect.pm on eon and replace these files on a clean version of eon/napp-it to see if menue user (set pw) is running?

and
what do you think about a user-friendly eon zfsserver, not the base cli-version but a ready to run 64bit version with napp-it and all the apps from your binary kit included?

if its a question of licensing (your and my license are just similar) i am sure we can have a agreement.


gea
--
This message posted from opensolaris.org
Andre Lue
2010-07-12 21:46:16 UTC
Permalink
Hi Gea,

Here is a opensolaris built Tty.so file from IO-Tty-108 and Expect-1.21. Seems to work for my testing. Give it a try and let me know.

I copied it over to /var/apache2/2.2/cgi-bin/napp-it/_lib/auto/IO/Tty/Tty.so

It's looking good however, I noticed some pages had some slight inconsistencies
2 consoles
system - hardware
system - update

system - log reads /var/log/messages for opensolaris/eon /var/adm/messages

services - rsync - could use an added edit /etc/rsyncd.conf

services - ssh - could use an added edit client/server /etc/ssh/ssh_config , sshd_config
--
This message posted from opensolaris.org
Günther
2010-07-13 14:00:54 UTC
Permalink
hello andre

thats excellent.
now i can manage interactive cli commands on Nexenta and Opensolaris/ eon without the need of preinstall something.

current nightly 0.308 on www.napp-it.org is now supporting user-management with change password via Expect.pm and passwd on both systems.

about your remarks:

system-hardware: whats wrong?
system-update: tagged as nexenta only
show system-log: use the correct one on eon
rsyncd.conf: now editable
ssh(d).conf: now editable

on a short test with my virtual eon on esxi 4.01 (i have a problem to install it to a virtual hd, so i use it after booting from cd), i have already problems with network access (dns and routing to internet is not working although ip setting,
defaultrouter and resolv.config are set). also join a domain via service-cifs is not working. i suppose of the same reason

best regards


gea
--
This message posted from opensolaris.org
Andre Lue
2010-07-13 16:01:11 UTC
Permalink
system-hardware
system-network-ipalias
services-cifs-domain-mapping
shows a 2nd console cmd input box

Others seem fixed. Good stuff. Thanks Gea.
--
This message posted from opensolaris.org
Loading...