質問編集履歴
1
.bashrcの情報の追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -60,6 +60,142 @@
|
|
60
60
|
|
61
61
|
fig.savefig("./test.png")
|
62
62
|
fig.show()
|
63
|
+
|
64
|
+
|
65
|
+
・bashrcの中身
|
66
|
+
.bashrcの中身
|
67
|
+
# ~/.bashrc: executed by bash(1) for non-login shells.
|
68
|
+
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
|
69
|
+
# for examples
|
70
|
+
|
71
|
+
# If not running interactively, don't do anything
|
72
|
+
case $- in
|
73
|
+
*i*) ;;
|
74
|
+
*) return;;
|
75
|
+
esac
|
76
|
+
|
77
|
+
# don't put duplicate lines or lines starting with space in the history.
|
78
|
+
# See bash(1) for more options
|
79
|
+
HISTCONTROL=ignoreboth
|
80
|
+
|
81
|
+
# append to the history file, don't overwrite it
|
82
|
+
shopt -s histappend
|
83
|
+
|
84
|
+
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
|
85
|
+
HISTSIZE=1000
|
86
|
+
HISTFILESIZE=2000
|
87
|
+
|
88
|
+
# check the window size after each command and, if necessary,
|
89
|
+
# update the values of LINES and COLUMNS.
|
90
|
+
shopt -s checkwinsize
|
91
|
+
|
92
|
+
# If set, the pattern "**" used in a pathname expansion context will
|
93
|
+
# match all files and zero or more directories and subdirectories.
|
94
|
+
#shopt -s globstar
|
95
|
+
|
96
|
+
# make less more friendly for non-text input files, see lesspipe(1)
|
97
|
+
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
|
98
|
+
|
99
|
+
# set variable identifying the chroot you work in (used in the prompt below)
|
100
|
+
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
|
101
|
+
debian_chroot=$(cat /etc/debian_chroot)
|
102
|
+
fi
|
103
|
+
|
104
|
+
# set a fancy prompt (non-color, unless we know we "want" color)
|
105
|
+
case "$TERM" in
|
106
|
+
xterm-color|*-256color) color_prompt=yes;;
|
107
|
+
esac
|
108
|
+
|
109
|
+
# uncomment for a colored prompt, if the terminal has the capability; turned
|
110
|
+
# off by default to not distract the user: the focus in a terminal window
|
111
|
+
# should be on the output of commands, not on the prompt
|
112
|
+
#force_color_prompt=yes
|
113
|
+
|
114
|
+
if [ -n "$force_color_prompt" ]; then
|
115
|
+
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; the
|
116
|
+
# We have color support; assume it's compliant with Ecma-48
|
117
|
+
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
|
118
|
+
# a case would tend to support setf rather than setaf.)
|
119
|
+
color_prompt=yes
|
120
|
+
else
|
121
|
+
color_prompt=
|
122
|
+
fi
|
123
|
+
fi
|
124
|
+
|
125
|
+
if [ "$color_prompt" = yes ]; then
|
126
|
+
PS1='${debian_chroot:+($debian_chroot)}[\033[01;32m]\u@\h[\033[00m]:[\033[01;34m]\w[\033[00m]$ '
|
127
|
+
else
|
128
|
+
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w$ '
|
129
|
+
fi
|
130
|
+
unset color_prompt force_color_prompt
|
131
|
+
|
132
|
+
# If this is an xterm set the title to user@host:dir
|
133
|
+
case "$TERM" in
|
134
|
+
xterm*|rxvt*)
|
135
|
+
PS1="[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a]$PS1"
|
136
|
+
;;
|
137
|
+
*)
|
138
|
+
;;
|
139
|
+
esac
|
140
|
+
|
141
|
+
# enable color support of ls and also add handy aliases
|
142
|
+
if [ -x /usr/bin/dircolors ]; then
|
143
|
+
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
144
|
+
alias ls='ls --color=auto'
|
145
|
+
#alias dir='dir --color=auto'
|
146
|
+
#alias vdir='vdir --color=auto'
|
147
|
+
|
148
|
+
alias grep='grep --color=auto'
|
149
|
+
alias fgrep='fgrep --color=auto'
|
150
|
+
alias egrep='egrep --color=auto'
|
151
|
+
fi
|
152
|
+
|
153
|
+
# colored GCC warnings and errors
|
154
|
+
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
|
155
|
+
|
156
|
+
# some more ls aliases
|
157
|
+
alias ll='ls -alF'
|
158
|
+
alias la='ls -A'
|
159
|
+
alias l='ls -CF'
|
160
|
+
|
161
|
+
# Add an "alert" alias for long running commands. Use like so:
|
162
|
+
# sleep 10; alert
|
163
|
+
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]+\s*//;s/[;&|]\s*alert$//'\'')"'
|
164
|
+
|
165
|
+
# Alias definitions.
|
166
|
+
# You may want to put all your additions into a separate file like
|
167
|
+
# ~/.bash_aliases, instead of adding them here directly.
|
168
|
+
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
|
169
|
+
|
170
|
+
if [ -f ~/.bash_aliases ]; then
|
171
|
+
. ~/.bash_aliases
|
172
|
+
fi
|
173
|
+
|
174
|
+
# enable programmable completion features (you don't need to enable
|
175
|
+
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
|
176
|
+
# sources /etc/bash.bashrc).
|
177
|
+
if ! shopt -oq posix; then
|
178
|
+
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
179
|
+
. /usr/share/bash-completion/bash_completion
|
180
|
+
elif [ -f /etc/bash_completion ]; then
|
181
|
+
. /etc/bash_completion
|
182
|
+
fi
|
183
|
+
fi
|
184
|
+
|
185
|
+
## CUDA paths
|
186
|
+
export PATH=/usr/local/cuda-10.1/bin:/usr/local/cuda-10.1/NsightCompute-2019.1${PATH:+:${PATH}}
|
187
|
+
export LD_LIBRARY_PATH=/usr/local/cuda-10.1/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
188
|
+
|
189
|
+
## CUDA paths
|
190
|
+
export PATH=/usr/local/cuda-10.1/bin:/usr/local/cuda-10.1/NsightCompute-2019.1${PATH:+:${PATH}}
|
191
|
+
export LD_LIBRARY_PATH=/usr/local/cuda-10.1/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
192
|
+
|
193
|
+
## CUDA paths
|
194
|
+
export PATH=/usr/local/cuda-10.2/bin:/usr/local/cuda-10.2/NsightCompute-2019.1${PATH:+:${PATH}}
|
195
|
+
|
196
|
+
##openpose_path
|
197
|
+
export PYTHONPATH=/media/hegehoge/0746e58c-9c06-45a5-8029-92750018f1d0/openpose/code/pytorch_Realtime_Multi-Person_Pose_Estimation/lib:$PYTHONPATH
|
198
|
+
export DISPLAY=localhost:0.0
|
63
199
|
```
|
64
200
|
|
65
201
|
### 試したこと
|
@@ -73,6 +209,7 @@
|
|
73
209
|
matplotlib 3.3.0
|
74
210
|
numpy 1.19.1
|
75
211
|
Pillow 7.2.0
|
76
|
-
pip 19.2.3
|
212
|
+
pip 19.2.3
|
77
213
|
|
214
|
+
|
78
215
|
数ヶ月前に,sshでx11を使おうとして、少し設定を変更してしまった可能性が有ります。
|