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
#!/bin/bash | |
interactive= | |
filename=~/sysinfo_page.html | |
while [ "$1" != "" ]; do | |
case $1 in | |
-f | --file ) shift | |
filename="$1" | |
;; |
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
qemu-img create -f raw rootfs.raw 100G | |
mkfs.ext4 rootfs.raw | |
mkdir rootfs | |
sudo mount rootfs.raw ./rootfs | |
sudo debootstrap \ | |
--include apt,apt-utils \ | |
--include isc-dhcp-client,iproute2,wget,curl \ | |
--include git,vim,build-essential,gcc-multilib,g++-multilib \ | |
focal ./rootfs http://archive.ubuntu.com/ubuntu/ |
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
# ~/.login | |
# ~/.bash_login | |
cd `cat ~/.last_wd` |