-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ubuntu] 20.04 #24
Comments
software
|
env
export JAVA_HOME=/opt/java/jdk/jdk1.8.0_221
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib
export MAVEN_HOME=/opt/java/maven/apache-maven-3.6.1
export PATH=$MAVEN_HOME/bin:$PATH
export GRADLE_HOME=/opt/java/gradle/gradle-6.6.1
export PATH=$GRADLE_HOME/bin:$PATH |
#!/bin/bash
echo '############ 0. INSTALL PIP3 ############'
sudo apt-get install python3-pip -y
sudo apt-get install python3-distutils -y
sudo pip3 install --default-timeout=1000 -U pip
echo '############ 1. INSTALL GCC ############'
sudo apt-get install gcc -y
echo '############ 2. INSTALL vim ############'
sudo apt-get purge vim-common -y
sudo apt-get update -y
sudo apt-get install vim -y
echo '############ 3.INSTALL NET-TOOLS ############'
sudo apt-get install net-tools -y
echo '############ 4.INSTALL UNZIP ############'
sudo apt-get install unzip -y
echo '############ 5.INSTALL OPENDIR ############'
sudo touch /usr/bin/opendir
sudo chmod 777 opendir
sudo echo 'if [ -n "$1" ]; then
nohup nautilus "$1" > /dev/null 2>&1
else
nohup nautilus "$(pwd)" > /dev/null 2>&1
fi
' > /usr/bin/opendir
echo '############ 6.INSTALL CURL ############'
sudo apt-get purge libcurl4 -y
sudo apt-get install curl -y
echo '############ 7.INSTALL GIT ############'
sudo apt-get install git -y
git config --global user.name "Alice52"
git config --global user.email "zzhang_xz@163.com"
echo '############ 8.INSTALL zsh ############'
sudo apt-get install zsh -y
#!/bin/bash
echo '############ 1.config zsh ############'
sudo apt-get install zsh -y
wget https://gitee.com/alice52_xz/codes/ze89utkr0v3c2n6fb45ym25/raw?blob_name=ohmyzsh.sh -O zsh-install.sh
sed -i "s/\r//" zsh-install.sh
chmod +x ./zsh-install.sh
./zsh-install.sh
rm ./zsh-install.sh
echo '############ 2.config ssh ############'
ssh-keygen -t rsa
echo -e "\033[44;37;5m please fill in ssh in github and gitee.\033[0m"
echo "ssh is : "
cat ~/.ssh/id_rsa.pub
read input1
echo '############ 3.CLONE REPOS ############'
mkdir -p ~/workspace/repos
cd ~/workspace/repos
git clone git@github.com:Alice52/java-ocean.git
git clone git@github.com:Alice52/tutorials-sample.git
git clone git@gitee.com:alice52_xz/personal-details.git
git clone git@github.com:Alice52/Alice52.git
git clone git@github.com:Alice52/project.git
git clone git@github.com:Alice52/go-tutorial.git
git clone git@github.com:Alice52/grpc-tutorials.git
|
#!/bin/bash
cd ~/software
echo '############ 1.install netease-cloud-music ############'
sudo dpkg -i netease-cloud-music*
echo '############ 2.install chrome ############'
sudo dpkg -i google-chrome*
echo '############ 3.install vscode ############'
sudo dpkg -i code_*
echo '############ 4.install sogou ############'
sudo dpkg -i sogoupinyin*
# TODO: catch exception
sudo apt-get install -f -y
sudo dpkg -i sogoupinyin*
|
#!/bin/bash
echo '############ 0.install node&npm ############'
wget -qO- https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install nodejs # node -v npm -v
sudo npm install cnpm -g --registry=https://r.npm.taobao.org
# sudo apt-get purge nodejs
# sudo apt-get autoremove
sudo rm -rf /opt/java
sudo mkdir -p /opt/java/jdk
sudo mkdir -p /opt/java/maven
sudo mkdir -p /opt/java/gradle
sudo mkdir -p /opt/java/maven-repository
echo '############ 1.install maven ############'
sudo cp ~/software/apache-mave* /opt/java/maven
cd /opt/java/maven
sudo tar -zxvf apache-mave*
sudo rm apache-maven-3.6.1-bin*
cd apache-maven*
cd conf
sudo mv settings.xml settings.xml.bak
sudo wget 'https://gitee.com/alice52_xz/codes/gkp1ytqi9xjz4h5c03vm726/raw?blob_name=settings.xml' -O settings.xml
echo '############ 2.install jdk ############'
sudo cp ~/software/jdk* /opt/java/jdk
cd /opt/java/jdk
sudo tar -zxvf jdk*
sudo rm jdk-8u221-linux*
echo '############ 3.install gradle ############'
sudo cp ~/software/gradle* /opt/java/gradle
cd /opt/java/gradle
sudo unzip gradle*
sudo rm gradle*.zip
echo '############ 4.install idea ############'
sudo cp ~/software/idea* /opt/java
cd /opt/java
sudo tar -zxvf idea*
sudo rm idea*.gz
sudo mv idea* idea
sudo vim ~/.zshrc
# add env in last of file
source ~/.zshrc
sudo vim /etc/profile
# add env in last of file
source /etc/profile
mvn -version
gradle -version
java -version
javac -version
jmeter -v |
software upgrate
|
software uninstall
|
install golang
.
├── goland-2021-1
├── repo
│ └── protobuf
└── sdk
└── go
|
ubuntu yum replace
|
tips |
ctrl + alt + f1
to command modenvidia card
yum
vim
nvidia card driver
software
mkdir -p ~/software
shortcut
sleep issue
# sudo apt-get purge openssh-client sudo apt install openssh-server
The text was updated successfully, but these errors were encountered: