首页
关于
搜索
1
更新网络重装,适配Oracle
558 阅读
2
甲骨文DD重装系统
68 阅读
3
iCura Windows 7最终精简版2021年8月合集
64 阅读
4
如何在Debian10设置或者修改时区
58 阅读
5
centos6 更换yum源
55 阅读
默认分类
技术教程
软件工具
资源
移动应用
登录
搜索
郭
累计撰写
21
篇文章
累计收到
1
条评论
今日撰写
0
篇文章
首页
栏目
默认分类
技术教程
软件工具
资源
移动应用
页面
关于
用户登录
登录
搜索到
16
篇与
技术教程
的结果
2023-02-18
甲骨文 服务器 Oracle Cloud 开启 root 登录
1.利用 cloud-init脚本来开启root账号密码登录!/bin/bashecho root:11235879 |sudo chpasswd rootsudo 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默认密码是: 11235879登录后一定要修改密码!命令:passwd2.使用密钥登录系统以后,执行如下命令sudo -ipasswd按提示刷入密码,重复输入密码。接着输入echo root:11235879 |sudo chpasswd rootsudo sed -i 's/^#?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config;sudo sed -i 's/^#?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config;service sshd restart3、使用密钥登录系统以后sudo -ivi /root/.ssh/authorized_keys把ssh-rsa之前的内容都删除掉.vi /etc/ssh/sshd_config找到PermitRootLogin, 把前面的#去掉更改为 PermitRootLogin yes找到PasswordAuthentication更改为 PasswordAuthentication yes退出编辑passwd 更改密码reboot 重启vps
2023年02月18日
9 阅读
0 评论
0 点赞
2022-08-11
更新网络重装,适配Oracle
以下系统已通过测试(其他自测):Debian: 9, 10, 11;Ubuntu: 18.04, 20.04;CentOS: 6.10;以下平台已通过测试(其他自测):Oracle、Do、Azure示例:bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 10 -v 64 -p "自定义root密码" -port "自定义ssh端口"开机改密:!/bin/bashecho root:Vicer |sudo chpasswd rootsudo sed -i 's/^#?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config;sudo sed -i 's/^#?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config;sudo rebootbash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -c 7 -v 64 -abash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -c 8 -v 64 -a
2022年08月11日
558 阅读
0 评论
0 点赞
2022-07-31
urlos生成ssl证书
教程开始首先,使用如下命令生成域名的TXT记录(请根据“Domain”和“TXT value”那两行的内容填写域名的TXT记录)代码:docker run -v /acme.sh:/acme.sh --rm urlos/acme.sh:latest sh -c "acme.sh --issue -d *.yourdomanin.com --dns --yes-I-know-dns-manual-mode-enough-go-ahead-please"注意将命令中的域名换成自己的域名命令执行后,等待一会儿,然后会返回如下信息,意思是我们需要将域名新增一个TXT解析记录,在主机记录和记录值填上相应内容:域名TXT记录添加完成后,再执行以下命令生成域名证书代码:docker run -v /acme.sh:/acme.sh --rm urlos/acme.sh:latest sh -c "acme.sh --renew -d *.yourdomanin.com --yes-I-know-dns-manual-mode-enough-go-ahead-please"注意将命令中的域名换成自己的域名 注意:免费泛域名证书有效期为3个月,证书快到期时,请大家记得自行续约哦,方法相同。
2022年07月31日
45 阅读
0 评论
0 点赞
2021-11-20
如何在Debian10设置或者修改时区
使用正确的时区对于很多系统相关的任务和进程都是基本的必要的。例如:cron 守护程序使用系统时区来执行 cron 任务,并且日志文件中的时间戳也是基于系统时区的。 在 Debian 上,系统时区在安装过程中设置,并且在后面可以很容易修改它。 本文描述如何在 Debian 10 系统上设置或者修改时区。 一、检查当前时区timedatectl是一个命令行工具,它允许你查看并且修改系统时间和日期。它在所有现代的基于 systemd 的 Linux 系统中都可以使用:timedatectl输出显示了系统的时区。在这个例子中,时区被设置成 UTC: Local time: Fri 2020-04-03 19:23:29 UTC Universal time: Fri 2020-04-03 19:23:29 UTC RTC time: Fri 2020-04-03 19:23:29 Time zone: UTC (UTC, +0000)System clock synchronized: no NTP service: inactive RTC in local TZ: no系统时区通过链接文件/etc/localtime配置,该链接指向/usr/share/zoneinfo目录下的一个二进制时区标识文件。另外一个检查时区的方法就是显示这个链接文件指向的实际路径,使用ls命令:ls -l /etc/localtimelrwxrwxrwx 1 root root 23 Nov 21 23:44 /etc/localtime -> /usr/share/zoneinfo/UTC二、在 Debian 中修改时区在修改时区时,你将需要找到你想要使用的时区的一个很长的名字。时区通常使用"地区/城市"格式.想要列出所有可用的时区,你可以列出/usr/share/zoneinfo目录下的所有文件,或者运行timedatectl命令,加上list-timezones选项:timedatectl list-timezones...America/MonterreyAmerica/MontevideoAmerica/MontserratAmerica/NassauAmerica/New_York...一旦你识别出哪一个时区能准备描述你的位置,以 root 或者其他有 sudo 权限的用户身份,运行下面的命令:sudo timedatectl set-timezone your_time_zone例如,想要将系统时区设置为America/Monterrey:sudo timedatectl set-timezone America/Monterrey运行timedatectl命令去验证修改:timedatectl Local time: Fri 2020-04-03 13:30:30 CST Universal time: Fri 2020-04-03 19:30:30 UTC RTC time: Fri 2020-04-03 19:30:30 Time zone: America/Monterrey (CST, -0600)System clock synchronized: no NTP service: inactive RTC in local TZ: no三、通过创建一个链接来修改时区如果你正在运行一个比较古老的 Debian 版本,并且timedatectl在你的系统上不可用,你可以通过修改时区的链接文件/etc/localtime到/usr/share/zoneinfo目录下的时区文件来修改时区。识别你想要配置的时区,并且创建一个链接文件:sudo ln -sf /usr/share/zoneinfo/America/Monterrey /etc/localtime通过列出/etc/localtime文件或者触发timedatectl或者date命令,来验证修改:dateFri 03 Apr 2020 01:34:27 PM CST四、总结想要修改 Debian 的系统时区,运行 sudo timedatectl set-timezone命令加上你想要设置的时区名字。
2021年11月20日
58 阅读
0 评论
0 点赞
2021-11-20
甲骨文DD重装系统
Oracle Cloud即大名鼎鼎的甲骨文旗下新设立的云服务平台。目前新注册账号可以在自己所选择的初始区域(注册时选择的区域)建立两台永久免费主机,此外赠送一个月的400新加坡元试用额度(或300美元)。本文主要是提供以下如何通过DD网络安装的方式来重装Oracle Cloud的系统。创建Oracle机器时候,原系统请选择ubuntu 20。准备工作更新apt源apt-get update安装需要的工具包apt-get install -y xz-utils openssl gawk file然后执行以下脚本,脚本全自动运行,dd之后会造成断开链接的情况,不用担心,请耐心等待20分钟或更久。可以通过ping端口来检测是否DD完成。Debian9/10/11Debian 9bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 9 -v 64 -a -firmwareDebian10bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 10.3 -v 64 -a -firmwareDebian11bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 11 -v 64 -a -firmwareDD安装完毕之后,请立即更新密码。默认用户名为:root,默认密码为:MoeClub.orgWindowsWindows 7 sp1 企业版 64位 精简版wget --no-check-certificate -qO InstallNET.sh 'http://d.nat.ee/sh/InstallNET.sh' && bash InstallNET.sh -dd 'http://d.nat.ee/oracle/Uefi-gpt-Win7-Ent.gz'默认用户名:Administrator 密码:www.nat.eeWin2012wget --no-check-certificate -qO InstallNET.sh 'https://tutu.bid/bash/InstallNET.sh' && bash InstallNET.sh -dd 'http://a.iplc.best/natee/lite/winsrv2012r2-data-x64-cn/winsrv2012r2-data-x64-cn-efi.vhd.gz'默认用户名:Administrator 密码:nat.ee如果发现DD完之后3389连不上,请在甲骨文官方管理后台,选择相应的实例,点击子网,然后选择默认的安全组,添加相应安全规则,以打开目标端口。或者开放所有端口。
2021年11月20日
68 阅读
0 评论
0 点赞
1
2
...
4