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

참고 사이트 : 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 ... 

Debian GNU/Linux 8 (jessie) [running via Linux Deploy]

root@localhost:/# passwd root

passwd root

Enter new UNIX password: 비밀번호


Retype new UNIX password: 비밀번호


passwd: password updated successfully

root@localhost:/# apt-get update

apt-get update

Ign http://ftp.debian.org jessie InRelease       

Hit http://ftp.debian.org jessie Release.gpg

Hit http://ftp.debian.org jessie Release

Hit http://ftp.debian.org jessie/main Sources

Hit http://ftp.debian.org jessie/contrib Sources

Hit http://ftp.debian.org jessie/non-free Sources

Hit http://ftp.debian.org jessie/main arm64 Packages

Hit http://ftp.debian.org jessie/contrib arm64 Packages                        

Hit http://ftp.debian.org jessie/non-free arm64 Packages                       

Hit http://ftp.debian.org jessie/contrib Translation-en                        

Hit http://ftp.debian.org jessie/main Translation-en                           

Hit http://ftp.debian.org jessie/non-free Translation-en                       

Reading package lists... Done                                                  

root@localhost:/etc/ssh# apt-get install wget

apt-get install wget

Reading package lists... Done

Building dependency tree       

Reading state information... Done

The following additional packages will be installed:

  ca-certificates openssl

The following NEW packages will be installed:

  ca-certificates openssl wget

0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.

Need to get 934 kB of archives.

After this operation, 2280 kB of additional disk space will be used.

Do you want to continue? [Y/n] y

y

Get:1 http://ports.ubuntu.com xenial/main arm64 openssl arm64 1.0.2g-1ubuntu4 [471 kB]

Get:2 http://ports.ubuntu.com xenial/main arm64 ca-certificates all 20160104ubuntu1 [191 kB]

Get:3 http://ports.ubuntu.com xenial/main arm64 wget arm64 1.17.1-1ubuntu1 [272 kB]

Fetched 934 kB in 8s (117 kB/s)                                                

debconf: unable to initialize frontend: Dialog

debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)

debconf: falling back to frontend: Readline

Preconfiguring packages ...

Selecting previously unselected package openssl.

(Reading database ... 36609 files and directories currently installed.)

Preparing to unpack .../openssl_1.0.2g-1ubuntu4_arm64.deb ...

Unpacking openssl (1.0.2g-1ubuntu4) ...

Selecting previously unselected package ca-certificates.

Preparing to unpack .../ca-certificates_20160104ubuntu1_all.deb ...

Unpacking ca-certificates (20160104ubuntu1) ...

Selecting previously unselected package wget.

Preparing to unpack .../wget_1.17.1-1ubuntu1_arm64.deb ...

Unpacking wget (1.17.1-1ubuntu1) ...

Processing triggers for man-db (2.7.5-1) ...

Setting up openssl (1.0.2g-1ubuntu4) ...

Setting up ca-certificates (20160104ubuntu1) ...

debconf: unable to initialize frontend: Dialog

debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)

debconf: falling back to frontend: Readline

Setting up wget (1.17.1-1ubuntu1) ...

Processing triggers for ca-certificates (20160104ubuntu1) ...

Updating certificates in /etc/ssl/certs...

173 added, 0 removed; done.

Running hooks in /etc/ca-certificates/update.d...

done.


root@localhost:/# cd /etc/ssh

cd /etc/ssh

root@localhost:/etc/ssh# mv sshd_config sshd_config.ori



root@localhost:/etc/ssh# wget -O sshd_config http://chule.tistory.com/attachment/cfile22.uf@240F1F4B594E63D61A9490

<hule.tistory.com/attachment/cfile22.uf@240F1F4B594E63D61A9490               

converted 'http://chule.tistory.com/attachment/cfile22.uf@240F1F4B594E63D61A9490' (ANSI_X3.4-1968) -> 'http://chule.tistory.com/attachment/cfile22.uf@240F1F4B594E63D61A9490' (UTF-8)

--2017-06-24 22:07:08--  http://chule.tistory.com/attachment/cfile22.uf@240F1F4B594E63D61A9490

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/240F1F4B594E63D61A [following]

converted 'https://t1.daumcdn.net/cfile/tistory/240F1F4B594E63D61A' (ANSI_X3.4-1968) -> 'https://t1.daumcdn.net/cfile/tistory/240F1F4B594E63D61A' (UTF-8)

--2017-06-24 22:07:08--  https://t1.daumcdn.net/cfile/tistory/240F1F4B594E63D61A

Resolving cfile22.uf.tistory.com (cfile22.uf.tistory.com)... 211.244.82.80

Connecting to cfile22.uf.tistory.com (cfile22.uf.tistory.com)|211.244.82.80|:80... connected.

HTTP request sent, awaiting response... 200 OK

Length: 2614 (2.6K) [text/plain]

Saving to: 'sshd_config'


sshd_config         100%[=====================>]   2.55K  --.-KB/s   in 0.003s 


2017-06-24 22:07:08 (757 KB/s) - 'sshd_config' saved [2614/2614]


root@localhost:/etc/ssh# service ssh restart

service ssh restart

Restarting OpenBSD Secure Shell server: sshd.



sshd_config




Posted by ChulE