searchforsolutions

Just another WordPress.com site

Category Archives: Linux

Installing MongoDB 2.0.3 on Ubuntu 10.04


I tried following the following wiki:http://www.mongodb.org/display/DOCS/Ubuntu+and+Debian+packages

Didn’t workout so i decided to have my own triage 🙂 . I’m going to assume user is comfortable with Ubuntu.This should work with Ubuntu 11.x too.

  • Create Apt source

Create /etc/apt/sources.list.d/mongodb.list
Add the following line to the above created file : deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen

  • Add the GPG Key and Update Index

sudo mkdir /etc/apt/trusted.gpg.d/

sudo apt-key adv –keyserver keys.gnupg.net –recv 7F0CEB10

sudo gpg –export richard@10gen.com | sudo tee /etc/apt/trusted.gpg.d/mongodb.org-keyring.gpg > /dev/null

sudo apt-get update

sudo apt-get upgrade

  • Install MongoDB

sudo apt-get install mongodb-10gen

Have fun!

Advertisements

Linux internals

Ubuntu – My tryst


Some tips & tricks while working behind corporate firewall/proxy on Ubuntu(11)

1. Setting up proxy server on Ubuntu

export http_proxy=’http://{DOMAIN}\{USERNAME}:{PASSWORD}@{PROXY HOST NAME}:{PORT}/’

2. Setting up proxy for apt-get

Acquire::http::Proxy ‘http://{DOMAIN}\{USERNAME}:{PASSWORD}@{PROXY HOST NAME}:{PORT}/’;

Acquire::https::Proxy ‘https://{DOMAIN}\{USERNAME}:{PASSWORD}@{PROXY HOST NAME}:{PORT}/’;

if you have “@” symbol in your password use %40

3. Turn off firewall

ufw disable

4. Install Vmware tools

mount /dev/cdrom /media/cdrom

cp /media/cdrom/VMwareTools-8.3.7-341836.tar.gz /tmp

tar zxvf /tmp/VMwareTools-8.3.7-341836.tar.gz

cd /tmp/vmware-tools-distrib

./vmware-install.pl

5. Install git

apt-get git-core gitosis

6. Howto configure network

https://help.ubuntu.com/10.04/serverguide/C/network-configuration.html

7. If you are looking for one stop shop for Ubuntu release apart from the LTS version here is the link http://cdimage.ubuntu.com/releases/

Installing centos on Hyper-V


Makes sure you select Legacy Network Adapter while configuring a network for the host OS.

Also a good blog to install Centos on hyper-v with mouse support

http://www.yusufozturk.info/linux-server/centos-6-desktop-installation-on-hyper-v-and-mouse-support-part1.html

http://www.yusufozturk.info/linux-server/centos-6-desktop-installation-on-hyper-v-and-mouse-support-part2.html