Skip to content

Instantly share code, notes, and snippets.

View abdallahokasha's full-sized avatar
🕵️

Abdallah Okasha abdallahokasha

🕵️
View GitHub Profile

** First of all you should install dependencies sudo apt-get update sudo apt-get install -y build-essential sudo apt-get install -y cmake sudo apt-get install -y libgtk2.0-dev sudo apt-get install -y pkg-config sudo apt-get install -y python-numpy python-dev sudo apt-get install -y libavcodec-dev libavformat-dev libswscale-dev sudo apt-get install -y libjpeg-dev libpng-dev libtiff-dev libjasper-dev

It's very easy, here's how to install it on Ubuntu in 8 steps:
1- go to [Julia downloads page][1]
2- Choose you version (32bit or 64bit) from **Generic Linux Binaries**, and then download it.
3- extract .tar.gz file in home or any place you would like to install Julia on it.
4- run > `gksudo gedit /etc/environment` on your terminal to setup envirnment path.

To install zsh run: (1) > sudo apt-get install zsh

We can run step (2) to see installed zsh version (2) > zsh --version in my case it was: zsh 5.1.1 (x86_64-ubuntu-linux-gnu)

And now install oh-my-zsh: (3) > sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

To show all your shells, you can run:
$ cat /etc/shells
and to choose one of them
simpliy run it directory on terminal
ex:$ /bin/bash
for more info we can check: https://bash.cyberciti.biz/guide//etc/shells

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

@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.

@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 / 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

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

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: