2 開發環境的搭建,Ubuntu14 04

2022-08-05 14:12:11 字數 3146 閱讀 3533

這裡使用的是ubuntu14.04 unity

首先,將更新源更換為國內更新源,我這裡使用的是網易的更新源

sudo gedit /etc/apt/sources.list

1 deb  main restricted universe multiverse

2 deb trusty-security main restricted universe multiverse

3 deb trusty-updates main restricted universe multiverse

4 deb trusty-proposed main restricted universe multiverse

5 deb trusty-backports main restricted universe multiverse

6 deb-src main restricted universe multiverse

7 deb-src trusty-security main restricted universe multiverse

8 deb-src trusty-updates main restricted universe multiverse

9 deb-src trusty-proposed main restricted universe multiverse

10 deb-src trusty-backports main restricted universe multiverse

更新源

sudo apt-get update

更新已安裝的包

sudo apt-get upgrade

wget

sudo dpkg -i google-chrome-stable_current_amd64.deb

出現安裝錯誤的話,執行

sudo apt-get -f install

再繼續上一步的安裝

$sudo cp monaco_linux.ttf /usr/share/fonts/truetype/$sudo fc-cache -f -v

新增sublime text 3的倉庫:

sudo add-apt-repository ppa:webupd8team/sublime-text-3

sudo apt-get update

sudo apt-get install sublime-text-installer

配置:我安裝的有 jedi/aotupep8/theme-soda

個人配置檔案:

sudo add-apt-repository ppa:numix/ppa

sudo apt-get update

sudo apt-get install numix-icon-theme-circle

首先安裝pip:

sudo apt-get install python-pip

安裝tornado

sudo pip install tornado

(目前我pip安裝的版本為:

downloading/unpacking tornado

downloading tornado-4.2.1.tar.gz (434kb): 434kb downloaded

安裝torndb

sudo pip install torndb

(torndb依賴

import mysqldb.constants

importerror: no module named mysqldb.constants

sudo apt-get install python-mysqldb

安裝yaml

sudo pip install pyyaml

sudo apt-get install mysql-server-5.6

安裝過程中會讓你設定root的密碼,設定即可(建立新的database:blog,建立新的使用者:jakey,賦予新使用者對blog的所有許可權)

1 jakeychen@jakeypc:~$ mysql -u root -p

2enter password:

3 welcome to the mysql monitor. commands end with ; or

\g.4 your mysql connection id is 45

5 server version: 5.6.19-0ubuntu0.14.04.4(ubuntu)68

9 oracle is a registered trademark of oracle corporation and/or

its10

affiliates. other names may be trademarks of their respective

11owners.

1213 type '

help;'or

'\h'for help. type '\c'

to clear the current input statement.

1415 mysql>create database blog;

16 query ok, 1 row affected (0.00sec)

1718 mysql> create user jakey identified by '

123'

;19 query ok, 0 rows affected (0.00sec)

2021 mysql> grant all on blog.* to jakey identified by '

123'

;22 query ok, 0 rows affected (0.00sec)

2324 mysql>

sudo apt-get install supervisor

sudo apt-get install nginx

2 開發環境搭建1

step1 採用語言 c 開發環境 centos6.3 安裝過程基本上按照 configure make make install 一路下來。接下來需要測試一下安裝是否成功,需要編寫最簡單的 來測試各個軟體 首先是protobuffer,測試 如下 gen.sh protoc cpp out tes...

Ubuntu開發環境搭建

在虛擬中試玩ubuntu1604版本,有關安裝後一些配置記錄如下,以備後用。apt get dpkg sudo vim etc network inte ces auto ens33 iface ens33 inet dhcp iface ens33 inet static address 192....

1 搭建開發環境

首先,確認系統安裝的python版本是2.7.x python version python 2.7.5前端模板引擎jinja2 easy install jinja2mysql的python驅動程式mysql connector python easy install mysql connecto...