Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
mopig
V2EX  ›  Linux

这样的语句,重新 ssh 连接时,如何让TA不失效?

  •  
  •   mopig ·
    mopig · Nov 8, 2013 · 3547 views
    This topic created in 4570 days ago, the information mentioned may be changed or developed.
    如下:
    export LANGUAGE=en_US.UTF-8
    export LANG=en_US.UTF-8
    export LC_ALL=en_US.UTF-8
    locale-gen en_US.UTF-8
    sudo dpkg-reconfigure locales
    9 replies    1970-01-01 08:00:00 +08:00
    lj0014
        1
    lj0014  
       Nov 8, 2013   ❤️ 1
    ~/.bashrc
    我是保存这里的
    mopig
        2
    mopig  
    OP
       Nov 8, 2013
    @lj0014 3Q
    mopig
        3
    mopig  
    OP
       Nov 8, 2013
    @lj0014 但我发现每次连接后,加载很慢啊
    lj0014
        4
    lj0014  
       Nov 8, 2013
    @mopig 登录的时候会source ~/.bashrc,貌似你有个sudo命令放里面不合适
    n0rmrx
        5
    n0rmrx  
       Nov 8, 2013 via iPad
    locale-gen en_US.UTF-8
    sudo dpkg-reconfigure locales

    这两行运行一次就够了吧,不用放 ~/.bashrc
    mopig
        6
    mopig  
    OP
       Nov 8, 2013
    @lj0014 把 sudo 给去了,没有配置加载的过程了

    @n0rmrx 只有两行不行吧,我这是解决 ubuntu command not found 的那个 bug
    n0rmrx
        7
    n0rmrx  
       Nov 8, 2013 via iPad   ❤️ 1
    @mopig 不清楚那个 bug,不过我的意思是只保留 export ...
    mopig
        8
    mopig  
    OP
       Nov 8, 2013
    @n0rmrx 谢谢,已删
    free4us
        9
    free4us  
       Nov 17, 2013
    not found 是不是环境变量没设置对?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3859 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 524ms · UTC 05:01 · PVG 13:01 · LAX 22:01 · JFK 01:01
    ♥ Do have faith in what you're doing.