Skip to content

Instantly share code, notes, and snippets.

@juyal-ahmed
Last active March 20, 2019 10:19
Show Gist options
  • Save juyal-ahmed/6a67e8fce63e65971be2374fef2e8cfd to your computer and use it in GitHub Desktop.
Save juyal-ahmed/6a67e8fce63e65971be2374fef2e8cfd to your computer and use it in GitHub Desktop.
Some common installation task for Linux after installing OS
sudo apt-get install -y build-essential
sudo apt-get install curl -y
sudo apt-get install libpng-dev libjpeg-dev -y
sudo apt-get install pngquant -y
sudo apt-get install git -y
sudo apt-get install openssh-server -y
sudo apt-get install unrar -y
# Fix local issue: https://askubuntu.com/questions/162391/how-do-i-fix-my-locale-issue

# installing VIM
sudo apt-get update
sudo apt-get install vim -y

# installing zsh
sudo apt-get update
sudo apt-get install git-core zsh
zsh --version
chsh -s $(which zsh) ============OR=========== chsh -s /bin/zsh
wget --no-check-certificate http://install.ohmyz.sh -O - | sh
vim .zshrc
alias ll='ls -l --color=auto'
alias la='ls -la --color=auto'
ZSH_THEME=amuse
reboot

# installing SDKMAN - http://sdkman.io/install.html
curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk version
sdk install java
sdk current java
sdk install maven
sdk current maven

# installing Docker   
sudo ls   
curl https://gist.githubusercontent.com/tojibon/fadd13d9b1cc5a42f38112911c43b4d6/raw/0f369720ac0109885ffbdc2fc4840b0e50389909/install_docker.sh | bash   
docker -v
docker-compose -v   
   
# installing LAMP7 - https://www.storagecraft.com/blog/install-lamp-server-linux-mint-18-command/
sudo apt-get update && sudo apt-get dist-upgrade -y
sudo reboot
sudo apt-get install lamp-server^ -y
xdg-open http://localhost
sudo nano /var/www/html/info.php
sudo service apache2 restart
sudo apt-get install phpmyadmin -y
sudo service apache2 restart
xdg-open http://localhost/phpmyadmin
sudo apt-get install php-intl

#installing Composer
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
sudo chmod +x /usr/local/bin/composer
composer -V
sudo composer self-update

# installing Spring-STS - https://gist.github.com/tojibon/9e521a276cf93ac79650c8a3f68e03fe

# installing Intellij IDEA - https://www.jetbrains.com/idea/download/download-thanks.html?platform=linux
# https://www.jetbrains.com/help/idea/2017.1/installing-and-launching.html
cd Downloads/
sudo tar xf ideaIU-2017.1.3.tar.gz -C /opt/
cd /opt/idea-IU-171.4424.56/bin
./idea.sh
# https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit

#installing nodejs - https://nodejs.org/en/download/package-manager/
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo ln -s "$(which nodejs)" /usr/bin/node

# installing yarn - https://yarnpkg.com/en/docs/install
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn

# installing JHipster- https://jhipster.github.io/
sudo npm install --global gulp-cli 
sudo npm install -g bower
sudo npm install -g yo
sudo yarn global add generator-jhipster
 
# Generating SSH Key
ssh-keygen
cat .ssh/id_rsa.pub

sudo apt-get install php-curl
sudo apt-get install poedit

# Installing Zeal
sudo add-apt-repository ppa:zeal-developers/ppa
sudo apt-get update
sudo apt-get install zeal

# Installing WP Cli http://wp-cli.org/#installing   
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp
wp --info

# Installing PlayOnLinux https://askubuntu.com/questions/770687/how-to-install-playonlinux-on-ubuntu-16-04   
sudo add-apt-repository ppa:noobslab/apps   
sudo apt-get update   
sudo apt-get install playonlinux

sudo apt install gnome-clocks -y

After installing all of these here are some software to be installed from Ubuntu software:

1. Kazam 
2. Kdenlive
3. Skype 
4. Shutter
@juyal-ahmed
Copy link
Author

In case sdkman / $JAVA_HOME not found:

sudo vim .zshrc

Put this lines at the end of profile file:

export SDKMAN_DIR="/home/user/.sdkman"
[[ -s "/home/user/.sdkman/bin/sdkman-init.sh" ]] && source "/home/user/.sdkman/bin/sdkman-init.sh"

@juyal-ahmed
Copy link
Author

juyal-ahmed commented Jul 3, 2018

#Linux text to voice reading https://www.youtube.com/watch?v=M6vVh7gCxh8
sudo apt-get install festival
sudo apt-get install xsel
echo "Test to read..." | festival --tts
#!/bin/bash 
xsel | festival --tts --pipe
chmod +x talksome.sh

@juyal-ahmed
Copy link
Author

juyal-ahmed commented Nov 28, 2018

Installing PGAdmin4

docker pull dpage/pgadmin4
docker run -p 8082:80 \
-e "[email protected]" \
-e "PGADMIN_DEFAULT_PASSWORD=pword" \
-d dpage/pgadmin4

visit: http://127.0.0.1:8082

@juyal-ahmed
Copy link
Author

sudo add-apt-repository ppa:webupd8team/java -y
sudo apt update -y
sudo apt install oracle-java8-installer -y
export JAVA_HOME=/usr/lib/jvm/java-8-oracle/jre
java -version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment