11.Nas_1




termux 팩키지 오토 설지 ssh 접속 가능하게 하기 20200628

♨ 카랜더 일정 :
  • 링크

  • 첨부

  • 컨텐츠 정보

    본문

    termux 팩키지 오토 설지 ssh 접속 가능하게 하기 20200628


    #!/bin/sh
    cd ~
    echo ""
    # 설치방법1) tt.sh 11q.kr에서 다운로드 방법으로 설치
    echo ""
    cd ~
    pkg install wget  -y
    echo ""
    #wget http://11q.kr/termux/tt.sh -O tt.sh
    #curl -LO http://11q.kr/termux/tt.sh
    echo ""
    # ================================================================
    echo ""
    cd ~
    dos2unix tt.sh
    echo ""
    chmod 777 *.sh
    echo ""
    chmod a+x *.sh
    echo ""
    # ================================================================
    # 실행
    # sh tt.sh
    # ================================================================
    # 상기는 이미 다운 상태로 pass 됩니다
    # =============================================
    # 기본설치 파일을 설치 합니다 
    # =============================================
    cd ~
    pwd
    pkg update -y
    pkg upgrade -y
    pkg install root-repo -y
    apt install openssh -y
    apt install mc -y
    apt install nano -y
    apt install tsu -y
    apt install python2 -y
    apt install wget -y
    apt install git -y
    pkg install htop -y
    sshd
    #
    # =============================================
    # termux-sudo 설치
    # =============================================
    cd ~
    apt update -y 
    apt upgrade -y
    apt install git -y
    pkg install ncurses-utils -y
    apt install tsu -y
    git clone https://gitlab.com/st42/termux-sudo.git
    cd termux-sudo
    cat sudo > /data/data/com.termux/files/usr/bin/sudo
    chmod 700 /data/data/com.termux/files/usr/bin/sudo
    # sudo su
    # sudo tsu
    # tsu
    # su
    # su 로 root 권한 가져옴
    
    # ============================================= 
    # ermux start file information file viwe 정보
    # ============================================= 
    cat ~/../usr/etc/ssh/ssh_config
    cat ~/../usr/etc/ssh/sshd_config
    cat ~/.bash_profile
    cat ~/../usr/etc/bash.bashrc
    # =============================================
    # ssh root connection 
    # ============================================= 
    cd ~
    cd ~/../usr/etc/ssh
    pwd
    cat ssh_config
    echo PermitRootLogin yes >> ssh_config
    cat ssh_config
    # ============================================= 
    # Termus auto run file 는 /home/.bash_profile을 수정 적용
    # ============================================= 
    cd ~
    touch .bash_profile
    chmod 777 .bash_profile
    chmod a+x .bash_profile
    cat .bash_profile
    echo sshd >> .bash_profile
    echo tsudo sshd >> .bash_profile
    echo termux-wake-lock >> .bash_profile
    echo termux-wake-lock
    echo '~/termux-ubuntu/start-ubuntu.sh' >> .bash_profile
    echo ~/termux-ubuntu/start-ubuntu.sh
    
    #echo "sh /system/bin/aol_start1.sh" >> .bash_profile
    # ==================================================
    #  .bash_profile 파일에 추가 정보 입력하여 표시 방법 1
    # ==================================================
    echo 'echo "=== nano ~/../usr/etc/ssh/ssh_config == root login ======="' >> .bash_profile
    echo 'echo "=== nano ~/../usr/etc/bash.bashrc ===== alias prompt ====="' >> .bash_profile
    echo 'echo "=== nano .bash_profile == autorun ========================"' >> .bash_profile
    echo 'echo "=== source ~/../usr/etc/bash.bashrc === alias prompt ====="' >> .bash_profile
    echo 'echo "=== sh debian_on_termux.sh ======== debian install ========"' >> .bash_profile
    echo 'echo "=== $HOME/bin/enter_deb ========= debian run =============="' >> .bash_profile
    echo 'echo "=== termux-setup-storage ===== /storage folder view ======="' >> .bash_profile
    echo 'echo "=== http:/11q.ipdisk.co.kr/termux/tt.sh 20200628 =========="' >> .bash_profile
    echo 'echo "==========================================================="' >> .bash_profile
    echo 'echo "=== debian_on_termux run after view loacalhost  ==========="' >> .bash_profile
    echo 'echo "=== termux-ubuntu install and  sjva2 install==============="' >> .bash_profile
    echo 'echo "=== curl -LO https://raw.githubusercontent.com/jassmusic/termux/master/termux-ubuntu_with_sjva2_install.sh  ================"' >> .bash_profile
    echo 'echo "=== bash termux-ubuntu_with_sjva2_install.sh =============="' >> .bash_profile
    echo 'echo "=== run ~/termux-ubuntu/start-ubuntu.sh===================="' >> .bash_profile
    
    #curl -LO https://raw.githubusercontent.com/jassmusic/termux/master/termux-ubuntu_with_sjva2_install.sh
    #bash termux-ubuntu_with_sjva2_install.sh 
    # ===================================================================
    #  /com.termux/files/usr/etc/motd 파일에 추가 정보 입력하여 표시 방법 2
    # ===================================================================
    cd ~
    cd ~/../usr/etc
    echo "nano /data/data/com.termux/files/usr/etc/motd message insert " >> motd
    echo "===================================================================" >> motd
    # ===================================================================
    # Termux를 루트로 실행하고 싶습니다
    # https://android.stackexchange.com/questions/167177/id-like-to-run-termux-as-root-possible
    # https://gitlab.com/st42/termux-sudo
    # ===================================================================
    # nano /data/data/com.termux/files/usr/etc/ssh/ssh_config
    # trictModes no 마지막에 추가
    echo 'StrictModes no' >> /data/data/com.termux/files/usr/etc/ssh/ssh_config
    
    # ===================================================================
    # Alias set & prompt set는 ~/../usr/etc/bash.bashrc 
    # ===================================================================
    cd ~
    cd ~/../usr/etc
    pwd
    touch bash.bashrc
    chmod 777 bash.bashrc
    chmod a+x bash.bashrc
    echo alias mc='"mc -a"' >> bash.bashrc
    echo alias l='"ls -l"'  >> bash.bashrc 
    echo alias ll='"ls -al"' >> bash.bashrc
    echo 'export "PS1=termux_home]\h]\t]"' >> bash.bashrc
    cat bash.bashrc
    # echo 'export "PS1=termux_home]\h]\t]"' >> ~/../usr/etc/bash.bashrc
    # ===================================================================
    # echo '"PS1=termux_home]\u\w[\[\e[41m\]\t\[\e[m\]]"' >> bash.bashrc
    # ps1 help  http://ezprompt.net/ 
    # 참조 생성하여 사용자 정의는 이상 없을시 참조 수정 합니다.
    # 수정후 적용 실행 source 경로
    
    cd ~
    source  ~/../usr/etc/bash.bashrc
    # ===================================================================
    # ps1 확인
    # ===================================================================
    echo $PS1
    # ===================================================================
    # ip 확인
    # ===================================================================
    ifconfig
    # ===================================================================
    # 사용자 파일 다운로드 
    # debian-in-termux 실행 파일
    # cd ~/debian-in-termux 에서 sh 파일 실행 설치
    # ===================================================================
    # ssh open no keygen 
    # =============================================
    cd ~
    cd ~/.ssh
    pwd
    cp authorized_keys authorized_keys1
    rm -rf authorized_keys
    # putty root 접속 않될때는 
    # ssh-keygen 생성
    ssh-keygen
    cp id_rsa.pub authorized_keys
    rm -rf authorized_keys
    cp id_rsa /storage/AB2A-68FB
    # id_rsa 파일을 usb에 옮겨 pc의 디랙토리에 저장 설정 하세요
    # wiscp 로 id_rsa파일을 입력 id_rsa.ppt 파일 저장 putty 설정 연결
    # 하면 root로 암호 설정으로 접속 합니다
    # =============================================
    # =============================================
    # debian-in-termux...install............ 
    # =============================================
    apt-get update -y
    apt-get upgrade -y
    apt-get install wget -y
    apt-get install proot -y
    apt-get install git -y
    cd ~
    # ===================================================================
    # debian_on_termux.sh install........................ 실패 안됨
    # ===================================================================
    #git clone https://github.com/MFDGaming/debian-in-termux.git
    #cd debian-in-termux
    #chmod a+x debian.sh
    # cd ~/debian-in-termux
    # 설치는
    # sh debian.sh 또는 ./debian.sh
    # 실행은
    # sh start.sh  또는 ./start.sh
    #
    # ===================================================================
    # debian_on_termux.sh install........................성공
    # ===================================================================
    cd /data/data/com.termux/files/home
    apt update -y
    apt install wget -y
    hash -r
    wget -q https://raw.githubusercontent.com/sp4rkie/debian-on-termux/master/debian_on_termux.sh
    # 설치 참조 https://github.com/sp4rkie/debian-on-termux
    chmod a+x debian_on_termux.sh
    #설치는 
    #sh debian_on_termux.sh 
    #링크 참조 설치후
    #$HOME/bin/enter_deb
    #으로 데비안 실행 하세요
    # ===================================================================
    # 데비안 자동 진입 만들기
    # ===================================================================
    cd ~
    touch 1.sh
    chmod 777 1.sh
    chmod a+x 1.sh
    #echo $HOME/bin/enter_deb >> 1.sh
    
    #============================== 수정하세요
    # 자동 진입 실행
    #sh 1.sh
    #으로 데비안 실행 가능합니다
    #echo sh 1.sh >> .bash_profile
    #=================================== 수정하세요
    # 설치가 제대로 되면 자동실행 가능합니다.
    cd ~
    ls -al
    date
    # ===================================================================
    # termux port 8080 사용중인 passwd 설정
    # ===================================================================
    # putty 접속 하여 아래 명령 입력  ubuntu 와 sjva2 설치 합니다
    # curl -LO https://raw.githubusercontent.com/jassmusic/termux/master/termux-ubuntu_with_sjva2_install.sh
    # bash termux-ubuntu_with_sjva2_install.sh 
    # ===================================================================
    echo passwd input ==================================>
    passwd root
    passwd
    # ===================================================================
    #  기타 정보 정리
    # ===================================================================
    echo " 하기 내용은 참조만 하세요 //상기 명령은 임의 변경으로 내용이 상이 할수 있습니다 "
    echo " pc에서 putty 접속 해보세요 "
    echo " 미박스에서 root/암호 설정값으로 접속 가능합니다 "
    echo " 혹씨 다른 장비에서 접속이 되지 않으면 "
    echo " pc에서 putty 접속이 되지 않으면 id_rsa 파일을 id_rsa.ppt 파일로 변경 지정합니다. "
    echo " wincp에서 id_rsa 파일을 ssh 개인키 파일 지정하세요 "
    echo " debian-in-termux 설치 사용하고자 하면 디랙토리 이동 ??.sh 실행 설치 됩니다 "
    echo " 미박스에서 root/암호 설정값으로 접속 가능합니다 "
    echo " termux상태에서 "
    echo " storage 폴더로 이동을 위하여 "
    echo " termux-setup-storage "
    echo " 실행하면 권한설정후 /storage 로 이동가능합니다"
    echo " 암호 입력하지 않으셨스면 passwd root , passwd 하여 암호 저장 가능합니다 "
    echo " debian_on_termux 설치은 sh debian_on_termux "
    echo " debian_on_termux 실행은 $HOME/bin/enter_deb "
    echo " debian_on_termux 자동실행은 $HOME/bin/enter_deb "
    echo " debian_on_termux 종료는 service all??? stop 해야 하고 exit로 나갑니다. "
    echo " tvheadend 설치 실행시 종료후 termux로 이동 합니다 "
    echo " service tvheadend stop 후 exit 하여 termux로 이동 합니다 "
    echo " 데비안 진입 sh 1.sh 하여 "
    echo " debian_on_termux 설치은 sh debian_on_termux 하여 설치 하세요"
    echo " debian에서 service --status-all"
    echo " ========================== install ....end =================="
    cp .bash_profile .bash_profile.back

    ■ # putty 접속 하여 아래 명령 입력  ubuntu 와 sjva2 설치 합니다

    # curl -LO https://raw.githubusercontent.com/jassmusic/termux/master/termux-ubuntu_with_sjva2_install.sh

    # bash termux-ubuntu_with_sjva2_install.sh 


    termux_home]localhost]  ]cat termux-ubuntu_with_sjva2_install.sh
    #!/bin/sh
    
    # Termux-Ubuntu with SJVA2 Install
    # made by jassmusic @20.06.26
    
    echo ""
    echo "-- SJVA2 Install for Termux-Ubuntu"
    echo "   from nVidia Shield Cafe --"
    echo "   version 0.2.6.26"
    echo ""
    
    termux-wake-lock
    
    cd ~
    rm -rf termux-ubuntu_install.sh
    curl -LO https://raw.githubusercontent.com/jassmusic/termux/master/termux-ubuntu_install.sh
    bash termux-ubuntu_install.sh
    rm -rf ~/.bash_profile
    cat >> ~/.bash_profile << EOF
    termux-wake-lock
    sshd
    ~/termux-ubuntu/start-ubuntu.sh
    EOF
    rm termux-ubuntu_install.sh
    
    cd ~
    rm -rf termux-ubuntu_sjva2_install.sh
    curl -LO https://raw.githubusercontent.com/jassmusic/termux/master/termux-ubuntu_sjva2_install.sh
    mv termux-ubuntu_sjva2_install.sh ~/termux-ubuntu/ubuntu-fs/home
    cat >> ~/termux-ubuntu/ubuntu-fs/root/.bash_profile << EOF
    bash /home/termux-ubuntu_sjva2_install.sh
    EOF
    ~/termux-ubuntu/start-ubuntu.sh
    fi
    termux_home]localhost]  ]
    

    ▶ ☞ 정보찾아 공유 드리며 출처는 링크 참조 바랍니다 ♠ . ☞ 본자료는 https://11q.kr 에 등록 된 자료 입니다♠.

    [ 추가 정보 ... 더보기) ]
    뷰PDF 1,2



    office view

    관련자료

    댓글목록

    profile_image

    11qkr님의 댓글

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

    #termux-alpine_sjva2_addset.sh : 소주6잔님 2줄 설치 후 Background 실행을 위한 addset
    curl -LO  https://github.com/jassmusic/termux/blob/master/termux-alpine_sjva2_addset.sh
    bash termux-alpine_sjva2_addset.sh




    • 일간 조회수
        • 게시물이 없습니다.
    • 주간 조회수
        • 게시물이 없습니다.
    • 월간 조회수
        • 게시물이 없습니다.


    Total 1,746 / 8 Page
    [ ● ★★★ 부트로더 강력추천 v045_v4 )헤놀로지 RedPill tinyCore 만능부트로더 xpenol… ] 댓글 8

    ●★★★ 부트로더 강력추천 v045_v4 )헤놀로지 RedPill tinyCore 만능부트로더 xpenology dsm7.0.1적용 간단 빌드 …

    [ ★★★ UEFI 버전)tinycore-redpill-uefi.v0.4.5.img.gz 부팅UEFI 변경 작업… ] 댓글 4

    ● tinycore-redpill-uefi.v0.4.5.img.gz 부팅UEFI 변경 작업기 명령어 초기값 추가 마운트 작업 입니다. uefi로…

    [ ● DSM 설치과정이 비정상적으로 중단된경우 접속 해결하기 ] 댓글 1

    ● DSM 설치과정이 비정상적으로 중단된경우 접속 해결하기헤놀로지를 물리파워버튼으로 자꾸 종료하시면 HDD에 무리가 갈수 있으니,가급적 teln…

    [ ● RDM 적용 디스크 확인 방법 및 RDM HDD추가 진행 엑셀파일로 과 디스크 구성 user_conf… ] 댓글 2

    ● RDM 적용 디스크 확인 방법 및 RDM HDD추가 진행 엑셀파일로 과 디스크 구성 user_config.json 구성첨부 엑셀을 이용하여 …

    [ 실패) ESXi 7.0 한방팩 만들기 ] 댓글 1

    실패) ESXi 7.0 한방팩 만들기●https://www.098.co.kr/esxi-7-0-%ec%84%a4%ec%b9%98-%ed%95%9c…

    [ ★ 부트로더 강력추천 v045_v3 )헤놀로지 RedPill tinyCore 만능부트로더 xpenology … ] 댓글 8

    ★★★ 부트로더 강력추천 v045_v3 )헤놀로지 RedPill tinyCore 만능부트로더 xpenology dsm7.0.1적용 간단 빌드ht…

    [ ● Proxmox (PVE)에서 xpenology tinycore redpill dsm7.0 설치 스샷 정… ] 댓글 1

    ●Proxmox (PVE)에서 xpenology redpill dsm7.0 설치 스샷 ● Proxmox ( PVE) 기본 설치는 간단한 설치 과…

    [ ● Proxmox ( PVE) 기본 설치는 간단한 설치 과정 사진 및 시놀로지 설치 메뉴얼 영상 정보 ] 댓글 13

    ●Proxmox ( PVE) 기본 설치는 간단한 설치 과정 사진처음 부타 다시 설치 스샷 합니다다운로드https://www.proxmox.com…

    [ ●2번째) Proxmox ( PVE)에서 xpenology redpill dsm7.0 설치 테스트2 ]

    ●2번째) Proxmox ( PVE)에서 xpenology redpill dsm7.0 설치 테스트2VM conf 파일 편집 및 img 파일 추가…

    [ ● 빌드 자동파일 sh 구성 )헤놀로지 RedPill tinyCore 만능부트로더 for Native img… ] 댓글 3

    ● 빌드 자동파일 sh 구성 )헤놀로지 RedPill tinyCore 만능부트로더 for Native img 적용파일 및 수정하기 첨부tinyc…

    [ ● img vmdk 마운트 수정하기 )헤놀로지 RedPill tinyCore 만능부트로더 for Native… ] 댓글 1

    ● img vmdk 마운트 수정하기 )헤놀로지 RedPill tinyCore 만능부트로더 for Native img 적용파일 수정하기헤놀로지 R…

    [ ● Windows 10에서 ISO 및 IMG 파일을 마운트하는 방법 ]

    ●Windows 10에서 ISO 및 IMG 파일을 마운트하는 방법권장:Windows 문제를 수정하고 시스템 성능을 최적화하려면 여기를 클릭하십시…

    [ ● 설치된 드라브 목록 보기 )헤놀로지 RedPill tinyCore 만능부트로더 ]

    ● 설치된 드라브 목록)헤놀로지 RedPill tinyCore 만능부트로더빌드 진행후 바로 빌드된 드라이브 목록 보기 ext-manager.sh…

    [ ● 부팅후 초기화파일 구성방법 )헤놀로지 RedPill tinyCore 만능부트로더 for Native im… ]

    ● 부팅후 초기화파일 구성방법 )헤놀로지 RedPill tinyCore 만능부트로더 for Native img 적용자신의 구성파일을 usb로 부…

    [ ● usb작업 빌드 )헤놀로지 RedPill tinyCore 만능부트로더 for Native img 적용 ] 댓글 10

    ● usb작업)헤놀로지 RedPill tinyCore 만능부트로더 for Native img 적용본 작업은 저의 안되는 구형 노트북 system…

    [ ● 작업참조 정보)헤놀로지 RedPill tinyCore 만능부트로더 for Native img 적용 가이드 ] 댓글 8

    ● 작업준비)헤놀로지 RedPill tinyCore 만능부트로더 for Native img 적용 가이드슈퍼멤버 게시글 정보게시됨2021년 12월…


    ♥간단_메모글♥


    최근글


    새댓글



    PHP 안에 HTML ☞ 홈페이지 화면갱신 시간은 ♨
    ▶ 2024-04-26 06:16:21

    오늘의 홈 현황


    • 현재 접속자♨ 96 명
    • 오늘 가입자※ 0 명
    • 어제 가입자※ 3 명
    • 주간 가입자※ 20 명
    • 오늘 방문자 798 명
    • 어제 방문자 1,686 명
    • 최대 방문자 13,042 명
    • 전체 방문자 4,289,315 명
    • 전체 게시물※ 8,532 개
    • 전체 댓글수※ 24,512 개
    • 전체 회원수 10,930 명

    QR코드


    ☞ QR코드 스캔은 kakao앱 자체 QR코드

    알림 0








    최신글↑