标签: oracle

  • 甲骨文ARM DD重装Debian10,并升级5.10内核

    甲骨文ARM DD重装Debian10,并升级5.10内核

    [start-plane type=”2″]原文地址:猫直立行走 -甲骨文ARM DD重装Debian10,并升级5.10内核  https://maofun.com/1782.html[/start-plane]

    新建实例时选的 ubuntu 20.4,非 mini 版

    1.curl -fLO https://raw.githubusercontent.com/bohanyang/debi/master/debi.sh

    2.chmod a+rx debi.sh

    3.sudo ./debi.sh –architecture arm64 –user root –password password

    设置默认root的密码为password,登陆成功之后记得自己输入passwd修改密码!!!

    没报错的话继续运行:

    sudo shutdown -r now

    更新内核至5.10

    1、添加 back­ports 源

    echo “deb http://deb.debian.org/debian $(lsb_release -sc)-backports main” | sudo tee /etc/apt/sources.list.d/backports.list
    sudo apt update
    uname -r

    此时看到的版本应该是4.19的,为了之后安装warp方便,我们可以更新内核到新版,5.6以上就自带了wireguard了,现在最新的是5.10

    sudo apt -t $(lsb_release -sc)-backports install linux-image-$(dpkg –print-architecture) linux-headers-$(dpkg –print-architecture) –install-recommends -y

    安装完重启,执行 uname -r 命令,现在已经是5.10了。

    image.png

    ps:

    安装宝塔面板,nginx和php可以选择编译安装,我一键安装会报错;

  • 甲骨文改root登录

    甲骨文改root登录

    echo root:要修改的密码 |sudo chpasswd root
    sudo sed -i ‘s/^#\?PermitRootLogin.*/PermitRootLogin yes/g’ /etc/ssh/sshd_config;
    sudo sed -i ‘s/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g’ /etc/ssh/sshd_config;
    sudo service sshd restart

    四行命令搞定

    或者一键脚本
    bash <(curl -sSL https://cdn.jsdelivr.net/gh/YG-tsj/CFWarp-Pro/root.sh)

    AZ改root登录
    (Azure 里的 linux 模板应该是通过了 sshd_config 文件禁用了 Root 登陆,我们只需重新开启即可。
    sudo su
    vim /etc/ssh/sshd_config
    # 在 sshd_config 文件里的 “Authentication” 部分加上以下内容
    PermitRootLogin yes
    # 完成以后退出 vim 并保存
    service sshd restart # 重启 ssh 服务以应用更改
    passwd root # 直接修改 Root 用户的密码)

     

    原文地址:https://hostloc.com/thread-868046-1-1.html