Saturday, November 26, 2011

tftp config file (/etc/xinetd.d/tftp)


service tftp
{
protocol        = udp
port            = 69
socket_type     = dgram
wait            = yes
user            = nobody
server          = /usr/sbin/in.tftpd
server_args     = -s /opt/myFolder
disable         = no
}

kermit configuration file (kermc)


set modem type none
SET LINE /dev/ttyUSB1
set carrier-watch off
set speed 115200
;set flow rts/cts
;set flow xon/xoff
;set parity even
;set stop-bits 2
set session-log timestamped-text
;SET SESSION-LOG TIMESTAMPS
log session /tmp/my.log new
connect

emphaty gtalk configuration

Add caption

configuring nfs server

vi /etc/exports

add:

/opt *(rw,sync,no_root_squash)

restart server:

/etc/init.d/nfs-kernel-server restart

thats all.. you have added /opt directory for all IP ranges with read write permissions.

Changing terminal colors

At bashrc file you can find a value to make the prompt colorful

force_color_prompt=yes

To customize the colors just modify the line below:

if [ "$color_prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi




Adding bash commands

You just need to add them to alias by editing bashrc
add these lines to the bashrc file

alias hsearch='history | grep' ----> just for search history quickly
alias projectDir='cd /opt/projects/myproject' ---> to go my project dir easily
alias kermit='kermit -y /etc/kermit/kermrc' ----> en axample of using an executable with its arguments