11.Nas_1


새창 작성 수정 목록 링크 Edit G카랜다 HDD HDD HDD 게시물 주소 복사


성공)U5mini 데비안9 Stretch 리눅스 업데이트 (베타)_2번째작업 초기화 펌웨어 재설치 처음부터 진행

♨ 카랜더 일정 :
  • 링크

  • 첨부

  • 컨텐츠 정보

    본문

    성공)U5mini 데비안9 Stretch 리눅스 업데이트 (베타)_2번째작업 초기화 펌웨어 재설치 처음부터 진행


    (설치결과)

    3232235521_1553998635.4727.png

    (설치사례)

    3232235521_1553911376.6917.png

     조건: 전체 설치 초기화상태 

    3232235521_1553911436.6493.png

    linux internal 재설치 상태에서 시작 합니다.

    3232235521_1553911517.3947.png

     3232235521_1554973041.1883.png

     3232235521_1554973071.6986.png

    3232235521_1554973150.0589.png

    (초기접속 터미널)

    linux ssh 터미널 접속 putty 이용 합니다

    초기 root /androidoverlinux

    3232235521_1553911637.2076.png

    3232235521_1553911700.8978.png

    passwd

    로 변경

    3232235521_1553911749.3999.png

    df- h

    로 저장메모리 확인

    3232235521_1553911825.3918.png

    (참조자료)

    U5PVR / MINI 리눅스 펌웨어 데비안9 Stretch 업데이트 (베타)|03. U5셋탑 게시판

    https://cafe.naver.com/mk802/30960

    참조 설치 진행 합니다

    (명령어만 기록)

    wget https://github.com/djjproject/android_over_linux/raw/master/stretch-upgrade.sh

    chmod a+x stretch-upgrade.sh

     ./stretch-upgrade.sh 

    3232235521_1553912171.9434.png

    시작시간 11시 17분 ~ 종료 시간 11시11시26분에 ( 대략 10분후) 

    Keep the local version currently installed 를 선택

    3232235521_1553912843.4135.png


    3232235521_1553912983.1962.png

    df -h

    메모리 확인

    3232235521_1553913004.5351.png

    reboot

    3232235521_1553913054.7432.png

    putty 접속

    3232235521_1553913297.4051.png
    3232235521_1553913355.3632.png

    ( web server 설치 )

    [U5PVR]

    U5PVR APM 1편 : 설치하기 (apache2 + php5 + mys

    https://cafe.naver.com/mk802/20363


    명령어만 메모 합니다.

    apt-get install mysql-server

    y 로 진행

    adduser mysql aid_inet

    apt-get install mysql-server

    3232235521_1553913701.3868.png

    nano /etc/mysql/my.cnf
    내용확인
    3232235521_1553913772.21.png

    apt-get install phpmyadmin

    y

    3232235521_1553913865.6928.png


    3232235521_1553914012.3019.png

    3232235521_1553914055.1968.png

    3232235521_1553914089.2131.png

    An error occurred while installing the database:                                                              │

       │                                                                                                               │

       │ ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No   │

       │ such file or directory") . Your options are:                                                                  │

       │  * abort - Causes the operation to fail; you will need to downgrade,                                          │

       │    reinstall, reconfigure this package, or otherwise manually intervene                                       │

       │    to continue using it. This will usually also impact your ability to                                        │

       │    install other packages until the installation failure is resolved.                                         │

       │  * retry - Prompts once more with all the configuration questions                                             │

       │    (including ones you may have missed due to the debconf priority                                            │

       │    setting) and makes another attempt at performing the operation.                                            │

       │  * retry (skip questions) - Immediately attempts the operation again,                                         │

       │    skipping all questions. This is normally useful only if you have                                           │

       │    solved the underlying problem since the time the error occurred.                                           │

       │  * ignore - Continues the operation ignoring dbconfig-common errors.                                          │

       │    This will usually leave this package without a functional database.     

    데이터베이스를 설치하는 중 오류가 발생했습니다 : │

       │ │

       │ 오류 2002 (HY000) : '/var/run/mysqld/mysqld.sock'소켓을 통해 로컬 MySQL 서버에 연결할 수 없습니다 (2 "아니오 │

       │ 그러한 파일 또는 디렉토리 "). 귀하의 옵션은 다음과 같습니다 : │

       │ * 중단 - 작업이 실패하게합니다. 당신은 다운 그레이드해야합니다 │

       │ 재설치,이 패키지 재구성 또는 수동으로 개입 │

       │ 그것을 계속 사용하십시오. 이것은 보통 │ 능력에 영향을 미칩니다.

       │ 설치 실패가 해결 될 때까지 다른 패키지를 설치하십시오. │

       │ * 다시 시도 - 모든 구성 질문을 한 번 더 묻습니다 │

       │ (debconf 우선 순위 때문에 빗나 갔을지도 모르는 것들을 포함) │

       │ 설정)하고 조작을 다시 시도합니다. │

       │ * 다시 시도 (질문 건너 뛰기) - 즉시 다시 시도 │

       │ 모든 질문을 건너 뛰십시오. 이것은 일반적으로 │가있는 경우에만 유용합니다.

       │ 오류가 발생한 이후의 기본 문제를 해결했습니다. │

       │ * ignore - dbconfig-common 오류를 무시하고 작업을 계속합니다. │

       │ 이것은 일반적으로 기능 데이터베이스없이이 패키지를 떠납니다.


    3232235521_1553914138.147.png

    최종 ignore 로 진행

    3232235521_1553914265.9695.png

    3232235521_1553914294.6446.png

    이상태에서 확인

    service apache2 restart

    (웹접속 성공)

    http://192.168.0.108/

    3232235521_1553914386.2049.png

    nano /var/www/html/phpinfo.php

    <?php phpinfo(); ?>

    저장 실행

    3232235521_1553914435.5752.png

    chown www-data:www-data /var/www/html/phpinfo.php

    http://192.168.0.108/phpinfo.php

    3232235521_1553914511.1164.png

    문제점 

    http://192.168.0.108/phpmyadmin/

    는 에러 발생 합니다 

    3232235521_1553683928.2613.png


    apt install libapache2-mod-php

    3232235521_1553914558.6712.png

    3232235521_1553914584.5274.png


    3232235521_1553914661.3186.png

    service apache2 restart
    3232235521_1553914751.0198.png

    apt-get update

    apt-get upgrade

    service apache2 restart


    http://192.168.0.108/phpmyadmin/

    접속시  로그인 문제 발생 


    reboot

    3232235521_1553915326.5036.png

    http://192.168.0.108/phpmyadmin/index.php


    mysql

    접속 되면 안되면 삭제후 재설치 

    3232235521_1553915485.5987.png


    mysql -u root

    [mysql] use mysql;
    [mysql] update user set plugin='' where User='root';
    [mysql] flush privileges;
    [mysql] \q

    3232235521_1553915774.4756.png

    cd /etc/phpmyadmin

    nano /etc/phpmyadmin/config.inc.php

    F6 검색 AllowNoPassword

    // $cfg['Servers'][$i]['AllowNoPassword'] = TRUE;


    /**

     * phpMyAdmin configuration storage settings.

     */


    /* User used to manipulate with storage */

    // $cfg['Servers'][$i]['controlhost'] = '';

    // $cfg['Servers'][$i]['controlport'] = '';

     $cfg['Servers'][$i]['controluser'] = '추가아이디';

     $cfg['Servers'][$i]['controlpass'] = '추가아이디패스';

    3232235521_1553997067.336.png

    service apache2 restart

    reboot

    (정보)

    ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

    https://stackoverflow.com/questions/21944936/error-1045-28000-access-denied-for-user-rootlocalhost-using-password-y

    자신의 환경에 맞게 새로운 유저 1개 추가

    mysql -p -u root
    CREATE USER 'newid'@'%' IDENTIFIED BY '12345'; GRANT ALL PRIVILEGES ON *.* TO '
    GRANT ALL PRIVILEGES ON *.* TO 'newid'@'%' WITH GRANT OPTION; nano /etc/phpmyadmin/config.inc.php $cfg['Servers'][$i]['controluser'] = '
    nano /etc/phpmyadmin/config.inc.php
    $cfg['Servers'][$i]['controluser'] = 'newid'; $cfg['Servers'][$i]['controlpass'] = '
    $cfg['Servers'][$i]['controlpass'] = '12345';

    정상 접속 됩니다.

    3232235521_1553997411.3726.png






    service apache2 restart

    오늘의 영화 돈겟아웃 보아야 하는데....벌써 점심시간 입니다


    (웹폴더 웹루트 경로 옮기기/변경 하기)

    /var/www/html

    /mnt/media_rw/mmcblk1p1/www/html

    외장 microsd 카드로 변경 합니다 (128g)


    https://cafe.naver.com/mk802/20380

    dpkg-reconfigure tzdata


     nano /etc/apache2/apache2.conf

    3232235521_1553924654.5494.png

    nano /etc/apache2/sites-enabled/000-default.conf
    3232235521_1553924770.705.png


    adduser www-data aid_media_rw

    adduser www-data aid_sdcard_r


    service apache2 restart

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

    그누보드 설치

    cd /mnt/media_rw/mmcblk1p1/www/html/g5s

     wget https://github.com/gnuboard/gnuboard5/zipball/master
     unzip master

    cd ..

    rm -rf g5s

    mv /mnt/media_rw/mmcblk1p1/www/html/g5/gnuboard-gnuboard5-831219e /mnt/media_rw/mmcblk1p1/www/html/g5s

    cd g5s
    mkdir data
    chmod 707 data

    chmod uo+rwx data

    그누보드 data 권한 수정이 안됩니다

    http://192.168.0.108/g5s/

    3232235521_1553925570.3.png

    cd /mnt/media_rw/mmcblk1p1/www/html/g5s

    chown www-data:www-data -R /mnt/media_rw/mmcblk1p1/www/html/g5s

    chmod 707 data

    chmod uo+rwx data

    http://192.168.0.108/g5s/



    설치 문제점 대응 사례)

    서버를 이용중이시라면 php.ini 파일에서
    short_open_tag = Off 를 찾으셔서 short_open_tag = On 으로 바꾸시고
    아파치 리스타트 후에 그누보드를 설치 해 보시기 바랍니다. (기본 시놀로지 on)

    아니면 숏태그를 사용하지 않는 그누보드 dtd 버전을 설치 해 보세요....^^
    <span style="font-size: 14px;">서버를 이용중이시라면 php.ini 파일에서 short_open_tag = Off 를 찾으셔서 short_open_tag = On 으로 바꾸시고 아파치 리스타트 후에 그누보드를 설치 해 보시기 바랍니다. 아니면 숏태그를 사용하지 않는 그누보드 dtd 버전을 설치 해 보세요....^^</span>


    네..고맙습니다. 옛날 파일도 설치를 해보니 똑 같은 현상이 나와서
    시스템 설정 문제로 생각하고 원인을 찾고 있었는데
    위 설정으로 하니 바로 적용이 되었습니다.
     
    경로 확인
    3232235521_1553927350.5274.png
    nano /etc/php/7.0/apache2/php.ini
    F6
    short_open_tag 
    찾아 

    short_open_tag = Off 를 찾으셔서 short_open_tag = On 

    3232235521_1553927493.0518.png

    cd /mnt/media_rw/mmcblk1p1/www/html/g5s

    chown www-data:www-data -R /mnt/media_rw/mmcblk1p1/www/html/g5s

    service apache2 restart

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

    그누보드 로그인 문제

    chown www-data:www-data -R /mnt/media_rw/mmcblk1p1/www/html/g5s

    한번 하면 로그인되고 / 다시 로그인 안됨

    3232235521_1553954183.368.png

    되고

    다시 logout 후 login 안됨

    3232235521_1553954277.0892.png


    reboot 명령후 문제점 

    Stopping MySQL database server: mysqld failed

    3232235521_1553954730.606.png

    https://stackoverflow.com/questions/26378389/stopping-mysql-database-server-mysqld-failed

    /etc/mysql/debian.cnf 

    에 암호 추가 합니다

    nano /etc/mysql/debian.cnf

    3232235521_1553956711.5585.png
    /etc/init.d/mysql stop
    3232235521_1553956951.3863.png

    암호 추가 하니 phpmyadmin 접속화면 문제 발생

    3232235521_1553956879.3833.png


    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

    https://stackoverflow.com/questions/11657829/error-2002-hy000-cant-connect-to-local-mysql-server-through-socket-var-run

    To reset the password

    Follow these steps (can be helpful if you really forget your password and you can try it anytime, even if you're not in the situation at the moment):

    Stop mysql

    sudo /etc/init.d/mysql stop

    Or for other distribution versions:

    sudo /etc/init.d/mysqld stop

    Start MySQL in safe mode

    sudo mysqld_safe --skip-grant-tables &

    Log into MySQL using root

    mysql -uroot

    Select the MySQL database to use

    use mysql;

    Reset the password

    update user set password=PASSWORD("mynewpassword") where User='root';

    update user set password=PASSWORD("12345678") where User='root';


    Flush the privileges

    flush privileges;

    Restart the server


    quit

    Stop and start the server again

    Ubuntu and Debian:

    sudo /etc/init.d/mysql stop

    ...

    sudo /etc/init.d/mysql start

    On CentOS, Fedora, and RHEL:

    sudo /etc/init.d/mysqld stop

    ...

    sudo /etc/init.d/mysqld start

    Login with a new password

    mysql -u root -p

    Type the new password and enjoy your server again like nothing happened

    This was taken from Reset a MySQL root password.


    service apache2 restart

    또는

    reboot
    http://192.168.0.108/phpmyadmin/

    정상접속
    3232235521_1553998381.6525.png

    3232235521_1553957649.1749.png

    ============= end

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



    office view

    관련자료

    댓글목록

    profile_image

    shimss@11q.kr님의 댓글

    shimss@11q.kr 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 아이피 (210.♡.41.89) 작성일

    gtmini-에  apm 설치하자
    http://cafe.naver.com/mk802/31295

    profile_image

    shimss@11q.kr님의 댓글

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

    GT-mini-a AOL 데비안9 apm 설치
    apt install mariadb-server mariadb-client
    adduser mysql aid_inet
    service mysql start
    apt install phpmyadmin
    nano /etc/apache2/apache2.conf
    ----------- 아래내용 입력 --------
    # phpmyadmin
    Include /etc/phpmyadmin/apache.conf
    ------------
    service apache2 restart
    nano /etc/apache2/apache2.conf
    ----------- 아래내용 입력 --------
    # server name
    ServerName localhost
    ------------
    root@AOL-Debian:~# service apache2 restart
    [....] Restarting Apache httpd web server: apache2[Tue Oct 29 18:02:33.582920 2019] [alias:warn] [pid 13091] AH00671: The Alias directive in /etc/phpmyadmin/apache.conf at line 3 will probably never match because it overlaps an earlier Alias.
    . ok
    ===============
    http://192.168.0.125/
    성공

    nano /var/www/html/phpinfo.php
    ----------- 아래내용 입력 --------
    <?php phpinfo(); ?>
    ----------- 아래내용 입력 --------
    chown www-data:www-data /var/www/html/phpinfo.php
    http://192.168.0.125/phpinfo.php
    성공
    ================
    http://192.168.0.125/phpmyadmin/index.php
     에러 발생
    ===========
    login as: root
    root@192.168.0.125's password:
    Access denied
    root@192.168.0.125's password:
    Linux AOL-Debian 4.9.76 #2 SMP PREEMPT Mon Apr 1 12:16:22 CST 2019 armv8l
                        _          _    _
        /\            | |        (_)  | |
        /  \  _ __  __| |_ __ ___  _  __| |
      / /\ \ | '_ \ / _` | '__/ _ \| |/ _` |
      / ____ \| | | | (_| | | | (_) | | (_| |
     /_____ \_|_| |_|\__,_|_| _\___/|_|\__,_|
      / __ \                | |    (_)
     | |  | __  _____ _ __  | |    _ _ __  _  ___  __
     | |  | \ \ / / _ | '__| | |    | | '_ \| | | \ \/ /
     | |__| |\ V |  __| |    | |____| | | | | |_| |>  <
      \____/  \_/ \___|_|    |______|_|_| |_|\__,_/_/\_\
    ====================================================
    Welcome to AOL Debian GNU/Linux 9 stretch (eddylab)
    ====================================================
    DATE    : Tue Oct 29 18:16:27 KST 2019
    UPTIME  : up 4 minutes
    VERSION : 20191027

    <CPU INFO>
    CLOCK  : 1800MHz              GOV    : interactive
    TEMP    : 50°C                  USE    : 16.2%

    <MEMORY INFO>
    MEM    : 998MB / 1988MB        SWAP    : 0MB / 499MB

    <NETWORK>
    192.168.0.125 192.168.0.126

    root@AOL-Debian:~# mysql -u root -p
    Enter password:
    Welcome to the MariaDB monitor.  Commands end with ; or \g.
    Your MariaDB connection id is 34
    Server version: 10.1.41-MariaDB-0+deb9u1 Debian 9.9

    Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

    MariaDB [(none)]> use mysql
    Reading table information for completion of table and column names
    You can turn off this feature to get a quicker startup with -A

    Database changed
    MariaDB [mysql]> update user set plugin='' where user='root';
    Query OK, 1 row affected (0.00 sec)
    Rows matched: 1  Changed: 1  Warnings: 0

    MariaDB [mysql]> update user set password=PASSWORD('12345') where user='root';
    Query OK, 1 row affected (0.01 sec)
    Rows matched: 1  Changed: 1  Warnings: 0

    MariaDB [mysql]> flush privileges;
    Query OK, 0 rows affected (0.04 sec)

    MariaDB [mysql]> exit
    Bye
    root@AOL-Debian:~#

    목록

    새창 작성 수정 목록 링크 Edit G카랜다 HDD HDD HDD 게시물 주소 복사




    Total 1,677 / 64 Page
    [ ● 시놀로지작업)docker를 사용하여 Synology NAS에 Nextcloud를 설치하기 위한 가이드 ] 댓글 8

    ● 시놀로지작업)docker를 사용하여 Synology NAS에 Nextcloud를 설치하기 위한 가이드작업)nextcloud 시놀로지에 설치 …

    [ ●USB연결 성공사용방법) ESxi 7.0 서버 적용 vm_windows11/해놀의 USB인식이 되지 않는다… ] 댓글 4

    ●USB연결 성공 사용방법) ESxi 7.0 서버 적용 vm_windows11 의 USB인식이 되지 않는다 > 자동으로 연결하기문제점 : …

    [ ★★★ Proxmox 정보 및 PVE 다운로드 하여 설치 테스트 준비 성공 ] 댓글 1

    ●Proxmox 정보 및PVE다운로드 하여 설치 테스트 준비 성공우리는 귀하의 서버 관리를 단순화하기 위해 강력하고 효율적인 오픈 소스 소프트웨…

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

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

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

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

    [ ● docker 의 Synology/GitLab 설치작업 ]

    ● docker 의Synology/GitLab 설치작업- 도커이미지 검색작업후 설치 :synology/gitlab 검색 다운로드 다운 docke…

    [ ● LETSENCRYPT SSL 인증서 자동갱신 쉘스크립트 ]

    ●LETSENCRYPT SSL 인증서 자동갱신 쉘스크립트출처:https://ivps.tistory.com/629[iVPS 가상서버호스팅] htt…

    [ ● 역방향 프록시 https://연결시 주의요함 인증서 연결 수정하기 ]

    ● 역방향 프록시 https://연결시 주의요함 인증서 연결 수정하기다음과같이 역방향 프록시https://abc.abc.kr연결시 인증서 연결이…

    [ ● 헤놀로지 저장소관리자 위험 미검증 ]

    ● 헤놀로지 저장소관리자 위험 미검증빌더 arpl 로더 3622시스템 :esxi 7.02원인 : sata port 미구성으로 문제 발생 ARPL…

    [ ● synology dsm7 Home Assistant설치하기 ] 댓글 3

    ● synology dsm7Home Assistant설치하기 초기설치후 동작▶ 설치 진행- 파일 다운 볼륨생성 환경변수 추가저장 메뉴방식으로 설…

    [ ● 시놀로지작업) vmware 사용 virtual machine manager 설치 ]

    ● 시놀로지작업) vmware 사용 virtual machine manager 설치주)저의 사용중인 7.1.1버전에서 설치 불가능초기진행시 호스…

    [ ● 시놀로지작업_성공2_삽질기) 무료ssl 인증서 자동생성/관리자 Nginx Proxy Manager 시놀… ] 댓글 1

    ● 시놀로지작업_성공2_삽질기) 무료ssl 인증서 자동생성/관리자 Nginx Proxy Manager 시놀로지 도커에 설치 작업정리된 작업은★★…

    [ ● 시놀로지 dsm 7.2에서 nano 에디터 및 mc 파일관리자 설치 방법 ]

    ● 시놀로지 dsm 7.2에서 nano 에디터 및 mc 파일관리자 설치 방법위의 오류 메시지는 현재 시스템의 아키텍처와 설치하려는 패키지가 맞지…

    [ 메인 겔러리 사진 숫자 늘리기 ]

    ◎ 네이버에서 [https://11q.kr 홈피] 검색 찾아오세요 ◎\n[이 게시물은 관리자님에 의해 2013-11-18 21:29:50 11.…

    [ PC200% 활용 ] 원도우 2개 멀티부팅 메뉴 easy BCD/windows booting ] 댓글 1

    PC200% 활용 노하우를 전수해주마!-멀티부팅* 가끔 원도우가 1개 문제로 한개더 원도우 ,2개 깔고원도우를 설치하는 멀티부팅 메뉴 만드는 프…

    [ ds107/ds712 diskstation synology 패스워드 초기화 하기,reset,password ]

    ds107/ds712 diskstation synology 패스워드 초기화 하기,reset,password뒷면의 reset 구멍에 볼펜으로 6~…

    [ 모바일 림 ]

    모바일 글쓰기 림모바일 삭제는 되지 않음\r\n고수\r\n.\r\nShims HomePage\r\n[https://11q.kr 홈피] \r\n.…

    [ .html 태그 없애기 ] 댓글 1

    카테고리 Function(함수) 》 S-Z 함수 》 String\n[이 게시물은 관리자님에 의해 2013-11-18 21:29:50 11.H_B…

    [ pc버전 배추스킨사용시 림스모바일 사용시 삭제 않되는 문제 추가 m/delete.php에 스킨 경로 #3추가… ]

    \r\n[자답]/ pc버전 배추스킨사용시 림스모바일 사용시 삭제 않되는 문제 추가 m/bbs/delete.php에 스킨 경로 #3추가시작\r\n…


    ♥간단_메모글♥


    최근글


    새댓글



    PHP 안에 HTML ☞ 홈페이지 화면갱신 시간은 ♨
    ▶ 2024-06-29 11:16:45

    오늘의 홈 현황


    • 현재 접속자♨ 551 명
    • 오늘 가입자※ 1 명
    • 어제 가입자※ 4 명
    • 주간 가입자※ 8 명
    • 오늘 방문자 1,514 명
    • 어제 방문자 2,007 명
    • 최대 방문자 13,042 명
    • 전체 방문자 4,402,676 명
    • 전체 게시물※ 8,663 개
    • 전체 댓글수※ 24,788 개
    • 전체 회원수 11,075 명

    QR코드


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

    알림 0








    최신글↑