$ sudo iptables -t nat -A POSTROUTING -o tap0 -j MASQUERADE
$ sudo iptables -A FORWARD -i tap0 -j ACCEPT
$ sudo iptables -t nat -A POSTROUTING -o tap0 -j MASQUERADE
$ sudo iptables -A FORWARD -i tap0 -j ACCEPT
| heimdall flash --BOOT boot.img --CACHE cache.img --PIT tab4.pit --RADIO modem.bin --PARAM param.bin --BOOTLOADER sboot.bin --RECOVERY recovery.img --SYSTEM system.img --HIDDEN hidden.img |
| { | |
| "editor.minimap.renderCharacters": false, | |
| "window.titleBarStyle": "custom", | |
| "editor.fontWeight": "normal", | |
| "editor.renderWhitespace": "all", | |
| "workbench.colorTheme": "Seti Monokai", | |
| "workbench.colorCustomizations": { | |
| "editor.background": "#040709", | |
| "editor.foreground": "#ffffff" | |
| } |
| Display git branch name | |
| Add following lines to your ~/.bash_profile | |
| parse_git_branch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
| } | |
| export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ " | |
| In here parse_git_branch() function extract the branch name when your are in git repository. This function output used in PS1 variable in order to prompt the branch name. |
| """ | |
| MIT License | |
| Copyright (c) 2022 Dagimal | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is |
solusi host dan guest bisa saling ping dan guest tetap mendapatkan akses internet.
source : https://unix.stackexchange.com/questions/37122/virtualbox-two-network-interfaces-nat-and-host-only-ones-in-a-debian-guest-on In Ubuntu 18.04 host, VirtualBox 6.1, using Ubuntu 19.04 as guest
In the guest edit /etc/netplan/50-cloud-init.yaml file, add two lines as shown below (before the version line). Looks like the network configuration in the guest is set up only to handle one network and the second one has to be added manually
| ```sh | |
| _____ _ _ _ | |
| | __|___ ___| |_ ___ ___| |_|_|___ | |
| | __| .'| | _| .'|_ -| _| | _| | |
| |__| |__,|_|_|_| |__,|___|_| |_|___| | |
| +++ Bash Command +++ | |
| ``` |