[참고] Bash on Ubuntu on Windows

  • lxterminal 실행 그림
    export DISPLAY=:0 ; LANG=C lxterminal &

  • 개요


  • Windows 10 Anniversary Update의 Bash on Ubuntu on Windows(베타)를 사용해보십시오.

  • 환경


  • Windows 10 64bit 1607
  • X 서버 : VcXsrv Windows X Server export DISPLAY=:0 수행

  • 설치



    Bash on Ubuntu on Windows


  • 개발자 모드
    모든 설정 => 업데이트 및 보안 => 개발자 용 => 개발자 모드
  • Windows 기능 활성화 또는 비활성화에서 Windows Subsystem for Linux (Beta)로 확인 => [OK]
    [Win] + R에서 optionalfeatures [Enter]
  • sudo apt-get install fonts-ipafont fonts-ipaexfont =>일본어 표시(IPA 폰트)
    일본어 글꼴을 설치하지 않으면 ...
  • 언스톨은 명령 프롬프트 열고 lxrun /uninstall /full
  • 재설치는 lxrun /install lxrun /setdefaultuser

    VcXsrv


  • 사이트 VcXsrv Windows X Server 에서 다운로드하여 설치 프로그램 실행. vcxsrv-64.1.18.3.0.installer.exe 사용.

  • 신청


  • 일본어를 입력 할 수 없습니다 ... (구구루가 ...)

  • [NG] Wine
    => 32 비트 바이너리를 실행할 수없는 패턴.

    설치
    sudo dpkg --add-architecture i386
    sudo apt-get update
    sudo ap-get install wine wintricks
    


  • [OK] lxterminal

    설치
    sudo apt-get install lxterminal
    


  • [OK??] Firefox

    설치
    sudo apt-get install firefox firefox-locale-ja
    

    경고가 나오지만 브라우징 할 수 있습니다.
    mt08@DESKTOP-A9K10C2:~$ firefox
    Sandbox: unexpected multithreading found; this prevents using namespace sandboxing.
    
    (firefox:165): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
    //bin/dbus-launch terminated abnormally without any error message
    
    (firefox:165): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
    //bin/dbus-launch terminated abnormally without any error message
    
    (firefox:165): LIBDBUSMENU-GLIB-WARNING **: Unable to get session bus: Failed to execute child process "dbus-launch" (そのようなファイルやディレクトリはありません)
    
    (firefox:165): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
    //bin/dbus-launch terminated abnormally without any error message
    
    (firefox:165): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
    //bin/dbus-launch terminated abnormally without any error message
    


  • [NG]Google 크롬

    설치
    wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
    sudo dpkg -i ./google-chrome-stable_current_amd64.deb
    sudo apt-get install -f
    

    코어 덤프
    mt08@DESKTOP-A9K10C2:~$ google-chrome --version
    Google Chrome 52.0.2743.116
    mt08@DESKTOP-A9K10C2:~$ google-chrome
    中止 (コアダンプ)
    


  • [NG] Chromium-browser-l10n

    설치
    sudo apt-get install chromium-browser-l10n
    

    코어 덤프
    mt08@DESKTOP-A9K10C2:~$ chromium-browser --version
    libkmod: ERROR ../libkmod/libkmod-module.c:1619 kmod_module_new_from_loaded: could not open /proc/modules: No such file or directory
    Error: could not get list of modules: No such file or directory
    Chromium 51.0.2704.79 Ubuntu 14.04
    mt08@DESKTOP-A9K10C2:~$ chromium-browser
    libkmod: ERROR ../libkmod/libkmod-module.c:1619 kmod_module_new_from_loaded: could not open /proc/modules: No such file or directory
    Error: could not get list of modules: No such file or directory
    [1701:1701:0803/172639:FATAL:render_sandbox_host_linux.cc(40)] Check failed: 0 == shutdown(renderer_socket_, SHUT_RD). shutdown: 無効な引数です
    #0 0x7f9f795b47fe base::debug::StackTrace::StackTrace()
    #1 0x7f9f795ce987 logging::LogMessage::~LogMessage()
    #2 0x7f9f795ceba9 logging::ErrnoLogMessage::~ErrnoLogMessage()
    #3 0x7f9f75ead8b5 content::RenderSandboxHostLinux::Init()
    #4 0x7f9f75c73136 content::BrowserMainLoop::EarlyInitialization()
    #5 0x7f9f75c763ef <unknown>
    #6 0x7f9f75c6f90d content::BrowserMain()
    #7 0x7f9f75be1c34 <unknown>
    #8 0x7f9f75be0dc1 content::ContentMain()
    #9 0x7f9f7a8dbc48 <unknown>
    #10 0x7f9f62361ec5 __libc_start_main
    #11 0x7f9f7a8dbb1a <unknown>
    
    中止 (コアダンプ)
    




  • gcc (build-essential)

    설치 및 HelloWorld
    mt08@DESKTOP-A9K10C2:~$ sudo apt-get install build-essential
    .
    .
    .
    mt08@DESKTOP-A9K10C2:~$ cat hello.c
    #include <stdio.h>
    int main(int ac, char *av[])
    {
    printf("Hello World\n");
    return 0;
    }
    mt08@DESKTOP-A9K10C2:~$ gcc hello.c -o hello
    mt08@DESKTOP-A9K10C2:~$ ./hello 
    Hello World
    mt08@DESKTOP-A9K10C2:~$ file hello
    hello: ELF 64-bit LSB  executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=485460cc24207c33a5d3bbe56b27fc3a20b32815, not stripped
    

  • 좋은 웹페이지 즐겨찾기