3
3
configure_vnc () {
4
4
# Create Openbox application configuration
5
5
mkdir -p /etc/xdg/openbox
6
- cat > /etc/xdg/openbox/rc.xml << 'EOF '
6
+ cat > /etc/xdg/openbox/rc.xml << 'EOF '
7
7
<?xml version="1.0" encoding="UTF-8"?>
8
8
<openbox_config xmlns="http://openbox.org/3.4/rc"
9
9
xmlns:xi="http://www.w3.org/2001/XInclude">
@@ -21,7 +21,7 @@ configure_vnc() {
21
21
</openbox_config>
22
22
EOF
23
23
# Create rviz2 start script
24
- cat > /usr/local/bin/start-rviz2.sh << 'EOF '
24
+ cat > /usr/local/bin/start-rviz2.sh << 'EOF '
25
25
#!/bin/bash
26
26
source /opt/ros/humble/setup.bash
27
27
source /opt/autoware/setup.bash
32
32
fi
33
33
EOF
34
34
chmod +x /usr/local/bin/start-rviz2.sh
35
- echo " echo 'Autostart executed at $( date) ' >> /tmp/autostart.log" >> /etc/xdg/openbox/autostart
36
- echo " /usr/local/bin/start-rviz2.sh" >> /etc/xdg/openbox/autostart
35
+ echo " echo 'Autostart executed at $( date) ' >> /tmp/autostart.log" >> /etc/xdg/openbox/autostart
36
+ echo " /usr/local/bin/start-rviz2.sh" >> /etc/xdg/openbox/autostart
37
37
38
38
# Start VNC server with Openbox
39
39
echo " Starting VNC server with Openbox..."
47
47
48
48
# Set the DISPLAY variable to match VNC server
49
49
echo " Setting DISPLAY to :99"
50
- echo " export DISPLAY=:99" >> ~ /.bashrc
50
+ echo " export DISPLAY=:99" >> ~/.bashrc
51
51
sleep 2
52
52
53
53
# Start NoVNC
79
79
[ " $VNC_ENABLED " == " true" ] && configure_vnc
80
80
source " /opt/ros/$ROS_DISTRO /setup.bash"
81
81
source " /opt/autoware/setup.bash"
82
- exec " $@ "
82
+ exec " $@ "
0 commit comments