Software _ Setup of Ubuntu PC - WARRExploration/Rover_II GitHub Wiki
Get 64-bit version Ubuntu 18.04 from Ubuntu 18.04 releases and create bootable USB Stick (SD-card does not work, as the BIOS of Intel does not support booting from SD-Card).
Follow install instructions:
- Use English as language but German keyboard settings
- Skip wifi settings (setup eduroam later)
- Choose minimal installation
- Choose "erase disk and install Ubuntu" (clean install)
- Select Munich as location
- Select SSD (256GB ATA SanDisk)
- Choose username: "exploration"
- Choose computername: "rover"
Update system by typing
sudo apt update
, sudo apt upgrade
and sudo apt dist-upgrade
To enable ssh connections, install openssh: sudo apt install openssh-server
Enable the ssh service by typing sudo systemctl enable ssh
Start the ssh service by typing sudo systemctl start ssh
Create a .pem
file with the certificate from the warr wiki in it. (currently /home/exploration/eduroam_cert.pem
)
official Ubuntu help page
add the file /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=DE network={ ssid="eduroam" key_mgmt=WPA-EAP pairwise=CCMP group=CCMP TKIP eap=PEAP ca_cert="path/to/certificate.pem" identity="xxXXxxx@eduroam.mwn.de" domain_suffix_match="radius.lrz.de" phase2="auth=MSCHAPV2" password=hash:YYYYYYYYYYYYYYYYYYYYY anonymous_identity="[email protected]" }
replace the X with the lrz username and the Y with the hash of the password. You can look up those information on our private warr wiki. ATTENTION: the path has to be absolute (/home/exploration/... instead of ~/...)
add following lines to the file /etc/network/interfaces
auto wlp58s0
iface wlp58s0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
reboot
Follow the instructions on this site. Install catkin command line tools from this site.
Install ros and catkin, then
cd any/where/you/want
mkdir -p main_ws/src
cd main_ws
catkin init
cd src
git clone https://github.com/WARRExploration/Rover_II.git
git clone https://github.com/WARRExploration/rover_sim.git
cd ..
catkin build
source devel/setup.bash
# to test: e.g. the following command:
roslaunch urdf_tutorial display.launch model:='$(find rover_config)/urdf/rover.urdf'
# or as of 2019-03-30 the simulation is started with
roslaunch rover_sim simulation_joy.launch
# if the robot model is not visible in RViz:
export LC_NUMERIC="en_US.UTF-8"
Install the openVPN client with sudo apt-get install openvpn -y
Download the ****.ovpn
file from the vpn portal linked in the private warr wiki, move it to the folder /etc/openvpn
and rename the ending to .conf
.
Open the file and change the line auth-users-pass
to auth-users-pass .secrets
.
Create the file .secrets
(in the same directory) and write in the first line the username and in the second line the password from the private warr wiki.
uncomment the line AUTOSTART=”all”
int the file /etc/default/openvpn
run following code lines to enable VPN on boot
sudo systemctl enable [email protected]
sudo systemctl daemon-reload
sudo service openvpn start
reboot the system
follow the installation guide