sudo cp /etc/apt/sources.list{,.bak} sudo tee /etc/apt/sources.list <<'EOF' #阿里云Mirrors - Ubuntu deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse # EOF
# 清华Mirrors # 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释 deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
# 预发布软件源,不建议启用 # deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
apt autoclean apt update && apt upgrade -y
4.基础软件安装
1 2 3 4
#1)编译依赖 apt -y install gcc #2)常规软件 apt -y install nano vim net-tools tree wget dos2unix unzip htop ncdu bash-completion
# 错误信息 Unable to connect to VNC Server using your chosen security setting. Either upgrade VNC Server to a more recent version from RealVNC, or select a weaker level of encryption.
# 设置vnc密码 > sudo x11vnc -storepasswd /etc/x11vnc.pass Enter VNC password: Verify password: Write password to /etc/x11vnc.pass? [y]/n y Password written to: /etc/x11vnc.pass
# 3. > dpkg --list | grep "wine" ii deepin-fonts-wine 2.18-22~rc0 all Windows API implementation - fonts ii deepin-libwine:i386 2.18-22~rc0 i386 Windows API implementation - library ii deepin-wine 2.18-22~rc0 all Windows API implementation - standard suite ii deepin-wine-binfmt 2.18-12 all Windows API implementation - binfmt support ii deepin-wine-helper:i386 1.2deepin8 i386 Deepin Wine Helper ii deepin-wine-plugin 1.0deepin2 amd64 Deepin Wine plugin ii deepin-wine-plugin-virtual 1.0deepin3 all Deepin Wine plugin virtual package ii deepin-wine-uninstaller:i386 0.1deepin2 i386 Deepin Wine Uninstaller Tool ii deepin-wine32:i386 2.18-22~rc0 i386 Windows API implementation - 32-bit binary loader ii deepin-wine32-preloader:i386 2.18-22~rc0 i386 Windows API implementation - prelinked 32-bit binary loader ii fonts-wine 5.0-3ubuntu1 all Windows API implementation - fonts ii libwine:amd64 5.0-3ubuntu1 amd64 Windows API implementation - library ii libwine:i386 5.0-3ubuntu1 i386 Windows API implementation - library ri wine 5.0-3ubuntu1 all Windows API implementation - standard suite ii wine-stable 3.0.1ubuntu1 all Windows API implementation (transitional package) ii wine32:i386 5.0-3ubuntu1 i386 Windows API implementation - 32-bit binary loader ii wine64 5.0-3ubuntu1 amd64 Windows API implementation - 64-bit binary loader
# System requirements GNOME or KDE desktop 2 GB RAM minimum, 8 GB RAM recommended 2.5 GB hard disk space, SSD recommended 1024x768 minimum screen resolution Python 2.7, or Python 3.5 or newer
Note: JetBrains Runtime (JBR) 11 is included with the PyCharm distribution. You do not need to install Java on your computer to run PyCharm.
# (2) 建立软件存放路径 cd ~/app/program/pycharm-professional/ && ls > ls bin debug-eggs index jbr license product-info.json build.txt help Install-Linux-tar.txt lib plugins pycharm-2020.2.3
$ sudo vim /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf [Seat:*] user-session=ubuntu greeter-show-manual-login=true # all-guest=false
$ sudo vim /etc/pam.d/gdm-autologin $ sudo vim /etc/pam.d/gdm-password # 分别注释掉 auth required pam_succeed_if.so user != root quiet_success 这一行(第三行左右)
$ sudo vim/root/.profile # ~/.profile: executed by Bourne-compatible login shells. if [ "$BASH" ]; then if [ -f ~/.bashrc ]; then . ~/.bashrc fi fi tty -s && mesg n || true mesg n || true
# - 1.开启grub menu 显示( Ubuntu 20.04.2) sed -i -e 's|set timeout_style=${style}|#set timeout_style=${style}|g' -e 's|set timeout=${timeout}|set timeout=3|g' /etc/grub.d/00_header # Ubuntu修改grub菜单引导选项和等待时间 GRUB_DEFAULT=0 #GRUB_TIMEOUT_STYLE=hidden GRUB_TIMEOUT=3 sed -i -e 's|GRUB_TIMEOUT_STYLE=hidden|#GRUB_TIMEOUT_STYLE=hidden|g' -e 's|GRUB_TIMEOUT=0|GRUB_TIMEOUT=3|g' /etc/default/grub
# - 2.使用如下命令来创建grub认证密码 sudo grub-mkpasswd-pbkdf2 # Enter password: WeiyiGeek # Reenter password: WeiyiGeek # PBKDF2 hash of your password is grub.pbkdf2.sha512.10000.2FAFDA9CF0C871D1B01328D276AA55E14C54222718C969DD33E3287E720889AE0FF485FCBDC336566BC2A48C9FC97C15A09BDA7C926D8A21B2FF0531A2B3785D.776E30ECC4BDD5CD1F066B960BDAC25E4550B0E164D8AC8644EAD4158C86E5B70541640BA72699E58065E34F3A8039CAEB2273B0729FA511AC41920DE6D66FD4
# - 3.将生成的加密字符串加入到/etc/grub.d/00_header末尾 tee -a /etc/grub.d/00_header <<'END' cat <<'EOF' # GRUB Authentication set superusers="grub" password_pbkdf2 grub grub.pbkdf2.sha512.10000.5FD0269A1E1216B31ED1F127DF6E47D164D85E37E6187A48341F5665092CC752DB1527C0D928080A3440C0F46E7B7C749EC3582AF0F02951EB0FB01F9F8424D0.1466487161CC5866FCE719D95DD1D70FAF67B4F8601804DC74B3FE3C82506648942FF7073C8BFCFE268FBC0D545BED047A7763D0131E0ABBF8A4E0922C52EFD5 EOF END
方式1.请访问本博主的B站【WeiyiGeek】首页关注UP主, 将自动随机获取解锁验证码。
Method 2.Please visit 【My Twitter】. There is an article verification code in the homepage.
方式3.扫一扫下方二维码,关注本站官方公众号
回复:验证码
将获取解锁(有效期7天)本站所有技术文章哟!