Networking | Linux | FOSS | Note-Keeping |

Pages

Friday, August 17, 2018

The VMware Installer could not shut down all running virtual machines - VMWare Workstation upgrade error

Yesterday, while upgrading VMware Workstation 14.1.2-8497320 to 14.1.3-9474260 on my Ubuntu 16.04.5 LTS machine, got the following error message:

"The VMware Installer could not shut down all running virtual machines. If you have Encrypted VMs open, please shut them down or suspend them now and press 'Retry' to continue."

No VM instance was running/open in my case, tried pressing Retry button on installation GUI, but still got the same error message. Rebooted the physical machine tried upgrading (both in-app and manual upgrade) and got the same error message again. Tried multiple tweaks and finally after much struggle managed to resolve the issue by following steps:
  • Remove all vmware startup scripts
    rana@ranatics:~# sudo rm /etc/init.d/vmware
    rana@ranatics:~# sudo rm /etc/init.d/vmware-USBArbitrator
    rana@ranatics:~# sudo rm /etc/init.d/vmware-workstation-server
  • Reboot your computer
    rana@ranatics:~# sudo reboot
  • Uninstall your old vmware installation
    rana@ranatics:~# sudo /usr/bin/vmware-installer -u vmware-workstation
  • Download and install the updated version
    rana@ranatics:~# sudo VMware-Workstation-Full-14.1.3-9474260.x86_64.bundle
Enjoy!

HTH,
Rana.
Share:

Monday, June 18, 2018

SecureCRT "Error while loading shared libraries: libpng16.so.16" on Ubuntu 16.04

