noob здесь. Я хочу добавить папку в PATH только под свою учетную запись. Пытался найти ответы на некоторое время. Завершите методы get, как создание .profile .bash_profile в моем домашнем каталоге (~) и добавьте в них строку с новой информацией о пути. До сих пор ничего не работало. Я использую клиент X2Go на рабочем столе Windows для входа в терминал сервера ubuntu. Не уверен, что этот процесс не оценивает «.profile» или «.bash_profile»? PATH я получаю всегда те, которые определены в / etc / environment (которые я не могу изменить). Если это так, как я могу добавить PATH из своего собственного места, который будет доступен мне только при входе в систему из X2Go?
Большое спасибо за любой ввод.
Мне пришлось проверить страницу Википедии для X2Go, чтобы найти It provides secure remote sessions via ssh. Поэтому, прочитав man ssh (Online-страница ssh man), вы найдете:
Additionally, ssh reads ~/.ssh/environment, and adds lines of the format “VARNAME=value” to the environment if the file exists and users are allowed to
change their environment. For more information, see the PermitUserEnvironment option in sshd_config(5).
...
~/.ssh/environment
Contains additional definitions for environment variables; see ENVIRONMENT, above.
Мне пришлось проверить страницу Википедии для X2Go, чтобы найти It provides secure remote sessions via ssh. Поэтому, прочитав man ssh (Online-страница ssh man), вы найдете:
Additionally, ssh reads ~/.ssh/environment, and adds lines of the format “VARNAME=value” to the environment if the file exists and users are allowed to
change their environment. For more information, see the PermitUserEnvironment option in sshd_config(5).
...
~/.ssh/environment
Contains additional definitions for environment variables; see ENVIRONMENT, above.