Skip to content
Snippets Groups Projects
Commit 90c2d5ca authored by Tommy Persson's avatar Tommy Persson
Browse files

Install fixes.

parents 53698b14 3c2bcd3d
No related branches found
No related tags found
No related merge requests found
...@@ -56,7 +56,7 @@ sudo apt install openssh-server ...@@ -56,7 +56,7 @@ sudo apt install openssh-server
Follow the steps below to setup the software required to execute Follow the steps below to setup the software required to execute
Jupyter Notebooks on your native comupter or in a virtual machine. Jupyter Notebooks on your native comupter or in a virtual machine.
You must have the aministrator/root priviliges on the machine. You must have the aministrator/root privileges on the machine and basic/intermediate knowledge of Linux.
### Ubuntu 18.04 ### Ubuntu 18.04
...@@ -106,9 +106,7 @@ does not require a password. If it does you should fix the required permissions. ...@@ -106,9 +106,7 @@ does not require a password. If it does you should fix the required permissions.
```bash ```bash
sudo visudo sudo visudo
``` ```
and add ```NOPASSWD:``` by changing the line:
(use "sudo visudo" to edit permissions,
add NOPASSWD: in the right place). That is edit the line:
```bash ```bash
%sudo ALL=(ALL:ALL) ALL %sudo ALL=(ALL:ALL) ALL
``` ```
...@@ -117,13 +115,13 @@ to ...@@ -117,13 +115,13 @@ to
%sudo ALL=(ALL:ALL) NOPASSWD: ALL %sudo ALL=(ALL:ALL) NOPASSWD: ALL
``` ```
If this is considered a security risk the alternativ is to give the If this is considered a security risk the alternative is to give the
password as argument to the ansible-playbook command: password as argument to the ansible-playbook command:
```bash ```bash
ansible-playbook -i hosts playbooks/wara.yml -e ansible_sudo_pass=****** ansible-playbook -i hosts playbooks/wara.yml -e ansible_sudo_pass=******
``` ```
Install playbooks repo: Install the playbooks repo:
```bash ```bash
sudo apt install git sudo apt install git
git clone https://gitlab.liu.se/lrs/lrs_playbooks.git git clone https://gitlab.liu.se/lrs/lrs_playbooks.git
...@@ -132,14 +130,14 @@ git clone https://gitlab.liu.se/lrs/lrs_playbooks.git ...@@ -132,14 +130,14 @@ git clone https://gitlab.liu.se/lrs/lrs_playbooks.git
In the command below the value of the environment variable specifying In the command below the value of the environment variable specifying
the login name is used. You don't have to replace it. the login name is used. You don't have to replace it.
Run playbook to install and update the wara developer programs: Run playbook to install and update the wara developer programs. It can take several minutes to complete.
```bash ```bash
cd lrs_playbooks cd lrs_playbooks
git pull git pull
ansible-playbook -i hosts playbooks/wara_develop.yml -e user=${USER} -e install_user=${USER} ansible-playbook -i hosts playbooks/wara_develop.yml -e user=${USER} -e install_user=${USER}
``` ```
Add to .bashrc: Add the following commands at the end of ```~/.bashrc``` file:
```bash ```bash
export WORLD_ORIGIN_LAT=57.7605573519 export WORLD_ORIGIN_LAT=57.7605573519
export WORLD_ORIGIN_LON=16.6827607783 export WORLD_ORIGIN_LON=16.6827607783
...@@ -149,15 +147,18 @@ export WORLD_ORIGIN_ELEVATION=29.8 ...@@ -149,15 +147,18 @@ export WORLD_ORIGIN_ELEVATION=29.8
source ${HOME}/wara_ws/devel/setup.bash source ${HOME}/wara_ws/devel/setup.bash
export PATH=${HOME}/waraps/script:${PATH} export PATH=${HOME}/waraps/script:${PATH}
``` ```
These commands will take effect next time you open a new terminal window or login to the system.
At this point your system now has the necessary software installed.
Test 3D graphics You can use the following commands to test the 3D graphics hardware and driver setup on your system:
```bash ```bash
glxgears glxgears
glmark2 glmark2
``` ```
Test Gazebo If the above commands execute without errors you can test that Gazebo works correctly on your system:
```bash ```bash
roslaunch lrs_wara_gazebo gazebo.launch roslaunch lrs_wara_gazebo gazebo.launch
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment