Monday, June 26, 2017

Terminal Fancy System Information Viewer neofetch and screenfetch on Debian 9

Install neofetch on Debian 9

sudo apt-get update
sudo apt-get install neofetch


Install screenfetch on Debian 9

sudo apt-get update
sudo apt-get install screenfetch

Saturday, April 1, 2017

Install WebStorm JavaScript IDE 2017 on Ubuntu 16.04 LTS

Watch this video on YouTube to see how easy it is to install WebStorm JavaScript IDE 2017 on Ubuntu 16.04 LTS


Go to Jetbrains Official Website to learn more.



Friday, March 10, 2017

Cisco Packet Tracer 7.0: Create a Desktop Launcher and File Association on Ubuntu and other GTK based DE

    This video demonstrates how to

  • How to Make a Desktop Launcher on Ubuntu for Packet Tracer 7
  • How to Associate Packet Tracer Files .pkz .pka .pkt with the Ubuntu Operating System. So you can double click on .pka .pkz .pkt files to open them up on Packet Tracer 7.0
  • How to Add Default Icons for .pkz .pka .pkt File Extensions.

This tutorial should work with any GTK based Desktop Environment such as GNOME 3, Mate, Cinnamon etc.


$ sudo update-mime-database $HOME/.local/share/mime
$ sudo update-desktop-database $HOME/.local/share/applications


If you don't have Cisco Packet Tracer installed already, install it right now. It's easy and simple. Just click on the following link and follow the instructions.

Install Packet Tracer 7.0 on Ubuntu

Install Cisco Packet Tracer 7.0 on Ubuntu 16.04 LTS

You can install Cisco Packet Tracer 7.0 on Ubuntu very easily. Just follow this video tutorial on YouTube.


Wednesday, February 15, 2017

Ubuntu Group Install Softwares with tasksel

To install a group of software on Ubuntu, you can use 'tasksel' command. You will be prompted with an interface where you can mark what software group you want to install.
sudo tasksel


  • DNS Server
  • LAMP Server
  • LAMP Server
  • Mail Server
  • PostgreSQL database
  • Samba file server
  • Ubuntu Desktop
  • Ubuntu Desktop USB
  • Virtual Machine Host
  • OpenSSH server
  • Basic Ubuntu Server
  • Lubuntu Live CD
  • Ubuntu GNOME Live CD
  • Ubuntu MATE Live CD
  • Ubuntu Studio Live CD
  • Ubuntu Studio Live DVD
  • Xubuntu Live CD
  • Ubuntu Cloud Image (instance)

These are the available groups that you can install with 'tasksel' at this moment.


Tested on: Ubuntu 16.04 LTS Server

Thursday, December 15, 2016

Fix "No 3D support is available from the host" on VMware Workstation Pro or Player 12.5.2

To fix this issue, simple follow the steps below.

Open the VMware Preference File:

Run the following command to open the vmware preference file.

$ gedit $HOME/.vmware/preferences

Add 3D support in the Preference File:

Now in the end of this file, add the following line.

mks.gl.allowBlacklistedDrivers = "TRUE"

Save the file. Now close the VMware program and re-open it. It shouldn't complain "No 3D support is available from the host" anymore.


References:

askubuntu.com

Tested on: Ubuntu 16.04 LTS
Software Package: VMware Workstation Pro 12.5.2 build-4638234

Tuesday, December 13, 2016

Blocking/Unblocking an IPv4 IP Address using firewalld on Linux




You can block a host with a specific IPv4 address with firewalld firewall program. The firewalld program can be managed by the firewall-cmd command. By default the firewall-cmd command don't have any specific options to block an IP address. But we can use firewalld rich rules. Let's see how it's done.


Blocking an IPv4 Address with firewall-cmd command:

Suppose you want to block a host with the IPv4 address 192.168.17.112, so it can't connect to your computer. You can do that with the following command.

shovon@ubntu-lab$ sudo firewall-cmd --add-rich-rule='rule family=ipv4 source address=192.168.17.112 reject' --permanent success

The rich rule has been added permanently. Now we have to reload the firewalld program configuration for the changes to take effect. To do that, run the following command.

shovon@ubntu-lab$ sudo firewall-cmd --reload success

Now you can verify that the rule has been added and it's active with the following command.

shovon@ubntu-lab$ sudo firewall-cmd --list-all
public (default, active)
  interfaces: eno16777760
  sources: 
  services: dhcpv6-client ftp nfs ssh
  ports: 
  masquerade: no
  forward-ports: 
  icmp-blocks: 
  rich rules: 
 rule family="ipv4" source address="192.168.17.112" reject

Now you can try to ping from the host with the IPv4 address 192.168.17.112, and the request now should be denied by the server.



Unblocking the IPv4 address:

You can also unblock the blocked IPv4 address with the firewall-cmd command with the following command.

shovon@ubntu-lab$ sudo firewall-cmd --remove-rich-rule='rule family=ipv4 source address=192.168.17.112 reject' --permanent success

Now reload the firewalld program with the following command.

shovon@ubntu-lab$ sudo firewall-cmd --reload success

Now you should be able to ping from the host with the IPv4 address 192.168.17.112.



FAQ:

Do I have to use the same rule I added with '--add-rich-rule' option to remove with '--remove-rich-rule'?

Yes.

How do I remember several days or months after what rules I added while removing a rich rule?

You can get a list of active rich rules with firewall-cmd --list-all command. Just copy and paste the rich rule as shown in the list.



References:

access.redhat.com

Tested on: CentOS 7