Linux or android which is better. Installing Linux instead of Android

After which I decided to purchase a miracle of Chinese tablet manufacturing: a superpad. This tablet was taken as a toy for “picking around a little”, part-time, a reader, a game for pairs and a watch on a long journey... I’ll immediately note that I have two usb hard drive 500 GB and 1 TB, on which all the most important things for a fun life are stored, and they are divided into ntfs and ext4. And, naturally, the tablet does not see them.

Here's my volunteer

This is the first reason to dig deeper. After viewing 200 forum pages on xda-developers.com, certain

At this stage, all attempts to open this tablet have been shelved. Until the glorious time for the student - the session. And since during the session students do absolutely everything, as long as they are not in the subject, the fun night gatherings on the Internet on obviously bourgeois sites have resumed. And the brilliant idea came to put Orthodox Linux on this tablet, in my case - ubuntu.
What came out of this, see below.

It’s clear that you can’t just pick it up and install it... well, where did ours go...

We will need:

Let's look at the main stages android downloads and linux
1. Power on and boot ROM code execution Power on and boot ROM code execution
2. The boot loader The boot loader
3. The Linux kernel The Linux kernel
4. The init process The init process
5. Zygote and Dalvik console(bash, zsh...) / wm(kde, gnome...)
6. The system server Boot completed
7. Boot completed

As you can see, the differences start from the init execution stage.
It's the easiest thing to change.

I’ll write honestly, I thought that you could only use the Android init and that it was tightly screwed to the kernel. And even after receiving an example of a working ramdisk from another tablet, I didn’t think it would start...

ramdiska contents
bin dev etc home init init.rc lib linuxrc mnt newroot opt ​​proc root sbin sys tmp usr var
In /bin there is busybox, in /sbin there is switch_root with a link to it.
Init code from ramdisk from zt-180

#!/bin/sh echo Starting from initram image. Echo Waiting for SD-CARD wake up... sleep 3 echo "Mounting new rootfs" mount -t ext2 /dev/mmcblk0p2 /newroot && echo OK echo Hold on, switching root... exec switch_root /newroot /sbin/init echo hrm, have a shell instead exec /bin/ash

All that remains is to flash the ramdisk into memory (I used burntool under xp) and - voila, the boot stage. Yes, I flashed it instead of recovery, so for launch Linux You have to hold down the keys when starting.

So, the loading stage has been completed and you should be patient, since the console shows no signs of life, and everything loads quite slowly.

Setting up autologin for the first console
In /etc/init/tty1.conf replace the last line with exec /bin/login -f Yor_Login< /dev/tty1 >/dev/tty1 2>&1 then in your ~/.bashrc you can write commands that will start during automatic login.
We are fighting the X-server
For me it definitely didn’t work well with the touchscreen, xorg.conf and xterm... I removed the synaptic driver and put the following in ~/.xinitrc:
#!/bin/bash # $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $ # /etc/X11/xinit/xinitrc # # global xinitrc file, used by all X sessions started by xinit (startx) # invoke global X session script #. /etc/X11/Xsession xclock -geometry 50x50-1+1 & exec xterm -geometry 80x66+0+0 -name login
Fighting the work environment
I wanted to install kde because I really like the graphics rendering with the qt library. I’ll say right away: yes, it installed and started, but HOW...
First, I immediately set up autologin:
in /etc/kde4/kdm/kdmrc we find and change the following to suit ourselves
AutoLoginEnable=true # If true, auto-login after logout. If false, auto-login is performed only # when a display session starts up. # Default is false #AutoLoginAgain=true # The delay in seconds before automatic login kicks in. # Default is 0 AutoLoginDelay=3 # The user to log in automatically. NEVER specify root! # Default is "" AutoLoginUser=Login # The password for the user to log in automatically. This is NOT required # unless the user is logged into a NIS or Kerberos domain. If you use this # option, you should "chmod 600 kdmrc" for obvious reasons. # Default is "" AutoLoginPass=Password
and, as written, we do chmod 600 kdmrc in the console under root so that bad people don’t spy on our password.
Secondly, at the entrance the screen saver hung for a suspiciously long time, and I, having doubts, called startkde from the console. After a long and tedious display of all sorts of errors, the plasma finally loaded in netbook mode. Graphic effects are turned off, since we are sitting under a framebuffer, and in some places there are wild slowdowns, but still this is kde and it has loaded!
Fine-tuning everything to suit you
Each has its own, I haven’t optimized it yet, but there is a lot to be done: speed up loading, optimize the workspace. I’m looking towards a more lightweight wm – e16 – but haven’t made it the main one yet. You also need to calibrate the touchscreen, fortunately there is already a virtual keyboard in kde.
I'm looking towards openbox + razor-qt.
"Let's enjoy!"
Results

I connected the debian 6 repositories. The sound does not work, the touch and workspace are not configured. There are really not enough kernel modules, so I’ll try to assemble and screw it on...
Many services and policies have been knocked down, the Internet can only be accessed as root, but the Internet is configured and that’s good news.

Ps: Yes, without kernel modules, only fat and ext2 partitions are connected, which is not encouraging.
A usb keyboard + mouse will be very valuable when debugging and configuring.

Now about what can be used in the process
ramdisk from zt-180
burntool
Ramdisk repacking kit. The binaries need to be placed in your PATH.

Is very popular, especially among system administrators and developers software. Huge number various devices works under his control. Unfortunately, there are virtually no mobile devices, such as a tablet, that support Linux natively. On at the moment Only one model has been released, running on Ubuntu. But buying it may not be so easy, since it is not available in every country.

If desired, you can install Linux on your tablet, replacing Android.

Naturally, many may wonder whether it is possible to install Linux on a tablet that originally runs Android instead of this OS. Officially, both Android and Linux have the same kernel, but, unfortunately, Linux will not work fully on an Android tablet. Developments are underway in this direction, and many programmers are actively working to solve the problem, but the reality today is that you need to be sophisticated to run a Linux distribution on an Android tablet.

In this material, we will provide an overview and step-by-step steps on how to install a Linux distribution on your tablet. We will tell you what conditions need to be met, how to prepare your device, and also tell you about the features of the procedure.

What you will need:

  • Android tablet.
  • SD card with a capacity of 3.5 GB or more.
  • root access
  • a complete backup of all data for one hundred percent certainty of a safe outcome. you move large files and perform many operations, so this is simply necessary.

IMPORTANT. DISCLAIMER. Despite the fact that this process does not cause any damage, the site's editors are not responsible if something happens to your Android device during the installation or launch of Ubuntu.

Make sure you have superuser rights. On almost every device you can do this by checking if you have the Superuser app. If you don't have root rights, you can get them. To do this, find out the instructions specific to your device.

