Son of a Tech
Science & Tech • Investing & Finance
Community for the Son of a Tech Youtube Channel.
Interested? Want to learn more about the community?
Linux Workshop
3 articles
post photo preview
Linux Workshop Part 3
File System Navigation

Absolute Path

An "absolute path" on a Linux computer is like a full address for a specific file or folder. Just like how you need a full address to know where to send a letter, a computer needs a full address to know where to find a file or folder. An absolute path starts with the "root" folder, which is the very topmost folder on the computer, and then gives the complete list of all the other folders you need to go through to get to the file or folder you want.

 

To navigate to the topmost directory in linux type use the command “cd /”

cYKzQqyUYn4y3_D5_1gfyBM7XACse0jpDIOsVe4KkpcE9UXAPaTqARVnLjaSdqsj1N662wpAtq9Pic5l69EcFoO-J2-qsm8j4g6TsbkUqH5S8qepKSAkedaFTaVr6upvsvWELe2bFxyKpby3UwqDiqamY9HkITSw-HdFU86GwHfCuAmrl5er9_bgW6W_aw

Relative Path

A "relative path" on a Linux computer is like giving directions to a friend to find a toy at your house. Instead of giving the full address of your house, you can just tell them where to find the toy by saying things like "go in the front door, then go up the stairs, then turn left, then go into my room and it's on the shelf." A relative path on a computer works the same way. It tells the computer where to find a file or folder by giving directions starting from where you are right now in the file system, instead of starting from the very top. It makes it easier for you to navigate around the computer, because you don't have to remember the full address for everything.

 

To find what directory you are currently in use the command “pwd”

av0BON692FLGDepIThAZbcr2RqK0JWslAtzjMWsn4eeolTkhmDIFGSuuFBzY3Jnfg02C2WPKKwXtkXbtazqzW3mpFUf_6pSPIsUaBhF3kjeqCjj0nKCaEJROlMOOoqGwJVNWLPmXaEgjvtVhXw3qEZ6-BNbUKCW5s-6W671X6wGyIOwsRH1z5O_i-0LzAw

man Command

The "man" command in Linux is short for "manual." It is a command that you can use to read the manual pages for different programs and tools on your Linux computer. Manual pages are like instructions or a user guide for a program, that tells you what the program does, how to use it, and what the different options and commands are. When you type "man" followed by the name of a program, the manual page for that program will be displayed on the screen for you to read.

 

To find all of the different options for ls command use the command “man ls” 

_bJ-IDn-aWCmciaDbrEst5FxgZA1iTL3Z2_o05nH3fesDiohv47Gm7hrvlQqf0O9Jtz_Xl_cPVpSnA65xNFUaBEGD7FU1LB06wpsjPa7Jl3n4317HKFOuK8hvQ4Q6aaGbwZewpYnBbdpKF7SWmh50YI4ryFN2DGAtjkqH6_vUWx4Y_DVK09bZvlpOup3Ng

cd Command

The "cd" command in Linux is used to change the current directory. The "current directory" is like the folder that you are currently inside of on your computer. When you open a terminal window, you are automatically in a specific folder, and you can use the "cd" command to move around to different folders on your computer.

 

  • To find current directory start with the command “pwd”

dxX_g-BY0sEmfLk4ZKWWWnmb4q5Tr5pI9ahyPY2B4SdSoDD77JJ4uMOyTMluroe6YdynNyALMz-9sIo9vKM7yGeXVVQyoRICIg6JK4P3BHFAXqbHJ69JI9Tqxmnv_s3N4sbFGpjSoq8x_z6X9YJOxbCLstM73Q23URHCreDMwzPoSW6sxdvvKfGGf4bJSw

  • To move to the upmost directory in linux type the command “cd /”

I2eTgQctw7y7L5Wh6fla1K7o6M2nMl33HeYeUZelQuNZ_bVVMNuivJZfARFhsg2Mcz9-0bZAUZUWj8vghu-Kl8EU05JI32HPMFcWtuUCbaW6YyZs9TgXG9bNsZWvZytKskCw6E84I46mPmumKks-KfvDgOm1SAIyYUTyQ5hQ4JGRCScVyyAY3JfTlyyG8g

  • To move to the home directory of currently logged in user type the command “cd ~”

iV2hhS_enlTSIiYxeWGq38Lki5VAdPaGJJkU3uUhcvYKg8nfJPjePG9dH6jMYA_BQOQI8AmvYVPrJQfJz0yU-b0rt73GiOwWFVdBcIWaRLBbrUg-1HEIBcZzLfBDHlqpLA7o8poUrD5ZBw5-zMdnsiHvm-DKbaOhP4BaFmyZK6uVT61rRUfIg4KfxAeGJA

  • To move up one folder in the system type the command “cd ..”

NEiX3kwQ24u4Et8UOfO2mvBYEXVXrqPxSD4Nu1P9LK3CP4N8EcI24th83pBkyhAuo-rqA8RH1vZD7QkOTZQW5TK7bjKMkIXETFxztI1eOsMbCbXRRdG9rIvUdiskvq7Z0vOC71e-1fbrhdSrFfB8RNe2HBKUpuxN39I3zzpnck6qUxYHoSSucsv-q8SayQ

  • To move to a folder using absolute path you must type in the full path of the desired location. For example to move into the home directory of the currently logged in user with absolute path type the command “cd /home/username”

3wLwOJIdfOolfuY0rmZrbTu-dRBUfegX-linT0MzS1F_MtYN1vvbE4HeM-w3RR_oMGK4hQbNhF0_LhYUkOK-AXf6auleCc7Abk6sHODSVHLuR0Px5izVnrVInAoRyHfabIRcxUDIALSsc_ucHAk0ak2xqu987nLuS1NiyTe9k-_ONzV1KN0no_YhsoKoqg

  • To navigate to a directory from the current directory via relative path type the command “cd ‘directory-name’”

