VMware Workstation 14 Bridge Mode not Connected to Internet

Hello again friends and readers (don't know how many of you read my writings, but whateva)

I recently encountered a problem where everytime I tried to set my vm on pc to Bridge mode, it will always not connected to internet.

At first I thought it was the image problem, but after several time of deleting and installing VM, I realised that that is not my actual problem.

Then after several minutes of internet surfing, I found some other folks with similar problem with me, and there is actually solution for that.

In short, what you need to do are:
-- Be sure your vm is stopped.
--Run the VMWare Virtual Network Editor
(click start and search for Virtual Network Editor)
-- Run it as administrator (or click the button at the bottom of the screen that says, "change settings." VMNet0 will dislpay when running as administrator. Otherwise, it will not be visible)
-- Highlight VMNet0 and click on "Automatic Settings"
-- You will s…

This is how I understand Data Encapsulation

I tried to understand Data Encapsulation but failed to find stuff that easy to understand, maybe because I am a slow learner.
So, I have written this to gain understanding on this topic. Please help me correct this material in case there is error. Also pardon my shit english, it is my second language.
If you gain benefit from this, I am glad, thank you for reading.

Fundamental - OSI layer and PDU

OSI - 7 Layer (Physical, Data Link, Network, Transport, Session, Presentation, Application)

PDU - Protocol Data Unit, the model/control of the information on each layer. PSU are encapsulated by attaching them to the data at each layer.

Per OSI, 5th, 6th and 7th layer is considered application layer or upper layer.

1st, 2nd, 3rd and 4th layer are considered data flow layer.

For encapsulation, we want to look more at tne Data Flow layer. PDU on each layer are defines as follows:

Transport layer - SegmentNetwork layer - PacketData link layer - FramePhysical layer- Bit


Add Go-related path into your Visual Studio Code in Ubuntu 18.04

I started learning Golang and having difficulties in configuration as there is no simple way to find where the hell is "howto config" guide.

Frustratingly googling didn't give good result until I found this blog in Chinese:

Kudos to you for writing it in a beginner friendly way!

In short:

File -> Preferences -> User Setttings.In the search bar, just type "go" and it will list some suggested result.You will probably find like in this snapshot

Click on "Edit in settings.json". It will open a new tab of "settings.json"

Your Ubuntu 18.04 cannot mount exFAT storage

Have you ever encounter such problem as per screenshot below?



Steps to do: Open terminal.
type "sudo apt install exfat-fuse exfat-utils" and press enter.
You will see it will download the necessary package and install it per screenshot below:
Once finished, navigate back to the file manager and try open the storage back. Yo should be able to access it now!

This blogpost is to save me from googling random keyword and can easily find it in 1 place aka my own wiki to sort my random shit out.

Fixing Installation Problem in Kali Linux 2018.2 for VirtualBox and VMware Workstation. (gcc 7.3.0)

Hello All.

Previously I had migrated my testing machine into a new laptop.

Well, it is a refurbished laptop, Dell E7240. After finish installing Kali, I proceed to install VMware player. Unfortunately it does not running and keep asking for location of gcc 7.3.0.

After giving up, I tried installing VirtualBox. Surprisingly it also failed.

Both keep asking for location of gcc 7.3.0.

So the solution that I discover is by running "sudo apt install virtualbox-dkms".

After reboot, I just try to run the VMware again, it now able to run.

Note: The way I did is after installing the virtualbox-dkms, I uninstall both virtualbox and vmware, restart the OS (I use Kali 2018.2) and install vmware again. It works flawlessly.

Good Luck and Cheers!

TWRP cannot flash Magisk on Redmi 4x

I tried flash an Android phone with TWRP as its bootloader and it keep rejecting to install Magisk.
So this is how I solve it.
(Tested on 23 August 2018 on Redmi 4x AOSP Extended v5.7)

1. In TWRP, go to :
Home -> Mount -> select Cust (if not selected) -> Home

2. Then go back to main TWRP page, later:
Home -> Advanced ->Terminal -> run following commands
a. mount | grep cust
-> It will show something like this
/dev/block/mmcblk0xxx on /cust type ext4 .... -> copy the directory, and save it somewhere else.

b. umount /cust
-> go back to Home -> Mount -> uncheck Cust -> Home

c. Go back to Advanced ->Terminal -> run following commands
mount -t ext4 -o ro /dev/block/mmcblk0xxx /vendor

3. Finally go to Home -> Install and locate your magisk .zip file to flash it.

Note: What if you already format the storage due to TWRP keep asking for password to decrypt storage despite you never encrypt it in the first place.
(This is common bug in TWRP, always ha…

Add Android PATH to your ubuntu profile and make your life less shitty (Updated 15 March 2018)

Like the title say,  let us do it.

After you finish doing installation of the Android SDK, you probably don't want to open the terminal and keep on typing cd to find adb path before doing god know what.

Obviously I'm the latest generation of GNU/Linux user that cannot be bothered with learning vi or emacs, so I'm going to use nano instead.

DISCLAIMER: I've tried it on Ubuntu, Kali Linux and Debian, it works for me so far.

Open your terminal, make sure it is in the home directory, click Ctrl + H and locate your .bashrc file.type sudo nano .bashrc, enter your password if you are not root (duh).scroll until the end of all those things that we don't understand.start typing the path of your Android SDK:
export PATH="$PATH:/"your_path"Android/Sdk/tools/:/"your_path"/Android/Sdk/platform-tools/:/"your_path"/Android/Sdk/build-tools/26.0.2/"Save those things by clicking Ctrl + O.Exit your nano by clicking Ctrl + X.Now to enable the cha…