ssh

vi /etc/ssh/sshd_config

  • #PermitRootLogin yes
  • PermitRootLogin no

vi /etc/ssh/sshd_config

  • X11Forwarding yes

shell:

  • xhost +                     //允许服务器的的x11界面连接过来
  • ssh -X [email protected]     //-X参数表示转发X11数据

bashrc ,先放在这里,慢慢补充

/root
[email protected]:~# less .bashrc
 
-----------------------------------------------------------------------------------------------------------
  • # ~/.bashrc: executed by bash(1) for non-login shells.
  •  
  • # Note: PS1 and umask are already set in /etc/profile. You should not
  • # need this unless you want different defaults for root.
  • # PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ '
  • # umask 022
  •  
  • # You may uncomment the following lines if you want `ls' to be colorized:
  •  export LS_OPTIONS='--color=auto'
  •  eval "`dircolors`"
  •  alias ls='ls $LS_OPTIONS'
  •  alias ll='ls $LS_OPTIONS -l'
  •  alias l='ls $LS_OPTIONS -lA'
  • #
  • # Some more alias to avoid making mistakes:
  •  alias rm='rm -i'
  •  alias cp='cp -i'
  •  alias mv='mv -i'
  • # 'dpkg-reconfigure locales '  LANG= zh_cn.UTF-8
  • LANG=en_US.UTF-8
-------------------------------------------------------------------------------------------------------------
Debian9
 
 
 
 
 

检查环境变量printenv像不像dis cu

我们可以用 bash 的内建命令 set,或者是 printenv 程序来查看环境变量。set 命令可以 显示 shell 或环境变量,而 printenv 只是显示环境变量。因为环境变量列表比较长,最好 把每个命令的输出通过管道传递给 less 来阅读:

[[email protected] ~]$ printenv | less