XAtxLGKLy9JEB4IHvCAF7NKSFFwPPVUR_gPKIagmyiIk1HafN71VQfECfTyM74r4Yesk_C3qelrtfBIwaT4vMowgfayaGiOOCSNaETB_PvFr_zCCz4MwHtXB0BcEkLhoZ9nAakRbaQeISJz4pwH0H5YPaaSFa34NfvQcSECWiAXJFcaEMcpsQoa-JMLOoA

  • Relative path does not use the “/” in front of the path name. If you are moving to a directory that is held within another directory you will use the command “cd ‘directoryname1/directoryname2’”

0LZtVsoVJK9-cUQeMyONDTCYaq7GJ252b3TdEeip_rK_44t-ebf3c4s1zmnucvDhzBq_tC8KzccpA09XYdMgBk50ceiA4bGNF9CX9j5HFNrvpM28X2truCLzgzWDPUMcBRzd2MlDADMDTNPERP7FJzyeNMd8KRzuIk9ev9KT6Se6yFSrgPyPaGSMpUuJsw

ls Command

The "ls" command in Linux is used to list the files and folders in a directory. When you run the "ls" command, it will show you the names of all the files and folders that are inside the current directory.

 

  • To find all the options for the command use the command “man ls”

TSXkVea1LwU2i5vh14ZWmOPTT_S65LpxgihfP526PPA1uewi8YUUqm0p7duJexs4oi7t8ommdY8_O0usQOdBb1FijgPbmb7soKY1d3Ui8YeYO3Vo2SffrpFMYQELRkROlQ6NmFLyYaWmWvPMlAURGQVvFgRKauKYrmvMri2_G2LBU8NNhE4839Qm_WZdhg

  • The most common options used with ls is l - long list format, t - newest first and r - reverse order while sorting and looks like this "ls -ltr"

kckOWhd6whBSb2sibfFbOhTIkKsTTPhwlnd4YbMFuxMvEdUytms2D1x5MGmqu7Opb4uWvMKgwphQDMC4MdXWcUvEfdkFRXEqFkSX1ZMQbwgosFi4eVpD0dw3BfBxcmSKYIkLnGmHpQVzW7qyDjFymNKtkc7GtPiOj_6rS5MIIHssY6YdUHQ0zteemwV-uw

wc Command

The "wc" command in Linux is short for "word count." It is a command that you can use to count the number of lines, words, and characters in a text file. In addition it will could the number of files in a directory using the pipe command.

 

  • To find all the options for wc use the command “man wc”

NKa75kRnXSY964oBVHNvamZep1va6oe2nyZowDqvfxJsdwqB_qq5J_FasRQy6vT93gHrprmRrzraCJjoZ0Wv5BjXhNt6QtXGeNaJiyLHwTzxLa1Tj3sY9AXWiLEWiD-WvY12empuNUzeZXowIsEgqsiQ56LOV31snKKVr54Ilv0RIWZa2v2VoA7Crtxnvw

  • To display the amount of words in a text file use the command “wc -w filename”

39CnAb9tioWXVg_x9xQzbEo0QKPyXGNaQTK4Ub1IbNE0ifyX-VU_Gim4c5ZMTsk_x6agRgTIgpdzb3_OjoJ-GFJio9f8xaAqkKxikZbb2bBxvEv-cJXhrYhV6n3pjRvhP5WE2goyAtOeFZfInzB7VaWE74AyaaCNxyumAa75xQsrWifIgp7eeC2kGiKdqQ

  • To find the amount of files and directories in a directory you will need to use a pipe command. In this case is will look like this “ls | wc -l”

RG-VtFDfL5i1DoKZCUU4Kq8Dr-P5EKWXfEK6BuHP-qS8YNNvHXRoYbAugyfUmquHvtiic9CO7r6Paax8Fyu4TN3WhF-e4wzp-s_kV7cD0TeDTHaPB1tnNPUKD6aN8HX2ncuVGtTnUX67bAKKC5KwAam3z7EEP8ECNEMWQJTrj1UypFvWLdavgjue-pcLrw

 

more and less Commands

The "more" command in Linux is used to display the contents of a text file one page at a time. When you run the "more" command followed by the name of a text file, it will show you the first page of the file, and then pause. You can then press the spacebar to see the next page, or press "q" to quit and exit. 

 

The “less” command is just the more command in reverse but allows for you to go up and down with pgUP and pgDOWN buttons on the keyboard.

 

  • Change directory to the upmost directory with the command “cd /” 

lbETb-6yLYhcKT3T5kjbeTmnYntWsarv8R53uo7ihO_oTpMHQlQGVS3gIQKjU_7C4g9HDLNd8Xto-f6YsVBhwFo0tsIpbcI5w1vqjxzXOxMp8Jc_VrVVIZTOVtF2VeRRI65gyFnq6pnC-_z2OD2rEO9yEk_UrwE08ruf5mypRQAe3y9iWcvyN5S-EyYZrQ

  • To view the contents of the directory page by page type the command “ls -ltr | more”

X9rDAbYoHDMvZ1GsyNYQ1MAfUqYAJusQ-Lc1UzjwgsEcWVjQ11lZ63OCyV6ZTJm7zjXExusSuRudrYTID4hCPh4Olm74kWWbHwxoeYXMMJsFtiyowCmkOf6ljIvG1TtGrm_xFheajkuJEoeJUEvWYtiDUGjIghIPdjT5_WF9U76F_6eQbBvM6rk21deOSA

  • To view the contents of the directory in reverse order page by page with the ability to move up and down use the command “ls -ltr | less” to quit press q

uvu6B0gi4KHel5EU_RVKkPTbBzbrF1mu2n7yaogIv0zEV0NFKyGfkk8H-llEuniosy48sQvBRioGeIJhuurw0xvSnYLeaHmv9OAkLyN36TQuxn8Kr6o7lkfdYRT6GqjMOuE5XHYILVIPQyfMVo1rMD8hDBQjWSmZW-6om-NgFmwqAJFqbC3VC3D-WV2O5A

 

