Saturday, February 15, 2020

How to install Khmer Unicode Fonts on Ubuntu 18.04.4 LTS

Font Download:
You can download the fonts from this link, and extract it to a folder.

Ubuntu 18.04.4 LTS Font Installation
You can install the downloaded fonts from the extracted folder by font-manager. If it has not been installed, please install it using below:

sudo apt-get install font-manager

Move your mouse pointer to the Activities corner at the top left of the screen to show the Activities Overview.
In Search Box Area, type Font Manager, then launch Font Manager application by clicking on it

Click on + button to add fonts by locating the location to where you extracted the fonts that you had downloaded.

Thursday, January 09, 2020

How to Change Default Network Name to old “eth0” on Ubuntu

Edit your /etc/default/grub changing the line from

GRUB_CMDLINE_LINUX=""

to

GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"

and, finally:

$ sudo update-grub
and reboot your system:

$ sudo reboot

Sunday, December 01, 2019

Python NAPALM Installation on Ubuntu

NAPALM stands for Network Automation and Programmability Abstraction Layer with Multi-vendor support

apt update && apt -y full-upgrade
apt install python -y
apt install build-essential libssl-dev libffi-dev -y
apt install python-pip -y
pip install netmiko
pip install --upgrade pip
pip install cryptography
pip install napalm

Thursday, July 11, 2019

Failed to do 'pip install psycopg2' under Python virtual environment in Ubuntu 18.04

I failed to install psycopg2 in Python virtual environment, I am using Ubuntu 18.04 for its installation. The following error is shown below:













After googling I found the following solution below:

under virtual environment, install:

pip install wheel
or
pip install --upgrade wheel

Deactivate the virtual environment using command deactivate, then:



For Python 2
sudo apt install libpq-dev python-dev

For Python 3
sudo apt install libpq-dev python3-dev

If none of the above solve your issue, try
sudo apt install build-essential
or
sudo apt install postgresql-server-dev-all

Credit: https://stackoverflow.com/questions/5420789/how-to-install-psycopg2-with-pip-on-python

Then install psycopg2 after activating the Python virtual environment:
pip install psycopg2

Sunday, September 09, 2018

Parrot GNU/Linux (Parrot-security-4.3_amd64) Partition Layout Plan

According to my rule of thumb, to be able to successfully install Parrot GNU/Linux (Parrot-security-4.1_amd64) on either physical machine or virtual machine, you need, at least, 20 GiB of disk space. To have more room for further installation of extra applications, I recommend to reserve 39 GiB disk space for its installation based on 2 GiB swap space, and the following disk partition layout plan should be adopted:

File System
File System Type
Size
/
ext4
28 GiB
/boot
ext4
512 MiB
/home
ext4
512 MiB
swap
swap
2 GiB
/var
ext4
6 GiB
/tmp
ext4
2 GiB

At least / needs 12 GiB if you adopt to have only root partition (/), and the swap. It is up on you to plan more disk space rather than taking the above figures in the table into your consideration.

Also by so doing, my purpose is to initially have a disk space occupancy rate less than 50% for each file system (disk partition)

An example of disk usage after the OS installation

Tuesday, February 06, 2018

How To Change Default LANG on Kali Desktop Environment

As a root, you can edit /root/.dmrc and make a change on the parameter Language under [Desktop] to, for example, en_US.utf8

Finally it should look like:

Language=en_US.utf8

Prior to this, you may also need to generate the locale en_US.UTF-8 using below command as a root:

dpkg-reconfigure locales


Monday, March 02, 2015

SM Length and Data Coding for Each Short Message Using SAR (Huawei SMSC V300R002C40LG0008)

Take this note into your consideration when using SAR for Huawei SMSC V300R002C40LG0008
data_coding = 0 the length of each short message is 153
data_coding = 1 the length of each short message is 134
data_coding = 8 the length of each short message is 67

Silent or Ghost Short Message SMPP Setting

Mandatory SMPP Parameter Name
Set Value
protocol_id
64
data_coding
16
registered_delivery
1