AT&T NetClient Debianizer
Ok, spent my last 22 minutes creating a simple debianizer for the AT&T rpms (that also ports from RH to Ubuntu). Hope it is useful for somebody.
Please keep in mind that AT&T has nothing to do with this!!! This is totally unofficial (”do-it-yourself” initiative)!!!
Download it here.
And use it:
* Make it executable
chmod +x ubuntu_rpm2deb.sh
* Install the dependencies
./ubuntu_rpm2deb.sh --deps
* Convert the RPMs
./ubuntu_rpm2deb.sh rpm-package.rpm
Please drop me a comment if you find an use for this.
[edit] I wrote also an extremely experimental redhat version of this “debianizer”. Check it here [/edit]
Murillo said,
November 7, 2007 @ 7:34 am
it’s nice how creative you gotta be to handle this “legal” issues when you work on these huge companies.
it’s nice also how stupid these stuff usually are
Chris said,
November 14, 2007 @ 2:29 pm
It’s really a good news that it’s possible use AT&T network client under Ubuntu. I’ve been thinking what’s the possibility do do daily work in Ubuntu since Gusty was released.
I’ve tried your script but have some error message and not able to build the deb package. Would you mind take a look at my log file. Thanks.
log:
dpkg-buildpackage: source package is agnclient
dpkg-buildpackage: source version is 1.0~2.0.0.2011-1.1
dpkg-buildpackage: source changed by André F. Macêdo
dpkg-buildpackage: host architecture i386
dpkg-buildpackage: source version without epoch 1.0~2.0.0.2011-1.1
dpkg-checkbuilddeps: Unmet build dependencies: libssl-dev
dpkg-buildpackage: Build dependencies/conflicts unsatisfied; aborting.
dpkg-buildpackage: (Use -d flag to override.)
Chris
afmacedo said,
November 14, 2007 @ 2:58 pm
Hi Chris,
There is a missing build dependency in there.
sudo apt-get install libssl-dev
And then try again!
– AM
Chris said,
November 14, 2007 @ 3:28 pm
André,
Thanks for the quick response. Besides the missing build dep, I also ran into dep. issues like tcl, libcurl3 when installing the deb package but fortunately they are all resolved.
My network client is working, my next target would be LN.
Thanks again!
Chris
afmacedo said,
November 14, 2007 @ 3:38 pm
Hi Chris,
Thx for the feedback.
The script installs only the buid process deps (the ones used by the script) and right now I’m not checking for the package build deps (I’ll, as soon as I have some free time to play with that)
Cheers,
– AM
Neonkat said,
November 20, 2007 @ 7:46 pm
Hey I think Im doing this right, however I get the following error:
————————————————————————————————————————–
stevekelly@ubuntu-ibm:~$ ./ubuntu_rpm2deb.sh agnclient-1.0-2.0.0.2013.i386.rpm
No ‘dpatch’ found, run ./ubuntu_rpm2deb.sh –deps to install all dependencies.
stevekelly@ubuntu-ibm:~$
————————————————————————————————————————–
Thank you for your time and effort on this I do appreciate it.
Steve
Enrique said,
November 21, 2007 @ 8:12 am
Hey Alfred,
Good job on making the client work on UBUNTU. The old DEB package works like a champ! I tried using ALIEN to convert the RPM package to DEB and of course it did not work as plan. If you were to give suggestions on how to take the existing BETA 14 and convert it to DEB, how would you do it? I am a newbie (well sorta) at this and details would be appreciated.
Thanks!
NeonKat said,
November 21, 2007 @ 8:28 am
NeonKat,
I had the same issue. I resolved it by installing dpatch on my system:
sudo apt-get install dpatch
Hope this helps!
Enrique
Enrique said,
November 21, 2007 @ 8:35 am
Ok, I tried the script and it looks good until it spits an error at the end. A tar.gz file is created, but a DEB file is not created. Thanks for helping out on this.
*Here’s the out put of my terminal session:
enrique@office:~/Downloads$ ./ubuntu_rpm2deb.sh agnclient-1.0-2.0.0.2013.i386.rpm
822-date: warning: This program is deprecated. Please use ‘date -R’ instead.
Preparing to convert agnclient-1.0-2.0.0.2013.i386.rpm …
Target Name : agnclient
Target Version : 1.0
Template debian : agnclient_debian-1.0~2.0.0.2013.tar.gz
DEB Version : 1.0~2.0.0.2013
Changelog Distro : gutsy
Changelog Comments : Debianized from agnclient-1.0-2.0.0.2013.i386.rpm
Changelog Date : Wed, 21 Nov 2007 06:33:08 -0500
Converting agnclient-1.0-2.0.0.2013.i386.rpm …
* Cleaning previous builds…
* Creating building directory…
* Extracting package content…
* Unpacking template debian directory…
* Customizing template directory…
Building .DEB package …
* Building package…
* Cleaning…
Not able to convert the package, check the .log files for more info!
* And here is the output of the log file:
Warning: Skipping conversion of scripts in package agnclient: postinst postrm prerm
Warning: Use the –scripts parameter to include the scripts.
agnclient-1.0.tgz generated
./
./usr/
./usr/share/
./usr/share/applications/
./usr/share/applications/agnclient.desktop
./opt/
./opt/agns/
./opt/agns/data/
./opt/agns/data/SupportTemplate.htm
./opt/agns/data/smx.key
./opt/agns/data/cacert.pem
./opt/agns/data/config.xml
./opt/agns/bin/
./opt/agns/bin/agnclientd
./opt/agns/bin/vpnCLI
./opt/agns/bin/skin/
./opt/agns/bin/skin/ConfigureProxyBackground.png
./opt/agns/bin/skin/CustomerSupport.png
./opt/agns/bin/skin/DisconnectButton.png
./opt/agns/bin/skin/ConnectWindowBackground.png
./opt/agns/bin/skin/ConnectButton.png
./opt/agns/bin/skin/ConnectedWindowBackground.png
./opt/agns/bin/skin/DisconnectButtonHover.png
./opt/agns/bin/skin/NetworkLoginWindow.png
./opt/agns/bin/skin/agnclient.png
./opt/agns/bin/skin/About.png
./opt/agns/bin/skin/ThruputBackground.png
./opt/agns/bin/skin/NetworkLoginWindowBottom.png
./opt/agns/bin/skin/ConnectButtonHover.png
./opt/agns/bin/skin/HelpItemBackground.png
./opt/agns/bin/skin/ConnectingWindowBackground.png
./opt/agns/bin/ConfigAGN.sh
./opt/agns/bin/agnLogArchive.tcl
./opt/agns/bin/sendDisc
./opt/agns/bin/agnslr
./opt/agns/bin/smx_auth
./opt/agns/bin/agnLogd
./opt/agns/bin/NetVPN
./opt/agns/bin/agnSupport
./opt/agns/bin/agnclient
./opt/agns/bin/NetVPN.sh
./opt/agns/src/
./opt/agns/src/agncTest.c
./opt/agns/src/agnLogcTest.c
./opt/agns/include/
./opt/agns/include/agnc.h
./opt/agns/include/agnLogc.h
./opt/agns/lib/
./opt/agns/lib/libagnLogc.so.1.0.0
./opt/agns/lib/libagnc.so.1.0.0
./etc/
./etc/acpi/
./etc/acpi/events/
./etc/acpi/events/agns.conf
./etc/acpi/events/agns_suspend.conf
./etc/pm/
./etc/pm/hooks/
./etc/pm/hooks/07agns
./etc/rc.d/
./etc/rc.d/init.d/
./etc/rc.d/init.d/agnclientd
./etc/rc.d/init.d/agnLogd
./etc/ld.so.conf.d/
./etc/ld.so.conf.d/agns.conf
debian/agnclient.links
debian/changelog
debian/compat
debian/control
debian/copyright
debian/lintian-overrides
debian/patches/
debian/patches/01_ubuntu_porting.dpatch
debian/patches/04_fix_suspend.dpatch
debian/patches/02_read_domain_from_etc.dpatch
debian/patches/00list
debian/patches/00list.Ubuntu
debian/postinst
debian/postrm
debian/prerm
debian/rules
Enrique said,
November 21, 2007 @ 8:57 am
NEVERMIND
Figured it out - I needed to install libssl-dev and once it was done, the DEB file was created.
afmacedo said,
November 21, 2007 @ 9:13 am
Humm… I gotta improve the script a little bit!
Next step:
- Make it install the packages build dependencies
- Make it install dpatch (I can’t believe I forgot this one)
Will create now the template for Beta14.
Thx guys for the help and feedback.
– AM
afmacedo said,
November 21, 2007 @ 9:52 am
Weird, I found no Beta 14 on the AT&T public repository.
Anyway… I improved the script a little bit, it is installing the build deps now.
http://blog.afmacedo.com/linux/ubuntu_rpm2deb_0.2.sh
Enjoy.
– AM
Neonkat said,
November 21, 2007 @ 4:57 pm
Hey guys.
Sorry to be such a newb but this is great. I have followed the instructions offered buy every one and every thing worked up to the creation of the deb file. Once created I have tried installing it and the Package Installer gave the following error : “Error: Dependency is not satisfiable: tclsh”
Hope this is helpful and or useful.
Steve
André Macêdo said,
November 21, 2007 @ 10:21 pm
Hi Neonkat,
This is expected. The script does not intent to convert only the AT&T NetClient, so there is no way for me to guess all of the dependencies.
But if you face missing dependencies when installing, you just type:
sudo apt-get -f install
right after the “dpkg” command and all dependencies will be installed for ya!
Regards,
– AM (the one who lost the password of his own blog ¬¬)
g0m3z said,
December 14, 2007 @ 5:39 pm
First of all thanks to André for making this available for us.
Neonkat,
I faced the same issue on Gutsy, however … did not solve my problem. After I checked all dependencies for tclsh virtual package, I found that a recommended package should be also installed, which is called tclreadline.
Run the following command to eliminate your dependency issue:
sudo apt-get install tclreadline
Hope it clarifies.
g0m3z
PaulM said,
January 4, 2008 @ 6:11 pm
Can you tell me if this will work under amd64 desktop version, or is only for 386
Thank you
shaowen said,
January 19, 2008 @ 10:39 am
Really cool! I use your script convert a beta 32 build of client, and it works, thanks for your effort.
Steven Hirsch said,
January 20, 2008 @ 1:55 pm
The script needs to watch for situations where user is forcing the architecture on, e.g. x86_64. When this is detected, you want to create the libcrypto and libssl symlinks in /usr/lib32 instead of /usr/lib. Might be sufficient to merely test for the existence of /usr/lib32 and gate the decision on that alone?
This advice should be tempered by the fact that I cannot get it to authenticate under x86_64 Ubuntu 7.10, but that’s not being caused by the installer :-).
afmacedo said,
January 21, 2008 @ 9:31 am
Sure thing Steven,
This is something that I need to check on the postinst script. I’ll update the script as soon as possible.
Thanks!!
– AM
big_boss said,
February 2, 2008 @ 6:59 am
hi buddy:
i do it with your step,but when i make .deb package and try to install it.i got an error message like bellow:
error:dependency is not satisfiable:tclsh
what step i missing or what file i missing. ? thank very much
afmacedo said,
February 6, 2008 @ 1:33 pm
Hello big_boss,
# sudo apt-get install tclsh
will solve your problem.
Regards,
– AM
Pol Mahov said,
February 11, 2008 @ 2:09 pm
Hello! Good article and very Informative blog, I russian webmaster, my name Pol, and i have many websites.. If you want to sell your blog or exchange links, write in my email.
Thanks…
Nickolas Meunier said,
February 18, 2008 @ 9:45 am
They think they can make fuel from horse manure… Now I don’t know if your car will be able to get thirty miles to the gallon, but it’s sure gonna put a stop to siphoning.
Franc said,
February 20, 2008 @ 8:22 pm
Things were ok after install, but there is no gui after first shutdown/reboot - no way to connect any more. Reinstall doesn’t help. Any idea?
afmacedo said,
February 20, 2008 @ 10:45 pm
Sure…
Try a “ps ax | grep agn”
kill all the “archive” instances.
simes said,
March 2, 2008 @ 3:55 pm
Same problem as Franc I’m afraid. I loved your clear instructions, the ease of installation, and the software worked fine the first time, but after reboot, it won’t start. Your suggestion to kill the archive instances did not work either unfortunately. Can you help?
simes said,
March 3, 2008 @ 6:39 am
My mistake… misunderstood the syntax of ‘kill’ ! Fixed now. Many thanks for the script.
Steve said,
March 4, 2008 @ 1:41 pm
Hi,
It’s probably something I did or didn’t do, but when I run “./ubuntu_rpm2deb_0.2.sh test.rpm”, the script returns “./ubuntu_rpm2deb_0.2.sh ”
Any help is much appreciated.
Thanks, Steve.
Steve said,
March 4, 2008 @ 2:28 pm
Sorry, it should read:
I run “./ubuntu_rpm2deb_0.2.sh test.rpm” and the script returns “./ubuntu_rpm2deb_0.2.sh pkg.rpm”
Thanks, Steve.
afmacedo said,
March 4, 2008 @ 4:16 pm
Hi Steve,
Does this “test.rpm” exists?
You’re supposed to run the “ubuntu_rpm2deb.sh” against the AT&T Netclient RPM.
For example:
# wget ftp://ftp.attglobal.net/pub/client/linux/agnclient-1.0-2.0.1.3000.i386.rpm
# wget http://blog.afmacedo.com/linux/ubuntu_rpm2deb.sh
# chmod +x ubuntu_rpm2deb.sh
# ./ubuntu_rpm2deb.sh agnclient-1.0-2.0.1.3000.i386.rpm
If you’re not suppling a existing RPM, the script will print how to use it.
– AM
Steve said,
March 4, 2008 @ 5:05 pm
Hi AM,
Thanks, I figured it out.
I missed the first part of this thread “http://blog.afmacedo.com/?p=9″ so I thought the script was taking care of the RPM download as well.
The client is up and running now.
Thanks again for your help.
Steve.
tamash said,
March 10, 2008 @ 6:45 pm
Hi,
This might not the right place, but being totally new to Linux, please allow me this question:
Would this version of AT&T work on Xandros ? If not, do you know a solution ? I try to install the program on an Asus Eee Pc.
Thank you,
William said,
March 11, 2008 @ 2:03 pm
A thousand thanks for this. It works perfectly, and I can now connect to my company’s intranet from home using my new Linux machine.
William Santos said,
March 18, 2008 @ 9:35 pm
Olá, eu uso o Ubuntu 7.10 64bits e gostaria de instalar o cliente AT&T no entanto acho que este script nao funciona para meu linux 64bits. Você teria idéia que possá me ajudar o cliente AT&T. Segue log de erro abaixo:
chmod 644 debian/agnclient/DEBIAN/conffiles
dh_gencontrol
dpkg-gencontrol -ldebian/changelog -isp -Tdebian/agnclient.substvars -Pdebian/agnclient
dpkg-gencontrol: erro: current build architecture amd64 does not appear in package’s list (i386)
dh_gencontrol: command returned error code 65280
make: ** [binary-arch] Erro 1
Desde agradeço qualquer ajuda
William
Glenn Smith said,
March 30, 2008 @ 12:18 am
Hi Andre,
Having some trouble installing ATT under dapper. It looks like my version of debhelper, 5.0.7, is higher than the version you have set as a dependency. I tried to find the place in you script that was checking for 5.0.37 but I guess I just don’t understand bash scripting well enough to figure this out on my own.
Log:
dpkg-buildpackage: source package is agnclient
dpkg-buildpackage: source version is 1.0~2.0.1.3000-1.1
dpkg-buildpackage: source changed by André F. Macêdo
dpkg-buildpackage: host architecture i386
dpkg-checkbuilddeps: Unmet build dependencies: debhelper (>= 5.0.37)
dpkg-buildpackage: Build dependencies/conflicts unsatisfied; aborting.
dpkg-buildpackage: (Use -d flag to override.)
Thanks,
Glenn
afmacedo said,
March 30, 2008 @ 12:31 pm
Hi Glenn,
You can just try to add a “-d” in the “dpkg-buildpackage” invoking line. (e.g. before the “-b” flag). It will ignore the build deps.
Let me know i you still having problems and I’ll create you a new script.
Regards,
– AM
Glenn Smith said,
March 30, 2008 @ 11:02 pm
Hi Andre,
Thanks for the quick response. The -d allowed the script to complete. I installed the program but can’t get it to work. The ATT client guide says that 2 processes are supposed to be running all the time. I ran the commands below and only one of the processes was running. The best that I can tell all the shared files are present so I don’t understand why the second process can’t start. Do you think I was missing a dependancy that the -d switch allowed me to bypass?
# /etc/init.d/agnclientd status
# agnclientd is not running.
# /etc/init.d/agnLogd status
# agnLogd is runnig.
# /etc/init.d/agnclientd start
# Starting AGNS NetCilient Daemon: /opt/agns/bin/agnclientd: error while loading shared libraries: libagnLogc.so.1: cannot open shared object file: No such file or directory
# ls -l /opt/agns/lib
# total 52
# lrwxrwxrwx 1 root root 30 2008-03-30 21:08 libagnc.so.1 -> /opt/agns/lib/libagnc.so.1.0.0
# -rwxr-xr-x 1 root root 40909 2008-01-17 11:39 libagnc.so.1.0.0
# lrwxrwxrwx 1 root root 33 2008-03-30 21:08 libagnLogc.so.1 -> /opt/agns/lib/libagnLogc.so.1.0.0
# -rwxr-xr-x 1 root root 9671 2008-01-17 11:39 libagnLogc.so.1.0.0
Thanks,
Glenn
afmacedo said,
March 31, 2008 @ 3:18 pm
Hi Glenn,
Pretty odd.).
Did you check if all libagnLogc.so.1 and libagnc.so.1 dependencies are being satisfied? (ldd
– AM
Glenn Smith said,
March 31, 2008 @ 8:39 pm
Hi Andre,
I ran the ldd command against the library that the agn client complained about. I’m not sure how to read the output but I don’t see any obvious errors. The -d and -r’s didn’t report any missing files so I think the links should work. Is this what you see when you run ldd against libagnlogc.so.1?
syssupp@psilogstest:/opt/agns/lib$ ldd -v libagnLogc.so.1
linux-gate.so.1 => (0xffffe000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e70000)
/lib/ld-linux.so.2 (0×80000000)
Version information:
./libagnLogc.so.1:
libc.so.6 (GLIBC_2.1.3) => /lib/tls/i686/cmov/libc.so.6
libc.so.6 (GLIBC_2.1) => /lib/tls/i686/cmov/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/tls/i686/cmov/libc.so.6
/lib/tls/i686/cmov/libc.so.6:
ld-linux.so.2 (GLIBC_2.1) => /lib/ld-linux.so.2
ld-linux.so.2 (GLIBC_2.3) => /lib/ld-linux.so.2
ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2
ld-linux.so.2 (GLIBC_2.0) => /lib/ld-linux.so.2
syssupp@psilogstest:/opt/agns/lib$ ldd -d –data-relocs libagnLogc.so.1
linux-gate.so.1 => (0xffffe000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7ea9000)
/lib/ld-linux.so.2 (0×80000000)
syssupp@psilogstest:/opt/agns/lib$ ldd -r –function-relocs libagnLogc.so.1
linux-gate.so.1 => (0xffffe000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e38000)
/lib/ld-linux.so.2 (0×80000000)
thanks,
Glenn
Glenn Smith said,
April 2, 2008 @ 12:05 am
Hi Andre,
Reinstalled the client and I was able to get the service to start but still couldn’t open the client. Wiped drive and installed Gutsy and now I’m up and running and browsing W3. Should the software package I created on Gutsy work in Dapper?
Thanks,
Glenn
Andres Velez said,
April 16, 2008 @ 10:46 am
Just if you wanna know. Tested it on Ubuntu 8.0.4 installed by WUBI with the latest script. and only required to add the -d flag. the rest perfect.
Thanx AM
Frederico said,
April 19, 2008 @ 1:09 pm
Viva,
Apenas para agradecer o script de transformação; embora utilize de momento o OC baseado em RHEL5 (principlamente devido à maior integração das aplicações IBM) em casa de familiares tenho Debian (unstable e Etch). Como por vezes é cómodo ligar-me à rede IBM a partir desses locais utilizei o script para converter o Beta32 do cliente, e funcionou bem. Tive apenas de instalar o libcurl3 e o tclsh à posteriori (é possível que o Ubuntu use outros nomes para estas dependências), mas à parte disso funcionou perfeitamente.
Cumprimentos.
fsmunoz
Frederico said,
April 19, 2008 @ 1:13 pm
Er, just for the possible benefict of non-portuguese speakers a quick recap of my last message: the script works decently enough with Debian unstable, and I’ve used it successfuly in converting the agnclient Beta32 RPM into a .deb that is installable in Debian.
Daryl said,
April 19, 2008 @ 11:05 pm
Andres
you mention you need to add the -d flag for 8.0.4 installed with WUBI. I am testing the same. Where exactly do you add the -d flag?
Thanks
Daryl
afmacedo said,
April 21, 2008 @ 5:49 pm
Hi Daryl,
Add the -d flag to the “dpkg-buildpackage” line of the script.
I’m feeling that the script needs some upgrades. I’ll do this as soon as possible and post it in here.
– AM
Frank said,
May 21, 2008 @ 5:12 pm
Works perfect! Thank you!
Frank
chau.laurent said,
May 27, 2008 @ 8:00 am
France 2008 mai 27
Bonjour, upon Ubuntu804 amd64, please advice how to…
when I ./ubuntu_rpm2deb_0.2.sh gcc-4.1.2-14.el5.x86_64.rpm
terminal output:
Preparing to convert gcc-4.1.2-14.el5.x86_64.rpm …
* debian template not found, downloading…
* not able to download debian template for the specified version, trying to download default template…
! not able to download any debian template. Aborting…
$
all are done:
sudo apt-get install libssl-dev
sudo apt-get install tclreadline
sudo apt-get install tclsh
googled a lot but not found info.
—–
Mangesh Kadan said,
May 28, 2008 @ 11:14 am
Hi, New to linux world. When I install agnclient , it works fine for the entire session. But if I reboot the linux , it didn’t start. It just staring in Status Bar
like “OPENING A T& T OPEN 0″ . I am getting same thing on Ubuntu, Mint 5
also. Must be somthing wrong in config.
can anybody suggest…..
Mangesh Kadan said,
May 28, 2008 @ 11:16 am
Hi, New to linux world. When I install agnclient , it works fine for the entire session. But if I reboot the linux , it didn’t start. It just staring in Status Bar
like “OPENING A T& T OPEN 0″ . No AT&T window , where we select connect to start the session & then disapper from status Bar. But if I display ps -d , I can see agnclient running.
I am getting same thing on Ubuntu, Mint 5 also. Must be somthing wrong in config.
can anybody suggest…..
afmacedo said,
May 28, 2008 @ 2:53 pm
Hi Mangesh,
Try checking if there is an “agnLogArchive.tcl” process running (ps ax | grep -i agnlogarchive), kill it and the GUI should start working again.
Regards,
– AM
afmacedo said,
May 28, 2008 @ 2:57 pm
Hi chau.laurent,
I didn’t build a debian template for the package you specified. If you still want to debianize it, tell me where can I find the RPM package and as soon as I have some free time I build the template for you.
Regards,
– AM
Mangesh Kadan said,
May 28, 2008 @ 4:58 pm
Thanx AM,
I will try this. Inbetween I downloaded agnclient fro IBM site -agnclient_1.0~2.0.0.2032-1.1_i386.deb & it worked fine after 2-3 reboots.
thanx again fro qick response.
chau.laurent said,
June 1, 2008 @ 6:09 am
Please, you can find the RPM package here :
The website : http://rpm.pbone.net/index.php3/stat/4/idpl/1915588/com/compat-libstdc++-33-3.2.3-47.3.i386.rpm.html
The Direct Link : ftp://ftp.nluug.nl/pub/os/Linux/distr/startcom/AS-4.0.0/os/i386/StartCom/RPMS/compat-libstdc++-33-3.2.3-47.3.i386.rpm
lanm.11 (M-A) said,
June 17, 2008 @ 5:19 pm
I’m running Ubuntu 8.04 x86_64 and it is failing on the architecture check as mentioned above.
dpkg-gencontrol: error: current build architecture amd64 does not appear in package’s list (i386)
I’ve read all comments above and can’t figure out if there’s a way to circumvent this ?. Are there any libraries I can symlink or otherwise ?
I’ve noticed that it built a folder structure under the rpm but the deb file is not there (yet)
Thanks.
Kenn said,
June 17, 2008 @ 6:52 pm
Thanks for your write up. Like others I ran into the same dependency problems, but was able to clear them up with the information on this page. Thanks again, Ubuntu is an fantastic platform. I’ve used RedHad and Suse before, but this blows it away.
Matthias said,
June 22, 2008 @ 2:23 pm
I am running Kubuntu 8.04 and have the same problem as lanm.11 mentioned.
dpkg-gencontrol: error: current host architecture ‘amd64′ does not appear in package’s architecture list (i386)
dh_gencontrol: command returned error code 65280
Thanks afmacedo for your script and info,
Matthias
Matthias said,
June 27, 2008 @ 11:27 pm
Hi,
got it to work for my kubuntu 8.04 installation on Intel Core2 Quad 64 bit architecutre (AMD64)
As folks before mentioned I had to copy all files manually into the correct directories after the script ubuntu_rpm2deb.sh has unpacked the rpm agnclient-1.0-2.0.1.3000.i386.rpm
I also had to use getlibs to install missing 32b bit libraries.
Here are my detailed notes that are unfortunately not revised yet. I am sure there are more effective and compact ways to do this. And I would not be surprised if some of the steps can be omitted.
Matthias
—————————————————————————————–
TO INSTALL
make sure that executable flag is set for the script ubuntu_rpm2deb.sh
run as user:
sudo ./ubuntu_rpm2deb.sh –deps
sudo ./ubuntu_rpm2deb.sh agnclient-1.0-2.0.1.3000.i386.rpm
I executed these previous commands in my memorystick (flash drive)
directory /media/disk/linux/att_globaldialer08/
Therefore you will see this directory being used a lot in the following commands
as root:
in /opt
mkdir agns
in /agns
mkdir bin
mkdir lib
mkdir data
mkdir include
cp -rf /media/disk/linux/att_globaldialer08/agnclient-1.0~2.0.1.3000/opt/agns/bin/* /opt/agns/bin
cp -rf /media/disk/linux/att_globaldialer08/agnclient-1.0~2.0.1.3000/opt/agns/lib/* /opt/agns/lib
cp -rf /media/disk/linux/att_globaldialer08/agnclient-1.0~2.0.1.3000/opt/agns/data/* /opt/agns/data
cp -rf /media/disk/linux/att_globaldialer08/agnclient-1.0~2.0.1.3000/opt/agns/include/* /opt/agns/include
cp -rf /media/disk/linux/att_globaldialer08/agnclient-1.0~2.0.1.3000/etc/ld.so.conf.d/* /etc/ld.so.conf.d/
cp -rf /media/disk/linux/att_globaldialer08/agnclient-1.0~2.0.1.3000/var/run/* /var/run
in /opt/agns/lib create the links below:
ln -s libagnc.so.1.0.0 libagnc.so.1
ln -s libagnLogc.so.1.0.0 libagnLogc.so.1
as user:
download the package getlibs-all.deb from:
www.boundlesssupremacy.com/Cappy/getlibs/getlibs-all.deb
sudo dpkg -i getlibs-all.deb
run as user: sudo getlibs /opt/agns/bin/smx_auth
when asked to continue
Continue [Y/n]? Y
as user in /opt/agns/lib (note lib32)
sudo ln -s /usr/lib32/libssl.so.0.9.8 libssl.so.4
sudo ln -s /usr/lib32/libcrypto.so.0.9.8 libcrypto.so.4
sudo ln -s /usr/lib32/libssl.so.0.9.8 libssl.so.6
sudo ln -s /usr/lib32/libcrypto.so.0.9.8 libcrypto.so.6
—————————————————————————————–
TO RUN THE DIALER
as root:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/agns/lib
export PATH=$PATH:/opt/agns/bin:/opt/agns/lib:/opt/agns/bin/skin
start: agnclientd
start: agnLogd
as user:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/agns/lib
export PATH=$PATH:.:/opt/agns/bin:/opt/agns/lib:/opt/agns/bin/skin
/opt/agns/bin/agnclient
afmacedo said,
June 30, 2008 @ 10:09 am
I wish I have access to a 64 bit machine to fix the script and make it work properly everywhere. :/
Sorry for that guys.
And Mathias, this is awesome! Thanks a lot for the contribution.
– AM
julia said,
July 23, 2008 @ 12:17 pm
Oh yes.. . I am enjoying your other posts too. good coverage dude!
Copperwave said,
July 24, 2008 @ 5:58 pm
Just to add that this also works under 8.0.4 Wubi - you do need to follow the instructions…and have a little linux exposure (don’t ya just love all those hidden dependencies) but if I can do it so can a lot of other people.
Kudos to Andre!
Regards
//indigo
Michele Renda said,
August 7, 2008 @ 8:55 am
I add also my thank you for this script. It run perfect on Ubuntu 8.04.1 with AT&T ver. 3000
Gabriel said,
August 16, 2008 @ 3:08 pm
It worked perfectly well for me. Many thanks.
Harish Kumar said,
August 31, 2008 @ 1:58 pm
This is awesome. This worked perfectly for me. I’m able to connect to ibm network without any problem. Many Many thanks
jake said,
September 5, 2008 @ 6:13 pm
I was unable to get the script to compile the .deb. Tried all the tips in the comments. Log follows:
Warning: Skipping conversion of scripts in package agnclient: postinst postrm preinst prerm
Warning: Use the –scripts parameter to include the scripts.
agnclient-1.0.tgz generated
./
./usr/
./usr/share/
./usr/share/applications/
./usr/share/applications/agnclient.desktop
./var/
./var/agns/
./var/run/
./var/run/NetVPN/
./var/log/
./var/log/agns/
./etc/
./etc/pm/
./etc/pm/hooks/
./etc/pm/hooks/07agns
./etc/rc.d/
./etc/rc.d/init.d/
./etc/rc.d/init.d/agnclientd
./etc/rc.d/init.d/agnLogd
./etc/ld.so.conf.d/
./etc/ld.so.conf.d/agns.conf
./opt/
./opt/agns/
./opt/agns/data/
./opt/agns/data/SupportTemplate.htm
./opt/agns/data/smx.key
./opt/agns/data/config.xml
./opt/agns/data/cacert.pem
./opt/agns/src/
./opt/agns/src/agnLogcTest.c
./opt/agns/src/agncTest.c
./opt/agns/include/
./opt/agns/include/agnc.h
./opt/agns/include/agnLogc.h
./opt/agns/bin/
./opt/agns/bin/NetVPN
./opt/agns/bin/skin/
./opt/agns/bin/skin/DisconnectButtonHover.png
./opt/agns/bin/skin/ConnectButton.png
./opt/agns/bin/skin/ConnectWindowBackground.png
./opt/agns/bin/skin/DisconnectButton.png
./opt/agns/bin/skin/HelpItemBackground.png
./opt/agns/bin/skin/ConnectedWindowBackground.png
./opt/agns/bin/skin/ThruputBackground.png
./opt/agns/bin/skin/ConfigureProxyBackground.png
./opt/agns/bin/skin/ConnectingWindowBackground.png
./opt/agns/bin/skin/NetworkLoginWindow.png
./opt/agns/bin/skin/ConnectButtonHover.png
./opt/agns/bin/skin/NetworkLoginWindowBottom.png
./opt/agns/bin/skin/agnclient.png
./opt/agns/bin/skin/CustomerSupport.png
./opt/agns/bin/skin/About.png
./opt/agns/bin/agnLogArchive.tcl
./opt/agns/bin/agnSupport
./opt/agns/bin/NetVPNx
./opt/agns/bin/agnclient
./opt/agns/bin/vpnCLI
./opt/agns/bin/NetVPN.sh
./opt/agns/bin/agnslr
./opt/agns/bin/agnclientd
./opt/agns/bin/ConfigAGN.sh
./opt/agns/bin/smx_auth
./opt/agns/bin/sendDisc
./opt/agns/bin/agnLogd
./opt/agns/lib/
./opt/agns/lib/libagnc.so.1.0.0
./opt/agns/lib/libagnLogc.so.1.0.0
debian/agnclient.links
debian/changelog
debian/compat
debian/control
debian/copyright
debian/lintian-overrides
debian/patched/
debian/patches/
debian/patches/01_ubuntu_porting.dpatch
debian/patches/04_fix_suspend.dpatch
debian/patches/02_read_domain_from_etc.dpatch
debian/patches/series
debian/patches/00list
debian/patches/00list.Ubuntu
debian/postinst
debian/postrm
debian/prerm
debian/rules
dpkg-buildpackage: set CPPFLAGS to default value:
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions
dpkg-buildpackage: source package agnclient
dpkg-buildpackage: source version 1.0~2.0.1.3000-1.1
dpkg-buildpackage: source changed by André F. Macêdo
dpkg-buildpackage: host architecture i386
dpkg-checkbuilddeps: Unmet build dependencies: build-essential
dpkg-buildpackage: warning: Build dependencies/conflicts unsatisfied; aborting.
dpkg-buildpackage: warning: (Use -d flag to override.)
afmacedo said,
September 5, 2008 @ 8:40 pm
Hello Jake,
Make sure you have the following packages installed: dpatch, libssl-dev
Regards,
– AM
jake said,
September 7, 2008 @ 10:00 am
they are both installed
afmacedo said,
September 7, 2008 @ 7:27 pm
I forgot to ask you to check if the package “build-essential” is installed too, this is the missing one.
Regards,
– AM
Leonardo Couto said,
October 9, 2008 @ 10:33 pm
I am kind new to Linux and Ubuntu (first installation ever) and I would like to ask for help cause i am not able to convert the rpm file.
Here is what i did :
*************************************************************************
# wget ftp://ftp.attglobal.net/pub/client/linux/agnclient-1.0-2.0.1.3000.i386.rpm
# wget http://blog.afmacedo.com/linux/ubuntu_rpm2deb.sh
# ./ubuntu_rpm2deb.sh –deps agnclient-1.0-2.0.1.3000.i386.rpm
# ./ubuntu_rpm2deb.sh agnclient-1.0-2.0.1.3000.i386.rpm
** ERROR **
No packages found matching libssl-dev.
Not able to convert the package
# sudo apt-get install libssl-dev
# ./ubuntu_rpm2deb.sh agnclient-1.0-2.0.1.3000.i386.rpm
** ERROR **
Not able to convert the package
# sudo apt-get install tcl8.5
# ./ubuntu_rpm2deb.sh agnclient-1.0-2.0.1.3000.i386.rpm
Preparing to convert agnclient-1.0-2.0.1.3000.i386.rpm …
Target Name : agnclient
Target Version : 1.0
Template debian : agnclient_debian-1.0~2.0.1.3000.tar.gz
DEB Version : 1.0~2.0.1.3000
Changelog Distro : hardy
Changelog Comments : Debianized from agnclient-1.0-2.0.1.3000.i386.rpm
Changelog Date : Thu, 09 Oct 2008 22:21:31 -0300
Converting agnclient-1.0-2.0.1.3000.i386.rpm …
* Cleaning previous builds…
* Creating building directory…
* Extracting package content…
* Unpacking template debian directory…
* Customizing template directory…
Building .DEB package …
* Checking build dependencies…
* Building package…
* Cleaning…
Not able to convert the package, check the .log files for more info!
*************************************************************************
Does anyone has a script for dummies on how to make this works ?!
Daniel Henrique Barboza said,
December 4, 2008 @ 11:27 pm
Afmacedo, folks,
The procedure describe @ these comments worked just fine on my Debian Lenny, on a i386 machine.
In short what I did was:
$ ./ubuntu_rpm2deb.sh –deps agnclient-1.0-2.0.1.3000.i386.rpm (installed the dependencies)
$ ./ubuntu_rpm2deb.sh agnclient-1.0-2.0.1.3000.i386.rpm (converted the rpm to a deb package)
$ dpkg -i agnclient_1.0~2.0.1.3000-1.1_i386.deb (installed the converted package)
$ apt-get install tcl8.5 (for some reason the tcl dependency wasn’t resolved on the first command)
When I launched the agnclient from the gnome menu (applications - internet - AT&T … ) it started to launch, but it ended without popping the window. In a stroke of luck I executed the binary agnLogD on /opt/agns/bin dir and the window popped up. I’ll try to make a quick reboot to see if this odd behavior persists.
Thanks afmacedo and every1 else that contributed,
danielhb
Vitor Rodrigues » Blog Archive » AT&T Global Network Client on Ubuntu Intrepid said,
December 8, 2008 @ 9:25 am
[…] but the installer didn’t work correctly. After some googling, I found the article “AT&T NetClient Debianizer” from Andre Macedo. Andre provides a utility, ubuntu_rpm2deb.sh, that will calculate […]
LOTUSCONNECTIONS.org » IBM AT&T VPN client on Linux (Ubuntu) said,
January 7, 2009 @ 7:02 am
[…] http://blog.afmacedo.com/?p=11 […]
Allan Willems Joergensen - OnDemand » Installing AT&T Global Network Client on Ubuntu said,
February 1, 2009 @ 6:17 pm
[…] this script from André F. Macêdo’s website (local […]
consulta acerca de VPN | hilpers said,
March 11, 2009 @ 7:02 pm
[…] consulta acerca de VPN Gracias probe con esta….esta tremendo http://blog.afmacedo.com/?p=11 On Wed, Mar 11, 2009 at 12:33 PM, Antonio Arriaga [DTI2] <aarriaga>wrote: > Y si no ppp […]
Mark Campbell said,
March 24, 2009 @ 5:26 pm
Ok, so I know that if it breaks, I get to keep both pieces…
but I tried this out on my AMD64 Ubuntu (Jaunty Jackalope) box and got the following:
tail agnclient-1.0~2.0.1.3002.log
chmod 755 debian/agnclient/DEBIAN/postrm
find debian/agnclient/etc -type f -printf ‘/etc/%P
‘ >> debian/agnclient/DEBIAN/conffiles
chmod 644 debian/agnclient/DEBIAN/conffiles
dh_gencontrol
dpkg-gencontrol -ldebian/changelog -Tdebian/agnclient.substvars -Pdebian/agnclient
dpkg-gencontrol: error: current host architecture ‘amd64′ does not appear in package’s architecture list (i386)
dh_gencontrol: command returned error code 65280
make: *** [binary-arch] Error 1
dpkg-buildpackage: failure: debian/rules binary gave error exit status 2
Yep, I know Jaunty is not released, and AMD64 is probably not supported, but I just thought you might want to know that I tried.
Thanks for your hard work,
Mark
afmacedo said,
March 26, 2009 @ 4:58 pm
Hi Mark,
Matthias posted a solution for 64bits system a few posts ago (27th June 2008), you should give that a try.
Regards,
Abel Alaniz said,
March 29, 2009 @ 3:17 am
Hi,
I am getting the following error… Thanks in advanced for any help.
Building dependency tree
Reading state information… Done
debhelper is already the newest version.
debhelper set to manually installed.
dpatch is already the newest version.
The following extra packages will be installed:
libc6-dev linux-libc-dev zlib1g-dev
Suggested packages:
glibc-doc manpages-dev
The following NEW packages will be installed:
libc6-dev libssl-dev linux-libc-dev zlib1g-dev
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 2641kB/6145kB of archives.
After this operation, 23.2MB of additional disk space will be used.
Err http://ftp.us.archive.ubuntu.com hardy-updates/main linux-libc-dev 2.6.24-22.45
404 Not Found [IP: 91.189.88.45 80]
Err http://security.ubuntu.com hardy-security/main linux-libc-dev 2.6.24-22.45
404 Not Found
Err http://security.ubuntu.com hardy-security/main libssl-dev 0.9.8g-4ubuntu3.3
404 Not Found
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_2.6.24-22.45_i386.deb 404 Not Found
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl-dev_0.9.8g-4ubuntu3.3_i386.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with –fix-missing?
* Building package…
* Cleaning…
Not able to convert the package, check the .log files for more info!
afmacedo said,
March 30, 2009 @ 9:20 am
Hi Abel,
I can think of two problems:
A) Ubuntu servers were down.
B) Your internet connection was bummed.
I suggest you trying that again later, the problem happened when trying to install packages from Ubuntu repositories.
SR said,
June 27, 2009 @ 12:06 am
I am not able to view GUI after install. I noticed a wardning “warning: /etc/init.d/agnclientd missing LSB information” and not sure what dependency could be missing. Any help is appreciated.
Selecting previously deselected package agnclient.
(Reading database … 121126 files and directories currently installed.)
Unpacking agnclient (from agnclient_1.0~2.0.0.3000-1.1_i386.deb) …
Setting up agnclient (1.0~2.0.0.3000-1.1) …
update-rc.d: warning: /etc/init.d/agnLogd missing LSB information
update-rc.d: see
Adding system startup for /etc/init.d/agnLogd …
/etc/rc0.d/K20agnLogd -> ../init.d/agnLogd
/etc/rc1.d/K20agnLogd -> ../init.d/agnLogd
/etc/rc6.d/K20agnLogd -> ../init.d/agnLogd
/etc/rc2.d/S20agnLogd -> ../init.d/agnLogd
/etc/rc3.d/S20agnLogd -> ../init.d/agnLogd
/etc/rc4.d/S20agnLogd -> ../init.d/agnLogd
/etc/rc5.d/S20agnLogd -> ../init.d/agnLogd
update-rc.d: warning: /etc/init.d/agnclientd missing LSB information
update-rc.d: see
Adding system startup for /etc/init.d/agnclientd …
/etc/rc0.d/K20agnclientd -> ../init.d/agnclientd
/etc/rc1.d/K20agnclientd -> ../init.d/agnclientd
/etc/rc6.d/K20agnclientd -> ../init.d/agnclientd
/etc/rc2.d/S20agnclientd -> ../init.d/agnclientd
/etc/rc3.d/S20agnclientd -> ../init.d/agnclientd
/etc/rc4.d/S20agnclientd -> ../init.d/agnclientd
/etc/rc5.d/S20agnclientd -> ../init.d/agnclientd
Starting AGNS Log Daemon:
Starting AGNS NetCilient Daemon:
Processing triggers for libc6 …
ldconfig deferred processing now taking place
SR said,
June 29, 2009 @ 9:39 pm
Figured. the process for agnLogArchive.tcl is active all the time. Had to kill it for GUI to work. Is there a solution to fix this permanently ?
Dmitriy Ushakov said,
July 30, 2009 @ 9:17 am
Hi, Andre.
I’ve tried to add support for amd64 platform to your ubuntu_rpm2deb.sh. Looks like it’s works for me at least.
Here is the diff output:
6a7,8
> # Support to convert i386 agnclient to amd64 added by Dmitriy Ushakov
> #
159a162,169
> AMD64=”"
> DEB_HOST_ARCH=$(dpkg-architecture -qDEB_HOST_ARCH)
> if [ $DEB_HOST_ARCH == “amd64″ ]; then
> sed -i “s/i386/amd64/” $DEB_DIR/debian/control
> sed -i “s/\/lib\//\/lib32\//g” $DEB_DIR/debian/agnclient.links
> AMD64=”-aamd64″
> fi
>
174c184
> ../$TGT_LOG 2>&1 && cd ..
—
> cd $DEB_DIR && fakeroot dpkg-buildpackage -b -us -uc $AMD64 >> ../$TGT_LOG 2>&1 && cd ..
If you are needed a full script feel free to email me.
afmacedo said,
August 11, 2009 @ 2:13 pm
Thanks a lot Dmitriy, I didn’t have the opportunity to test that yet but I published a new version of the script (with your patch) here:
http://blog.afmacedo.com/?p=17
Karl said,
September 9, 2009 @ 12:02 pm
I devised a workaround for this error and thought I would pass it along.
>$ /opt/agns/bin/agnclient
/opt/agns/bin/agnclient: error while loading shared libraries: libagnLogc.so.1: cannot open shared object file: No such file or directory
I didn’t actually end up using the ubuntu_rpm2deb.sh script to create the .deb file although I had the same issue when I used that version as well.
I ended up creating shell script to start the application
export LD_LIBRARY_PATH=/opt/agns/lib
/opt/agns/bin/agnclient &
Then replace the path to agnclient with the path to the shell script.
So far so good.
NL said,
September 11, 2009 @ 4:01 am
Hey guys,
Thought I was close, but I’m having an error earlier in my script. Didn’t see anyone having this problem. I’m on Jaunty / amd64 and am using the v0.3 script.
—
–2009-09-11 01:49:31– http://blog.afmacedo.com/linux/agnclient/agnclient_debian-1.0~2.0.1.3002.tar.gz
Resolving blog.afmacedo.com… 208.113.160.35
Connecting to blog.afmacedo.com|208.113.160.35|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 4403 (4.3K) [application/x-tar]
Saving to: `agnclient_debian-1.0~2.0.1.3002.tar.gz’
0K …. 100% 60.3K=0.07s
2009-09-11 01:49:31 (60.3 KB/s) - `agnclient_debian-1.0~2.0.1.3002.tar.gz’ saved [4403/4403]
rpm: To install rpm packages on Debian systems, use alien. See README.Debian.
error: cannot open Packages index using db3 - No such file or directory (2)
error: cannot open Packages database in /var/lib/rpm
warning: agnclient-1.0~2.0.1.3002.i386.rpm: Header V3 DSA signature: NOKEY, key ID c776ad20
rpm: To install rpm packages on Debian systems, use alien. See README.Debian.
error: cannot open Packages index using db3 - No such file or directory (2)
error: cannot open Packages database in /var/lib/rpm
warning: agnclient-1.0~2.0.1.3002.i386.rpm: Header V3 DSA signature: NOKEY, key ID c776ad20
(…..a bunch of these rpm errors)
agnclient-1.0.tgz generated
./
./etc/
./etc/agnclient/
./etc/agnclient/agnclient.conf
(……a bunch of directories)
debian/rules build
dh_testdir
dpatch apply-all
applying patch 01_ubuntu_porting to ./ … ok.
applying patch 02_read_domain_from_etc to ./ … failed.
make: *** [build] Error 1
dpkg-buildpackage: failure: debian/rules build gave error exit status 2
Any ideas? Much thanks for your efforts!
Johan said,
September 14, 2009 @ 10:59 am
Hello,
(totally new on Linux) The installation works perfect, but when I want to connect I cannot configure the VPN settings. The only thing I can do is to give the user-id, the account and the password. No button for the VPN settings ? Anyone an idea ?
Thanks already !
Johan
nazari said,
December 27, 2009 @ 12:17 pm
Hello
Academic Departments RAMOOZ site
Address:
http://ramuzi.com
If you wish us to
“Academic Departments RAMOOZ site»
To link and leave messages