grep Command

 

The "grep" command in Linux is used to search for a specific text pattern in a file or a group of files. "grep" stands for "global regular expression print." It searches for a specific string of characters, called a regular expression, within a file or a group of files and returns the lines that contain that expression.

  • To find a users details in the passwd file type the command “cat /etc/passwd | grep user”

nfL0T-ZAPLROcctboKj5dkjUXjhx-mqPJhsRArd31S2iD70hnLeJAqC43tovXUBWA6GqFqV5YS04aJdGD2tfnWwnpoizu6B-Pn2vBCZZRyl1Fll09VBv4poEmHOi1BDSwf2tAqMS2Ydn3XXy0mniOa1cgQrQIZg2J3y4Wf9N4HrWw25HSrmkSKLfiBnvnQ

  • To see what port the ssh service is running on you can use the command “sudo lsof -i -P -n | grep sshd”

6-W8FvdveHYUyNUcE5XkGQEyEt7VjwTczm6pg3OnT01RibvOI2tp-E64KDLWJ_lW7LqseEIzZLkuRu6dhy9jDPybSbWUmVXoiTtG5HEcTiTUrjsOzgmsW63nhZC41_V6IQUsTuVcqXbapG_ogegdmcVgytAg6OMFVHDahDlZEVbj1-KLysjHbLszB6P9uQ

 

 

Read full Article
post photo preview
Linux Workshop Part 2
Accessing Your Ubuntu Server

Access Ubuntu Server

  1. Connect Through Hyper-V - Allows init level access for troubleshooting and root pw reset

 

  1. Open Hyper-V Manager

uTkADRv-kApupPa4URPjykULgorZH_Z2MnzmuiPaPS82bihSX9TFlWVdl4-zxMYYjTZudKPBdQM2e9azZcZMaw2r4NfGPTSVg_23Xgvrg9Z8eo-Qnt5BoEXIwYSJ9LZEYchIb2kTw3fQD1SLPcFWNXPJALI1oHWHQu6XwRtwISp-H3YEvW7wa3WzE3F1Kg

  1. Right Click Virtual Machine

G7a3W-eACuv1dCvkqWiH_tk-Kzk0wk804YlkYT_2_kGS8ZynRI29q2BC0l_AaBoN9Azgc9jdbdjA1ogRBnMBbKJRlrPilD_lzCM0_nqUS705oQP3Mm82ni2qIYiRq8VLf1qQxhbDecVvkCf1r3t59gTAuXobm-fp0gNfNrdVHvlkbng8R-TSzK-plxe2mg

  1. Login with username and password

A5lOXxyEoAAuG3zcCe9Tg6ZsmfGEgtCT1xviV_e38UXJeXIOADfB1CnW7CMpFBmfTNeW4md9ulRxQUpVfv4zW3kxG2-IaLnDmHXN_mddet7oJb1ymMubm7F-nZlI5AgAf9Ard3OHRFbEExY_5kcb44ZEnY6MmQqFk1PEH78OYUWPESmfL9Iu2gk-1E5VEw

  1. Confirm Successful Login

MNOTWuI1FgH-lHp74ZOHAzJO0uegZ9LD0P2QSH9vCPvzvNaZ4l5S00Ju355vTjSzNZXCAr7nXlMsw0Id2T4hFptAHS19gYGkzHzfuDzTdk5Ik2-r9c376ukcKSkSjIgECZmdvl5f_hPWce78gBN5Z3shDp7dqlE2RJI7HViKXQSFcqPBeHO2rYG2ftHo0w

  1. SSH Terminal Access - Remote Run Level Access

    1. Windows Powershell SSH Access

      1. Obtain IP from hyper-v console with command ip a

FjMSu-2Hvn-j5gq2XNvpwf9GnvxMTk5OZ2d8rg1izjSCzGz9DN_ZcfSvf8VuSXWlV-v81Oq5K812rmPQvJn5K5IHHcG7oNwXSKGDl2W2SdVgcRUOMGQy2J_6sY243poY9B2ltx7WGmZ0lRTqtm_VKibq9Ht8HROs7ndZ80zNZeRuyfk9yMoYA1ipd1RjZQ

  1. Confirm SSH service is running with command systemctl status sshd

adtiW9xGlqgSV0sWIoAV1lj8cCZMnXcreIdiOwxZrH4m7YJCR8NaCE5aG8PegxgsEfE2wlgxgFR21X5HfnCO4kEbdH_xmoCLXqCAWk0onu6q4RA6E85FDWgM_y_UQOFTlK7sJIWv1AdfDRiZpqlrvA66X-qo30F1srsoJCRC3izpCQQcTTfl58GZxpP0LA

  1. Confirm port 22 is listening with command sudo lsof -i -P -n | grep sshd

YnkQf6affC_9FzWEVXuGYQu2zw56FhuqkijDkDRo9bfQFlJcahHYLr3Mh2764ZvCmXYA28ZkAt_33cM02siDXs8-F3CbjEkfrMBzFbbuH-oO7F6Ew4bPqqv6JVQWRTCsHRL8lJXV23VJ9jujALP8M8-UyGNHFprdY1IWBmKVIk0dz3FVWYNR1drpvhQdYQ

  1. Check if firewall is enabled with command sudo ufw status

klLy6X9Zm_LzxnkforVMGT0au9-8VdyjWoWti6qARXYqc1owiuz_78lIDtt6DicZjz3M9yUzp6iE79cPMELezVguAc60aXFbxqudOzEC8WGvzz0fosWAslhuFF_9dq9WGE9CJYUjyEmFKPOhSu6nhJ1sd_t7axic4Qn0mq8WFmbXQBFtdsOxIYi6dROqXw

  1. Open Manage Optional Features

