Latest News
Friday, February 26, 2016

Linux environment, how to streamline document system.img

Date: 2015-09-23    Views: 20060    press people: lishey_fanfanone hundred million Chilean mushrooms official micro letter
First, preparation 1, 2 virtual machine installation program download, download ubuntuiso file download http://pan.baidu.com/s/1c0hT57q3, ready to be modified system.img file Second, the installation ...
First, prepare
1, the virtual machine installer download
2, download ubuntu iso file download 
3, ready to be modified system.img file
Second, install the virtual machine
1 , download a virtual machine installation program, double-click to open, select the next step has been, of course, you can change the name of the virtual machine, the virtual machine installed, open it, click Create a new virtual machine

 

 
2. Click Next
       
3, select the downloaded ubuntu image file
       
4. Set the user name and password
      
5, set the virtual machine name and path work
       
6, disk capacity is set to touch, like modification, general default according to their needs, and click Next
       
7. Click Finish ubuntu virtual friends started running, start a little Mana, wait for the next friends
8, and then install VMware Tool , you're done       
Third, start to modify
Linux unpack command sudo Mount -o rw, loop  System .img  XX (XX is unpacked storage folder, preferably with a catalog), packaging command sudo umount  XX, delete the command rm, switch users administrator user command su, a user is unsuccessful when you switch command to switch when using sudo su command usage can be viewed on the Internet, said the charges did not talk much, look at how to use these commands right (normal user command character is $, the administrator is # )
1, VMware Tool installed, physical and virtual machines can transfer files, and create a new folder system in a virtual machine, a blank area of ​​the right desktop, choose New Folder name the system, into the system directory, and then the physical machine Lane system.img copied to virtual machine

     
      
 
2, in the system folder and then create a test  file, so unpacked system.img files stored in test folder easy to manage, and then the system blank folder, right select Open in Terminal
       
3, need to use the super administrator, and use sudo su command to switch users
       
       
           

    4, use the command to unpack it
       
       
5, using the unpack command without any error message, indicating a successful unpack it
        1 ) Test cd  into the test directory
        2 ) LS   View test files in the directory
        3 ) cd app  into the app directory, Brush bag apk stored in this directory
        4 ) LS or ls -l View app in the directory apk
               

               
6, of course, you can enter tes do not view the contents of a directory command
               
7, in the app directory, use the rm command to remove the built apk file
              
8, after the completion of streamlining back system directory, use the umount  command Test package after package is successful, do not see the newly generated system.img, because the new generation system.img covering the old system.img file, you can see to test directory no files
    
   
     9, then copy and paste the system.img file to the host physical machine is on, replace the original brush machine package system.img document can Note:      below describes how to use linux built apk Brush package, so stay tuned! !
  • Blogger Comments
  • Facebook Comments

0 comments:

Post a Comment

Item Reviewed: Linux environment, how to streamline document system.img Rating: 5 Reviewed By: pichratha