repotrack and repoquery -commands to resolve dependencies.

2014-12-18 1 min read Fedora

To get all the depencies of a package, you can try:

repoquery -a --requires --resolve 

Example output:
glibc-0:2.20-5.fc21.i686
bash-0:4.3.30-2.fc21.x86_64
chkconfig-0:1.3.63-1.fc21.x86_64
glibc-0:2.20-5.fc21.x86_64
openssl-libs-1:1.0.1j-1.fc21.x86_64

and then to query in nice tree format, you can use :

repoquery -a --tree-requires PACKAGE_NAME

And finally use that with repotrack:

repotrack -a x86_64 -p . $(repoquery --qf=%{name} -g --list --grouppkgs=all 'Office Suite and Productivity' |tr '\n' ' '
)

Now for the fun part, why use all the above when you can simply use:
yumdownloader --resolve 

So, if you have reached this line then you don't need repotrack/repoquery, simply use yumdownloader :)

script to get hard disk health in fedora/ubuntu

2014-12-01 2 min read Fedora Learning Linux

First, put this in a script.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash

#Change as appropriate
HDD=sda

export sub="SmartCtl data for HDD"
echo 'To: <Your Email>
Sub: [Cron] $sub
MIME-Version: 1.0
Content-Type: text/html
Content-Disposition: inline

<html><pre>'


echo '<style>

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}
</style>
'

echo '<h2>Errors on HDD:</h2>'
echo '<hr>'
sudo smartctl -l error  /dev/$HDD
echo '<h2>Health of HDD:</h2>'
echo '<hr>'
sudo smartctl -H  /dev/$HDD

echo '<h2>Detailed info</h2>'
echo '<hr>'
sudo smartctl -a -d ata /dev/$HDD

echo '<h2>Journalctl output for smartd</h2>'
echo '<hr>'

if [[ -f /etc/fedora-release ]]
then
journalctl -x --show-cursor -u smartd --since=yesterday
else
#This is for Ubuntu.. still using dmesg

dmesg -T -l err,crit,alert,emerg

fi


echo '<h2>All Details</h2>'
echo '<hr>'

sudo smartctl --xall /dev/$HDD


echo "Thanks for using Amit Agarwal's script"
echo '</pre></html>'

and then put this in cron:

Continue reading

Whaaw! light weight media player

2014-11-25 1 min read Fedora
Description : Whaaw! Media Player is a lightweight media player that supports fullscreen
            : mode, seeking, changing video colour settings and more. It will play any audio
            : or video files that GStreamer can play. It is intended to be a basic media
            : player without any GNOME dependencies.

So, this is light weight media player with not too many features but does good as a simple media player.

To install:

Continue reading

ncurses based eFTE editor – programmers lightweight editor

2014-11-17 1 min read Fedora Learning

nefte is a lightweight programmers editor. Here is descriptioin:

 

Description : eFTE is an advanced programmers editor with goals of being lightweight, yet
            : totally configurable. Support for user defined programming languages, menu
            : systems and key bindings are provided with many common defaults already
            : defined. eFTE is still a new project, however, we extend from the FTE editor
            : which was first released in 1995, so eFTE is tried and true with many features
            : for the programmer/text editor.
            : 
            : This package contains nefte, the ncurses version of the editor.

And to install:

Continue reading

nomacs – light weight image viewer

2014-11-10 1 min read Fedora

To install:

  <td>
    <div class="text codecolorer">
      sudo yum install nomacs
    </div>
  </td>
</tr>
1

nomacs is a very light weight viewer for images with some fetures that you find useful (rotate image,
crop and see in 1:1. Not too much features but definately very light weight and good for daily use.

Description : nomacs is image viewer based on Qt4 library.
nomacs is small, fast and able to handle the most common image formats.
Additionally it is possible to synchronize multiple viewers
running on the same computer or via LAN is possible.
It allows to compare images and spot the differences
e.g. schemes of architects to show the progress).

nall – schedule your tasks like a pro

2014-10-06 1 min read Fedora

nall is a utility to run your scripts ( for whatever ) every defined period. Here is description:

Description : Nall is a small gtk+ application that discretely fits into your freedesktop
system tray (such as trayer).
Its purpose is to spawn periodically every kind of script and display a
one-line output in the tooltip window. The main usage of nall is monitoring or
just notifying of almost everything (it just depends upon your imagination and
ability to script).

For installation :

Continue reading

Download Ticket Service – dl is now on fedora.

2014-09-08 1 min read Fedora

From : http://www.thregr.org/~wavexx/software/dl/

“dl” is a file exchange service that allows you to upload any file to a web server and generate a unique ticket for others to download. The ticket is automatically expired according to the specified rules, so that you don’t need to keep track or cleanup afterward. “dl” also allows you to grant an anonymous, one-time upload for others to send you a file, without the requirement of account management.

Continue reading
Older posts Newer posts