asdf
This commit is contained in:
@@ -4,45 +4,49 @@ description: "speedtest-cli 레포 추가하면서 noble -> jammy 바꾸는 삽
|
||||
date: "Oct 25 2025"
|
||||
---
|
||||
|
||||
## 1. 서론
|
||||
ubuntu 24.04(noble) 기본 저장소엔 예전 python speedtest만 들어 있고, ookla speedtest-cli를 쓰려면 공식 repo를 추가해야 한다. 하루 지나면 까먹어서 기록용으로 남겨둔다 ㅇㅇ
|
||||
|
||||
## 2. 설치 순서
|
||||
|
||||
### 2.1 curl 깔기
|
||||
스크립트를 끌어오려면 일단 curl부터 확인. 없는 경우 아래 명령으로 깐다.
|
||||
|
||||
```bash
|
||||
sudo apt-get install curl
|
||||
```
|
||||
|
||||
### 2.2 repo 스크립트 실행
|
||||
ookla에서 제공하는 스크립트를 그대로 돌린다. root 권한 필요하니까 sudo로.
|
||||
|
||||
```bash
|
||||
curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | sudo bash
|
||||
```
|
||||
|
||||
실행 로그 끝에 `/etc/apt/sources.list.d/ookla_speedtest-cli.list` 생긴다. 문제는 여기 기본 distro codename이 noble이라 그대로 두면 패키지가 없다.
|
||||
|
||||
### 2.3 배포판 코드네임 교체
|
||||
파일을 열어서 noble 부분을 jammy로 바꿔야 한다. nano로 열든 vim으로 열든 상관없다.
|
||||
|
||||
```bash
|
||||
sudo nano /etc/apt/sources.list.d/ookla_speedtest-cli.list
|
||||
```
|
||||
|
||||
열린 상태에서 `noble`을 `jammy`로 치환하고 저장 후 종료. (ookla가 아직 24.04를 안올려놔서 jammy repo를 대신 참조하는 꼼수임)
|
||||
|
||||
### 2.4 업데이트 & 설치
|
||||
저장소가 바뀌었으니 한 번 갱신하고 speedtest를 깐다.
|
||||
|
||||
ubuntu 24.04(noble) 기본 저장소엔 예전 python speedtest만 있어서 ookla speedtest-cli 쓰려면 repo를 새로 물려줘야 한다. 까먹기 전에 메모 남김 ㅇㅇ.
|
||||
1) curl 없으면 먼저 깐다: `sudo apt-get install curl`
|
||||
2) 공식 스크립트 한 번 흘리면 `/etc/apt/sources.list.d/ookla_speedtest-cli.list`가 생긴다:
|
||||
`curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | sudo bash`
|
||||
3) 파일 열어서 `noble`을 `jammy`로 갈아치운다. 나는 `sudo nano /etc/apt/sources.list.d/ookla_speedtest-cli.list`
|
||||
4) 갱신하고 설치:
|
||||
```bash
|
||||
sudo apt update
|
||||
sudo apt-get install speedtest
|
||||
```
|
||||
5) 첫 실행 로그는 아래 참고. 이후부턴 그냥 결과만 나온다.
|
||||
|
||||
설치 끝나면 `speedtest --accept-license` 한 번만 돌려서 약관 수락하고 쓰면 된다. cli는 `/usr/bin/speedtest`에 깔림.
|
||||
```text
|
||||
dami@GLaDOS:~$ speedtest
|
||||
==============================================================================
|
||||
|
||||
## 3. 마무리
|
||||
이 과정을 반복할 일이 거의 없긴 한데, 새 ubuntu 올릴 때마다 repo codename 때문에 삽질해서 메모. 나중에 ookla에서 noble repo 열리면 그냥 스크립트만 돌리고 끝날 듯.
|
||||
You may only use this Speedtest software and information generated
|
||||
from it for personal, non-commercial use, through a command line
|
||||
interface on a personal computer. Your use of this software is subject
|
||||
to the End User License Agreement, Terms of Use and Privacy Policy at
|
||||
these URLs:
|
||||
|
||||
https://www.speedtest.net/about/eula
|
||||
https://www.speedtest.net/about/terms
|
||||
https://www.speedtest.net/about/privacy
|
||||
|
||||
==============================================================================
|
||||
|
||||
Do you accept the license? [type YES to accept]: yes
|
||||
License acceptance recorded. Continuing.
|
||||
|
||||
|
||||
Speedtest by Ookla
|
||||
|
||||
Server: MOACK Data Center - Yongin-si (id: 67564)
|
||||
ISP: SungKyunKwan University SKKU
|
||||
Idle Latency: 4.25 ms (jitter: 0.21ms, low: 4.05ms, high: 4.58ms)
|
||||
Download: 931.14 Mbps (data used: 431.9 MB)
|
||||
10.63 ms (jitter: 30.78ms, low: 3.04ms, high: 248.54ms)
|
||||
Upload: 933.63 Mbps (data used: 421.0 MB)
|
||||
3.99 ms (jitter: 11.98ms, low: 2.18ms, high: 215.85ms)
|
||||
Packet Loss: 0.0%
|
||||
Result URL: https://www.speedtest.net/result/c/0dd0a92a-d9d2-468b-ac0f-3afbd003ad5a
|
||||
```
|
||||
|
||||
jammy 쓰는 동안은 이 순서 반복하면 되고, ookla가 noble repo 열어주면 3)만 빼면 끝. CLI는 `/usr/bin/speedtest`에 깔림.
|
||||
|
||||
Reference in New Issue
Block a user