La Boina Roja

Linux, the struggles are real!


Leave a comment

How to change fonts in tty on Fedora

This tutorial is for tty only! This how to did not work in Konsole, I got some funny looking error message 😮 Which I didn’t care too much about, since I am tty junkie and terminal emulators have unlike tty a menu in which can you change the font. This also explains why the usual screenshots are missing, I had to take pictures. And yes they suck, I can’t take pictures, I know 🙄

I entered tty3 by hitting

Ctrl+Alt+F3

(read more about getting in and out of tty here).

Where I was presented with this screen:

logintty

I logged with my username and password, the regular ones, no need to login as root.

Then I typed:

cd /lib/kbd/consolefonts

libkbdconsolefontsThis moves to directory where all the fonts are stored, to see which fonts there are, type:

ls

showfonts

These are the fonts you can choose from:

allfonts

To see what a font (for example sun12X22.psfu.gz) looks like type:

setfont sun12x22.psfu.gz

Yes you can use TAB completion in tty too!

Here you can see what earlier mentioned font looks like:

resultsetfont

Keep in mind this is a temporary solution, for a permanent solution the .bashrc file needs to modified 💡

 

Remember you can always do the cliccie for a larger piccie 😛 Yes, people my laptop is so gross, so am I 😎 Yes I have a piece of tape on my camera, the world doesn’t need so me naked o_O Yes there is a can of beer there (Hertog Jan) deal with it.


Leave a comment

How to get the HP OfficeJet 3833 to work on Fedora

A short and quick tutorial, just for me. You don’t like it? Feel free to FUCK OFF

sudo dnf -y install hplip-gui-3.18.12-9.fc29.x86_64

Before setting up the printer through “HPLIP Graphical Tools” make sure the printer and laptop are connected with a “USB AB cable” 🙄 I cannot use the printer over wireless, cable will have to do. Which btw, is perfectly fine for me.

Scanner has to be set up outside “HPLIP Graphical Tools” .

Simple Scan is the way to go (Xsane looks and behaves like shit 😡 )

su
dnf install simple-scan

The printer’s user manual can be found here.


Leave a comment

How to play vids on Reddit, Facebook, Twitter and install codecs in Fedora

If you can wonder why you can play vids on youtube, but need to  do additional shit to play vids on sites like Reddit, Facebook, Twitter etc. I will basically give you two words HTML5 and h264, don’t bother asking me anything about those subjects  o_O

I had to Google like crazy to find the solution, hence I am creating a post. Credit goes to gman1  ⭐  he shared his solution on here. I was drunk (yeah I know 🙄  go fuck yourself now) when I fixed the problem. So the usual screenshots, are missing 💡

What you basically have to do is, fire up terminal paste the following code and follow the instructions on your screen.

su

When asked type your password. Then type the following commands:

dnf install https://download1.rpmfusion.org/{free/fedora/rpmfusion-free,nonfree/fedora/rpmfusion-nonfree}-release-$(rpm -E %fedora).noarch.rpm
dnf install ffmpeg-libs compat-ffmpeg28

This last command adds the codecs/plugins in your Fedora system, so you can play all vids in Dragon Player for example.

dnf install gstreamer1-libav gstreamer1-plugins-ugly


Leave a comment

How to change permissions on an external drive

Yes I am back again, and yes this how-to sucks major ass. But fuck it, I wrote it for ME not for you  photo fpuh.gif It took me way too fucking long to figure out, how to change the permissions on my new external 1TB hard drive  photo piangry.gif  After formatting and mounting it, the fuckface turned out to be read only. I formatted the drive to ext4, yes I love pain in the ass, how did you guess  photo emo.gif Anyways, here we go:

First find out what the new drive is called, we do this by typing:

 sudo fdisk -l

When asked, type your password.

finddriveIn my case the external hard drive is /dev/sdb1, then you need to find /dev/sdb1‘s mountpoint.

Type:

lsblk

mount

Now we know /dev/sdb1‘s mountpoint, we can type

sudo chown -R username:username /path/to/mounted/drive

Which in my specific case would look like:

sudo chown -R roja:roja /run/media/roja/6e197c29-4c0a-4172-a802-fe3068801a89/

Don’t worry peepz  photo emo.gif I used tab completion.

writing

After you typed your password, there will be no screen activity. But trust me, you can write + x to your external hard drive now  photo honger.gif

(The last command will change the owner and group of all the files on the drive, so be aware. I was so pissed in figuring this out, I didn’t give a fuck  photo emo.gif Also you can always do the cliccie for a larger piccie  photo puh2.gif)


Leave a comment

How to change Vim’s default color scheme on Fedora

That should be technically speaking relatively “easy” (notice the quotation marks  photo emo.gif?). All you have to do is open en Vim en type:

:colo torte

(torte is one of Vim’s default colorschemes, meaning this scheme is preinstalled with Vim. You can find a listing of default colorschemes here.)

But then this shit happens you get,  the “E185: Cannot find color scheme ‘torte’ photo piangry.gif

colotorte

Now what???? I am ashamed to say that figuring this problem out took me DAYS. Yes people you are reading it correctly it took me fucking DAYS  photo bonk.gif to find out what was going on.

Here is the thing, apparently Fedora comes with a minimal install of Vim, which is very close to Vi. If you want to mess around with color schemes you have to install vim-enchanced. And how does one install vim-enhanced? By typing:

su -c “dnf install -y vim-enhanced”

vimenhancedinstall

When it asks for password, it is asking for your root password.

After installation is completed, open Vim and then type the following command:

:colo torte

The colorscheme will be set to torte!

(Remember, you can always do the cliccie for a larger piccie  photo puh2.gif Disclaimer: For the sake of this tutorial I used Konsole normally I am a tty person only these days.)


Leave a comment

How to move pages up and down in tty in Fedora

Yes, people this lady is becoming a tty junkie  photo shiny.gif I prefer it over Konsole and now I am so glad I went through the pain ( photo emo.gif) of learning basics of Vim. There is no need for me to leave tty now, besides from doing obvious Desktop Environment thingies.

If you want to move a page up:

Shift + Page Up

I would like to point out the amount you of pages you can go up is limited  photo piidea.gif In my case I can go up like 8 pages, I’ve heard you can edit this by editing your .bashrc file. When I discover how to do that, I’ll write a how-to  photo nodding.gif

If you want to move a page down:

Shift + Page Down

Let’s say you have moved 5 pages up, but you don’t want to press Shift + Page Down four times to go back to the last page. If you press:

Shift + End

or

Shift + Home

you’ll get back to the last page, from what ever page you currently are.

You could also hit:

Ctrl+l

this clears the screen.


Leave a comment

Recommendation: A basic guide to systemd in Fedora.

Well, since the dust of the drama has been settled *coughs Devuan *coughs  photo schater.gif we all know systemd will be the way to go in Linux. Even the OS’s that have been using Upstart will replace Upstart with systemd soon. If you want to get a quick hold of the basics then the Fedora Magazine has great series of articles that will give you a fundamental understanding of systemd.

I have pdf’d the series here (don’t hit the print button blindly, the comments of the articles are also included in the pdf. Yeah I know  photo emo.gif)

1_systemd_initialization
2_systemd_unit_file_basics
3_systemd_converting_sysvinit_scripts
4_systemd_using_the_journal
5_systemd_masking_units
6_systemd_dependencies
7_systemd_template_units

 


Leave a comment

How to return to the Desktop Environment from tty in Fedora

I.had.to.Google.like.MAD  photo piangry.gif to find this solution  photo emo.gif

All you have to do is press:

Alt+F1

You enter tty from the Desktop Envrionment by pressing  Ctrl+Alt+F2 up till Ctrl+Alt+F6 .

If  you want to switch between several tty’s, like  if you are for example in tty3 and want to go to tty2 all you have to do is hit Alt+F2 and you are in tty2. Nice huh?

Btw, let’s not use the comment section of this post to debate my Google skills okay  photo talktothehand.gif


Leave a comment

Regarding the “Invalid partition table!” error in Fedora on a Dell E5250

invalid_partition_table

If you get this during the boot process of Fedora, you might know that pressing on enter will continue the boot process. If you however don’t want your boot process to stop at the “Invalid partition table!” error, then you should do the following. With the next installation of Fedora, choose “standard partition” in the Anaconda installer (see picture below), the default setting is “lvm” which is the cause of this error.

standard_partition

 Edit: I know on the Dell site, people blame this error on an outdated BIOS. But I still got this error after updating my BIOS.

(Remember, you can always do the cliccie for a larger piccie  photo puh2.gif)