terça-feira, 19 de maio de 2009

Ubuntu file types

To create a new file type on Gnome/Nautilus, eg., for tsclient configuration files (*.rdp), go or create the directory:
~/.local/share/mime/packages

Create a new file tsclient.xml:
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
<mime-type type="application/x-rdp">
<comment>tsclient configuration file</comment>
<glob pattern="*.rdp"/>
</mime-type>
</mime-info>

Update the mime database:
update-mime-database ~/.local/share/mime

quinta-feira, 14 de maio de 2009

TortoiseHg Nautilus plug-in

The TortoiseHg Nautilus plug-in access the environment variable TORTOISEHG_PATH that point to the directory where the plug-in is installed, you need to set the variable in the .xsessionrc file or use the default path ~/tools/tortoisehg-dev.

domingo, 10 de maio de 2009

Install Websphere Integration Developer on Ubuntu jaunty

To install the embedded WPS/WESB it's necessary to change the sh link from dash to bash:

sudo unlink /bin/sh
sudo ln -s /bin/bash /bin/sh

After installation return the sh link to dash to have a faster boot:

sudo unlink /bin/sh
sudo link -s /bin/dash /bin/sh

To begin installation use the install program under the IM_LINUX directory of disk1 not the launchpad shell on root directory.

Ubuntu jaunty DHCP client timeout

In some cases, most notably in slow or poor signal wireless connections, it is necessary to increase the dhcp client timeout value, it can be done editing the file:
/etc/dhcp3/dhclient.conf

and including or editing the line:
retry [new value]

In most cases the new value of 120 is enough.