Better env handling
This commit is contained in:
parent
ad7415f155
commit
3c18a1e2db
@ -29,11 +29,10 @@ if [ ! -f /home/ros/.ssh/id_rsa ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "ros:ros" | chpasswd
|
echo "ros:ros" | chpasswd
|
||||||
su ros -c "printf 'source /opt/ros/$ROS_DISTRO/setup.bash\nsource /home/ros/workspace/install/setup.bash' > ~/.rosrc"
|
su ros -c "printf 'source /opt/ros/$ROS_DISTRO/setup.bash
|
||||||
printf "export DISPLAY=$DISPLAY" > /etc/profile.d/display.sh
|
source /home/ros/workspace/install/setup.bash
|
||||||
printf "export XAUTHORITY=$XAUTHORITY" > /etc/profile.d/xauth.sh
|
export DISPLAY=$DISPLAY
|
||||||
chmod +x /etc/profile.d/display.sh
|
export XAUTHORITY=$XAUTHORITY' > ~/.rosrc"
|
||||||
chmod +x /etc/profile.d/xauth.sh
|
|
||||||
|
|
||||||
echo "Ready to connect."
|
echo "Ready to connect."
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user