Main

Fix Corrupted VPS In Oracle Cloud / Install Operating Systems / Reset Your VPS

Fix Corrupted VPS In Oracle Cloud / Install Operating Systems / Reset Your VPS ------------------------------------------------------------------------ Download Text File - https://www.google.com/url?sa=t&source=web&rct=j&url=https://allinoneytblogger.blogspot.com/2024/03/fixing-corrupted-vps-in-oracle-cloud.html ------------------------------------------------------------------------ Telegram Group - https://t.me/+3uqD7yCFngMxODI1 Discord Server - https://discord.gg/jJfBh8cEQG ------------------------------------------------------------------------ Chapters : 00:00 Educational Purposes Only 00:05 Introduction 04:19 Intro 04:24 How Corrupted VPS Looks Like 05:00 If Your VPS Is Not Corrupted 07:29 Creating Console Connection In Instance In Oracle Cloud 08:27 Accessing UEFI BIOS Menu Using Console Connection In Oracle Cloud 09:22 Setting-up Internet Connection In UEFI BIOS Menu In Oracle Cloud 10:54 Accessing UEFI Interactive Shell In Oracle Cloud Console Connection 12:46 Setting-up TFTP Server In Windows 18:26 Setting-up TFTP Server In Linux 22:41 Setting-up Security Rules In Cloud Providers For Opening Port 23:51 Doing Port Forwarding In Router For Opening Port 26:34 Sending UEFI iPXE Bootloader To UEFI Interactive Shell In Oracle Cloud 31:13 Running UEFI iPXE Bootloader In Oracle Cloud 32:01 Installing Ubuntu Linux Using UEFI iPXE Bootloader In Oracle Cloud 40:03 Adding SSH Public Key In VPS In Oracle Cloud 43:23 Disabling SSH Password Authentication In VPS In Oracle Cloud 44:59 Installing Oracle Cloud Agent In VPS In Oracle Cloud 46:21 Outro

All In One

1 day ago

