0부터 Ubuntu18 구성04

2379 단어 Ubuntu
sudo apt install -y openssh-server
sudo apt install -y vim vim-doc
sudo apt install openjdk-8-doc openjdk-8-jdk
sudo apt install -y git git-doc

docker 설치
sudo apt update
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository  "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt search docker-ce
sudo apt install -y docker-ce docker-ce-cli
sudo docker version
Client:
 Version:           18.09.1
 API version:       1.39
 Go version:        go1.10.6
 Git commit:        4c52b90
 Built:             Wed Jan  9 19:35:31 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          18.09.1
  API version:      1.39 (minimum version 1.12)
  Go version:       go1.10.6
  Git commit:       4c52b90
  Built:            Wed Jan  9 19:02:44 2019
  OS/Arch:          linux/amd64
  Experimental:     false

삼바 설치
sudo apt install -y samba
sudo vim /etc/samba/smb.conf
sudo smbpasswd -a liuwei
sudo service smbd restart

Golang 설치
https://golang.org/dl/
sudo tar -C /usr/local -xzf go1.11.4.linux-amd64.tar.gz
cd ~
vim .profile
export PATH=/usr/local/go/bin:$PATH
export GOROOT=/usr/local/go
export GOPATH=~/Go
source .profile
go env

GOARCH="amd64"
GOBIN=""
GOCACHE="/home/liuwei/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/liuwei/Go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build734951093=/tmp/go-build -gno-record-gcc-switches"

좋은 웹페이지 즐겨찾기