top
本文目录
一、注册账号并设置基本信息
二、开鸡并修改3G硬盘
shell
shell
shell
Scaleway API 开机教程
shell
开机脚本
shell
准备开机
shell
shell
shell
shell
shell
shell
结语

最新Scaleway星辰开机+3G硬盘图文详细教程 附无视库存强

1h1g3c,每月0.21欧元,实际改成1g硬盘,月租会更低,但是系统体积要求更小,具体自己测试,方法一样。
星辰Scaleway官网:https://www.scaleway.com

一、注册账号并设置基本信息

(1)注册账号

点击官网,先注册一个星辰账号
notion image
这里的地址可以随便写,我使用的是这个地址生成器
notion image
填写你的信用卡信息
notion image

(2)设置基本信息

点击右上角头像,选择SSH Keys>Add SSH key
notion image
SSH Key生成器,公钥和私钥都要下载下来,星辰这里只需要粘贴公钥
notion image
notion image
notion image

二、开鸡并修改3G硬盘

(1)目前能手开便宜实例的地区只有荷兰1区和波兰2区(本次以波兰2区为例)

notion image
notion image
notion image
notion image
notion image
这个就是VPS的iPv6
notion image

(2)修改硬盘容量

先把实例关机
notion image
点击Attached volumes,分离原来的10G硬盘
notion image
返回实例首页,点击Volumes,把原来的10G硬盘删除,再新增一个3G的硬盘
notion image
notion image
notion image
notion image
notion image
notion image

(3)重装系统

到实例的advanced-settings,选择Use rescue image(救援系统),这时候不要选3G的盘启动救援系统,而是直接启动
notion image
链接你的VPS,我这里使用的SSH链接工具为tabby,本地需要有iPv6环境
notion image
notion image
notion image
notion image
链接上之后开始安装Debian12系统,终端运行以下命令:

shell

#安装debian12系统
curl -Lo- "https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-genericcloud-amd64.raw" | dd of=/dev/vda bs=1M
curl -Lo- "https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-genericcloud-amd64.tar.xz" | tar -xJO | dd of=/dev/vda bs=1M
Shell
notion image
挂载盘分区

shell

parted -l
#这一步会提示 Warning: Not all of the space available to /dev/vda 【这里注意是vda,一开始先说sda,sda直接跳过即可】 appears to be used, you can fix the GPT to use all of the space (an extra 1665071 blocks) or continue with the current setting? 问你fix 修复还是ignore 忽略,输入 F,也就是修复
partprobe
parted -s /dev/vda resizepart 1 100%
e2fsck -f /dev/vda1
resize2fs /dev/vda1
Shell
notion image
回到官网,先关机,启动方式改回local,并选择3G盘,启动一次机器,等待启动完成出现login
notion image
等待1分钟,再关机回到救援模式,启动选3G盘,同样等待启动完成出现login
notion image
等待5分钟重新SSH链接救援系统,挂载系统分区到本地,然后更新公钥,不然DD后的系统你无法链接

shell

mkdir /mnt/vda1 
mount /dev/vda1 /mnt/vda1 
cd /mnt/vda1/home/debian/.ssh
vi authorized_keys  #按i,把公钥粘贴到authorized_keys里,然后按键盘esc,再:wq保存退出
Shell
notion image
notion image
回到官网关机改回正常模式启动,SSH链接用户名改为debian,链接后sudo -i 获取root权限即可
notion image
notion image
notion image

Scaleway API 开机教程

开机准备

获取你的账户 id (在 IAM 下)
notion image

创建 SSH key

shell

在你的服务器上 输入 
ssh-keygen -o -b 4096
 
出现提示时输入保存密钥的文件路径。或者,按Enter 键id_ed25519将其保留为默认设置(密钥将保存在用户目录中调用的文件中~/.ssh/)。
 
Enter file in which to save the key (~/.ssh/id_ed25519):`
 
复制
出现提示时输入密码。此步骤不是强制性的,但建议执行此步骤以提高安全性。密码可以自由选择。如果不想设置密码,直接按Enter 键。
 
Enter passphrase (empty for no passphrase):
 
复制
出现提示时再次输入密码进行确认,然后按Enter:
 
Enter same passphrase again:
 
得到生成的ssh key,导入到scaleway控制台
Shell
notion image
notion image

开机脚本

星尘巴黎的机子 基本上 365 天 能有 5 天有货就是不错了
荷兰的货比较多
但是总得来说没有巴黎的机子好

选择一个适合你的操作系统的下载

下载好后解压 随便改一个名字 方便后续操作
notion image

通过终端进入解压好的文件夹 (管理员的权限)

shell

scw init
Shell
  1. 首先先输入你的 apikey
  1. 然后他问你是否改进这个工具 就是提交你的信息给他们 选择 n
  1. 后来询问是否安装 shell 的全部功能 选择 y
  1. 然后询问用哪种方式作为 shell 的壳程序 选择默认的 bash
  1. 然后问我是否导入我的 ssh 文件进去 选择 y

准备开机

project-id 获取
notion image

荷兰

shell

scw instance server create type=STARDUST1-S zone=nl-ams-1 image=debian_bullseye root-volume=l:10G name=OK ip=none ipv6=true project-id=51b4e5be-9xxx-4xxx-bxxx-4fxxxxx(换成你自己的)
Shell

法国

shell

scw instance server create type=STARDUST1-S zone=fr-par-1 image=debian_bullseye root-volume=l:10G name=OK ip=none ipv6=true project-id=51b4e5be-9xxx-4xxx-bxxx-4fxxxxx(换成你自己的)
Shell
出现类似,即为成功
notion image
小鸡这时候大部分情况都是没有开好的
这样子都是没得 ip 开不了鸡
脸黑 运气好的话 到这步就已经结束了 如果你觉得你运气比较好的话 你可以删鸡重新再跑一下脚本 删鸡记得把储存那里也删掉 不然也还是会扣费的
这样子的话 你可以一直运行另一个开机脚本

shell

scw instance server start xxxxxxx-xxxxxx-xxxx(机子ID)
Shell

BashCopy

弄个定时任务就 OK 啦 将下列文本保存为 bat 文件,在 scw.exe 的目录执行,一直挂着就行

shell

@echo off
:scw
scw instance server start f5xxxxx-1007-476c-a137-xxxxxxxxx
timeout /T 10 /NOBREAK
goto scw
echo. 
exit
Shell

BatCopy

开完机后记得去安全组放行端口
放行端口
notion image
notion image
添加刚才开机的实列

Warp 脚本添加 ipv4

shell

wget -N https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh && bash menu.sh
Shell

F佬脚本

shell

bash <(wget -qO- https://gitlab.com/rwkgyg/CFwarp/raw/main/CFwarp.sh 2> /dev/null)
Shell

勇哥脚本,懂的都懂

结语

我个人认为Scaleway的Stardust机器是远强于玩具的,机器虽然便宜,但是性能十分给力,并且在WARP优秀的网络加持下,机器本身虽然只有公网V6,但是也可以愉快的访问V4的资源. 这机器在挂载了scaleway赠送的75G对象储存之后可玩性更高了,并且同一区域的流量应该是不计费的,而星尘的流量也是无限的.
THE END
icon
0
icon
打赏
icon
分享
icon
二维码
icon
海报
发表评论
评论列表

赶快来坐沙发