Installing Apache on Linux

I’m Preparing this for my next tutorial about :
Installing and Configuring Drupal 7 on a Linux machine.
Installing Apache is easy just a few commands and you’re ready to sue it.
Note: Lamp Server doesn’t just install apache but also PHP/Perl/Python and MySQL

1. Type :

$ sudo tasksel install lamp-server

It will ask some passwords about Mysql just add them and proceed
after finishing go ahead and Continue reading “Installing Apache on Linux”

Fix SSH from disconnecting

I use ssh client a lot…Sometimes happens that it disconnects and to keep that session alive you can try this…

Global Configuration
open /etc/ssh/ssh_config file and add in the end :

ServerAliveInterval 60

Current user configuration
Do the same with  ~/.ssh/config file if you don’t have the file create it

Host *
ServerAliveInterval 60

Indent the second line with a space.

Per-host configuration
If you want to do this just for a single server then in ~/.ssh/config file type :

Host *hostname.com
ServerAliveInterval 60

Thanks, hope it helps !
content : HTG

Free Up disk space in Ubuntu

This tutorial will show you how to remove a lot of used space in your hard drive
Everytime Ubuntu updates or you install software the package manager downloads all the packages to the system, and then cashes them there in ccase they need ti be installed again. Unfortunately, this can often mean a real lot of wasted space.

First Check out the used space for yourseld, head into  /var/cache/apt/archives folder,
or just run the following command from the prompt:

$ du -sh /var/cache/apt/archives

You’ll see that there’s a lot of space being used there… Continue reading “Free Up disk space in Ubuntu”