qemunet:install:debian
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| qemunet:install:debian [2018/01/29 16:48] – orel | qemunet:install:debian [2024/03/18 15:06] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 74: | Line 74: | ||
| ==Install your packages== | ==Install your packages== | ||
| - | < | + | < |
| - | apt-get install emacs-nox jed vim nano python-scapy tcpdump tshark | + | # networking |
| - | | + | apt-get install emacs-nox jed vim nano python-scapy tcpdump tshark dnsmasq dsniff xterm apache2 telnetd ftpd openvpn openssl vlan bridge-utils |
| + | # python & scapy | ||
| + | apt-get install python3 python3-pip python python-pip python3-scapy python-scapy ipython ipython3 | ||
| + | pip install --upgrade pip | ||
| + | pip3 install --upgrade pip | ||
| </ | </ | ||
| Line 185: | Line 189: | ||
| [Install] | [Install] | ||
| - | WantedBy=multi-user.target | + | WantedBy=multi-user.target |
| </ | </ | ||
| Once you're done with the files, enable the service: | Once you're done with the files, enable the service: | ||
| + | systemctl daemon-reload | ||
| systemctl enable start.service | systemctl enable start.service | ||
| Line 195: | Line 200: | ||
| systemctl start start.service | systemctl start start.service | ||
| + | | ||
| + | |||
| + | Pour afficher toutes les units : | ||
| + | |||
| + | systemctl list-units | ||
| + | systemctl list-units --all | ||
| + | systemctl list-units --type target --all | ||
| + | |||
| + | |||
| + | Check critical chains... and try to optimize it... | ||
| + | |||
| + | |||
| + | systemd-analyze critical-chain | ||
| + | systemd-analyze blame | ||
| + | |||
| + | |||
| + | For instance, you can change the default target to disable graphical boot... | ||
| + | |||
| + | systemctl get-default | ||
| + | systemctl set-default multi-user.target | ||
| + | systemctl get-default | ||
| + | |||
| == Startup script with rc.local (deprecated) == | == Startup script with rc.local (deprecated) == | ||
| Line 218: | Line 245: | ||
| </ | </ | ||
| + | |||
| + | ==== Resize your Qemu Image ==== | ||
| + | |||
| + | I want to resize my debian image from 2G to 3G... | ||
| + | |||
| + | First: | ||
| + | |||
| + | $ qemu-img resize debian10.img +1G | ||
| + | |||
| + | |||
| + | Then, boot Qemu on the raw image: | ||
| + | |||
| + | $ ./ | ||
| + | |||
| + | Puis en tant que root: | ||
| + | |||
| + | $ cat / | ||
| + | /dev/sda => 3G | ||
| + | /dev/sda1 => 2G | ||
| + | $ fdisk -l | ||
| + | $ cfdisk /dev/sda # delete partition and create a new one of 3G | ||
| + | $ resize2fs /dev/sda1 | ||
| + | $ reboot | ||
qemunet/install/debian.1517244503.txt.gz · Last modified: 2024/03/18 15:05 (external edit)