JwdfQW2YIS4xBEB4MDuBCrBJB2YVbf3GUF4p7Vh6tzO8x34rdaRHiV46iiC6NCvWliiOWXuOaHmAP7XLzt7_-NaNFTOIckLenMbM10iSX6RWTN5Q1tDLkh3lXHWRj0SOuH7tLKOCCdWW6kGH9rFkh4DCMI2v3t9SI3XfYGRb9hh-aqefHpiZ95hzy59dMg

  1. Search for OpenSSH and install

4lWYDQ5LuPZ71yziWjrThBgl8pNrWUoKHUHUk2NA0I5swVpsO6CMh4mQR-ldUIZMbR1TZ_M1vLHNi1RMNEcJBfDS7-9Y123KjdNCG-6Yhvr-cKNicuwQlfvSJSDg1J3wt9s5Bc7ARrVHBhNKau4waNhLXO75NE-qxWyakx9IhoFXv_8w3oqSDeC0UO_pLw

  1. Search and Open Powershell

0bl-IhrYb8f7lpLHZ_TY8nJqCZ28DcmZ_DU19AnkUTrFz9JNjV20xoHU5VHGmeZGgGAjBcYePYGBP8batENMw3GmFSY8jBXvvXGSYNdxfilx1dDZvzrB37GeGi1YuvfkmR_TggIVxLAyeEs6K3mPUJRaPbv9DFpCy_oU3VPpEZcmTryS7eLwSS7x0vRrrQ

  1. Connect To Your Ubuntu Server By Using The Command ssh [username]@[ip address]

 3fq89m7E0ZNLsxkcKwaFqj5fT3878Waf0Xcehum3-gCAIFXUDVTzwH00ELHkADst58LfKq24j7Lyj5C0s3Dupoubu7kqSTnBN-BOr9e_anEDg8sHwVFwy1o8pXxKejLobae1Z7k7Notr221iGmO4FeveLWM_nUAejxZZDt8WDQ80GSLuxKuKI4MYg-GpNg

  1. Type yes then press enter and enter your password and press enter

z_XDS786AG-GkNuEwx0izuwp6f2aL6uU62k7X7xexmAikfQ25E4is2TkAxwUAoMEFEgab7uXpmPvwYE9Z8zqLmo3XjGBzKrSUGA9K5enm8j0050kQIzEZZecYFQMSYfnB7MmJBsOxgDxc03W5v9wZQZOj0kcT7YnZpq9f4j6NSwmZx3VYNmZpnBIcTp5GQ

  1. Confirm you are connected to the correct machine with command hostname

56eLfOhL6cWorqMDDmwcQjMtWUOZz54RlMaFqX6z7sPyePq6EZpy8Btb-2w4F9fLEcrl6Ae8uIKAsAVF6hbCdOCrhk87iP9spg2cePg0ZWvUZ0zPn_NWwoBbSMz8dBCh9gOD5cA2DQcS5yZ2T0_m5wR75XjeJCUBW1yEY6UZO8KytRSbTMY1Msil1RJFJg

  1. Confirm which user you are connected with command whoami

e4Iqx9_pVxaVt0ykZ40NHgmkYTmWsHLgVG2zDtZOgqGUHMsniXvyMKxxm1m684MLbOd2XS3kPkmkqVgcbaQxLxvD-0jMxE5vuFnpdE48GZMoD2xKkG2cqOG0rfVLFWV-D-1x0Y3RGCp6Y7m5KlkrbYnlDmr92szO-2wMgqMYMAgJzdH4TUmloY5bsETwhQ

  1. Find the current directory you are working in with command pwd

Wi4AtjSWZdFdaSok7OWuR8reSVBhBxpmkolSwBuBWNZH8KygyHWbC1zhnR1JN739ApJ6uIij5Sp0BJ9sRZh1Do0uvRKiJsLX1VuSUTz5YN1hFruRzuhc3BBh6GjmFb-rfmj2ZD4mFUlg9dZ-7g2sbRupJ_mjhuat077bv5b8drsEzeTiVG_U4aVXUzMaZA

  1. Use Up and Down Arrow Keys to cycle through previous commands

  1. Putty SSH Access - Most common tool for ssh access on windows

    1. Download and install putty from https://putty.org/

    2. Obtain IP from hyper-v console with command ip a

FjMSu-2Hvn-j5gq2XNvpwf9GnvxMTk5OZ2d8rg1izjSCzGz9DN_ZcfSvf8VuSXWlV-v81Oq5K812rmPQvJn5K5IHHcG7oNwXSKGDl2W2SdVgcRUOMGQy2J_6sY243poY9B2ltx7WGmZ0lRTqtm_VKibq9Ht8HROs7ndZ80zNZeRuyfk9yMoYA1ipd1RjZQ

  1. Confirm SSH service is running with command systemctl status sshd

adtiW9xGlqgSV0sWIoAV1lj8cCZMnXcreIdiOwxZrH4m7YJCR8NaCE5aG8PegxgsEfE2wlgxgFR21X5HfnCO4kEbdH_xmoCLXqCAWk0onu6q4RA6E85FDWgM_y_UQOFTlK7sJIWv1AdfDRiZpqlrvA66X-qo30F1srsoJCRC3izpCQQcTTfl58GZxpP0LA

  1. Confirm port 22 is listening with command sudo lsof -i -P -n | grep sshd

YnkQf6affC_9FzWEVXuGYQu2zw56FhuqkijDkDRo9bfQFlJcahHYLr3Mh2764ZvCmXYA28ZkAt_33cM02siDXs8-F3CbjEkfrMBzFbbuH-oO7F6Ew4bPqqv6JVQWRTCsHRL8lJXV23VJ9jujALP8M8-UyGNHFprdY1IWBmKVIk0dz3FVWYNR1drpvhQdYQ

  1. Check if firewall is enabled with command sudo ufw status

