Tuesday, April 30, 2013
4
comments
undefined
undefined
Mail Server (postfix) Configuration (Debian wheezy)
Postfix installation:
3.apt-get install postfix
it will popup a window for Postfix Configuration...
** Select Internet with Smarthost
** Give system mail name mail.mehedi.com
** Enter SMTP relay host if you want to relay your mail though ISP
So relay host: mx.bol-online.com
if you don't want to relay leave it blank.
** after the completion of installation of postfix it will automatically
restart the postfix service.
4. now we will configure...
0 comments
undefined
undefined
Md. Mahidul HasanGrep command tips
Grep command tips
Grep command tips:
### Search /path/to/file for tom user:
root@host:~# grep tom /etc/passwd
### Ignore word case sencevity:
root@host:~# grep -i "boo" /etc/passwd
### grep recursively (read all files under each directory for a string "192.168.1.5")
root@host:~# grep -r "192.168.1.5" /etc/
### grep to search words only
root@host:~# grep -w "boo" /path/to/file
### grep to search 2 different words
root@host:~# egrep -w 'word1|word2' /path/to/file
### Count line when words has been matched
root@host:~# grep -c 'word' /path/to/file
###...
0 comments
undefined
undefined
Adding Persistent Static Routes in Debian 7 wheezy

Basic Static Routing Part #2 (static route)
Adding Persistent Static Routes in Debian 7 wheezy
My network diagram:
First we have to enable port forwarding at Server#1.
root@server1:~# apt-get install iproute
root@server1:~# vim /etc/sysctl.conf
net.ipv4.ip_forward=1
root@server1:~# sysctl -p
net.ipv4.ip_forward=1
Now, we will add ip address and a static route.
root@server1:~# vim /etc/network/interfaces
# The loopback...
Subscribe to:
Posts (Atom)