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

Showing posts with label tutorial. Show all posts
Showing posts with label tutorial. Show all posts

February 8, 2020

Learning the Linux command line with OvertheWire

Linux terminal running
  I can say that after switching to Linux, looking at the terminal was frustrating, I would avoid it at all costs, that's why I switched to "Celluloid" a gnome made FFmpeg video player. After dealing with a lot of problems and must usages of the terminal I essentially learnt the commands to progress my work in Linux.
 Recently p4r4xor, introduced to me this really fun game to do and learn, hosted by overthewire, which puts you through different tasks to learn how to manage a server, crack some and memorize some commands.
 The game is developed in a way which will put you through different challanges that increases your productivity and strength and it is established through an SSH connection to the server.





There are different modes as you go, for example bandit sneaks through the files to find information.

The website: https://overthewire.org/wargames/
it's suggested to play as a bandit if you are a beginner.



here I have done the Bandit challange till level 5 with the methods to solve:

Share:

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/du62mO37xyJB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3FGdMXR7WwINZaToh+Lqaj4YXpanjPzGMGKZlzaSdj6avm7KT3HGHjO
Gk/nz0rAsqXfuzQBkHZ+JozUMqrh30+POcvkyFhqmTQ9juECFzOtegbEWYdDFBMA
tig1whBccebZ0W+Sva+e1AKktwHNtweaofCg8zQ39Nx1KOz9FoH4B2QF+dYU/yMQ
BpPYTRQPfbaf2/t5JJaoplWrE2gP+JS8ET11J7U4xtzqs7QprcCurTZv42PjwPKu
Hc8uwE1VaeX+d7zRGXD9ooR+u+BWKiwxD9p54/QHu/qh/x/4evrETTIZGsheojgm
srMYT2mW1hLFcOANAgvxuIm+O51+XYviQCGPqg8J2jm5zmxMNwEhVx0ObYcnJqve
klJniYNw9Ja9gnXxXWycChhmGM/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:

Labels