Install Full Linux on ANY Android (No Root) + PC Gaming | Hardware Acceleration

orailnoor www.youtube.com

ملخص موجز

يشرح الفيديو كيفية تحويل هاتف Android قديم إلى محطة عمل Linux كاملة، وجهاز تطوير، وحتى جهاز ألعاب Windows، كل ذلك بدون الحاجة إلى عمل روت. فيما يلي النقاط الرئيسية:

  • تشغيل بيئة سطح مكتب Linux كاملة (XFCE) على Android باستخدام Termux و Termux X11.
  • استخدام نواة Linux الخاصة بنظام Android لتشغيل بيئة مساحة مستخدم سطح المكتب Linux، مما يوفر أداءً أفضل من المحاكاة.
  • القدرة على تطوير التطبيقات باستخدام Visual Studio Code وتشغيل خادم Python مباشرة على الهاتف.
  • تشغيل ألعاب Windows باستخدام Winlator، وهو تطبيق Android يسمح بتشغيل تطبيقات Windows x64 باستخدام Wine وطبقات الترجمة.
  • خطوات مفصلة لتثبيت وتكوين Termux و Winlator لتحقيق الأداء الأمثل.

تشغيل Linux كامل على هاتف Android

يوضح الفيديو كيف يمكن لهاتف Android عمره 6 سنوات تشغيل توزيعة Linux لسطح المكتب كاملة. يمكنه القيام بمهام متعددة، وكتابة التعليمات البرمجية في Visual Studio Code، وتشغيل خادم Python، وحتى تشغيل ألعاب AAA PC. عند توصيله بشاشة أو جهاز كمبيوتر، يمكن استخدامه على شاشة أكبر تمامًا مثل سطح المكتب العادي. والأفضل من ذلك، أن كل شيء يعمل بدون روت. هذا ممكن من خلال تشغيل XFCE على نظام Android باستخدام Termux و Termux X11. هذا ليس محاكاة؛ يستخدم Android بالفعل نواة Linux، لذلك يتم استخدام نفس النواة لتشغيل بيئة مساحة مستخدم Linux لسطح المكتب.

تجول في سطح مكتب XFCE

يعرض الفيديو بيئة سطح مكتب Linux كاملة، وهي XFCE تعمل على نظام Android باستخدام Termux و Termux X11. يفتح Firefox مواقع الويب في وضع سطح المكتب الكامل، ويعمل الصوت أيضًا. نظرًا لأن هذا هو XFCE، فإنه يتضمن مدير الملفات Thunar. يمكن للمستخدم تصفح أدلة Linux بشكل طبيعي ويمكنه أيضًا الوصول إلى وحدة تخزين Android من داخل هذه البيئة، مما يجعلها تبدو متكاملة بشكل صحيح.

اختبار تطوير VS Code و Python

يتم عرض Visual Studio Code قيد التشغيل مباشرة على الهاتف، وقد تم تثبيته باستخدام مستودع مستخدم Termux (TUR). تم تثبيت Python أيضًا، ويتم تشغيل خادم Flask صغير. يمكن الوصول إلى هذا الخادم مباشرة من متصفح Android، مما يثبت أن هذه ليست مجرد بيئة تجريبية ولكن يمكن استخدامها للتطوير الفعلي. يأتي مع جميع أدوات Linux الأساسية التي تتوقعها، ويمكن تثبيت التطبيقات مباشرة من الجهاز باستخدام أوامر الحزم القياسية. على الرغم من أن Termux لا يدعم snap أو flatpack، إلا أن TUR يوفر الوصول إلى العديد من تطبيقات سطح المكتب. يمكن للمستخدم البحث عن حزمة باستخدام pkg search متبوعًا باسم التطبيق وتثبيته باستخدام pkg install متبوعًا بالاسم.

الألعاب مع Winlator

بعد تثبيت Wine لتشغيل تطبيقات Windows، واجهت ألعاب AAA ثقيلة أعطالًا. تم التبديل إلى Winlator، وهو تطبيق Android يسمح بتشغيل تطبيقات Windows x64 باستخدام Wine وطبقات الترجمة. يقوم بإنشاء حاوية تعتمد على Linux ويشغل برنامج Windows بداخله. يتم عرض Deadpool قيد التشغيل على الهاتف، مما يثبت أنه قابل للعب.

دليل التثبيت (خطوة بخطوة)