Today, I installed SecureCRT Version "8.3.3 (build 1646) - Official Release - May 3, 2018" on Ubuntu 16.04.4 LTS machine. After installation, SecureCRT won't launch and gave the following error in terminal.
$ SecureCRT
SecureCRT: error while loading shared libraries: libpng16.so.16: cannot open shared object file: No such file or directory
Tried various tweaks, and the following did the job.
Firstly, install required PNG Library "libpng16-16" package with the following command:
$ sudo apt install libpng16-16
Run the program, and if you come across `GLIBCXX_3.4.22' not found error than go further below to next step:
$ SecureCRT
SecureCRT: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by SecureCRT)
Now, Update GLIBCXX_3.4.22 library packages from this untrusted PPA by adding ppa:ubuntu-toolchain-r/test to your system's Software Sources.
$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test
$ sudo apt update
$ sudo apt dist-upgrade -y
You can check if you have GLIBCXX_3.4.22 like this:
$ strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX_3.4.22
GLIBCXX_3.4.22  
Now, run SecureCRT and enjoy!

HTH,
Rana Tauqeer.
Share:

Wednesday, March 7, 2018

Unable to login via HTML5 console on EVE-NG

Issue:
Unable to login via HTML5 console on EVE-NG's Web GUI after upgrade to EVE-NG 2.0.3-86 or when in HTML5 console, disconnect button gets you into a guacamole login page and can’t get any sessions in HTML5.

Solution:

This is a typical corrupt Guacamole SQL database issue; whether happened randomly or even during/after eve upgrade process, there are two very simple proposed solutions for this problem:
  1. Logout/Login from/into eve to be able to open html console again.
    or
  2. Issue the following command on eve-ng vm:
    #cat /opt/unetlab/schema/guacamole-update.sql | mysql -u root --password=eve-ng guacdb
    and than login/logout from/into eve.
HTH,
Rana Tauqeer.
Share:

Setting SecureCRT as default telnet handler for EVE-NG devices on Firefox.

While doing Lab practice on EVE-NG's Web GUI on Firefox Web-browser, telnet (by double click or right-click console option) to a network device opens Ubuntu's default terminal (Gnome Terminal) via 'xdg-open' script from 'xdg-utils' by default. Console to multiple devices opens a new instance of Gnome Terminal for each telnet session, which for me is not handy and makes it too messy! 

I'm rather a SecureCRT fan, and have always preferred it over other available terminal emulators due to it's awesome features and handy tools. So, I was trying to find a way to open the EVE-NG's telnet:// or ssh:// links directly via SecureCRT. Manual telnet/SSH from SecureCRT to EVE-NG's devices works fine by default, but, this becomes hectic for full scale CCIE Labs having over 50 or more devices running.


With the help of VanDyke Technical Support, I was able to figure out a way to get Firefox on Ubuntu to prompt you for which application to open SSH/Telnet links with.


Following instructions can make it possible:

  • Open Firefox and type “about:config” in address bar.
  • Create a new Boolean preference (right click on an empty space), name it
    “network.protocol-handler.expose.telnet” (without inverted commas) for telnet handler, and set the value “false”.
  • Create another new Boolean preference (right click on an empty space), name it
    “network.protocol-handler.expose.ssh” (without inverted commas) for ssh handler, and set the value “false”
  • Restart the browser.
This should be enough for Firefox to let us select an external application to open “telnet://” links. 
While testing I would suggest leaving the "Remember my choice for ..." option unchecked. When prompted you should be able to select SecureCRT, by default it is located at /usr/bin/SecureCRT.

PS:

I'm using latest SecureCRT 8.3.2 on Ubuntu 16.04.4 LTS (Xenial) and while attempting various suggested workarounds, messed up SecureCRT's Tab feature (it kept opening new sessions in new instances rather than in tabs).

There is a work around that you could try. It would force SecureCRT into Single Instance mode, though you would not be able to open two separate instances of SecureCRT.


To accomplish this:

  • Locate the config folder info in the General / Configuration Paths category of SecureCRT's Global Options
  • Close all instances of SecureCRT/FX
  • Navigate to your SecureCRT configuration folder
  • Locate and open the Global.ini file
  • Find the line containing "Single Instance"
  • Modify the line to D:"Single Instance"=00000001
  • Save the changes to Global.ini
Now that SecureCRT is in Single Instance mode any link selected should open in a new tab.

HTH,

Rana Tauqeer.

Share:

Tuesday, November 21, 2017

SerureCRT 8.3 installation on Ubuntu 16.04LTS Linux

This tutorial uses SerureCRT 8.3 - Nov 9, 2017 release running on Ubuntu 16.04LTS machine, follow the steps below and enjoy fully featured rock-solid terminal emulation:
  • Download the latest SecureCRT for Linux Ubuntu 16.x 64-bit (scrt-8.3.0-1514.ubuntu16-64.x86_64.deb) from official Website 
  • Double click the downloaded .deb file, and install it through Ubuntu Software Center for ease.
  • Open a terminal (Ctrl+Alt+t) and download the perl script:
    rana@Ubuntu16:~$ wget http://download.boll.me/securecrt_linux_crack.pl
  • Check out the SecureCRT installation path:
    rana@Ubuntu16:~$ whereis SecureCRT
    SecureCRT: /usr/bin/SecureCRT 
  • Run the perl script on SecureCRT's installation path '/usr/bin/SecureCRT':
    rana@Ubuntu16:~$ sudo perl securecrt_linux_crack.pl /usr/bin/SecureCRT
    If the script is successful, the registration information output will be generated in terminal.
  • Now, run 'SecureCRT' command in terminal and follow the prompts to fill out the registration information output in 'Enter License Manually' Tab.
  • All Done!


















(Script share is just for the sake of testing/educational purposes and do not endorse cracking, use in production or intend to violate any copyrights. Please, properly give credits to the developers; download trial and buy the most awesome SecureCRT - Peace!)

HTH,
Rana Tauqeer.
Share:

Monday, November 20, 2017

GNS3 2.0.3 Error on Ubuntu 16.04LTS: IOS/IOU_name.bin%20is%20not%20executable

GNS3 2.0.3 Error Message on Ubuntu 16.04LTS:

home/rana/GNS3/images/IOU/i86bi-linux-l2-adventerprisek9-15.6.0.9S.bin%20is%20not%20executable


Some fellows came across the above error, while adding/configuring IOS/IOU on GNS3 2.0.3 and the development version GNS3 2.1.0 running on Ubuntu 16.04LTS machines. The error message is self explanatory, and just needs you to add execution rights to the IOS/IOU files in GNS3's images directory, like below and can be repeated for all IOS/IOU giving the same error:

(The below example assumes GNS3's default directories, and shows rights inclusion to L2 IOU, L3 IOU and a c7200 router IOS, just open a terminal with Ctrl+Alt+t, and do the following from '/home/user' directory)


rana@Ubuntu16:~cd GNS3/images/IOU
rana@Ubuntu16:~/GNS3/images/IOU$ sudo chmod +x i86bi-linux-l2-adventerprisek9-15.6.0.9S.bin
[sudo] password for rana: 
rana@Ubuntu16:~/GNS3/images/IOU$ sudo chmod +x i86bi-linux-l3-adventerprisek9-15.4.1T.bin
rana@Ubuntu16:~/GNS3/images/IOU$ cd ..
rana@Ubuntu16:~cd GNS3/images$ cd IOS
rana@Ubuntu16:~/GNS3/images/IOS$ sudo chmod +x c7200-adventerprisek9-mz.153-3.XB12.bin
rana@Ubuntu16:~/GNS3/images/IOS$ 

Now, open GNS3 again and add the IOS/IOU again in Preferences Tab, everything should work as intended.


HTH,
Rana Tauqeer.
Share:

GNS3 2.0.3 & GNS3 2.1.0 Error on Ubuntu 16.04LTS: uBridge is not available, path doesn't exist.

GNS3 2.0.3 ERROR:
"
uBridge is not available, path doesn't exist, or you just installed GNS3 and need to restart your user session to refresh user permissions"


Solution:

I came across the above uBridge error, while running GNS3 2.0.3 stable version (also tried the development version of GNS3 2.1.0, but stuck at the same error), on my Ubuntu 16.04LTS Machine. Applied almost all available solutions on GNS3 forums and other blogs but nothing worked. Finally, I was able to figure out the following solution, which did the charm! 

Step-1: Open a terminal (Ctrl+Alt+t), and login as root/Superuser 
rana@Ubuntu16:~$ su - 
Password: 
root@Ubuntu16:~$

Step-2: Update repository 
root@Ubuntu16:~$apt-get update 

Step-3: Install 'sudo' 
While trying and working around other available solutions, I suspect that something went wrong with 'sudo' too, this step can be exempted/skipped if 'sudo' is working correctly for you - (which can be checked with 'sudo ls' command) 
root@Ubuntu16:~$apt install sudo 

Step-4: Add the user ('rana' in my case) to group sudo 
root@Ubuntu16:~$usermod -aG sudo rana 

Step-5: Reboot the machine
root@Ubuntu16:~$reboot

Step6: After reboot, reconfigure ubridge 
rana@Ubuntu16:~$sudo dpkg-reconfigure ubridge 

Step-7: Run GNS3, test it and enjoy learning!!! 

[The same answer and other suggested workarounds related to this particular error can also be found at GNS3 Community Forums]

HTH, 
Rana Tauqeer.
Share:

Sitemap

Contact Form

Name

Email *

Message *

Total Pageviews

Search This Blog