bugs
diff --git a/vm-setup-lxc.sh b/vm-setup-lxc.sh
index e1e8c35..a979290 100644
--- a/vm-setup-lxc.sh
+++ b/vm-setup-lxc.sh
@@ -8,8 +8,8 @@
 
 # TODO erlang, quagga, wireshark
 #sudo apt-get install -y git openjdk-8-jdk maven unzip curl make gcc wget autoconf openssl libssl0.9.8 libssl-dev libncurses5 libncurses5-dev lxc
-#sudo apt-get install -y git openjdk-8-jdk maven unzip curl wget lxc
-sudo apt-get install -y git wget curl lxc
+sudo apt-get install -y git openjdk-8-jdk maven unzip curl wget lxc
+#sudo apt-get install -y git wget curl lxc
 sudo update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
 sudo update-alternatives --set javac /usr/lib/jvm/java-8-openjdk-amd64/bin/javac
 
@@ -48,15 +48,15 @@
 
 sudo lxc-stop --name onos1
 
-mkdir -p /var/lib/lxc/onos1/rootfs/home/sdn/.ssh
+sudo mkdir -p /var/lib/lxc/onos1/rootfs/home/sdn/.ssh
 sudo cp ~/.ssh/id_rsa.pub /var/lib/lxc/onos1/rootfs/home/sdn/.ssh/authorized_keys
 sudo chmod 666 /var/lib/lxc/onos1/rootfs/home/sdn/.ssh/authorized_keys
 
 sudo lxc-clone onos1 onos2
-sudo sh -c "sed -i s/10.0.3.11/10.0.3.12 /var/lib/lxc/onos2/rootfs/etc/network/interfaces"
+sudo sh -c "sed -i s/10.0.3.11/10.0.3.12/ /var/lib/lxc/onos2/rootfs/etc/network/interfaces"
 
 sudo lxc-clone onos1 onos3
-sudo sh -c "sed -i s/10.0.3.11/10.0.3.13 /var/lib/lxc/onos3/rootfs/etc/network/interfaces"
+sudo sh -c "sed -i s/10.0.3.11/10.0.3.13/ /var/lib/lxc/onos3/rootfs/etc/network/interfaces"
 
 sudo lxc-start --name onos1
 sudo lxc-start --name onos2
@@ -71,10 +71,18 @@
 USER=mininet
 USER_HOME=/home/${USER}
 
+sudo su - ${USER}
+
 cd ~
 git clone https://gerrit.onosproject.org/onos
 cd onos && git checkout 1.1.0 && cd -
 
+echo ". ~/onos/tools/dev/bash_profile" >> ~/.bashrc
+echo "export ONOS_ROOT=${USER_HOME}/onos" >> ~/.bashrc
+
+exit
+sudo su - ${USER}
+
 echo $JAVA_HOME
 export JAVA_HOME=""
 cd $ONOS_ROOT && mvn clean install && mvn dependency:go-offline && cd -