Check out all the colors on you X window system.

2012-02-24 1 min read Fedora

If you ever wondered what combination of some colors would look like but did not really feel like setting them in your xterm just to check them out. Or if you wanted to know about all the colors on you X window system then you can install this utility called xcolorsel.

[xcolorsel][1]
xcolorsel

You will need to setup the rpm-shere repo for this.

Continue reading

sakura – Reaaly good terminal with very few dependencies.

2011-03-30 1 min read Fedora Uncategorized

I was searching for something in the Fedora repos and found a really good terminal, sakura. Its very much like Gnome-terminal. I did not find much difference other than using less memory.

To install:

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

and the details of the package:

Name        : sakura
Arch : i686
Version     : 2.3.8
Release     : 1.fc14
Size        : 137 k
Repo        : installed
From repo   : fedora
Summary     : Terminal emulator based on GTK and VTE
URL : http://pleyades.net/david/sakura.php
License     : GPLv2
Description : Sakura is a terminal emulator based on GTK and VTE. It’s a terminal emulator
with few dependencies, so you don’t need a full GNOME desktop installed to
have a decent terminal emulator.
Enhanced by Zemanta

Try all colors in xterm with script before setting the color

2011-03-18 2 min read Bash Fedora Learning Linux

If you are looking for testing the colors on how they would look like in the xterm before you set the color then here is a small script for you.

  <td>
    <div class="text codecolorer">
      #!/bin/bash -<br /> #===============================================================================<br /> #<br /> #          FILE:  xterm_colors-test.sh<br /> #<br /> #         USAGE:  ./xterm_colors-test.sh<br /> #<br /> #   DESCRIPTION:  Test all the colors for xterm bg<br /> #<br /> #       OPTIONS:  ---<br /> #  REQUIREMENTS:  ---<br /> #          BUGS:  ---<br /> #         NOTES:  ---<br /> #        AUTHOR:   Amit Agarwal (amit.agarwal@amit-agarwal.co.in), aka<br /> #       COMPANY:  Individual<br /> #       VERSION:  1.0<br /> #       CREATED:  02/18/2011 01:02:51 PM IST<br /> #      REVISION:  1.0<br /> #===============================================================================<br /> <br /> cat /usr/share/X11/rgb.txt |sed 's/\([0-9]\{1,3\}[ \t]*\)\{3\}//'|sed 's/^ *//' >~/rgb.txt<br /> while read line<br /> do<br /> bg=$(echo $line)<br /> echo $line<br /> echo "Trying $bg color"<br /> xterm -bg "$bg"&<br /> sleep 5<br /> kill -9 $!<br /> done < ~/rgb.txt
    </div>
  </td>
</tr>
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

This can be used in various ways but I will leave the choice to you. One option that I should probably still tell is :

Continue reading

Execute a command with a timeout

2010-12-29 1 min read Bash Learning
Official Ubuntu circle with wordmark. Replace ...
  <dd class="wp-caption-dd zemanta-img-attribution" style="font-size: 0.8em;">
    Image via <a href="http://commons.wikipedia.org/wiki/File:Ubuntu_logo.svg">Wikipedia</a>
  </dd>
</dl>

Execute a command with a timeout

  <td>
    <div class="text codecolorer">
      &nbsp;timelimit -t100 somecommand
    </div>
  </td>
</tr>
1

I found this in Ubuntu repos, and consider it better than timeout.

* View this command to comment, vote or add to favourites * View all commands by CodSpirit

Continue reading
Newer posts