Parrotsec run GNS3 on RaspberryPi (Multiboot_with_berryboot)

ZawGyi
ပထမဆံုး Browser ကေနျပီေတာ့ (ပံု ၁) https://sourceforge.net/projects/berryboot/ 
 Image may contain: text
berryboot zip file ကို ေဒါင္းပါ (ပံု၂)..
No automatic alt text available.
 zip file ကို RaspberryPi မွာ တပ္မယ့္ MicroSD ကတ္ ထဲသို ့ Extrect လုပ္လုိက္ပါ (ပံု၃)
No automatic alt text available.
ျပီးလ်ွင္ Rpi မွာတပ္ျပီး Power onလိုက္ပါ Welcome Screen တက္လာျပီး..ျပီးလ်င္ ကိုယ္တင္မယ့္ OS ရွိတဲ့ USB Flash drive တပ္ထားပါ.. wire or wifi ေရြးေပးျပီး ok ေပးလိုက္ပါ(ပံု၄)..
Image may contain: screen
Disk Selection ေနရာမွာ.. MicroSD Card ကို ေရြးေပးပါ.. ျပီးလွ်င္ format ကိုနွိပ္ေပးပါ (ပံု၅)
No automatic alt text available.
load လုပ္ပါလိမ့္မယ္..(ပံု၆ ပံု၇)..
No automatic alt text available.No automatic alt text available.
 install operation system ဆုိျပီး ျပေနပါလိမ့္မယ္.. အကယ္လို့.. wifi or wire လို့ ေရြးခဲ့တုန္းက internet ရတဲ့ network ဆုိရင္ online ကေန တစ္ခါတည္း download လုပ္ျပီး install လုပ္လိုု့ရမယ့့္ OS list ေတြျပေပးပါလိမ့္မယ္. ခု ဒို့ေတြ လုပ္မွာက offline install လုပ္မွာျဖစ္လို့... cancle ကို နွိပ္လိုက္ပါ...(ပံု၈)..
No automatic alt text available.
install complete.Press 'OK' to reboot ဆုိျပီးျပေနရင္ okay ေပးလိုက္ပါ (ပံု၉)
No automatic alt text available.
boot ျပန္တက္လာရင္ Add OS ဆုိတဲ့ Button ေလးကို.. ျကာျကာေလးဖိနွိပ္လိုက္ပါ.. Download OS from internet နဲ့ copy OS from USB stick ဆုိျပီး ျပေပးပါလိမ့္မယ္.. Copy OS form USB stick ကိုေရြးေပးလိုက္ပါ..(ပံု၁၀) 
No automatic alt text available.
RaspberryPi ရဲ့ USB port မွာတပ္ထားတဲ့ Flash deive မွာ ရွိတဲ့ file ေတြကို ျပေပးပါလိမ့္မယ္.. OS.img ဆုိတဲ့ image file ေလးကို ေရြးေပးလိုက္ပါ (ပံုဿဿ၁၁)..
No automatic alt text available.
copying file(ပံု၁၂) ဆုိျပီးျပေနပါလိမ့္မယ္...
No automatic alt text available.
 ခနျကာလ်ွင္..ရသြားပါလိမ့္မယ္..(ပံု13).
No automatic alt text available.
.ေနာက္ထပ္ ထပ္ထည့္ခ်င္တာရွိလ်င္လဲ ADD OSကေနျပီး ထပ္ ထည့္နုိင္ပါတယ္.
No automatic alt text available.
.ျပီလ်ွင္ exit ကိုနွိပ္ပါ.. reboot က်သြားပါလိမ့္မယ္.. boot တက္လာရင္.. ကို၀င္ခ်င္တဲ့ OS ကိုေရြးျပီး Boot ကိုနွိပ္ပါ.. ထပ္ထည့္ခ်င္ေသးရင္ေတာ့ edit menu ကေနတစ္ဆင့္ ျပန္၀င္ထည့္ပါ.. :P Okay.. ခု Parrotsec မွာ GNS3 ကို install လုပ္ပါ့မယ္.. လုိအပ္တဲ့ dependency ေတြ Package ေတြ အရင္ထည့္ရပါ့မယ္..
ပထမဆံုး.. gns3-gui နဲ့ gns3-server ကိုထည့္ဖုိ့ pip3 ကိုလိုအပ္ပါတယ္ pip3 သြင္းဖုိ့အတြက္
$sudo apt-get install python3 python3-pip
(ပံု15)
No automatic alt text available.
# - Install GNS3 Python dependencies
$ sudo apt‐get install python3‐setuptools python3‐pyqt4 python3‐ws4py python3‐netifaces (ပံု16)
No automatic alt text available.
/////github ကေန clone လုပ္ဖုိ့ git မရွိေသးရင္ $sudo apt-get install git
# Install Dynmips dependencies
$ sudo apt-get install cmake libelf‐dev uuid‐dev libpcap‐dev 
and
# - Build and Install Dynamips
$ git clone git://github.com/GNS3/dynamips.git (ပံု17)
No automatic alt text available.
$ cd dynamips
$ mkdir build
$ cd build
$ cmake .. (ပံု၁၈)
Image may contain: text
$ make (ပံု၁၉)
No automatic alt text available.
$ sudo make install (ပံု၂၀)
Image may contain: text
$ sudo setcap cap_net_admin,cap_net_raw=ep /usr/local/bin/dynamips
$ cd ../.. (ပံု၂၁)
No automatic alt text available.
# - Install IOU prerequisites
$ sudo apt-get install bison flex git (ပံု၂၂)
Image may contain: text
$ git clone http://github.com/ndevilla/iniparser.git (ပံု၂၃)
No automatic alt text available.
$ cd iniparser 
$ make (ပံု၂၄)
No automatic alt text available.
$ sudo cp libiniparser.* /usr/lib/
$ sudo cp src/iniparser.h /usr/local/include
$ sudo cp src/dictionary.h /usr/local/include
$ cd .. (ပံု၂၅)
Image may contain: screen
# - Install GNS3 IOUYAP app
$ git clone https://github.com/GNS3/iouyap.git
$ cd iouyap
$ make (ပံု၂၆)
No automatic alt text available.
$ sudo make install
$ sudo cp iouyap /usr/local/bin/
$ cd ..
(ံပံု၂၇)
No automatic alt text available.
now We can install GNS3 ;-)
$sudo pip3 install gns3-gui လုိ့ ရိုက္ျပီးသြင္လိုက္မယ္ဆုိရင္ latest version( now latest version is 2.0.3) ကိုသြင္းသြားမွ ျဖစ္ပါတယ္ (ပံု၂၈)
No automatic alt text available.
$sudo pip3 install gns3-server==2.0.3 ဆုိျပီးသြင္းမယ္ဆိုရင္ version 2.0.3 ကို သြင္းမွာျဖစ္ပါတယ္.. gns3-gui နဲ့ gns3-server သည္ same version ျဖစ္ရပါ့မယ္.. ( ပံု၂၉)
No automatic alt text available.
ကဲ ခု Terminal ကေန gns3 လုိ့ run လုိက္မယ္ဆုိရင္္ျဖင့္ ရဦးမွာ မဟုတ္ေသးပါဘူး... error ေလးနဲနဲ က်န္ပါေသးတယ္.. ကဲ tshoot လုပ္က်ပါစို.. ;-)
PyQt5 ဆုိတဲ့ Module မရွိဘူးလို့ ေျပာေနပါတယ္..
sudo apt-get install python-pyqt5
or
sudo apt-get install qt5-default pyqt5-dev pyqt5-dev-tools
or
sudo apt-get install python3-pyqt5
or
sudo apt-get install pyqt5
sudo pip3 install pyqt5
ဆုိျပီး PyQt5 module ကိုသြင္းနုိင္ပါတယ္.. command ေတြ ကြဲေနရတာကေတာ့.. Linux distribution မတူရင္ ထည့္ပံုထည့္နည္းကြဲနုိင္လို့ပါ...
(ပံု၃၀)
Image may contain: text
gns3 လုိ့ run မယ္ဆုိ ရဦးမွာမဟုတ္ပါဘူး.. PyQt5.QtSvg ဆုိတဲ့ module ေလးလဲ မရွိေသးပါဘူးတဲ့.. အဲ့ေတာ့ ထည့္ေပးက်တာေပါ့ဗ်ာ့..
$sudo apt-get install PyQt5.QtSvg ဆုိျပီသြင္းေပးလိုက္ပါ..
(ပံု၃၃)
Image may contain: text
ကဲ $gns3 ဆုိျပီ run ျကည့္က်ပါစို.. ခုတာ့ okay သြားပါျပီး.. (ပံု၃၄)
No automatic alt text available.
cisco ios ထည့္ျပီး idea pc ေရြးေပးလိုက္္ပါ.. (ပံု35)
Image may contain: text
errorေလးေတြနဲနဲ ရွိပါလိမ့္မယ္.. ubridge ကို /usr/local/bin မွာ ရွာမေတြ့ေသးလို့ပါ..
$git clone https://github.com/GNS3/ubridge.git (ပံု 36)
Image may contain: text
$make (ပံု37)
No automatic alt text available.
$sudo make install (ပံု38)
No automatic alt text available.
ခုဆိုရင္ေတာ့ Cisco အတြက္ေတာ့ လံုး၀ ကို အဆင္္ေျပေျပ run လုိရသြားပါျပီ.. test အေနနဲ့ ..
R1 နဲ့ R2 ကို ping ျပတာပါ... (ပံု၃၉)
No automatic alt text available.
 .. Mikrotik ကေတာ့ နဲနဲ ျပသနာရွိေသးတယ္ဗ်ာ့.. ေနာက္က်မွ 
