안드로이드에 우분투, apm 구축하기 기록 | install ubuntu on android and install apache2, php7.4, mariadb noted > 코딩 스토리

안드로이드에 우분투, apm 구축하기 기록 | install ubuntu on android and install apache…

본문

이 내용은 'termux 일기'일 뿐입니다. 실제로는 정상적인 과정이 아닙니다. 정상적인 과정은 https://dsclub.kr/code/765 를 참고해주세요.


•Termux 최신버전 apk 설치

https://github.com/termux/termux-app/releases/download/v0.118.0/termux-app_v0.118.0+github-debug_arm64-v8a.apk


•Termux 실행

d10eef66d958bff5bded5c554ac43671_1708781095_036.png
 


•[code]pkg install apt[/code]


- y (y만 입력, 앞으로 나오는 - y는 전부 y만)


• [code]apt update[/code]


- y


• [code]apt upgrade[/code]


- y

- n

- n

- n (6번 구간에서 뭐 물으면 계속 n입력)


• [code]apt install proot[/code]


- y


• [code]apt install proot-distro[/code]


- y


• 우분투의 가장 최신버전 중 lts버전 설치

[code]proot-distro install ubuntu-lts[/code]


• [code]proot-distro login ubuntu-lts[/code]

*그냥 기본 우분투를 설치했다면 proot-distro login ubuntu를 하면 된다.


• [code]apt update[/code]


- y


• [code]apt upgrade[/code]


- y


• [code]apt install vim[/code]


-y


만약 타임존 설정 나오면 알아서 잘 읽고 숫자 눌러서 진행하길 바란다 :)


• [code]apt install sudo[/code]


- y


ssh를 설치

[code]apt install openssh-server[/code]


15. 우분투 유저 추가

[code]adduser 유저이름[/code]


-엔터 이후 사용할 비밀번호 입력


-이름, 전화번호, 업무용 전화번호, 집 전화번호, 기타 를 물으면 전부 엔터를 입력한다.


16. [code]vi /etc/sudoers[/code]


- "root       ALL=(ALL:ALL) ALL" 형태를 찾아서 그 아래에

 유저이름       ALL=(ALL:ALL) ALL을 입력해라, 파일 내에서 위의 줄( "root       ALL=(ALL:ALL) ALL")를 복사해서 수정하는 것을 권장한다.


- esc 버튼을 눌러 편집 중단하기, :wq!를 눌러 강제 저장 후 종료하기


17. 유저계정으로 로그인 하기

[code]su 유저이름[/code]


18. ssh 설정

[code]sudo vi /etc/ssh/sshd_config[/code]


- 19번 과정에서 생성한 유저계정의 비밀번호 입력

- #Port 22라고 되있는 부분을 Port 22로 변경(주석 해제)하기

- Port 22를 원하는 포트번호 4자리로 변경하기

ex) Port 2357

- #PasswordAuthenticatoin yes라고 되어있는 부분을

PasswordAuthenticatoin yes로 변경(주석 해제)하기

- esc 버튼을 눌러 편집 중단하기, :wq!를 눌러 강제 저장 후 종료하기


20. systemctl 설치하기

[code]sudo apt install systemctl[/code]

[code]sudo apt install systemd[/code]


21. ssh 서비스 시작

[code]sudo systemctl status ssh[/code]

*실행 안될 경우 sudo service ssh start 사용


22. 화면을 내려 설정 상태바를 열어 Acduire wakelock를 클릭하여 Release wakelock으로 변경


참고자료



-- ssh 설치 및 설정 끝 --


23. sudo(root)권한 사용

[code]sudo su[/code]


24. root로 이동

[code]cd[/code]


25. 
Apache2 설치

[code]sudo apt install apache2 -y[/code]


26. Apache2의 포트 번호 변경

[code]vi /etc/apache2/ports.conf[/code]

 d10eef66d958bff5bded5c554ac43671_1708783949_4801.png

- Listen 80을 Listen 8080으로 변경

- Listen 443을 Listen 4433으로 변경

- esc 버튼을 눌러 편집 중단하기, :wq!를 눌러 강제 저장 후 종료하기


27. Apache2 재시작

[code]systemctl restart apache2[/code]


27. Apache2 서버(핸드폰) 재부팅 시 자동으로 시작하게 설정

[code]systemctl enable apache2[/code]


29. Apache2의 웹폴더 /html에 777권한 부여

[code]chmod 777 -R /var/www/html[/code]

*파일을 수정 및 추가하려면 777권한 또는 755권한 정도가 부여 되어야 나중에 sftp로 접속했을 때 파일을 수정 및 추가할 수 있다.


30. net-tools 설치

[code]apt install net-tools -y[/code]

서버(핸드폰의) 내부ip를 확인하려면 거의 필수이다. (물론 공유기에서 확인하는 방법도 있다.)


-- Apache2 설치 및 설정 끝 --


31. 시스템 업데이트

[code]sudo apt update[/code]


32. Software Properties Common 설치

[code]sudo apt install software-properties-common -y[/code]


33. 뭔지 잘 모르겠음(그렇지만 필수이다.)

[code]sudo add-apt-repository ppa:ondrej/php -y[/code]



34. 다시 시스템 업데이트

