Networking | Linux | FOSS | Note-Keeping |

Pages

Showing posts with label Others. Show all posts
Showing posts with label Others. Show all posts

Friday, March 29, 2019

wttr.in - Eye Candy Weather Forecast in Linux Command Line & Browser

I recently came across an eye candy console-oriented weather forecast service tool wttr.in — the right way to check the weather!
wttr.in is a console-oriented weather forecast service that supports various information representation methods like terminal-oriented ANSI-sequences for console HTTP clients (curl, httpie, or wget), HTML for web browsers, or PNG for graphical viewers.
wttr.in uses wego for visualization and various data sources for weather forecast information. It uses the USCS units for the queries from the USA and the metric system for the rest of the world by default.
You can see it running here: wttr.in.
Weather Report

Usage

You can access the service from a shell or from a Web browser like this:
$ curl wttr.in
Weather for City: Paris, France

     \   /     Clear
      .-.      10 – 11 °C     
   ― (   ) ―   ↑ 11 km/h      
      `-’      10 km          
     /   \     0.0 mm         
You can get the weather information for a specific location by adding the desired location to the URL in your request like this:
$ curl wttr.in/London
$ curl wttr.in/Moscow
If you omit the location name, you will get the report for your current location based on your IP address.
Use 3-letter airport codes in order to get the weather information at a certain airport:
$ curl wttr.in/muc      # Weather for IATA: muc, Munich International Airport, Germany
$ curl wttr.in/bhv      # Weather for IATA: bhv, Bahawalpur Airport, Pakistan
You can also use IP-addresses (direct) or domain names (prefixed with @) to specify a location:
$ curl wttr.in/@github.com
$ curl wttr.in/@msu.ru
To get detailed information online, you can access the /:help page:
$ curl wttr.in/:help
Source:
Igor Chubin
Share:

Failure to download extra data files after installing "ttf-mscorefonts-installer" on Ubuntu 18.04 LTS

This package "ttf-mscorefonts-installer" is used to download Microsoft's font files (those files are made freely available by Microsoft) from the Internet and install them. Since, you must accept the EULA of Microsoft to use those font files, those fonts cannot be included in the package like other Free (Free as freedom) packages. Annoying messages of "failure to download extra data files from ttf-mscorefonts-installer in update notifier keep popping up after reboot. I have tried a lot of available solutions on Ubuntu forums and the following worked for me.

First of all, try to reinstall the package, and download the data files needed to configure the package.
sudo dpkg-reconfigure ttf-mscorefonts-installer

If it doesn't work, than opt for manual installation of ttf-mscorefonts-installer as below:

Go to Debian's Site and download the latest ttf-mscorefonts-installer_3.7

wget http://ftp.de.debian.org/debian/pool/contrib/m/msttcorefonts/ttf-mscorefonts-installer_3.7_all.deb
sudo apt purge ttf-mscorefonts-installer -y
sudo dpkg -i ttf-mscorefonts-installer_3.7_all.deb

Now, you won't see the annoying notifications from update notifier.

HTH.

Credits:
Muaad ElSharif
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:

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:

Saturday, August 26, 2017

Fascinating Box Up Time!

A fellow sent me a picture showing UP TIME of a Production Switch, the longest I have ever seen!!!!


 Box UpTime of 19years; just inplace upgrades, never reloaded or lost power, isn't it fascinating? How much more have you seen?
Share:

Saturday, May 27, 2017

Setting up EVE-NG (Emulated Virtual Environment-Next Generation)

I have been using UNetLab for my Cisco certifications Lab practices since long & it has been very useful, thanks to UnetLab developers for that! The same team built a new, improved, efficient, more powerful, and flexible emulation platform called EVE-NG(Emulated Virtual Environment-Next Generation) earlier this year. Some fellows have been asking me about issues regarding installation, setup tips & tweaks, running IOL, Cisco IOS images, IOSv, QEMU and other virtual machines etc., so, I am writing the tips & tricks to workaround easily using EVE-NG version '2.0.3-60' updated on April 14, 2017.
 


Setting up EVE-NG:

  • Download & install VMware Workstation Here
  • Download ready to go OVA ver 2.0.3-59 Here or the direct Mega download Link Here
  • Import the downloaded OVA in VMware Workstation by running VMware Workstation and select File -> Open - >browse & select downloaded OVA file named 'EVE Community Edition.ova' and press Open.

  • A new window will popup, press import.

  • Wait till the import is complete.

  • Now, change the newly imported virtual machine settings.

  • Change Memory (RAM) according to your available system resources, (more, the better) I have changed it to 4GB's of RAM for this test VM.

  • Change processor settings according to your system resources, following are the settings for my laptop. I have selsected 4,1.
    The most important thing is to also select "Virtualize Intel VT-x/EPT or AMD-v/RVI" option. DO NOT FORGET TO SELECT THIS.

  • Change the Network settings to "NAT"and press OK.

  • Now press "Upgrade this virtual machine", if you are using newer than VMware Workstation 10 versions. The default OVA settings are for VMware 10. Press Next.



  • Select the VMware Workstation version from the drop down menu. I'm using VMware Workstation version 12, so select version 12 and press Next.




  • Select "Alter this virtual machine" and press Next

  • Press Finish.
  • After the virtual machine conversion is complete, press Close.
  • Now, the virtual machine is ready to be turned on. Press "Power on this virtual Machine".
     
  • Login with username "root" and password "eve"


  • Now, a new window will pop up, type the root password, press OK, and than retype and press OK.

  • Here you can assign a short name for the virtual machine, change it to your desire or leave it as default and press OK.

  • Change the domain name or leave it to default and press OK.

  • The default network settings are to use dhcp, it is recommended to use a static IP address for management, so use down arrow, press space bar key to select static, and press OK.

  • Type the management IP address here by looking at the virtual network adapter settings, and press OK

  • Type Subnet Mask and press OK.

  • Type the default Gateway address, do not use the first IP address of the range as it is used by VMware, so type the second IP address of the range.

  • Type the Primary DNS Server address, and press OK.

  • Type Secondary DNS Server address(I am using 8.8.8.8), and press OK.

  • Type NTP Server address or leave empty if you don't wish clock sync, and press OK.

  • Choose the connection type, if you're not using any proxy than just press OK.

  • After this, the VM will reboot itself and you'll be prompted with the login, password prompt. Type username & password.
  • It is important to check internet connectivity by pinging any internet address, so that we may be able to download EVE-NG future updates and other packages later.


Now EVE-NG is ready to be accessed, pointing the browser to the management address (previously configured) will open a username password prompt. The web default user is "admin" with the password "eve". Login with the credentials and witness the GUI, different menus and features. Just go through the menus and you will get familiar with all available features.





HTH.
Rana Tauqeer.

Share:

Sitemap

Contact Form

Name

Email *

Message *

Total Pageviews

Search This Blog