
The GDM display manager implements all significant features required for managing attached and remote displays.
The GDM daemon can be configured to listen for and manage X Display Manage Protocol (XDMCP) requests from remote displays.
GDM has a number of configuration interfaces. These include scripting integration points, daemon configuration, greeter configuration, general session settings, integration with gnome-settings-daemon configuration, and session configuration.
By default XDMCP support is turned off, but can be enabled if desired.
Daemon Configuration for XDMCP
The GDM daemon is configured using the /etc/gdm/custom.conf file. Default values are stored in GConf in the gdm.schemas file. It is recommended that end-users modify the /etc/gdm/custom.conf file because the schemas file may be overwritten when the user updates their system to have a newer version of GDM.
Note that older versions of GDM supported additional configuration options which are no longer supported in the latest versions of GDM.
The /etc/gdm/custom.conf supports the "[daemon]", "[security]", and "[xdmcp]" group sections
To enable XDMCP Support add the following in custom.conf file
[xdmcp]
Enable=true
Connecting to GDM through XMing X Server
Step1: Download XMing X Server executable for Windows from here and install it.
Step2: Launch XLaunch. Select Fullscreen
Step3: Select Open Session via XDMCP
Step4: Enter hostname or ip address
Step5: Click Next
Step6: Click Finish
Step7: You have successfully connected through XMing
References:
1. GNOME Documentation
2. Comparing XDM, GDM, KDM and WDM
Read more ...
Apr 14, 2009
Connect to GNOME Display Manager (GDM) using XMing X Server for Windows
Apr 9, 2009
Using awk to calculate sum/average
awk is a small powerful tool for processing column oriented text data.
Suppose I have file Marks.txt whose contents are 
Use the following command to calculate the sum of the entries in column 3
To get the average, use the following command
Read more ...
Apr 5, 2009
Visual Studio - Creating custom icon for your Visual Studio Add-In (plugin)
![]()
The Add-In Wizard creates an Add-In which has smiley icon by default. This is not what you may want to have while developing enterprise applications.
You can add a custom icon to your Visual Studio Add-In by -
1. Place your custom icon bitmap as resource in your satellite dll file
2. Refering to the Id number of this resource
3. Modifying your AddNamedCommand2() function to set MSOButton parameter to false
Step 1: Add a New Resource Item to your Addin Project

Step 2: Click on Show All Files on tool bar of solution explorer
Step 3: Open Resource1.resx Properties and select build action to none
Step 4: Creating your custom Bitmap image
Open the resource editor and a new bmp image
Let the image name be 'Image1'
This opens your bitmap editor
Change the image properties to 16x16 pixels and Appearance set to True Color
Edit the picture in the editor
Step 5: Modify AddNamedCommand2() method to set MSOButton property to false and refer to id of your resource. In our case we have set it to '1'
Step 6: Right-click the Resource1.resx file in Solution Explorer and select 'Exclude From Project'
Step 7: Select 'Save All' in the 'File' menu and build the solution
Step 8: Open Resource1.resc file in your notepad. Search for all instances of 'Image1' and change them to '1'. Save the file
Step 9: Rename the Image1.bmp file in the Resources folder of your Add-In to '1.bmp'
Step 10: Build the satellite Dll using the following two commands
Step 11: Create a new folder 'en-US' under the add-in's dll directory (/bin) as we typed en-US in culture information for Al.exe
Step 12: Copy
Step 13: Run the Add-In project and you will find your custom icon in the menu bar
Read more ...
Visual Studio - Writing a Add-In (plugin) with context menus
The following example demonstrates how to write a plug-in, clicking on which pops up a context menus with menu items as show in the figure
Follow the steps mentioned in the post to write a simple plugin 'Demo'. Create a new file 'MyMenuItem.cs' with the following content.
Add another file 'MyMenu.cs'
Modify the OnConnection method in the file Connect.cs to make the add-in visible in the 'MenuBar' at the position 1
Modify Exec() method which executes whenever the command is invoked
The ShowMenu() lists the down how the context menu structure should look like
Handling Click events on MenuItems
Now select the Menu Item from the GroupThree
You see a message box with the message 'Hello from GroupThreeMenu3'
Your plugin is working as expected. Cheers !! :)
Read more ...
Apr 3, 2009
Visual Studio - Writing a simple Add-In (plugin)
An add-in is an extension which integrates with the Visual Studio environment and provides new functionality to it. An add-in has full access to Visual Studio (IDE) tools and APIs and can interact with them. An add-in is a compiled DLL file which can be loaded by Visual Studio when it starts.
Creating a Sample Add-In
1. Create a New → Project
2. Select Other Project Types → Extensibility → Visual Studio Add-in
3. An Add-In wizard pops up which will guide you through a series of 7 steps including the welcome page to configure your add-in
Select for creating a 'Tools' menu item. This will list the add-in in tools menu items
On clicking finish, three main files are generated for you
a) CommandBar.resx (Resource File)
b) Connect.cs (Main class file for Add-In logic)
c) WizardSample.AddIn (XML Configuration file for your add-in)
Build the solution and run the project. You will see a Visual Studio instance running within the visual studio. Click on 'Tools' and you can find your Add-In there.
Modify the function OnConnection() as below to add the plugin to 'MenuBar'
Modify Exec() function to add some functionality to the plugin
Read more ...