PID File for squid in Fedora – 21 ( Fedora.next)

2015-03-24 1 min read Fedora GNOME

So, the other day, I wanted to have squid store its pid in the regular ‘var/run’ directory. Good simple enough – just add the following to “/etc/squid/squid.conf” :

pid_filename /var/run/squid/squid.pid

and create the /var/run/squid directory. Simple, hold on not so fast. Reboot and psssst.. ‘/var/run/squid’ is gone. Finally found that /var/run is handled by systemd-tmpfiles and thus you need to do this as well:

cat <>/lib/tmpfiles.d/squid.conf
d /run/squid 700 squid squid
EOF

So, basically you need to tell tmpfiles to create the squid directory as well.. How complicated things are becoming 🙂

Continue reading

speedtest cli

2015-01-30 1 min read Fedora

To test your speed you can use speetest-cli. Here is the description:

Command line interface for testing internet bandwidth using speedtest.net

and to install and test:

sudo yum install speedtest-cli

#Run
speedtest-cli

The output is like below:

[speetest-cli][1]
speedtest-cli

colorize your logs

2015-01-14 1 min read Fedora

CCZE is a robust and modular log colorizer with plugins for apm, exim, fetchmail, httpd, postfix, procmail, squid, syslog, ulogd, vsftpd, xferlog, and more.

For installation

sudo yum install ccze

and to use it:

tail -f -n 50 /var/log/firewalld | ccze
#or better yet
cat  /var/log/firewalld | ccze|more

apache in docker to serve local website

2015-01-05 2 min read Fedora Vurtualization

I have some backup’s of website on my laptop, which I occasionally want to view. Now, I could have setup apache to serve them directly with VirtualHost or alias but wanted a better solution. So, docker comes to rescue.

First, I installed fedora-dockerfiles and then made some modifications, here they are :

sudo yum install fedora-dockerfiles

After this is done, go to /usr/share/fedora-dockerfiles/apache and make some modification to Dockerfile.  After the modifications, the file looks like this

Continue reading
Older posts Newer posts