All tech and Linux blog, under the flag of open source world....

November 24, 2019

Changing mirrors in Fedora

You might have a problem with your package download speeds in fedora Linux but changing it is quiet easy, we will also show you a method of how to find the fastest one.

Fedora Linux 29
This guide will work on all recent Fedora versions. First head over to "etc/yum.repos.d" using gnome files, then right click on the empty section then choose open terminal. (you can do this directly with "cd /etc/yum.repos.d" command.)
Then choose a text editor, like vim or nano, and open fedora.repo using sudo. (sudo vim fedora.repo).
Now open your browser and use this link to go to fedora mirrors website, choose your version and find the mirror that you desire. (Select the one close to you that has a high bandwidth for a better speed.)
Click on Http link of the mirror that you have chosen.
Here I have selected RWTH Aachen mirror that is close to me and fast.
copy the link in the new opened page, now go back to your terminal.
In the terminal .
Here I'm editing fedora.repo in vim
Change the #baseurl  in the beginning, by pasting the mirror link. (make sure you don't remove  "$releasever" to the end of the link. because fedora finds the package file using the release version  and it also means you don't need to change your mirror when you update your fedora.)
paste your link and check if the sub directory looks similar to the previous one. then save this file. (in vim you should press Esc then type ":wq")
You can also edit the fedora-updates.repo by doing the same,  just make sure the ../updates/releasever... is included at the end. because this repo is for updates, we don't want to confuses it with the original mirror. Check your new mirrors now! :D
You can use this guide on any repository just make sure you backup.

For finding the fastest mirror

For finding the fastest mirror there are two options: 
  • Test each mirror by downloading a package from it for example I use my browser and download Apache server package and check the time it takes to download it in each mirror.
  • There is a tool here an app that does this for you, follow the guide in the README file there, also note that this is a BETA so backup your mirrors before doing anything.
Thanks to Fedora Community to make this guide happen.
Share:

April 1, 2019

How to install Vscodium in Linux. (with updates)


Visual studio code, a popular IDE for developers.

Visual studio code is among the best IDE's for code writers that features plugins, the problem is that Microsoft still steals your information through it, and it is a bit uncomfortable to see that Microsoft knows what you code.

Vscodium, the solution

Vscodium is the same as Visual studio code but it uses binary releases of VS Code without MS branding/telemetry/licensing. So you are free of Microsoft's shackles, Without loosing any features.


How to install:

First you need to add the repositories to your distribution, I used fedora so in the directory "/etc/yum.repos.d" I create a .repo file named " vscodium.repo "
Using the nano command (Sudo nano), install nano using "sudo dnf install nano" if you don't have it. after nano installation copy this instructions into the interface:

nano interface


[vscodium]
name=Vscodium Fedora $releasever
baseurl=https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/repos/rpms/
enabled=1
metadata_expire=14d
type=rpm-md
gpgcheck=1
repo_gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/vscodium



Then use " ctrl+O" to write in the directory "/etc/yum.repos.d/vscodium.repo " 
As you can see at the end of the code we see a directory containing the encryption key so we need to create encryption key for it, close then re-open nano, type this key into it make sure to include Begin and end headers in the file! :

 -----BEGIN PGP PUBLIC KEY BLOCK-----

mQINBFu8c8sBEACrPcX4UB0rGFObGzIpa3fqJy0K//W5XENNBrGlk6DS68SwkSza
QFoD+ZoGiwGZWy+X5m2bm6A0j8ff61uKLZFx4turikggdqey6RL3NIQOmhzbz9jc
90ZtVG3W2VHwP1Oy2sITJBD1UdCtnRR7ONfoLVJbavPrjHL0VEJqV6kF7ki45DAK
yVbEGjsg668l8FmfMIYyoqV8HQ+JosXQ6ItOH2QlGwvD5RvBmIRzIXSS159+UHBj
jrk81Pb1RLWUafoh8Geh4VZHQrvqkLmds/74KZQg47zDr1atKeIRe/p7UPZIEJsr
puOQP+4yfW8CKN/du62mO37xyJBcQpdsk+27/AAbpluwwzfrRAZcI9wqlmE7CRie
tARI3eLA/BVeLm0U5Jxemc1asTAptQTij9BvzFfZcpkwK+AcVmaicQhJ9iaa8bQ2
oTTE5keewHgVdun+XfeMPPuRcF5QxeVK9dZQVI3nSObOXrehulkYXusMQ4vq8bh7
GktI5n1O2qehnSn/Is7kdLBWDy8xGlgYEWe9oStQ5NSXo4PR7YWDzPs5aXBz9LOa
zthJqM1Ah41q5/rSgfhM3e+vXtF3M8phLoJTE5mlb370XVH1ZLNbXVvIuHO0L+Lh
ruZc/tREFWThOiS+FIGv/MDs4DieWEwr9+/598pFERo7cJEo5AZNgPy8SQARAQAB
tCRQYXZsbyBSdWR5aSA8cGF1bGNhcnJvdHlAcml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M/QFLE0yrN7di7oDeN/JUhPPgppCken/xFihoxz
hlNM8vyJMQiddIBiEcz0zcAbbT74+qFJv9KRsfWAU0MEy3a66H/hybEJu140qTNw
d7e/dbqns8bDX1BP/x5/QKfxbZNoH2QWmCdv/b5dJ97OXFBtPM/VnOYaaFG5y2gX
=LCWI
-----END PGP PUBLIC KEY BLOCK-----


 Copy and write this key into this directory "/etc/pki/rpm-gpg/vscodium", note that vscodium is plain text and does not require any file type,  then just type in "sudo dnf install codium" and you are ready to go! 

