Bhattacharyya-Avi / myLinexEnv

https://bhattacharyya-avi.github.io/myLinexEnv/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The solution of problem i have faced and what software i am using on my setup

Install the things on root or home directory. Use the command to see the current path

pdw

If have issue with network driver follow the commands. Source.

sudo apt install network-manager
sudo apt update && sudo apt upgrade
sudo lshw -C network

Let's start with Ubuntu environment setup

CURL

sudo apt install curl
curl --version

Note: If you want to use apache please follow official website . I am using ngnix.

NGNIX

sudo add-apt-repository ppa:ondrej/php
sudo apt install -y php-mbstring php-xml php-fpm php-zip php-common php-fpm php-cli unzip
curl nginx
apt-get install nginx
sudo apt install software-properties-common

PHP

Note: please change php version if you don't want to use php8.0 Get info about php version on php release notes.

sudo apt install php8.0-fpm
php -v
sudo apt-get install php8.0-mysql php8.0-mbstring php8.0-xml php8.0-bcmath
systemctl status php8.0-fpm

Composer

sudo curl -s https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
sudo curl -s https://getcomposer.org/installer | php

For check composer is installed or not run command on terminal

composer

Laravel install

sudo composer global require laravel/installer

Create Laravel project

composer create-project laravel/laravel example-app/laravel project name

Mysql:

 sudo apt upgrade && sudo apt update
sudo apt install mysql-client
sudo apt install mysql-server
sudo mysql_secure_installation
mysql --version

go to mysql panel

sudo mysql

or

mysql -u root -p

Change mysql password

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password by 'your database password';

Create New Database and show list of databases

mysql -u root -p

Note: replace databasename with your Database name

create database databasename;
show databases;

Tableplus [For more info goto Tableplus official site ]

Note: Works untill ubuntu 20 LTS version

wget -qO - https://deb.tableplus.com/apt.tableplus.com.gpg.key | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://deb.tableplus.com/debian/20 tableplus main"
sudo apt update
sudo apt install tableplus

For Ubuntu 22 LTS version

wget -qO - https://deb.tableplus.com/apt.tableplus.com.gpg.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/tableplus-archive.gpg > /dev/null
sudo add-apt-repository "deb [arch=amd64] https://deb.tableplus.com/debian/22 tableplus main"
sudo apt update
sudo apt install tableplus

Git

sudo apt-get update
sudo apt-get install git
git config --global user.name "your github username"
git config --global user.email "your github attached email address"
ssh-keygen -t rsa -b 4096 -C "your github attached email address"
eval "$(ssh-agent -s)"
ssh-add -K /Users/you/.ssh/id_rsa

Vs code

sudo apt-get install wget gpg
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/
sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list'
rm -f packages.microsoft.gpg

Then update the package cache and install the package using:

sudo apt update
sudo apt install apt-transport-https
sudo apt update
sudo apt install code

wget install if it give an error

sudo apt install wget

Google Chrome install

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install ./google-chrome-stable_current_amd64.deb

End of the main part of setup env in ubuntu

☕ ❤️☕ ❤️☕ ❤️☕ ❤️☕ ❤️☕ ❤️☕ ❤️☕ ❤️☕ ❤️☕ ❤️☕ ❤️☕ ❤️☕ ❤️☕ ❤️☕ ❤️☕ ❤️☕ ❤️☕ ❤️☕ ❤️☕ ❤️

Additional things

valet install

composer global require cpriego/valet-linux
sudo apt-get install php-curl
test -d /.composer && bash /.config/composer/vendor/bin/valet install
(export PATH=$PATH:~/.config/composer/vendor/bin
ls -al ~/.config/composer/vendor/bin/valet
source ~/.bash_profile)
valet install

To check valet is installed or not

valet

To add directory to valet

valet park

If when package is unable to locate

(test -d /.composer && bash /.composer/vendor/bin/valet install || bash~/.config/composer/vendor/bin/valet install)

For customize the default ubuntu terminal with zsh and modify little bit followed this video

Note : You can go with your loved vedio. 🙂

Give file edit or modify related permission

Note: please run the command if you get issue related with that

sudo chmod 777 -R /var/www/html

Migration driver not found error during migrate command

Note: please run the command if you get issue related with that

sudo apt-get install php-mysql

Package releted issue due to Composer installation or update on project

composer install --ignore-platform-reqs

Remove application from ubuntu

sudo apt-get remove package-name

Hide mounted drive form the dock

gsettings set org.gnome.shell.extensions.dash-to-dock show-mounts false

re-enable mounted drives on the Ubuntu Dock in future

gsettings set org.gnome.shell.extensions.dash-to-dock show-mounts true

Author Avindra bhattacharyya

Thankyou 🌻

About

https://bhattacharyya-avi.github.io/myLinexEnv/


Languages

Language:JavaScript 42.4%Language:SCSS 22.5%Language:CSS 20.1%Language:HTML 14.9%