BusyBox libraries will help you interact with the Android system. You can download the installer from Play Store(or Android Market), by going here (https://play.google.com/store/apps/details?id=stericson.busybox) and downloading it. Go to the BusyBox Installation tab and click the Install button. Once the utility is installed, you can move on to the next step by installing a terminal emulator.

Step 2: Install the terminal emulator and check that it works correctly.

The most popular terminal emulator for Android is on this page (https://play.google.com/store/apps/details?id=jackpal.androidterm) at Play Market. By following the link, download it, install it on your tablet and run it.

After the application window opens, enter the word “su”. The utility will ask you to provide root access, and you must give it because the utility runs system scripts that we will later use to start Ubuntu.

To check if the BusyBox terminal and libraries are working correctly, enter the command “busybox arping –help”. If the terminal gives you a text with a lot of options, such as -f -q -b, everything works. If not, check if your phone is rooted, if BusyBox was installed correctly, and if the terminal has permissions. If everything is in order, you can continue.

If you have completed all the necessary steps in steps 1 and 2, there is no need to worry. The next few steps are very simple. Start by connecting your phone to your computer. You must enable the USB drive, which will allow you to open your SD card on the computer (most of you will know this when you have moved music and other files from your computer to Android).

Next, you need to create a folder called “Ubuntu” on the SD card. Then you should download this one (https://sourceforge.net/projects/linuxonandroid/files/Ubuntu/10.10/ubuntuV5-image.zip/download) and this one (https://sourceforge.net/projects/linuxonandroid/files/Ubuntu /10.10/ubuntuV5-script.zip/download) files. These are ZIP files that contain 2 important things: the launch script and the file Ubuntu system. If you open the first ZIP archive, you will find the IMG file, and if you unzip the second file, you will find the SH file.

Unzip both archives and move the files to the “Ubuntu” folder. You should now have two files in the folder. Most of the necessary processes have been completed.

Step 4: Start Ubuntu System

Go back to your terminal application and type "su" again, then write "cd/mnt/sdcard". To make sure everything works, try typing "ls" and see if you can recognize your folders (you should be able to find the Ubuntu folder too).

To start your Ubuntu, type "cd /ubuntu" followed by "sh ubuntu.sh". This will cause many processes to run that will try to install your system. Next, the utility will ask you to select a screen resolution. Enter it in width x height format, for example 1280 x 720. For more better performance To prevent the tablet from slowing down, choose a lower resolution. Now everything is done.

The Ubuntu system is working, but we cannot see it. To see the GUI, you need to use the VNC protocol client. We can download any of them from the Play Store.

Run the program and enter the following data:

  • login: user
  • password: ubuntu
  • address: localhost

ATTENTION. If you don't want to damage your Ubuntu system, always type "exit" in the terminal before shutting down or turning off your tablet.

Conclusion

We told you about the most working and least problematic way to install Linux on a tablet. If you want to run the system fully, instead of Android, you need to be a programmer and at least be able to reprogram partitions in case of any errors.

Were you able to run Linux on your tablet? Tell us in the comments.

Televisions have long ceased to be a simple screen for broadcasting images from an antenna. Now they are a rather complex and multifunctional device. For a long time now on TV you can view various sites, include videos in open access and even play games. For this, almost everyone modern TVs present Smart technology TV. This technology is based on existing OS. These can be both existing operating systems and manufacturers’ own developments. Of the most popular operating systems, two can be distinguished: Linux and Android.

Linux OS

This operating system for Smart TV is a remake of the OS of the same name for PCs. Development Sony Allows you to watch videos and surf the Internet with high quality. It is also possible to install additional applications from the available catalog. The downside is that, unlike a similar system on a PC, this OS does not have the same flexibility. On such a Smart TV you cannot install third-party applications and various extensions not provided by the developer. There is also a problem with updating applications. However, this can also be a plus, since closed code allows you to protect users from various kinds of interventions and risks of incompatibility and incorrect operation.

Android OS

This system is the most popular because it is easy to learn and universal. On a TV with this OS you can install almost any application and run many games. The list of applications is the same as on modern smartphones. Both operating systems are almost the same and are interchangeable.

The downside may be certain risks that arise if the user decides to install applications from third-party developers. And, although the system warns about possible instability when installing applications not provided by the manufacturer, users often carry out this procedure and encounter various kinds of difficulties.

Android OS is a system with open source, which creates a lot of opportunities for attackers. Installation third party applications At best, it may result in the fact that the installed option will not work correctly or will not work at all. In the worst case, the TV may simply turn into a “brick”, losing its functionality. In this situation, only the help of specialists can come to the user’s aid.

Which is better?

Both Linux and Android systems provide the user with a lot of possibilities, turning the TV into a kind of computer with a lot of options. When choosing a TV OS, the user should decide what is more important to him: versatility or reliability.

Android OS provides the owner with much more opportunities than Linux, however, these opportunities are accompanied by risks, especially for users unfamiliar with the world of technology. Linux on the TV, in turn, allows the owner to enjoy all the main advantages of Smart TV, without the risk of catching malware or damage the TV. However, many features are limited by developers, and some options are not available to users of this particular operating system.

Smartphone or Android tablet- this is incredible universal device, which can be used in various ways. Today we'll show you how to run a regular desktop version of Linux on Android - it's very simple, doesn't require root, and doesn't interfere with our Android in any way.


There are several ways to install Linux in the form of different distributions (for example, Ubuntu). We will, however, show the easiest way to quickly install a basic, raw version of Debian-based Linux on our smartphone or tablet without root. We will also show you how to install programs such as text editor, graphic editor and web browser.

The operation is completely safe, Android files not changed. Installing Linux does not affect our original mobile system on your smartphone, Linux will simply be another application on your phone/tablet that we can remove at any time. All we need is about 600 MB free space in internal memory phone.

The entire installation is automated thanks to the Debian Noroot application. It allows you to instantly download all the necessary files and install them on Android. Linux will appear as another Android application and can be launched or closed at any time.

Download Debian Noroot

We download the application from the above link. The application itself takes up about ten megabytes. Play Store but later we still download about 200MB Linux files, so be sure to connect to the Internet via Wi-Fi.

After downloading the application, we will launch it. A message will appear stating that the app will download the mentioned 200 MB and after unpacking it will take up about 600 MB in the phone memory. We make sure once again that we have enough free space on the phone and we connect to the Internet via Wi-Fi. After clicking the OK button, the application will also ask you to calibrate the gyroscope - we must place the phone on a flat surface and wait for the operation to complete.

Debian Noroot will now download the necessary files and then automatically extract them - this may take anywhere from a few minutes to several minutes depending on the speed of your internet connection and how quickly the files are extracted on your phone. Once the operation is completed, Linux will start automatically.

Using Linux on Android

This is a very simple version of Linux, devoid of any additional software - we only have a working system, the rest must be installed ourselves.

You move the mouse cursor by moving your finger across the screen. Tapping on the screen simulates a left-click on the mouse. The keyboard is pulled out using physical button“Cancel” on the phone cover. If we have virtual buttons instead of physical ones, we need to push them by moving our finger from the top edge of the screen down.

Now we can update system packages and move on to installing the most necessary programs.

Update system files and installation of programs

We won't find here a small store with applications like Ubuntu - we have to install everything using the terminal and the appropriate commands. However, it is not difficult. On your desktop you will find the "Root Terminal" icon - we launch it.

A terminal window will appear - now we expand the keyboard and enter the following command:

apt-get update

We confirm this with the "Enter" key on virtual keyboard. This will allow you to download and install the appropriate system packages necessary for the subsequent installation and launch of web browser programs.

After the update, we can proceed to installing programs. We do this using a command similar to the one above and also enter the application package name. For example, to install the IceWeasel browser (a Firefox-based browser), enter the following command:

apt-get install iceweasel

After confirming the terminal input, the terminal will connect to the server and begin downloading and installing the package. You will need to confirm with the letter “t” (“Yes”) that you want to install - when this message appears, you need to push out the keyboard again, enter “t” and press “Enter”.

We do the same with the installation of other programs such as office suite LibreOffice (apt-get install libreoffice) and graphical Gimp editor(apt-get install gimp). Similarly, we install other programs by providing the package name. Names can be found in Debian Wheezy package repository- all programs are divided into categories, and for each of them we will find a description and a name to enter.

Once installed, they will appear in the local Start menu, which is available in the top left corner. Applications that go there are immediately placed in the appropriate category. For example, the Ice Weasel web browser can be found in the Internet section.

Convenient using Linux on Android

Of course, using all this with a little touch screen and the touch keyboard is not convenient. However, it is worth remembering that Linux on Android supports devices connected via Bluetooth to the phone. So we can connect wireless keyboard And bluetooth mouse to Android in the phone settings, and Linux will automatically detect these devices after startup and allow you to manage the system with them.

We can go further and, for example, at Allegro or at your local computer store, buy hdmi cable, which will allow you to connect your phone or tablet to your monitor or tablet. We'll need a cable with a micro USB connector on one side and HDMI on the other (we'll also have to make sure our monitor supports this input, or maybe it's only equipped with DVI). The cost of such an adapter is about 15 zlotys. We then have a real mini-computer which we control with a keyboard and mouse and the image is displayed on a monitor or TV.

To exit Linux, simply open the menu in the top left corner and select the "Exit" option. The system will be closed and we will immediately return to Android. To restart Linux, simply select the "Debian" icon from the list of applications installed on your phone.

Hello, I have a mini PC ug 802, how can I install Linux on it? teltar

This is a very interesting topic for me, friends, since I professionally administer Linux servers. On servers it’s interesting, but for me it’s already everyday and ordinary. And here is the installation Linux distributions for devices with ARM architecture - this is an order of magnitude more interesting.

What is the difference between a computer and a smartphone or tablet?

In fact, conceptually, the difference is small - both mobile and desktop devices, or even servers, are made according to the same principles. However, for mobile devices a different processor architecture is used. Desktop CPUs are designed on x86 or amd64 architectures. And most mobile devices have a processor based on ARM architecture. Historically, this is due to the fact that such processors have significantly lower power consumption, which is a vital necessity for mobile devices.

What OS can be installed on mobile devices?

So, all programs, including the operating system, must be developed specifically for this architecture in order to work on this hardware. Therefore, ordinary Linux versions, installed on desktops or servers are not suitable here. Fortunately, there are many distributions and versions for this architecture. Starting with the notorious Android, which most smartphones are equipped with, and ending with exotic distributions, like the specialized Backtrack (now Kali Linux). But of greater interest, of course, are some more well-known distributions.

What is Android?

Android is an operating system Linux based, developed by Google for mobile devices. The world's most popular mobile operating system. It should be understood that in fact LInux is just the kernel of the operating system. And many operating systems are built on its basis, and Android is just one of them.

The kernel is the basic functionality that allows you to use all devices and options of the hardware platform - that is, drivers and device management. Also included in the core are some basic programs and utilities command line. The fact is that in the Linux family (this is the meaning most often meant - a family of operating systems based on this kernel, and not the kernel itself) - the graphical shell is a separate part, its own level of abstraction.

And the minimum configuration of these OSs is precisely without a graphical shell, just a text command line interface. This allows these OSes to be embedded in the most unusual places. For example in network equipment, machine tools, computers and other complex devices, for example in airplanes and cars. Even in your washing machine Something similar can be installed in a microwave too :)

This is an Android device. Accordingly, Android should be installed by default. Which, in fact, is Linux. But with some serious restrictions. Installing some other Linux can significantly expand the capabilities of a mobile device. The possibilities of use become virtually limitless. Well, imagine using a mobile phone as a server! Many tools are becoming available. If it is a tablet, by connecting peripheral devices to it via an OTG cable, you can use it as full-fledged computer! For what? That's another question. I hope our reader will share his ideas in the comments.

How to install Linux on an android device?

So, installation.

There are two options - you can do it full installation, as they say - on “hardware”. This is actually a flashing of the device. At the same time, we lose the native functionality of the device provided by the manufacturer. And this may not be at all what we wanted. For example, the UG 802 mini-computer, which our reader is interested in, is a device designed to expand the functionality of televisions. Because it can be inserted directly into the HDMI port of any TV, turning it into Smart.

Fortunately, there is a second way to install Linux - right inside the device's main operating system, in this case Android case. This allows you to run a so-called chroot environment inside Android. In this case, you will receive two related operating systems running in parallel on one core - Android. And you can switch between them.

This approach is convenient for smartphones and tablets, but may not be suitable for the UG 802. In this case, you may need to flash the required operating system. And this is already some risk that the device can be damaged.

Unfortunately, I have no experience with such experiments. But there is enough information on the Internet about this. Study, try to install.

Therefore, I will provide a few links from which you can begin your acquaintance with the world of mobile device hacking :)

Who are hackers?

Yes, yes, don’t be surprised, this is exactly hacking - non-standard interference in the operation and design of systems and programs, changing them and expanding functionality. This is precisely the original meaning of this word. And a hacker is not a cracker or a virus writer, as most people are used to thinking. This is first and foremost a researcher. Yes, he breaks systems, reveals what was not intended to be opened, but he does this with the goal of learning, not harm.

https://xakep.ru/2012/10/22/android-tablet-linux-install/ - an article about installing Linux on smartphones in the oldest magazine, which is precisely a reflection of the essence of hacking.

https://habrahabr.ru/post/221543/ - Habr, an equally old and even more famous resource. And the article here is fresh, and describes in great detail the experience of installing Arch Linux on top of Android, in the form of a chroot environment.

https://geektimes.ru/post/44220/ - Giktimes - a site from the creators of Habr, and I found it on it detailed manual By installing Debian over Android on a smartphone. The article, although very old, touches on fundamental things that need to be understood before embarking on such an operation. Even if this does not help you establish, it will help you gain knowledge, without which further development of the topic and solution to the problem is impossible. And after studying such articles, you will feel more confident and will be able to search for information on the topic more specifically, on specific issues that will need to be addressed during installation.

For example, these articles on the topic are probably not the only ones on the above-mentioned sites. You can always try to look for more articles about this on such specialized resources. I found and looked at a couple of topics about installing Linux on mobile devices on 4pda.ru like this, For example

That's all for today. But it may always happen that I want to continue the banquet of this topic :)

If problems arise (and they will arise with a 99% probability :)), you can also ask questions here, we will collect information, solve problems together, I am also very interested in this.

Share