Today I found the hard way that sudo echo will not work in Ubuntu and a good explanation is given here
http://blogs.oracle.com/joshis/entry/sudo_echo_does_not_work
Here is a small script I use to start a VM and point the system to use the VM as gateway to the internet :-)
bala@lapi:~$ cat ./Go_through_SNORT.sh
#!/bin/bash
#Author: Balasubramaniam Natarajan
#Date: 13-Dec-2011
#This script will set the default route to Bodhidarmar
# and will add in the name server
VBoxManage startvm SNORT
sudo route add default gw 192.168.56.101
sudo sh -c 'echo "nameserver 192.168.1.1" >> /etc/resolv
bala@lapi:~$
http://blogs.oracle.com/joshis/entry/sudo_echo_does_not_work
Here is a small script I use to start a VM and point the system to use the VM as gateway to the internet :-)
bala@lapi:~$ cat ./Go_through_SNORT.sh
#!/bin/bash
#Author: Balasubramaniam Natarajan
#Date: 13-Dec-2011
#This script will set the default route to Bodhidarmar
# and will add in the name server
VBoxManage startvm SNORT
sudo route add default gw 192.168.56.101
sudo sh -c 'echo "nameserver 192.168.1.1" >> /etc/resolv
bala@lapi:~$
No comments:
Post a Comment