{"id":20515,"date":"2023-08-31T15:41:19","date_gmt":"2023-08-31T15:41:19","guid":{"rendered":"https:\/\/linuxways.net\/?p=20515"},"modified":"2023-08-31T15:41:19","modified_gmt":"2023-08-31T15:41:19","slug":"what-to-do-after-a-clean-install-of-debian-12","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/best-of-linux\/what-to-do-after-a-clean-install-of-debian-12\/","title":{"rendered":"What to Do After a Clean Install of Debian 12"},"content":{"rendered":"<p><strong>Debian 12<\/strong> is a commonly used operating system that uses a Linux-like kernel. We can install Debian and use it within a virtual environment. There are some important tasks that we should do after the installation of Debian 12. In this write-up, we will discuss the essential things to do in order to enhance the Debian 12 experience.<\/p>\n<h2><strong>Updating and Upgrading the System for Better Results<\/strong><\/h2>\n<p>To enable the full functionality of Debian 12, it is necessary to update and upgrade the system. Use the following command to do so:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">sudo<\/span> apt update <span class=\"sy0\">&amp;&amp;<\/span> <span class=\"kw2\">sudo<\/span> apt upgrade <span class=\"re5\">-y<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"781\" height=\"481\" class=\"wp-image-20516\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-1.png 781w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-1-300x185.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-1-768x473.png 768w\" sizes=\"auto, (max-width: 781px) 100vw, 781px\" \/><\/p>\n<p>It will take a few minutes to update, wait for it to complete.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"788\" height=\"307\" class=\"wp-image-20517\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-2.png 788w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-2-300x117.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-2-768x299.png 768w\" sizes=\"auto, (max-width: 788px) 100vw, 788px\" \/><\/p>\n<p>It can be seen that the Debian 12 has been updated successfully.<\/p>\n<h2><strong>Installing the Build-Essential Package<\/strong><\/h2>\n<p>This package includes all the relevant tools and required packages for developers to build and compile software from its source code. The packages include GNU Compiler Collection (gcc), GNU make, etc.<\/p>\n<p>Some software are not available for Linux systems and they are built from their source code. So in this case, the build-essential package provides specific packages.<\/p>\n<p>We can install it using the command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> build-essential <span class=\"re5\">-y<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"780\" height=\"319\" class=\"wp-image-20518\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-3.png 780w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-3-300x123.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-3-768x314.png 768w\" sizes=\"auto, (max-width: 780px) 100vw, 780px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"785\" height=\"467\" class=\"wp-image-20519\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-4.png 785w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-4-300x178.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-4-768x457.png 768w\" sizes=\"auto, (max-width: 785px) 100vw, 785px\" \/><\/p>\n<p>The package has been installed successfully.<\/p>\n<h2><strong>Enabling GNOME extension manager<\/strong><\/h2>\n<p>GNOME is the default desktop environment of Debian 12. To take full advantage of GNOME capabilities, it is recommended to install the Extensions Manager tool. To install GNOME extensions, run the command shown below:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> gnome-shell-extension-manager <span class=\"re5\">-y<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"786\" height=\"507\" class=\"wp-image-20520\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-5.png 786w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-5-300x194.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-5-768x495.png 768w\" sizes=\"auto, (max-width: 786px) 100vw, 786px\" \/><\/p>\n<p>The package has been installed successfully.<\/p>\n<p>Now navigate to <strong>Search<\/strong>-&gt; <strong>Extension Manager<\/strong>-&gt;<strong>Browse <\/strong>and search for the required extensions to install as shown in the snapshots below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"797\" height=\"599\" class=\"wp-image-20521\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-6.png 797w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-6-300x225.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-6-768x577.png 768w\" sizes=\"auto, (max-width: 797px) 100vw, 797px\" \/><\/p>\n<p>Once the Extension Manager starts, you can see the Manager Window. Navigate to \u201cBrowse\u201d:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"792\" height=\"506\" class=\"wp-image-20522\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-7.png 792w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-7-300x192.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-7-768x491.png 768w\" sizes=\"auto, (max-width: 792px) 100vw, 792px\" \/><\/p>\n<p>Install the two extensions highlighted in the above snapshot.<\/p>\n<h2><strong>Installing Snap and Flatpak for Downloading Software<\/strong><\/h2>\n<p>For installing certain softwares, it is necessary to install the Snap Store and Flatpak.<\/p>\n<p>To install Snap Store on Debian 12, use the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> snapd<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"781\" height=\"133\" class=\"wp-image-20523\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-8.png 781w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-8-300x51.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-8-768x131.png 768w\" sizes=\"auto, (max-width: 781px) 100vw, 781px\" \/><\/p>\n<p>In my case, it\u2019s already installed as shown.<\/p>\n<p>To install Flatpak on Debian 12, use the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> flatpak<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"788\" height=\"259\" class=\"wp-image-20524\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-9.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-9.png 788w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-9-300x99.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-9-768x252.png 768w\" sizes=\"auto, (max-width: 788px) 100vw, 788px\" \/><\/p>\n<p>After a few seconds, flatpak will be installed successfully.<\/p>\n<h2><strong>Enabling Firewall<\/strong><\/h2>\n<p>It is necessary to enable a firewall for the protection of our Debian System and network security. A firewall detects and handles network traffic. In Debian 12, we have \u201cufw\u201d firewall, so we enable it using the following commands:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\">$ <span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> ufw <span class=\"re5\">-y<\/span><br \/>\n$ <span class=\"kw2\">sudo<\/span> ufw <span class=\"kw3\">enable<\/span><br \/>\n$ <span class=\"kw2\">sudo<\/span> ufw default deny incoming<br \/>\n$ <span class=\"kw2\">sudo<\/span> ufw default allow outgoing<br \/>\n$ <span class=\"kw2\">sudo<\/span> ufw allow <span class=\"kw2\">ssh<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"782\" height=\"240\" class=\"wp-image-20525\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-10.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-10.png 782w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-10-300x92.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-10-768x236.png 768w\" sizes=\"auto, (max-width: 782px) 100vw, 782px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"784\" height=\"70\" class=\"wp-image-20526\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-11.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-11.png 784w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-11-300x27.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-11-768x69.png 768w\" sizes=\"auto, (max-width: 784px) 100vw, 784px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"775\" height=\"215\" class=\"wp-image-20527\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-12.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-12.png 775w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-12-300x83.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-12-768x213.png 768w\" sizes=\"auto, (max-width: 775px) 100vw, 775px\" \/><\/p>\n<p>Hence it can be seen that the firewall has been enabled.<\/p>\n<h2><strong>Enabling the Night light feature<\/strong><\/h2>\n<p>Studies have proven that blue light emitted from our desktop screen is harmful to our vision. Enabling the night light feature allows us to add yellow light to our desktop screen which is essential for reducing night strain. Hence it is recommended to use the night light feature.<\/p>\n<p>To enable the night light feature, navigate to <strong>Settings &gt; Displays &gt; Night Light <\/strong>as shown below: <img loading=\"lazy\" decoding=\"async\" width=\"794\" height=\"564\" class=\"wp-image-20528\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-13.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-13.png 794w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-13-300x213.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-13-768x546.png 768w\" sizes=\"auto, (max-width: 794px) 100vw, 794px\" \/><\/p>\n<p>We can also set the schedule for night light according to your own needs.<\/p>\n<h2><strong>Installing Timeshift tool<\/strong><\/h2>\n<p>There is no backup tool for Debian 12 by default. Due to unfortunate errors, sometimes our data gets deleted, To avoid these mishaps, the Timeshift tool comes into use. It provides an intuitive user interface with the capability to take snapshots of our system\u2019s state. We can easily restore our programs using snapshots. Timeshift is open-source and easy to install.<\/p>\n<p>To install timeshift, simply use the command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> timeshift <span class=\"re5\">-y<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"785\" height=\"300\" class=\"wp-image-20529\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-14.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-14.png 785w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-14-300x115.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-14-768x294.png 768w\" sizes=\"auto, (max-width: 785px) 100vw, 785px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"779\" height=\"314\" class=\"wp-image-20530\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-15.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-15.png 779w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-15-300x121.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-15-768x310.png 768w\" sizes=\"auto, (max-width: 779px) 100vw, 779px\" \/><\/p>\n<p>Timeshift is installed successfully. There are various backup tools for Debian 12, we can choose the one that works best for us.<\/p>\n<h2><strong>Disabling the CD\/ROM Package Repository<\/strong><\/h2>\n<p>When we install Debian 12 on our machine, the CD\/ROM package is also installed by default. When the installer configures the CD\/ROM package repository, the repository does not update and shows an error because there is no release file available on the repository from where it can be updated. In order to avoid any installation issues related to updates, open the \u201c<strong>\/etc\/apt\/sources.list<\/strong>\u201d file and turn off this repository by commenting on the line that starts with <strong>deb cdrom.<\/strong><\/p>\n<p>Run the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">nano<\/span> <span class=\"sy0\">\/<\/span>etc<span class=\"sy0\">\/<\/span>apt<span class=\"sy0\">\/<\/span>sources.list<\/div><\/div>\n<p>The execution of this command will open a configuration file as shown below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"781\" height=\"561\" class=\"wp-image-20531\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-16.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-16.png 781w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-16-300x215.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-16-768x552.png 768w\" sizes=\"auto, (max-width: 781px) 100vw, 781px\" \/><\/p>\n<p>In my case, it&#8217;s been removed already. Ensure that your sources list contains only these files as shown above:<\/p>\n<h2><strong>Adding Contrib and Non-Free Repos<\/strong><\/h2>\n<p>The \u201ccontrib\u201d and \u201cnon-free\u201d repos contain many vital packages that are not added by default on Debian 12. Packages such as fonts, codecs, etc.<\/p>\n<p>To add these, go to <strong>Search &gt; Software and Updates &gt; Debian Software<\/strong>. Once the Debian Software tab opens, it will look like this by default<strong>:<\/strong><\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"793\" height=\"570\" class=\"wp-image-20532\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-17.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-17.png 793w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-17-300x216.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-17-768x552.png 768w\" sizes=\"auto, (max-width: 793px) 100vw, 793px\" \/><\/strong><\/p>\n<p>Checking on any of the options from the list will ask for an authentication password to enable, as shown below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"778\" height=\"554\" class=\"wp-image-20533\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-18.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-18.png 778w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-18-300x214.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-18-768x547.png 768w\" sizes=\"auto, (max-width: 778px) 100vw, 778px\" \/><\/p>\n<p>Check both the \u201c<strong>DFSG and non-DFSG-compatible software\u201d<\/strong> options as shown below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"783\" height=\"569\" class=\"wp-image-20534\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-19.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-19.png 783w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-19-300x218.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20515-19-768x558.png 768w\" sizes=\"auto, (max-width: 783px) 100vw, 783px\" \/><\/p>\n<p>Reverting both by clicking the \u201cRevert\u201d button will reboot your system. Once your system reboots, you are all set.<\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>After installing Debian 12, it is necessary to do some tasks to enhance the functionality of Debian 12 such as updating the system to avoid any installation issues later, installing the Timeshift tool for backing up our data, installing the GNOME extension manager to installing necessary extensions, enabling the night light feature to improve eye vision and reduce strain and so on. In this article, we learned the best methods to do after the installation of Debian 12.<\/p>","protected":false},"excerpt":{"rendered":"<p>To enhance the functionality of Debian 12 such as updating, installing Timeshift tool, and enabling the night light feature, a clean installation is necessary.<\/p>","protected":false},"author":110,"featured_media":20536,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1053],"tags":[],"class_list":["post-20515","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-best-of-linux"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/20515","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/110"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=20515"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/20515\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/20536"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=20515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=20515"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=20515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}