Linux-Ubuntu-18.04-LTS-Setup
Basic setup for Linux Ubuntu 18.04 LTS (Recommended For ROS)
- These are some suggested changes one should do while starting using Linux Ubuntu 18.04 especailly using it for ROS.
To Update Linux
sudo apt-get update
Entering this command you'll be prompted to enter your password in the same terminal.
Note: While typing
No character or *
will be displayed, as this is a password. Simply type your password and press 'Enter Key'
To Upgrade Linux
sudo get-apt upgrade
While upgrade command you'll be asked to installing the packages, Simply pyress
y and press Enter key
You can also run boths the commands at the same time
sudo apt-get update && sudo get-apt upgrade
Additional Setting
Go to Software and Updates
Change the settings as per the images and close the dailougebox.
Go to Software Updater
Update and Restart the system.
Minimize in Dock
If you click on the icon of any application in the dock, it will not minimize, to fix this
gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize'
Nvidia Drivers for Linux
Alternatively, Go to Software And Updates, Go to Additional Drivers
Select the Recommended Drivers by ( ubuntu-drivers devices ) and Apply Changes
Install Synaptic Package Manager
Open Synaptic Package Manager
Search for,
openjdk-8-jre
Click on it and select Mark For Installation.
Search for,
ttf-mscorefonts-installer
Click on it and select Mark For Installation.
Search for,
ubuntu-restricted-extras
Click on it and select Mark For Installation.
Search for,
apt-xapian-index
Click on it and select Mark For Installation.
Search for,
microcode
Click on it and select Mark For Installation for Intel and AMD Microcode.
Click on apply and Close.
Alternatively, To get the media codecs (Using CLI)
sudo apt-get install ubuntu-restricted-extras
To Reduce Swappiness
To reduce the usage of the disk and use the RAM first
cat /proc/sys/vm/swappiness
gedit admin:///etc/sysctl.conf
Now, you'll be prompted to enter the password, after entering the password a file will be opened. Scroll down the file and at the end write,
vm.swappiness = 10
Save and Close the file and Reboot Your System
After rebooting open terminal and type,
cat /proc/sys/vm/swappiness
The value should be 10
To improve overall performance of Linux System
Select Hard Drive in which you have set up linux and Select the Linux Partition
Go to Menu (Right Top)and Go to Drive Setting (ctrl + E)
Go to Write Cache Enable It and Close the dailougebox.
To Install Some Linux Packages
sudo apt-get install libavcodec-dev libsdl1.2-dev xsltproc libbullet-dev libsdl1.2-dev libgoogle-glog-dev protobuf-compiler python-wstool
To Set Up Git
sudo apt-get install git
To get Flatpak Supports
It enables the softwares which are not provided by Default App Store in Linux; Go to flathub website for more softwares and info
sudo apt-get install flatpak
sudo apt-get install gnome-software-plugin-flatpak
To get the Flatpak softwares directly into the app store
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
For removing unnecessary files and Maintaining System
sudo apt autoremove
GNOME EXTENSIONS
To install Gnome Tweaks
sudo apt-get install gnome-tweaks
To know version of GNOME Shell
gnome-shell --version
To install Gnome Extensions
sudo apt install gnome-shell-extensions
GNOME Extensions Website
(https://extensions.gnome.org/)
To get the Host Connector
sudo apt install chrome-gnome-shell
References
(2) https://itsfoss.com/things-to-do-after-installing-ubuntu-18-04/
(3) https://www.youtube.com/watch?v=BLVtxpm5c2A
(4) https://www.youtube.com/watch?v=ynA_zv2eRzE
(5) https://www.youtube.com/watch?v=CPDDBVeIyLw
(6) https://github.com/PranshuTople/Tools-For-ROS