TkXwin: autoaway support

Please note well that if you use Debian or Ubuntu you should probably use Sergei Golovan's Debian repository instead of manually building this package.

Here we will see how to install TkXwin for having autoaway support in Tkabber.

  1. Install Tcl/tk development files

    TkXwin needs some files from the Tcl/tk development package.

    • using apt

      apt-get install tcl8.4-dev tk8.4-dev

    • using apt on Debian woody

      apt-get install tcl8.3-dev tcl8.3-dev

    • using rpm on Mandrake

      If you don't have those packages installed, download and install them now:

      • tcl-8.4.5-2mdk RPM for i586
      • tclx-8.4.5-2mdk RPM for i586
      • tk-8.4.5-2mdk RPM for i586

      Then after those RPMS are installed you need to link some files:

      sudo ln -s /usr/lib/tclConfig.sh /usr/lib/tcl8.4
      sudo ln -s /usr/lib/tclxConfig.sh /usr/lib/tcl8.4
      sudo ln -s /usr/lib/tkConfig.sh /usr/lib/tk8.4
      sudo ln -s /usr/lib/tkxConfig.sh /usr/lib/tk8.4
      sudo ln -s /usr/include/tcl8.4.5/generic/tcl.h /usr/include/tcl8.4.5/
      sudo ln -s /usr/include/tk8.4.5/generic/tk.h /usr/include/tk8.4.5/

  2. Install tkXwin

    • from source

      First download and uncompress the package:

      wget http://beepcore-tcl.sourceforge.net/tkXwin-1.0.tgz
      tar -xzvf tkXwin-1.0.tgz
      cd tkXwin-1.0

      Configure the compilation:

      • default procedure

        ./configure

      • on Debian sarge

        ./configure --with-tcl=/usr/lib/tcl8.4/ --with-tclinclude=/usr/include/tcl8.4 --with-tk=/usr/lib/tk8.4/ --with-tkinclude=/usr/include/tcl8.4/

      • on Debian woody

        ./configure --with-tcl=/usr/lib/tcl8.3/ --with-tclinclude=/usr/include/tcl8.3 --with-tk=/usr/lib/tk8.3/ --with-tkinclude=/usr/include/tcl8.3/

      • on Mandrake

        ./configure --with-tcl=/usr/lib/tcl8.4/ --with-tclinclude=/usr/include/tcl8.4.5/ --with-tk=/usr/lib/tk8.4/ --with-tkinclude=/usr/include/tk8.4.5/

      Compile and install it:

      make
      make install

      Check it's installed:

      $ tclsh
      % package require tkXwin
      1.0
      % exit

    • using apt on Debian unstable

      Add Teopetuk's unofficial Debian APT repository if you don't have it.
      Then update the list of available packages:

      apt-get update

      Now you can download and install the program:

      apt-get install tkxwin

  3. Configure Tkabber

    Now you may want to change the autoaway options on Customize -> AutoAway. The time options are expressed in milliseconds.

    You will probably want to know if it really works, so put low values, for example '2000' (2 seconds) and check if Tkabber automatically changes your status to away or xaway.

Colaborations: Anonymous

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

MDK Notes

You can use the following: (Locations are as of this writing)

tcl-8.4.5-2mdk RPM for i586
ftp://speakeasy.rpmfind.net/linux/MandrakeCooker/cooker/i586/Mandrake/RPMS/tcl-8.4.5-2mdk.i586.rpm

tclx-8.4.5-2mdk RPM for i586
ftp://speakeasy.rpmfind.net/linux/MandrakeCooker/cooker/i586/Mandrake/RPMS/tclx-8.4.5-2mdk.i586.rpm

tk-8.4.5-2mdk RPM for i586
ftp://speakeasy.rpmfind.net/linux/MandrakeCooker/cooker/i586/Mandrake/RPMS/tk-8.4.5-2mdk.i586.rpm

Then after those RPMS are installed you need to link some files:
sudo ln -s /usr/lib/tclConfig.sh /usr/lib/tcl8.4
sudo ln -s /usr/lib/tclxConfig.sh /usr/lib/tcl8.4
sudo ln -s /usr/lib/tkConfig.sh /usr/lib/tk8.4
sudo ln -s /usr/lib/tkxConfig.sh /usr/lib/tk8.4
sudo ln -s /usr/include/tcl8.4.5/generic/tcl.h /usr/include/tcl8.4.5/
sudo ln -s /usr/include/tk8.4.5/generic/tk.h /usr/include/tk8.4.5/

Then use can use the Configure:

./configure --with-tcl=/usr/lib/tcl8.4/ --with-tclinclude=/usr/include/tcl8.4.5/ --with-tk=/usr/lib/tk8.4/ --with-tkinclude=/usr/include/tk8.4.5/

All other from the doc applies and works great.

Good job.

Debian Package

Debian package of tkxwin for unstable branch is available at http://sgolovan.nes.ru/debian/sid/.

Add

deb http://sgolovan.nes.ru/debian sid/

to /etc/apt/sources.list and use APT to fetch and install package tkxwin.

Syndicate content