Skip to the posts
Buffalo's neighborhood journals since 2003 🍀 Patrick Spicy Devil Logan🌭 Sahlen🥨 Weber Spank🥟 Pierogi🐸 Scaj🍺 Labatt Utica Pink Cherio❄️ Snow Murder

tinypliny’s journal

Sharing files between Linux and Android

·

UPDATE: Those who are stumped at this method should preferably read about a waaaay easier method to share files between the Asus transformer TF101 (or any android device) and the desktop at @tinypliny #56229 or @tinypliny #56241 @tinypliny #56232 or choose to struggle some more with uncertain results (on Fedora 16) by clicking on the comment bubble below. Your choice!

---
Setting up a server on linux and having your other devices access it is a supposedly simple thing but I am having a hard time with it.

Objective: To access one of my folders on my linux laptop from my android devices (specifically a tablet, which I use to read pdfs)

What I have done: Started an apache server on my laptop.

How?
Like so:

Check if httpd exists on the system
  • rpm -q httpd

Switch to /var/www/html directory
  • cd /var/www/html

Crease a symbolic link to the directory I want to share
So here I am linking to ~/pdfs and naming it pdfs
  • ln -s ~/pdfs pdfs

Switch to root user
  • Su

Enable, start and check the apache server
  • systemctl enable httpd.service
  • systemctl start httpd.service
  • systemctl status httpd.service

Now if I go to localhosts/pdfs or 127.0.0.1/pdfs with any browser on my laptop, I can see the directory on my server.

The question is how do I see the wretched directory from a browser on my android tablet in the same wireless network?! The IP address of the wired connection on the linux laptop is: 10.0.0.4 and the server is at port 80

So technically the address 10.0.0.4:80 should work, correct? But it is not!!

Do I need to fiddle with my Apache configuration files?
/etc/httpd/conf/httpd.conf

Stumped for now.
---
Share 288 words · edited Mar 18, 2012

💬 3 comments

  1. paul ·

    As long as apache is listening in all ips,which i think it os by defaut and if you can see it from inside but not from outside the machine then it is your firewall. You need to enable traffic on port 80 through the firewall. I am sure there is some GUI for that. Fedora uses iptables.

    Or you can just copy the setup for port 22 that probably already in you firewall rules in /etc/sysconfig/iptables

    Then just restart the service
    sudo service iptables restart
  2. tinypliny ·

    Thanks for that insight. I changes the iptables configuration and I could finally see the files from my tablet/android devices (in my ubuntu, not in fedora where something is still screwy).

    I was pretty happy till I realized that that's all I could do. see the files. The downloads never initiate. :/

    I need to get this thing working fast so I have located another alternative. Posting about it next.
  3. tinypliny ·

    Check out alternative solution at @tinypliny #56229

💬 Write a comment