klLy6X9Zm_LzxnkforVMGT0au9-8VdyjWoWti6qARXYqc1owiuz_78lIDtt6DicZjz3M9yUzp6iE79cPMELezVguAc60aXFbxqudOzEC8WGvzz0fosWAslhuFF_9dq9WGE9CJYUjyEmFKPOhSu6nhJ1sd_t7axic4Qn0mq8WFmbXQBFtdsOxIYi6dROqXw

  1. Open Putty 

DPAtsrq6Xmpp_RxhZSw-qiKcpDnLX4dZ_H-NHyra_P2v3c0cc3ImnSH1h0GPgmAa7v4SrJIhYO0V7ovMnnEt50UKDSB90iRWSajaGTGpPPt1CWfTgZJ2lyyLYNuJl5gZ0Dryd0oi4ENX-VmH-NG-CaO-3LahqVYJSwhx1nIFm61X3Hy0nMJWYEdreRiG4Q

  1. Enter Server IP, Name Your Server and Click Save

oe508BEVLcy-cjU1tZZ5TnbXgAOGvreBhnsFHZEUVfB7cm6yl9coy-Ia7e6enN3W6VFYo5qA6URYv5mA6GEpwDUx2lOm007qKRmVgJk1k5rU9xUhRXtvoA9v3gsb_5-VP9ZuAOy2EY46jvBfsDbumQZPhI_MADXWyA98ouJH5ZWO6qyK_QmPuV6k0nTQ-w

  1. Click Open to Connect to Server

rjjuix0YOh-VI5NF1HgYgozyOcoqWISvaqxCljSEl4zQoMgamZQ2Wacc9CU0RTViP-zaLtVap4USmcYNeiDspIaIQPIsglzU5R26sK7_ilnURVha2GRnkvBNnY73ZkM0YYYXyqZ3PQ6VWbr8CvyqcZ-R6ofiC3GFHK49PFTpPDCHHf4ZtiwQOxB2ydCRwQ

  1. Login to Server

brPy56LkyUyZBMi0xkBnHs3UfTz7OV5L3AQfkKvEhXki3U2MziluOAa8DRcsD-k3IcZxTCARTabdtgYcw0jUHPyktFZ52Z1gPITECPJgIzbjKnlrEyGHTCp1FwJeS_oMNnFpw5Irqmz80QyMjolyeX4ov6VWGMRRc4Q3e11VIqmEC0R_xIArZelm2BsB4Q

  1. Confirm you are connect to the correct server with command hostname

GVOIZYN0-4NKQ_VNv-hDrmvrXyjKwROCCVcK17mE2ZyyNu1Eq1jXRxfeQ47QMHT0Wn9zqBftOsiw1toLPyk7fzy6cpdDB2CZ2fNzcJdtXkheFCkYkR60zr9P6--rihEL3dy3zmcw0Lg8oFAGWY8HCrhS-wZr13rjkpcaJNprnFtPpXqMrAorU-qFrfmQIw

  1. Confirm you are connected with the correct user with command whoami

EYLrfYeV9Luhgp_atkw_9h8rhm0GyoKGnBYsAcIhZssHq8pynAuF7lblwVAB2E5fISIe7M3MXlmWFltTQmbylb_Hesful0hHTkvB7M00I4nr470SI7GPw6-0vk8LzAI9IUKiBpcgC1YZwMfnYAqfwnP2zLdNwbl60wDHXCaaNxopS6B-IuqXHs2OSY_sJQ

  1. Check your starting directory before beginning work with command pwd

iD3YQrVc8aTpvku2aIXYuW0K00GtJuVecMZsYmFxdPTeGPq_fqJfGRaapn4l_jNIx9fWJEj1pMS7PnxJDMNaLmbH96Ag4tu_fUpKfhI8NApFGb2AKfkMZA0FakMuEsxnLsqZjgbPZzxpuHQWLgXFW0hm5Ugca9AhnF8AtSY5kFuUIyGwtTnVbupPWRioxA

 

Congratulations you have learned how to connect to your linux server and performed the login best practices. Remember to always confirm you are connected to the correct machine with the correct user and in the correct directory before beginning work. 

 

 

 

Read full Article
post photo preview
Linux Workshop Part 1
Virtualization Overview
  1. What is virtualization?

    1. Virtualization enables the emulation of multiple computer systems on a single piece of hardware. 

    2. Virtual Machines are emulations of an operating system on top of a hypervisor or other OS

    3. We will be using virtualization in this series to simplify the process of adding and removing various features to our linux systems. 

  2. Virtualization options

    1. Bare Metal - Meaning hypervisor is installed at the hardware level

      1. HyperV

      2. VMWare

      3. ProxMox

    2. Workstation - Installed on top of another OS (operating system)

      1. Virtual Box

      2. HyperV

      3. VMWare Fusion / Workstation

    3. For this tutorial we will be covering the activation and utilization of HyperV built into windows 10/11 Pro. Let me know in the comments if you would like me to cover Oracle VirtualBox as well. In the future we can cover bare metal options. 

  3. Virtualization How To

    1. Ensure Virtualization options are enabled at bios level. 

      1. Reboot the computer and open the system's BIOS menu. This can usually be done by pressing the delete key, the F1 key or Alt and F4 keys depending on the system.

      2. Open the Processor submenu The processor settings menu may be hidden in the Chipset, Advanced CPU Configuration or Northbridge.

      3. Enable Intel Virtualization Technology (also known as Intel VT) or AMD-V depending on the brand of the processor. The virtualization extensions may be labeled Virtualization Extensions, Vanderpool or various other names depending on the OEM and system BIOS.

      4. Enable Intel VTd or AMD IOMMU, if the options are available. Intel VTd and AMD IOMMU are used for PCI passthrough.

      5. Save & Exit

    2. Enable Hyper in Windows Features

      1. Search in cortana for windows features

