Slackware Linux 13.37 RC 3.1415926535897932384626433832

2011-04-02 1 min read Linux Uncategorized

Slackware released the next version a few days back and guess the complete name : Slackware Linux 13.37 RC 3.1415926535897932384626433832. You must be crazy to tell the complete version to anyone.

Development Release: Slackware Linux 13.37 RC 3.1415926535897932384626433832 More fun with Slackware’s version numbers as Patrick Volkerding announces the latest release candidate for the upcoming Slackware Linux 13.37: +ACI-There have been quite a few changes so we will have one more release candidate: Slackware 13.37 RC 3.14159265358979323846264338327950288419716. Very close now+ACE But we’ll likely hold out for….

Continue reading

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

Gnome Tips

2011-02-25 3 min read Fedora GNOME

Add/Edit GDM Sessions

Each session is a *.desktop file located at /usr/share/xsessions.

GDM appearance

You can change background image, gtk/icon theme by hands (as described at Gnome_2.28_Changes#Configuring_gdm_2.28), or you can use gdm2setup from the AUR.

Tweaking

If your gnome applications seem sluggish and gnome hangs at start-up after killing the previous session, it’s likely you haven’t set your /etc/hosts file correctly and your /etc/hosts file includes:

127.0.0.1       localhost.localdomain     localhost      YOURHOSTNAME

Then run “/bin/hostname YOURHOSTNAME” and “/sbin/ifconfig lo up” as root.

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

Make any command read line enabled (on *nix)

2010-11-25 1 min read Bash Fedora Linux

Make any command read line enabled (on *nix)

  <td>
    <div class="text codecolorer">
      rlwrap sqlite3 database.db
    </div>
  </td>
</tr>
1

Enable readline even if the command line application is not using it.

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

commandlinefu.com

by David Winterbottom (codeinthehole.com)

URL: http://feedproxy.google.com/~r/Command-line-fu/~3/mKEgYoyHCMA/make-any-command-read-line-enabled-on-nix

Enhanced by Zemanta

intercept stdout/stderr of another process or disowned process

2010-11-23 1 min read Bash Fedora Linux

The command is definately going to save your day if you have disowned the process by mistake. Only uses strace so might as well work on Solaris also, though not tried it.

intercept stdout/stderr of another process or disowned process

  <td>
    <div class="text codecolorer">
      strace -e write=1,2 -p $PID 2>&1 | sed -un "/^ |/p" | sed -ue "s/^.{9 }(.{50}).+/1/g" -e 's/ //g' | xxd -r -p
    </div>
  </td>
</tr>
1

Useful to recover a output(stdout and stderr) “disown”ed or “nohup“ep process of other instance of ssh.

Continue reading

Broadcast your shell thru port 5000

2010-11-20 1 min read Bash Fedora Linux

Broadcast your shell thru port 5000

  <td>
    <div class="text codecolorer">
      mkfifo /tmp/fifo;(nc -q0 -l 5000 < /tmp/fifo &);script -f /tmp/fifo
    </div>
  </td>
</tr>
1

run

  <td>
    <div class="text codecolorer">
      nc yourip 5000
    </div>
  </td>
</tr>
1

elsewhere will produce an exact same mirror of your shell. This is handy when you want to show someone else some amazing stuff in your shell without giving them control over it.

Continue reading
Older posts Newer posts