sh 在Linux Mint Debian(Cinnamon)上安装开发软件

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 在Linux Mint Debian(Cinnamon)上安装开发软件相关的知识,希望对你有一定的参考价值。

#!/bin/bash

# Create tmp dir
echo "Creating temporal dir..."
mkdir ~/installation-dev
cd ~/installation-dev

# Add Google Chrome to APT
echo "Adding Google Chrome to APT..."
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - 
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt-get update 

# Install apt packages
echo "Installing packages via APT"...
sudo apt-get -y install curl wget build-essential unzip gnutls-bin nfs-common nfs-kernel-server php5 php5-cli nodejs mysql-workbench git virtualbox virtualbox-qt virtualbox-dkms linux-headers-amd64 nodejs owncloud-client vim google-chrome-stable network-manager-openvpn network-manager-openvpn-gnome inkscape gimp

# Trust my self-signed cert
echo "Adding certs..."
gnutls-cli --print-cert yourdomain.here </dev/null| sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > yourdomain.here.crt
sudo cp yourdomain.here.crt /usr/local/share/ca-certificates/yourdomain.here.crt
sudo update-ca-certificates

# Install Sublime Text 3
echo "Installing Sublime Text 3..."
wget http://c758482.r82.cf2.rackcdn.com/sublime-text_build-3065_amd64.deb
sudo dpkg -i sublime-text_build-3065_amd64.deb
git clone https://github.com/mimopo/sublime-settings.git ~/.config/sublime-text-3/Packages/User
wget https://sublime.wbond.net/Package%20Control.sublime-package -P ~/.config/sublime-text-3/Installed\ Packages/

# Install Skipper
echo "Installing Skipper..."
wget http://downloads.skipper18.com/3.0.1.1129/Skipper-3.0.1.1129-Linux-all-64bit.zip
unzip Skipper-3.0.1.1129-Linux-all-64bit.zip -d skipper
sudo mv skipper /opt/skipper
echo "#!/usr/bin/env xdg-open

[Desktop Entry]
Version=1.0
Type=Application
Name=Skipper
GenericName=Skipper
Comment=Skipper
Exec=/opt/skipper/Skipper %F
Terminal=false
Icon=Skipper
Categories=Database;Development;
StartupNotify=true
Icon[es_ES]=/opt/skipper/Skipper.ico" > ~/.local/share/applications/skipper.desktop

# Install Vagrant
echo "Installing Vagrant..."
wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.6.5_x86_64.deb
sudo dpkg -i vagrant_1.6.5_x86_64.deb

# Install Composer
echo "Installing Composer..."
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer

# Install PHP linters
echo "Installing PHP Linters..."
composer global require fabpot/php-cs-fixer @stable
composer global require phpmd/phpmd @stable
composer global require "squizlabs/php_codesniffer=*"
git clone https://github.com/leaphub/phpcs-symfony2-standard.git ~/.composer/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Symfony2

# Install NPM
echo "Installing NPM..."
sudo update-alternatives --install /usr/bin/node nodejs /usr/bin/nodejs 100
curl https://www.npmjs.org/install.sh | sudo sh

# Install NodeJS packages
echo "Installing NodeJS packages..."
sudo npm install -g less
sudo npm install -g bower
sudo npm install -g csslint
sudo npm install -g jshint

# Configure Git
echo "Configuring git..."
git config --global credential.helper "cache --timeout=3600"
echo -n "git config: Introduce tu nombre completo > "
read input
git config --global user.name $input
echo -n "git config: Introduce tu email > "
read input
git config --global user.email $input
echo "git config:"
git config --global -l

# Generate ssh key
echo "Generating ssh key..."
ssh-keygen -t dsa -b 1024

# Remove tmp dir 
echo "Removing temporal dir..."
cd 
rm -Rf ~/installation-dev

echo "Finished"

以上是关于sh 在Linux Mint Debian(Cinnamon)上安装开发软件的主要内容,如果未能解决你的问题,请参考以下文章

如何在 Ubuntu/Debian/Linux Mint 中编译和安装 wxWidgets

基于Ubuntu和基于Debian的Linux Mint 20新特性一览

Linux mint与Ubuntu哪个好?有啥区别?

sh 在Linux Mint上安装Docker

sh 在Linux Mint上安装Docker

sh 在Linux Mint 17上安装Docker