Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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).
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
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?
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.