Cisco AnyConnect in Linux Mint 12 64bit

I had posted before how I used VPNc at my last company. I have since moved on to a different company where they use Cisco AnyConnect as the VPN client. For the past few months I have been using AnyConnect for Windows not really thinking I could get the client for Linux. Out of the blue this evening I decided to search for an alternative I could use and I found this post, which was very helpful. To break it down, this is how it is done.

From the terminal type:

sudo apt-get install openconnect network-manager-openconnect

Once installed, go into Network Connections and add a new VPN connection:

Network Connections_005

From there you enter the information provided by your IT department. In most cases you will only need to enter information in the VPN tab, specifically the IP address, or host name, in the Gateway field:

Editing VPN connection 1_002

Editing VPN connection 1_001

Once that is configured you should have a VPN selection in your network icon in the panel, select it to connect to VPN. Red meaning disconnected, green for connected.

Desktop_003

To establish a connection a window will open for the VPN connection displaying the IP (or host name) of the VPN gateway. Select the connect button indicated in the red circle in the picture below.

Connect to VPN 'VPN connection 1'_004

Once a successful connection is established a prompt for you to accept the certificate will open (should only prompt once). Once you accept you should then be prompted to enter your username and password. Provided you entered the correct credentials, you will then be connected.

Aside from having to figure out the correct means of entering the gateway information my company provided to me the configuration was surprisingly simple.

Posted in Cisco AnyConnect, Linux, Mint 12, OpenConnect, Tech | Leave a comment

Free Asset Management Database

If you are not aware, I work in IT. Recently, my company was looking for a good asset management software. In my research I came across a large choice of free solutions. In that free allotment I came across one that would be perfect for a small office business or even home office; it’s called IT Items Database and can be found here. The only issue is that it is web based and requires a web server to be running at all times. Luckily for me that was not an issue. I have a media PC I use for watching movies, mostly, that is up all the time and not used on a daily basis and on this machine I run VMware Server. I believe the product has reached end of life but I am sure it can still be found somewhere on the internet. Well on that machine I have a dedicated Linux Mint server. I use Linux Mint 12 on a daily basis on my home desktop machine also but I use the virtual server within VMware for dedicated services, like a web server. Well, because I have so many devices in my home (what home doesn’t these days?) that I decided to test out the ITDB for my own assets. Here is what I did.

First, I followed this guide to install LAMP (Linux, Apache, MySQL, PHP). Basically, in Linux Mint, at the terminal you type:

sudo apt-get install lamp-server^

Then, if you want to manage MySQL, install phpmyadmin by typing:

sudo apt-get install libapache2-mod-auth-mysql phpmyadmin

For a complete guide just check out the link above.

Next, I went to Sivann’s software and downloaded IT Items Database and followed his installation instructions. For Linux Mint I copied the ITDB folder to /var/www and renamed the database file per his instructions. Thereafter I had to give the database file and the directory permissions so that Apache could have access to it. Here is what I performed:

sudo chown www-data itdb.db; chmod u+w itdb.db
sudo chmod u+w itdb.db
sudo chown www-data /var/www/itdb/data
sudo chmod u+w /var/www/itdb/data/
sudo chown www-data /var/www/itdb/data/files/
sudo chmod u+w /var/www/itdb/data/files/

Once that was completed I then browsed to http://localhost/itdb within my browser. The web page didn’t load for me due to an error, this is what I got:

Open database Error!: could not find driver

After further research I found I needed to install sqlite and php5-sqlite. I did so with the following command at the terminal:

sudo apt-get install sqlite php5-sqlite

Then restarted Apache with the following command:

sudo /etc/init.d/apache2 restart

Hit refresh on my browser and all was working.

So far, I have been really impressed with IT Items Database. It’s super easy to use and very effective for keeping track of all your devices. I highly recommend it.

Posted in Asset Management, Linux, Mint, Tech | Leave a comment

Happy Halloween 2012


Posted in Halloween | 1 Comment