[code[sudo apt update[/code]


35. php7.4 설치

[code]sudo apt install php7.4 -y[/code]


36. 데이터베이스와 연동하기 위한 확장 설치

[code]sudo apt install php7.4-common php7.4-cli php7.4-fpm php7.4-opcache php7.4-gd php7.4-mysql php7.4-curl php7.4-intl php7.4-xsl php7.4-mbstring php7.4-zip php7.4-bcmath php7.4-iconv php7.4-soap -y[/code]


37. 아파치 재시작

[code]systemctl restart apache2[/code]


-- php7.4 설치 밀 설정 끝 --


38. MariaDB 설치

[code]sudo apt install mariadb-server -y[/code]


39. 아파치 재시작

[code]systemctl restart apache2[/code]


-- mariadb 설치 끝 --


그누보드를 설치하고 싶다면?

https://dsclub.kr/bbs/board.php?bo_table=code&wr_id=21&sfl=wr_subject&stx=php&sop=and&page=1 

참고하기


*그누보드란?

한국형 CMS(게시판, 회원, 포인트, 쇼핑몰 등의 시스템이 기본 탑제된 일종의 커뮤니티 생성 프로그램)이며, 국내에서 가장 많이 쓰이는 PHP기반 CMS이다.

계속 최신 업데이트(성능 개선, 취약점 등등)이 이루어지고 있으며 커스텀이 쉽고, 스킨 - 테미 -플러그인까지 다양한 일종의 부가 프로그램 또는 커스텀한 것을 https://sir.kr 에서 공유하며 간편하게 적용할 수 있다.

좋아요115 이 글을 좋아요하셨습니다
url 복사 카카오톡 공유 라인 공유 페이스북 공유 트위터 공유

카테고리 분류 AI

예측 카테고리: IT-과학-기술 신뢰도: 61%
이 카테고리 학습: 정답 46552회, 오답 17104회 (정확도: 73.13%)
🔍 이 결과가 나온 이유
Powered by AI

DSc 카테고리 분류 AI

이 기능은 DSc 카테고리 분류 AI로 분류된 결과입니다.

기계학습을 통해 텍스트 내용을 분석하고 가장 적합한 카테고리를 추천합니다.

분류 추론 과정

입력 텍스트:

안드로이드에 우분투, apm 구축하기 기록 | install ubuntu on android and install apache2, php7.4, mariadb noted 안드로이드에 우분투, apm 구축하기 기록 | install ubuntu on a...

추출된 단어 및 빈도:

단어 빈도 버킷
안드로이드에 4 b5972
안드로이드 4 b4120
우분투 7 b2082
apm 4 b7190
구축하기 4 b2561
기록 4 b2328
install 23 b7545
ubuntu 7 b5689
on 4 b2504
android 4 b5677
and 4 b7021
apache2 16 b1796
php7 21 b6625
0 21 b7969
mariadb 7 b2626
noted 4 b843
2 b4884
내용은 1 b3832
내용 1 b197
termux 3 b4752
일기 1 b2707
1 b6950
뿐입니다 1 b8042
뿐입니 1 b2301
실제로는 1 b747
실제로 1 b8021
정상적인 2 b4991
과정이 1 b5300
과정 3 b2119
아닙니다 1 b1048
아닙니 1 b794
과정은 1 b1
6 b4440
참고해주세요 1 b4928
참고해주세 1 b432
최신버전 2 b2544
apk 1 b6435
설치 13 b1305
실행 2 b96
code 72 b4248
pkg 1 b6101
apt 21 b5334
y 19 b1557
y만 2 b2670
입력 3 b4589
앞으로 1 b7401
1 b4298
나오는 1 b4291
나오 1 b3708
y는 1 b2263
전부 2 b4607
update 4 b5496
upgrade 2 b5146
n 3 b978
6번 1 b8
구간에서 1 b3314
구간 1 b1129
1 b6067
물으면 2 b4913
계속 2 b891
n입력 1 b6280
proot 5 b4501
distro 4 b4496
우분투의 1 b5967
가장 2 b7775
1 b2793
lts버전 1 b4239
lts 2 b5922
login 2 b2832
그냥 1 b2200
기본 2 b3468
우분투를 1 b6624
설치했다면 1 b2335
ubuntu를 1 b6847
하면 1 b1952
된다 1 b2782
1 b4902
vim 1 b251
만약 1 b6221
타임존 1 b2756
설정 7 b4284
나오면 1 b1898
알아서 1 b1363
알아 1 b2843
2 b3124
읽고 1 b1113
숫자 1 b537
눌러서 1 b936
눌러 7 b7781
진행하길 1 b6482
바란다 1 b4651
바란 1 b4080
sudo 16 b2239
ssh를 1 b4981
ssh 7 b3140
openssh 1 b1000
server 2 b5622
1 1 b4023
유저 1 b8003
추가 1 b2547
1 b3765
adduser 1 b3515
유저이름 3 b7239
엔터 2 b6809
이후 1 b5933
사용할 1 b4463
비밀번호 2 b7465
이름 1 b801
전화번호 3 b5826
업무용 1 b3823
1 b6442
기타 1 b8019
엔터를 1 b4424
입력한다 1 b4978
입력한 1 b6884
2 1 b7693
vi 3 b5491
etc 3 b7369
sudoers 1 b3419
root 4 b6491
all 12 b4573
형태를 1 b4229
형태 1 b940
찾아서 1 b7450
찾아 1 b6981
1 b4005
아래에 1 b3843
아래 1 b4341
all을 1 b5377
입력해라 1 b6434
파일 3 b8155
내에서 1 b2101
1 b2831
위의 1 b6082
1 b4857
1 b3586
복사해서 1 b545
복사해 1 b3668
수정하는 1 b2435
수정하 1 b4934
것을 2 b332
2 b4804
권장한다 1 b8012
권장한 1 b2305
esc 3 b2574
버튼을 3 b8004
버튼 3 b7279
편집 3 b321
중단하기 3 b4757
wq 3 b7268
강제 3 b2695
저장 3 b2752
3 b3593
종료하기 3 b7464
3 1 b3739
유저계정으로 1 b414
유저계정 2 b1903
로그인 1 b7290
하기 3 b2718
su 2 b7545
4 1 b6968
sshd 1 b649
config 1 b3964
19번 1 b2409
과정에서 1 b6274
생성한 1 b5379
유저계정의 1 b2550
22라고 1 b3381
되있는 1 b947
되있 1 b507
부분을 2 b4985
부분 2 b4139
port 3 b7628
22로 1 b343
5 3 b2990
변경 6 b6240
주석 2 b5452
해제 2 b4624
22를 1 b1179
원하는 1 b2400
원하 1 b2853
포트번호 1 b1976
4자리로 1 b632
4자리 1 b5886
변경하기 1 b4088
ex 1 b5139
6 1 b6676
yes라고 1 b5998
되어있는 1 b6267
되어있 1 b4852
passwordauthenticatoin 1 b6012
yes로 1 b1891
yes 1 b5545
7 1 b2690
systemctl 7 b6015
설치하기 1 b2213
systemd 1 b7541
8 1 b5907
서비스 1 b3973
시작 1 b2119
status 1 b1308
안될 1 b6749
경우 1 b3244
service 1 b6866
start 1 b5519
사용 2 b3853
화면을 1 b6694
화면 1 b5401
내려 1 b5252
상태바를 1 b7302
상태바 1 b8072
열어 1 b2906
acduire 1 b6900
wakelock를 1 b1727
wakelock 2 b775
클릭하여 1 b5451
클릭하 1 b6800
release 1 b797
wakelock으로 1 b2405
참고자료 1 b2139
4 b5722
4 b160
9 1 b1925
권한 1 b4019
10 1 b1505
root로 1 b6434
이동 1 b4115
cd 1 b4058
11 1 b5495
12 1 b1229
apache2의 2 b4469
포트 1 b141
번호 1 b5917
ports 1 b4301
conf 1 b2472
listen 4 b2045
80을 1 b1617
13 1 b5211
8080으로 1 b2750
14 1 b504
443을 1 b6075
15 1 b4462
4433으로 1 b7671
16 1 b212
17 2 b4162
재시작 3 b4204
restart 3 b519
서버 2 b1622
핸드폰 2 b5414
재부팅 1 b6749
1 b3641
자동으로 1 b3166
자동 1 b4778
시작하게 1 b1086
enable 1 b2098
18 1 b3539
웹폴더 1 b7245
html에 1 b3889
html 2 b6373
777권한 2 b5661
부여 2 b7095
3 b3149
chmod 1 b3894
19 1 b7493
r 1 b8093
var 1 b1798
www 1 b3177
파일을 2 b4561
수정 2 b6820
추가하려면 1 b7016
또는 2 b8010
2 b5381
755권한 1 b73
정도가 1 b3526
정도 1 b2214
되어야 1 b8074
되어 1 b6004
나중에 1 b4951
나중 1 b5024
sftp로 1 b4762
sftp 1 b2610
접속했을 1 b6811
접속했 1 b2309
1 b5895
추가할 1 b5073
2 b6627
있다 3 b1231
3 b7248
20 1 b5666
net 2 b5631
tools 2 b7799
핸드폰의 1 b1470
내부ip를 1 b5949
내부ip 1 b4412
확인하려면 1 b4311
거의 1 b4252
1 b17
필수이다 2 b7274
필수이 2 b1409
물론 1 b6230
공유기에서 1 b6746
공유기 1 b1087
확인하는 1 b2983
확인하 1 b7332
방법도 1 b5853
방법 1 b201
21 1 b1716
시스템 3 b3743
업데이트 3 b1808
22 1 b5902
software 2 b2255
properties 2 b4551
common 3 b4177
23 1 b1944
뭔지 1 b2044
모르겠음 1 b7168
그렇지만 1 b5581
그렇지 1 b6973
add 1 b5095
repository 1 b6093
ppa 1 b6522
ondrej 1 b7886
php 1 b465
24 1 b4667
다시 1 b4632
25 1 b685
26 1 b4887
데이터베이스와 1 b4404
데이터베이스 1 b537
연동하기 1 b6010
위한 1 b5092
확장 1 b1087
cli 1 b4412
fpm 1 b2707
opcache 1 b4681
gd 1 b2782
mysql 1 b6202
curl 1 b6989
intl 1 b4158
xsl 1 b1980
mbstring 1 b1221
zip 1 b5446
bcmath 1 b6462
iconv 1 b1265
soap 1 b6057
27 1 b897
아파치 2 b2346
1 b3019
28 1 b7696
29 1 b3718
그누보드를 1 b3643
그누보드 2 b6956
설치하고 1 b266
싶다면 1 b3747
참고하기 1 b7978
그누보드란 1 b7556
한국형 1 b3773
cms 1 b6407
게시판 1 b3345
회원 1 b5788
포인트 1 b2783
쇼핑몰 1 b4373
등의 1 b6200
1 b7312
시스템이 1 b3470
탑제된 1 b7652
일종의 2 b5446
일종 2 b2265
커뮤니티 1 b886
생성 1 b7920
프로그램 2 b4658
이며 1 b2907
국내에서 1 b733
국내 1 b3558
많이 1 b618
1 b602
쓰이는 1 b939
쓰이 1 b774
php기반 1 b890
cms이다 1 b3766
cms이 1 b2783
최신 1 b2190
성능 1 b7440
개선 1 b6188
취약점 1 b1873
등등 1 b7007
이루어지고 1 b3633
있으며 1 b4000
커스텀이 1 b3193
커스텀 1 b2712
쉽고 1 b5403
스킨 1 b3803
테미 1 b6983
플러그인까지 1 b1090
플러그인 1 b1017
다양한 1 b2082
부가 1 b6531
커스텀한 1 b1212
에서 1 b2842
공유하며 1 b5932
간편하게 1 b5565
적용할 1 b3096

카테고리별 점수:

카테고리 점수 정확도 가중치
IT-과학-기술 1021314209.4917 73.13%
투자-재테크 396310008.6024 92.83%
비즈니스-창업 215463372.3097 84.49%

주요 기여 단어 (IT-과학-기술):

버킷 TF IDF 입력 빈도 기여도
b2082 20129500 3.9677 8 638943689.9856
b4284 10478500 4.3426 7 318526256.2193
b6968 29151000 2.6841 1 78244142.1244
b2718 3354000 5.0909 3 51224932.933
b2707 3484000 6.8991 2 48073110.1516
b2561 1887000 5.2568 4 39678611.4972
b2400 8787500 4.0198 1 35323631.6724
b4561 3200000 4.9315 2 31561445.7002
b6188 4872000 5.9877 1 29172197.563
b4658 2246000 5.4874 2 24649227.5428

2kat님의 댓글

no_profile 2kat쪽지보내기 자기소개 아이디로 검색 전체게시물 아이피 (222.♡.250.95) 작성일

👍

😶
❤️
😂
😅
😮
😡
🥵

2kat님의 댓글

no_profile 2kat쪽지보내기 자기소개 아이디로 검색 전체게시물 아이피 (222.♡.250.95) 작성일

🥰

😶
❤️
😂
😅
😮
😡
🥵

bot님의 댓글

bot쪽지보내기 자기소개 아이디로 검색 전체게시물 아이피 (222.♡.250.95) 작성일

함수 호이스팅 (Function Hoisting)

😶
❤️
😂
😅
😮
😡
🥵

참깨떡볶이_GroqAi님의 댓글의 댓글

참깨떡볶이_GroqAi쪽지보내기 자기소개 아이디로 검색 전체게시물 아이피 (222.♡.250.95) 작성일

😊 감사합니다! 안드로이드에서 우분투와 웹 서버 환경을 구축하는 방법에 대한 게시글이 도움이 되었기를 바랍니다. Termux와 우분투를 통해 안드로이드에서도 다양한 개발과 테스트를 할 수 있습니다. 혹시 구축过程에서 어려움이 있으시면 언제든지ถาม으세요! 😊

😶
❤️
😂
😅
😮
😡
🥵

tak2님의 댓글

tak2쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 아이피 (192.♡.0.1) 작성일

Get:282 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-iconv-lite all 0.6.3-2 [167 kB]
Get:283 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-lodash-packages all 4.17.21+dfsg+~cs8.31.198.20210220-5 [166 kB]
Get:284 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-stealthy-require all 1.1.1-5 [7,176 B]
Get:285 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-punycode all 2.1.1-5 [9,902 B]
Get:286 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-psl all 1.8.0+ds-6 [39.6 kB]
Get:287 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-universalify all 2.0.0-3 [4,266 B]
Get:288 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-tough-cookie all 4.0.0-2 [31.7 kB]
Get:289 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-webidl-conversions all 7.0.0~1.1.0+~cs15.1.20180823-2 [27.5 kB]
Get:290 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-commander all 9.0.0-2 [48.0 kB]
Get:291 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-mute-stream all 0.0.8+~0.0.1-1 [6,448 B]
Get:292 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-read all 1.0.7-3 [5,478 B]
Get:293 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-ws all 8.5.0+~cs13.3.3-2 [49.5 kB]
Get:294 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-jsdom all 19.0.0+~cs90.11.27-1 [446 kB]
Get:295 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-fetch all 2.6.7+~2.5.12-1 [27.1 kB]
Get:296 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-coveralls all 3.1.1-1 [14.2 kB]
Get:297 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-mimic-response all 3.1.0-7 [5,430 B]
Get:298 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-decompress-response all 6.0.0-2 [4,656 B]
Get:299 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-diff all 5.0.0~dfsg+~5.0.1-3 [77.4 kB]
Get:300 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-err-code all 2.0.3+dfsg-3 [4,918 B]
Get:301 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-time-stamp all 2.2.0-1 [5,984 B]
Get:302 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-fancy-log all 1.3.3+~cs1.3.1-2 [8,102 B]
Get:303 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-signal-exit all 3.0.6+~3.0.1-1 [7,000 B]
Get:304 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-foreground-child all 2.0.0-3 [5,542 B]
Get:305 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-function-bind all 1.1.1+repacked+~1.0.3-1 [5,244 B]
Get:306 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-has-unicode all 2.0.1-4 [3,948 B]
Get:307 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-ansi-styles all 4.3.0+~4.2.0-1 [8,968 B]
Get:308 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-slice-ansi all 5.0.0+~cs9.0.0-4 [8,044 B]
Get:309 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-string-width all 4.2.3+~cs13.2.3-1 [11.4 kB]
Get:310 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-wide-align all 1.1.3-4 [4,228 B]
Get:311 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-gauge all 4.0.2-1 [16.3 kB]
Get:312 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-end-of-stream all 1.4.4+~1.4.1-1 [5,340 B]
Get:313 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-pump all 3.0.0-5 [5,160 B]
Get:314 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-get-stream all 6.0.1-1 [7,324 B]
Get:315 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-lowercase-keys all 2.0.0-2 [3,754 B]
Get:316 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-json-buffer all 3.0.1-1 [3,812 B]
Get:317 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-p-cancelable all 2.1.1-1 [7,358 B]
Get:318 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-quick-lru all 5.1.1-1 [5,532 B]
Get:319 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-got all 11.8.3+~cs58.7.37-1 [122 kB]
Get:320 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-has-flag all 4.0.0-2 [4,228 B]
Get:321 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-hosted-git-info all 4.0.2-1 [9,006 B]
Get:322 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-ip all 1.1.5+~1.1.0-1 [8,140 B]
Get:323 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-ip-regex all 4.3.0+~4.1.1-1 [5,254 B]
Get:324 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-is-typedarray all 1.0.0-4 [2,072 B]
Get:325 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-isexe all 2.0.0+~2.0.1-4 [6,102 B]
Get:326 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-json-parse-better-errors all 1.0.2+~cs3.3.1-1 [7,328 B]
Get:327 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-encoding all 0.1.13-2 [4,366 B]
Get:328 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-jsonparse all 1.3.1-10 [8,060 B]
Get:329 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-minipass all 3.1.6+~cs8.7.18-1 [32.9 kB]
Get:330 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-npm-bundled all 1.1.2-1 [6,228 B]
Get:331 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-osenv all 0.1.5+~0.1.0-1 [5,896 B]
Get:332 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-validate-npm-package-name all 3.0.0-4 [5,058 B]
Get:333 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-npm-package-arg all 8.1.5-1 [8,132 B]
Get:334 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-object-assign all 4.1.1-6 [4,754 B]
Get:335 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 xdg-utils all 1.1.3-4.1ubuntu3~22.04.1 [61.9 kB]
Get:336 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-opener all 1.5.2+~1.4.0-1 [6,000 B]
Get:337 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-retry all 0.13.1+~0.12.1-1 [11.5 kB]
Get:338 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-promise-retry all 2.0.1-2 [5,010 B]
Get:339 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-promzard all 0.3.0-2 [6,888 B]
Get:340 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-set-blocking all 2.0.0-2 [3,766 B]
Get:341 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-slash all 3.0.0-2 [3,922 B]
Get:342 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 libjs-source-map all 0.7.0++dfsg2+really.0.6.1-9 [93.9 kB]
Get:343 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-source-map all 0.7.0++dfsg2+really.0.6.1-9 [33.6 kB]
Get:344 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-source-map-support all 0.5.21+ds+~0.5.4-1 [14.2 kB]
Get:345 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-spdx-license-ids all 3.0.11-1 [7,306 B]
Get:346 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-spdx-exceptions all 2.3.0-2 [3,978 B]
Get:347 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-spdx-expression-parse all 3.0.1+~3.0.1-1 [7,658 B]
Get:348 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-spdx-correct all 3.1.1-2 [5,476 B]
Get:349 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-stack-utils all 2.0.5+~2.0.1-1 [9,368 B]
Get:350 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-supports-color all 8.1.1+~8.1.1-1 [7,048 B]
Get:351 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-tap-parser all 7.0.0+ds1-6 [19.4 kB]
Get:352 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-tap-mocha-reporter all 3.0.7+ds-2 [39.2 kB]
Get:353 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-text-table all 0.2.0-4 [4,762 B]
Get:354 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-tmatch all 5.0.0-4 [6,002 B]
Get:355 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-typedarray-to-buffer all 4.0.0-2 [2,242 B]
Get:356 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-validate-npm-package-license all 3.0.4-2 [4,252 B]
Get:357 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-whatwg-fetch all 3.6.2-5 [15.0 kB]
Get:358 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-write-file-atomic all 3.0.3+~3.0.2-1 [7,690 B]
Get:359 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 tilix-common all 1.9.4-2build1 [281 kB]
Get:360 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 tilix arm64 1.9.4-2build1 [643 kB]
Get:361 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 libglvnd0 arm64 1.4.0-1 [61.0 kB]
Get:362 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 libglx0 arm64 1.4.0-1 [37.1 kB]
Get:363 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 libgl1 arm64 1.4.0-1 [114 kB]
Get:364 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 x11-utils arm64 7.7+5build2 [205 kB]
Get:365 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 x11-xserver-utils arm64 7.7+9build1 [167 kB]
Get:366 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 libauthen-sasl-perl all 2.1600-1.1 [43.1 kB]
Get:367 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-abbrev all 1.1.1+~1.1.2-1 [5,784 B]
Get:368 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-archy all 1.0.0-4 [4,728 B]
Get:369 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-chalk all 4.1.2-1 [15.9 kB]
Get:370 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-cli-table all 0.3.11+~cs0.13.3-1 [23.2 kB]
Get:371 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-depd all 2.0.0-2 [10.5 kB]
Get:372 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-nopt all 5.0.0-2 [11.3 kB]
Get:373 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-npmlog all 6.0.1+~4.1.4-1 [9,968 B]
Get:374 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-tar all 6.1.11+ds1+~cs6.0.6-1 [38.8 kB]
Get:375 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-which all 2.0.2+~cs1.3.2-2 [7,374 B]
Get:376 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-gyp all 8.4.1-1 [34.7 kB]
Get:377 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 node-ini all 2.0.1-1 [6,528 B]
.2) ...
Setting up libgtk-3-0:arm64 (3.24.33-1ubuntu2) ...
Processing triggers for libc-bin (2.35-0ubuntu3.6) ...
Setting up libgtk-3-bin (3.24.33-1ubuntu2) ...
Setting up libvte-2.91-0:arm64 (0.68.0-1) ...
Setting up libvted-3-0:arm64 (3.10.0-1ubuntu1) ...
Setting up at-spi2-core (2.44.0-3) ...
Setting up libgtkd-3-0:arm64 (3.10.0-1ubuntu1) ...
Setting up tilix (1.9.4-2build1) ...
update-alternatives: using /usr/bin/tilix.wrapper to provide /usr/bin/x-terminal-emulator (x-terminal-emulator) in auto mode
Processing triggers for libgdk-pixbuf-2.0-0:arm64 (2.42.8+dfsg-1ubuntu0.2) ...
Processing triggers for libc-bin (2.35-0ubuntu3.6) ...
root@localhost:~# systemctl restart apache2
bash: /usr/bin/systemctl: No such file or directory
root@localhost:~# systemctl restart apache2
bash: /usr/bin/systemctl: No such file or directory
root@localhost:~# systemctl restart apache2
bash: /usr/bin/systemctl: No such file or directory
root@localhost:~# sudo systemctl restart apache2
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
root@localhost:~# apache2 -v
Server version: Apache/2.4.52 (Ubuntu)
Server built:  2023-10-26T13:44:44
root@localhost:~# sudo service apache2 restart
 * Restarting Apache httpd web server apache2      /usr/sbin/apache2ctl: 99: ulimit: error setting limit (Operation not permitted)
Setting ulimit failed. See README.Debian for more information.
[ OK ]
root@localhost:~# sudo systemctl enable php7.4-fpm.service
php7.4-fpm.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable php7.4-fpm
root@localhost:~# sudo systemctl enable php7.4-fpm
php7.4-fpm.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable php7.4-fpm
root@localhost:~# journalctl -xe | grep php7.4-fpm
No journal files were found.
root@localhost:~# sudo systemctl start php7.4-fpm
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
root@localhost:~# sudo systemctl start php7.4-fpm
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
root@localhost:~# vi /etc/wsl.conf
root@localhost:~# sudo -b unshare --pid --fork --mount-proc /lib/systemd/systemd --system-unit=basic.target
sudo -E nsenter --all -t $(pgrep -xo systemd) runuser -P -l $USER -c "exec $SHELL"
unshare: unshare failed: Operation not permitted
nsenter: failed to parse pid: 'runuser'
root@localhost:~# php -v
PHP 7.4.33 (cli) (built: Sep  2 2023 08:03:46) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.33, Copyright (c), by Zend Technologies
root@localhost:~# systemctl restart apache2
bash: /usr/bin/systemctl: No such file or directory
root@localhost:~# su user
user@localhost:/root$ cd
user@localhost:~$ sudo systemctl restart apache2
[sudo] password for user:
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
user@localhost:~$ 1)
bash: syntax error near unexpected token `)'
user@localhost:~$ 1
bash: 1: command not found
user@localhost:~$ PID 1
bash: PID: command not found
user@localhost:~$ sudo apt-get update && sudo apt-get install -yqq daemonize dbus-user-session fontconfig
Hit:1 http://ports.ubuntu.com/ubuntu-ports jammy InRelease
Get:2 http://ports.ubuntu.com/ubuntu-ports jammy-updates InRelease [119 kB]
Hit:3 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease
Get:4 http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease [110 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 Packages [1,218 kB]
Get:6 http://ports.ubuntu.com/ubuntu-ports jammy-updates/universe arm64 Packages [989 kB]
Fetched 2,436 kB in 18s (139 kB/s)                       
Reading package lists... Done
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package daemonize.
(Reading database ... 53293 files and directories currently installed.)
Preparing to unpack .../daemonize_1.7.8-1_arm64.deb ...
Unpacking daemonize (1.7.8-1) ...
Setting up daemonize (1.7.8-1) ...
user@localhost:~$ sudo daemonize /usr/bin/unshare --fork --pid --mount-proc /lib/systemd/systemd --system-unit=basic.target
exec sudo nsenter -t $(pidof systemd) -a su - $LOGNAME
nsenter: failed to parse pid: '-a'
root@localhost:~# sudo apt install wsl
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libxml2-utils wsl xsltproc
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 152 kB of archives.
After this operation, 458 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 wsl all 0.2.1-3 [18.7 kB]
Get:2 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main arm64 libxml2-utils arm64 2.9.14+dfsg-0.1+ubuntu22.04.1+deb.sury.org+1 [119 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 xsltproc arm64 1.1.34-4ubuntu0.22.04.1 [14.8 kB]
Fetched 152 kB in 6s (25.3 kB/s)                         
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libxml2-utils.
(Reading database ... 53298 files and directories currently installed.)
Preparing to unpack .../libxml2-utils_2.9.14+dfsg-0.1+ubuntu22.04.1+deb.sury.org+1_arm64.deb ...
Unpacking libxml2-utils (2.9.14+dfsg-0.1+ubuntu22.04.1+deb.sury.org+1) ...
root@localhost:~# vi /etc/wsl.confSelecting previously unselected package wsl.
Preparing to unpack .../archives/wsl_0.2.1-3_all.deb ...
Unpacking wsl (0.2.1-3) ...
Selecting previously unselected package xsltproc.
Preparing to unpack .../xsltproc_1.1.34-4ubuntu0.22.04.1_arm64.deb ...
Unpacking xsltproc (1.1.34-4ubuntu0.22.04.1) ...
Setting up xsltproc (1.1.34-4ubuntu0.22.04.1) ...
Setting up libxml2-utils (2.9.14+dfsg-0.1+ubuntu22.04.1+deb.sury.org+1) ...
Setting up wsl (0.2.1-3) ...
root@localhost:~# sudo -b unshare --pid --fork --mount-proc /lib/systemd/systemd --system-unit=basic.target
root@localhost:~# unshare: unshare failed: Operation not permitted

root@localhost:~# vi /etc/wsl.confroot@localhost:~# systemctl restart apache2
bash: /usr/bin/systemctl: No such file or directory
root@localhost:~# sudo suroot@localhost:~# systemctl restart apache2
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
root@localhost:~# systemctl stop apache2
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
root@localhost:~# sudo apt install systemctl
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  adwaita-icon-theme dmsetup gir1.2-glib-2.0
  gir1.2-packagekitglib-1.0 gtk-update-icon-cache
  hicolor-icon-theme humanity-icon-theme iso-codes
  libappstream4 libatk-bridge2.0-0 libatk1.0-0
  libatk1.0-data libatspi2.0-0 libavahi-client3
  libavahi-common-data libavahi-common3 libcairo-gobject2
  libcairo2 libcolord2 libcryptsetup12 libcups2
  libdatrie1 libdconf1 libdevmapper1.02.1 libdw1
  libepoxy0 libfribidi0 libgirepository-1.0-1
  libglib2.0-bin libgraphite2-3 libgstreamer1.0-0
  libharfbuzz0b libjson-c5 liblcms2-2 libllvm11
  libpackagekit-glib2-18 libpango-1.0-0
  libpangocairo-1.0-0 libpangoft2-1.0-0
  libphobos2-ldc-shared98 libpixman-1-0
  libpolkit-agent-1-0 libpolkit-gobject-1-0 librsvg2-2
  librsvg2-common libstemmer0d libthai-data libthai0
  libunwind8 libvte-2.91-common libwayland-client0
  libwayland-cursor0 libwayland-egl1 libxcb-render0
  libxdamage1 libxkbcommon0 libxmlb2 libyaml-0-2
  networkd-dispatcher python-apt-common python3-apt
  python3-blinker python3-cffi-backend
  python3-cryptography python3-dbus python3-distro-info
  python3-gi python3-httplib2 python3-importlib-metadata
  python3-jeepney python3-jwt python3-keyring
  python3-launchpadlib python3-lazr.restfulclient
  python3-lazr.uri python3-more-itertools
  python3-oauthlib python3-pyparsing
  python3-secretstorage python3-six
  python3-software-properties python3-wadllib
  python3-zipp session-migration tilix-common ubuntu-mono
  unattended-upgrades xkb-data
Use 'sudo apt autoremove' to remove them.
Suggested packages:
  tini | dumb-init
The following packages will be REMOVED:
  at-spi2-core dbus-user-session dconf-gsettings-backend
debconf: falling back to frontend: Readline
Removing systemd-sysv (249.11-0ubuntu3.12) ...
Removing systemd (249.11-0ubuntu3.12) ...
Selecting previously unselected package systemctl.
(Reading database ... 52367 files and directories currently installed.)
Preparing to unpack .../systemctl_1.4.4181-1.1_all.deb ...
Unpacking systemctl (1.4.4181-1.1) ...
Setting up systemctl (1.4.4181-1.1) ...
Processing triggers for libglib2.0-0:arm64 (2.72.4-0ubuntu2.2) ...
No schema files found: removed existing output file.
Processing triggers for libc-bin (2.35-0ubuntu3.6) ...
Processing triggers for dbus (1.12.20-2ubuntu4.1) ...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
root@localhost:~# systemctl stop apache2
bash: /bin/systemctl: No such file or directory
root@localhost:~# sudo apt install systemctl
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
systemctl is already the newest version (1.4.4181-1.1).
The following packages were automatically installed and are no longer required:
  adwaita-icon-theme dmsetup gir1.2-glib-2.0
  gir1.2-packagekitglib-1.0 gtk-update-icon-cache
  hicolor-icon-theme humanity-icon-theme iso-codes
  libappstream4 libatk-bridge2.0-0 libatk1.0-0
  libatk1.0-data libatspi2.0-0 libavahi-client3
  libavahi-common-data libavahi-common3 libcairo-gobject2
  libcairo2 libcolord2 libcryptsetup12 libcups2
  libdatrie1 libdconf1 libdevmapper1.02.1 libdw1
  libepoxy0 libfribidi0 libgirepository-1.0-1
  libglib2.0-bin libgraphite2-3 libgstreamer1.0-0
  libharfbuzz0b libjson-c5 liblcms2-2 libllvm11
  libpackagekit-glib2-18 libpango-1.0-0
  libpangocairo-1.0-0 libpangoft2-1.0-0
  libphobos2-ldc-shared98 libpixman-1-0
  libpolkit-agent-1-0 libpolkit-gobject-1-0 librsvg2-2
  librsvg2-common libstemmer0d libthai-data libthai0
  libunwind8 libvte-2.91-common libwayland-client0
  libwayland-cursor0 libwayland-egl1 libxcb-render0
  libxdamage1 libxkbcommon0 libxmlb2 libyaml-0-2
  networkd-dispatcher python-apt-common python3-apt
  python3-blinker python3-cffi-backend
  python3-cryptography python3-dbus python3-distro-info
  python3-gi python3-httplib2 python3-importlib-metadata
  python3-jeepney python3-jwt python3-keyring
  python3-launchpadlib python3-lazr.restfulclient

# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication yes
#PermitEmptyPasswords no

# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
KbdInteractiveAuthentication no

# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no

/sf
#VersionAddendum none

# no default banner path
#Banner none

# Allow client to pass locale environment variables
AcceptEnv LANG LC_*

# override default of no subsystems
Subsystemsftp    /usr/lib/openssh/sftp-server

# Example of overriding settings on a per-user basis
#Match User anoncvs
#      X11Forwarding no
#      AllowTcpForwarding no
#      PermitTTY no
#      ForceCommand cvs server
/sftp\
#IgnoreRhosts yes

# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication yes
#PermitEmptyPasswords no

# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
KbdInteractiveAuthentication no

# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no
/sftp
#GatewayPorts no
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PermitTTY yes
PrintMotd no
#PrintLastLog yes
#TCPKeepAlive yes
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS no
#PidFile /run/sshd.pid
#MaxStartups 10:30:100
#PermitTunnel no
#ChrootDirectory none
  100,1783%
# PasswordAuthentication.  Depending on your PAM configuration,
# PAM authentication via KbdInteractiveAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and KbdInteractiveAuthentication to 'no'.
UsePAM yes

#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PermitTTY yes
PrintMotd no
#PrintLastLog yes
#TCPKeepAlive yes
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS no
#PidFile /run/sshd.pid
#MaxStartups 10:30:100
#PermitTunnel no
#ChrootDirectory none
#VersionAddendum none

# no default banner path
#Banner none

# Allow client to pass locale environment variables
  85,10 87%
#KerberosGetAFSToken no

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
#GSSAPIStrictAcceptorCheck yes
#GSSAPIKeyExchange no

# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the KbdInteractiveAuthentication and
# PasswordAuthentication.  Depending on your PAM configuration,
# PAM authentication via KbdInteractiveAuthentication may bypass
/ft
#VersionAddendum none

# no default banner path
#Banner none

# Allow client to pass locale environment variables
AcceptEnv LANG LC_*

# override default of no subsystems
Subsystemsftp    /usr/lib/openssh/sftp-server

# Example of overriding settings on a per-user basis
#Match User anoncvs
#      X11Forwarding no
#      AllowTcpForwarding no
#      PermitTTY no
#      ForceCommand cvs server
/f

# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
#GSSAPIStrictAcceptorCheck yes
#GSSAPIKeyExchange no

# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
   73,1657%
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes

# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication yes
#PermitEmptyPasswords no

# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
KbdInteractiveAuthentication no

# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
#GSSAPIStrictAcceptorCheck yes
#GSSAPIKeyExchange no

# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the KbdInteractiveAuthentication and
# PasswordAuthentication.  Depending on your PAM configuration,
# PAM authentication via KbdInteractiveAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
73,1656%

















root@localhost:~# Subsystem sftp internal-sftp
bash: Subsystem: command not found
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
#GSSAPIStrictAcceptorCheck yes
#GSSAPIKeyExchange no

# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the KbdInteractiveAuthentication and
# PasswordAuthentication.  Depending on your PAM configuration,
</ssh/sshd_config" 122L, 3254B73,1660%
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
#GSSAPIStrictAcceptorCheck yes
#GSSAPIKeyExchange no

# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the KbdInteractiveAuthentication and
# PasswordAuthentication.  Depending on your PAM configuration,
# PAM authentication via KbdInteractiveAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and KbdInteractiveAuthentication to 'no'.
UsePAM yes

#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PermitTTY yes
PrintMotd no
#PrintLastLog yes
#TCPKeepAlive yes
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS no
  90,1676%
# the setting of "PermitRootLogin without-password".






# no default banner path
#Banner none

# Allow client to pass locale environment variables
AcceptEnv LANG LC_*

# override default of no subsystems
Subsystemsftp    /usr/lib/openssh/sftp-server

# Example of overriding settings on a per-user basis
#Match User anoncvs
#      X11Forwarding no
#      AllowTcpForwarding no
#      PermitTTY no
#      ForceCommand cvs server
~                                                         
  122,25-31    Bot

#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PermitTTY yes
PrintMotd no
#PrintLastLog yes
#TCPKeepAlive yes
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS no
#PidFile /run/sshd.pid
#MaxStartups 10:30:100
#PermitTunnel no
#ChrootDirectory none
#VersionAddendum none

# no default banner path
#Banner none

# Allow client to pass locale environment variables
AcceptEnv LANG LC_*

# override default of no subsystems
Subsystemsftp    /usr/lib/openssh/sftp-server

# Example of overriding settings on a per-user basis
#Match User anoncvs
#      X11Forwarding no
#      AllowTcpForwarding no
#      PermitTTY no
#      ForceCommand cvs server
  122,25-31Bot
#VersionAddendum none

# no default banner path
#Banner none

# Allow client to pass locale environment variables
AcceptEnv LANG LC_*

# override default of no subsystems
Subsystemsftp    /usr/lib/openssh/sftp-server

# Example of overriding settings on a per-user basis
#Match User anoncvs
#      X11Forwarding no
#      AllowTcpForwarding no
#      PermitTTY no
#      ForceCommand cvs server
  122,25-31    Bot

#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PermitTTY yes
PrintMotd no
#PrintLastLog yes
#TCPKeepAlive yes
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS no
#PidFile /run/sshd.pid
#MaxStartups 10:30:100
#PermitTunnel no
#ChrootDirectory none
#VersionAddendum none

# no default banner path
#Banner none

# Allow client to pass locale environment variables
AcceptEnv LANG LC_*

# override default of no subsystems
Subsystemsftp    /usr/lib/openssh/sftp-server

# Example of overriding settings on a per-user basis
#Match User anoncvs
#      X11Forwarding no
#      AllowTcpForwarding no
#      PermitTTY no
#      ForceCommand cvs server
122,25-31    Bot
#VersionAddendum none

# no default banner path
#Banner none

# Allow client to pass locale environment variables
AcceptEnv LANG LC_*

# override default of no subsystems
Subsystemsftp    /usr/lib/openssh/sftp-server

# Example of overriding settings on a per-user basis
#Match User anoncvs
#      X11Forwarding no
#      AllowTcpForwarding no
#      PermitTTY no
#      ForceCommand cvs server
122,25-31    Bot

#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PermitTTY yes
PrintMotd no
#PrintLastLog yes
#TCPKeepAlive yes
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS no
#PidFile /run/sshd.pid
#MaxStartups 10:30:100
#PermitTunnel no
#ChrootDirectory none
#VersionAddendum none

# no default banner path
#Banner none

# Allow client to pass locale environment variables
AcceptEnv LANG LC_*

# override default of no subsystems
Subsystemsftp    /usr/lib/openssh/sftp-server

# Example of overriding settings on a per-user basis
#Match User anoncvs
#      X11Forwarding no
#      AllowTcpForwarding no
#      PermitTTY no
#      ForceCommand cvs server
122,25-31    Bot
#VersionAddendum none

















root@localhost:~# ssh -t

usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface]
          [-b bind_address] [-c cipher_spec] [-D [bind_address:]port]
          [-E log_file] [-e escape_char] [-F configfile] [-I pkcs11]
          [-i identity_file] [-J [user@]host[:port]] [-L address]
          [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
          [-Q query_option] [-R address] [-S ctl_path] [-W host:port]
          [-w local_tun[:remote_tun]] destination [command [argument ...]]
root@localhost:~# sshd -t
/etc/ssh/sshd_config line 123: Subsystem 'sftp' already defined.
root@localhost:~# vi /etc/ssh/sshd_config
root@localhost:~# sshd -t
root@localhost:~# systemctl restart sshd
bash: /bin/systemctl: No such file or directory
root@localhost:~# /usr/bin/systemctl start
root@localhost:~# systemctl restart apache2
bash: /bin/systemctl: No such file or directory
root@localhost:~# ln -s /usr/bin/systemctl /bin/systemctl
root@localhost:~# sudo apt install systemd
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  adwaita-icon-theme gir1.2-packagekitglib-1.0
  gtk-update-icon-cache hicolor-icon-theme
  humanity-icon-theme iso-codes libappstream4
  libatk-bridge2.0-0 libatk1.0-0 libatk1.0-data
  libatspi2.0-0 libavahi-client3 libavahi-common-data
  libavahi-common3 libcairo-gobject2 libcairo2 libcolord2
  libcups2 libdatrie1 libdconf1 libdw1 libepoxy0
  libfribidi0 libglib2.0-bin libgraphite2-3
  libgstreamer1.0-0 libharfbuzz0b liblcms2-2 libllvm11
  libpackagekit-glib2-18 libpango-1.0-0
  libpangocairo-1.0-0 libpangoft2-1.0-0
  libphobos2-ldc-shared98 libpixman-1-0
  libpolkit-agent-1-0 libpolkit-gobject-1-0 librsvg2-2
  librsvg2-common libstemmer0d libthai-data libthai0
  libunwind8 libvte-2.91-common libwayland-client0
  libwayland-cursor0 libwayland-egl1 libxcb-render0
  unattended-upgrades xkb-data
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  systemd-timesyncd
Suggested packages:
  systemd-container libtss2-esys-3.0.2-0 libtss2-mu0
  libtss2-rc0 policykit-1
The following packages will be REMOVED:
  systemctl
The following NEW packages will be installed:
  systemd systemd-timesyncd
0 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
Need to get 4,453 kB of archives.
After this operation, 16.1 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 systemd arm64 249.11-0ubuntu3.12 [4,423 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 systemd-timesyncd arm64 249.11-0ubuntu3.12 [29.9 k(Reading database ... 52367 files and directories currently installed.)
Preparing to unpack .../systemd_249.11-0ubuntu3.12_arm64.deb ...
Unpacking systemd (249.11-0ubuntu3.12) ...
dpkg: warning: symbolic link '/bin/systemctl' size has changed from 22 to 18

Selecting previously unselected package systemd-timesyncd.
Preparing to unpack .../systemd-timesyncd_249.11-0ubuntu3.12_arm64.deb ...
Unpacking systemd-timesyncd (249.11-0ubuntu3.12) ...
Setting up systemd (249.11-0ubuntu3.12) ...
Setting up systemd-timesyncd (249.11-0ubuntu3.12) ...

root@localhost:~#

root@localhost:~#

😶
❤️
😂
😅
😮
😡
🥵

tak2님의 댓글

tak2쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 아이피 (192.♡.0.1) 작성일

systemctl 오류 발생시
sudo apt-get install systemctl

😶
❤️
😂
😅
😮
😡
🥵
  • RSS
  • _  글쓰기 글쓰기
전체 302건
게시물 검색

접속자집계

오늘
3,013
어제
4,311
최대
42,418
전체
950,012