Posts

Login remotely to a ADS authenticated RHEL system

This week I was trying to get an RHEL system to authenticate me using my Active Directory credentials. After a bit of looking around, I cam across this wonderful step-by-step procedure to get it done: Attaching a RHEL6 server install to Active Directory for authentication Everything was going on well. I was able to do a local login using: ssh myuser@MYDOMAIN@localhost I just thought it might be cool to try logging in to my newly configured ADS authenticated box over SSH from another machine. So I tried, ssh myuser@MYDOMAIN@192.168.0.1 which obviously didn't work. The shell was treating "MYDOMAIN@192.168.0.1" as the hostname. With a little bit of playing around I found out that the following worked: ssh "MYDOMAIN\myuser"@192.168.0.1 It looks like specifying the domain the way usually Windows expects it really did work if it was enclosed in quotes!

Installing Windows 8 without an optical drive

Finally managed to get Windows 8 installed on a laptop without a optical disc drive. This was a Lenovo ideapad S405 which came pre installed with Windows 8, but since I was more inclined to use Linux on it, I had somehow managed to get Ubuntu installed on it. Now, I'm usually a Fedora guy, but for some reason the driver for the mouse/touchpad which comes compiled into the kernel was less stable in the version of Fedora that I was using, hence the brief switch to Ubuntu. Now when I had to give the laptop away to someone who's going to use Windows most of their time, I had to make sure that I could install Windows back onto it. I must say, that in spite of being warned by the salesman at the store to maintain a backup of Windows 8 if I was to wipe out Windows form the laptop; I did not follow his advice. I started off obtaining the iso for Windows 8, which could then be restored onto a USB drive with at least 4GB of storage capacity. When I tried directly restoring the iso image...

500 Internal Server error with codeigniter mysql connection

I was trying out CodeIgniter  today. I found it quite lightweight and easy to get started with. MVC was fine until I came across a strange issue. Every time I tried to connect to the database, I would end up getting the infamous "500 Internal server error". Unfortunately, even after checking through all http logs, I was not able to trace it to anything that could've gone wrong. I had apache, php, mysql installed and configured correctly. Spent about 4 hours trying out different configurations, playing around with the database names, model names, etc, just to realise later that I did not have the php-mysql driver installed! This time I was on an ubuntu machine, so I had to: apt-get install php5-mysql and then although I could see that apt-get had already restarted apache2 for me, I just thought of doing it myself as well, service apache2 restart and there it was. Everything was working the way I wanted it to be. It was a very silly thing to miss out on this one. I have don...

Accents in Windows 8 on a Mac

Having been used to the Compose Key in Linux, I was trying to find out a way to type Portuguese (accented) characters in Windows 8 installed on a Macbook Pro. After reading up about the Dead key and use of AltGr key, I started experimenting with different key combinations. My keyboard layout was set to US (English). While playing around with different keys, I just found out that you could use the left "control" key in almost the same way as you would use the "Compose Key" on Linux. For example,   <Ctrl>` a  gives you,   à  While using the control key, do mind the fact that in many instances, "CTRL"+<some aplhabet> are bound to some default actions, like <CTRL>+o opens a new file, etc. Well, that seems to work well only in the address bar of Chrome. So, next I figured that you can actually use others keys as well instead of just the <Ctrl> key if you change your keyboard layout to US-International Keyboard layout. <Alt> + ...

Backslashes and MinGW32

I was trying to create a directory today inside an existing directory in MinGW32 on Windows 8. When I tried executing the following command, mkdir code\project it just didn't complain about anything, but it did create a directory - not exactly the way I intended it to. It created a directory "codeproject" by simply stripping off the backslash from the command. If you still need to use backslashes only, then you should enclose the path in quotes like, mkdir "code\project" else, you could use forward slashes instead of backslashes.

Proxy Error 502 “Reason: Error reading from remote server” with Apache 2.2.3

I had a setup of tomcat running on port 8080 and Apache proxying for tomcat on port 80. If I tried to access webapps directly from tomcat on port 8080,. they were accessible, while on port 80, I would get the followig error: Proxy Error 502 “Reason: Error reading from remote server” with Apache 2.2.3 following fix worked: adding retry=1 acquire=3000 timeout=600 Keepalive=On after the Proxy directive in the http configuration.

jQuery UI plugin conflict with dot net's default jQuery UI

A very short note on something I came across today (I might elaborate on this later..) In a dot Net application, I found that when I tried to use the jQuery UI Autocomplete plugin, there was a conflict. The errors and messages that I came across in the console of Chrome, indicated that there was an API mismatch in the jQuery UI library and the jQuery UI Autocomplete plugin. After a bit of inspection, I found out that dot Net had it's own version of jQuery UI, which actually was a concatenation of many jQuery UI plugins along with the jQuery UI core (even though it was named as jquery-ui.js!). It was pretty straightforward to fix this - I just had to get rid of one of them, either the dot Net's version or the original jQuery UI's version. In my case, since it was a dot Net application, I thought it might be better to retain Microsoft's copy of  jQuery UI!