Mac address ([\da-f]{2}:){5}[\da-f]{2}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AAA-auto-starter-for-motionmark |
Thanks to https://www.thegeekdiary.com/how-to-clone-linux-disk-partition-over-network-using-dd/
Clone using telnet
and bzip
has advantages to reduce clone time, but make sure you use a secure network.
Lets assume server-B has ip address 192.168.100.2
Run this command in server B (destination):
# nc -l -p 19000 | bzip2 -d | dd bs=16M of=/dev/sda
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def main(prefix: str, start: int, ip: int, total: int): | |
for t in range(total): | |
with open(f'{prefix}{start+t:04}', 'w') as f: | |
f.write(f'ifconfig-push 10.8.0.{ip+t} 255.255.0.0') | |
f.write('\n') | |
if __name__ == '__main__': | |
import argparse | |
parser = argparse.ArgumentParser() |
The board I am using is Beaglebone Black Enhanced
, kernel: 4.19.94-ti-r57
,
wifi model 0bda:b720
If you are using kernel 5.4 then just use rtl8xxxu
instead of 8723bu
.
$ modinfo 8723bu
filename: /lib/modules/4.19.94-ti-r57/kernel/drivers/net/wireless/8723bu.ko
version: v4.3.6.11_12942.20141204_BTCOEX20140507-4E40
author: Realtek Semiconductor Corp.
For issue like
awk: include/scan.awk: line 21: function asort never defined
We can solve it by
sudo apt-get install gawk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
Language: Cpp | |
# BasedOnStyle: WebKit | |
AccessModifierOffset: -4 | |
AlignAfterOpenBracket: Align | |
AlignConsecutiveAssignments: true | |
AlignConsecutiveDeclarations: true | |
AlignEscapedNewlinesLeft: false | |
AlignOperands: true | |
AlignTrailingComments: true |
NewerOlder