Edit a File When You Are Viewing It Using more / less Command

2010-03-16 2 min read Linux

<a href="http://www.cyberciti.biz/faq/edit-file-when-youre-viewing-withmore-less/">Aritcle here.

<a title="Permanent Link to Edit a File When You Are Viewing It Using more / less Command" rel="bookmark" href="http://www.cyberciti.biz/faq/edit-file-when-youre-viewing-withmore-less/">Edit a File When You Are Viewing It Using more / less Command<div style="color: #888888;">Posted by Vivek Gite [Last updated: November 1, 2008]

<div id="EchoTopic"> <div style="float: left; margin-top: 0px; margin-right: 5px;">
<div style="float: right; margin-top: 0px; margin-left: 5px;"><a title="See all Bash/Shell scripting related FAQ" href="http://www.cyberciti.biz/faq/category/bash-shell/"><img src="http://blog.amit-agarwal.com/wp-content/uploads/figs.cyberciti.biz/3rdparty/terminal.png" border="0" alt="" />

<span style="color: #ff0000;">Question: I can use <a href="http://www.cyberciti.biz/tips/less-is-more-the-hidden-treasure-of-less-command.html">less or more pagers to view a file. How do I start an editor (such as vi or other text editor) to edit the current file without leaving the less or more pager command?

Continue reading

Fedora 12 Released

2010-03-12 0 min read Fedora
\"Image
Image via CrunchBase

Fedora 12, the latest version of the popular open-source operating systems for desktops and servers, has been released: &#8221;The Fedora Project, a Red Hat, Inc. sponsored and community-supported open source collaboration, today announced the availability of Fedora 12, the latest version of its free, open-source operating system distribution…..

Continue reading

Mount and unmount/umount images(iso/img) from nautilus (Fixed not mounting in Fedora)

2010-03-09 2 min read Fedora GNOME

Get the Nautilus Script <a href="http://gnome-look.org/content/show.php/moiso?content=84301" target="_blank">here. So what is required is that you have the necessary permission to run mount and umount as normal user with sudo command. If you are using gksu or gnomesu then you can change this in the script that you will get. Once you have got the script then you can run the installer for the script that comes in the package.

If you are running this is Fedora then you would need to make one more change other than the ones done by the installer, which is to allow sudo from non tty devices. Since this will be running from the nautilus so the script will not have any tty device and hence you would need to comment the following in the /etc/sudoers file:

Continue reading

Bash histoy – common history in different terminals

2010-03-04 1 min read Bash Linux

I have been looking to do this for sometime. The bash history is per
session basis and the last session to quit overwrites the bash_history
file and thus all other terminals started between the time last terminal
lasted does not get to write the commands in the history file. Secondly
the history gets cluttered with lot of duplicate entries and entries
with ls and cd commands. So finally I added these to the bashrc file:

Continue reading

Minimize the download size for updates.

2010-02-10 1 min read Fedora Linux

Fedora has rolled out presto repositories. What this means to the users is that the download size for the updates would be greatly reduced. To use the feature, first install the yum plugin:

sudo yum install yum-presto.noarch

Presto uses delta rpms. These delta rpms are quite small in size (eg few kbs instead of 15 MB for firefox 3.5). These delta rpms are used to re-create the original rpm and this is completely transparent to the end user. So, next time when you update with the plugin installed you will see the difference in the download size.

Continue reading

PackageKit error File \”/usr/share/PackageKit/helpers/yum/yumBackend.py\”, line 1215, in _get_depends_not_installed – Resolved

2010-02-04 1 min read Fedora

In packagekit, if you getting the error below:

Traceback (most recent call last):
File &#8221;/usr/share/PackageKit/helpers/yum/yumBackend.py&#8221;, line 1215, in _get_depends_not_installed
rc, msgs =  self.yumbase.buildTransaction()
File &#8221;/usr/lib/python2.6/site-packages/yum/__init__.py&#8221;, line 719, in buildTransaction
self.plugins.run(&#8217;postresolve&#8217;, rescode=rescode, restring=restring)
File &#8221;/usr/lib/python2.6/site-packages/yum/plugins.py&#8221;, line 179, in run
func(conduitcls(self, self.base, conf, **kwargs))
File &#8221;/usr/lib/yum-plugins/remove-with-leaves.py&#8221;, line 71, in postresolve_hook
if opts.remove_leaves or remove_always:
AttributeError: &#8217;NoneType&#8217; object has no attribute &#8217;remove_leaves&#8217;

then you can resolve it. The solution to the problem is there in the traceback, luckily this time.

Continue reading

Mail Server Setup With Exim, MySQL, Cyrus-Imapd, Horde Webmail

2010-01-18 1 min read Fedora

I was thinking of doing this for some time but never got time to do this. So finally I took some time off yesterday to do the setup. <a href="http://www.howtoforge.com/exim-mysql-cyrus-imapd-horde-centos5.1-p2" target="_blank">Here is  a good link on the instructions for the CentOS, but on Fedora also they hold good.

So what you need to do is basically install exim, imp, horde, horde-enhanced and cyrus* packages and then configure imap server and exim to do the mailing part and setup horde to view the mail. To install the packages use the command below:

Continue reading
Older posts Newer posts