LoginSignup
0
0

debian9 環境設定

Last updated at Posted at 2020-12-07

#はじめに
ForceCLI環境をつくるための備忘録1

設定内容の覚え

sources.listの変更

$cd /etc/apt
$vi sources.list

コメントアウト
# deb cdrom:[Debian GNU/Linux 9.6.0 _Stretch_ - Official i386 DVD Binary-1 20181110-12:19]/ stretch contrib main

#deb cdrom:[Debian GNU/Linux 9.6.0 _Stretch_ - Official i386 DVD Binary-1 20181110-12:19]/ stretch contrib main

以下、追加
deb http://ftp.jp.debian.org/debian/ stretch main contrib non-free
deb http://ftp.jp.debian.org/debian stretch-updates main contrib

deb http://security.debian.org/debian-security stretch/updates main contrib
deb-src http://security.debian.org/debian-security stretch/updates main contrib

2023/12/01に行うと404Errorになる。

apt update && upgradeでエラー発生

一部のURLが変わっているみたい。

* http://deb.debian.org/debian -> http://archive.debian.org/debian/
* http://security.debian.org/debian-security -> http://archive.debian.org/debian-security/

時刻合わせ

$apt-get update
$apt-get install ntpdate
NICTの日本標準時と同期する
$ntpdate -bv ntp.nict.jp
ハードウェア日時をシステム日時にJST(local time)で合わせる
$hwclock --systohc --localtime

NTPサーバーのinstall
$apt-get install ntp

引用先はこちら(http://www.green-pen.jp/ntp.html)

goのインストールほか

https://golang.org/doc/install?download=go1.11.4.linux-386.tar.gz

##Force CLIのインストール

$go get -u github.com/ForceCLI/force
go: missing Git command. See https://golang.org/s/gogetcmd
package github.com/ForceCLI/force: exec: "git": executable file not found in $PATH

PATHを通す
vi .bashrc 

PATH=$PATH:/usr/local/go/bin:
export PATH

gitのインストール(上記がエラーになるので、先にいれておく)

apt-get install git

引用先はこちら(https://git-scm.com/download/linux)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0