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

    Need help on using vi

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    20 Posts 5 Posters 7.2k Views
    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
      dreamerman
      last edited by

      Ok mine looks like this under Diagnostics > Edit File. Column headers and text also don't look aligned. When I type my entry, how do I jump to next column? Do I use tabs?

      pfsense.JPG
      pfsense.JPG_thumb

      pfSense 2.3-RELEASE (amd64)
      DELL Optiplex GX620 Pentium D CPU 3.40GHz, 240GB SSD, 4GB RAM

      1 Reply Last reply Reply Quote 0
      • DerelictD
        Derelict LAYER 8 Netgate
        last edited by

        All you need to get is the white space (tabs, spaces) in the right places and it'll work. Doesn't have to line up.

        Are you sure you need a second disk? Might be easier to just take a backup, switch drives, reinstall on the larger disk, and restore.

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply Reply Quote 0
        • D
          dreamerman
          last edited by

          Thanks Derelict. What I did was to copy paste the existing swap entry on the next line below and edit the entries while carefully keep to the spaces. I think it works but need to reboot to be sure. I has a second SATA 160GB hdd laying around so I thought I use it for squid cache. I have a very poor internet bandwidth (3.0-3.5mbps ADSL2+) and having a large cache should help (I hope).

          pfSense 2.3-RELEASE (amd64)
          DELL Optiplex GX620 Pentium D CPU 3.40GHz, 240GB SSD, 4GB RAM

          1 Reply Last reply Reply Quote 0
          • DerelictD
            Derelict LAYER 8 Netgate
            last edited by

            Right but pfSense is pretty low on disk. I don't know if it's worth running multi-disk just for squid. Install the 160GB, reinstall, and enable squid. Then you're not dealing with things outside the config/gui.

            Chattanooga, Tennessee, USA
            A comprehensive network diagram is worth 10,000 words and 15 conference calls.
            DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
            Do Not Chat For Help! NO_WAN_EGRESS(TM)

            1 Reply Last reply Reply Quote 0
            • D
              dreamerman
              last edited by

              @Derelict:

              Right but pfSense is pretty low on disk.

              I am running pfsense on a 240GB SSD. It is just pfsense in the SSD, nothing else. What would you say to be ideal size for squid cache? 50GB?

              pfSense 2.3-RELEASE (amd64)
              DELL Optiplex GX620 Pentium D CPU 3.40GHz, 240GB SSD, 4GB RAM

              1 Reply Last reply Reply Quote 0
              • D
                dreamerman
                last edited by

                How do I know if I mounted it correctly? I created newfs -U /dev/ada1p1 and mkdir /squidcache. My /etc/fstab looks like below:

                Device Mountpoint FStype Options Dump Pass#

                /dev/ufsid/572df99e0f441273 / ufs rw 1 1
                /dev/label/swap0 none swap sw 0 0
                /dev/ada1p1 /squidcache ufs sw 2 2

                Have rebooted pfsense and did not vomit any errors. So is that it? How do I know squidcache is pointing to my second hdd ada1p1?

                pfSense 2.3-RELEASE (amd64)
                DELL Optiplex GX620 Pentium D CPU 3.40GHz, 240GB SSD, 4GB RAM

                1 Reply Last reply Reply Quote 0
                • H
                  heper
                  last edited by

                  just type 'mount' in the console & press enter

                  1 Reply Last reply Reply Quote 0
                  • D
                    dreamerman
                    last edited by

                    just type 'mount' in the console & press enter

                    The result is as follows. I don't see squidcache.

                    /dev/ufsid/572df99e0f441273 on / (ufs, local, journalled soft-updates)
                    devfs on /dev (devfs, local)
                    /dev/md0 on /var/run (ufs, local)
                    devfs on /var/dhcpd/dev (devfs, local)

                    pfSense 2.3-RELEASE (amd64)
                    DELL Optiplex GX620 Pentium D CPU 3.40GHz, 240GB SSD, 4GB RAM

                    1 Reply Last reply Reply Quote 0
                    • DerelictD
                      Derelict LAYER 8 Netgate
                      last edited by

                      I think you're nuts for doing this outside the gui.

                      If you're worried about SSD writes, reinstall on the spinning disk. If you're not, just enable squid and you're done.

                      Chattanooga, Tennessee, USA
                      A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                      DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                      Do Not Chat For Help! NO_WAN_EGRESS(TM)

                      1 Reply Last reply Reply Quote 0
                      • D
                        dreamerman
                        last edited by

                        If you're worried about SSD writes, reinstall on the spinning disk.

                        Hey you are right. I did not think much when I used a 240GB SSD. I have a couple of SATA and IDE disks around. I read https://forum.pfsense.org/index.php?topic=34381.0 and FJS explained it well. Ok I am gonna rebuilt pfsense and use a 250GB SATA instead of the SSD.

                        Reason I wanted to use a second disk is because I have a few laying about doing nothing and I don't want to crowd-out other important pfsense stuff.

                        So assuming I install all available packages how much disk space it will consume?

                        pfSense 2.3-RELEASE (amd64)
                        DELL Optiplex GX620 Pentium D CPU 3.40GHz, 240GB SSD, 4GB RAM

                        1 Reply Last reply Reply Quote 0
                        • DerelictD
                          Derelict LAYER 8 Netgate
                          last edited by

                          Insignificant.

                          Chattanooga, Tennessee, USA
                          A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                          DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                          Do Not Chat For Help! NO_WAN_EGRESS(TM)

                          1 Reply Last reply Reply Quote 0
                          • D
                            dreamerman
                            last edited by

                            @Derelict:

                            Insignificant.

                            Appreciate your replies. Are you able to give me an estimate in terms of GB? If I install all packages and enable all logs in a home network (10 devices) is 100GB enough?

                            pfSense 2.3-RELEASE (amd64)
                            DELL Optiplex GX620 Pentium D CPU 3.40GHz, 240GB SSD, 4GB RAM

                            1 Reply Last reply Reply Quote 0
                            • DerelictD
                              Derelict LAYER 8 Netgate
                              last edited by

                              Standard logs are circular and when you're talking about hundreds of gigabytes it is insignificant.

                              Chattanooga, Tennessee, USA
                              A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                              DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                              Do Not Chat For Help! NO_WAN_EGRESS(TM)

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