삼성 갤럭이S6 엣지 플러스 Linux Deploy : CentOS 설치

참고 사이트 : https://github.com/meefik/linuxdeploy/issues/224


adb 다운로드

공식 사이트 : http://adbshell.com/downloads

다운로드 : http://adbshell.com/upload/adb.zip


C:\ 에 다운로드 받은 adb.zip 파일 압축을 해제한다.

루팅된 단말과 PC를 USB 로 연결한 후 아래와 같이 진행한다.


C:\> adb shell

zenltelgt:/ $ su

su

zenltelgt:/ # sh /data/data/ru.meefik.linuxdeploy/bin/linuxdeploy shell

sh /data/data/ru.meefik.linuxdeploy/bin/linuxdeploy shell

Mounting partitions: 

/ ... done

/proc ... done

/sys ... done

/sys/fs/selinux ... done

/dev ... done

/dev/pts ... done

/dev/shm ... done

:: Configuring core/mnt ... 

:: Configuring core/net ... 

CentOS Linux 7 (AltArch) [running via Linux Deploy]

# passwd root

passwd root

Changing password for user root.

New password: 비밀번호


BAD PASSWORD: The password fails the dictionary check - it is based on a dictionary word

Retype new password: 비밀번호


passwd: all authentication tokens updated successfully.

# yum update

yum update

Loaded plugins: fastestmirror

centos-7-aarch64                                         | 3.8 kB     00:00

(1/2): centos-7-aarch64/group_gz                           | 141 kB   00:02

(2/2): centos-7-aarch64/primary_db                         | 3.9 MB   00:15

Determining fastest mirrors

No packages marked for update

# yum install wget

yum install wget

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

Resolving Dependencies

--> Running transaction check

---> Package wget.aarch64 0:1.14-13.el7 will be installed

--> Finished Dependency Resolution


Dependencies Resolved


================================================================================

 Package     Arch           Version               Repository               Size

================================================================================

Installing:

 wget        aarch64        1.14-13.el7           centos-7-aarch64        540 k


Transaction Summary

================================================================================

Install  1 Package


Total download size: 540 k

Installed size: 2.0 M

Is this ok [y/d/N]: y

y

Downloading packages:

wget-1.14-13.el7.aarch64.rpm                               | 540 kB   00:03

Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

  Installing : wget-1.14-13.el7.aarch64                                     1/1

  Verifying  : wget-1.14-13.el7.aarch64                                     1/1


Installed:

  wget.aarch64 0:1.14-13.el7


Complete!

# yum install nano

yum install nano

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

Resolving Dependencies

--> Running transaction check

---> Package nano.aarch64 0:2.3.1-10.el7 will be installed

--> Finished Dependency Resolution


Dependencies Resolved


================================================================================

 Package     Arch           Version               Repository               Size

================================================================================

Installing:

 nano        aarch64        2.3.1-10.el7          centos-7-aarch64        436 k


Transaction Summary

================================================================================

Install  1 Package


Total download size: 436 k

Installed size: 1.7 M

Is this ok [y/d/N]: y

y

Downloading packages:

nano-2.3.1-10.el7.aarch64.rpm                              | 436 kB   00:03

Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

  Installing : nano-2.3.1-10.el7.aarch64                                    1/1

  Verifying  : nano-2.3.1-10.el7.aarch64                                    1/1


Installed:

  nano.aarch64 0:2.3.1-10.el7


Complete!

# cd /etc/ssh

cd /etc/ssh

# mv sshd_config sshd_config.ori

mv sshd_config sshd_config.ori



# wget -O sshd_config http://chule.tistory.com/attachment/cfile8.uf@224AD644594E484A023245

<//chule.tistory.com/attachment/cfile8.uf@224AD644594E484A023245             

--2017-06-24 20:12:07--  http://chule.tistory.com/attachment/cfile8.uf@224AD644594E484A023245

Resolving chule.tistory.com (chule.tistory.com)... 175.126.170.70, 175.126.170.110

Connecting to chule.tistory.com (chule.tistory.com)|175.126.170.70|:80... connected.

HTTP request sent, awaiting response... 302 Found

Location: https://t1.daumcdn.net/cfile/tistory/224AD644594E484A02 [following]

--2017-06-24 20:12:07--  https://t1.daumcdn.net/cfile/tistory/224AD644594E484A02

Resolving cfile8.uf.tistory.com (cfile8.uf.tistory.com)... 110.45.215.246

Connecting to cfile8.uf.tistory.com (cfile8.uf.tistory.com)|110.45.215.246|:80... connected.

HTTP request sent, awaiting response... 200 OK

Length: 4563 (4.5K) [text/plain]

Saving to: ??sshd_config??


100%[======================================>] 4,563       --.-K/s   in 0.002s  


2017-06-24 20:12:12 (2.59 MB/s) - ??sshd_config?? saved [4563/4563]


# service ssh restart

service ssh restart

Redirecting to /bin/systemctl restart  ssh.service

Running in chroot, ignoring request.



sshd_config




Posted by ChulE