Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

Thursday, January 26, 2012

Network bridging on linux

ifconfig eth0 down
ifconfig eth1 down
ifconfig eth1 0.0.0.0
ifconfig eth0 0.0.0.0
brctl addbr br0
brctl addif br0 eth0
brctl addif br0 eth1
dhclient br0

Tuesday, November 29, 2011

How to run an application as root on the panel @ubuntu

Just add gksu at the beginning of the command.




When you click on the item, it asks you to enter your password.


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
}

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