Skip to content

Instantly share code, notes, and snippets.

View abdallahokasha's full-sized avatar
🕵️

Abdallah Okasha abdallahokasha

🕵️
View GitHub Profile
@abdallahokasha
abdallahokasha / Install Rails on Ubuntu.md
Last active November 12, 2022 20:47
How to install Rails and RVM on Ubuntu

Install rvm

sudo apt-get install software-properties-common

  1. Add the PPA and install the package

Open a terminal (Ctrl+Alt+T) and run:

sudo apt-add-repository -y ppa:rael-gc/rvm
1. revert merge ref

git reset --merge commit_hash

@abdallahokasha
abdallahokasha / Install_Eclipse_on_Ubuntu.md
Last active April 20, 2019 16:35
Install Eclipse oxygen on Ubuntu18.04

Install Eclipse on ubuntu

Go to Eclipse and download Download Eclipse C++ IDE

and Eclipse for Java SE

Go to Downloads directory and list floders there

cd Downloads/ && ls

We should find the two packages downloaded as
@abdallahokasha
abdallahokasha / Install_robo3t_Ubuntu.md
Last active September 24, 2023 14:54
Install Robo3t on Ubuntu18.04 and make a desktop icon for it

Install Robo3t On Ubuntu 18.04

Download the package form Robo3t or using wget
wget https://download.robomongo.org/1.2.1/linux/robo3t-1.2.1-linux-x86_64-3e50a65.tar.gz
Extract here using

tar -xvzf robo3t-1.2.1-linux-x86_64-3e50a65.tar.gz

Error: ENOSPC: System limit for number of file watchers reached, watch

Increasing the amount of inotify watchers

You can set a new limit temporary with:
sudo sysctl fs.inotify.max_user_watches=524288
sudo sysctl -p
If you like to make your limit permanent, use:

Create React App on Ubuntu 16.04

Install nodejs

sudo apt install nodejs

Install latest version of node

firstly, install npm sudo apt install npm

@abdallahokasha
abdallahokasha / Laravel-Installation.md
Last active January 14, 2022 04:10
Install php7.2 and Laravel5.5 on Ubuntu 16.04

Install php7.2 for ubuntu 16.04

sudo apt update && sudo apt upgrade

sudo apt-get install software-properties-common python-software-properties

sudo add-apt-repository -y ppa:ondrej/php

@abdallahokasha
abdallahokasha / Enable DVD Support On Ubuntu.md
Last active January 2, 2019 18:57
Enable DVD Support On Ubuntu

Error on ubuntu 16.04 LTS

when open .mkv videos it says "dvd subpicture decoder package is not found"

Solution:

 sudo apt install libdvdnav4 libdvdread4 gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly libdvd-pkg

sudo apt install ubuntu-restricted-extras

@abdallahokasha
abdallahokasha / Ubuntu Partitioning Schema.md
Last active May 7, 2022 20:30
Manual partitioning during Ubuntu installation

Schema Example:

(1) swap

 swap area 
 4000 MB
 Note: that's it's realtive to your RAM Size if we have 8GB we should make it at least 8000MB.

For example: postman

gksudo gedit /usr/share/applications/postman.desktop or sudo gedit /usr/share/applications/postman.desktop

**Note gksudo is used for graphical sudo

and put this in the file