commit e3755046bcb50082742ff1d393b077bc8974e309
parent f98ea96668786d92862d990919831b57bad73cc1
Author: Shipwreckt <shipwreckt@mailfence.com>
Date: Fri, 23 Aug 2024 21:15:50 +0100
Added articals about Linux!
Diffstat:
9 files changed, 203 insertions(+), 57 deletions(-)
diff --git a/public/Images/favi.png b/public/Images/favi.png
Binary files differ.
diff --git a/public/Images/misc/logo.png.bk b/public/Images/misc/logo.png.bk
Binary files differ.
diff --git a/public/articals/linux/1CleaningArchLinux b/public/articals/linux/1CleaningArchLinux
@@ -1,54 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Cleaning Arch Linux</title>
- <link rel="stylesheet" href="../../styles.css">
- <link rel="icon" href="../../Images/favi.png" type="image/x-icon">
-</head>
-<body>
- <header>
- <nav>
- <ul>
- <li><a href="../../index.html">Home</a></li>
- <li><a href="../../links.html">Links</a></li>
- <li><a href="../../projects.html">Projects</a></li>
- <li><a href="../../contact.html">Contact</a></li>
- </ul>
- </nav>
- </header>
- <main class="description">
- <h1>How to Clean Arch Linux</h1>
- <h3>Date: 21:7:2024</h3>
- <p>In this artical I will be telling you how to clean up your <a href="https://archlinux.org">Arch Linux system</a> in the same way I do so.</p>
- <hr>
- <h2>Package Cache</h2>
- <p>The first thing you want to do is clean the Pacman cache, as Pacman does not automatically clean it. This is because Pacman retains the cache in case you need to downgrade a package or reinstall it after uninstalling. To clean the cache, use the following commands:</p>
- <div class="code-box">
- <p>sudo pacman -Sc # Remove packages from cache not installed</p>
- <p>sudo pacman -Scc # Remove packages from cache both installed and not installed</p>
- </div>
- <p>Some people like to automate this task of cleaning the cache with <a href="https://wiki.archlinux.org/title/Pacman#Cleaning_the_package_cache">paccache</a>, but personally I would not because it is something that takes around five minutes max to do. However, it is your choice if you want to do so to avoid the trouble of doing it manually. Regardless of whether you choose to do this manually or automatically, I suggest cleaning the cache monthly.
-</p>
- <hr>
- <h2>Removing Orphan Packages</h2>
- <p>Orphan packages are those installed as dependencies for other software but are no longer needed. For example, when you install <a href="https://librewolf.net/">LibreWolf</a>, it downloads a package called librewolf-debug as a dependency. Once the installation is complete, librewolf-debug becomes an orphan package because it is no longer used by LibreWolf.</p>
-
- <div class="code-box">
- <p>sudo pacman -Qtdq # Identify orphan packages</p>
- <p>sudo pacman -Rns $(pacman -Qtdq) # Uninstall orphan packages</p>
- </div>
- <p>I suggest uninstalling Orphan packages every month or so, just like cleaning the Pacman cache.</p>
- <hr>
- <h2>Cache</h2>
- <p>Sometimes you want to clean out the ~/.cache directory, as it can accumulate a large number of files from various programs on your system. The cache directory contains temporary files used by different applications to speed up their processes. In general, it is safe to delete all items in this directory, but be cautious if you have specific applications with unusual caching mechanisms. To clean the cache directory run the following command:</p>
- <div class="code-box">
- <p>rm -rf ~/.cache/* # Clear the cache directory</p>
- </div>
- <hr>
- <p>That is more for now, I hope this artical has helped you clean your system.</p>
- </main>
-</body>
-</html>
-
diff --git a/public/articals/linux/ArchLinux/00CleaningArchLinux b/public/articals/linux/ArchLinux/00CleaningArchLinux
@@ -0,0 +1,56 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Cleaning Arch Linux</title>
+ <link rel="stylesheet" href="../../../styles.css">
+ <link rel="icon" href="../../../Images/favi.png" type="image/x-icon">
+</head>
+<body>
+ <header>
+ <nav>
+ <ul>
+ <li><a href="../../../index.html">Home</a></li>
+ <li><a href="../../../links.html">Links</a></li>
+ <li><a href="../../../projects.html">Projects</a></li>
+ <li><a href="../../../contact.html">Contact</a></li>
+ </ul>
+ </nav>
+ </header>
+ <main class="description">
+ <h1>How to Clean Arch Linux ๐งน</h1>
+ <h3>Date: 21-7-2024</h3>
+ <p>In this artical I will be telling you how to clean up your <a href="https://archlinux.org">Arch Linux system</a> in the same way I do so.</p>
+ <hr>
+ <h2>Package Cache</h2>
+ <p>The first thing you want to do is clean the Pacman cache, as Pacman does not automatically clean it. This is because Pacman retains the cache in case you need to downgrade a package or reinstall it after uninstalling. To clean the cache, use the following commands:</p>
+ <div class="code-box">
+ <p>sudo pacman -Sc # Remove packages from cache not installed</p>
+ <p>sudo pacman -Scc # Remove packages from cache both installed and not installed</p>
+ </div>
+ <p>Some people like to automate this task of cleaning the cache with <a href="https://wiki.archlinux.org/title/Pacman#Cleaning_the_package_cache">paccache</a>, but personally I would not because it is something that takes around five minutes max to do. However, it is your choice if you want to do so to avoid the trouble of doing it manually. Regardless of whether you choose to do this manually or automatically, I suggest cleaning the cache monthly.
+</p>
+ <hr>
+ <h2>Removing Orphan Packages</h2>
+ <p>Orphan packages are those installed as dependencies for other software but are no longer needed. For example, when you install <a href="https://librewolf.net/">LibreWolf</a>, it downloads a package called librewolf-debug as a dependency. Once the installation is complete, librewolf-debug becomes an orphan package because it is no longer used by LibreWolf.</p>
+
+ <div class="code-box">
+ <p>sudo pacman -Qtdq # Identify orphan packages</p>
+ <p>sudo pacman -Rns $(pacman -Qtdq) # Uninstall orphan packages</p>
+ </div>
+ <p>I suggest uninstalling Orphan packages every month or so, just like cleaning the Pacman cache.</p>
+ <hr>
+ <h2>Cache</h2>
+ <p>Sometimes you want to clean out the ~/.cache directory, as it can accumulate a large number of files from various programs on your system. The cache directory contains temporary files used by different applications to speed up their processes. In general, it is safe to delete all items in this directory, but be cautious if you have specific applications with unusual caching mechanisms. To clean the cache directory run the following command:</p>
+ <div class="code-box">
+ <p>rm -rf ~/.cache/* # Clear the cache directory</p>
+ </div>
+ <hr>
+ <center>
+ <p>That is all for now, I hope this artical has helped you clean your system.</p>
+ <pre text-align=center> <a href="../../linuxlist">Back</a>
+ </main>
+</body>
+</html>
+
diff --git a/public/articals/linux/ArchLinux/01SpeedingUpArchLinux b/public/articals/linux/ArchLinux/01SpeedingUpArchLinux
@@ -0,0 +1,61 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Speeding up Pacman ๐</title>
+ <link rel="stylesheet" href="../../../styles.css">
+ <link rel="icon" href="../../../Images/favi.png" type="image/x-icon">
+</head>
+<body>
+ <header>
+ <nav>
+ <ul>
+ <li><a href="../../../index.html">Home</a></li>
+ <li><a href="../../../links.html">Links</a></li>
+ <li><a href="../../../projects.html">Projects</a></li>
+ <li><a href="../../../contact.html">Contact</a></li>
+ </ul>
+ </nav>
+ </header>
+ <main class="description">
+ <h1>How to speed up Pacman ๐</h1>
+ <h3>Date: 23-7-2024</h3>
+ <hr>
+ <p>It is very easy to speed up Pacman, and we can do it in a few easy steps, so follow this guide, and your favourite package manager will be fast as anything!</p>
+ <hr>
+ <h2>Pacman.conf</h2>
+ <p>Pacman can download packages in parallel, meaning you are able to download more than one package at a time, which makes the process of installing and updating packages way faster!</p>
+
+ <p>The first thing you want to do is go to the location of pacman.conf, which is located in <b>/etc/pacman.conf</b>. So you would want to run a command like this but with your preferred text editor:</p>
+ <div class=code-box>
+ <p>sudo nvim /etc/pacman.conf</p>
+ </div>
+ <p>Now that you are in the configuration file, you want to navigate to a section where it says <b>Misc options</b>. You want to uncomment the line where it says <b>'ParallelDownloads.'</b> It should look something like this:</p>
+ <div class=code-box>
+ <p># Misc options<br>
+ #UseSyslog<br>
+ Color<br>
+ #NoProgressBar<br>
+ CheckSpace<br>
+ #VerbosePkgLists<br>
+ ParallelDownloads = 5<br>
+ ILoveCandy</p>
+ </div>
+ <p>If you have a keen eye, you may have spotted the last line, which says 'I Love Candy,' and the reason why this line is here is because it gives the Pacman prompt when you run it a bit of styal with the pound signs being replaced with Pacman!</p>
+ <hr>
+ <h2>Mirrors ๐ช</h2>
+ <p>If you did not know, a mirror is a server where the packages you install are hosted. Ideally, you want to download all of your packages from the fastest mirrors, so let me show you how to do that!</p>
+ <p>The first thing you will need to do is install the reflector program and run the reflector command.</p>
+ <div class=code-box>
+ <p>sudo pacman -S reflector<br> sudo reflector --latest 10 --sort rate --save /etc/pacman.d/mirrorlist<br>sudo pacman -Syy # To update package list from server</p>
+ </div>
+ <p>After running this command, your download speed should be way faster!</p>
+ <hr>
+ <center>
+ <p>I hope this has helped you in making Pacman not only look better but function better!</p>
+ <pre text-align=center> <a href="../../linuxlist">Back</a>
+ </main>
+</body>
+</html>
+
diff --git a/public/articals/linux/media/00cd b/public/articals/linux/media/00cd
@@ -0,0 +1,75 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Burning optical media in Linux</title>
+ <link rel="stylesheet" href="../../../styles.css">
+ <link rel="icon" href="../../../Images/favi.png" type="image/x-icon">
+</head>
+<body>
+ <header>
+ <nav>
+ <ul>
+ <li><a href="../../../index.html">Home</a></li>
+ <li><a href="../../../links.html">Links</a></li>
+ <li><a href="../../../projects.html">Projects</a></li>
+ <li><a href="../../../contact.html">Contact</a></li>
+ </ul>
+ </nav>
+ </header>
+ <main class="description">
+ <h1>How to burn optical media in Linux ๐ฟ</h1>
+ <h3>Date: 23-08-2024</h3>
+ <hr>
+ <p>This is a quick tutorial to show you how to burn any file to a piece of optical disk media!</p>
+ <hr>
+ <h3>Warning โ ๏ธ</h3>
+ <p>Once you burn an optical disk you cannot reburn it.</b>
+ <p>Optical media does not have the best storage, normally under 1GiB so make sure your files align with the size of the optical media.</b>
+ <hr>
+ <h2>What you will need ๐</h2>
+ <ul>
+ <li>Optical drive capable of writing to a CD</li>
+ <li>A computer with Linux ๐ง๐ฅ๏ธ</li>
+ <li>The ability to read instructions and to follow them ๐ง </li>
+ </ul>
+ <hr>
+
+ <h2>Steps to burn ๐ฅ</h2>
+ <p>You will only need one program to burn media to a CD; the name of that program is <a href="https://linux.die.net/man/1/wodim">wodim</a>, and it is part of a collection of programs called <a href="https://packages.debian.org/source/sid/cdrkit">cdrkit</a>, as in thename ofe this collection of programs that allow you to do a whole variaty of things withopticall media!ย
+ <hr>
+
+ <li>1) Install cdrkit, on some Linux distrobutions cdrkit is already installed, but on my main Linux distrobution <a href="https://archlinux.org">Arch Linux</a>, it is not so check you have it installed, the package on your distro will most likely be called cdrkit.</li>
+ <br>
+ <div class="code-box">
+ <p>sudo pacman -S cdrkit</p>
+ </div>
+ <br>
+
+ <hr>
+
+ <li>2) You want to get whatever data you want into an ISO file, so if you had a file called movies that held movies you would use the command.</li><br>
+ <div class="code-box">
+ <p>mkisofs -o movies.iso movies</p>
+ </div>
+ <p>movies.iso being the output ISO and movies being the directory with the movies in there.</p>
+
+ <hr>
+
+ <li>3) Now the last command is the actual event of burning the optical media! So insert it into your optical drive and type this command.</li><br>
+ <div class="code-box">
+ <p>wodim -v dev=/dev/sr0 movies.iso</p>
+ </div>
+ <p>movies.iso being the output ISO from the last command.</p>
+
+ <hr>
+
+ <li>4) Now it is time to sit back and wait for it to burn; do not get impatient; give it time, and it will burn. When it is done, you may enject the optical media from the CD drive, and it should have all the files you desire.</li><br>
+ <center>
+ <hr><p>That is all the required steps to burn optical media on Linux, I hope this has helped you!</p>
+ <pre text-align=center> <a href="../../linuxlist">Back</a>
+ </main>
+</body>
+</html>
+
diff --git a/public/articals/linuxlist b/public/articals/linuxlist
@@ -26,9 +26,16 @@
<ul>
<li>05-08-2024 - <a href="linux/2LinuxFileHierarchy">Linux File Hierarchy</a></li>
</ul>
- <h2>Tutorials</h2>
+
+ <h2>Media tutorials</h2>
+ <ul>
+ <li>23-08-2024 - <a href="linux/media/00cd">How to burn optical media in Linux ๐ฟ</a></li>
+ </ul>
+
+ <h2>Arch Linux tutorials</h2>
<ul>
- <li>21-07-2024 - <a href="linux/1CleaningArchLinux">How To Clean Arch Linux</a></li>
+ <li>21-07-2024 - <a href="linux/ArchLinux/00CleaningArchLinux">How To Clean Arch Linux ๐งน</a></li>
+ <li>23-08-2024 - <a href="linux/ArchLinux/01SpeedingUpArchLinux">Speeding up Pacman ๐</a></li>
</ul>
</main>
</body>
diff --git a/public/index.html b/public/index.html
@@ -39,10 +39,10 @@
<section class="posts">
<h2>Articles</h2>
<ul>
+ <li>23-08-2024 - <a href="articals/linuxlist">Articles about Linux</a></li>
<li>15-08-2024 - <a href="articals/programminglist">Articles about Programming</a></li>
<li>08-08-2024 - <a href="articals/internetlist">Articles about the Internet</a></li>
<li>07-08-2024 - <a href="articals/neovimlist">Neovim run through</a></li>
- <li>25-07-2024 - <a href="articals/linuxlist">Articles about Linux</a></li>
</ul>
</section>
</main>
diff --git a/public/styles.css b/public/styles.css
@@ -91,6 +91,7 @@ a:hover {
}
.code-box {
+ padding-top: 100px;
background-color: #c8c8c8;
font-family: 'FreeSans', sans-serif;
font-size: 15px;