Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Linux Ask!

May 102011
 

Disable a service in Ubuntu using upstart

Answer:

In newer version of Ubuntu such as 10.04, some services are managed by upstart and you cannot disable them by using the old method.

For example, to disable the OpenSSH server, you need to edit the file /etc/init/ssh.conf, comment out the following lines:

# start on filesystem
# stop on runlevel [!2345]

Then this service will not start when you reboot your machine next time. All the upstart configurations files are under this folder and feel free to try it out.

May 082011
 

Install git under Ubuntu

Answer:

Thanks to the github, git is becoming more and more popular, seems it is becoming the de facto standard of distributed version control tool for now.

To install it under Ubuntu, you need one command:

# sudo apt-get -y install git-core

Than you can clone existing repos on github easily.

# git clone https://github.com/joyent/node.git

May 062011
 

Limit Apache only listen to IPv4 address

Answer:

Apache httpd web server might listen IPv6 address if your system support IPv6.

To disable IPv6 supprt, add the following lines to the Apache configuration (httpd.conf)

# Listen 80
Listen 0.0.0.0:80 # New value

Restart Apache to take effect

# apachectl -k graceful