Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบ >> Windows

Windows Subsystem for Linux: รัน Linux Distros และ Apps บน Windows 10

Windows Subsystem for Linux — Many distros!

อัปเดต: 11 พฤษภาคม 2018

ในฐานะ industrious pioneer ของ technology ที่ผมเป็น ในปี 2016 ผมเขียนเกี่ยวกับ Windows Subsystem for Linux (WSL) และวิธีใช้รัน BASH ใน Windows 10 แล้วผมยังแสดงวิธีรัน Linux graphical applications ใน Windows ด้วย X11 server Good stuff

โดยพื้นฐาน early escapades กับ WSL ส่วนใหญ่ เข้าใจได้ มุ่งเน้น Ubuntu แต่ recently Microsoft ขยาย range ของ available distributions ใน Windows Store โดย Kali เป็น first edition แต่ตั้งแต่นั้น several more systems ถูกเพิ่ม และนี่เรียกให้ review อีกครั้ง

Windows Subsystem for Linux: รัน Linux Distros และ Apps บน Windows 10

Get the distros

เริ่ม Store — คุณไม่ต้อง sign in จริงๆ ใช้ "linux" เป็น search query คุณจะได้ relatively short list of entries รวมถึง Kali, Debian, SLES, a NAS tool และสุดท้าย openSUSE Ubuntu ยังอยู่ภายใต้ generic BASH category การรวม enterprise flavor meaningful และ important เพราะจะมี implications สำหรับผู้ที่มองหา cross-platform solutions Microsoft ทำมากเพื่อทำให้ง่าย และดึงดูด folks ทางของพวกเขา — อาจเป็น lesson จาก failed experiments กับ mobile world แล้ว 當然 คุณยังมี Powershell for Linux ทั้งหมดนี้ทำให้ Windows attractive มากขึ้นสำหรับ Linux developers โดยเฉพาะเพราะมี zero appeal จนประมาณปีก่อน

Windows Subsystem for Linux: รัน Linux Distros และ Apps บน Windows 10

ผมตัดสินใจทดสอบกับ openSUSE Grab install start having fun เหมือน Ubuntu มี initial user setup คุณสามารถเลือกทำ user admin และหลังจากนั้นคุณมี headless server — ปัจจุบันด้วย limited networking capabilities — รัน Microsoft-customized kernel 4.4 และ henceforth standard set ของ administration commands และ tricks applies Zypper Yast สิ่งที่คุณต้องการ หากเคยใช้ SUSE ก่อน คุณจะรู้ว่าต้องทำอะไร All in all similar to the Ubuntu experience

Windows Subsystem for Linux: รัน Linux Distros และ Apps บน Windows 10

Windows Subsystem for Linux: รัน Linux Distros และ Apps บน Windows 10

Windows Subsystem for Linux: รัน Linux Distros และ Apps บน Windows 10

ข้อร้องเรียนหนึ่ง — Windows CLI ค่อนข้าง cumbersome เมื่อ marking copying หรือ pasting text จาก command-line buffer คุณต้อง right-click บน windows bar และ whatnot ไม่มี middle-click stuff เหมือนคาดหวัง At least not yet Default interface text size เล็กเกินไป ผมต้องเพิ่มเพื่อทำให้คล้าย Windows stuff

Windows Subsystem for Linux: รัน Linux Distros และ Apps บน Windows 10

Graphical applications — A whole Plasma!

แทนที่จะให้คุณ bland rehash ของ release notes ซึ่งเป็นสิ่งที่ผมไม่ทำ ผมตัดสินใจ update system ติดตั้ง full Plasma desktop บวก KDE applications associated ยิง X11 server และ run desktop ใน parallel กับ Ubuntu programs ทำ convincing use case

All in all ทำงาน fine — ถ้าค่อนข้างช้า หากคุณ kill Plasma shell คุณจะต้อง terminate SUSE window (well a shell of its own) เพราะจะมี orphaned lock files ภายใต้ /tmp ป้องกันไม่ให้ start new session คุณ cleanup manually ได้ แต่ boring 當然 GUI side ยังคง somewhat ugly และนั้น เพราะคุณรันด้วย no 3D acceleration

Windows Subsystem for Linux: รัน Linux Distros และ Apps บน Windows 10

This ain't no background — that's full Plasma right there

Windows Subsystem for Linux: รัน Linux Distros และ Apps บน Windows 10

