Display IP address in console login screen

2018-04-30 1 min read Learning

Here is one liner that will add the current IP address in the console login screen (if you are not running X as is case for servers):

(ip -o -4 a| awk '$2 !="lo" {print "\nIP Address ::"$4}' |tr '\n' ',';echo)>>/etc/issue

Just execute the above command as root. It will add the required code in “/etc/issue” to display the IP address. BTW, you can also use “\4” or “\6” instead of that command to get the IP but that will not work with some old versions of Linux.

Continue reading

Fedora – change from one edition to some other

2017-03-27 1 min read Fedora

You will need to install convert-to-edition, description

Name        : convert-to-edition
Arch        : noarch
Epoch       : 0
Version     : 25
Release     : 1
Size        : 9.7 k
Repo        : fedora
Summary     : Script for converting between Fedora Editions
URL         : https://pagure.io/fedora-release
License     : MIT
Description : Provides a script to convert the running system between Fedora Editions

So, all you need to do to convert from one edition to another is :

convert-to-edition -e <edition>

flatpak – get latest libreoffice

2017-03-20 1 min read Fedora

flatpak is tool similar to 0install. You can find more details here.

# Get the gnome-sdk gpg keys
wget https://sdk.gnome.org/keys/gnome-sdk.gpg
# Add the keys to trusted keys
flatpak remote-add --user --gpg-import=gnome-sdk.gpg gnome https://sdk.gnome.org/repo/

# Install pre-requisite gnome
flatpak install --user gnome org.gnome.Platform 3.20

# Download the flatpak file and install it. Or you can follow the next step.
wget 'http://download.documentfoundation.org/libreoffice/flatpak/latest/LibreOffice.flatpak'
flatpak install --user --bundle LibreOffice.flatpak

# Install flatpak without downloading
flatpak install --user gnome org.gnome.Platform.Locale 3.20

# Run you brand new shiny latest libreoffice
flatpak run org.libreoffice.LibreOffice

# At a later date, when you want to update libreoffice.
flatpak update --user org.libreoffice.LibreOffice

systemd – start service when you enable it

2017-03-13 1 min read Fedora

More often than not for any service, I end up doing :

systemctl enable <service>
systemctl start <service>

But there is shorcut to this. In systemctl command when you enable the service, you can use “–now” to start the service as follows:

systemctl enable --now <service>

quite a timesaver 🙂

Some nice fonts in Fedora for coding

2016-12-26 1 min read Uncategorized

Here is link to fedoramagazine article on this:

6 great monospaced fonts for code and terminal in Fedora

And what the article does not mention is how to install these from terminal. You can use the following command to install them all

sudo dnf install levien-inconsolata-fonts.noarch \
adobe-source-code-pro-fonts.noarch mozilla-fira-fonts-common.noarch \
 mozilla-fira-sans-fonts.noarch google-droid-sans-fonts.noarch \
 google-droid-sans-mono-fonts.noarch nethack-bitmap-fonts.noarch \ 
nethack-bitmap-fonts-core.noarch

 

Older posts