Linux DeployµÄ²Ù×÷°ì·¨¼°×¢ÖØÊÂÏî
Linux DeployµÄ²Ù×÷°ì·¨¼°×¢ÖØÊÂÏî
Linux DeployÊÇÒ»¿îÇ¿Ê¢µÄ¹¤¾ß£¬¿ÉÒÔ×ÊÖúÓû§ÔÚAndroid×°±¸ÉÏ¿ìËÙ°²ÅÅÖÖÖÖLinux¿¯Ðа棬ÈÃÓû§Äܹ»ÔÚÒƶ¯×°±¸ÉÏÌåÑéµ½ÍêÕûµÄLinuxϵͳ¡£±¾ÎĽ«ÏêϸÏÈÈÝLinux DeployµÄ²Ù×÷°ì·¨ÒÔ¼°×¢ÖØÊÂÏͬʱÌṩÏêϸµÄ´úÂëʾÀý£¬×ÊÖú¶ÁÕ߸üºÃµØʹÓÃÕâÒ»¹¤¾ß¡£
²Ù×÷°ì·¨£º
×°ÖÃLinux Deploy£ºÊ×ÏÈÔÚGoogle PlayÊÐËÁÖÐËÑË÷²¢×°ÖÃLinux DeployÓ¦ÓóÌÐò¡£×°ÖÃÍê³Éºó£¬·¿ªÓ¦ÓóÌÐò²¢ÊÚÓèrootȨÏÞ¡£
Ñ¡ÔñLinux¿¯Ðа棺ÔÚLinux DeployÖУ¬µã»÷ÓÒÉϽǵÄÈý¸öµã£¬Ñ¡Ôñ¡°Manage distributions¡±£¬È»ºóµã»÷¡°+¡±°´Å¥¡£ÔÚÁбíÖÐÑ¡ÔñÄãÐèҪװÖõÄLinux¿¯Ðа棬ÈçUbuntu¡¢Debian¡¢Arch LinuxµÈ¡£
ÉèÖÃLinuxϵͳ²ÎÊý£ºÑ¡ÔñºÃLinux¿¯Ðаæºó£¬µã»÷¡°Options¡±£¬ÔÚ¡°Distribution configuration¡±ÖÐÉèÖø÷Ïî²ÎÊý£¬Èç´ÅÅÌÓ³Ïñ¾Þϸ¡¢Swap¾Þϸ¡¢SSHЧÀ͵ȡ£
×°ÖÃLinuxϵͳ£ºÉèÖÃÍê³Éºó£¬µã»÷ÓÒÉϽǵÄÉÁµç°´Å¥£¬Linux Deploy½«×îÏÈÏÂÔØËùÑ¡¿¯ÐаæµÄÓ³ÏñÎļþ²¢×°Öõ½×°±¸ÉÏ¡£
Æô¶¯Linuxϵͳ£º×°ÖÃÍê³Éºó£¬ÔÚLinux DeployÖеã»÷¡°Start¡±°´Å¥£¬ÏµÍ³½«Æô¶¯£¬ÔÚÊÖ»úÖÕ¶ËÖÐÊäÈëÓû§ÃûºÍÃÜÂëµÇ¼Linuxϵͳ¡£
ÅþÁ¬Linuxϵͳ£ºÍ¨¹ýSSH¿Í»§¶Ë»òVNC¿Í»§¶ËÅþÁ¬µ½Linuxϵͳ£¬¾ÙÐнøÒ»²½µÄ²Ù×÷ºÍÉèÖá£
×¢ÖØÊÂÏ
×°±¸ÒªÇó£ºÈ·±£ÄãµÄAndroid×°±¸ÒѾroot²¢ÇÒÓÐ×ã¹»µÄ´æ´¢¿Õ¼äÓÃÓÚ×°ÖÃLinuxϵͳ¡£
ÍøÂçÅþÁ¬£ºÔÚ×°ÖúÍÉèÖÃÀú³ÌÖУ¬¼á³Ö×°±¸µÄÍøÂçÅþÁ¬Îȹ̣¬È·±£ÏÂÔغÍ×°ÖÃÀú³Ì˳Ëì¾ÙÐС£
ȨÏÞÖÎÀí£ºLinux DeployÐèÒªrootȨÏ޲ŻªÕý³£ÔËÐУ¬ÔÚʹÓÃÀú³ÌÖÐÐèÒªÉóÉ÷²Ù×÷ÒÔ×èÖ¹Ëð»µ×°±¸¡£
±¸·ÝÊý¾Ý£ºÔÚ×°ÖÃLinuxϵͳ֮ǰ£¬½¨Ò鱸·ÝÖ÷ÒªÊý¾Ý£¬ÒÔ·À·ºÆðÒâÍâÇéÐε¼ÖÂÊý¾Ýɥʧ¡£
¸üкÍά»¤£º°´ÆÚ¸üÐÂLinuxϵͳÒÔ»ñÈ¡×îеÄÇå¾²²¹¶¡ºÍ¹¦Ð§¸üУ¬²¢ÊµÊ±Î¬»¤ÏµÍ³ÒÔ¼á³ÖÕý³£ÔËÐС£
´úÂëʾÀý£º
# ×°ÖÃUbuntu 20.04 apt update apt install wget debootstrap proot -y mkdir ubuntu cd ubuntu wget https://github.com/meefik/linuxdeploy/releases/download/2.7/linuxdeploy-x86_64 mv linuxdeploy-x86_64 linuxdeploy chmod +x linuxdeploy ./linuxdeploy init ./linuxdeploy install -d ubuntu-20.04 -R http://ports.ubuntu.com/ ./linuxdeploy setenv -d ubuntu-20.04 LC_ALL C.UTF-8 ./linuxdeploy setenv -d ubuntu-20.04 LANGUAGE C.UTF-8 ./linuxdeploy setenv -d ubuntu-20.04 LANG C.UTF-8 ./linuxdeploy login -d ubuntu-20.04
µÇ¼ºó¸´ÖÆ
ͨ¹ýÒÔÉϲÙ×÷°ì·¨ºÍ×¢ÖØÊÂÏ¶ÁÕß¿ÉÒÔÀÖ³ÉʹÓÃLinux DeployÔÚAndroid×°±¸ÉÏ°²ÅŲ¢Ê¹ÓÃÖÖÖÖLinuxϵͳ£¬ÏíÊÜÍêÕûµÄLinuxÌåÑé¡£¼ÇµÃƾ֤ÏÖʵÐèÇóºÍ×°±¸ÇéÐΣ¬Ñ¡ÔñºÏÊʵÄLinux¿¯ÐаæºÍÉèÖòÎÊý£¬ÒÔ»ñµÃ¸üºÃµÄʹÓÃÌåÑé¡£×£Ô¸¶ÁÕßÔÚ̽Ë÷LinuxÌìϵÄÀú³ÌÖÐÈ¡µÃÀֳɣ¡
ÒÔÉϾÍÊÇLinux DeployµÄ²Ù×÷°ì·¨¼°×¢ÖØÊÂÏîµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