لتثبيت Linux على Android، قم أولاً بتنزيل Termux و Termux X11 من F-Droid. لا تستخدم إصدار متجر Play. بعد التثبيت، افتح Termux وقم بتشغيل الأمر termux-setup-storage ومنح إذن الوصول إلى وحدة التخزين. بعد ذلك، في خيارات مطور الهاتف، قم بتعطيل قيود العمليات الفرعية لضمان تشغيل كل شيء بشكل صحيح. في Termux، قم بتحديث وترقية الحزم باستخدام apt update و apt upgrade. قم بتثبيت Git باستخدام apt install git. استنسخ مستودع GitHub من خلال تشغيل git clone متبوعًا بعنوان URL للمستودع. انتقل إلى الدليل المستنسخ، واجعل البرنامج النصي للتثبيت قابلاً للتنفيذ باستخدام chmod +x متبوعًا باسم البرنامج النصي، وقم بتشغيله باستخدام ./ متبوعًا باسم البرنامج النصي. يتيح لك البرنامج النصي اختيار بيئة سطح المكتب. تحدد الأجهزة التي تعمل بمعالج Snapdragon تلقائيًا برنامج التشغيل مفتوح المصدر Turnip لتسريع الأجهزة. بالنسبة لأجهزة MediaTek أو Exynos، سيعود إلى عرض البرامج، مما يجعل بيئات سطح المكتب الأخف مثل XFCE أو LXQT أفضل. يستغرق التثبيت حوالي 7 إلى 8 جيجابايت من التخزين. بعد التثبيت، قم بتشغيل البرنامج النصي للبدء لبدء تشغيل Linux. تأكد من فتح Termux X11 في الخلفية قبل بدء تشغيل Linux.

إعداد Winlator

لتشغيل الألعاب، ابدأ بتثبيت Winlator من صفحة GitHub الرسمية الخاصة به. افتح التطبيق وأنشئ حاوية جديدة. اختر X64 للهندسة المعمارية. ضمن الرسومات، حدد Turnip إذا كان جهازك يحتوي على وحدة معالجة رسومات Adreno، وإلا فاختر Virgl. بالنسبة إلى DirectX Wrapper، حدد DXVK. أخيرًا، اضبط الدقة على 1280 × 720. عند فتح الحاوية، يتم تعيين محرك الأقراص D داخل Winlator إلى مجلد التنزيلات في Android. ضع ملفات اللعبة هناك وقم بتثبيتها بشكل طبيعي. إذا كانت لعبتك مضغوطة، فاستخرجها باستخدام Android أولاً بدلاً من داخل الحاوية.

الخلاصة

يوضح الفيديو كيفية تحويل هاتف Android عادي إلى جهاز سطح مكتب وظيفي قادر على تشغيل Linux والتعامل مع أعمال التطوير الحقيقية وحتى تشغيل ألعاب Windows PC. يعمل هذا بدون روت، وبدون تعديل النظام، وبدون وميض أي شيء. إنه ببساطة يستخدم أساس Linux الخاص بنظام Android بالطريقة التي كان من المفترض أن يتم استخدامه بها. على الرغم من أنه لن يحل محل جهاز كمبيوتر متطور، إلا أنه بالنسبة للتطوير أو التجريب أو تعلم Linux أو حتى الحوسبة المحمولة، فإن هذا الإعداد قوي بشكل مدهش.

Summarize any YouTube video in seconds

Get summaries like this one for any video, in your language, with the free Summ app.

Download on the Apple Store
Get it on Google Play

Transcript

YouTube Transcript Generator

0:00 Today, I have a 6-year-old Android phone, and right now it's running a full desktop Linux distribution. I can multitask, write code in Visual Studio Code, run a Python server, and even play AAA PC games. If I connect it to a monitor or a PC, I can use it on a bigger screen just like a normal desktop. And the best part, everything works without root. So, how is this possible? Let me walk you through it. Right now you're looking at a full Linux desktop environment. This is XFCE running on top of Android using Termox and Termox X11. And this part is important. This is not emulation. Android already runs on a Linux kernel. So we're simply using that same kernel to run a desktop Linux user space

0:46 environment. That's why performance is much better than you would expect. Here's Firefox opening websites in full desktop mode. Audio works as well which normally does not work in a default term setup. Since this is XFCE, we get the Thunar file manager. I can browse Linux directories normally and I can also access Android storage from inside this environment. So it feels properly integrated. Now let's test something practical. This is Visual Studio Code running directly on the phone. I installed it using the Termox user repository, also known as TUR. I've installed Python as well. And here I'm running a small Flask server. And yes, I can access that server directly from the Android browser. That means this isn't just a demo environment. You can

