Wednesday, May 18, 2011

Setting up Git

https://help.ubuntu.com/community/Git

There is a local machine and a server which will act as a Git Server.

On the git server:
sudo apt-get install python-setuptools git-core gitosis

On the local machine:
ssh-keygen -t rsa
scp the public key to Git Server at /tmp/pub-key

On the git server:
sudo -H -u gitosis gitosis-init < /tmp/pub-key

Thursday, March 24, 2011

To get a Static IP Address from a DHCP Server (On Linux)

Thanks to Ivan.


Edit /etc/network/interfaces

Change settings to:

# The loopback network interface
auto lo
iface lo inet loopback

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth0

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.35
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.1.255
gateway 192.168.1.254

Log4J Configuration

After a lot of headaches and retries, the log4j.properties config file that worked for me is this: http://www.benmccann.com/dev-blog/sample-log4j-properties-file/ . Simply placing this under src/main/resources works. I am using standard maven settings. 

Tuesday, February 15, 2011

Problems in Viewing Docx On Ubuntu?

After having a lot of trouble in viewing Docx, I installed odf-converter-integrator from http://katana.oooninja.com/w/odf-converter-integrator/download . This helped a lot although the output was not perfect.

Sunday, January 23, 2011

Changing Timezone on Ubuntu

dpkg-reconfigure tzdata
 
http://webonrails.com/2009/07/15/change-timezone-of-ubuntu-machine-from-command-line/

Saturday, January 22, 2011

Disk Check during Shutdown on Ubuntu (and not during startup)

Just installed autofsck. This goes into the "my base installations" list. 

Friday, January 14, 2011

Juniper VPN on Ubuntu

There are certain issues with Juniper on Ubuntu. The following getaround works well for me though:

http://ubuntuforums.org/showpost.php?p=10346501&postcount=416

Sunday, January 9, 2011

Some Windows Commands

From command prompt, Taskkill /pid to kill a task. 


Tasklist /v to get a list of running tasks. 


netstat -ano to get the list of used network ports and the pid using the port.