LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-21-2017, 06:40 AM   #1
THE PHANTOM
Member
 
Registered: Mar 2016
Posts: 94

Rep: Reputation: Disabled
Packet Tracer 7.0


Hello here,

I enrolled on Cisco CCNA course and want to install Packet Tracer 7.0 on my Debian Linux Jessie but has trouble. I installed it but can't run it. maybe i mess something there.

Can you help me to install or give me right instructions please?

Any suggestions would be appreciated. Thanks.
 
Old 01-21-2017, 08:50 AM   #2
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 20 MATE, MX-19, antiX
Posts: 3,097
Blog Entries: 17

Rep: Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141
THE PHANTHOM,

Try this:
http://askubuntu.com/questions/86422...n-ubuntu-16-10
 
Old 01-21-2017, 11:24 AM   #3
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 157Reputation: 157
It should work. I have it on Debian Testing and it works, including the exams (launched from .jnlp Java Web Start files).

But note that packet tracer is actually a native Linux app (uses qt), not written in Java as some incorrectly assume. You need java for the web start application that launches packet tracer and establishes connection to CCNA infrastructure servers to load stuff like network schematics into the program and also to upload stuff from it if required.

One issue is that it uses some older libraries, most notably looks for openssl 1.0.0 .so files that are not anymore provided with newer distros. To avoid this, download (preferably from your own distro's older version) the installation package for openssl 1.0, extract the libcrypto.so.1.0.0
libssl.so.1.0.0
files, put them in the packet tracer directory manually and modify the script to preload them.
The launch command line from the "packettracer" launcher script should look like this:
Code:
LD_PRELOAD="$PT7HOME/libcrypto.so.1.0.0 $PT7HOME/libssl.so.1.0.0" ./PacketTracer7 "$@"
For debugging launch it from terminal to see specific errors.

I launch it like this (i extracted it not installed but use its script modified a bit):
I have it extracted into /opt/pt directory, i use that for examples below.

Code:
#!/bin/bash

echo Starting Packet Tracer 7.0

PT7HOME=/opt/pt
export PT7HOME
cd $PT7HOME

PTDIR=/opt/pt
export LD_LIBRARY_PATH=$PTDIR/lib
pushd $PTDIR/bin > /dev/null
LD_PRELOAD="$PT7HOME/libcrypto.so.1.0.0 $PT7HOME/libssl.so.1.0.0" ./PacketTracer7 "$@" 
#> /dev/null 2>&1
popd > /dev/null
On jessie you probably don't need "LD_PRELOAD="$PT7HOME/libcrypto.so.1.0.0 $PT7HOME/libssl.so.1.0.0"" because you have that library (Testing has upgraded openssl and 1.0.0 .so does not exist anymore and i downloaded the jessie deb and extracted the .so files).
This is applicable to any newer distro.

For launch via the .jnlp files that you download for exams, you need (besides locally installed java environment of course) the environment variable "PT7HOME" point to the correct directory.
You should put that in /etc/environment like this:
Code:
PT7HOME=/opt/pt
And restart.
Otherwise until restart you will have to specify that veriable manually - For example you have a jnlp file that comes from the ccna exam site and want to launch packet tracer with it you can do from terminal:
Code:
PT7HOME=/opt/pt javaws whatever.jnlp
For debugging launch it from terminal to see specific errors.
 
Old 01-22-2017, 10:02 AM   #4
THE PHANTOM
Member
 
Registered: Mar 2016
Posts: 94

Original Poster
Rep: Reputation: Disabled
Thanks for your suggestions. I will try that.
 
Old 01-22-2017, 12:49 PM   #5
THE PHANTOM
Member
 
Registered: Mar 2016
Posts: 94

Original Poster
Rep: Reputation: Disabled
I installed it and tried to open it from terminal but nothing, see please code:

Code:
root@ROOT:/home/gelapir/Downloads# ls
PacketTracer70
root@ROOT:/home/gelapir/Downloads# cd PacketTracer70
root@ROOT:/home/gelapir/Downloads/PacketTracer70# ./install

Welcome to Cisco Packet Tracer 7.0 Installation

Read the following End User License Agreement "EULA" carefully. You must accept the terms of this EULA to install and use Cisco Packet Tracer.
Press the Enter key to read the EULA.


                           Cisco Packet Tracer
                        Software License Agreement

IMPORTANT: PLEASE READ THIS CISCO PACKET TRACER SOFTWARE LICENSE AGREEMENT (THE
"AGREEMENT") CAREFULLY.  DOWNLOADING, INSTALLING OR USING THE CISCO PACKET 
TRACER SOFTWARE CONSTITUTES ACCEPTANCE OF THIS AGREEMENT.  IF YOU DO NOT AGREE
TO ALL OF THE TERMS OF THIS AGREEMENT, THEN CISCO SYSTEMS, INC. ("CISCO") IS 
UNWILLING TO LICENSE THE SOFTWARE TO YOU AND YOU ARE NOT AUTHORIZED TO 
DOWNLOAD, INSTALL OR USE THE SOFTWARE.  

I.      DISTRIBUTION RIGHTS.  The terms in this Section I ("Distribution 
Rights") of the Agreement apply solely to any Cisco Networking Academy 
instructor, administrator or other person or entity approved in writing by 
Cisco Systems, Inc. (each, an "Instructor") to distribute and use the Cisco 
Packet Tracer software and related documentation (collectively, the "Software")
in accordance with the terms and conditions of this Agreement.   

        Subject to the terms and conditions of the End User License Agreement 
        set forth in Section II below (the "EULA"), Cisco grants Instructor a 
        limited, nonexclusive, nontransferable license to distribute the 
        Software using the Permitted Distribution Methods (defined below), 
        during the term of the Agreement to Permitted End Users (defined below)
        solely as reasonably necessary to provide networking training or 
        instruction in accordance with the terms and conditions of the 
        Agreement.  The Permitted Distribution Methods are:  (i) distribution 
        via a password protected website (WAN distribution), Local Area Network
        (LAN distribution) or FTP server; or (ii) distribution via CD's or 
        other tangible media containing the Software.  Instructor shall not 
        remove the EULA from the Software.  Instructor shall use reasonable 
        efforts to ensure Permitted End Users comply with the EULA.  Permitted
        End Users are students, faculty or alumni of Cisco Networking Academy
        or such other individuals or entities approved in writing by Cisco.  
        Instructors shall not make any copies or duplicates of the Software 
        except as reasonably necessary to exercise the rights granted 
        hereunder.  Except to the extent set forth herein, no distribution, 
        marketing or other transfer of the Software is permitted.  Without 
        limiting the generality of the foregoing, the Software may not be 
        copied, licensed, sub-licensed, sold or otherwise distributed in 
        exchange for any fee or value-in-kind.
        
        Instructor acknowledges and agrees that Cisco retains sole and 
        exclusive title and ownership to the Software, including all copies 
        thereof, all Cisco trademarks, designations, logos and other branding 
        for the Software and all intellectual property rights in or to any of 
        the foregoing. 
        
        Cisco may terminate the Distribution Rights granted hereunder for any
        reason or no reason on five (5) business days notice.  Unless earlier
        terminated as set forth in the preceding sentence, the term of this 
        Agreement shall continue until Instructor is no longer a Cisco 
        Networking Academy instructor, administrator or other person or entity
        approved in writing by Cisco to exercise the rights set forth in this 
        Agreement.  
        
II.     The following End User License Agreement or "EULA" shall apply to all 
users of the Software:          

                         End User License Agreement 
BY DOWNLOADING OR INSTALLING THE SOFTWARE YOU ARE BINDING YOURSELF AND/OR THE 
ENTITY THAT YOU REPRESENT (COLLECTIVELY, "USER") TO THIS END USER LICENSE 
AGREEMENT ("EULA").  The following terms of this EULA govern access to and use
of the Software.

License. Conditioned upon compliance with the terms and conditions of this 
EULA, Cisco Systems, Inc. ("Cisco") grants to User a royalty free, personal, 
nonexclusive, nontransferable and revocable license to use the Cisco Packet 
Tracer software and related documentation (collectively, the "Software") solely
to create, display or run network simulations using files with suffixes ".pkt" 
or ".pka" (collectively, "Activities") in connection with Cisco Networking 
Academy or for such other purpose(s) approved by Cisco in writing.   No license
is granted for any other purpose and there are no implied licenses in this 
EULA.  

General Limitations. This is a license, not a transfer of title, to the 
Software and Cisco retains ownership of all copies of the Software.  User 
acknowledges and agrees that Cisco and/or its suppliers own all right, title
and interest in and to the Software, including without limitation, any and all
copyrights, patents, trade secrets, trademarks and other intellectual property
rights therein.  Cisco has the exclusive right to apply for or register any 
patents, mask work rights, copyrights, or such other proprietary protections 
with respect to the Software.  User will not earn or acquire any rights or 
licenses under any copyrights, patents, trade secrets, trademarks or other 
intellectual property rights on account of this EULA.  Except as otherwise 
expressly provided under this EULA, User shall have no right, and User 
specifically agrees not to:

        (i) transfer, assign or sublicense its license rights to any other 
        person or entity, and User acknowledges that any attempted transfer,
        assignment, sublicense or use shall be void;
        
        (ii) make error corrections to or otherwise modify or adapt the 
        Software or create derivative works (excluding Activities) based upon
        the Software, or permit third parties to do the same;
        
        (iii) reverse engineer or decompile, decrypt, disassemble or otherwise
        reduce the Software to human-readable form, except to the extent 
        otherwise expressly permitted under applicable law notwithstanding this
        restriction;
        
        (iv) use or permit the Software to be used to perform services for 
        third parties, whether on a service bureau or time sharing basis or 
        otherwise, without the express written authorization of Cisco; or
        
        (v) disclose, provide, or otherwise make available trade secrets 
        contained within the Software in any form to any third party without 
        the prior written consent of Cisco.  User shall implement reasonable 
        security measures to protect such trade secrets.  
        
To the extent required by law, and at User's written request, Cisco shall 
provide User with the interface information needed to achieve interoperability
between the Software and another independently created program, on payment of 
Cisco's applicable fee, if any. User shall observe strict obligations of 
confidentiality with respect to such interface information and shall use such 
interface information in compliance with any reasonable terms and conditions 
upon which Cisco makes such interface information available.

Software, Upgrades and Additional Copies. For purposes of this EULA, "Software"
shall include (and the terms and conditions of this EULA shall apply to) 
computer programs, as provided to User by Cisco or an authorized agent and any 
upgrades, updates, bug fixes or modified versions thereto (collectively, 
"Upgrades") or backup copies of the Software permitted hereunder.  
NOTWITHSTANDING ANY OTHER PROVISION OF THIS EULA: (1) USER HAS NO LICENSE OR 
RIGHT TO USE ANY UPGRADES OR ADDITIIONAL COPIES UNLESS USER, AT THE TIME OF 
ACQUIRING SUCH COPY OR UPGRADE, ALREADY HOLDS A VALID LICENSE TO THE ORIGINAL 
SOFTWARE; AND (2) THE MAKING AND USE OF ADDITIONAL COPIES IS LIMITED TO 
NECESSARY BACKUP PURPOSES ONLY.

Proprietary Notices. User agrees to maintain and reproduce all copyright and 
other proprietary notices on all copies, in any form, of the Software in the 
same form and manner that such copyright and other proprietary notices are 
included on the Software. Except as expressly authorized in this EULA, User 
shall not make any copies or duplicates of any Software without the prior 
written permission of Cisco.

Term and Termination.  Provided User complies with the terms and conditions 
of this EULA, the license granted herein shall remain in effect for so long 
as User remains a Permitted End User, as determined by Cisco in its sole 
discretion.  User may terminate this EULA and the license at any time by 
destroying all copies of the Software. User's rights under this EULA will 
terminate immediately without notice from Cisco if User fails to comply with 
any provision of this EULA. Upon termination, User shall destroy all copies of
Software in its possession or control. All confidentiality obligations of User
and all limitations of liability and disclaimers and restrictions of warranty 
shall survive termination of this EULA. In addition, the provisions of the 
sections titled "U.S. Government End User Purchasers" and "General Terms 
Applicable to the Limited Warranty Statement and Software License" shall 
survive termination of this EULA.

Export.  The Software, including technical data, may be subject to U.S. export
control laws, including the U.S. Export Administration Act and its associated 
regulations, and may be subject to export or import regulations in other 
countries. User agrees to comply strictly with all such regulations and 
acknowledges that it has the responsibility to obtain licenses to export, 
re-export, or import the Software.

U.S. Government End User Purchasers. The Software qualifies as "commercial 
items," as that term is defined at Federal Acquisition Regulation ("FAR") 
(48 C.F.R.) 2.101, consisting of "commercial computer software" and "commercial 
computer software documentation" as such terms are used in FAR 12.212. 
Consistent with FAR 12.212 and DoD FAR Supp. 227.7202-1 through 227.7202-4, and
notwithstanding any other FAR or other contractual clause to the contrary in 
any agreement into which this EULA may be incorporated, User may provide to 
Government end user or, if this agreement is direct, Government end user will 
acquire, the Software with only those rights set forth in this EULA. Use of 
the Software constitutes agreement by the Government that the Software and 
related documentation are "commercial computer software" and "commercial 
computer software documentation," and constitutes acceptance of the rights and
restrictions herein.

No Warranty
THE SOFTWARE FURNISHED UNDER THIS EULA IS PROVIDED ON AN "AS IS" BASIS, WITHOUT
ANY WARRANTIES OR REPRESENTATIONS OF ANY KIND, WHETHER EXPRESS, IMPLIED OR 
STATUTORY; INCLUDING, WITHOUT LIMITATION, WARRANTIES OF QUALITY, PERFORMANCE, 
NONINFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. NOR ARE 
THERE ANY WARRANTIES CREATED BY A COURSE OF DEALING, COURSE OF PERFORMANCE OR 
TRADE USAGE. CISCO DOES NOT WARRANT THAT THE SOFTWARE WILL MEET USER'S NEEDS OR
WILL BE FREE FROM ERRORS, OR THAT THE OPERATION OF THE SOFTWARE WILL BE 
UNINTERRUPTED. THE FOREGOING EXCLUSIONS AND DISCLAIMERS ARE AN ESSENTIAL PART 
OF THIS EULA AND FORMED THE BASIS FOR DETERMINING THE FEES CHARGED FOR THE 
SOFTWARE.  

Disclaimer of Liabilities. REGARDLESS OF WHETHER ANY REMEDY SET FORTH HEREIN 
FAILS OF ITS ESSENTIAL PURPOSE OR OTHERWISE, IN NO EVENT WILL CISCO OR ITS 
SUPPLIERS BE LIABLE FOR ANY LOST REVENUE, PROFIT, OR LOST OR DAMAGED DATA, 
NETWORK FAILURE, BUSINESS INTERRUPTION, LOSS OF CAPITAL, OR FOR SPECIAL, 
INDIRECT, CONSEQUENTIAL, INCIDENTAL, OR PUNITIVE DAMAGES HOWEVER CAUSED AND 
REGARDLESS OF THE THEORY OF LIABILITY OR WHETHER ARISING OUT OF THE USE OF OR 
INABILITY TO USE SOFTWARE OR OTHERWISE AND EVEN IF CISCO OR ITS SUPPLIERS OR 
LICENSORS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. In no event 
shall Cisco's or its suppliers' or licensors' liability to User, whether in 
contract, tort (including negligence), breach of warranty, or otherwise, exceed
the price paid by User for the Software that gave rise to the claim or if the 
Software is part of another Product, the price paid for such other Product. 
BECAUSE SOME STATES OR JURISDICTIONS DO NOT ALLOW LIMITATION OR EXCLUSION OF
CONSEQUENTIAL OR INCIDENTAL DAMAGES, THE ABOVE LIMITATION MAY NOT APPLY TO YOU.

User agrees that the limitations of liability and disclaimers set forth herein 
will apply regardless of whether User has accepted the Software or any other 
product or service delivered by Cisco. User acknowledges and agrees that Cisco 
has granted the licenses and entered into this relationship in reliance upon 
the disclaimers of warranty and the limitations of liability set forth herein, 
that the same reflect an allocation of risk between the parties (including the 
risk that a contract remedy may fail of its essential purpose and cause 
consequential loss), and that the same form an essential basis of the bargain 
between the parties.

General.  The EULA shall be governed by and construed in accordance with the 
laws of the State of California, without reference to or application of 
choice of law rules or principles. The United Nations Convention on the 
International Sale of Goods shall not apply. If any portion hereof is found to
be void or unenforceable, the remaining provisions of the EULA shall remain in
full force and effect. Except as expressly provided herein, this EULA 
constitutes the entire agreement between the parties with respect to the 
license of the Software and supersedes any conflicting or additional terms 
contained in any purchase order or elsewhere, all of which terms are excluded.
This EULA has been written in the English language, and the parties agree that
the English version will govern. User waives any rights User may have under 
the law of User's country or province to have this EULA written in any language
other than English. 

Cisco, Cisco Systems, and the Cisco Systems logo are registered trademarks of 
Cisco Systems, Inc. in the U.S. and certain other countries.  Any other 
trademarks mentioned in this document are the property of their respective 
owners.

Do you accept the terms of the EULA? (Y)es/(N)o

y
You have accepted the terms to the EULA. Congratulations. Packet Tracer will now be installed.
Enter location to install Cisco Packet Tracer or press enter for default [/opt/pt]: 
Installing into /opt/pt
Copied all files successfully to /opt/pt


Should we create a symbolic link "packettracer" in /usr/local/bin for easy Cisco Packet Tracer startup? [Yn] y
Type "packettracer" in a terminal to start Cisco Packet Tracer
Writing PT7HOME environment variable to /etc/profile

Cisco Packet Tracer 7.0 installed successfully
root@ROOT:/home/gelapir/Downloads/PacketTracer70# packettracer
Starting Packet Tracer 7.0
/usr/local/bin/packettracer: line 8:  2019 Aborted                 ./PacketTracer7 "$@" > /dev/null 2>&1
root@ROOT:/home/gelapir/Downloads/PacketTracer70#
 
Old 01-22-2017, 03:17 PM   #6
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 157Reputation: 157
Remove the following partof the script:
Code:
> /dev/null 2>&1
This part of the code suppresses any terminal output including the real issue.

And try again. This will cause the actual error to be dumped into the terminal.

Last edited by gradinaruvasile; 01-22-2017 at 03:19 PM.
 
Old 01-23-2017, 01:46 AM   #7
THE PHANTOM
Member
 
Registered: Mar 2016
Posts: 94

Original Poster
Rep: Reputation: Disabled
Can you help how to remove that script? I am new in Linux. Thanks.
 
Old 01-23-2017, 03:27 AM   #8
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 157Reputation: 157
You should edit the file in a text editor launched with sudo rights. That file is a text script.
Code:
sudo nano /usr/local/bin/packettracer
Navigate to that line, delete that part i showed you then ctrl+o then Enter to save the file.

PS. Do not run graphical applications as root user directly. The root user's graphical environment is not always set up correctly.
Installed as root does NOT mean that it should be run as root. Applications install the binary statical part as root and are readable by everyone, and when launched as a user they create a settings directory in the user's home directory where they keep the user's personalized settings.
 
Old 01-23-2017, 08:08 AM   #9
THE PHANTOM
Member
 
Registered: Mar 2016
Posts: 94

Original Poster
Rep: Reputation: Disabled
Thanks sir for your kind advice. I install from root because when i am trying installing from user it says:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

I will do so as u told me.

Last edited by THE PHANTOM; 01-23-2017 at 09:45 AM. Reason: corrected.
 
Old 01-23-2017, 10:02 AM   #10
THE PHANTOM
Member
 
Registered: Mar 2016
Posts: 94

Original Poster
Rep: Reputation: Disabled
I did it and that is output:
Code:
packettracer
Starting Packet Tracer 7.0
/usr/local/bin/packettracer: line 8: syntax error near unexpected token `newline'
/usr/local/bin/packettracer: line 8: `./PacketTracer7 "$@" >
 
Old 01-23-2017, 02:21 PM   #11
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 157Reputation: 157
Remove the ">" character too.

Last edited by gradinaruvasile; 01-23-2017 at 02:22 PM.
 
Old 01-24-2017, 07:34 AM   #12
THE PHANTOM
Member
 
Registered: Mar 2016
Posts: 94

Original Poster
Rep: Reputation: Disabled
I removed it too, but same (((
 
Old 01-24-2017, 10:53 AM   #13
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 157Reputation: 157
Please post the whole packettracer script. If you have the "`" character really there it is not needed.

Last edited by gradinaruvasile; 01-24-2017 at 10:55 AM.
 
Old 01-24-2017, 12:31 PM   #14
THE PHANTOM
Member
 
Registered: Mar 2016
Posts: 94

Original Poster
Rep: Reputation: Disabled
That is after removed above mentioned characters:
Code:
#!/bin/bash

echo Starting Packet Tracer 7.0

PTDIR=/opt/pt
export LD_LIBRARY_PATH=$PTDIR/lib
pushd $PTDIR/bin > /dev/null
./PacketTracer7 
popd > /dev/null
 
Old 01-24-2017, 01:08 PM   #15
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 157Reputation: 157
Let's try this manually:
Code:
cd /opt/pt/bin/
PTDIR=/opt/pt LD_LIBRARY_PATH=/opt/pt/lib ./PacketTracer7
What happens?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
installing packet tracer mehrd@d Linux - Desktop 1 02-02-2014 08:28 AM
CISCO Packet Tracer kujirasan Linux - Software 4 07-11-2013 09:44 PM
packet tracer tgz specialized Slackware 5 10-04-2011 02:24 PM
Cisco packet Tracer kujirasan Linux - Software 8 03-15-2011 07:57 AM
Packet Tracer in ubuntu 8.04 mick463 Linux - Newbie 0 09-06-2008 04:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration