Creating and using ackrc

2022-04-02 1 min read Learning Ack Grep Fedora

ack is a fantastic replacement for grep and probably much more than grep. Here is what the dnf info has to say about ack

1
2
3
4
5
6
Name         : ack
Architecture : noarch
Summary      : Grep-like text finder
URL          : http://beyondgrep.com/
License      : Artistic 2.0
Description  : Ack is designed as a replacement for grep.

And their websites says -

Designed for programmers with large heterogeneous trees of source code, ack is written in portable Perl 5 and takes advantage of the power of Perl’s regular expressions.

Continue reading

mussh-run-commands-on-multiple-hosts

2022-03-06 1 min read Learning Bash Fedora SSH

mussh allows you to run command/commands on multiple hosts at the same time. If you have farm of server setup with passwordless ssh or with same password (which is generally the case), then using mussh you can either check all the servers for some output or fix something or maybe update all the packages. How cool is that :)

Here is description of this package from dnf repo

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
Name         : mussh
Version      : 1.0
Release      : 18.fc35
Architecture : noarch
Size         : 20 k
Source       : mussh-1.0-18.fc35.src.rpm
Repository   : fedora
Summary      : Multihost SSH wrapper
URL          : http://www.sourceforge.net/projects/mussh
License      : GPL+
Description  : Mussh is a shell script that allows you to execute a command or
             : script over ssh on multiple hosts with one command. When possible
             : mussh will use ssh-agent and RSA/DSA keys to minimize the need to
             : enter your password more than once.

Gnome with i3 on Fedora 29

2019-02-25 1 min read Fedora

I have been thinking of doing this for long time, finally I managed to get this working. Here is what you need to do to get i3 with all other gnome services running.

First we will create 2 files, this is actually all you need. In these ones, I copied the original gnome files and just change gnome-shell to i3 to replace my window manager.

11:15:43=>[]> cat /usr/share/gnome-session/sessions/gnome-i3.session
[GNOME Session]
Name=GNOME + i3
# RequiredComponents=gnome-flashback-init;gnome-flashback;i3;gnome-settings-daemon;
RequiredComponents=i3;org.gnome.SettingsDaemon.A11ySettings;org.gnome.SettingsDaemon.Clipboard;org.gnome.SettingsDaemon.Color;org.gnome.SettingsDaemon.Datetime;org.gnome.SettingsDaemon.Housekeeping;org.gnome.SettingsDaemon.Keyboard;org.gnome.SettingsDaemon.MediaKeys;org.gnome.SettingsDaemon.Mouse;org.gnome.SettingsDaemon.Power;org.gnome.SettingsDaemon.PrintNotifications;org.gnome.SettingsDaemon.Rfkill;org.gnome.SettingsDaemon.ScreensaverProxy;org.gnome.SettingsDaemon.Sharing;org.gnome.SettingsDaemon.Smartcard;org.gnome.SettingsDaemon.Sound;org.gnome.SettingsDaemon.Wacom;org.gnome.SettingsDaemon.XSettings;
11:15:47=>[
]> cat /usr/share/xsessions/gnome-i3.desktop
[Desktop Entry]
Name=GNOME i3
Comment=This session logs you into GNOME + i3
Exec=env GNOME_SHELL_SESSION_MODE=gnome-i3 gnome-session –session gnome-i3
TryExec=gnome-session
Type=Application
DesktopNames=GNOME-Classic;GNOME;

Continue reading
Older posts