Welcome to All In One YouTube channel. Today we are going to talk about how to fix corrupted VPS in Oracle Cloud. You can also use this method to install operating systems and reset your VPS. Everyone can use this method because there are no requirements for using this method. You can install these operating systems. Also there are different versions of each operating system. Now I explain some key features that we use in video. First one is TFTP protocol. Trivial File Transfer Protocol (TFTP) i
s a simple protocol used for transferring files over a network. It operates on UDP and is commonly used for tasks like network booting and firmware updates in devices. Next one is Netboot.xyz. Netboot.xyz is a project that provides a collection of bootable operating system installers and utilities accessible over a network. It allows you to boot various operating systems or tools directly from the internet without the need for physical media. This can be useful for tasks like system recovery, OS
installations or testing different operating systems. Let's see what things we are going to do in this video. 01.How Corrupted VPS Looks Like. 02.If Your VPS Is Not Corrupted. 03.Creating Console Connection In Instance In Oracle Cloud. 04.Accessing UEFI BIOS Menu Using Console Connection In Oracle Cloud. 05.Setting-up Internet Connection In UEFI BIOS Menu. 06.Accessing UEFI Interactive Shell In Oracle Cloud Console Connection. 07.Setting-up TFTP Server In Windows. 08.Setting-up TFTP Server In L
inux. 09.Setting-up Security Rules In Cloud Providers For Opening Port. 10.Doing Port Forwarding In Router For Opening Port. 11.Sending UEFI iPXE Bootloader To UEFI Interactive Shell. 12.Running UEFI iPXE Bootloader. 13.Installing Ubuntu Linux Using UEFI iPXE Bootloader. 14.Adding SSH Public Key In VPS. 15.Disabling SSH Password Authentication In VPS. 16.Installing Oracle Cloud Agent In VPS. First you need to download text file. This text file contains things need to use in this video. You can f
ind download link of text file in description. After you click on the download text file of script link, you can see page like this. Click on link in the page. Now scroll down and you can see "Download Text File" topic. As say in here, click on "Subscribe YouTube Channel" button and subscribe YouTube channel and come back here to download text file. So, let's do it. Click on "Subscribe YouTube Channel" button. Now you are going to my YouTube channel. Now subscribe my YouTube channel, If you didn
't already subscribe it. You can't download text file, if you don't subscribe my YouTube channel. I don't do anything because I already subscribed. So, let's go back to that page. As say here, we can see "Text File" button after some time because I subscribed YouTube channel. But if you didn't subscribe my YouTube channel, you can't see "Text File" button. So, let's wait some time. Now you can see "Text File" button. Click on it. Now you are going to MediaFire website. Click on download button.
Text file is being downloaded now. So, let's start our video. How Corrupted VPS Looks Like. This is Ampere VPS. You can see it now. This is full functioning VPS. Now let's see how corrupted VPS looks like. This command wipes out full disk. So, don't use this command. Now let's see what things are available in "/" directory. You can see "ls" command isn't worked. This is how corrupted VPS looks like. Now we are going to fix this VPS. If Your VPS Is Not Corrupted. If your VPS is not corrupted, you
can run commands normally. So, your purpose of watching this video is resetting VPS, reinstalling OS in VPS or installing another OS. If your VPS is not corrupted, you can do this work easier. Our main goal is to put UEFI iPXE Bootloader Into UEFI Interactive Shell. If your VPS is not corrupted, you can do this using one command. But if your VPS is corrupted, you need to create TFTP server and download UEFI iPXE Bootloader Into UEFI Interactive Shell using TFTP server. So, let's see how to put
UEFI iPXE Bootloader Into UEFI Interactive Shell using one command. Go to "Fixing_Corrupted_VPS.txt" file. Copy "Root Access" command. Go back to VPS. Paste copied command and press Enter. If you have added password, type it and press Enter. Now we are going to get download link of UEFI iPXE bootloader. Go to "Fix_Corrupted_VPS.txt" file. Copy "Downloading UEFI iPXE Bootloader" link and go to your web browser. Go to copied link. Scroll down. Right click on "netboot.xyz-arm64.efi" text. Click on
"copy link address" text. Go back to "Fixing_Corrupted_VPS.txt" file. Replace "URL" of "Directly Putting UEFI iPXE Bootloader Into UEFI Interactive Shell" command from copied link. Copy "Directly Putting UEFI iPXE Bootloader Into UEFI Interactive Shell" command. Go back to VPS. Paste copied command and press Enter. If you can see "netboot.xyz-arm64.efi" text, your command is working. If this command is not working, you need to use TFTP server method. So let's go to next step. Creating Console Co
nnection In Instance In Oracle Cloud. This is the "Instance Details" web page of corrupted VPS. You can create Console Connection to this instance from here. Usage of Oracle Cloud Console Connection is remotely troubleshooting malfunctioning Instances. So let's create Console Connection. Scroll down. Click on "Console Connection". The easiest way to access Console Connection is using Oracle Cloud Cloud Shell. Click on "Launch Cloud Shell Connection". If you are doing this work using an Android d
evice, please move to your computer or use a RDP connection just like me. Now Console Connection is ready to use. Next we are going to access UEFI BIOS menu. Accessing UEFI BIOS Menu Using Console Connection In Oracle Cloud. For accessing UEFI BIOS menu, you need reboot the Instance. Scroll up web page. Click on "Reboot" button. Choose "Force Reboot" option. If you will have a mistake in this process or lost Console Connection, when you restart process, always use this option, when rebooting Ins
tance. Now click on "Force Reboot Instance" button. After clicking on it, immediately switch back to the Console Connection window and press Esc repeatedly until a UEFI BIOS menu appears. Next we are going to set up internet access on UEFI BIOS menu. Setting-up Internet Connection On UEFI BIOS Menu. Use arrow keys to select options. Go to "Device Manager" option. Click on down arrow key. Click on Enter. Go to "Network Device List" option. Click down arrow key four times. Click on Enter. Click on
Enter. Go to "IPv4 Network Configuration" option. Click on down arrow key. Click on Enter. Enable "Configured" option. Click on enter enable enable DHCP option click on down arrow key click on enter go to save changes and exit option click on down arrow key click on enter click on escape button click on escape button click on escape button next we are going to access UF interactive shell accessing UF interactive shell in Oracle Cloud console connection ction I use full screen mode in console c
onnection window go to boot manager option click on down arrow key click on enter go to EFI internal shell option click on down arrow key click on down arrow key key click on enter now you are in UAV interactive shell go back to fixing corrupted VPS do text file copy selecting device command go back to UA interactive shell paste copied command and press enter go back to fixing corrupted VPS do text file copy finding file size command and go back to UAV interactive shell paste copied command and
press enter if you directly put UAV ipx bootloader into U interactive shell you can see that boot. XYZ arm64 EFI file here so you can go to running UAV ipx boot loader step but if you can't see NB XYZ arm64 EFI file here you need to use tftp server method to download UAV ipx boot loader here so let's see how to download UAV IX boot loader using tfp connection downloading UAV ipx boot loader to UAV interactive shell using tfdp connection now we need to transfer UAV ipx boot loader to UAV inter in
teractive shell for this we use tfdp protocol UF interactive shell has tfdp client so we need to create tfp server and transfer UF ipx bootloader using it I used a lot of tfp server softwares but none of them worked so I created tfp server using python for this I will show you how to use my tftp server python script to transfer UAV IP access boot loader in Windows and Linux first let's see in Windows Windows now we are going to download UAV IX boot loader to Windows computer open fixing corrupte
d VPS do text file in extracted folder using your text editor copy downloading UAV ipx boot loader link and go to web browser go to copied link scroll down click on netb doxyz arm64 DFI text now UAV ipx boot loader is downloading next let's install python installing python in Windows go to fixing corrupted VPS do text file now you can see python download link copy it go back to your Windows system open your browser paste copied Link in search bar and go to it scroll down you can see latest versi
on of python in download option click on it scroll down again now you can see Windows installer 64-bit version click on it now windows in installing file is being downloaded after downloading open it choose add python.exe to path option this will help you to easily run python anywhere on your Windows system click on install now this takes some time you successfully installed python click on close next we are going to download oitf TP server python script downloading oit tftp server python script
go to fixing corrupted VPS doxt file copy tftp server script link and go to web browser go to copied link click on code button click on download zip now script is downloading a zip file now we need extract it and put script in location where UAV ipx boot loader file is located open File Explorer you can see downloaded zip file in downloads right click on zip file click on extract all click on extract go to extracted folder we need to move AET server.py file move here next we are going to open
port 69 for tftp server opening Port 69 for tfdp server in Windows now we need to open port 69 on your Windows machine reason for it is we need to access dfp server over internet go to search bar type firewall click on Windows Defender Firewall with Advanced security app click on inbound rules click on new rule choose Port option click on next choose UDP option type 69 click on next click on next click on next type any name here click on finish now let's restart your Windows machine open Windows
start menu click on power button click on restart click on restart anyway now let's see how to do this in Linux Linux now we are going to get download link of UF ipx boot loader go to fix corrupted VPS doxt file copy downloading UAV ipx boot loader link and go to your web browser go to copied link scroll down right click on netb doxyz arm64 efit Tex click on copy link address text go back to fixing corrupted VPS do text file remove URL text and downloading UAV ipx boot loader using J command a
nd paste copied link now we need to get administrative privileges in Linux machine copy root access command and go to your Linux machine paste copied command and press enter go back to fixing corrupted VPS doxt file now we need to download UAV ipx boot loader copy downloading UAV ipx boot loader using J command and go back to Linux machine paste copied command and press enter go back to fixing corrupted VPS doxt file now we are going to install python copy installing python command go back to yo
ur Linux machine paste copied command and press enter go back to fixing corrupted VPS doxt file now we are going to download tftp server script copy down down loading script command go back to your Linux machine paste copied command and press enter you can see tfp Server script and UAV ipx bootloader files go back to fixing corrupted VPS doxt file now we need to open port 69 for tfp server ufw and dibles are popular firewall management tools these two commands are used to open port 69 for UDP tr
affic in these tools if you use Yu copy opening Port 69 using Yu command go back to your Linux machine paste copied command and press enter go back to fixing corrupted VPS do text file if you use zip tables copy opening Port 69 using epbl command go back to your Linux machine paste copied command and press enter if you use another firewall management tool you need to open port 69 for UDP traffic using it go back to fixing corrupted VPS do text file now we need to restart your Linux machine copy
rebooting command go back to your Linux machine paste copied command and press enter next we are going to some additional step for opening Port if you use a Windows or Linux machine created using a cloud provider you need to set up security rules in that cloud provider to open port if you use router to access internet on your local windows or Linux machine you need to do port forwarding in router to open port first let's see how to set up security rules in that cloud provider for opening Port se
tting up security rules in Cloud providers for opening Port our main task here is opening port for tfp Server also I can't give steps for cloud providers one by one so I am going to give common steps for for opening Port 69 for UDP traffic these are the steps identify the instance or virtual machine that you want to open port access the Management console or portal of your cloud provider locate the networking or security settings for the instance look for the firewall or Security Group associate
d with the instance find the section for inbound or inass rules add a new rule with the following details protocol UDP Port 69 source 0.0.0.0 to allow access from all IP addresses save the changes now you are allowing access from any IP address to Port 169 using UDP protocol next we are going to do port forwarding in router for opening Port doing port forwarding in router for opening Port our main task here is opening port for tfp Server also I can't give steps for all routers one by one so I am
going to give common steps for port forwarding and Port 69 for UDP traffic these are the steps access your router's configuration Page by typing its IP address into a web browser the default IP address is often printed on the router itself or mentioned in the user manual common IP addresses are 192.168.0.1 or 192.168.1.1 enter your router's username and password to log in if you haven't changed these check the default credentials in the user manual or on the manufacturer's website look for the
port forwarding or virtual server option in your router's configuration settings the location of this option may vary depending on the router's brand and firmware create create a new port forwarding rule by specifying the following service name tftp internal IP address enter the private IP address of your windows or Linux machine follow these steps to find private IP address of Windows machine open search bar type CMD and press enter Now command prompt will be opened go back to fix in corrupted
VPS doxt file copy finding private IP address command go back to your Windows machine paste copied command and press enter now you can see private IP address as ipv4 address follow these steps to find private IP address of Linux machine go back to fixing corrupted VPS doxt file copy finding private IP address command go back to your Linux machine paste copied command and press enter now you can see your private IP address let's see other steps protocol UDP external Port 69 internal Port 69 save
the settings now everything is ready to use let's transfer UAV ipx boot loader to UAV interactive shell sending UAV ipx boot loader to UAV interactive shell now we are going to send UAV ipx boot loader to UAV interactive shell now we need to find public IP address of machine that running tfp server first let's see in Windows Windows open search bar type CMD and press enter you can see command prompt go back to fixing corrupted VPS doxt file copy finding public IP address command go back to your
Windows machine paste copied command and press enter you can see public IP address next let's see in Linux machine Linux go back to fixing corrupted VPS do text file copy finding public IP address command go back to your Linux machine paste copied command and press enter you can see public IP address go back to fixing corrupted VPS doxt file replace public uncore IP and downloading UAV ipx boot loader using tfdp connection command from public IP address of your windows or Linux machine that runn
ing tfp server next we are going to run tfp server first let's see in Windows Windows go to location of UAV IX boot loader and script type CMD and address bar press enter now you can see command prompt go back to fixing corrupted VPS do text file copy starting tftp server command in Windows and go back to your Windows machine paste copied command and press enter now you can see tfdp Server is running next let's see in Linux Linux go back to fixing corrupted VPS do text file copy starting tftp se
rver command in Linux go back to your Linux machine you need to run this command in location of you Wy ipx boot loader and script paste copied command and press enter now let's download UAV ipx boot loader to UAV interactive shell go back to fixing corrupted VPS doxt file if you can't create tfp server I will help you I can give access to you to my tfp server so feel free to ask copy downloading UAV ipx boot loader using tfp connection command go back to UF interactive shell paste copied command
and press enter now you can see UAV ipx boot loader is downloading don't worry about this error follow this step to check you a ipx bootload is fully downloaded go back to fixing corrupted VPS doxt file copy finding file size command and go back to UAV interactive shell paste copied command and press enter you can see size of UAV ipx boot loader now go to your windows or Linux machine now you can see file size these two values are same so UF ipx boot loader is fully downloaded now you can undo
everything you did when setting up tftp server next we are going to run UAV IX boot loader running UAV IX boot loader go back to fixing corrupted VPS do text file copy running UAV ipx boot loader command go back to UF interactive shell paste copied command and press enter now UAV ipx boot loader is running click on down arrow key to select Linux Network installs arm 64 option press enter you can install all of these Linux dist distributions I choose ubun to Linux installing ubun to Linux choose
zuun to option using down arrow key press enter you can install all of these releases I choose zuun to 22.0 for LTS Jammy jellyfish press enter click on down arrow key to choose rescue mode option press enter now it is downloading the M the niit tramps and The Roots files press enter now type exit and press enter it takes some time now we are in the ubun to installer click on down arrow to select continue in basic mode option press enter if you want change layout and variant I use default ones s
o press enter ubun to server is a variant of the Ubuntu operating system specifically designed for Server environments it provides provides a light aweight and efficient platform for running various server applications such as web servers database servers file servers and more ubun to server does not have a graphical user interface GUI by default and it is typically managed through the command line ubun to server minimized is a minimal version of ubun to server that includes only the essential p
ackages required to run a server it is even more lightweight than the standard ubun to server as it does not include any unnecessary packages or services ubun to server minimized is ideal for environments where resource usage needs to be minimized or for users who prefer to install only the necessary components manually storage usage difference of them is about 2GB you can use search for third-party driers option to search for and install thirdparty drivers for various Hardware components such a
s graphics cards wireless adapters and more I use a to server minimized option use up Aro key to select a to server minimized option press enter to enable the to server minimized option use down arrow key to choose done option press enter press enter press enter it is testing ubun to Archive mirror ubun to Archive mirror contains Ubuntu software packages so wait until passing the test press enter press enter lvm is used to manage logical volumes I don't use lvm option so I need disable it select
set up this dis as an lvm group option using down arrow key press enter use down arrow key to choose done option press enter select partition one option in used devices using up Aro key press enter click on down arrow key to select edit option press enter move insertion point to end of the line using right arrow key now clear all things in the line type 99m select save option using down arrow key press enter select partition to option in used devices using down arrow key press enter click on do
wn narrow key to select edit option press enter move insertion point to end of the line using right arrow key now clear all things in the line type max value shown in here select save option using down arrow key press enter use down arrow key to choose done option press enter click on down arrow key to choose continue option press enter type your name here click on down arrow key to go to next blank box type name for your VPS click on down arrow key to go to next blank box type any name here th
is is your SSH username click on down arrow key to go to next BL blank box type some complex password this is SSH password and root password click on down arrow key to go to next blank box type your password again click on down arrow key to select done option press enter press enter press enter select an option using down arrow key press enter I don't want to install these packages so I don't enable any of these select an option using down arrow key press enter now wait until system installation
is completed select cancel update and reboot option using down arrow key press enter it's rebooting you can access your VPS now next we are going to make some modifications in SSH settings adding SSH public key now installation process is over so if you want you can exit from console connection and create new one there are several types of authentication methods that can be used with SSH main methods are password authentication and public key authentication password authentication is generally
considered less secure than public key authentication because passwords can be vulnerable to Brute Force attacks or password guessing attempts so we are going to add SSH public key now first you need to generate SSH key pair there are several ways to do it I will show you the easiest way go to create compute instance page in your Oracle Cloud account click on save Private key and save public key now you have new SSH private and public key pair now let's add this go back to console connection pre
ss enter type username that you typed before press enter type password that you typed before press enter go back to fixing corrupted VPS text file copy rot access command go back to console connection paste copied command and press enter type password that you typed before press enter go back to fixing corrupted VPS do text file we need to edit adding SSH public key command replace user uncore name text from username that you typed before now copy adding SSH public key command go back to console
connection paste copied command and press enter now you need to put SSH public key here so let's get SSH public key from previously generated SSH key pair need'd open a file previously downloaded that name contains key. Pub using your text editor copy all texts in that file go back to console connection paste copied texts press control+ X Type y press enter go back to fixing corrupted VPS do text file copy restarting SSH service command go back to console connection paste copied command and pre
ss enter now try to log in to your VPS using SSH username and SSH private key that previously generated you can make sure everything is working fine using this method next we are going to disable SSH password authentication disabling SSH password authentic medication go back to fixing corrupted VPS do text file copy editing SSH configuration command go back to console connection paste copied command and press enter search for hasht password authentication yes phrase using down arrow key now remo
ve h Ash now change yes to no press control+ X Type y press enter go back to fixing corrupted VPS do text file copy editing additional SSH configuration command go back to console connection paste copied command and press enter change yes to no if there isn't password authentication yes phrase you don't need to do anything press control+ X Type y press enter go to fixing corrupted VPS do text file installing Oracle Cloud agent Oracle Cloud agent is a light aweight process that manages plugins ru
nning on compute instances plugins collect performance metrics install OS updates and perform other instance management tasks if you want to install Oracle Cloud agent follow this copy installing Oracle Cloud agent command go back to console connection paste copied command and press enter okay let's reboot VPS go back to fixing corrupted VPS do text file copy rebooting VPS command go back to console connection paste copied command and press enter now VPS is rebooting close console connection you
can log into your VPS using SSH connection after rebooting use SSH username and SSH private key for it so now you have a brand new VPS subscribe my YouTube channel like and share this video put comment on video

Comments