command not found – packagekit plugin

2010-05-27 0 min read Fedora Linux
\"Example
Image via Wikipedia

If you run into problems where you run some command and the command is not found and you have to install it and run the program again then why not use the command not found <a class="zem_slink freebase/en/plugin" title="Plug-in (computing)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Plug-in_%28computing%29">plugin for Packagekit. Here is the description:

Continue reading

Firefox Disables Microsoft .NET Addon

2010-05-27 1 min read Linux

Firefox Disables Microsoft .NET Addon ZosX writes &#8221;Around 11:45 PM Friday night, I was prompted by Firefox that it had disabled the addons that Microsoft has been including with .NET — specifically, the .NET Framework Assistant and the Windows Presentation Foundation. The popup announcing this said that the &#8217;following addons have been known to cause stability or security issues with Firefox.&#8217; Thanks, Mozilla team, for hitting the kill switch and hopefully this will get Microsoft to release a patch sooner.&#8221; Here&#8217;s the Mozilla security blog entry announcing the block, which Mozilla implemented via its blocklisting mechanism.

Continue reading

vim - get mappings from the help tex files available with the scripts.

2010-05-27 2 min read Fedora Learning Linux Vim Tips

Here is a simple script that will show all the vim mappings from the tex file (help file that comes with the vim scripts).

This will prove to be very useful in usin gthe mappings 🙂

#!/bin/bash –
#===============================================================================

#          FILE:  get_mappings_from_tex_for_vim.sh

#         USAGE:  ./get_mappings_from_tex_for_vim.sh

#   DESCRIPTION:  Get the mappings from tex file

#       OPTIONS:  —
#  REQUIREMENTS:  —
#          BUGS:  —
#         NOTES:  —
#        AUTHOR:  <a class="zem_slink" title="Amit Agarwal" rel="self" href="http://blog.amit-agarwal.co.in">Amit Agarwal (AKA), amit.agarwal@amit-agarwal.co.in
#       COMPANY:  Individual
#       VERSION:  1.0
#       CREATED:  09/06/2009 09:19:19 PM IST
#      REVISION:  —
#===============================================================================
file=$1
IFS=$(echo -e &#8217;\n&#8217;)
for i in $(cat $file |<a class="zem_slink freebase/en/grep" title="Grep" rel="wikipedia" href="http://en.wikipedia.org/wiki/Grep">grep &#8221;^..line&#8221;)
do
#echo $i |<a class="zem_slink freebase/en/awk" title="AWK" rel="homepage" href="http://cm.bell-labs.com/cm/cs/awkbook/index.html">awk -F&#8221;&#8217;&#8221; '{print $2&#8221; &#8221; $3&#8221; &#8221;$4}&#8217;|awk -F&#8221;&&#8221; '{print $1&#8221; &#8221;$2}&#8217;
echo $i |awk -F&#8221;&#8217;&#8221; '{
if ( NF >= 4 )
{
print ($2&#8221;\t ->&#8221;$4&#8221;\t==»&#8221;$NF);
}
else
{
print($2&#8221;\t–>&#8221;$3);
}
fi
}&#8217;  |<a class="zem_slink freebase/en/sed" title="Sed" rel="wikipedia" href="http://en.wikipedia.org/wiki/Sed">sed &#8217;s/\h.*(/(/&#8217; |sed &#8217;s/>.*&/>/&#8217; |sed &#8217;s/\t*-.>$//&#8217; |sed &#8217;s/\//&#8217;

Continue reading

gnome-disk-manager – the easier way to manage disks in Gnome with Palimpsest

2010-05-25 1 min read Fedora GNOME Linux

I had been using quite different set of tools to this but this is really good. Just install the gnome-disk-manager with

sudo yum install gnome-disk-manager

The interface is very clean and easy to understand and is it very very fast when compared to the other Graphical utilities.

Here are some screenshots to take you through.

<a href="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/screenshot_001.jpe"><img class="alignnone size-full wp-image-1204" title="screenshot_001" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/screenshot_001.jpe" alt="screenshot_001" width="806" height="626" />

<a href="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/screenshot_002.jpe"><img class="alignnone size-full wp-image-1205" title="screenshot_002" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/screenshot_002.jpe" alt="screenshot_002" width="806" height="626" />

Continue reading

mussh - Multihost SSH wrapper

2010-05-25 1 min read Bash Fedora Linux

Description:

Mussh is a <a class="zem_slink freebase/en/shell_script" title="Shell script" rel="wikipedia" href="http://en.wikipedia.org/wiki/Shell_script">shell script that allows you to execute a command or script over ssh on multiple hosts with one command. When possible mussh will use <a class="zem_slink freebase/en/ssh-agent" title="Ssh-agent" rel="wikipedia" href="http://en.wikipedia.org/wiki/Ssh-agent">ssh-agent and RSA/DSA keys to minimize the need to enter your password more than once.

It is a utility for <a class="zem_slink freebase/en/system_administrator" title="System administrator" rel="wikipedia" href="http://en.wikipedia.org/wiki/System_administrator">system administrators maintaining more than one hosts. The utility will help the admin to execute the same command on multiple hosts with a single command.

Continue reading

The power of find command in Linux – advanced.

2010-05-24 2 min read Linux

Generally whoever uses Linux, would know about the find command. Find the man page <a href="http://amit.themafia.info/phpMan.php?parameter=find&mode=man" target="_blank">here.

There are also lots of blogs, tutorials and other articles on find command on the web, so why write another one. Because it&#8217;s worth every word spent on it 🙂
find is a very powerful command, let&#8217;s see how (options for find command from man page and usage):

depth — Process each directory&#8217;s contents before the directory itself.
maxdepth — Descend at most <span style="text-decoration: underline;">levels (a non-negative integer) levels of directories below the command line arguments.
xdev — Don&#8217;t descend directories on other filesystems.
executable — Matches files which are executable and directories which are searchable (in a file name resolution sense).
This takes into account access control lists and other permissions artefacts which the -perm test ignores.
iname — Like -name, but the match is case insensitive.
nogroup — No group corresponds to file&#8217;s numeric group ID.
nouser — No user corresponds to file&#8217;s numeric user ID.
fls <span style="text-decoration: underline;">file — True; like -ls but write to <span style="text-decoration: underline;">file like -fprint.
ok <span style="text-decoration: underline;">command — Like -exec but ask the user first (on the standard input);
print0 — True; print the full file name on the standard output, followed by a null character
(instead of the newline character that -print uses).
printf <span style="text-decoration: underline;">format — True; print <span style="text-decoration: underline;">format on the standard output, interpreting &#8217;&#8217; escapes and &#8217;%&#8217; directives.

Continue reading
Older posts Newer posts