pQwRMO-HEUzMDnnfUMETdadTXpErhs21OpElqiycKWK1KrKWmHpA_Ujw0FYLaQDlQqRhq17XSuxuTYJIRusZPSZCk6gATsHyiMbD2Je1MMZGCZYiUPiNd6yvLPfdBKzfhvSQVuNKf-8DQgLECoPP6LW-zAHiRAWOpAfVL9gyOCm-1WV0droohBhmPO6sow

  1. Select box for hyperv and ensure management tools are selectedFD4NXBkkUZag0_ZQKDi8R1JnbnLbKQfE5pGCltWjkUWPGcUQSUVGiZWYYfx101gqoobMQ4cdsbUSWaNv64tiF-S27DW63yFefD-cjyzDjsvFTS9MZ9-RmVxisz1p2VhBkUItC0y-az1RRkVSQACKiziQbpXJq1TXoydvnBjbK1HQq-pzzlQhiccH6ebgzw

  2. Restart Computer

  3. Download Ubuntu 22.04 https://ubuntu.com/download/server

  1. Create Virtual Machine

    1. Open Hyperv Manager

Focd0RNgD96skyoMzT8iv7F1aBkrGxb-w6rDY5rcDzpav0k5Q_F0PFe34GCPHHzVopfQkIgepGCdBnqZ6c5G0n-xuo5QNfCmuwjh1bOSAeMn9zJL38uWu5PDqnruAy2HrkVuf-mJFVbNGsgQhbRA5fQbs5-QTG7JdA1F-YpiDzJD5KhoOVn6qZN6oN9fug

  1. Right Click Your PC Name >  New > Virtual Machine

V_SohBcXbD2Qh2BMPjkU71ins7MrbAA6Jm-5oNHRv-zITXMdEmqQ_IpsiCTRxgCgA4O2U3JUI21TqJUWG9phBDjDpe_7B7CLzWvjY2HkJ1Mnbq6B3PjjkoVMdhzs6Fa-xvzMC1asPEGAJN9-XlNnfjXwRSUFMkUD4uL3EgfHyrTEjHiZQHDE4kE52AideA

  1. Click Next

KMtdji66uOSGIAI5EPq2nirbpMrRVPFb7ioCV2nh8FcPYe2J0mvwHhJa_0U0uf0vLagvNd-ZjfxgimiaNyQlQdA-x1iO3xB5qGRy_7nU-WYYQtTec2g8b5XPE0DschhvZZAifK9Fa3use5LMjGzSBg5zeOxWesqHxry_SRFIJBz0bFZsKLb2Yop3lFrBVg

  1. Name Your Virtual Machine

k7_qfWQcswnGS2iGUozv5ZkCyhyH1fWNfpO2UUUpIAKH6fRe4tv2t-vF9WmEPWrZW-SyafTuRPBTvDBE7rDoM1FHRqScMq4nyyVNsCu1fcKx17AI85Sb3OYE2IalT_ith6rvtHHKRSlkcYbB8evBdb_FTX3xfgQpemc5eOGCRKhKjvPf3kzJOA1B7Rqb5Q

  1. Select Generation

tv7aPZP4KHPTjzD-Ln80x2RJRRP6_W8M9Ffuk5WDPJ6fOGZrfT5hnjsNowdvmdiBYj9St7J9bVBaZfdg15HRFz132CEKj8fl3QmM_E0AP4oIWyQZv5Ifmo9sQaGoOrQ0axEr8RYdsc9AMyWyst7a-7u1s0ivNoqdyVLh3z08oL0AptBFrqDjIzjdqShhPA

  1. Select Starting Memory Size

VE6tXfSq0UYMd19sFIWtCNDr9MOE0s-5mlIA16Ni-OQtF6znOE6zumqMj8PpUWut7ngbG9Mrh1z3wR_ukQu1cuOFa9Powrh6T1gDjGfpmSUZZXF0WDT_kvpK9bgnlNY1nW0alW3_bnsoH-xfPMtXHworkb0xCVz6uo1zAX1ncFI8FKxMlqfhxovWYe4Feg

  1. Select Networking

yaXyGtOO8aBtng_rs8dsppkmt5slj3gym1Z-wzS06IWArDmiaHfQ39F81PStoTVQe6cKsxLVITf_yE1A_3h7__n8lveYduxUsFTIvQA0ndc9-SiqIuOd5o_BShGdnVcYoct_ZP7J0tAzStkh385upFBTO-y2t353XaZkvvrELtzdcNyCDJmwLkgrds815g

  1. Create New Disk (20GB)

GVdoeVIvS5Ya_fRgBsCai7yZXSVmyY6bL5yu6edAO1pHj-OYrKDiwQssVbBZUEseNPA1d1MXddp0DAL2C9c6ibO4fum452Kz52ucSjRRfpqtCWPvbuNvo0VEpgznNJosYENWHrF5NVgqdKchE5Xyen_T7RqzOIupVjePu5shzQ3-SWiN33to3gF9O4IUXw

  1. Select Install from CD and Image File

66ypxBYi7F6z5ZMs6AFwoadfPGOXttLbXyHwqF-T5v-hDzh-NOpbf2DSmuwevXd9a_JK8z9CQ20teJd8f8oySo6V6Z1o2KWcLDHIBdg1kQj4nz0gMAxDVjsq8VWahDzHDlbc8uCCDVq7fenr7E7gL40so1WwQOCQ-RUU-Novb5vEVyRvBcrOWtd7iTEAiQ

  1. Select Ubuntu Server 22.04 ISO From Download Earlier

