赞
踩
./vmware-install.pl
,如下:一路回车,直到成功安装。打开terminal,执行nano /etc/apt/sources.list
进入如下界面:
在第一行前面添加#将内容注释掉,然后添加如下内容。按ctrl + O保存,然后ctrl + X退出。其中内容为国内源地址,参考如下:国内debian12源
deb https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib
deb https://mirrors.aliyun.com/debian-security/ bookworm-security main
deb-src https://mirrors.aliyun.com/debian-security/ bookworm-security main
deb https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib
deb https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib
deb-src https://mirrors.aliyun.com/debian/ bookworm-backports main non-free non-free-firmware contrib
apt update
sudo apt-get update
sudo apt-get install openssh-server
nano /etc/ssh/sshd_config
,将PermitRootLogin
行前面的#注释去掉,并把后面的** prohibit-password **改为yes。这样就可以允许root用户登录了。接着我们执行systemctl restart ssh
重启ssh服务,使配置生效。export PS1='\[\e[32;40m\e[1m\]\u\[\e[32;40m\e[1m@\e[35;40m\e[1m\h\[\e[0m \e[34;40m\e[1m\W\[\e[0m\]\$ '
if [ "$TERM" != "dumb" ]; then
eval "`dircolors -b`"
alias ls='ls --color=always'
alias ll='ls --color=always -l'
alias la='ls --color=always -A'
alias less='less -R'
alias ls='ls --color=always'
alias grep='grep --color=always'
alias egrep='egrep --color=always'
alias fgrep='fgrep --color=always'
alias zgrep='zgrep --color=always'
else
alias ll='ls -l'
alias la='ls -A'
fi
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。