Daily Archives: 19 February, 2021

How to speed up apt downloads using apt-fast in ubuntu

Have you ever had to install a lot of updates? And does it take you a long time? Keeping our systems always up to date is important, but it’s also important to save time and optimize our work.
Apt-fast is a script that allows each package to be pulled from multiple locations during its download. This in turn leads to faster download of all packages, and this leads to faster completion of our work on updating and installing packages.

First things first, lets add the repository, download and install app-fast

sudo add-apt-repository ppa:apt-fast/stable sudo apt-get update sudo apt-get install apt-fast
Code language: JavaScript (javascript)

Now you can use it just like apt-get or apt

sudo apt-fast update sudo apt-fast upgrade sudo apt-fast dist-update

Here is the output of apt-fast installing bmon

root@webleit:~# apt-fast install bmon bmon 1:4.0-6 45KiB libconfuse2 3.2.2+dfsg-1 24KiB libconfuse-common 3.2.2+dfsg-1 5.4KiB libnl-route-3-200 3.4.0-1 146KiB Download size: 219KiB Do you want to download the packages? [Y/n] 02/20 17:07:47 [NOTICE] Downloading 4 item(s) 02/20 17:07:47 [NOTICE] Verification finished successfully. file=/var/cache/apt/apt-fast/libconfuse2_3.2.2+dfsg-1_amd64.deb 02/20 17:07:47 [NOTICE] Download complete: /var/cache/apt/apt-fast/libconfuse2_3.2.2+dfsg-1_amd64.deb 02/20 17:07:47 [NOTICE] Verification finished successfully. file=/var/cache/apt/apt-fast/libnl-route-3-200_3.4.0-1_amd64.deb 02/20 17:07:47 [NOTICE] Download complete: /var/cache/apt/apt-fast/libnl-route-3-200_3.4.0-1_amd64.deb 02/20 17:07:47 [NOTICE] Verification finished successfully. file=/var/cache/apt/apt-fast/libconfuse-common_3.2.2+dfsg-1_all.deb 02/20 17:07:47 [NOTICE] Download complete: /var/cache/apt/apt-fast/libconfuse-common_3.2.2+dfsg-1_all.deb 02/20 17:07:47 [NOTICE] Verification finished successfully. file=/var/cache/apt/apt-fast/bmon_1%3a4.0-6_amd64.deb 02/20 17:07:47 [NOTICE] Download complete: /var/cache/apt/apt-fast/bmon_1%3a4.0-6_amd64.deb Download Results: gid |stat|avg speed |path/URI ======+====+===========+======================================================= a26dfb|OK | 5.6MiB/s|/var/cache/apt/apt-fast/libconfuse2_3.2.2+dfsg-1_amd64.deb adf53e|OK | 10MiB/s|/var/cache/apt/apt-fast/libnl-route-3-200_3.4.0-1_amd64.deb 977019|OK | 2.6MiB/s|/var/cache/apt/apt-fast/libconfuse-common_3.2.2+dfsg-1_all.deb 77f61e|OK | 5.4MiB/s|/var/cache/apt/apt-fast/bmon_1%3a4.0-6_amd64.deb Status Legend: (OK):download completed. Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libconfuse-common libconfuse2 libnl-route-3-200 The following NEW packages will be installed: bmon libconfuse-common libconfuse2 libnl-route-3-200 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/224 kB of archives. After this operation, 798 kB of additional disk space will be used. Do you want to continue? [Y/n] y
Code language: Bash (bash)

In case during download a file crashes you can use the command clean

sudo apt-fast clean
How to install Lubuntu 20.10 on Windows 10 Hyper-V

How to install Lubuntu 20.10 on Windows 10 Hyper-V

If you need a lite and fast Linux for your test in windows 10 – Lubuntu is definitely an option.

What is lubuntu?

Lubuntu is a fast and lightweight operating system with a clean and easy-to-use user interface. It is a Linux system, that uses the minimal desktop LXDE/LXQT, and a selection of light applications. Because of this, Lubuntu has very low hardware requirements. Lubuntu was founded by Mario Behling and has been grown for many years by Julien Lavergne.

Today we are going to try it by installing it on a hyper-v server here is a video tutorial:

How to Disable USB ports, CD-ROM and Floppy drives in Ubuntu

How to Disable USB ports, CD-ROM and Floppy drives in Ubuntu

In the company where I work, the employees often had to work from their homes during the pandemic. This necessitated the need to encrypt these laptops, and then to the question of how to stop all USB ports and CDs. In this article, we will look at some simple but effective methods to disable USB ports, CD drives and floppies.

But in the end, why do we need all this?
Well, often people, without even realizing it, can forget their laptop unlocked in a cafe and a conscientious person can quickly download a few key files or do a bunch of other nonsense. Therefore, in some cases, locking all communication ports on the laptop would increase your corporate security.

So what to do for usb ports. There is a very simple command that will help us in this case.

sudo echo "blacklist usb-storage" >> /etc/modprobe.d/blacklist.conf
Code language: Bash (bash)

Now for the CD-ROM just a reminder for all of this commands you have to be as root..

eject -i 1 chmod 000 /cdrom chmod 000 /media

It’s a simple solution but it works perfectly.

And for the floppy drive

chmod 000 /dev/fd0

In conclusion, we could say that the time consuming for this whole operation is no more than two minutes and the headache that we could save from possible theft of information is staggering.