Blame
Date:
Sun Jan 29 05:00:28 2023 UTC
Message:
Daily backup
01
2023-01-22
jrmu
version=pmwiki-2.2.130 ordered=1 urlencoded=1
02
2023-01-22
jrmu
agent=Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:92.0) Gecko/20100101 Firefox/92.0
03
2023-01-22
jrmu
author=siva
04
2023-01-22
jrmu
charset=UTF-8
05
2023-01-22
jrmu
csum=Tutorial Created
06
2023-01-22
jrmu
ctime=1634204917
07
2023-01-22
jrmu
host=223.181.212.151
08
2023-01-22
jrmu
name=Vmm.Devuan-Simple
09
2023-01-22
jrmu
rev=1
10
2023-01-22
jrmu
targets=Profiles.Siva
11
2023-01-22
jrmu
text=!!! '+'''Devuan ISO Step-by-Step Installation'''+'%0a%0aIn this tutorial we're gonna see how to install 'Devuan OS' as guest in OpenBSD host server. This tutorial covers the following topics: \\%0a\\%0a1. Downloading and Verifying the Devuan ISO. \\%0a2. Installing Devuan ISO and GRUB. \\%0a3. Modifying GRUB configuration. \\%0a4. Setting up Cronjob for stable internet connectivity. \\%0a5. Setting up Static IP Address. \\%0a%0a----%0a%0a!! 1. Downloading and Verifying the Devuan ISO%0a%0a[@%0a$ ftp https://mirror.leaseweb.com/devuan/devuan_beowulf/installer-iso/devuan_beowulf_3.1.1_amd64_netinstall.iso%0a$ ftp https://mirror.leaseweb.com/devuan/devuan_beowulf/installer-iso/SHA256SUMS%0a$ ftp https://mirror.leaseweb.com/devuan/devuan_beowulf/installer-iso/SHA256SUMS.asc%0a@]%0a\\%0aIf gpg is not already installed:%0a[@%0a$ doas pkg_add gnupg%0a@]%0a\\%0a[@%0a$ gpg --keyserver keyserver.ubuntu.com --recv-keys E93D7167A4F5FA9E9FED497770285BA5CF280BA4%0agpg: key 70285BA5CF280BA4: public key "Ralph Ronnquist (rrq) %3cralph.ronnquist@gmail.com>" imported%0agpg: Total number processed: 1%0agpg: imported: 1%0a$ gpg --verify SHA256SUMS.asc SHA256SUMS%0agpg: Signature made Fri Mar 26 17:50:56 2021 CDT%0agpg: using RSA key E93D7167A4F5FA9E9FED497770285BA5CF280BA4%0agpg: Good signature from "Ralph Ronnquist (rrq) %3cralph.ronnquist@gmail.com>" [unknown]%0agpg: WARNING: This key is not certified with a trusted signature!%0agpg: There is no indication that the signature belongs to the owner.%0aPrimary key fingerprint: E93D 7167 A4F5 FA9E 9FED 4977 7028 5BA5 CF28 0BA4%0a$ sha256 devuan_beowulf_3.1.1_amd64_netinstall.iso%0aSHA256 (devuan_beowulf_3.1.1_amd64_netinstall.iso) = 1723cbbeb1aee26a54e1370b688e7dc03921402348d2a60086c58c18cd9cf24b%0a$ grep devuan_beowulf_3.1.1_amd64_netinstall.iso SHA256SUMS%0a1723cbbeb1aee26a54e1370b688e7dc03921402348d2a60086c58c18cd9cf24b devuan_beowulf_3.1.1_amd64_netinstall.iso%0a@]%0a\\%0aThe two checksums must match perfectly or else you should stop installation. \\%0a%0a----%0a%0a%0a!! 2. Installing the Devuan ISO%0a%0aBefore we dive into installation, make sure that you updated the cdrom image in VMM. \\%0a%0a!! VMM%0a%0aIn /etc/vm.conf, we update the cdrom image: \\%0a(Make sure the path is correct)%0a%0a[@%0avm "username" {%0a owner username%0a memory 1024M%0a cdrom "/home/iso/devuan-beowulf-3.1.1-vmm.iso"%0a disk /home/username/username.qcow2%0a interface { %0a locked lladdr aa:bb:cc:dd:ee:ff%0a switch "switch0"%0a }%0a}%0a@]%0a%0aNow, we're gonna install the ISO, \\%0a\\%0a[@Run the following commands,%0a$ doas vmctl reload%0a$ doas vmctl stop "username"%0a$ doas vmctl start -c "username"%0a@]%0athe reload command reloads the vm.conf and starts the machine, going into console after that might be okay for other OS distributions, but in Devuan it will stuck at select video size. so after reloading, stop and start into console mode directly.%0a\\%0aNote: the "username" mentioned above is the vm "username" in /etc/vm.conf for the machine. \\%0a'''Warning:''' After the "doas vmctl start -c "username"" command, '''DO NOT''' press Enter key more than once. ( If you do, then you have to restart VPS again to get the installation screen as the image below). \\%0aAttach:Devuan-1.jpeg%0a\\%0aPress '''TAB''' and edit menu entry add "console=ttyS0,115200n8" (without quotes) as shown in the picture %0abelow and press Enter \\%0aAttach:Devuan-2.jpeg%0a\\%0aThe installer will open, it might be bit glitchy while rendering but give it a second it'll show the screen as follows: \\%0aNote: the installer window won't be shown fullscreen (unless your Monitor resolution is small), the images shown below are cropped. \\%0aAttach:Devuan-3.jpeg%0a\\%0aSelect language and press Enter \\%0a\\%0aand the next step, select keyboard configuration (see pic below)%0aAttach:Devuan-4.jpeg%0a\\%0aAfter that the installer configures network with DHCP "'''Do Not''' Press Enter" as it cancels (see pic below) \\%0aAttach:Devuan-5.jpeg%0aand then enter "hostname" "domain name" and "root password" (see pics below for reference) \\%0aAttach:Devuan-6.jpeg \\%0aAttach:Devuan-7.jpeg \\%0aAttach:Devuan-8.jpeg \\%0a\\%0anext is user setup, you can add a user and password. (when setting up passwords, it asks for confirmation password where you have to enter same password again. The pic below only shows the username screen, enter your desired username and followed by password).\\%0aAttach:Devuan-9.jpeg \\%0a\\%0aonce done, you'll be prompted to configure the clock, choose the timezone from the list and continue \\%0aAttach:Devuan-10.jpeg%0a\\%0aThe next step is disk partitioning \\%0aAttach:Devuan-11.jpeg \\%0aI used "Guided - use entire disk" option for partitioning method.\\%0a\\%0aand select disk for partitioning, we have only option "Virtual disk 1 (vda), press Enter%0a\\%0aAttach:Devuan-12.jpeg \\%0a\\%0aafter that, select partitioning scheme (see pic below) \\%0aAttach:Devuan-13.jpeg \\%0a\\%0aI choose seperate /home,/var and /tmp partitions, you can choose as per your use. \\%0a\\%0aIt displays the disk partitions, select "Finish partitioning and write changes to the disk. \\%0aAttach:Devuan-14.jpeg \\%0a\\%0aagain, it asks for confirmation "write changes to the disk" select "yes" and press enter. \\%0aAttach:Devuan-15.jpeg \\%0a\\%0await until it installs the base system. \\%0aAttach:Devuan-16.jpeg \\%0a\\%0anow, the configuration package manager scans the 'cd or dvd' and shows our installation image, and asks you whether to scan another CD or DVD, select "NO" and press enter.%0aAttach:Devuan-17.jpeg \\%0a\\%0athen select the Devuan archive mirror from the list (see the pic), select and press enter \\%0aAttach:Devuan-18.jpeg \\%0a\\%0ayou can setup proxy if you have any, in our case we don't use, so select continue and press enter. \\%0aAttach:Devuan-19.jpeg \\%0a\\%0aafter that, you have to wait until the two process finish (see the following pics) \\%0aAttach:Devuan-20.jpeg \\%0a\\%0a\\%0aAttach:Devuan-21.jpeg \\%0a\\%0a\\%0athe next step it asks for "Participate in pakcage usage survey" , I choose 'NO' \\%0aAttach:Devuan-22.jpeg \\%0a\\%0aand the you have to select Desktop Environments, as we only have serial console support, just scroll the menu and choose "SSH Server and Standard system utilities.\\%0a'''Note:''' By default "Standard system utilities is marked, you only have to mark "SSH Server" and select "Continue" and press enter. \\%0a\\%0aAttach:Devuan-23.jpeg \\%0a\\%0aThe next step is '''important''' make sure you read and understand the information shown (see pic below)\\%0aAttach:Devuan-24.jpeg \\%0a\\%0aI selected here the original "sysvinit" , you can choose as per your needs. But, if you choose other methods, the commands we use later in this tutorial might not work as yours using a different "init", still you can follow this tutorial, just replace the commands as per your system needs.\\%0a\\%0a\\%0aAttach:Devuan-25.jpeg%0a\\%0a\\%0aNext step is GRUB Installation, Select "Yes" and press enter for "Install the GRUB Boot loader to master boot record" and select device "/dev/vda" for bootloader installation (see the following pics) \\%0a\\%0aAttach:Devuan-26.jpeg \\%0a\\%0aAttach:Devuan-27.jpeg \\%0a\\%0aand the installation complete dialogue is shown, select "continue" and press enter, the system will reboot. \\%0ayou might see some glitches on screen \\%0aAttach:Devuan-28.jpeg \\%0a\\%0a\\%0aAttach:Devuan-29.jpeg \\%0a\\%0aand the system starts, you can see the bottom of the screen "error: terminal 'serial' isn't found..' just ignore it as of now and login with the user name and password you provided earlier. it'll launch shell in the /home directory of the user. \\%0aAttach:Devuan-30.jpeg \\%0a%0a----%0a%0a!! 3. Modifying GRUB Configuration%0a%0aYou need to have superuser privileges to do the following, since we don't installed sudo yet, we can't use it so use "su" and enter your "root" password which you set earlier while installation. \\%0a%0a[@%0a$ su%0a$ password:%0a#%0a# nano /etc/default/grub%0a@]%0a%0aIt'll launch nano text editor with the grub configuration open. \\%0a\\%0aGo to the file end and '''comment''' the two options "GRUB_TERMINAL=SERIAL" and "GRUB_SERIAL_COMMAND=serial --unit=0..." lines, it should look like the picture below. \\%0aAttach:Devuan-31.jpeg \\%0a\\%0aScroll up on the same file, and '''uncomment''' the line "GRUB_TERMINAL=console" (If you don't find the line, just add it manually, without the quotes). \\%0a%0aAttach:Devuan-32.jpeg \\%0a%0aPress "Ctrl + X" , it'll ask "Save Modified Buffer", Make sure you enter "Y" and Press Enter. (Note: '''Do Not''' change filename) \\%0a%0aBefore you update grub, we need to make few changes, %0a[@%0a$ export PATH=/usr/sbin/:$PATH%0a@]%0aNote: you must type the "$" after the ":" \\%0a\\%0a%0aand then open ".bashrc", \\%0a[@%0a$ nano ~/.bashrc%0a@]%0a%0aand add "export PATH=/usr/sbin/:$PATH" (without quotes) at the end of the file and save it.%0anow, run update-grub as root user. \\%0a%0a[@%0a# update-grub%0a@]%0a%0aif done correctly, you'll get the following texts on screen \\%0a%0a[@%0aGenerating grub configuration file ...%0aFound linux image: /boot/vmlinuz-4.19.0-18-amd64%0aFound initrd image: /boot/initrd.img-4.19.0-18-amd64%0aFound linux image: /boot/vmlinuz-4.19.0-14-amd64%0aFound initrd image: /boot/initrd.img-4.19.0-14-amd64%0adone%0a@]%0a%0aThat's it GRUB configuration done, but don't restart yet, we still need to do some tasks. \\%0a%0a----%0a%0a!! 4. Setting up Cronjob for stable internet connectivity. %0a%0aYou need superuser privileges for this, use su and enter root password. \\%0a%0a[@%0a# crontab -e%0a@]%0a%0athe shell now asks you to select an editor to use for crontab editing, choose whatever is comfortable for you%0a[@%0aSelect an editor. To change later, run 'select-editor'.%0a 1. /bin/nano %3c---- easiest%0a 2. /usr/bin/vim.tiny%0a@]%0a%0aonce the crontab opened, type the following very carefully,%0a[@%0a@reboot /usr/bin/tmux new -d 'while true; do /bin/ping -i5 38.87.162.1; done' \;%0a@]%0a%0aif you choose nano, "Ctrl + X" and "Y" to save the crontab file. \\%0a%0aif you choose vim.tiny, make sure you're in command mode and press ":wq" to write and quit the crontab file. \\%0a%0anext, install tmux package, \\%0a%0a[@%0a# apt-get install tmux%0a@]%0a%0aafter installation complete, run the following%0a%0a[@%0a# /usr/bin/tmux new -d 'while true; do /bin/ping -i5 38.87.162.1; done' \;%0a@]%0a%0aType carefully on shell, there might be a chance where your terminal 'columns' ends and the typing contents won't show in next line, instead the cursor is shown previous line or same line beginning, just trust your fingers and type carefully and press enter. \\%0a\\%0aCheck the tmux window if it is pings correct,%0a%0a[@%0a# tmux attach%0a@]%0a%0aif ping works fine, press "C-B + D" to detach (C-B = Ctrl+B) \\%0aif not, kill the process and repeat the same method above to start a new detached session with ping. \\%0a%0a'''Note:''' The '''IP Address''' shown here is the gateway address of your router, if you are not using "lecturify" host, you should change the IP Address as per your router. %0a%0a----%0a%0a!! 5. Setting up Static IP Address.%0a%0aStatic IP address is important if you use ssh login, and since we don't want to login via console every time, you '''must''' have static IP configured. \\%0a%0aBy default, upon installation, the installer choose DHCP connection and configured it. \\%0aNow, you have to find the interface and edit it to be static.\\%0a%0a[@%0a$ ip link%0a@]%0a%0ait shows all the interfaces, you can see which interface showing "state UP", \\%0a[@%0a~$ ip link%0a1: lo: %3cLOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000%0a link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00%0a2: eth0: %3cBROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast '''state UP''' mode DEFAULT group default qlen 1000 link/ether f2:b2:b3:da:eb:07 brd ff:ff:ff:ff:ff:ff%0a@]%0a%0ain our case it was '''"eth0"'''%0a\\%0anow we need to edit the interface file, \\%0a%0ayou need superuser privileges for the editing it, as root user \\%0a%0aopen the file "/etc/network/interfaces" using your favorite text editor ,you can see the following line, \\%0a%0a'''"iface eth0 inet dhcp"''' \\%0a%0achange it to, "'''iface eth0 inet static'''" (without quotes) and add the following lines with appropriate values \\%0a%0a[@%0aiface eth0 inet static%0aaddress xxx.xxx.xxx.xxx%0anetmask 255.255.255.0%0agateway 38.87.162.1%0adns-nameservers 8.8.8.8%0aiface eth0 inet6 static%0aaddress xxxx:xxxx:x:xx::%0anetmask 48%0agateway xxxx:xxxx:x:x::%0a@]%0a\\%0aaddress should be your IP address for the machine, add netmask as it is, gateway IP should be your router IP (if you using lecturify host machine, the above mentioned IP is correct), add dns nameservers as it it is. Now that's it if you only have IPv4 address, if you want IPv6 configured, add the lines from 'iface eth0 inet6 static' and replace the values for address and gateway as per your IPv6 address. \\%0a%0aSave and Exit. \\%0a%0aNow, we have to restart network to make the changes take effect, run the following command \\%0a%0a[@%0a# service networking restart%0a@]%0a%0a'''Note:''' The above command only works, if you've choose the init system as '''sysvinit''' , if you've choose others, use appropriate commands as per the init system. \\%0a%0athat's it, you can reboot the system now, also use with ssh too. \\%0a\\%0aNote: Do install "sudo" package and setup sudoers file as per your requirement.%0a%0a:-)%0a----%0a[[~siva]] October 14, 2021, at 09:48 AM%0a
12
2023-01-22
jrmu
time=1634204917
13
2023-01-22
jrmu
author:1634204917=siva
14
2023-01-22
jrmu
csum:1634204917=Tutorial Created
15
2023-01-22
jrmu
diff:1634204917:1634204917:=1,351d0%0a%3c !!! '+'''Devuan ISO Step-by-Step Installation'''+'%0a%3c %0a%3c In this tutorial we're gonna see how to install 'Devuan OS' as guest in OpenBSD host server. This tutorial covers the following topics: \\%0a%3c \\%0a%3c 1. Downloading and Verifying the Devuan ISO. \\%0a%3c 2. Installing Devuan ISO and GRUB. \\%0a%3c 3. Modifying GRUB configuration. \\%0a%3c 4. Setting up Cronjob for stable internet connectivity. \\%0a%3c 5. Setting up Static IP Address. \\%0a%3c %0a%3c ----%0a%3c %0a%3c !! 1. Downloading and Verifying the Devuan ISO%0a%3c %0a%3c [@%0a%3c $ ftp https://mirror.leaseweb.com/devuan/devuan_beowulf/installer-iso/devuan_beowulf_3.1.1_amd64_netinstall.iso%0a%3c $ ftp https://mirror.leaseweb.com/devuan/devuan_beowulf/installer-iso/SHA256SUMS%0a%3c $ ftp https://mirror.leaseweb.com/devuan/devuan_beowulf/installer-iso/SHA256SUMS.asc%0a%3c @]%0a%3c \\%0a%3c If gpg is not already installed:%0a%3c [@%0a%3c $ doas pkg_add gnupg%0a%3c @]%0a%3c \\%0a%3c [@%0a%3c $ gpg --keyserver keyserver.ubuntu.com --recv-keys E93D7167A4F5FA9E9FED497770285BA5CF280BA4%0a%3c gpg: key 70285BA5CF280BA4: public key "Ralph Ronnquist (rrq) %3cralph.ronnquist@gmail.com>" imported%0a%3c gpg: Total number processed: 1%0a%3c gpg: imported: 1%0a%3c $ gpg --verify SHA256SUMS.asc SHA256SUMS%0a%3c gpg: Signature made Fri Mar 26 17:50:56 2021 CDT%0a%3c gpg: using RSA key E93D7167A4F5FA9E9FED497770285BA5CF280BA4%0a%3c gpg: Good signature from "Ralph Ronnquist (rrq) %3cralph.ronnquist@gmail.com>" [unknown]%0a%3c gpg: WARNING: This key is not certified with a trusted signature!%0a%3c gpg: There is no indication that the signature belongs to the owner.%0a%3c Primary key fingerprint: E93D 7167 A4F5 FA9E 9FED 4977 7028 5BA5 CF28 0BA4%0a%3c $ sha256 devuan_beowulf_3.1.1_amd64_netinstall.iso%0a%3c SHA256 (devuan_beowulf_3.1.1_amd64_netinstall.iso) = 1723cbbeb1aee26a54e1370b688e7dc03921402348d2a60086c58c18cd9cf24b%0a%3c $ grep devuan_beowulf_3.1.1_amd64_netinstall.iso SHA256SUMS%0a%3c 1723cbbeb1aee26a54e1370b688e7dc03921402348d2a60086c58c18cd9cf24b devuan_beowulf_3.1.1_amd64_netinstall.iso%0a%3c @]%0a%3c \\%0a%3c The two checksums must match perfectly or else you should stop installation. \\%0a%3c %0a%3c ----%0a%3c %0a%3c %0a%3c !! 2. Installing the Devuan ISO%0a%3c %0a%3c Before we dive into installation, make sure that you updated the cdrom image in VMM. \\%0a%3c %0a%3c !! VMM%0a%3c %0a%3c In /etc/vm.conf, we update the cdrom image: \\%0a%3c (Make sure the path is correct)%0a%3c %0a%3c [@%0a%3c vm "username" {%0a%3c owner username%0a%3c memory 1024M%0a%3c cdrom "/home/iso/devuan-beowulf-3.1.1-vmm.iso"%0a%3c disk /home/username/username.qcow2%0a%3c interface { %0a%3c locked lladdr aa:bb:cc:dd:ee:ff%0a%3c switch "switch0"%0a%3c }%0a%3c }%0a%3c @]%0a%3c %0a%3c Now, we're gonna install the ISO, \\%0a%3c \\%0a%3c [@Run the following commands,%0a%3c $ doas vmctl reload%0a%3c $ doas vmctl stop "username"%0a%3c $ doas vmctl start -c "username"%0a%3c @]%0a%3c the reload command reloads the vm.conf and starts the machine, going into console after that might be okay for other OS distributions, but in Devuan it will stuck at select video size. so after reloading, stop and start into console mode directly.%0a%3c \\%0a%3c Note: the "username" mentioned above is the vm "username" in /etc/vm.conf for the machine. \\%0a%3c '''Warning:''' After the "doas vmctl start -c "username"" command, '''DO NOT''' press Enter key more than once. ( If you do, then you have to restart VPS again to get the installation screen as the image below). \\%0a%3c Attach:Devuan-1.jpeg%0a%3c \\%0a%3c Press '''TAB''' and edit menu entry add "console=ttyS0,115200n8" (without quotes) as shown in the picture %0a%3c below and press Enter \\%0a%3c Attach:Devuan-2.jpeg%0a%3c \\%0a%3c The installer will open, it might be bit glitchy while rendering but give it a second it'll show the screen as follows: \\%0a%3c Note: the installer window won't be shown fullscreen (unless your Monitor resolution is small), the images shown below are cropped. \\%0a%3c Attach:Devuan-3.jpeg%0a%3c \\%0a%3c Select language and press Enter \\%0a%3c \\%0a%3c and the next step, select keyboard configuration (see pic below)%0a%3c Attach:Devuan-4.jpeg%0a%3c \\%0a%3c After that the installer configures network with DHCP "'''Do Not''' Press Enter" as it cancels (see pic below) \\%0a%3c Attach:Devuan-5.jpeg%0a%3c and then enter "hostname" "domain name" and "root password" (see pics below for reference) \\%0a%3c Attach:Devuan-6.jpeg \\%0a%3c Attach:Devuan-7.jpeg \\%0a%3c Attach:Devuan-8.jpeg \\%0a%3c \\%0a%3c next is user setup, you can add a user and password. (when setting up passwords, it asks for confirmation password where you have to enter same password again. The pic below only shows the username screen, enter your desired username and followed by password).\\%0a%3c Attach:Devuan-9.jpeg \\%0a%3c \\%0a%3c once done, you'll be prompted to configure the clock, choose the timezone from the list and continue \\%0a%3c Attach:Devuan-10.jpeg%0a%3c \\%0a%3c The next step is disk partitioning \\%0a%3c Attach:Devuan-11.jpeg \\%0a%3c I used "Guided - use entire disk" option for partitioning method.\\%0a%3c \\%0a%3c and select disk for partitioning, we have only option "Virtual disk 1 (vda), press Enter%0a%3c \\%0a%3c Attach:Devuan-12.jpeg \\%0a%3c \\%0a%3c after that, select partitioning scheme (see pic below) \\%0a%3c Attach:Devuan-13.jpeg \\%0a%3c \\%0a%3c I choose seperate /home,/var and /tmp partitions, you can choose as per your use. \\%0a%3c \\%0a%3c It displays the disk partitions, select "Finish partitioning and write changes to the disk. \\%0a%3c Attach:Devuan-14.jpeg \\%0a%3c \\%0a%3c again, it asks for confirmation "write changes to the disk" select "yes" and press enter. \\%0a%3c Attach:Devuan-15.jpeg \\%0a%3c \\%0a%3c wait until it installs the base system. \\%0a%3c Attach:Devuan-16.jpeg \\%0a%3c \\%0a%3c now, the configuration package manager scans the 'cd or dvd' and shows our installation image, and asks you whether to scan another CD or DVD, select "NO" and press enter.%0a%3c Attach:Devuan-17.jpeg \\%0a%3c \\%0a%3c then select the Devuan archive mirror from the list (see the pic), select and press enter \\%0a%3c Attach:Devuan-18.jpeg \\%0a%3c \\%0a%3c you can setup proxy if you have any, in our case we don't use, so select continue and press enter. \\%0a%3c Attach:Devuan-19.jpeg \\%0a%3c \\%0a%3c after that, you have to wait until the two process finish (see the following pics) \\%0a%3c Attach:Devuan-20.jpeg \\%0a%3c \\%0a%3c \\%0a%3c Attach:Devuan-21.jpeg \\%0a%3c \\%0a%3c \\%0a%3c the next step it asks for "Participate in pakcage usage survey" , I choose 'NO' \\%0a%3c Attach:Devuan-22.jpeg \\%0a%3c \\%0a%3c and the you have to select Desktop Environments, as we only have serial console support, just scroll the menu and choose "SSH Server and Standard system utilities.\\%0a%3c '''Note:''' By default "Standard system utilities is marked, you only have to mark "SSH Server" and select "Continue" and press enter. \\%0a%3c \\%0a%3c Attach:Devuan-23.jpeg \\%0a%3c \\%0a%3c The next step is '''important''' make sure you read and understand the information shown (see pic below)\\%0a%3c Attach:Devuan-24.jpeg \\%0a%3c \\%0a%3c I selected here the original "sysvinit" , you can choose as per your needs. But, if you choose other methods, the commands we use later in this tutorial might not work as yours using a different "init", still you can follow this tutorial, just replace the commands as per your system needs.\\%0a%3c \\%0a%3c \\%0a%3c Attach:Devuan-25.jpeg%0a%3c \\%0a%3c \\%0a%3c Next step is GRUB Installation, Select "Yes" and press enter for "Install the GRUB Boot loader to master boot record" and select device "/dev/vda" for bootloader installation (see the following pics) \\%0a%3c \\%0a%3c Attach:Devuan-26.jpeg \\%0a%3c \\%0a%3c Attach:Devuan-27.jpeg \\%0a%3c \\%0a%3c and the installation complete dialogue is shown, select "continue" and press enter, the system will reboot. \\%0a%3c you might see some glitches on screen \\%0a%3c Attach:Devuan-28.jpeg \\%0a%3c \\%0a%3c \\%0a%3c Attach:Devuan-29.jpeg \\%0a%3c \\%0a%3c and the system starts, you can see the bottom of the screen "error: terminal 'serial' isn't found..' just ignore it as of now and login with the user name and password you provided earlier. it'll launch shell in the /home directory of the user. \\%0a%3c Attach:Devuan-30.jpeg \\%0a%3c %0a%3c ----%0a%3c %0a%3c !! 3. Modifying GRUB Configuration%0a%3c %0a%3c You need to have superuser privileges to do the following, since we don't installed sudo yet, we can't use it so use "su" and enter your "root" password which you set earlier while installation. \\%0a%3c %0a%3c [@%0a%3c $ su%0a%3c $ password:%0a%3c #%0a%3c # nano /etc/default/grub%0a%3c @]%0a%3c %0a%3c It'll launch nano text editor with the grub configuration open. \\%0a%3c \\%0a%3c Go to the file end and '''comment''' the two options "GRUB_TERMINAL=SERIAL" and "GRUB_SERIAL_COMMAND=serial --unit=0..." lines, it should look like the picture below. \\%0a%3c Attach:Devuan-31.jpeg \\%0a%3c \\%0a%3c Scroll up on the same file, and '''uncomment''' the line "GRUB_TERMINAL=console" (If you don't find the line, just add it manually, without the quotes). \\%0a%3c %0a%3c Attach:Devuan-32.jpeg \\%0a%3c %0a%3c Press "Ctrl + X" , it'll ask "Save Modified Buffer", Make sure you enter "Y" and Press Enter. (Note: '''Do Not''' change filename) \\%0a%3c %0a%3c Before you update grub, we need to make few changes, %0a%3c [@%0a%3c $ export PATH=/usr/sbin/:$PATH%0a%3c @]%0a%3c Note: you must type the "$" after the ":" \\%0a%3c \\%0a%3c %0a%3c and then open ".bashrc", \\%0a%3c [@%0a%3c $ nano ~/.bashrc%0a%3c @]%0a%3c %0a%3c and add "export PATH=/usr/sbin/:$PATH" (without quotes) at the end of the file and save it.%0a%3c now, run update-grub as root user. \\%0a%3c %0a%3c [@%0a%3c # update-grub%0a%3c @]%0a%3c %0a%3c if done correctly, you'll get the following texts on screen \\%0a%3c %0a%3c [@%0a%3c Generating grub configuration file ...%0a%3c Found linux image: /boot/vmlinuz-4.19.0-18-amd64%0a%3c Found initrd image: /boot/initrd.img-4.19.0-18-amd64%0a%3c Found linux image: /boot/vmlinuz-4.19.0-14-amd64%0a%3c Found initrd image: /boot/initrd.img-4.19.0-14-amd64%0a%3c done%0a%3c @]%0a%3c %0a%3c That's it GRUB configuration done, but don't restart yet, we still need to do some tasks. \\%0a%3c %0a%3c ----%0a%3c %0a%3c !! 4. Setting up Cronjob for stable internet connectivity. %0a%3c %0a%3c You need superuser privileges for this, use su and enter root password. \\%0a%3c %0a%3c [@%0a%3c # crontab -e%0a%3c @]%0a%3c %0a%3c the shell now asks you to select an editor to use for crontab editing, choose whatever is comfortable for you%0a%3c [@%0a%3c Select an editor. To change later, run 'select-editor'.%0a%3c 1. /bin/nano %3c---- easiest%0a%3c 2. /usr/bin/vim.tiny%0a%3c @]%0a%3c %0a%3c once the crontab opened, type the following very carefully,%0a%3c [@%0a%3c @reboot /usr/bin/tmux new -d 'while true; do /bin/ping -i5 38.87.162.1; done' \;%0a%3c @]%0a%3c %0a%3c if you choose nano, "Ctrl + X" and "Y" to save the crontab file. \\%0a%3c %0a%3c if you choose vim.tiny, make sure you're in command mode and press ":wq" to write and quit the crontab file. \\%0a%3c %0a%3c next, install tmux package, \\%0a%3c %0a%3c [@%0a%3c # apt-get install tmux%0a%3c @]%0a%3c %0a%3c after installation complete, run the following%0a%3c %0a%3c [@%0a%3c # /usr/bin/tmux new -d 'while true; do /bin/ping -i5 38.87.162.1; done' \;%0a%3c @]%0a%3c %0a%3c Type carefully on shell, there might be a chance where your terminal 'columns' ends and the typing contents won't show in next line, instead the cursor is shown previous line or same line beginning, just trust your fingers and type carefully and press enter. \\%0a%3c \\%0a%3c Check the tmux window if it is pings correct,%0a%3c %0a%3c [@%0a%3c # tmux attach%0a%3c @]%0a%3c %0a%3c if ping works fine, press "C-B + D" to detach (C-B = Ctrl+B) \\%0a%3c if not, kill the process and repeat the same method above to start a new detached session with ping. \\%0a%3c %0a%3c '''Note:''' The '''IP Address''' shown here is the gateway address of your router, if you are not using "lecturify" host, you should change the IP Address as per your router. %0a%3c %0a%3c ----%0a%3c %0a%3c !! 5. Setting up Static IP Address.%0a%3c %0a%3c Static IP address is important if you use ssh login, and since we don't want to login via console every time, you '''must''' have static IP configured. \\%0a%3c %0a%3c By default, upon installation, the installer choose DHCP connection and configured it. \\%0a%3c Now, you have to find the interface and edit it to be static.\\%0a%3c %0a%3c [@%0a%3c $ ip link%0a%3c @]%0a%3c %0a%3c it shows all the interfaces, you can see which interface showing "state UP", \\%0a%3c [@%0a%3c ~$ ip link%0a%3c 1: lo: %3cLOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000%0a%3c link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00%0a%3c 2: eth0: %3cBROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast '''state UP''' mode DEFAULT group default qlen 1000 link/ether f2:b2:b3:da:eb:07 brd ff:ff:ff:ff:ff:ff%0a%3c @]%0a%3c %0a%3c in our case it was '''"eth0"'''%0a%3c \\%0a%3c now we need to edit the interface file, \\%0a%3c %0a%3c you need superuser privileges for the editing it, as root user \\%0a%3c %0a%3c open the file "/etc/network/interfaces" using your favorite text editor ,you can see the following line, \\%0a%3c %0a%3c '''"iface eth0 inet dhcp"''' \\%0a%3c %0a%3c change it to, "'''iface eth0 inet static'''" (without quotes) and add the following lines with appropriate values \\%0a%3c %0a%3c [@%0a%3c iface eth0 inet static%0a%3c address xxx.xxx.xxx.xxx%0a%3c netmask 255.255.255.0%0a%3c gateway 38.87.162.1%0a%3c dns-nameservers 8.8.8.8%0a%3c iface eth0 inet6 static%0a%3c address xxxx:xxxx:x:xx::%0a%3c netmask 48%0a%3c gateway xxxx:xxxx:x:x::%0a%3c @]%0a%3c \\%0a%3c address should be your IP address for the machine, add netmask as it is, gateway IP should be your router IP (if you using lecturify host machine, the above mentioned IP is correct), add dns nameservers as it it is. Now that's it if you only have IPv4 address, if you want IPv6 configured, add the lines from 'iface eth0 inet6 static' and replace the values for address and gateway as per your IPv6 address. \\%0a%3c %0a%3c Save and Exit. \\%0a%3c %0a%3c Now, we have to restart network to make the changes take effect, run the following command \\%0a%3c %0a%3c [@%0a%3c # service networking restart%0a%3c @]%0a%3c %0a%3c '''Note:''' The above command only works, if you've choose the init system as '''sysvinit''' , if you've choose others, use appropriate commands as per the init system. \\%0a%3c %0a%3c that's it, you can reboot the system now, also use with ssh too. \\%0a%3c \\%0a%3c Note: Do install "sudo" package and setup sudoers file as per your requirement.%0a%3c %0a%3c :-)%0a%3c ----%0a%3c [[~siva]] October 14, 2021, at 09:48 AM%0a
16
2023-01-22
jrmu
host:1634204917=223.181.212.151
IRCNow