From e3755046bcb50082742ff1d393b077bc8974e309 Mon Sep 17 00:00:00 2001 From: Shipwreckt Date: Fri, 23 Aug 2024 21:15:50 +0100 Subject: Added articals about Linux! --- public/Images/favi.png | Bin 2295 -> 22709 bytes public/Images/misc/logo.png.bk | Bin 0 -> 3677 bytes public/articals/linux/1CleaningArchLinux | 54 --------------- .../articals/linux/ArchLinux/00CleaningArchLinux | 56 +++++++++++++++ .../articals/linux/ArchLinux/01SpeedingUpArchLinux | 61 +++++++++++++++++ public/articals/linux/media/00cd | 75 +++++++++++++++++++++ public/articals/linuxlist | 11 ++- public/index.html | 2 +- public/styles.css | 1 + 9 files changed, 203 insertions(+), 57 deletions(-) create mode 100644 public/Images/misc/logo.png.bk delete mode 100644 public/articals/linux/1CleaningArchLinux create mode 100644 public/articals/linux/ArchLinux/00CleaningArchLinux create mode 100644 public/articals/linux/ArchLinux/01SpeedingUpArchLinux create mode 100644 public/articals/linux/media/00cd diff --git a/public/Images/favi.png b/public/Images/favi.png index 8ab37b1..9cce07a 100644 Binary files a/public/Images/favi.png and b/public/Images/favi.png differ diff --git a/public/Images/misc/logo.png.bk b/public/Images/misc/logo.png.bk new file mode 100644 index 0000000..050aae9 Binary files /dev/null and b/public/Images/misc/logo.png.bk differ diff --git a/public/articals/linux/1CleaningArchLinux b/public/articals/linux/1CleaningArchLinux deleted file mode 100644 index b58f913..0000000 --- a/public/articals/linux/1CleaningArchLinux +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - Cleaning Arch Linux - - - - -
- -
-
-

How to Clean Arch Linux

-

Date: 21:7:2024

-

In this artical I will be telling you how to clean up your Arch Linux system in the same way I do so.

-
-

Package Cache

-

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:

-
-

sudo pacman -Sc # Remove packages from cache not installed

-

sudo pacman -Scc # Remove packages from cache both installed and not installed

-
-

Some people like to automate this task of cleaning the cache with paccache, 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. -

-
-

Removing Orphan Packages

-

Orphan packages are those installed as dependencies for other software but are no longer needed. For example, when you install LibreWolf, 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.

- -
-

sudo pacman -Qtdq # Identify orphan packages

-

sudo pacman -Rns $(pacman -Qtdq) # Uninstall orphan packages

-
-

I suggest uninstalling Orphan packages every month or so, just like cleaning the Pacman cache.

-
-

Cache

-

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:

-
-

