Tuesday, March 31, 2020

Shotcut Installation Using snap on Ubuntu

Shotcut is a free, open source, cross-platform video editor. The below command is to install shotcut using snap:

sudo snap install shotcut --classic

Sunday, March 29, 2020

Materials and Cost Estimation For Recording Studio Setup

The attached PDF file is just a list (even not completed) of the materials required for a recording studio and its cost estimation as of March, 2020 based on price quoted from Amazon, and Cambodia local market.


How to Check What DNS Servers Currently Used In Ubuntu

I used to ask myself the same question on how to check what DNS servers are currently being used whether it is manually or dynamically (via DHCP) configured.

For manually configured DNS Server(s):

more /etc/resolv.conf

For manually or dynamically configured DNS Server(s) :

more /etc/resolv.conf

OR

systemd-resolve --status




Monday, March 23, 2020

Failed to install electerm using snap on Ubuntu

After I download the snap file "electerm-1.3.1-linux-amd64.snap" from this url, I get the following error shown in the snapshot below using command:

sudo snap install electerm-1.3.1-linux-amd64.snap


To fix such an error, the option --dangerous is used to force the command not to verify the installation signature:

sudo snap install --dangerous electerm-1.3.1-linux-amd64.snap

In summary, to resolve the error "cannot find signatures with metadata for snap" when installing using snap, you can use the flag --dangerous

Credits: Kyle, and electerm

***Note***: I encounter one problem; it is unable to use the command "sudo", and other commands as shown in below snapshot when using in electerm with error permission denied:


So I decide to uninstall with the following command:

sudo snap remove electerm

Once I download deb package from this link, I simply install it by the following command:

sudo dpkg -i  electerm-1.3.4-linux-amd64.deb

Then the problem of "permission denied" is gone, and I can normally use all the commands:







As of March 24, 2020, the version electerm-1.3.4-linux-amd64.deb is available for download from this link

Friday, March 13, 2020

Openshot cannot be started in Ubuntu 18.04

After I install openshot via PPA, following from its official website:

sudo add-apt-repository ppa:openshot.developers/ppa
sudo apt-get update
sudo apt-get install openshot-qt

I cannot start openshot. After googling I found the solution by removing python3 module pyqt5 as follows:

$pip3 uninstall pyqt5

Credits: openshot, and github (Thanks to behnambm for the solution)

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