Uq4qcMFyN2fvnbl4-xVo5VgpiUIouYblRilFNRRJkgKdBYuOL-aokR5dkzxVGkGd5UhGLQK8Xm2-pZp7qAg69K74grWVUXrNSe7N4YIpnqTC7n77QwA9MByFYBOwJk9_KXubUUEIffvRMXzK7ULrw7N0d-fjXMoi4wZ1IKora7lj2Bk5EL2ccieHfS1OIQ

  1. Click Finish and The Virtual Machine Will Be Created

NqRWyl3W_YXQOi_MTvsj4eDitDikYPQ1Smml4KmZJnYyTzPjg0bVM-SbsCMXhWNG3qYjRnWC71unXYJcKzXMVaDv6PVSrbJe3wN5oFPwM4HvsWFsdVGHVuRliXPsFxY8FxjvnvrMjZE_e40vdRK7rROZoiynw6AklPErKWU51WD-iJvV4NCSle1AzzQGRg

  1. Install Ubuntu on Virtual Machine

    1. Right Click VM and Select Connect

06ETERGaElZVjLsKFJeU42gkjzS3Xj74PR-8esGwWVYAsNx_DmkKjnDRgonNshWPjUKPp6Vlmi3usjlx5D6EuAvYQYv45l31VaIn3RIRO-opWan47JRRZkiJqjSBdMSlfC0jfqY272iyi_pul82XN1L6BdoF-YKRvK01byLu9xKv4Q1XO9q61KT51yEhEQ

  1. Click Start

L3PMg2hUmURR69J-jHbudmJ2V4DP-ZXfEB0XBMjkzAgZOyyDR7h9nBCH23RviEKZxp4Jn19SuBfEMsxvgl9ebYRUrmtkluaBGafF5s0H1aDedeXMUHuTxrolT7HeJ5KSpH3YwYQPKrgbWyDAZYtpADfyv6njNYJN8dAM2aXx9cjN94jLCjVS4rfMCo8gFQ

  1. Select Try or Install

orJv-PZidIEja0J5yqNUVyBqfm_66ISjAG8nFt18wnK2l1t4j85AmERE7KeF6vR0ktLCBoyEJ1chc4zHJegMj3kZ6uzOdMsYZ7WU4Uwx4bHJthCw5JbQAM1rj1GR-HPBoQFCOmgi8o-nfYL9tqThK5ZgMQ8bAVjn1p8d-o-58_-oMpydyCICqioTwyrKvA

  1. Select Language

tNl8Iy2429RAPfjuGyA1XrxrzFrL2wEgVBChTwfRimLf5OcpNF6zqUBrUpCE-sP1HwGx1ZMwI42G-I2mb_35oWO1U4TIx28DRA0LTvnQYpV_Dkj-RsI6-_lp4oQjtRsQR5HrrqRX_5kIOX0_-FA7CmuYASat4sxTu_UTGrOkLbHRwOo-xm1nNExTb85r_Q

  1. Update Installer

1yW4VyFsF42ifN8zBI12RgoMfsuWYQbIVB5vOkxU7EnxUW9wywUqiwwr9WWAfSiC6JhGQkuQ6ylufsxvCheaTDvNv_2ui3Lx7PPbdouyXBVSzWrEEuuB1rM_PYsxuncWIulT3U_Z4DrA6xJQmv_lhW47EgmXUoMCAiUpauzVwfTpGB1-dH9yx9Zsmy_hgQ

  1. Select Keyboard ConfigurationWLPJPIfiijVFhxz37oKTaHKAJ9mfOrI7eNDNeduGV4L4TiEZLkIDmCrLkMB-AQ1DZbSFKzD6TuU3Q1MwLpv6oTA5lyLeKes115w_AemKP9mJ1QtYnOKVMDofxTqLKGHc45ZAL7NsULbHdP0h7TcofHp9TREttQc5-Hb3TcRAEspqxDyj8RLFfVjon4jQFQ

  2. Select Ubuntu Server

wm3j1XNSN6yHLNakL9FFi4XsSdQkDQiAKxfAexDE0m31DTrO0BzYvyHvw0dDn43YdBynqRoOxCQCEe7FvxSJDLM95OBLnVkzp4xn9Rn9A_2e-OoeQ0PMqapItuiLj3kMaUhVbbW3V2NPh2WQRNtwXpVWfziTV1_w1deBJCDDqwY28ld1B_bp3C0BRR74uA

  1. Confirm Networking

 uVBBYNzI7hBEaNBAzJ1Enf03ziDakhunmy4zONf2HUYyfbZLKugb24hZNJeBWf40x0Au-vyXvxaiZUWJ6nVRM3uWVcHwzzw_ST_F_G2rRg3ItCS_9RRIO1HeniDNWAZtErDIK8F_zsK4-IvjT5fVE2ITmPjhLOIQCU1vF2kqk7lI9VNqaxbTymoA7lpdfw

  1. Skip Proxy

o0POfH4GlH_1OeIgO7bpC6zLhFO2ZOT4wttj8SCfKZCO45F8rk2YQ5L5hMAvSeySZc5GccDQKfvJ4IzpV5uT0IwnwsYL0aqBGmvDjqO4uXvrkDNnVpUVgtp4zAWgB6NyKl_DONUc184a-vMB_1bEnraD6SSOCyEwzOl-QT9YWh-CLE9_K7_0_gTcvR9xTA

  1. Confirm Mirror

g-EyduxsD1sKwI0fPv6CLml64cbvNjcUwWmr9wEnm0jvS_AfGmPbXy4Tpmi3iKuRsxyE6oB9Rt6ua6NsO6uQzQ4g1Tx4FHydvnxMv9n_wI-3mUVgqO0zvvIVSb-o4YclY_0i39VW63oB3dgBXLMUZH340cnp0zoIy8KCG-I0lmUYl9lpSXgCAE1xvYEg9Q

  1. Default Disk Configuration