1:32 actually develop inside it. It comes with all the essential Linux tools you'd expect. You can install applications directly from the terminal using standard package commands. Since this runs inside termox, we don't have snap or flatpack. But tur gives us access to many desktop applications. For example, I can search for a package using pkg search followed by the application name and install it using pkg install followed by the name. That's how I installed Blender, Visual Studio Code, and Python. The terminal behaves exactly like a regular Linux system. You can manage files, install dependencies, run servers, compile programs. Everything works as expected.

2:18 Typing is also practical. In landscape mode, the onscreen keyboard may cover a large portion of the screen, but rotating the phone adjusts the layout automatically, making it much easier to work. If you connect a physical keyboard, it feels even closer to a real desktop experience. Now, let's push it further. I first installed Wine to run Windows applications. It worked fine for lighter software. But when I tried installing heavier AAA games, it started crashing. So I switched to Winlater. Winlater is an Android application that allows you to run Windows x64 applications using Wine and Translation layers. It creates a Linux- based container and runs Windows software inside it. And this is Deadpool running on my 6-year-old phone. Is it perfect? No. Is it playable? Yes.

3:04 So this phone is now acting as a Linux workstation, a development machine, and even a Windows gaming device, all without root. But performance depends heavily on your processor. Now let's talk about installation. First, download two applications, Termox and Termox X11. Download both from FDroid. Do not use the Play Store version. After installing them, there are two important things you must do before starting. First, open Termox and run the command termox- setup- storage. This will ask for storage permission. Allow it so the Linux environment can access your internal storage. Second, go to your phone's developer options and disable child process restrictions. Some devices

3:51 limit background processes and that can break the Linux session. Disabling this ensures everything runs properly. Now, go back to Termox. First things first, we need to make sure everything is up to date. Go ahead and type a update and upgrade. Hit enter and just let it do its thing. After that, install git by typing apt install git. Once Git is installed, next head down to the description and click the link to my GitHub repo. Once you're there, copy the URL. Then go back to your terminal, type git clone, add a space, and paste the link. Press enter to clone the

4:38 repository in Termix. After it finishes downloading, type ls to see the folder. Then move into the cloned directory using the change directory command. Inside that folder, you'll see the installation script. Before running it, make it executable by typing chode +x followed by the script name. Run it by typing dot slash followed by the script name. Now the script gives us the option to choose our desktop environment. If you have a Snapdragon device, you're in a better position. Snapdragon processors use adreno GPU and there's an open- source driver called Turnip specifically built for Arduino. My installation script automatically detects Snapdragon devices and enables turnip for hardware

5:23 acceleration. If you're using MediaTek or Exynos, the setup will still work, but it will fall back to software rendering. In that case, it's better to use lighter desktop environments like XFCE or LXQT and avoid heavy 3D gaming. If your device supports hardware acceleration and has more than 8 GB of RAM, you can experiment with heavier desktop environments. If your device relies on software rendering, choose XFCE or LXQT for better stability. In my case, even though my phone supports hardware acceleration, I chose XFCE because it's an older device and XFCE was the most stable during testing. Installation takes around 7 to 8 GB of storage. So, make sure you have enough

6:09 space and keep your screen awake during the process. When the install finishes, it drops two scripts into your home folder. One to start it and one to stop it. Type cd to go home. From here, just type dot slash then the start script and hit enter to boot up Linux. Before starting, make sure Termix X11 is open in the background. Now, open Termox X11. Within seconds, your full Linux desktop will appear. And there we go. We've successfully installed Linux on top of Android. And best of all, we've got full hardware acceleration. If you want Linux to start automatically

6:55 every time you open Termox, you can add the start command inside your Bash RC file. For gaming, start by installing Windlater from its official GitHub page. Once it's installed, open the app and create a new container. When it asks for the architecture, choose X64. Next, under graphics, select turnip if your device has an adreno GPU. If not, choose Ver instead. For the direct Xrapper, select DXVK. And finally, set the resolution to 1280x 720. This usually gives you better and more stable performance on most phones.

7:41 When the container opens, the D drive inside Winlater maps to your Android downloads folder. Place your game files there and install them normally. If your game is compressed, extract it using Android first instead of inside the container. It's much faster that way. So, that's it. This is how I turned a normal Android phone into a functional desktop machine capable of running Linux, handling real development work, and even playing Windows PC games. And the most impressive part is that this works without root, without modifying the system, and without flashing anything. It's simply using Android's Linux foundation the way it was meant to be used. Now, is it going to replace a high-end PC? No. But for development, experimentation, learning Linux, or even

8:27 portable computing, this setup is surprisingly powerful. If you try this on your device, let me know your processor and how it performs. I'm especially curious how different chipsets handle hardware acceleration.

Share

YouTube Video Summaries