rm -rf ~/.cache/* # Clear the cache directory

-
-
-

That is more for now, I hope this artical has helped you clean your system.

-
- - - diff --git a/public/articals/linux/ArchLinux/00CleaningArchLinux b/public/articals/linux/ArchLinux/00CleaningArchLinux new file mode 100644 index 0000000..8c5ad81 --- /dev/null +++ b/public/articals/linux/ArchLinux/00CleaningArchLinux @@ -0,0 +1,56 @@ + + + + + + Cleaning Arch Linux + + + + +
+ +
+
+

How to Clean Arch Linux ๐Ÿงน

+

Date: 21-7-2024

+

In this artical I will be telling you how to clean up your Arch Linux system in the same way I do so.

+
+

Package Cache

+

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:

+
+

sudo pacman -Sc # Remove packages from cache not installed

+

sudo pacman -Scc # Remove packages from cache both installed and not installed

+
+

Some people like to automate this task of cleaning the cache with paccache, 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. +

+
+

Removing Orphan Packages

+

Orphan packages are those installed as dependencies for other software but are no longer needed. For example, when you install LibreWolf, 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.

+ +
+

sudo pacman -Qtdq # Identify orphan packages

+

sudo pacman -Rns $(pacman -Qtdq) # Uninstall orphan packages

+
+

I suggest uninstalling Orphan packages every month or so, just like cleaning the Pacman cache.

+
+

Cache

+

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:

+
+

rm -rf ~/.cache/* # Clear the cache directory

+
+
+
+

That is all for now, I hope this artical has helped you clean your system.

+
  Back
+    
+ + + diff --git a/public/articals/linux/ArchLinux/01SpeedingUpArchLinux b/public/articals/linux/ArchLinux/01SpeedingUpArchLinux new file mode 100644 index 0000000..f70eccc --- /dev/null +++ b/public/articals/linux/ArchLinux/01SpeedingUpArchLinux @@ -0,0 +1,61 @@ + + + + + + Speeding up Pacman ๐Ÿš— + + + + +
+ +
+
+

How to speed up Pacman ๐Ÿš—

+

Date: 23-7-2024

+
+

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!

+
+

Pacman.conf

+

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!

+ +

The first thing you want to do is go to the location of pacman.conf, which is located in /etc/pacman.conf. So you would want to run a command like this but with your preferred text editor:

+
+

sudo nvim /etc/pacman.conf

+
+

Now that you are in the configuration file, you want to navigate to a section where it says Misc options. You want to uncomment the line where it says 'ParallelDownloads.' It should look something like this:

+
+

# Misc options
+ #UseSyslog
+ Color
+ #NoProgressBar
+ CheckSpace
+ #VerbosePkgLists
+ ParallelDownloads = 5
+ ILoveCandy

+
+

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!

+
+

Mirrors ๐Ÿชž

+

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!

+

The first thing you will need to do is install the reflector program and run the reflector command.

+
+

sudo pacman -S reflector
sudo reflector --latest 10 --sort rate --save /etc/pacman.d/mirrorlist
sudo pacman -Syy # To update package list from server

+
+

After running this command, your download speed should be way faster!

+
+
+

I hope this has helped you in making Pacman not only look better but function better!

+
  Back
+    
+ + + diff --git a/public/articals/linux/media/00cd b/public/articals/linux/media/00cd new file mode 100644 index 0000000..a14505a --- /dev/null +++ b/public/articals/linux/media/00cd @@ -0,0 +1,75 @@ + + + + + + Burning optical media in Linux + + + + +
+ +
+
+

How to burn optical media in Linux ๐Ÿ’ฟ

+

Date: 23-08-2024

+
+

This is a quick tutorial to show you how to burn any file to a piece of optical disk media!

+
+

Warning โš ๏ธ

+

Once you burn an optical disk you cannot reburn it. +

Optical media does not have the best storage, normally under 1GiB so make sure your files align with the size of the optical media. +


+

What you will need ๐Ÿ“‹

+ +
+ +

Steps to burn ๐Ÿ”ฅ

+

You will only need one program to burn media to a CD; the name of that program is wodim, and it is part of a collection of programs called cdrkit, as in thename ofe this collection of programs that allow you to do a whole variaty of things withopticall media!ย  +


+ +
  • 1) Install cdrkit, on some Linux distrobutions cdrkit is already installed, but on my main Linux distrobution Arch Linux, it is not so check you have it installed, the package on your distro will most likely be called cdrkit.
  • +
    +
    +

    sudo pacman -S cdrkit

    +
    +
    + +
    + +
  • 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.

  • +
    +

    mkisofs -o movies.iso movies

    +
    +

    movies.iso being the output ISO and movies being the directory with the movies in there.

    + +
    + +
  • 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.

  • +
    +

    wodim -v dev=/dev/sr0 movies.iso

    +
    +

    movies.iso being the output ISO from the last command.

    + +
    + +
  • 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.

  • +
    +

    That is all the required steps to burn optical media on Linux, I hope this has helped you!

    +
      Back
    +    
    + + + diff --git a/public/articals/linuxlist b/public/articals/linuxlist index fa64cdc..aa4be25 100644 --- a/public/articals/linuxlist +++ b/public/articals/linuxlist @@ -26,9 +26,16 @@ -

    Tutorials

    + +

    Media tutorials

    + + +

    Arch Linux tutorials

    diff --git a/public/index.html b/public/index.html index 25df7ac..809fd43 100644 --- a/public/index.html +++ b/public/index.html @@ -39,10 +39,10 @@

    Articles

    diff --git a/public/styles.css b/public/styles.css index f807cc7..0985ee2 100644 --- 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; -- cgit v1.2.3