Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
0
votes
2
answers
1115
views
Is it possible to run a Linux server distro on an old phone?
I have an old Xiaomi mi 9 Lite (pyxis) with a custom android rom installed. The CPU is the Qualcomm Snapdragon 710 ([all specs][1]) I've already discovered [Ubuntu Touch][2], but it comes with a desktop environment and my Phone is not suported. I also looked at [Ubuntu Server for ARM][3] but can't f...
I have an old Xiaomi mi 9 Lite (pyxis) with a custom android rom installed.
The CPU is the Qualcomm Snapdragon 710 (all specs )
I've already discovered Ubuntu Touch , but it comes with a desktop environment and my Phone is not suported.
I also looked at Ubuntu Server for ARM but can't find a way to use that.
Arch Linux ARM isn't supported by the processor.
Maybe interesting for more research would be Renegade Project which was able to get Windows 11 running on a Smartphone with UEFI.
Do you have any idea how to use my old phone as a homeserver? I'm happy to learn anything that goes in the right direction, even if it's just a small step towards a solution.
I have a lot of time for the project, but I'm a beginner, so if I have to create a own ROM I'd like you to help me with good learning sources.
user566665
(17 rep)
Mar 25, 2023, 12:10 PM
• Last activity: Nov 24, 2024, 12:53 AM
2
votes
0
answers
672
views
How to sync contacts between a GNU Linux desktop and an Android smartphone?
I currently use Google Contacts to manage my contacts on Android and PC (web app). But I'm trying to get rid of Google for FOSS solutions (I already replaced Gmail and Google Agenda). The first step would be to export Google Contacts data and import the data into a FOSS Android contact management (C...
I currently use Google Contacts to manage my contacts on Android and PC (web app). But I'm trying to get rid of Google for FOSS solutions (I already replaced Gmail and Google Agenda).
The first step would be to export Google Contacts data and import the data into a FOSS Android contact management (CM) app (e.g. Fossify Contact, OpenContacts, ConnectYou).
Then find a way to sync the Android CM app with a GNU Linux CM app (preferably GNU Emacs) and be able to populate either the Mobile or the Desktop app continuously.
I'm a complete beotian and don't understand how contact sync works. I read that CardDAV protocol should be used (I didn't find alternatives), either with (e.g. radicale or xandikos) or without a server (e.g. DecSync CC + Syncthing). I would prefer to avoid using a server, unless it is hosted by my smartphone on Android. Ideally, the solution would use Syncthing, which I already use for synching computers through my smartphone.
I wasn't able to find tutorials on how to sync a FOSS Android CM app (i.e. not Google Contacts) with a Linux CM app (preferably GNU Emacs). Or advice on which would be the best (easiest to set up) combo (FOSS Android CM + synchronizer/server)...
crocefisso
(193 rep)
May 28, 2024, 05:53 PM
4
votes
2
answers
2318
views
How to get GPS data from Android phone to Debian?
I want to use my phone as a GPS receiver on Debian. I can connect the phone via usbc and wifi, but I have no Bluetooth on the pc. Anyone can explain how to get GPS data from the phone? The best thing would be have it recognized as a GPS receiver
I want to use my phone as a GPS receiver on Debian. I can connect the phone via usbc and wifi, but I have no Bluetooth on the pc.
Anyone can explain how to get GPS data from the phone?
The best thing would be have it recognized as a GPS receiver
Kodeeo
(241 rep)
Jun 1, 2019, 03:50 AM
• Last activity: May 28, 2024, 02:46 AM
0
votes
0
answers
1590
views
Unisoc T606 smartphone
Oukitel WP23Pro specs: https://www.gsmarena.com/oukitel_wp23pro-12650.php This has to be the hardest platform I come across for unlocking bootloader and rooting. 1. There is no downloadable firmware, so I don't know how to extract the boot.img and vbmeta-sign.img from the phone, so I can't unlock th...
Oukitel WP23Pro specs: https://www.gsmarena.com/oukitel_wp23pro-12650.php
This has to be the hardest platform I come across for unlocking bootloader and rooting.
1. There is no downloadable firmware, so I don't know how to extract the boot.img and vbmeta-sign.img from the phone, so I can't unlock the bootloader and install TWRP etc.
2. Looking at the WP23Pro's little brother WP23, which has a downloadable pac images you can flash, extracting boot and vbmeta-sign.img from. You will find Manufacturer used its own OEM key. So I assume it's the same in WP23Pro version two.
3. I have tried every known: fastboot oem unlock, fastboot flashing unlock commands for unlocking the bootloader, inkluderad oem get_identifier_token and using the key in : ./signidentifier_unlockbootloader.sh XXXXXX rsa4096_vbmeta.pem signature.bin, and trying to flash the key:
fastboot flashing unlock signature.bin /
fastboot flashing unlock_bootloader signature.bin /
fastboot flashing --force unlock signature.bin
Nothing I do seems to work.
So how can I root existing firmware or flash a prerooted GSI?.
SamirOnof
(1 rep)
Nov 25, 2023, 06:14 AM
0
votes
1
answers
45
views
Would it be feasible to create a script that can right click the mouse at a very specific location when an even more specific number gets generated?
I'm aware of a program that can simulate a right-click at specific coordinates on my display at any given interval. However, I'm wondering if it's possible to write a script that can perform a right-click at a specific position on my display when a very specific number is generated as a result of th...
I'm aware of a program that can simulate a right-click at specific coordinates on my display at any given interval.
However, I'm wondering if it's possible to write a script that can perform a right-click at a specific position on my display when a very specific number is generated as a result of the first right-click?
For example, this website generates temporary phone numbers, which can also be purchased if you care to. After ten seconds or so, you can right click to have another five, ten digit phone numbers generated. Is there a way to have a script recognize when an exact ten digit number is generated, even if its very unlikely that the number will ever be generated?
Brass tacks is I'm trying everything I can to get an old phone number that is "available" (not owned by anyone else yet) but I'm unable to have my old phone carrier help in the process. I need a security code for an important g-mail account which uses my old phone number as a recovery option. This temp phone number website has generated a couple phone numbers that have had the first 6 digits correct so I figured it would be worth a shot making a script that could be run in the background waiting for the correct ten digit number to be generated, if by chance it ever does.
Ryan
(1 rep)
May 28, 2023, 12:38 PM
• Last activity: May 29, 2023, 05:51 AM
0
votes
1
answers
340
views
Enable bluetooth keyboard for Pinephone running PostmarketOS
I am using a Pinephone with PostmarketOS and can't get my bluetooth keyboard "TrackPoint Keyboard II" to function. It's getting connected over `bluetoothctl` but is not working.
I am using a Pinephone with PostmarketOS and can't get my bluetooth keyboard "TrackPoint Keyboard II" to function.
It's getting connected over
bluetoothctl
but is not working.
nimbin
(31 rep)
Feb 24, 2023, 09:30 PM
• Last activity: Feb 28, 2023, 01:25 PM
1
votes
1
answers
428
views
How to link Ausweisapp2 with Smartphone app
I cannot link my *Ausweisapp2* to the app on my smartphone (app for german eIdentity service). Installed via [`snap`][1]: sudo snap install ausweisapp2-ce In the app, there are no available devices shown. * The docs say the devices must be in the same "Wifi", but my computer has cable only. * I have...
I cannot link my *Ausweisapp2* to the app on my smartphone (app for german eIdentity service).
Installed via
snap
:
sudo snap install ausweisapp2-ce
In the app, there are no available devices shown.
* The docs say the devices must be in the same "Wifi", but my computer has cable only.
* I have ufw
enabled, but regarding firewall, the FAQ only talks about Windows and that it should work with default settings or the firewall would ask, which is not the case.
pLumo
(23110 rep)
Nov 12, 2022, 09:13 AM
• Last activity: Nov 12, 2022, 09:36 AM
4
votes
2
answers
5042
views
How to extract phonebook out from an android device
A friend has a Samsung android phone with broken display and he wants to extract all contacts saved on the device. I'm trying to help, but I have a Linux OS on my PC, not windows or mac. I also have my android Motorola Moto-G phone to try with. 1. I have an USB cable to connect the phone. 2. I also...
A friend has a Samsung android phone with broken display and he wants to extract all contacts saved on the device.
I'm trying to help, but I have a Linux OS on my PC, not windows or mac.
I also have my android Motorola Moto-G phone to try with.
1. I have an USB cable to connect the phone.
2. I also have a wifi router which my PC is connected to by a LAN eth cable and I usually connect also the phone to the router wireless network so that it can be routed to internet.
|---- ethernet Modem ---> Internet
|
Router |---- LAN eth ----------| PC
|
-))) WiFi network ((((( Android_Phone
3. I think possible to connect my phone through a bluetooth dongle I used years ago with an old non-android cell. I've never tried it with my android phone.
My PC doesn't have any WiFi adapter so I can't create any "ad hoc" wireless connection between PC and phone.
Is there any way to extract my android Moto-G phonebook working from my Linux system?
Joe
(131 rep)
Jan 16, 2017, 02:55 PM
• Last activity: Jan 3, 2022, 08:45 AM
1
votes
0
answers
1514
views
Hardware_ECC_Recovered is high in new hard drive, Other values are zero, Is this a bad drive?
I have done full write and read on this new hard drive and then run smart long test. This is a 3.5 inch 4T hard drive. Some of the results: ``` === START OF INFORMATION SECTION === Model Family: Seagate Barracuda 3.5 Device Model: ST4000DM004-2CV104 ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UP...
I have done full write and read on this new hard drive and then run smart long test.
This is a 3.5 inch 4T hard drive.
Some of the results:
=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda 3.5
Device Model: ST4000DM004-2CV104
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 0
195 Hardware_ECC_Recovered 0x001a 081 067 000 Old_age Always - 136869720
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Extended offline Completed without error 00% 41 -
Hardware_ECC_Recovered is pretty high.
Should I return this new drive?
Thanks a lot.
PS: more smart result:
SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 081 067 006 Pre-fail Always - 136869720
3 Spin_Up_Time 0x0003 097 096 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 22
5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 0
7 Seek_Error_Rate 0x000f 070 060 045 Pre-fail Always - 9131835
9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 43 (109 159 0)
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 14
183 Runtime_Bad_Block 0x0032 100 100 000 Old_age Always - 0
184 End-to-End_Error 0x0032 100 100 099 Old_age Always - 0
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
188 Command_Timeout 0x0032 100 099 000 Old_age Always - 1 1 1
189 High_Fly_Writes 0x003a 100 100 000 Old_age Always - 0
190 Airflow_Temperature_Cel 0x0022 064 059 040 Old_age Always - 36 (Min/Max 32/40)
191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 0
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 8
193 Load_Cycle_Count 0x0032 100 100 000 Old_age Always - 25
194 Temperature_Celsius 0x0022 036 041 000 Old_age Always - 36 (0 31 0 0 0)
195 Hardware_ECC_Recovered 0x001a 081 067 000 Old_age Always - 136869720
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
240 Head_Flying_Hours 0x0000 100 253 000 Old_age Offline - 38h+39m+55.493s
241 Total_LBAs_Written 0x0000 100 253 000 Old_age Offline - 8642666790
242 Total_LBAs_Read 0x0000 100 253 000 Old_age Offline - 7856270391
sgon00
(457 rep)
Jul 7, 2021, 01:01 PM
2
votes
3
answers
2477
views
Arch linux on phone, with touch-oriented DE
There's (finally) starting to be a move towards "phones as portable desktops." I'm surprised it's taken this long. The basic idea is that phones are powerful enough to run full software and operating systems, so why not just give them a toggleable "desktop mode" where you can dock the phone with a f...
There's (finally) starting to be a move towards "phones as portable desktops." I'm surprised it's taken this long. The basic idea is that phones are powerful enough to run full software and operating systems, so why not just give them a toggleable "desktop mode" where you can dock the phone with a full size keyboard, mouse and monitor and use it as you would a normal desktop.
But this being the case, i would like to have full control over the phone in the same way that i have full control over an arch desktop.
So i was wondering, is there a linux DE which is touch oriented/designed for phones? Would it perhaps be possible to use the android or lineage OS DE on top of an arch system? It would be nice to have a phone running arch with a mobile DE, and when docking it as a desktop i can boot up GNOME or KDE.
At this stage im fairly sure noone has actually done this, so my question is more "what moves have been made so far towards this vision?"
TheIronKnuckle
(143 rep)
Sep 25, 2020, 09:20 AM
• Last activity: Nov 23, 2020, 04:40 PM
-1
votes
1
answers
2367
views
How to install a Linux distribution on an old android phone?
I have an old android phone that I would like to install a linux distrobution on. I see many tutorials that involve running a virtual machine on top of android, however this is not what I want. I want to install linux directly on the hardware. I want to run an apache server on it with a distribution...
I have an old android phone that I would like to install a linux distrobution on. I see many tutorials that involve running a virtual machine on top of android, however this is not what I want. I want to install linux directly on the hardware. I want to run an apache server on it with a distribution like CentOS, so I do not want a fancy desktop environment, but I would like it to have a virtual keyboard to manage it.
Otherwise, how would I connect to it using my USB keyboard? How would I install it onto my phone?
user398085
Apr 29, 2020, 07:46 PM
• Last activity: Apr 29, 2020, 08:22 PM
0
votes
1
answers
525
views
What are the device limitations for installing Linux-based Android alternatives?
I have a new Samsung Galaxy A40 and would like to use a Linux-based alternative to Android. Reasons: Privacy/security, hackability, moving away from Google. 1.) Can I install an alternative OS even though my device is not explicitly supported? If not, what are the limiting factors? Does each device...
I have a new Samsung Galaxy A40 and would like to use a Linux-based alternative to Android. Reasons: Privacy/security, hackability, moving away from Google.
1.) Can I install an alternative OS even though my device is not explicitly supported? If not, what are the limiting factors? Does each device require a specific set of drivers (e.g. graphics, audio, peripherals)?
2.) Are there any good OS options? Is anyone using Ubuntu Touch? The OS should be safe, stable and user-friendly. Also, using standard device functions and installing/sideloading APKs of standard apps (e.g. WhatsApp/Telegram/KakaoTalk) should be straightforward with no extensive workarounds required.
PS.: I have no experience as a mobile developer.
david
(359 rep)
Feb 6, 2020, 04:39 PM
• Last activity: Feb 6, 2020, 05:51 PM
0
votes
2
answers
104
views
Is there a program to pair my phone with my computer for SMS messaging?
Sometimes I have to manage a conversations over SMS through my phone. This is especially frustrating when I'm trying to get work done on my computer. I don't mind holding a conversation but there is a considerable amount of mental and physical task-switching by picking up the phone, turning it on, u...
Sometimes I have to manage a conversations over SMS through my phone. This is especially frustrating when I'm trying to get work done on my computer.
I don't mind holding a conversation but there is a considerable amount of mental and physical task-switching by picking up the phone, turning it on, unlocking it, responding, deciding whether to keep holding it or set it down again and then repeat.
It would be very convenient if I could manage these conversations from my computer when I'm logged in.
Before anyone asks, I cannot ignore these messages and they often require a response. It is unreasonable to ask all of my contacts to instead contact me through an alternate preferred messaging app as SMS is already viewed as the lowest common denominator between platforms.
My phone is running Android. My workstation is Fedora running MATE Desktop.
Brownie points if there is a solution that integrates with Pidgin.
Zhro
(2831 rep)
Sep 12, 2019, 06:26 PM
• Last activity: Sep 12, 2019, 06:47 PM
1
votes
0
answers
117
views
Can't automount smartphone in LXDE anymore
I used to plug in my smartphone into my laptop to access the internal storage as well as SD-card storage. Since some recent updates it stopped working. I unfortuntaly cannot narrow it down to a specific date or update, because I didn't mount it for some time. Mounting the smartphone was a two-step p...
I used to plug in my smartphone into my laptop to access the internal storage as well as SD-card storage. Since some recent updates it stopped working. I unfortuntaly cannot narrow it down to a specific date or update, because I didn't mount it for some time.
Mounting the smartphone was a two-step process in LXDE, because after plugging the phone, I had to change the phone's behavior (lineageOS) from pure charge mode into file transfer mode. After plugging the USB cord the drives appeared along with the message whether I wanted to mount it. After switching the phone to file transfer mode, the directories and files started to appear inside LXDE's filemanager.
Now, after plugging the phone, I directly get a message about .service file.
I can acknowledge that but the drive's folder stays empty even after I prompt the phone to switch to data transfer.
I can exclude the possibility that some updates on the phone might have triggered that, because I ommitted some oft those for a while (different story).
The error message is:
The name : was not provided by any .service files
n.m is different after reboot.
I figured out, that this message is somehow d-bus related, but nothing further. I do not know how to debug this behavior or where the real error messages from d-bus might be stored.
What logfile do I have to search for? Why could updating of e.g.
- dbus
- lxde
or anything have affected the correct mounting process for my phone?

Ariser
(303 rep)
Sep 2, 2019, 02:07 PM
• Last activity: Sep 2, 2019, 03:21 PM
4
votes
2
answers
1473
views
Is it possible to install a full-blown desktop Linux distro on an Android smartphone?
This may be a stupid question, but is there any way to overwrite Android with a full-blown desktop Linux distro on an Android smartphone? I looked at a few tutorials, though they only seem to emulate Linux within Android. So is there any way to fully install Linux as my only smartphone operating sys...
This may be a stupid question, but is there any way to overwrite Android with a full-blown desktop Linux distro on an Android smartphone?
I looked at a few tutorials, though they only seem to emulate Linux within Android.
So is there any way to fully install Linux as my only smartphone operating system, and if so, how?
Ryan Fredez
(173 rep)
Jul 20, 2019, 01:50 AM
• Last activity: Jul 20, 2019, 02:28 AM
0
votes
0
answers
44
views
Print from Peppermint 9 networked through tethered Android phone
I have an 11 year old [ACER Aspire One zg5][1] netbook running Peppermint 9 with a dead WiFi card, so I use an Android phone (Motorola One) to tether via USB to another PC; everything works with no issues (almost). The problem is to install my printer ([Canon Pixma MG4250][2]) connected via WiFi, th...
I have an 11 year old ACER Aspire One zg5 netbook running Peppermint 9 with a dead WiFi card, so I use an Android phone (Motorola One) to tether via USB to another PC; everything works with no issues (almost).
The problem is to install my printer (Canon Pixma MG4250 ) connected via WiFi, the drivers are installed (for printer and for scanner), scanner driver is scangearmp BUT when I run scangearmp command the program can not find any printer/scanner in the network, I refreshed few times update scanner list but no success the Canon Pixma is not visible.
My main laptop (OS Xubuntu 16.04.6 detects the printer/scanner without issues). Maybe some configuration on Android phone USB tethering and/or netbook missing ?
Netbook display this tether connection as WIRED, phone gets WiFi from router and printer is connected to the same network, phone mobile data is disabled so phone is connected only via WiFi.
vladimir pavloski
(1 rep)
May 31, 2019, 09:16 PM
• Last activity: May 31, 2019, 11:31 PM
2
votes
0
answers
739
views
Detecting a phone when connected by USB
I'm writing a bash script to synchronize pictures in my phone with my PC. What I need is to - detect if the phone is connected to a USB port - which port is used, and then - access it. I'm not connecting my phone via USB tethering. The code that I already have it's this: ``` tmp=`gio mount -l -i | g...
I'm writing a bash script to synchronize pictures in my phone with my PC. What I need is to
- detect if the phone is connected to a USB port
- which port is used, and then
- access it.
I'm not connecting my phone via USB tethering.
The code that I already have it's this:
tmp=gio mount -l -i | grep activation_root
mount_point=${tmp//activation_root=/}
gio mount $mount_point
cp /run/user/1000/gvfs/*/*/DCIM/Camera/*.jpg ~/Test`
With this I'm getting the device and mounting it, but I've hardcoded the path used in the cp command. I need a way to obtain that path through a command or a way to use the command gio copy
for this situation.
Gerardo Martínez Rodríguez
(31 rep)
Apr 5, 2019, 04:18 PM
• Last activity: Apr 10, 2019, 02:54 PM
0
votes
1
answers
74
views
Can i use smartphone tethering instead of USB wireless inthernet lan card in Linux?
I am a Newbe in Linux. I will thank you for any account and i wll be really appreciated ---------- Explain my situation ---------- I use inthernet in laptop. And When i connect inthernet, i use device that smartphone. The smartphone is connected laptop used USB. Smartphone be activated 'USB tetherin...
I am a Newbe in Linux. I will thank you for any account and i wll be really appreciated
----------
Explain my situation
----------
I use inthernet in laptop.
And When i connect inthernet, i use device that smartphone.
The smartphone is connected laptop used USB.
Smartphone be activated 'USB tethering'
----------
So
----------
When i command ' sudo ifconfig -a ' I can show 3 list.
first is eth0 : blah blah
second is lo : blah
third is usb0
----------
Question
----------
So if i use smartphone tethering [ smartphone - usb - labtop ] instead of USB wireless inthernet lan card, can't see wlan0 at third line ?
Yoon Chang Hoon
(1 rep)
Apr 25, 2018, 12:24 PM
• Last activity: Apr 25, 2018, 12:57 PM
4
votes
1
answers
3194
views
How to install Linux (or a similar OS) on smartphone?
I need to install Linux on my next mobile, a smartphone, which will be my first one. How do I do that? I mean, it surely won't have a CD drive and I don't see a way for including a USB drive or even getting into BIOS. Can I install it via computer when the smartphone is plugged in?
I need to install Linux on my next mobile, a smartphone, which will be my first one. How do I do that? I mean, it surely won't have a CD drive and I don't see a way for including a USB drive or even getting into BIOS. Can I install it via computer when the smartphone is plugged in?
muggi
(759 rep)
Feb 8, 2016, 06:43 PM
• Last activity: Dec 15, 2017, 11:29 PM
2
votes
1
answers
1058
views
How to get Kc key and TMSI number with AT command in Linux
I've completely configured the port with opened modem on `ttyACM0` as my mobile device `(HTC M8)`. However, it didn't allow me to enter anything. I've tried with hotkey `Ctrl-A Z`, but there was no news. I don't know how to send an `AT command` to get more information. If you've done so far, please...
I've completely configured the port with opened modem on
ttyACM0
as my mobile device (HTC M8)
. However, it didn't allow me to enter anything.
I've tried with hotkey Ctrl-A Z
, but there was no news. I don't know how to send an AT command
to get more information.
If you've done so far, please help me get through this step or it's nice to have any idea.

Huy DQ
(21 rep)
Nov 23, 2017, 04:07 PM
• Last activity: Nov 25, 2017, 03:43 PM
Showing page 1 of 20 total questions