After installation run vscodium,  settings>type in the bar "@tag" and click the first bar, then unselect the first three row that appears.




Thanks to fedora community for this tutorial.
Github link for vscodium.
Enjoy coding!
Share:

March 26, 2019

IT, ICT courses and certificates




A lot of people including me are looking for specific courses around computer science, engineering and programming. There are world wide certificates available. To increase the chance of getting university acceptance or getting employed, I listed some of them which are popular:

ICDL:

This certificate is recommended for people below age of 12. The test contains Word, Excel, PowerPoint, Web browsing, Access, windows fundamentals and computer hardware fundamentals. So if you use your computer daily, you surf the web and do office work, you can go and give this test without any preparation. This certificate has a low value and not much worth getting.
Click here for official website.

LPIC (Linux institute):

Linux fundamentals, Linux powers billions of smartphones, big part of the web and workstations. LPIC consists of different levels, from beginner to expert, this certificate has medium value, holding the expert certificate gives you a lot of advantages.

Click here for official website.

RHCA, RHCSA (Red hat):

Red hat certificates are very well known and accepted everywhere, these certificates are similar to LPIC but they are much more advanced and a bit harder, the courses are a bit expensive, but its worth it. It has a high value.

Click here for official website.

CCNA (By Cisco): 

IF you like networking this is for you, Cisco also provides some training and examinations for networking which is also very good if you can get into the high levels. They have a high value.
 
Click here for official link.

 

Microsoft courses (Azure etc.):

Microsoft also has some courses for it's own cloud platform, artificial intelligence and etc. This is recommended because it has free online learning to some point. It has a high value.

Click here for official link.

There are many other certifications as well that I might not write about, these are the most important ones that I found, comment below if you have any suggestions so I can add it.
Share:

March 19, 2019

I switched to linux for one month.....

A month ago I got fed up with Windows crashing, being slow and updates actually making it worse than better. I know I don't have the fastest PC in the universe, It's an old 2nd generation quad core i5, with 4 gigabytes of RAM and a mechanical drive, but this must be sufficient to run windows stand alone properly.

There are no versions of Linux that are "Original" or "Main" each have different tastes and looks, and it's up to you to choose what do you want. Linux has a lot of "Distributions", ran buy a company or community. For example android is ran by Google and manufactures pay some money to use it, on the other hand community driven distributions are free. Most companies have 2 distributions, one is enterprise (for companies) and a free version.
At start I used a Virtual machine to get started and I went for ubuntu, it was a nice distribution but very similar experience to windows, but I wanted to go more deep into and giving up some support because ubuntu is widely used.

Ubuntu User interface

 If you see the graph of Linux distributions in Wikipedia, there are some main core distributions that others derived from it. Friends recommended Fedora so I went for it.
 Fedora is a redhat sponsored, Community driven distribution with an easy user interface and active community, that has a real Linux taste to it.

Getting started:

It wasn't hard, I live booted the OS from the flash drive and did my daily web browsing and typing, Changing date and time, background, the GUI was very good and buttery smooth. So I installed it on my main hard disk.

As a daily driver:

My first usage of Linux terminal was updating the system, you might thing I went through a series of hack-like commands but no, it doesn't work like that. typing these phrases can help you a lot:
  • sudo dnf intstall <something>: obviously to install something.
  • sudo dnf update: updating the packages(Apps) that are installed.
  • sudo dnf remove <something>: Removing a specific package.
sudo means super user do (something like run as administrator in windows)

Updating all applications at once, very convincing

 The hard part:

Some apps like Adobe software don't run in Linux so you should run them in a windows virtual machine but I had dual boot so I used my pre-installed windows.
A real usage for Linux is editing the core part of the OS dependent on your usage, installing themes, editing the kernel, and mostly developer work. for example some Linux distributions are only 750 MB in size so you can run them in super old laptops and PC's.
It takes time for your brain to understand what is going on the screen, if you come from a windows background. (like me 😊 )

Conclusion:

Pros: 

  • 100% editable, customizable from the kernel to GUI. 
  • Ultimate security, no one can spy on you unlike windows which instantly reports your data to Microsoft.
  • One of developers favorites.
  • Faster work done using Terminal.
  • Works on literally any PC, light Linux versions can be installed on a single core processor.
  •  Supports x64_x86 , ARM, and many other CPU architectures so you can install them on PC's, Phones, and other stuff. (I saw someone that installed it on a nintendo)

 Cons:

  •  Takes time to learn and master.
  • Some applications are not supported like Adobe apps.
  • Gaming is limited. (some game engines regret to work on it.)
I'm keeping it and now windows only opens up in my PC to run some games or Photoshop.

Share:

Labels