Disclaimers
Newer Post
Older Post
Ade Malsasa Akbar contact
Senior author, Open Source enthusiast.
Saturday, September 28, 2019 at 22:44

Android Reverse Tethering with Ubuntu 18.04


 (Android phone got internet access from Ubuntu laptop via cable)

That magical program is Gnirehtet (tethering reversed) available as Android app and GNU/Linux desktop programs. With this program, without root access at all, we can easily share internet access via USB cable from laptop to smartphone by utilizing USB Tethering in reversed mode. Finally, the topology will be phone -> USB -> desktop -> wifi -> internet. I show you here how to do it with Ubuntu 18.04 LTS. Enjoy!

On wifi hotspot sharing: KDE | GNOME | Budgie | File Sharing/SFTP


Why reverse tethering?


There are several strong reasons to do this:
  • Saving cost, so you only need internet access on one device (laptop) and do not need to buy data for phone.
  • Security, as you do not expose your phone identity when at a public hotspot place.
  • Speed, especially if your phone data service is slow while your public hotspot on laptop is fast. Share it, dude.
  • Size, so you can download big sized files on phone when your data service is limited but public hotspot is unlimited. For example, to upgrade all Android applications.
And personally mine is to write this article for you.

My Specification


I use 2 operating systems on 2 different machines:

Laptop:
  • Ubuntu 18.04
  • Linux kernel 4.15 (default)
  • Wifi internet from a public hotspot

Phone:
  • Android 6.0, not rooted
  • No SIM card (no carrier, no internet access) 
  • Data, Wifi, and Hotspot options disabled
  • USB Debugging support
  • USB Tethering support
  • A USB cable


1. Obtain Gnirehtet


As I said, Gnirehtet is divided into two parts, one for you phone (.apk) and one for your GNU/Linux desktop (program written in Rust language). Download it here.



2. Install Gnirehtet to Android phone


  • Send the gnirehtet.apk file from computer to phone.
  • Install the APK file on Android.


3. Install requirements on GNU/Linux


The only requirement according to the official documentation is adb, so:
$ sudo apt-get install android-tools-adb



Note: distros other than Ubuntu should have same package but either with same or different name. For example, Debian's is android-tools-adb, Arch's is android-tools, and so on.

4. Connect to the internet on desktop


Connect your Ubuntu GNU/Linux to a wifi hotspot internet access.



5. Enable USB Debugging on Android


On your phone, on Android system settings, turn on USB Debugging. Usually it is located at Developer section. Do not enable USB Tethering here.


6. Share internet access from desktop


Running:
$ ./gnirehtet run


You should run this command where the executable program located.

Stopping:
Press Ctrl+C on the same Terminal.



7. Accept connection on Android


On your phone, you will see Allow USB debugging? and accept it. You will also see Reverse tethering enabled message notification. This means you are ready to go online on your phone. Oh, and yes, you can give check mark Always allow from this computer so you do not need to tap anymore next time.


8. Go online!


You should see Gnirehtet: Reverse tethering enabled notification on your phone. Your phone should be connected to the net at this point. Try to run Telegram, F-Droid, Orbot, or web browser on Android and see if they can download something.On desktop, on GNOME environment if you have

Succcessful connection would show [VPN] logo on Android's top panel:
 
And also saying Reverse tethering enabled message:



Hope this will be useful!


This article is licensed under CC BY-SA 3.0.


两个鬼故事黑色泥土哪里多广东体育频道在线直播个体工商户起名字大全免费免费起店铺网名网那金花和她的女婿电视剧免费观看都市无敌战神林北给梦想小镇起名字大全9月1日是什么星座根据八字免费起名字好听起名那一家专业车牌号查询车主姓名系统乱伦家族周镇南起名用字大全给宝宝起名字姓周的莫姓男宝宝取名起名大全千月蓝牙驱动下载海王百度云宝宝起名字大全饰品名称怎么起五行属缺什么起名为合作社起名牛年女宝宝起名字喋血孤岛大结局男孩姓庄起什么名字好的魔笛奇遇记纸制品公司起名称爱奇艺tv电脑病毒下载男孩起名打分免费少年生前被连续抽血16次?多部门介入两大学生合买彩票中奖一人不认账让美丽中国“从细节出发”淀粉肠小王子日销售额涨超10倍高中生被打伤下体休学 邯郸通报单亲妈妈陷入热恋 14岁儿子报警何赛飞追着代拍打雅江山火三名扑火人员牺牲系谣言张家界的山上“长”满了韩国人?男孩8年未见母亲被告知被遗忘中国拥有亿元资产的家庭达13.3万户19岁小伙救下5人后溺亡 多方发声315晚会后胖东来又人满为患了张立群任西安交通大学校长“重生之我在北大当嫡校长”男子被猫抓伤后确诊“猫抓病”测试车高速逃费 小米:已补缴周杰伦一审败诉网易网友洛杉矶偶遇贾玲今日春分倪萍分享减重40斤方法七年后宇文玥被薅头发捞上岸许家印被限制高消费萧美琴窜访捷克 外交部回应联合利华开始重组专访95后高颜值猪保姆胖东来员工每周单休无小长假男子被流浪猫绊倒 投喂者赔24万小米汽车超级工厂正式揭幕黑马情侣提车了西双版纳热带植物园回应蜉蝣大爆发当地回应沈阳致3死车祸车主疑毒驾恒大被罚41.75亿到底怎么缴妈妈回应孩子在校撞护栏坠楼外国人感慨凌晨的中国很安全杨倩无缘巴黎奥运校方回应护栏损坏小学生课间坠楼房客欠租失踪 房东直发愁专家建议不必谈骨泥色变王树国卸任西安交大校长 师生送别手机成瘾是影响睡眠质量重要因素国产伟哥去年销售近13亿阿根廷将发行1万与2万面值的纸币兔狲“狲大娘”因病死亡遭遇山火的松茸之乡“开封王婆”爆火:促成四五十对奥巴马现身唐宁街 黑色着装引猜测考生莫言也上北大硕士复试名单了德国打算提及普京时仅用姓名天水麻辣烫把捣辣椒大爷累坏了

两个鬼故事 XML地图 TXT地图 虚拟主机 SEO 网站制作 网站优化