Phone Swimming

I dropped my Samsung Galaxy Nexus in orange juice yesterday morning. And though it may sound bad, there is, somewhat, a happy ending to this tale.

So to start things off lets first state that my fiance’s car died last Thursday. Since we did not get it fix but decided to go car shopping over the weekend and had no luck finding a car I had to take her to work yesterday morning. Being that it was so early in the morning she decided to fix breakfast to eat on the way to work (we live about a good 30 minute drive from her employment), which included a cup a orange juice. My usual practice when I drive my car is to plug my phone into the car charge and place it in the cup holder between the driver seat and the passenger seat. Being that it was so dark at 6:00 in the morning, and wasn’t paying attention, I did not notice that she had put her cup of orange juice in the usual spot I put my phone. Needless to say I dunked my phone in the cup and did not realize it until almost a minute later. Luckily, the entire phone did not submerge, just the top half. Well, of course, I immediately removed it from the cup, unplugged it from the charger, and pulled the battery while at the same time pulling every fast food restaurant napkin from my glove box to dry the phone off. I wasn’t expecting a good ending to my favorite phone.

Almost two hours later after arriving to work (I had to drive back home, pick up my 13 year old, and take him to school before I could get to work) I disassemble the phone and soaked up the remaining juice with napkins that was hanging out on the circuit board. At this point I was definitely thinking I would need to buy a new phone. I let it sit on my desk for most of the day completely exposed to help dry any remaining juice that was inaccessible in the cracks. At lunch I decided to pop the battery back in and power it on to gauge the state of the phone. A gamble, I know, as you are not supposed to give power to a soaked electronic gadget. The phone powered on completely however, because I lock my phone with the swipe method on Android 4.1, the swipe was not working, I could not unlock my phone. I pulled the battery and let it dry some more. Again, around mid-afternoon I tried giving power to it; unfortunately it was in the same state. By this time, since it was during my mid-afternoon break, I started searching eBay and Craigslist to see if I could find an inexpensive refurb, of which I was able to find at no less than $250 on average.

Finally, just before leaving for the day at work, I decided to try giving it power one more time; I had a little bit of hope left in me. I placed the battery in and powered it up, tried to swipe the unlock, and what do you know, it unlocked. My level of hope rose from the bottom of the drum to the half empty mark. I removed the battery, wrapped up all the parts and left work to pick up the family from work and school.

Since I did not have a lot of time last evening to troubleshoot it some more I left it on my desk in my home office over night to dry some more. This morning I put it all back together, powered it up and what I have found, so far, is that everything seems to be working at about 97%. The touch screen is not as responsive as it used to be, I find I have to press a little bit harder than usual. The power button is a little stiff so awaking the phone with the power button requires a little more effort. And, finally, the ear speaker is dead, I think. I can hear out it a little so it can’t be completely dead it’s just not as loud as it used to be. I’m thinking that there may be some dried orange juice in the slots on the cover of the phone that is not allowing direct sound to come through to my ear. I may have to troubleshoot this some more or learn to live with a Bluetooth earpiece in my ear every time I want to talk on the phone, at least until I can afford to buy a refurbished Galaxy Nexus to replace what I have. I don’t want to buy another phone but I may have no choice. We’ll see.

Out of all this the optimist in me can say, at least the orange juice was the no pulp kind of orange juice. I can’t imagine it would have been easy to clean out all those chunks of orange on and in my phone. And, it could have been a different outcome.

Posted in Galaxy Nexus, Tech | Leave a comment

Adventures in the Working World

Today was my last day at Attorneys’ Title Fund Services as a Systems Administrator having worked there for almost 4 years. I have accepted a position as Systems Administrator with ABC Fine Wine & Spirits corporate location and will start this coming Monday, and I am excited. The position was discussed quite thoroughly between myself and my fiance and found that ABC presented better opportunities for me and my family. Hopefully, it will prove to be a good choice.

Posted in Career | 1 Comment