Windows Subsystem for Linux: รัน Linux Distros และ Apps บน Windows 10

Windows Subsystem for Linux: รัน Linux Distros และ Apps บน Windows 10

Windows Subsystem for Linux: รัน Linux Distros และ Apps บน Windows 10

Side by side components จากสาม operating systems

Working ...

มัน all right มี errors หน่อยๆ Dependency issues ขณะ install Plasma ตัวแรก LOLZOR ผม mean really? ผม mention นี้ใน openSUSE pimping guides และ whatnot และที่นั่นคุณมักได้ dependency conflicts เมื่อใช้ community repos แต่ที่นี่? ทั้งสิ่งที่ผมอยากคือ install fresh desktop ใน fresh setup ไม่มี third-party sources เลย และแล้วได้ weird dependency problems แล้ว

Problem: kio-extras5-17.04.2-2.1.x86_64 requires libsmbclient.so.0()(64bit) but this requirement cannot be provided
uninstallable providers: libsmbclient0-4.6.5+git.32.af7a173b7a1-1.1.x86_64[oss]
libsmbclient0-4.6.13+git.72.2a684235f41-12.1.x86_64[oss_update]
libsmbclient0-4.6.7+git.38.90b2cdb4f22-3.1.x86_64[oss_update]
libsmbclient0-4.6.7+git.51.327af8d0a11-6.1.x86_64[oss_update]
libsmbclient0-4.6.9+git.59.c2cff9cea4c-9.1.x86_64[oss_update]
Solution 1: deinstallation of krb5-mini-1.12.5-16.1.x86_64
Solution 2: do not install plasma5-desktop-5.8.7.1-3.1.x86_64
Solution 3: break kio-extras5-17.04.2-2.1.x86_64 by ignoring some of its dependencies

บาง updates และ package installations ยัง throw odd wrench:

Additional rpm output:
Updating /etc/sysconfig/security...
Warning: running kernel does not support fscaps

(96/96) Installing: wicked-service-0.6.40-9.1.x86_64 ......[done]

Additional rpm output:
Failed to connect to bus: No such file or directory
Failed to connect to bus: No such file or directory
Failed to connect to bus: No such file or directory
Failed to connect to bus: No such file or directory

Output of coreutils-8.25-5.1.x86_64.rpm %posttrans script:
Please run mkinitrd as soon as your system is complete.

ในที่สุด 儘管 various issues we're all one happy family — sameness ของ kernel หมายถึง easy common(al) development นี่ make a lot of sense และจนถึงตอนนี้ stable และ robust พอที่จะ warrant serious focus และ investment New subsystems กำลัง develop ดังนั้นเราจะได้ more than just a tech demo เร็วๆ นี้

Windows Subsystem for Linux: รัน Linux Distros และ Apps บน Windows 10

Custom distros

หากคุณอยากใช้อย่างอื่นนอกจาก listed set คุณจะต้องเหนื่อย intellectual glands และ fingertips Microsoft release tool ชื่อ WSL-DistroLauncher ซึ่ง allows คุณทำ custom build ของคุณเอง นี่ complicated — think LFS ไม่มี easy way แต่จะ appeal ให้ distro owners และ developers แน่นอน

สรุป

WSL กำลัง flourishing nicely Slowly but steadily มันได้ additional meaningful functionality ได้ traction และ recognition ใน Linux community และเปิด useful possibilities ที่จะ benefit end user ในที่สุด Just think about it หาก developer สามารถ comfortably produce — และ test — solutions สำหรับ multiple operating systems pretty much at all once มี higher chance เราจะเห็น more cross-platform compatibility ผมจะไม่ rule out Microsoft Office running natively on Linux หนึ่งวัน หรือ entire Android ecosystem running on Windows

สำหรับผู้ที่ keen on ideology นี่ในทางหนึ่งคือ admission จาก Microsoft ว่า Linux เป็น real player ที่ deserves respect และ even better cooperation simple pragmatic non-emotional approach ทั้งหมด Microsoft ทำให้ง่ายขึ้น เพื่อดึงดูด talent และ develop solutions Better products everywhere The user wins big time ยัง early days แต่ผมเชื่อเราจะเห็น nice blending ของ operating systems ใน coming years เปิด range of possibilities ให้ customer ตอนนี้ get WSL และเริ่มเล่น 'Tis good and fun To be continued

Cheers

No