{"id":80,"date":"2024-07-20T08:57:19","date_gmt":"2024-07-20T08:57:19","guid":{"rendered":"https:\/\/cybersecurityinfocus.com\/?p=80"},"modified":"2024-07-20T08:57:19","modified_gmt":"2024-07-20T08:57:19","slug":"how-to-install-linux-ubuntu-and-configure-as-a-server","status":"publish","type":"post","link":"https:\/\/cybersecurityinfocus.com\/?p=80","title":{"rendered":"How to Install Linux Ubuntu and Configure as a Server"},"content":{"rendered":"<p>When we hear the word \u201c<strong>server<\/strong>\u201c, we imagine a huge supercomputer that takes up an entire floor. But not only can giant corporations like Google and Microsoft afford this device. Anyone can make a server from inexpensive components that are at hand. Let\u2019s figure out what it can be useful for.<\/p>\n<h2 class=\"wp-block-heading\">Why Linux?<\/h2>\n<p>Why do we need Linux? Imagine the situation: you are planning to create your server and are faced with the choice of an operating system. The most obvious option may seem to be using Windows \u2013 after all, it is widespread and familiar to most users. However, there is a special parallel world where Linux-based server solutions occupy leading positions. So why would we need a Linux server if we have Windows? Let\u2019s take a look at some of the compelling benefits that a Linux-based server offers:<\/p>\n<p>Firstly, Linux offers a high degree of reliability and stability. Native architecture, security, flexible configuration, and regular system updates allow you to avoid many problems that a Windows server may encounter.<\/p>\n<p>Secondly, Linux is open-source software with a free GNU\/GPL license. This means that you not only save money on the license cost, but you are also free to modify the operating system to suit your needs and distribute it without restrictions.<\/p>\n<p>The third important factor is the flexibility of Linux. It offers a wide range of distributions, each of which can be customized to suit the needs of a particular server. The Linux community also actively develops and supports various programs and tools, giving you unlimited opportunities to improve your server.<\/p>\n<p>Finally, Linux is a platform with excellent compatibility with a wide range of software, including databases, web servers, administrative tools, and other applications. High compatibility and a wide selection of programs will help you get the most out of your Linux-based server.<\/p>\n<p>And yes \u2013 it\u2019s free! Of course, there are commercial distributions, but free packages also provide long-term support with updates.<\/p>\n<p>In our article, we will look at the details and steps for creating a server to fully take advantage of all the benefits of a Linux-based OS.<\/p>\n<h2 class=\"wp-block-heading\"><a href=\"https:\/\/softonit.ru\/blog\/articles\/linux\/kak-ustanovit-i-nastroit-linux-ubuntu-v-kachestve-servera-\/#ustanovka-linux\"><\/a>Installing Linux<\/h2>\n<p>We will install on a Hyper-V virtual machine, only to be able to create images of the process, otherwise how else to take screenshots? \ud83d\ude42\u00a0<\/p>\n<p>As a distribution, we chose Ubuntu Server LTS 22.04.3, in our opinion one of the most advantageous distributions in terms of support and stability.<\/p>\n<p>Also, our choice is justified by the fact that inside the Ubuntu Server version, unlike Ubuntu Desktop, there will not be any \u201cextra\u201d programs and services that are not particularly needed on a server machine \u2013 for example, a package of programs for working with documents like LIbre Office.<\/p>\n<p>Inside Ubuntu Server \u201cout of the box\u201d there is no graphics, which is logical for a server distribution, but for a more \u201csmooth\u201d acquaintance with the Linux eco-system we will install the graphical shell \u201cXFCE4\u201d \u2013 it eats up few resources, but provides graphics. As soon as you need it \u2013 you can remove it.<\/p>\n<p><a href=\"https:\/\/softonit.ru\/upload\/medialibrary\/661\/aa43w8ljsflhftzmo7zp52le3bp9tx59\/Ubuntu_Desktop_vs_Ubuntu_Server.png\"><\/a><br \/>The pros and cons and differences between Linux distributions can be discussed separately \u2013 this is a topic for a separate article. For now, we will focus on the basic installation and minimal initial settings required for a server machine.<\/p>\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/softonit.ru\/blog\/articles\/linux\/kak-ustanovit-i-nastroit-linux-ubuntu-v-kachestve-servera-\/#shag-1-skachivaem-ustanovochnyy-obraz-linux\"><\/a>Step 1 \u2013 Download the Linux installation image<\/h3>\n<p>On the official website, download the Ubuntu Server 22.04.3 LTS distribution \u2192 to do this, select option 1 and click on the \u201cUbuntu Server 22.04.3 LTS\u201d button:\u00a0<a href=\"https:\/\/ubuntu.com\/download\/server\">link to the official page<\/a>\u00a0.<\/p>\n<p><a href=\"https:\/\/softonit.ru\/upload\/webp\/medialibrary\/5dd\/rjuo6kutl20974hceq8rk0igsdggr54m\/content_img.png.webp\"><\/a><\/p>\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/softonit.ru\/blog\/articles\/linux\/kak-ustanovit-i-nastroit-linux-ubuntu-v-kachestve-servera-\/#shag-2-zagruzka-ustanovochnogo-obraza\"><\/a>Step 2 \u2013 Download the installation image<\/h3>\n<p>Since we will be installing on a virtual machine, when creating a new virtual machine, it will be enough to select our downloaded file as the download source in the hypervisor settings. For those who decide to install it on a physical server, you will additionally need to create a bootable USB flash drive by writing the image to the media. Programs for this: DiskMaker X, Installer Disk, Rufus, Etcher, Universal USB installer, and many others.<\/p>\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/softonit.ru\/blog\/articles\/linux\/kak-ustanovit-i-nastroit-linux-ubuntu-v-kachestve-servera-\/#shag-3-zapusk-processa-ustanovki\"><\/a>Step 3 \u2013 Start the installation process<\/h3>\n<p>After we have prepared the media, created a virtual machine, and selected an image to boot the operating system, we start the installation process. For a flash drive, reboot the machine and enter the BIOS to select the bootable media. In the case of a virtual machine, we simply start it. A window will open for selecting the installation \u2192 select \u201cTry or Install Ubuntu Server\u201d<\/p>\n<p><a href=\"https:\/\/softonit.ru\/upload\/webp\/medialibrary\/877\/nvy20f7wwuuop0gnoyw2pc4e0j0nzu2r\/content_img.png.webp\"><\/a><\/p>\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/softonit.ru\/blog\/articles\/linux\/kak-ustanovit-i-nastroit-linux-ubuntu-v-kachestve-servera-\/#shag-4-vybiraem-yazyk\"><\/a>Step 4 \u2013 Select the language<\/h3>\n<p>Although English will be installed by default, for beginners we recommend choosing Russian to simplify the perception of the system.<\/p>\n<p><a href=\"https:\/\/softonit.ru\/upload\/medialibrary\/af2\/19z8bd51g7zv5u5gyksqkh68ekd25clu\/content_img.png\"><\/a><\/p>\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/softonit.ru\/blog\/articles\/linux\/kak-ustanovit-i-nastroit-linux-ubuntu-v-kachestve-servera-\/#shag-5-soglashenie-na-obnovlenie\"><\/a>Step 5 \u2013 Upgrade Agreement<\/h3>\n<p>If your machine is connected to the network and a new version of the installer is available in remote repositories \u2192 you will be prompted to update the installer or continue without updates. We will choose to install without updates because we are satisfied with this version of the installer.<\/p>\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/softonit.ru\/blog\/articles\/linux\/kak-ustanovit-i-nastroit-linux-ubuntu-v-kachestve-servera-\/#shag-6-vybiraem-raskladku\"><\/a>Step 6 \u2013 Select the layout<\/h3>\n<p>We recommend leaving it as is.<\/p>\n<p><a href=\"https:\/\/softonit.ru\/upload\/medialibrary\/8d3\/1zp5u6zqy652ncfat1ovub42oorwntzv\/content_img.png\"><\/a><\/p>\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/softonit.ru\/blog\/articles\/linux\/kak-ustanovit-i-nastroit-linux-ubuntu-v-kachestve-servera-\/#shag-7-vybor-tipa-ustanovki\"><\/a>Step 7 \u2013 Selecting the installation type<\/h3>\n<p>Since we are going to install without unnecessary services, packages, etc., we should choose \u201cMinimized\u201d. In this way, we make our system lightweight by reducing unnecessary programs and services. If we end up missing something, we can easily install it later.<\/p>\n<p><a href=\"https:\/\/softonit.ru\/upload\/medialibrary\/0cf\/8t1ai15oz5dt5y9288415a2jp7hqmq95\/content_img.png\"><\/a><\/p>\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/softonit.ru\/blog\/articles\/linux\/kak-ustanovit-i-nastroit-linux-ubuntu-v-kachestve-servera-\/#shag-8-nastroyka-setevogo-interfeysa\"><\/a>Step 8 \u2013 Configure the network interface<\/h3>\n<p>If you have an understanding and experience in fine-tuning the network, then here you can configure specific static IPs. By default, all settings will be set via DHCP. For those less experienced, we recommend leaving the settings unchanged and selecting \u201cDone\u201d.<\/p>\n<p><a href=\"https:\/\/softonit.ru\/upload\/medialibrary\/ce5\/yl60az89s2bjgaor29uh2x8pow826yvh\/content_img.png\"><\/a><\/p>\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/softonit.ru\/blog\/articles\/linux\/kak-ustanovit-i-nastroit-linux-ubuntu-v-kachestve-servera-\/#shag-9-proksi\"><\/a>Step 9 \u2013 Proxy<\/h3>\n<p>If there are no restrictions on the Internet connection, then you can skip this step.<\/p>\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/softonit.ru\/blog\/articles\/linux\/kak-ustanovit-i-nastroit-linux-ubuntu-v-kachestve-servera-\/#shag-10-zerkalo-arhivov\"><\/a>Step 10 \u2013 Archive Mirror<\/h3>\n<p>We leave the default value<\/p>\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/softonit.ru\/blog\/articles\/linux\/kak-ustanovit-i-nastroit-linux-ubuntu-v-kachestve-servera-\/#shag-11-razmetka-faylovogo-prostranstva\"><\/a>Step 11 \u2013 Marking up the file space<\/h3>\n<p>At this step, the installer will prompt you to select the disk on which the OS will be installed, as well as options for partitioning and encryption. If you want to make a custom partitioning, then select \u201cCustom storage layout\u201d. Or let the program create partitions and for this, select \u201cUse entire disk\u201d + \u201cSet up this disk as an LVM group\u201d. For the first time installing Ubuntu Server, we recommend choosing this option.\u00a0<\/p>\n<p><a href=\"https:\/\/softonit.ru\/upload\/medialibrary\/99c\/z1ifgxdojcgnh3bbn3o3czeul3nmj273\/content_img.png\"><\/a><\/p>\n<p>On the next page, we will be presented with a detailed description of the partitioning scheme. Experienced Linux users recommend providing the installation wizard with all available space in the LVM logical volume. Without understanding, we do not recommend making any changes in this section. Therefore, click \u201cFinish\u201d.<\/p>\n<p><a href=\"https:\/\/softonit.ru\/upload\/medialibrary\/530\/hpyuxz9wqxslonpvsi82pasdj6n8zgbb\/content_img.png\"><\/a><\/p>\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/softonit.ru\/blog\/articles\/linux\/kak-ustanovit-i-nastroit-linux-ubuntu-v-kachestve-servera-\/#shag-12-sozdaem-profil-polzovatelya\"><\/a>Step 12 \u2013 Create a user profile<\/h3>\n<p>At this step, you need to set the name of our user + server name.<\/p>\n<p><a href=\"https:\/\/softonit.ru\/upload\/medialibrary\/112\/l4w26hyp5je2lw57qmej2fuoaq5c07ik\/content_img.png\"><\/a><\/p>\n<p>After setting up the user, the installation program may offer you to upgrade to the PRO version of the product. But since it is not free \u2192 we skip<\/p>\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/softonit.ru\/blog\/articles\/linux\/kak-ustanovit-i-nastroit-linux-ubuntu-v-kachestve-servera-\/#shag-14-ssh-klyuch\"><\/a>Step 14 \u2013 SSH Key<\/h3>\n<p>If you are going to use a secure remote connection protocol via SSH, install it immediately. But you can do this at any time after installing the system.<\/p>\n<div class=\"wp-block-image\">\n<a href=\"https:\/\/softonit.ru\/upload\/medialibrary\/535\/4vse0qi901alkyemcko0gbakq0lxb48e\/content_img.png\"><\/a><\/div>\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/softonit.ru\/blog\/articles\/linux\/kak-ustanovit-i-nastroit-linux-ubuntu-v-kachestve-servera-\/#shag-15-dopolnitelnye-pakety\"><\/a>Step 15 \u2013 Additional Packages<\/h3>\n<p>Since we are interested in the \u201clightness\u201d of the server and the absence of unnecessary services, programs \u2192 then without selecting anything, click \u201cDone\u201d. Any package from the list can be installed at any time.<\/p>\n<p><a href=\"https:\/\/softonit.ru\/upload\/medialibrary\/561\/5sxcgycngmqnds23ui2ng70cwj6gbab6\/content_img.png\"><\/a><\/p>\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/softonit.ru\/blog\/articles\/linux\/kak-ustanovit-i-nastroit-linux-ubuntu-v-kachestve-servera-\/#shag-16-okonchanie-ustanovki\"><\/a>Step 16 \u2013 Completing the installation<\/h3>\n<p>As soon as we click \u201cFinish\u201d, the installation process will begin, and the user will no longer need any additional manipulations. Therefore, we just wait for the installation to complete. And as a result, the installer will offer us to reboot the system.<br \/>If suddenly, when working on a Hyper-V virtual machine, an error occurs after rebooting with the text \u201cPlease remove the installation medium\u2026\u201d \u2013 then simply enter the command \u201csudo reboot\u201d\u00a0<\/p>\n<div class=\"wp-block-image\">\n<a href=\"https:\/\/softonit.ru\/upload\/medialibrary\/f6d\/7qjm9wdjomsr4k275vw2x9jok5j13gxw\/content_img.png\"><\/a><\/div>\n<h2 class=\"wp-block-heading\"><a href=\"https:\/\/softonit.ru\/blog\/articles\/linux\/kak-ustanovit-i-nastroit-linux-ubuntu-v-kachestve-servera-\/#vhod-v-sistemu\"><\/a>Login<\/h2>\n<p>Excellent! At this point, the Ubuntu Server installation can be considered complete. Now all we have to do is log in to the system using the user data (login, password) that we created earlier, and the system can be considered ready for work.<\/p>\n<p><a href=\"https:\/\/softonit.ru\/upload\/medialibrary\/b83\/ehaimzw5d50wiu858rv60g5na88k0eqm\/content_img.png\"><\/a><\/p>\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/softonit.ru\/blog\/articles\/linux\/kak-ustanovit-i-nastroit-linux-ubuntu-v-kachestve-servera-\/#ustanavlivaem-graficheskiy-interfeys\"><\/a>Installing the graphical interface<\/h3>\n<p>As we said at the very beginning \u2192 for less experienced users, working only with the command line can be quite unusual, and therefore we suggest installing a graphical shell for our server, which will not consume much RAM, but will allow us to smoothly enter the \u201cworld\u201d of Linux users.<\/p>\n<p>To do this, first of all after installation, enter the command \u201c\u00a0<strong>sudo apt update\u00a0<\/strong>\u201d in the line \u2013 this will start checking for updates for the installed packages.<br \/><a href=\"https:\/\/softonit.ru\/upload\/medialibrary\/c3b\/10721ah5slvir7qromzc955lqf9x1swv\/content_img.png\"><\/a><\/p>\n<p>Next, update these packages with the command \u201d\u00a0<strong>sudo apt upgrade \u201c.\u00a0<\/strong>\u00a0The installation process may ask for confirmation \u2013 just press the \u201cEnter\u201d key.<a href=\"https:\/\/softonit.ru\/upload\/medialibrary\/2d3\/l661uiuz3tpkmntu8taor01lup0mil4g\/content_img.png\"><\/a><\/p>\n<p>After this, the system will prompt you to restart the running services \u2013 enter the number that will have the option \u201cnone of above\u201d<a href=\"https:\/\/softonit.ru\/upload\/medialibrary\/bec\/nh3wuvdowdn3tfdma3zomtj5vfbash2p\/content_img.png\"><\/a><\/p>\n<p>Now the most important thing is to install the graphical shell, download manager (user authorization), and Russian language pack (for localization).<br \/>To do this, enter the command:<br \/>\u00a0\u201d\u00a0<strong>sudo apt install xfce4 xdm xfce4-xkb-plugin language-pack-ru -y<\/strong>\u00a0\u201c.<br \/>And after the installation is complete, be sure to reboot with the command: \u201d\u00a0<strong>sudo reboot\u201d<\/strong><a href=\"https:\/\/softonit.ru\/upload\/webp\/medialibrary\/857\/ovrp84x6w18qrillb1lnalq3iesktydm\/content_img.png.webp\"><\/a><\/p>\n<p>If we did everything correctly, then after rebooting the system user authorization window will appear, where we must enter the login and password that we used earlier.<a href=\"https:\/\/softonit.ru\/upload\/webp\/medialibrary\/74b\/bkz3hl2hnejpcsjeq1a8trw18rrpx1kg\/content_img.png.webp\"><\/a><\/p>\n<p>And finally, a graphical interface will open in front of us, where we will be able to configure programs in the usual way \u2013 with a mouse.<br \/><a href=\"https:\/\/softonit.ru\/upload\/webp\/medialibrary\/437\/ymtk9ty09596nxoqys0lbkbanq38ms6m\/content_img.png.webp\"><\/a><\/p>\n<h2 class=\"wp-block-heading\"><a href=\"https:\/\/softonit.ru\/blog\/articles\/linux\/kak-ustanovit-i-nastroit-linux-ubuntu-v-kachestve-servera-\/#podvedem-itogi\"><\/a>Let\u2019s sum it up<\/h2>\n<p>The procedure for installing Ubuntu Server on your own is a fairly simple process. The default settings are suitable for most typical needs. However, experienced users can configure settings for specific tasks.\u00a0<\/p>\n<p>Linux is a very flexible tool in experienced hands, so the more we study its capabilities, the more we find advantages of using this system in work tasks.<\/p>\n<p>Free ready-made Linux distributions make it possible to create a good alternative to the usual Windows server.<\/p>\n<h2 class=\"wp-block-heading\"><a href=\"https:\/\/softonit.ru\/blog\/articles\/linux\/kak-ustanovit-i-nastroit-linux-ubuntu-v-kachestve-servera-\/#zaklyuchenie\"><\/a>Conclusion<\/h2>\n<p>In this article, we have considered the first step in the process of creating a server for 1C based on Linux and tried to briefly outline the main points of the installation process. In the following articles, we will tell you about how to install the PostgreSQL DBMS \u2013 for database management, configure the Apache web server and activate licenses for the 1C server.<\/p>","protected":false},"excerpt":{"rendered":"<p>When we hear the word \u201cserver\u201c, we imagine a huge supercomputer that takes up an entire floor. But not only can giant corporations like Google and Microsoft afford this device. Anyone can make a server from inexpensive components that are at hand. Let\u2019s figure out what it can be useful for. Why Linux? Why do [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":83,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-80","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog"],"_links":{"self":[{"href":"https:\/\/cybersecurityinfocus.com\/index.php?rest_route=\/wp\/v2\/posts\/80"}],"collection":[{"href":"https:\/\/cybersecurityinfocus.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cybersecurityinfocus.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cybersecurityinfocus.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cybersecurityinfocus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=80"}],"version-history":[{"count":0,"href":"https:\/\/cybersecurityinfocus.com\/index.php?rest_route=\/wp\/v2\/posts\/80\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cybersecurityinfocus.com\/index.php?rest_route=\/wp\/v2\/media\/83"}],"wp:attachment":[{"href":"https:\/\/cybersecurityinfocus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=80"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cybersecurityinfocus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=80"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cybersecurityinfocus.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=80"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}