作者Piin (過去 現在與未來)
看板Linux
標題[問題] x2go
時間Thu Jul 19 10:53:55 2018
大家好..小弟日前在一臺工作站(centos7)上安裝了x2goserver
之前工作一切良好,但是在最近重新開機之後,從client用x2go client連線
開始抱怨
"connection failed. bash: .bash_profile: command not found"
小弟家目錄底下的的.bash_profile長得如下,也已經重新yum remove/install x2go了
不知有沒有任何建議可以解決這個問題?
==============================
.bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/.local/bin:$HOME/bin:$HOME/GAMIT_GLOBK/gamit/bin:
$HOME/GAMIT_GLOBK/com:$HOME/GAMIT_GLOBK/kf/bin:/bin:/etc:
export PATH
==============================
感恩~
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 155.69.195.4
※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1531968839.A.C59.html
推 Adama: 第一行就錯了 .bash_profile不是指令 07/19 10:58
→ Piin: .bash_profile的內容是用vi print出來的 07/19 12:16
→ Piin: 我在猜是.bash_profile裡面有PATH變數錯誤, 所以有指令找 07/19 12:17
→ Piin: 不到 07/19 12:17
看來我原本的描述不太精準,更改了一下描述
※ 編輯: Piin (155.69.195.4), 07/19/2018 12:37:43
→ holishing: 可是出現 bash: .bash_profile: command not found ... 07/19 13:15
→ holishing: 如果第一行用 # 註解還是有問題就可以排除 1F 的說法了 07/19 13:16
在把.bash_profile第一行關掉後問題果然x2go-client就可以連線了..
不知道是哪個程式安裝時,還是我自己把他給加進去了 (冏)
甘恩~
※ 編輯: Piin (155.69.195.4), 07/19/2018 13:30:56