• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Captive portal html and images….

Captive Portal
7
26
17.0k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D
    DrNo
    last edited by Jun 4, 2006, 5:00 AM

    Could someone explain how to fix this image issue to a BSD lamen?

    I am very unfamiliar with BSD command line arguments and am having problems copying my logo.png into the '/usr/local/captiveportal/' directory so it will show correctly on my capture portal.  Every time I try to copy my 'logo.png' file from either the '/var/db/cpelements' dir or the '/tmp' dir (I used the GUI to upload it there) I am met with a "Read-only file system" error.

    I am running BETA 4 embedded on a WRAP equiped with a 128MB CF card.  If someone could take a minute or two to explain the commands I need to know and the steps I need to take to resolve this issue, I would greatly appreciate it.

    Thnx in advance,

    -DrNO

    1 Reply Last reply Reply Quote 0
    • S
      sullrich
      last edited by Jun 5, 2006, 6:24 PM

      @DrNo:

      Could someone explain how to fix this image issue to a BSD lamen?

      I am very unfamiliar with BSD command line arguments and am having problems copying my logo.png into the '/usr/local/captiveportal/' directory so it will show correctly on my capture portal.  Every time I try to copy my 'logo.png' file from either the '/var/db/cpelements' dir or the '/tmp' dir (I used the GUI to upload it there) I am met with a "Read-only file system" error.

      I am running BETA 4 embedded on a WRAP equiped with a 128MB CF card.  If someone could take a minute or two to explain the commands I need to know and the steps I need to take to resolve this issue, I would greatly appreciate it.

      Thnx in advance,

      -DrNO

      None of this is required.  Simply upload the image to the element manager.  It will handle everything.

      1 Reply Last reply Reply Quote 0
      • D
        DrNo
        last edited by Jun 5, 2006, 10:05 PM

        @sullrich:

        None of this is required.  Simply upload the image to the element manager.  It will handle everything.

        I did upload the image from the file manager under the captive portal menu, but when the captive portal splash page shows the image is broken.

        My code should be fine:

        ![](logo.png)
        

        After reading this post I got the impression that there is a bug in pfSense and a work around is copying the picture into the captiveportal directory rather than relying on the refering link.  My problem is that I'm using an embedded version of pfSense and I have only read only access to the system, and I have no idea how to get around this.

        1 Reply Last reply Reply Quote 0
        • H
          hoba
          last edited by Jun 5, 2006, 10:15 PM

          Run the following commands from the shell:

          /etc/rc.conf_mount_rw
          /etc/rc.conf_mount_ro

          Should be obvious what they do.

          1 Reply Last reply Reply Quote 0
          • S
            sullrich
            last edited by Jun 5, 2006, 10:57 PM

            The view captive portal link is broken but users surfing to the page will get the images.  If you are simply viewing the page and pronouncing it broke because of this fact then you need to really test with a captive portal client.

            1 Reply Last reply Reply Quote 0
            • S
              sullrich
              last edited by Jun 5, 2006, 11:48 PM

              Okay I tested this again and found some minor errors…

              png wasn't working.

              Anything upper or mixed case wouldnt have worked:

              ie: Jpg

              If you are running a full installation do a cvs_sync.sh releng_1 && shutdown -r now

              If not, Diagnostics, Edit file and overwrite the code with this:

              http://cvs.pfsense.com/cgi-bin/cvsweb.cgi/pfSense/etc/inc/system.inc?rev=1.79.2.38;content-type=text%2Fplain;only_with_tag=RELENG_1

              1 Reply Last reply Reply Quote 0
              21 out of 26
              • First post
                21/26
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.