建立統包 LINUX TOOLS VM [0003]

建立統包 LINUX TOOLS VM [0003]

建立統包 LINUX TOOLS VM [0003]


01.安裝C# [Mono]開發環境(GtkSharp)

sudo apt install gnupg ca-certificates

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list

sudo apt update

sudo apt install mono-devel

sudo apt install apt-transport-https dirmngr

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu vs-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-vs.list


sudo apt-get install monodevelop


02.安裝Node JS

sudo apt-get install curl
sudo apt-get install python-software-properties
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -

sudo apt-get update
sudo apt-get install -y nodejs

nodejs -v

sudo apt install npm

npm -v

xed /home/tools-vm/test_code/nodejs/app.js
 const http = require('http');

 const hostname = '127.0.0.1';
 const port = 3000;

 const server = http.createServer((req, res) => {
   res.statusCode = 200;
   res.setHeader('Content-Type', 'text/plain');
   res.end('Hello World\n');
 });

 server.listen(port, hostname, () => {
   console.log(`Server running at http://${hostname}:${port}/`);
 });
 
 
nodejs /home/tools-vm/test_code/nodejs/app.js 

03.安裝python3+pycharm [ https://www.youtube.com/watch?v=hpo2Tk2s2pU ]

python -V

sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install python3-distutils
sudo apt-get install python3.7
sudo apt-get install python-opencv

which python3

python3.7 -V

ls -l /usr/bin | grep python
 lrwxrwxrwx 1 root root          56  5月 13 12:41 apt-changelog -> ../lib/python3/dist-packages/mintcommon/apt_changelog.py
 -rwxr-xr-x 1 root root        1056  4月 16  2018 dh_python2
 lrwxrwxrwx 1 root root          23  4月 16 01:20 pdb2.7 -> ../lib/python2.7/pdb.py
 lrwxrwxrwx 1 root root          23  4月 18 09:56 pdb3.6 -> ../lib/python3.6/pdb.py
 lrwxrwxrwx 1 root root          23 11月  7  2019 pdb3.7 -> ../lib/python3.7/pdb.py
 lrwxrwxrwx 1 root root          31  5月 13 12:41 py3versions -> ../share/python3/py3versions.py
 lrwxrwxrwx 1 root root           9  5月 13 12:41 python -> python2.7
 lrwxrwxrwx 1 root root           9  5月 13 12:41 python2 -> python2.7
 -rwxr-xr-x 1 root root     3637096  4月 16 01:20 python2.7
 lrwxrwxrwx 1 root root           9  5月 13 12:41 python3 -> python3.6
 -rwxr-xr-x 2 root root     4526456  4月 18 09:56 python3.6
 -rwxr-xr-x 2 root root     4526456  4月 18 09:56 python3.6m
 -rwxr-xr-x 2 root root     4873376 11月  7  2019 python3.7
 -rwxr-xr-x 2 root root     4873376 11月  7  2019 python3.7m
 lrwxrwxrwx 1 root root          10  5月 13 12:41 python3m -> python3.6m
 lrwxrwxrwx 1 root root          29  5月 13 12:41 pyversions -> ../share/python/pyversions.py

/*
手動下載 https://download-cf.jetbrains.com/python/pycharm-community-2020.1.1.tar.gz

解壓放在 /home/tools-vm/pycharm-community-2020.1.1
*/

cd pycharm-community-2020.1.1/bin
ls -l
./pycharm.sh 

/*
PyCharm安裝Opencv模組套件
 File->Settings
 Project Interpreter->雙擊pip
 輸入opencv-python
 勾選3.4.3.18以上版本
 安裝完畢後輸入import cv2沒有出現錯誤就是安裝成功囉!
*/

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *