LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 02-21-2017, 11:21 PM   #31
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 158Reputation: 158

1. Is your Packet tracer really in /opt/pt? This is not a fixed location, i used it as an example. The directory is where the "packettracer" executable script is located after install or unpack.
2. Verify if the variable was actually exported:
Code:
echo $PTDIR
3.You can try using for example PT7HOME instead (i have this and it is working).
Code:
PT7HOME=/opt/pt
 
Old 02-22-2017, 03:02 PM   #32
Deixus
LQ Newbie
 
Registered: Feb 2017
Distribution: Debian
Posts: 7

Rep: Reputation: Disabled
Yes, my packet tracer is really in /opt/pt.

This is the output when put in the comman line the new environment "cat /etc/environment" Even so java web start does not launch packet tracer

Code:
PT7HOME=/opt/pt
This is the file /etc/profile for you support me.

Code:
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

if [ "`id -u`" -eq 0 ]; then
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
else
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
fi
export PATH

if [ "$PS1" ]; then
if [ "$BASH" ] && [ "$BASH" != "/bin/sh" ]; then
# The file bash.bashrc already sets the default PS1.
# PS1='\h:\w\$ '
if [ -f /etc/bash.bashrc ]; then
. /etc/bash.bashrc
fi
else
if [ "`id -u`" -eq 0 ]; then
PS1='# '
else
PS1='$ '
fi
fi
fi

if [ -d /etc/profile.d ]; then
for i in /etc/profile.d/*.sh; do
if [ -r $i ]; then
. $i
fi
done
unset i
fi
PT7HOME=/opt/pt
export PT7HOME
Saludos!
 
Old 02-22-2017, 03:10 PM   #33
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 158Reputation: 158
Does
Code:
PT7HOME=/opt/pt javaws jnlpfile.jnlp
work?
 
Old 02-22-2017, 03:26 PM   #34
Deixus
LQ Newbie
 
Registered: Feb 2017
Distribution: Debian
Posts: 7

Rep: Reputation: Disabled
If it works, but it is not the most automatic in that way.

I would like the process to be more automatic.

Saludos!
 
Old 02-23-2017, 01:02 AM   #35
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 158Reputation: 158
Well it's weird. Where does your "javaws" come from (which package)? I suppose for some reason your environment does not pass the variable. What DE do you use?
 
Old 03-02-2017, 02:11 AM   #36
danishparvez
LQ Newbie
 
Registered: Feb 2017
Posts: 9

Rep: Reputation: Disabled
Angry I want to delete all that I followed here.

Actually the packet tracer is not working as it is supposed to be. So whatever I followed here to install and run packet tracer can someone help me to take me back and remove all of it. I would really appreciate. It got me confused and I'm still a newbie. I tried to use apt command to remove but it says can't locate the package.

Here is a picture of what's going on :
https://1drv.ms/i/s!As9qW5etxahqewmZj9D14gEM9AA

Last edited by danishparvez; 03-02-2017 at 02:17 AM.
 
Old 03-02-2017, 03:52 AM   #37
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 158Reputation: 158
1. Packet Tracer is not installed via the APT package system so apt commands will not work. It was installed separately by (i assume) the script provided by cisco. The installation script copies packet tracer in the directory you specify (i assume /opt/pt). I dont see any uninstaller, you just remove the folder altogether (btw which does not do anything else than sitting there).
Also look at the /etc/environment file and remove the packet tracer references there.

2. Did you declared LD_PRELOAD system-wide? Why? It is only supposed to be used for the specific command that NEEDS preloaded specific libraries.
 
Old 03-02-2017, 04:01 AM   #38
danishparvez
LQ Newbie
 
Registered: Feb 2017
Posts: 9

Rep: Reputation: Disabled
Unhappy

I can't remove the folder.
Also how can I identify the packet tracer references in /etc/environment.

2. LD_PRELOAD! How can I fix this?As I told you I'm new to linux I have not understood it very well yet!

Last edited by danishparvez; 03-02-2017 at 04:05 AM.
 
Old 03-02-2017, 04:35 AM   #39
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 158Reputation: 158
Post the output of
Code:
cat /etc/environment
 
Old 03-02-2017, 05:27 AM   #40
danishparvez
LQ Newbie
 
Registered: Feb 2017
Posts: 9

Rep: Reputation: Disabled
#!/bin/bash

echo Starting Packet Tracer 7.0

PTDIR=/opt/pt
#export LD_LIBRARY_PATH=$PTDIR/lib
pushd $PTDIR/bin > /dev/null
LD_PRELOAD=/opt/pt/lib/libQtWebKit.so.4 PTDIR=/opt/pt ./PacketTracer7
popd > /dev/null
 
Old 03-02-2017, 07:38 AM   #41
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 158Reputation: 158
Um. Just delete everything from it. Then reboot.

Somehow you put in this file everything you need to put into the "packettracer" executable.
As this is a file that is supposed to export variables in a variable="value" format, you may have some issues on your system.
 
Old 03-02-2017, 08:01 AM   #42
danishparvez
LQ Newbie
 
Registered: Feb 2017
Posts: 9

Rep: Reputation: Disabled
Can you provide info on how to do that? I don't want to try it on my own as it might get messed up.
 
Old 03-02-2017, 08:17 AM   #43
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 158Reputation: 158
Just delete the file.
Code:
sudo rm /etc/environment
 
Old 03-02-2017, 08:20 AM   #44
danishparvez
LQ Newbie
 
Registered: Feb 2017
Posts: 9

Rep: Reputation: Disabled
rm: cannot remove '/etc/environment': No such file or directory
 
Old 03-02-2017, 08:23 AM   #45
danishparvez
LQ Newbie
 
Registered: Feb 2017
Posts: 9

Rep: Reputation: Disabled
My bad I think its already deleted. One thing I want to remove the folder packettracer from opt but I don't have permission.
 
  


Reply



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 07:19 PM.

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