<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Seffu Kioi Nyambura</title>
    <description>The latest articles on DEV Community by Seffu Kioi Nyambura (@seffu).</description>
    <link>https://dev.to/seffu</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F760410%2F6410bac7-f16d-47f9-8f37-ef4ce1b226ae.jpeg</url>
      <title>DEV Community: Seffu Kioi Nyambura</title>
      <link>https://dev.to/seffu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/seffu"/>
    <language>en</language>
    <item>
      <title>Restore database to SQL Server in ubuntu</title>
      <dc:creator>Seffu Kioi Nyambura</dc:creator>
      <pubDate>Wed, 27 Apr 2022 09:41:48 +0000</pubDate>
      <link>https://dev.to/seffu/restore-database-to-sql-server-in-ubuntu-58gk</link>
      <guid>https://dev.to/seffu/restore-database-to-sql-server-in-ubuntu-58gk</guid>
      <description>&lt;p&gt;After successful installation of SQL Server, sometimes there is need to restore a database. Below we will look at how to do that using terminal.&lt;br&gt;
For this, we will use AdventureWorks2019 sample database which is a publicly provided by microsoft.&lt;br&gt;
You can download it using this link &lt;a href="https://docs.microsoft.com/en-us/sql/samples/adventureworks-install-configure?view=sql-server-ver15&amp;amp;tabs=tsql#restore-to-sql-server/AdventureWorks2019.bak"&gt;AdventureWorks2019&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Prerequisites:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Successfully installed SQL Server in Ubuntu&lt;/li&gt;
&lt;li&gt;File of database to be restored in .bak format&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Procedure:
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Open terminal&lt;/strong&gt;&lt;br&gt;
Use the shortcut Ctrl + alt + t to open the terminal&lt;br&gt;
&lt;strong&gt;Step 2: Ensure the database file is in the present directory&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ls
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--LYAIuGnE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mme1gaezlij9p8z3w8t1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--LYAIuGnE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mme1gaezlij9p8z3w8t1.png" alt="viewfile" width="880" height="76"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Step 2: Connect to SQL Server&lt;/strong&gt;&lt;br&gt;
Replace &lt;em&gt;'YourPassword'&lt;/em&gt; with the password you set during installation&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sqlcmd -S localhost -U SA -P '&amp;lt;YourPassword&amp;gt;'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 3: Restore the Database&lt;/strong&gt;&lt;br&gt;
Replace &lt;strong&gt;/home/skn/Downloads/&lt;/strong&gt; with the path to where you have your database file. &lt;br&gt;
&lt;em&gt;NB:You can use the pwd command in the terminal to get your present working directory.&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;USE [master]
RESTORE DATABASE [AdventureWorks2019]
FROM DISK = '/home/skn/Downloads/AdventureWorks2019.bak'
WITH MOVE 'AdventureWorks2017' TO '/var/opt/mssql/data/AdventureWorks2019.mdf',
MOVE 'AdventureWorks2017_log' TO '/var/opt/mssql/data/AdventureWorks2019_log.ldf',
FILE = 1,  NOUNLOAD,  STATS = 5
GO
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--2O_evCGo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mus05bsrhhjg3qv1wvxh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--2O_evCGo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mus05bsrhhjg3qv1wvxh.png" alt="restoration" width="880" height="388"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Congratulations, restoration successful&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Install SQL Server command-line tools</title>
      <dc:creator>Seffu Kioi Nyambura</dc:creator>
      <pubDate>Tue, 26 Apr 2022 09:46:02 +0000</pubDate>
      <link>https://dev.to/seffu/install-sql-server-command-line-tools-2ffp</link>
      <guid>https://dev.to/seffu/install-sql-server-command-line-tools-2ffp</guid>
      <description>&lt;p&gt;After successful installation of SQL Server in ubuntu, we need a way to access it trough the terminal. This post illustrates steps you can take to make this possible&lt;/p&gt;

&lt;h2&gt;
  
  
  Prerequisites:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Account with sudo privileges&lt;/li&gt;
&lt;li&gt;Successful installation of SQL Server in Ubuntu&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Procedure:
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Open terminal&lt;/strong&gt;&lt;br&gt;
Use the shortcut Ctrl + alt + t to open the terminal&lt;br&gt;
&lt;strong&gt;Step 2: Update and install curl (Optional)&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt update &amp;amp;&amp;amp; sudo apt install curl
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ac_Btv4Z--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wkmad4uxwzq3zode6445.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ac_Btv4Z--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wkmad4uxwzq3zode6445.png" alt="update" width="880" height="668"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Step 3: Import the public repository GPG keys&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--V0kCHm_U--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2i7abro6hgkoeh2k81kr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--V0kCHm_U--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2i7abro6hgkoeh2k81kr.png" alt="import" width="880" height="150"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Step 4: Register the Microsoft Ubuntu repository&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--p4-sRp1k--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p6ld1bnmqwri0efm7r5s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--p4-sRp1k--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p6ld1bnmqwri0efm7r5s.png" alt="register" width="880" height="176"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 5: Update the sources list and install mssql-tools and odbc drivers&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt update 
sudo apt install mssql-tools unixodbc-dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--x_lJi5CM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iztccohv59mouext3a0x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--x_lJi5CM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iztccohv59mouext3a0x.png" alt="installdrivers" width="880" height="380"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Step 6: Add mssql-tools to your PATH environment variable&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;echo 'export PATH="$PATH:/opt/mssql-tools/bin"' &amp;gt;&amp;gt; ~/.bashrc
source ~/.bashrc
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--KJ8fS67K--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uweyu2hrxuj1rkj1nayn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--KJ8fS67K--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uweyu2hrxuj1rkj1nayn.png" alt="addtopath" width="880" height="117"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Step 7: Connect local&lt;/strong&gt;&lt;br&gt;
Replace &lt;em&gt;'YourPassword'&lt;/em&gt; with the password you set during installation&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sqlcmd -S localhost -U SA -P '&amp;lt;YourPassword&amp;gt;'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;&lt;em&gt;Congratulations you can now access mssql server in ubuntu&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>sql</category>
      <category>ubuntu</category>
      <category>sqlserver</category>
      <category>installation</category>
    </item>
    <item>
      <title>Install SQL Server in Ubuntu</title>
      <dc:creator>Seffu Kioi Nyambura</dc:creator>
      <pubDate>Tue, 26 Apr 2022 09:42:35 +0000</pubDate>
      <link>https://dev.to/seffu/install-sql-server-in-ubuntu-5adp</link>
      <guid>https://dev.to/seffu/install-sql-server-in-ubuntu-5adp</guid>
      <description>&lt;p&gt;Microsoft SQL Server is one of the most prominent databases in the industry today. In this post, I will show you how to install it on Ubuntu.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prerequisites
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Account with sudo privileges&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Procedure:
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Open terminal&lt;/strong&gt;&lt;br&gt;
Use the shortcut Ctrl + alt + t to open the terminal&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2: Import the public repository GPG keys&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;wget -qO- https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--0rI4v9uH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x4xp0h1s3sd90qhk7012.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--0rI4v9uH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x4xp0h1s3sd90qhk7012.png" alt="import" width="880" height="108"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Step 3: Register the Microsoft SQL Server Ubuntu repository for SQL Server 2019&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo add-apt-repository "$(wget -qO- https://packages.microsoft.com/config/ubuntu/20.04/mssql-server-2019.list)"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ioMA_GwY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qd3r0efv950esyb2oun8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ioMA_GwY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qd3r0efv950esyb2oun8.png" alt="download" width="880" height="762"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Step 4: Install SQL Server&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt update &amp;amp;&amp;amp; sudo apt install -y mssql-server
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--qbLMQ0oJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ua118vhksl0qew69z5o1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qbLMQ0oJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ua118vhksl0qew69z5o1.png" alt="install" width="880" height="847"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Step 5: Follow the prompts to choose your edition, accept license terms and set the SA password.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo /opt/mssql/bin/mssql-conf setup
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xX0ZpI4O--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7zl3xtywe25mk02xgu2g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xX0ZpI4O--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7zl3xtywe25mk02xgu2g.png" alt="setup" width="880" height="691"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Step 6: Verify that the service is running&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;systemctl status mssql-server --no-pager
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Gxitw0lE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/72oab51ku3jh907ih8or.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Gxitw0lE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/72oab51ku3jh907ih8or.png" alt="status" width="880" height="441"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Next Step:
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://dev.to/seffu/install-sql-server-command-line-tools-2ffp"&gt;Install SQL Server command-line tools&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ubuntu</category>
      <category>sql</category>
      <category>installation</category>
      <category>sqlserver</category>
    </item>
    <item>
      <title>2 or 3 Easy steps to install Virtualbox in Ubuntu</title>
      <dc:creator>Seffu Kioi Nyambura</dc:creator>
      <pubDate>Sat, 23 Apr 2022 04:52:58 +0000</pubDate>
      <link>https://dev.to/seffu/2-or-3-easy-steps-to-install-virtualbox-in-ubuntu-50b0</link>
      <guid>https://dev.to/seffu/2-or-3-easy-steps-to-install-virtualbox-in-ubuntu-50b0</guid>
      <description>&lt;p&gt;Virtualization is the process of running a virtual instance of a computer system in a layer abstracted from the actual hardware.It allows for simultaneous running of multiple operating systems on a single computer system.&lt;br&gt;
Oracle VM VirtualBox is a type-2 hypervisor that allows for virtualization and is supported by multiple operating systems including but not limited to Windows based OS's,Linux and Mac OS.&lt;br&gt;
Lets get started, shall we,&lt;br&gt;
&lt;strong&gt;Prerequisites:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Virtualization enabled computer&lt;/li&gt;
&lt;li&gt;An account with sudo privileges&lt;/li&gt;
&lt;li&gt;Stable internet&lt;/li&gt;
&lt;li&gt;Open Terminal (Ctrl+alt+t)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Update package list&lt;/strong&gt;&lt;br&gt;
Use the command below to get a list of packages that might need to be updated. Ensure to input the correct password when prompted.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt update
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--X0pYV96J--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8j54jr5eob33e253zo7m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--X0pYV96J--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8j54jr5eob33e253zo7m.png" alt="Update" width="665" height="472"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Step 2: Upgrade packages (Optional)&lt;/strong&gt;&lt;br&gt;
Use the command below to upgrade any packages that appear from the first step.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt upgrade
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--qKIP9QRf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zey75mebqtdllxeeb0nl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qKIP9QRf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zey75mebqtdllxeeb0nl.png" alt="Upgrade" width="655" height="234"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Step 3: Install Virtualbox&lt;/strong&gt;&lt;br&gt;
The command below is used to install virtualbox and its accompanying extensions. Ensure that you agree to accept the agreements and terms of license.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt install virtualbox virtualbox-ext-pack
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--QH4tUyYi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iv9uitjxzmxfux8tixsp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--QH4tUyYi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iv9uitjxzmxfux8tixsp.png" alt="Install" width="880" height="663"&gt;&lt;/a&gt;&lt;br&gt;
Below are some of the prompts and windows you will see during the installation.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--FPd1-DHh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6289y8tqjrmhoxzu2nvf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--FPd1-DHh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6289y8tqjrmhoxzu2nvf.png" alt="genesis" width="880" height="663"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--6mSH1ZTW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lsp3pvewre2lfdulcdre.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--6mSH1ZTW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lsp3pvewre2lfdulcdre.png" alt="license" width="880" height="663"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--nqwR7ru5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ldofj0jbsn3ybelrzxrf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--nqwR7ru5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ldofj0jbsn3ybelrzxrf.png" alt="terms" width="880" height="663"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Step 4: Confirmation(Optional)&lt;/strong&gt;&lt;br&gt;
Finally to confirm that VirtualBox was successfully installed, use the command below&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;virtualbox
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--7meQebdF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y4m10qgg68cwenyw5t7g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7meQebdF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y4m10qgg68cwenyw5t7g.png" alt="start" width="665" height="96"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;#This is the sign of victory&lt;/em&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--baRgwGso--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ane29132vbjg3w3kcznd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--baRgwGso--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ane29132vbjg3w3kcznd.png" alt="victory" width="880" height="523"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Congratulations, you have successfully installed VirtualBox&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Next Step&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Installing an OS in VirtualBox&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>linux</category>
      <category>virtualbox</category>
      <category>ubuntu</category>
      <category>virtualization</category>
    </item>
  </channel>
</rss>
