Uploaded by Murtaza Hussain

INSTALLATION OF UBUNTU 18 and ROS installation in UBUNTU 18.04

advertisement
Developed By: SYED MURTAZA HUSSAIN RIZVI.
Dedication
Specially this project work is dedicated to my parants S.Mujahid hussain (My Father) and
Kaneez Fatima Rizvi (My Mother), Institute of Industrial Electronics Engineering: IIEE and to
the students of IIEE.
INSTALLATION OF UBUNTU 18.04 (DUAL-BOOT)
•
•
•
•
•
•
https://releases.ubuntu.com/18.04/ CLICK on this and download 64-bit PC (AMD64)
desktop image it is about 2.3GB .
Take usb of 16 GB use sd card formatter , select your usb and format the usb .
https://www.sdcard.org/downloads/formatter/sd-memory-card-formatter-for-windowsdownload/ (LINK to download sd card formatter).
Then download Rufus for write the 2.3 gb ubuntu iso file into your usb.
https://rufus-usb.en.uptodown.com/windows/download (LINK to download Rufus).
Then run Rufus and select your iso image of 2.3 gb of ubuntu 18.04.
•
•
Do disk management and shrink your volume of disk d about 30 GB.
After shrinking its shows like:
•
After done restart your computer or laptop press F10 or F12 according to your boot menu
option.
•
•
After selecting boot menu option select your USB.
The windows looks like given image:
•
Click on free space of 30 GB and then select + sign which is given in follow figure:
•
Select both primary and beginning of this space options like:
•
After that You can see that there is a tick on 30 gb free space. then go in device for boot
loader installation option and select the disk partion of 30 gb disk partion like this:
•
•
•
•
•
•
click on install, click on continue.
Select time zone and user name and password and then click on continue and don’t skip it
take about 30 min or above in installation.
Then click on restart now after clicking you remove your usb from your computer.
When it restart it gives you options like:
In this the first option is ubuntu and the third option for windows .
This procedure has been made using combination of 2 videos:
1) https://www.youtube.com/watch?v=-iSAyiicyQY&ab_channel=KskRoyal
2) https://www.youtube.com/watch?v=G28jfXt9EaI&ab_channel=SandipSky
Enjoy your dual boot system …
INSTALLATION OF ROS MELODIC ON UBUNTU 18.04
Thanks to these websites for contribution in Installation
•
1) https://www.youtube.com/watch?v=WKlk_2EGfM4&ab_channel=MieRobot .
2) https://varhowto.com/install-ros-melodic-ubuntu-18-04/ .
3) http://wiki.ros.org/melodic/Installation/Ubuntu
Open software and update center and check and set up repositories according to given
figure:
•
•
•
•
Open terminal in ubuntu and run following commands:
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu bionic main" >
/etc/apt/sources.list.d/ros-melodic.list'
if password required at any place in ubuntu you will always use your user’s password.
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key
C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
output like:
•
curl -sSL
'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xC1CF6E31E6BADE8868B172B4
F42ED6FBAB17C654' | sudo apt-key add –
output like:
•
sudo apt update
output like:
•
sudo apt install ros-melodic-desktop-full
output like:
•
•
•
•
•
•
•
•
sudo rosdep init
rosdep update
if there is an error between any above 4 to 5 command use sudo apt install python-rosdep
command then again run that command:
echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
source ~/.bashrc
sudo apt install python-rosdep python-rosinstall python-rosinstall-generator python-wstool
build-essential
printenv | grep ROS
pwd
ouput like:
•
•
•
•
•
•
mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/
catkin_make
source devel/setup.bash
echo $ROS_PACKAGE_PATH
output like:
•
•
•
/home/youruser/catkin_ws/src:/opt/ros/kinetic/share
run follow last command:
roscore
output like:
•
THANKS all of you and specially to my teachers who give the idea about this technology.
Download