ဆက္စမး္ေတာ့မယ္.. see ya!!
~[F]or-get
UniCode
#RaspberryPi_Multiboot_with_berryboot
#Parrotsec_run_GNS3_cisco_on_RaspberryPi
ပထမဆုံး Browser ကနေပြီတော့ (ပုံ ၁) https://sourceforge.net/projects/berryboot/ 
berryboot zip file ကို ဒေါင်းပါ (ပုံ၂).. zip file ကို RaspberryPi မှာ တပ်မယ့် MicroSD ကတ် ထဲသို ့ Extrect လုပ်လိုက်ပါ (ပုံ၃)
ပြီးလျှင် Rpi မှာတပ်ပြီး Power onလိုက်ပါ Welcome Screen တက်လာပြီး..ပြီးလျင် ကိုယ်တင်မယ့် OS ရှိတဲ့ USB Flash drive တပ်ထားပါ.. wire or wifi ရွေးပေးပြီး ok ပေးလိုက်ပါ(ပုံ၄)..Disk Selection နေရာမှာ.. MicroSD Card ကို ရွေးပေးပါ.. ပြီးလျှင် format ကိုနှိပ်ပေးပါ (ပုံ၅)
load လုပ်ပါလိမ့်မယ်..(ပုံ၆ ပုံရ).. install operation system ဆိုပြီး ပြနေပါလိမ့်မယ်.. အကယ်လို့.. wifi or wire လို့ ရွေးခဲ့တုန်းက internet ရတဲ့ network ဆိုရင် online ကနေ တစ်ခါတည်း download လုပ်ပြီး install လုပ်လိုု့ရမယ့့် OS list တွေပြပေးပါလိမ့်မယ်. ခု ဒို့တွေ လုပ်မှာက offline install လုပ်မှာဖြစ်လို့... cancle ကို နှိပ်လိုက်ပါ...(ပုံ၈)..
install complete.Press 'OK' to reboot ဆိုပြီးပြနေရင် okay ပေးလိုက်ပါ (ပုံ၉)
boot ပြန်တက်လာရင် Add OS ဆိုတဲ့ Button လေးကို.. ကြာကြာလေးဖိနှိပ်လိုက်ပါ.. Download OS from internet နဲ့ copy OS from USB stick ဆိုပြီး ပြပေးပါလိမ့်မယ်.. Copy OS form USB stick ကိုရွေးပေးလိုက်ပါ..(ပုံ၁၀) RaspberryPi ရဲ့ USB port မှာတပ်ထားတဲ့ Flash deive မှာ ရှိတဲ့ file တွေကို ပြပေးပါလိမ့်မယ်.. OS.img ဆိုတဲ့ image file လေးကို ရွေးပေးလိုက်ပါ (ပုံဿဿ၁၁)..
copying file(ပုံ၁၂) ဆိုပြီးပြနေပါလိမ့်မယ်... ခနကြာလျှင်..ရသွားပါလိမ့်မယ်..(ပုံ13)..နောက်ထပ် ထပ်ထည့်ချင်တာရှိလျင်လဲ ADD OSကနေပြီး ထပ် ထည့်နိုင်ပါတယ်..ပြီလျှင် exit ကိုနှိပ်ပါ.. reboot ကျသွားပါလိမ့်မယ်.. boot တက်လာရင်.. ကိုဝင်ချင်တဲ့ OS ကိုရွေးပြီး Boot ကိုနှိပ်ပါ.. ထပ်ထည့်ချင်သေးရင်တော့ edit menu ကနေတစ်ဆင့် ပြန်ဝင်ထည့်ပါ.. :P Okay.. ခု Parrotsec မှာ GNS3 ကို install လုပ်ပါ့မယ်.. လိုအပ်တဲ့ dependency တွေ Package တွေ အရင်ထည့်ရပါ့မယ်..
ပထမဆုံး.. gns3-gui နဲ့ gns3-server ကိုထည့်ဖို့ pip3 ကိုလိုအပ်ပါတယ် pip3 သွင်းဖို့အတွက်
$sudo apt-get install python3 python3-pip
(ပုံ15)
# - Install GNS3 Python dependencies
$ sudo apt‐get install python3‐setuptools python3‐pyqt4 python3‐ws4py python3‐netifaces (ပုံ16)
/////github ကနေ clone လုပ်ဖို့ git မရှိသေးရင် $sudo apt-get install git
# Install Dynmips dependencies
$ sudo apt-get install cmake libelf‐dev uuid‐dev libpcap‐dev 
and
# - Build and Install Dynamips
$ git clone git://github.com/GNS3/dynamips.git (ပုံ17)
$ cd dynamips
$ mkdir build
$ cd build
$ cmake .. (ပုံ၁၈)
$ make (ပုံ၁၉)
$ sudo make install (ပုံ၂၀)
$ sudo setcap cap_net_admin,cap_net_raw=ep /usr/local/bin/dynamips
$ cd ../.. (ပုံ၂၁)
# - Install IOU prerequisites
$ sudo apt-get install bison flex git (ပုံ၂၂)
$ git clone http://github.com/ndevilla/iniparser.git (ပုံ၂၃)
$ cd iniparser 
$ make (ပုံ၂၄)
$ sudo cp libiniparser.* /usr/lib/
$ sudo cp src/iniparser.h /usr/local/include
$ sudo cp src/dictionary.h /usr/local/include
$ cd .. (ပုံ၂၅)
# - Install GNS3 IOUYAP app
$ git clone https://github.com/GNS3/iouyap.git
$ cd iouyap
$ make (ပုံ၂၆)
$ sudo make install
$ sudo cp iouyap /usr/local/bin/
$ cd ..
(ံပုံ၂၇)
now We can install GNS3 ;-)
$sudo pip3 install gns3-gui လို့ ရိုက်ပြီးသွင်လိုက်မယ်ဆိုရင် latest version( now latest version is 2.0.3) ကိုသွင်းသွားမှ ဖြစ်ပါတယ် (ပုံ၂၈)
$sudo pip3 install gns3-server==2.0.3 ဆိုပြီးသွင်းမယ်ဆိုရင် version 2.0.3 ကို သွင်းမှာဖြစ်ပါတယ်.. gns3-gui နဲ့ gns3-server သည် same version ဖြစ်ရပါ့မယ်.. ( ပုံ၂၉)
ကဲ ခု Terminal ကနေ gns3 လို့ run လိုက်မယ်ဆိုရင််ဖြင့် ရဦးမှာ မဟုတ်သေးပါဘူး... error လေးနဲနဲ ကျန်ပါသေးတယ်.. ကဲ tshoot လုပ်ကျပါစို.. ;-)
PyQt5 ဆိုတဲ့ Module မရှိဘူးလို့ ပြောနေပါတယ်..
sudo apt-get install python-pyqt5
or
sudo apt-get install qt5-default pyqt5-dev pyqt5-dev-tools
or
sudo apt-get install python3-pyqt5
or
sudo apt-get install pyqt5
sudo pip3 install pyqt5
ဆိုပြီး PyQt5 module ကိုသွင်းနိုင်ပါတယ်.. command တွေ ကွဲနေရတာကတော့.. Linux distribution မတူရင် ထည့်ပုံထည့်နည်းကွဲနိုင်လို့ပါ...
(ပုံ၃၀)
gns3 လို့ run မယ်ဆို ရဦးမှာမဟုတ်ပါဘူး.. PyQt5.QtSvg ဆိုတဲ့ module လေးလဲ မရှိသေးပါဘူးတဲ့.. အဲ့တော့ ထည့်ပေးကျတာပေါ့ဗျာ့..
$sudo apt-get install PyQt5.QtSvg ဆိုပြီသွင်းပေးလိုက်ပါ..
(ပုံ၃၃)
ကဲ $gns3 ဆိုပြီ run ကြည့်ကျပါစို.. ခုတာ့ okay သွားပါပြီး.. (ပုံ၃၄)
cisco ios ထည့်ပြီး idea pc ရွေးပေးလိုက််ပါ.. (ပုံ35)
errorလေးတွေနဲနဲ ရှိပါလိမ့်မယ်.. ubridge ကို /usr/local/bin မှာ ရှာမတွေ့သေးလို့ပါ..
$git clone https://github.com/GNS3/ubridge.git (ပုံ 36)
$make (ပုံ37)
$sudo make install (ပုံ38)
ခုဆိုရင်တော့ Cisco အတွက်တော့ လုံးဝ ကို အဆင််ပြေပြေ run လိုရသွားပါပြီ.. test အနေနဲ့ ..
R1 နဲ့ R2 ကို ping ပြတာပါ... (ပုံ၃၉) .. Mikrotik ကတော့ နဲနဲ ပြသနာရှိသေးတယ်ဗျာ့.. နောက်ကျမှ 
ဆက်စမး်တော့မယ်.. see ya!!

Comments