Need help on using vi
-
Does pfSense run?
Diagnostics > Edit File
-
Does pfSense run? Diagnostics > Edit File
For the life of me why haven't I read about this despite a week's worth of painfully crawling the googlenet? Argh…....... :-[
-
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?
-
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.
-
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).
-
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.
-
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?
-
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 2Have rebooted pfsense and did not vomit any errors. So is that it? How do I know squidcache is pointing to my second hdd ada1p1?
-
just type 'mount' in the console & press enter
-
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) -
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.
-
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?
-
Insignificant.
-
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?
-
Standard logs are circular and when you're talking about hundreds of gigabytes it is insignificant.