# From source
#git clone https://github.com/cisco-system-traffic-generator/trex-core.git
#cd trex-core/linux_dpdk
#./b configure
#./b build

# From binary
wget  -q --no-check-certificate https://trex-tgn.cisco.com/trex/release/latest -O trex.tgz
tar zxf trex.tgz

sudo mount -o ro,loop /home/ubuntu/MLNX_OFED_LINUX-24.10-3.2.5.0-ubuntu20.04-x86_64.iso /mnt/MLNX/
sudo /mnt/MLNX/mlnxofedinstall --force
sudo /etc/init.d/openibd restart
sudo umount /mnt/MLNX/

tdir=`find . -name "t-rex-64" -printf "%h\n"`
cd $tdir
#sudo ./t-rex-64

wget https://raw.githubusercontent.com/cisco-system-traffic-generator/trex-core/master/scripts/dpdk_setup_ports.py -O dpdk_setup_ports.py; 
chmod +x dpdk_setup_ports.py
