Ubuntu Servers :: Start Squid Automatically With -D Argument
Jan 10, 2011
I am on Ubuntu 10.04, running Squid 2.7.STABLE7 Squid refuses to start on my machine unless I give it the -D argument (disable initial DNS tests). I think this is because my machine is offline while I'm testing it, so no DNS server. how to set Upstart to start Squid with the -D argument?
I have just installed squid and sarg, both are working well. I cannot get squid to start when the machine boots. I installed webmin and configured the setup through the webmin interface where I checked the "start at boot option". I think the problem is that my network card responsible for the web connection is wireless so when squid tries to load during boot it is trying before the Wireless card is up and so it fails. I have tried multiple methods of adding a script to the "dispatcher.d" folder in "NetworkManager" to load squid after wlan0 is up but all have failed to bring up the squid proxy without my interaction. I have not found any two sites that describe the syntax for "dispatcher.d" alike so I may have the command wrong but I have no what to do.
I am running fedora 10 and webmin squid proxy server, after power failure the squid fails to start. i have tried to start it from command line but failed
what to do for lock automatically slackware 13 if not used for n minutes ?What can i do to start automatically the ktorrent (a bittorrent program for linux) on system starts on slackware 13 ?
I am having trouble getting grub to automatically boot into ubuntu server. When I turn on my server the grub menu shows up and shows me the choices. They all work fine except that grub wont automatically select one. This wouldn't be too much of a problem but this is a headless server and I can't boot into ubuntu without a keyboard. I tried looking through the grub 2 documentation but nothing seemed to work when I edited the conf file.
I'm trying to write a base script which will divide an argument by 10 and then use that argument in another program. Since my argument can be a floating point number, I used bc to accomplish this. Here's an example of a simplified version of what I have so far:
<code>NUM=$(echo "scale=25;$1/10" | bc) #make sure the first argument was formatted correctly if [ $? -ne 0 ]
Trying to get scanning going with my all-in-one, and have been troubleshooting it for awhile, and nothing works. Could use expert advice on this topic for an HP c6380 All-in-One. Printing does fine. All attempts at scanning are failing. scanimage -L says the device is my webcam. I don't know if usb scanner is in /dev.
Im trying to run synergy on startup. This works fine on the client, but it wont start automatically on the server. I put this line in an entry in startup applications:
I'm using squid as a proxy in our organization. My problem is whenever the squid cache folder size exceeds 3 GB our proxy server starts to hang. Is there a way to write a script that it will automatically delete the squid cash when it exceeds the 3GB limit.
Does squid automatically split bandwidth between connected clients? I'm wondering if someone was downloading a lot of data and someone else connected whether it would split the access 50:50 between them? I have 1 user that is using a lot of bandwidth but the server doesn't seem to split it up between all connected clients so others are receiving slow access. I don't have this client's IP address but I do have ncsa auth connected. Will delay_pools work with an ncsa username?
I get the following error when I try and "make" complile simscan. I beleive this is an Gcc issue?
/usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 arguments make[2]: *** [simscanmk.o] Error 1 make[2]: Leaving directory `/root/simscan-1.4.0'
My hard drives kept dropping out of the raid array, so I finally identified the problem as a bad sata cable. I redid the wires and now when I try to assemble I get this:
Code:
mdadm -v --assemble --scan /dev/md0 mdadm: looking for devices for /dev/md0 mdadm: no recogniseable superblock on /dev/sde4
I use Opensuse 11 with fvwm. How can I get conky start automatically when I start fvwm?
I setup the conky under fvwm session for my Opensuse 11 but it won't start automatically. I am wondering how to write some kind of scripts to force it to start automatically and with a delay about 10 seconds after fvwm starts.
I have installed squid 2.7 and squidguard from OpenSuse repositories,and I use "redirect_program /usr/sbin/squidGuard -c /etc/squidguard.conf -d" in /etc/squid/squid.conf,but seems that the squidguard is not started after restart squid, however,when I initialize the blacklist by "squidguard -C all",the cursor keeps blinking for quite a long time,what should I do
I am running fedora 10 and webmin squid proxy server, after power failure the squid fails to start. i have tried to start it from command line but failed
I have installed squid 2.7 in my red hat Linux box.I need some guidance regarding to start and stop squid service. Normally when squid configuration file is n /etc/squid/squid.conf and we want to start the service we use # service squid startand to stop the service we use# service squid stopNow squid is inCode:# /usr/local/squid/etc/squid.confhere the default # service squid start and # service squid stop does not work.
Squid gives the follwoing error messages when i attepmt to start it:Sep 10 12:33:24 localhost (squid): Cannot open '/var/log/squid/access.log' for writing. The parent directory must be writeable by the user 'squid', which is the cache_effective_user set in squid.conf.Sep 10 12:33:24 localhost squid[3423]: Squid Parent: child process 3446 started
I am an avid ubuntu desktop user, however I started working at a company that runs their firewall, mail and proxy server on centos 5.2, all was working well so never needed to tamper with it, however we (myself and the administrator) randomly decided to install squid3 for its features, the install went well, however squid3 didnt run as we wanted it to, after looking into it reading some material on the net, we realised how stupid we were to not to test it -sigh- so weve purged and removed it and reverted back to 2.6, now however we even have issues with that too, we install squid 2.6 and start the service and we get errors that stop, and starting fail, however the status of squid shows its running. How to get it back to working order?
I have installed ubuntu in my system .Squid is by default in it. I want to compile delay_pools feature in squid.Normally we download source code file in tar.gz format ,uncompressed itand then install it. If we want to compile any thing we can also do it.Here in my case there is already squid installed during installation process.
I upgraded to 10.04 and my AWN dock won't automatically start even though the 'box' is tic'd and it's showing in the Startup Applications. I did lose all of my configurations as well after upgrading and had to reinstall everything on the dock.
Also, there are little numbers on the launchers like for Trash and Email that tell me how many items are in there. The Trash was easy to remove the numbers by right clicking and choosing the Preferences option. There was a place to disable that but there isn't one for the Email and those little numbers look well.
After restart or suspend/resume the Wifi won't start until I click on my home network from the menu. It used to start without me doing anything (once I setup the wireless).
After installing some updates recently, 10.10 boots into a command line. I have to type sudo gdm to get into Gnome, at which point it works fine. How can I make it start Gnome automatically again?