N9hE57GgufSIrQRL-vJk8MuwKmczGuXWUXy-Hp0Th0wd1XS-HO47fubRNUw4ErB_CnfWuCaIkcsR1m4G72jaH_9BCeklW_wTKLXA6aZ_pJn_p4z_XUPvzt6weXxpj-pgzOnZuL6NjCChFYkSReGq8SFJsFFtFxx6ohfqGVyVsFB7-KhIZKXI986QxOiWxw

  1. Select Logical Volume

BMZe9-Pb_j8mT5LOjJ93sOIP8aZ6sVaud4mWb1pgJHRAwpf_ZqWhu9DYjnHvy5_JIUDRorG9qqxW73Lqe_l8MxfaIXSwPW2cwrOvMOP7ff9P2dRnKB6NjDd4Ysku0vaIRsjNqlEQsTemp5f3UQGrOUJdF3YZA6knDF1GLqOv-9LeEgDY2ZH5mP5rFfJxwg

  1. Edit Logical Volume

DJHfEhZWvrTSHGyat_g3vl23Qv-oYkCdsBYYRtxlnk0DIgXhO9_RSbobqqerHs_0vmZFMeyh-W59yVS04CxY4olcKY-QgvKZwsFsebq1lV-OlPB3x_2d77rIt5jMVazDBN9rkuFxVnSRt8jc0qo1usmPVMwv9Lt1Sf5sz2h_RPU01g0QPG0yyywmTVJoaQ

  1. Expand Volume to Max Size

KvCYYabP-Gi_bHFGPOGKZu5Mm6WEEcXZs3T7rbqE26QZiZXR4W33QfdqAwrsK3u6znOnNjaocLOLKR3YXyqgEgqemTfAUJ8yI3aMs0LtPmCCTMMAoZmAu0k3uK4dIGHJc9Io6kxT16Ay3r_EVFVBThNWlZxNCgrGeiAANm1o3cqXOp6RKv2tCKPW4URYxA

  1. Confirm Install

8ZLZ3QD-Fqvyept1z5ejmOzPjzOr_5eHlja-42QcLI3sD-U-2KdBgZM8DZ_ZdOlf-iK16ITAL8WgeI4CFwXnRHTSv0hFLf5CyC4Zkfwxu4zMupsPDuzUFZHD5ILhDQcraJnUlQnSaGW3zFLHCEKEfZ73UDBmYJOedKZhf0MGyAeyIGjgJ7EwBaMhPrAoZg

  1. Enter User and Computer Details

ijwGDVkAytcTF4Nt4HxB0jO_8lknZCFwg3brAwxMTbigeeA85JouxexbbRvYXrMKrNHMrLp6xNrkyaSf1J_mI2IocSiBhMoIA2G0W4F-_KI9Wgf2P79w5DuZVzbOqwJYcaaKjBIJpm_JT4Ym1vGwrAONpVI895s7zVYYmPofREx9zsHbc6i5Egl3zBH4AA

  1. Install ssh

pmvTjlMTy7m1Dlo5-_qAkPcNFSIpACmhTK9Il603okgukLGqjfmOk0czgLckxF1U1LDo5RISMT0Vr8Sl7XpyGCrGwrxf57I6lcEanrz_MMBJOLnQhiR_5UhREpvHoIQTfH4ieDNa5SIpY4BAcKxNcRpTzM9cGDaR0c5tf777AekOL7Iwt0uKp5naM-e5mw

  1. Skip additional tools

CPKym-GGUuugiQ4-_9jNacWcwf2DE0YQbVOT5RITyVvEAyEdTlbXR9mzXx1EyAiu4gkhZ-yDCxjIel_yPEVsDRaFiWoG_S-n7pa-WmHf0zWBpl_a50L2TLA3QRLo14fW-Q66WfLs5YWbdfV_CyRj5aNVSa7Gyp3NjzdAcohrcjLAhyjjP6ZYLShhxHa2sA

  1. Cancel Update if Hung

SAo3YHhMv1ndULjK8BmM4h03_drgmoHsYHgAGLng5BwBNc7s0Rlm7eqG2BXLm0ccHiL1ofOU5nbEJfaORdxiLsog2sqfcCby8TQTwlvcD-HC7GVJ0RSo5LcCDHSzpYfq2d0MZY86K1bVvYJmx4bSWohCZvGtUYiX4Z-rKpr7QkO7Hxpv9p5k67gnMPbweQ

  1. Reboot

LKafAzDb3UzeLN0-MTzNrqgNcy7WxeLwEl6WwJYqCx6tCarsroULj_7XTUvLjaiqoyquKgbvZlLSP3MUL862tABUw2hYx6RArx8_SrpFuroyzJANzkICfHOEoVUuolBsEsMxZu2e1u8Ex6-leILE5Mbbfc9D__jH3srb7qby9GHppQeB6I5hjAcTkHyk0w

  1. Unmount Error - Force Hard Reset

T8mRXZ0SlO7gDfIzG5CFu3mq-jH28J5Ki5mjumoG5K6TcrFEwg4fhfBp_REStUw9jHoW-1jUD7fzr-VRtjZYTWOoOg1MinkRv4q-qItqQ2GaJQeUQhdwE4rN0sisE0Xyydh442P7pWNLS3T_ayTcIWTbbL3l5F2fb89e80ltNxNLvzoJJFhqbD-qqd6rqg

BSFTBczpKFWVOIbWLN6sR_Mr3H56G48blzob2udfCvsXQQTfrOC1oCqcNm5Y01Q0r9VNdZm-kDRoovcC-Yt-5PWbT2A6E1wD-XUFMfnCvEyQWFdsW37DmeQ3gilC4uXN3fk26jxeO09bSd_tnJKUPwZ8JhJeNOmnRPoUMH2GR-PLFGK6g7j76zXvH-O-ZA

                    Congratulations you have installed your first Linux Operating System!

 

 

Read full Article
Available on mobile and TV devices
google store google store app store app store
google store google store app tv store app tv store amazon store amazon store roku store roku store
Powered by Locals