Fix typescript files generated with script command

2013-12-18 1 min read Learning Linux

Generally quite a lot of us would have used the script command. This generates the logs for the session. But the problem with the logs is that it contains a lot of un-readable characters. These characters are mostly from the color codes, and as such can be removed very easily with a single command:

cat typescript | 
 perl -pe 's/e([^[]]|[.*.*?[a-zA-Z]|].*?a)//g' | col -b > typescript-processed

This assumes the input log file is named as typescript and the output is kept as typescript-processed. You can change the names as required.

Continue reading

LibreOffice – Formulae Auditing

2013-05-30 1 min read Learning Linux

If you have a excel sheet with lot of formula’s and you are trying to audit them, then a simple solution is to press “ctrl+`” (i.e. control key with back tick). This will put the excel sheet in Formula auditing mode and hence all the cells will show the formula rather than the values which will make it easier to audit them. Hope that helps.

Enhanced by Zemanta

IE8 – Developer Tools

2013-04-15 1 min read Uncategorized

Don’t start banging me for this, but I had to test something on Windows and thus found out this. I f  you need to debug or test something on IE8 on Windows, then you can simply press “F12” and this will bring up the developer tools… could be useful to you, sometime if you are stuck with testing something on IE on windows 🙂

 

Continue reading

Install a fully functional terminal server capable of accepting connections from RDP(Windows).

2010-12-12 1 min read Fedora
Seats rebooting Linux
  <dd class="wp-caption-dd zemanta-img-attribution" style="font-size: 0.8em;">
    Image by <a href="http://www.flickr.com/photos/82365211@N00/2473197800">kalleboo</a> via Flickr
  </dd>
</dl>

Inoformation on xrdp:

The goal of this project is to provide a fully functional Linux terminal server, capable of accepting connections from rdesktop and Microsoft’s own terminal server / remote desktop clients.

  <td>
    <div class="text codecolorer">
      &nbsp;sudo yum install xrdp
    </div>
  </td>
</tr>
1

There is not much configuration needed for this so I will not go into details. If you are stuck with something though, you can ask in the comments for the post.

Continue reading

Linux>1% Campaign. Prove that we are more than 1% !

2010-10-25 1 min read Linux Uncategorized

Linux>1% Campaign. Prove that we are more than 1% !

At http://www.dudalibre.com they are running a campaign to make every owner of computers running Linux register. The aim is to prove that the general assumption, that only 1 % of all computers run Linux is wrong. Everyone is needed if this effort is going to succeed.

http://www.dudalibre.com/en/gnulinuxcounter

The page can also be displayed in Spanish and French

I voted for my distro Fedora, hope you do the same for your linux distribution and prove that Linux does run on high number of desktop.

Continue reading

Change the firefox theme without restarting.

2010-09-27 1 min read Firefox

How often you wished that you could change the theme for firefox without restarting. Well sometime back Mozilla came up with Light weight themes called personna’s but if that is not sufficient for you and you still want to change the theme and do not want to restart then you should install this theme.

Once you install this theme, you will not note any change (Don’t forget to restart after installing the theme.)

Continue reading

Verify all the paths in the PATH directory

2010-06-08 1 min read Bash Learning Linux

Here is the command to test that all the directories in your path actually exist.

(<a class="zem_slink freebase/en/internal_field_separator" title="Internal field separator" rel="wikipedia" href="http://en.wikipedia.org/wiki/Internal_field_separator">IFS=:;for p in $PATH; do test -d $p || echo $p; done)

And the explanation :

Set the IFS to &#8221;:&#8221;

now we loop through the PATH variable

and test all the directories with &#8221;test -d&#8221;

Here is another version without IFS:

for i in ${PATH//:/ };do test  -d $i || echo $i;done

Continue reading
Older posts