Skip to main content

Posts

Enable ActiveX in Windows Server 2008 R2

This is a classic example of "do what I say but don't follow what I do." ActiveX technology is not something that you will trust on the internet. You may use it in a trusted environment like on intranet but not the world wide web. When you download ISO files from MSDN you would need Microsoft File Transfer Manager which needs ActiveX to work. Windows Sever 2008 R2 and probably the older Windows Sever 2008, IE by default is configured to not allow execution of ActiveX control even if you enable in Internet Options. I can imagine that this is done to minimize the surface attack area of the machine. To temporarily allow execution of ActiveX in IE, bring Server Manager and click on Configure IE ESC (Enhanced Security Manager). Then enable the appropriate group - for example below screen shows that for Administrators IE ESC is disabled. Open/close IE so that the changes will take effect. References: http://blogs.msdn.com/b/agileer/archive/2008/12/05/how-to-enable

TFS Express 2012 Express limits

TFS Express 2012 Express limits Is limited to no more than 5 named users. Only supports SQL Server Express Edition (which we’ll install for you, if you don’t have it) Can only be installed on a single server (no multi-server configurations) Excludes the TFS Proxy and the new Preemptive analytics add-on. References: http://stackoverflow.com/questions/10926189/whats-missing-in-tfs-express http://blogs.msdn.com/b/bharry/archive/2012/02/23/coming-soon-tfs-express.aspx http://channel9.msdn.com/Forums/TechOff/Got-some-questions-about-TFS-Express-2012

Samba share not working after reboot on Ubuntu 12.10

So I just installed Samba server on Ubuntu 12.10, configured it, restarted the daemon and everything is happy. But when I reboot the machine, Samba share always stops working. Restarting the daemon will make it work. I am not sure what's going but adding the following in sbmd.conf seems to fix it. start on (local-filesystems and net-device-up IFACE=eth0)

Fixing staf: error while loading shared libraries: libSTAF.so: cannot open shared object file: No such file or directory

 Assuming you have installed STAF in Lubuntu (13.04 in my case), running staf local ping ping you may observe the following error: staf: error while loading shared libraries: libSTAF.so: cannot open shared object file: No such file or directory To fix this, modify/add LD_LIBRARY_PATH to ~/.bashrc like: export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/staf/lib"

Set Lubuntu to autologon

To set Lubuntu (tested using 13.04 minimal install) to auto-logon, change /etc/lightdm/lightdm.conf , see below for samle cofiguration. [SeatDefaults] autologin-user=timus autologin-timeout=0 user-session=Lubuntu greeter-session=lightdm-gtk-greeter References: http://ubuntuforums.org/showthread.php?t=1472113

Recording VNC session

Recording VNC session sudo apt-get install python-setuptools sudo apt-get install python-dev sudo easy_install vnc2flv sudo apt-get install vlc Create ~/vnc/passwd (text file) with the clear text password flvrec.py -P ~/vnc/passwd <IP> In Ubuntu, stop recording by sending SIGINT, like kill -s SIGINT 7705 . Where 7705 is the process ID of the python flvrec.py run.

The following packages have been kept back

In Ubuntu (or Debian and other derivatives), you might observe the following message when performing sudo apt-get upgrade . The following packages have been kept back To get rid of this one, do: $: sudo apt-get install <package name(s)> For example, below was one of the error messages I am getting: The following packages have been kept back     linux-generic linux-headers-generic linux-image-generic To fix this do: $: sudo apt-get linux-generic linux-headers-generic linux-image-generic

Using Coded UI library in VS2012 Express Windows Desktop

Pre-requisites: Visual Studio 2012 Express Windows Desktop Agents for Visual Studio 2012 Update 1 ( link ) Steps: Install VS2012 Express Windows Desktop Install Test Agent from "Agents for Visual Studio 2012 Update 1 Download a copy cuitemplate from https://apisamplecode.codeplex.com/. This link goes directly to the source location ( link ) Sample code below uses ApplicationUnderTest class. For it to work, you need to reference the following assemblies: C:\Program Files (x86)\Common Files\Microsoft Shared\VSTT\11.0\Microsoft.VisualStudio.TestTools.UITest.Extension.IE.dll C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\Microsoft.VisualStudio.TestTools.UITest.Extension.IE.Communication.Interop.dll C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\Microsoft.VisualStudio.TestTools.UITest.Framework.dll C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\Microsoft.VisualS

apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

When I try to restart Apache using sudo service apache2 restart I am getting the following message: * Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName To get rid of it, I have to add the following in my /etc/hosts file: 127.0.1.1 ubu1210minib.com ubu1210minib Where ubun1210minib.com ubun1210minib is an arbitrary name I selected. Of course this is not the proper way to fix it as the above information does not properly resolve.  Also need to modify /etc/apache2/sites-enabled/000-default  to have a line like: <VirtualHost *:80> ServerAdmin webmaster@localhost ServerName ubu1210minib.com DocumentRoot /var/www Note the line that contains ServerName , that should match with the name prov

Installing Google Chrome in Ubuntu 12.10 from the command line

Of course you can install Chromium, but hey I wanna use Google Chrome. To install from the command line, do: $: cd ~/Downloads $: wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb $: sudo dpkg -i ~/Downloads/google-chrome-stable_current_i386.deb $: sudo apt-get -f install The last line is needed to install the required dependencies and complete Chrome installation. To install 64bit version of Chrome, you have to change download path to https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb , like: $: wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb Note(s): * This applies to Debian 7 Wheezy Reference(s): http://askubuntu.com/questions/79280/how-to-install-chrome-browser-properly-via-command-line

Additional packages for my base Debian 7 Wheezy

Below are the packages that I normally install after having configured by minimal base Debian 7 system. Leafpad text editor (leafpad) LightDM Display Manager (lightdm) LXDE Core window manager (lxde-core) LXDE GTK+ theme switcher (lxappearance) Midnight Commander (mc) Midori light weight GUI browser (midori) Synaptic package manager (synaptic) Terminus xfonts (xfonts-terminus)

Additional applications after installing mini Ubuntu

I have installed Ubuntu using netinstall to have more control as to what gets installed in the system. I have selected Lubuntu minimal installation in Software Selection (tasksel). It is pretty clean I should say. Here are some of the tools that I install to make it more useful for my needs: Customize Look and Feel (lxappearance) - LXDE GTK+ theme switcher Chromium Browser (chromium-browser) - open source version of Google's Chrome browser Image Viewer (gpicview) - lightweight image viewer Leafpad (leafpad) - a text editor, it is a GTK+ based simple editor LXTerminal (lxterminal) - LXDE terminal emulator Midnight Commander (mc) - a powerful file manager
To sequence one command after another one can use & to do it. For example: set test=hello & call echo %test% set test="hello" sets the value and call echo %test% shows the result to the standard output. Note also the use of call instruction, that forces the interpreter to re-interpret echo otherwise it will not see changes made.

How to: Install Visual Studio 2012 Update 1 Offline

Inspired by Rob Caron's blog on installing VS2012 Update 1 offline. Below shows how to download without user interaction with the GUI. C:\> vsupdate_KB2707250.exe /layout f:\tmp /passive Of course you need to download the installer first, see this link . It is assumed that vsupdate_KB2707250.exe is in the system path or in the root of drive C:. And you have enough space in drive F:\. References: http://blogs.msdn.com/b/robcaron/archive/2012/11/26/how-to-install-visual-studio-2012-update-1-offline.aspx