Welcome to Server Circle. It's a friendly site and all levels of experience are welcome. Be aware that we use cookies for your login.
Server Circle - Ask questions about Servers and get answers from experts.
Beta (0.49 sec)
JimmyC's profile (945 points)

About: I live for Linux. Well, not really but you know what I mean. I suppose I like it. Quite a lot.
Apache crashes and segfaults logging
Asked in: Debian Linux with 3 answers
REWARD: Create a lock file in PHP when a link is followed
Asked in: Linux Servers with 1 answers
How do I choose a PSU for my server ?
Asked in: Linux Servers with 1 answers
Squid will not cache images properly
Asked in: Linux Servers with 2 answers
Script to replace characters in several files
Asked in: Shell Scripting with 4 answers
Script for updating bogofilter black and whitelists
Asked in: Email Servers with 1 answers
Google 2-step auth on SSH Server
Asked in: Server Firewalls with 2 answers
Is installing RPM files on Debian possible ?
Asked in: Debian Linux with 1 answers
Command line dictionaries for integration into a script
Asked in: Shell Scripting with 3 answers
Artificially increasing load on a linux server
Asked in: Linux Servers with 3 answers
Stripping newlines from a PHP variable
Asked in: Shell Scripting with 1 answers
Stripping unused CSS from a file to lower Apache load
Asked in: Shell Scripting with 0 answers
Is Cacti just a sit-on-top tool for RRDtool really ?
Asked in: Linux Servers with 2 answers
In Linux how can I force some applications to use specific CPU cores
Asked in: Linux Servers with 3 answers
Does Cacti just draw a 95th percentile line on the graph ?
Asked in: Linux Servers with 1 answers
Monitoring Maildir directories from the command line without Mutt
Asked in: Linux Servers with 1 answers
REWARD: Can MRTG support 95th percentile billing ?
Asked in: Linux Servers with 1 answers
SSL certificates: cheap certs that are compatible
Asked in: Debian Linux with 2 answers
ClamAV with PureFTPd
Asked in: Debian Linux with 1 answers
REWARD: When to reboot after package updates ?
Asked in: Debian Linux with 15 answers
Latest Debian APR update
Asked in: Debian Linux with 3 answers
LAMP setup on Debian or Ubuntu ?
Asked in: Debian Linux with 2 answers
Apache MPM worker php
Asked in: Programming with 1 answers
DKIM vs SPF
Asked in: Email Servers with 3 answers
MYSQL dump stops database ?
Asked in: Linux Servers with 3 answers
Basic RAID config for Ubuntu Server
Asked in: Ubuntu Linux with 6 answers
When I am trying to install squid. The following error is coming to resolve this issue. Please suggest me .. rpm -ivh squid-2.5.STABLE6-3.4E.11.i386.rpm warning: squid-2.5.STABLE6-3.4E.11.i386.rpm: Header V3 DSA signature: NOKEY, key ID a7048f8d error: Failed dependencies: libcrypto.so.4 is needed by squid-2.5.STABLE6-3.4E.11.i386 liblber-2.2.so.7 is needed by squid-2.5.STABLE6-3.4E.11.i386 libldap-2.2.so.7 is needed by squid-2.5.STABLE6-3.4E.11.i386 libssl.so.4 is needed by squid-2.5.STABLE6-3.4E.11.i386
Asked in: Linux-Servers  (2 answers)
JimmyC's response: Dependencies can be tricky! Have you tried a version down of the package?
I am stuck with the configuration of LDAP to support SASL authentication. 1. Principal has been created for ldap. 2. cyrus-sasl has been configured. 3. ldapsearch displays that it supports SASL How to troubleshoot it further ? Thanks in advance.
Asked in: Linux-Servers  (1 answers)
JimmyC's response: You've probably already used this article but it's comprehensive if you haven't: http://www.bayour.com/LDAPv3-HOWTO.html
Does someone have a link to a simple explanation on how to get squid3 installed as a transparent proxy in Ubuntu 11.04 Server? Last 2 times I've tried I've managed to stuff it up... Server set up for NAT/Firewall ( iptables ). I.E. As a Home Gateway... ( working ) Interfaces : - ppp0 ( PCI - Dial-up Internet ) - eth0 ( On-Mobo - Static IP - My Machine ) - eth1 ( PCI - Dynamic IP - Guest Machines )
Asked in: Ubuntu-Linux-Servers  (3 answers)
JimmyC's response: Glad it helped a bit anyway.
Does someone have a link to a simple explanation on how to get squid3 installed as a transparent proxy in Ubuntu 11.04 Server? Last 2 times I've tried I've managed to stuff it up... Server set up for NAT/Firewall ( iptables ). I.E. As a Home Gateway... ( working ) Interfaces : - ppp0 ( PCI - Dial-up Internet ) - eth0 ( On-Mobo - Static IP - My Machine ) - eth1 ( PCI - Dynamic IP - Guest Machines )
Asked in: Ubuntu-Linux-Servers  (3 answers)
JimmyC's response: Don't know whether this is too simple (I'm sure you've tried a few HowTos) but from here: http://www.sdharris.com/2011/06/08/transparent-proxy-on-ubuntu-11-04-server/ "If you have any problems check:- - The squid log files in /var/log/squid/; - The port number you configured in squid.conf is the same one you used in the iptables line and that you have added transparent to the http_port line of the squid.conf file; - Manually configure a browser to use the ubuntu server as a proxy to rule out a problem with the iptables."
How to block Torrents in Squid proxy
Asked in: Linux-Servers  (3 answers)
JimmyC's response: This is a long thread but might help. http://ubuntuforums.org/showthread.php?t=1373079
Can somebody tell me how to configure Hudson continous integration tool in CentOS Linux machine? We had installed it using war file+tomcat. Its running but we are not getting the build output. Please tell me how to set artifact file pattern for different file types like .jar,.war etc.....Is it possible to get build as zip file? If so please explain steps in detail.
Asked in: Linux-Servers  (4 answers)
JimmyC's response: This tutorial looks pretty good. Is it what you're after ? Remember to press the Best Answer button if it is :) http://www.howtoforge.com/set-up-hudson-for-continuous-integration-under-linux
I've recently upgraded my Microsoft Exchange servers / organisation to Exchange 2010. I have changed the Offline Address Book settings so that distribution is solely via http (i.e. turned of Public Folder Distribution). I don't use Public Folders for any other purpose; e.g. shared email, shared forms etc. Would it be safe for me to now delete all existing public folders from my Exchange data stores and schema, or, are there some default Exchange functions that still implicitly require the default public folders to be there? Many thanks
Asked in: WindowsServers  (1 answers)
JimmyC's response: I don't have much experience of exchange but I can't think of any reasons why not.
Why can't I find the file /etc/xinetd.conf in fedora 14? Anybody have an idea at the reason?
Asked in: Fedora-Linux-Servers  (3 answers)
JimmyC's response: I would guess xinetd isn't installed, try this maybe: http://www.youtube.com/watch?v=q1RBsXIOBgE
Please enter kill -l in bash and probe number of signals. What has happened to the 32 and 33 kill signals ?
Asked in: Linux-Servers  (4 answers)
JimmyC's response: I'm don't see them on Ubuntu ! Does this help ? http://linux.about.com/od/commands/l/blcmdl7_signal.htm
Our primary HD is crashing and turning the ext3 system into read_only mode, I guess its due to high i/o usage because of about 8k simultaneous users on high traffic hours. Can anyone tell me how to detect high I/O and from what process it's coming from? (apache, php, email, etc). Also, any tips to reduce I/O usage? I'm using a 500 GB SATA HD. Thanks a lot!
Asked in: Linux-Servers  (9 answers)
JimmyC's response: It's a bit hit or miss but try mounting the drive with different settings in /etc/fstab.
Every 1 day or 2 days my centos 5.6 64bit server is shutdowning all the webservices why? Please help me i'm getting this problem after upgrading to 5.6 from 5.5. And please help me the best webserver linux distro for beginners to run large wordpress website. My Server Hardware: AMD Phenom II X6 16GB DDR-III RAM 2x500 GB SATA3 (Raid-Mirror) server runs only apache,php,mysql , pure-ftp and postfix help me to fix or changing os to user friendly
Asked in: Linux-Servers  (5 answers)
JimmyC's response: When you say it shuts down services do you mean they crash ? What does /var/log/syslog say when it happens ? Could it be Apache is too busy and fails or there's bad Wordpress code executed causing it to fail ?
My netcat (nc) doesn't listen! It means when I write nc -l 3333, I can't communicate data with nc 127.0.0.1 3333 in another terminal! Also after writing nc -l 333, I don't see port 333 between the ports which are listening, by netstat -ln | grep 3333. What should I do? Thank you!
Asked in: Linux-Servers  (9 answers)
JimmyC's response: If you do this to check if IPtables is loaded: lsmod | grep iptables or dmesg to look for IPtables modules being loaded up. If it returns nothing mentioning IPttables do this: lsof -i to show which ports are in use then you can try to make netcat listen on a port that isn't in use.
Our primary HD is crashing and turning the ext3 system into read_only mode, I guess its due to high i/o usage because of about 8k simultaneous users on high traffic hours. Can anyone tell me how to detect high I/O and from what process it's coming from? (apache, php, email, etc). Also, any tips to reduce I/O usage? I'm using a 500 GB SATA HD. Thanks a lot!
Asked in: Linux-Servers  (9 answers)
JimmyC's response: I find iotop is excellent for this stuff. Definitely the way to go.
Is it possible to use something like Google's 2-step auth on SSH without loads of config work ? It seems sensible. Thanks.
Asked in: Server-Firewalls  (2 answers)
JimmyC's response: Just what I was looking for, thanks a lot.
I've got so many problems running Centos 5.5 /5.6 64 bit on my server. I need a Linux server distro which can handle Apache, Mysql & PHP perfectly. Can anyone please urgently off any advice ?
Asked in: Server-Networking  (5 answers)
JimmyC's response: I would recommend trying Ubuntu Server. It has an "install LAMP" option during the installation process and the docs are really good - the official docs and the community docs. I'm not saying CentOS isn't good but for entry-level LAMP builds I think you'll find Ubuntu Server easier.
I have loads of text files being adding to a directory and rather than worrying about running out of disk space I'd like to zip them up once a month. They don't need tarred up I don't think because they're just single files like: 345.txt So I just want to make that 345.txt.gz I'm worried that I might delete things by accident or push the server load right up. Also will gzip ignore already .gz files ? How would I do this ? Thank you.
Asked in: ShellScripts  (3 answers)
JimmyC's response: I would put this script in /etc/cron.weekly if files are added frequently. Any files already ending .gz should be ignored by gzip so don't worry. Try this on a desktop so you're confident what it does. It stops the server load getting too high using nice and still zips to the highest level of compression. With enough text you'll save a fair amount of disk space doing this. cd /var/log/files nice -n10 gzip -f * > /dev/null 2>&1
I have over 5 dell p4 pcs, and want to make a cluster using any free linux. Can anyone help please?
Asked in: Linux-Servers  (2 answers)
JimmyC's response: I'm not sure what you want to do with the cluster. This is a really complicated example: https://wiki.ubuntu.com/ClusterStack/LucidTesting This is a less complex example for a web cluster: http://www.howtoforge.com/set-up-a-loadbalanced-ha-apache-cluster-ubuntu8.04
Can anyone point me at a low cost (unmanaged) but high performance rackmountable switch to create a private LAN behind a few servers ? I've looked a Dell but don't think they're great. Thanks.
Asked in: Linux-Servers  (1 answers)
JimmyC's response: I've found these Gigabit Cisco switches to to be okay for the money. I much prefer a managed switch though - more tunable. http://tinyurl.com/68oqy3d
I'm looking for a command line based script or dictionary I can call in a script to check for spelling mistakes on a web interface. Any help out there appreciated.
Asked in: ShellScripts  (3 answers)
JimmyC's response: Ahh, great. Thanks very much.
I need to simulate a high CPU and IO load on a server. With eight consoles open I'm using: cat /dev/urandom > /tmp/FILE On a quad core server with little success ! Any ideas ?
Asked in: Linux-Servers  (3 answers)
JimmyC's response: Thanks ! I'll maybe (carefully) try both at once !
I am currently running Boinc on 7 computers via Ubuntu and have installed SUSE on one but cannot get Boinc to run on it--i downloaded from Yast but the program will not connect to download work--appreciate any help.
Asked in: Suse-Linux-Servers  (4 answers)
JimmyC's response: Are you running ldd as root ? I'm pretty sure most Linux OSs use it.
Can I be sure when I delete a file on my Ubuntu server that no-one will be able to read it from my drive ? Are there any ways to be REALLY sure ?
Asked in: Ubuntu-Linux-Servers  (3 answers)
JimmyC's response: Check out the shred command too.
I am currently running Boinc on 7 computers via Ubuntu and have installed SUSE on one but cannot get Boinc to run on it--i downloaded from Yast but the program will not connect to download work--appreciate any help.
Asked in: Suse-Linux-Servers  (4 answers)
JimmyC's response: Are you able to download the source files and build it from source ? This suggests running ldd to check for library stuff: https://boinc.berkeley.edu/dev/forum_thread.php?id=6137
Vardump isn't removing them and I've tried /r and /n. Any thoughts ? Thanks.
Asked in: ShellScripts  (1 answers)
JimmyC's response: Changing the output to a new variable and them using "trim" with a "\n" bypassed vardump and it worked in the end !
At work, I have an Internet account on a window proxy server, but I am using Fedora 15 as my desktop and I can use the internet through the window proxy server without any problem , the windows proxy is configured to request the account holder to renew the password every 4 weeks. My question is, how can I can renew my password from my Fedora 15 desktop ? I usually, go to a window desktop ,press Alt+Cntrl+Del and select from dialogue menu to renew the password, but i wonder if I can do it from Fedora 15 desktop? Thank you all.
Asked in: Linux-Servers  (3 answers)
JimmyC's response: Interesting. Hopefully someone has experience of this and can help.
Will any one please let me know what a DNS trigger is ?
Asked in: WindowsServers  (1 answers)
JimmyC's response: There's no such thing AFAIK. You can trigger a DNS lookup. A program like a browser might need to trigger a DNS lookup to visit a webpage but otherwise it's a nonsense term.
How can I check which ASN is in use during traceroutes without doing a WHOIS lookup ?
Asked in: Server-Networking  (1 answers)
JimmyC's response: It's actually built into the traceroute client and should be a parameter to switch on. Otherwise download a different traceroute client.
Is this quite easy ? I've never done it before in Linux. Cheers.
Asked in: Linux-Servers  (3 answers)
JimmyC's response: Cheers.
I'm wondering - as I've never bought anything like it and don't want to build it myself - whether it's possible to purchase an "off the shelf" base unit set up for use as a server or whether I'd have to have it built. Thinking of a system with RAID 1 on a hardware controller, using 4 hard drives in a 2x2 format (one pair to be the OS and its mirror, the other pair to be the data drive and its mirror). I'd like the OS to be pre-installed - I'd be adding my own server software - and the RAID system to be already set up and running. Anyone have experience of this?
Asked in: Linux-Servers  (1 answers)
JimmyC's response: Most "bespoke" hardware providers let you choose and do the tricky hardware compatibility stuff for you. Try this site's custom config pages for ideas: http://www.broadberry.co.uk/xeon-e3-rackmount-servers We only go for custom-built servers (and even Dell is custom built remember), there's just too many components to customise to usually just pick up a pre-built box.
To produce prettier graphs ? Can I just use RRDtool on its own and maybe use MRTG stats for example ?
Asked in: Linux-Servers  (2 answers)
JimmyC's response: I see, I was right. Cheers.
Any suggestions on how I could change the way page counts are recorded on a site ? I think I could use AJAX or write them to a text file but that would add IO. Any clever ideas welcome !
Asked in: Linux-Servers  (2 answers)
JimmyC's response: The word for the answer to this is "contentious" :) There's ups and downs to both, IO, consolidation ... as you say. Tricky.
I need to learn DNS and DHCP. I know how to configure them but I just know what all files should be modified :/ I wish to learn them properly and want to understand the files which need to be modified while configuring them. Please help.
Asked in: Linux-Servers  (8 answers)
JimmyC's response: But what explanation ? Your question was too vague to make sense of :( So we can't help without a specific question.
I need to learn DNS and DHCP. I know how to configure them but I just know what all files should be modified :/ I wish to learn them properly and want to understand the files which need to be modified while configuring them. Please help.
Asked in: Linux-Servers  (8 answers)
JimmyC's response: I think that you're probably going to have to offer much more information if that isn't what you're after. You could edit your question to make it much clearer.
Have I covered the ways to secure PHP all below ? Any missing. disable_functions = exec, shell_exec, passthru, system, eval, show_source, proc_open, popen, parse_ini_file, dl Thanks for your help.
Asked in: OtherProgramming  (4 answers)
JimmyC's response: Another perspective is here: http://forum.psoft.net/showthread.php?t=20858&page=1
Have I covered the ways to secure PHP all below ? Any missing. disable_functions = exec, shell_exec, passthru, system, eval, show_source, proc_open, popen, parse_ini_file, dl Thanks for your help.
Asked in: OtherProgramming  (4 answers)
JimmyC's response: Here's more stuff about it: http://www.eukhost.com/forums/f42/disabling-dangerous-php-functions-6020/
I want to setup and virtual machine on my server htat can enable me to access it With graphical interface! like team viewer or remote desktop connection! I heard ubuntu can do that! whats the actuall solution!?
Asked in: Linux-Servers  (5 answers)
JimmyC's response: If you wanted a really light-weight way of doing it (and it's a far more secure way of accessing a server because there's far less code on the server and therefore less chance of security bugs being exploited in the software) then you can install just a few packages and as long as your desktop machine has a GUI Desktop Manager (like Gnome or KDE for example) then using SSH on your server you can launch GUI applications: http://tinyurl.com/6flw2zw It sounds trickier than it actually is. Be sure to use blowfish compression for SSH to speed things right up (ssh -c blowfish ...)
I have a bit of a niggling problem. Normally under bash when you type history you get a number next to the command, typing !NUMBER runs that command, however on our servers this seems to have been disabled my predecessor and we don't have the time to figure out why/how. How can we enable this again?
Asked in: Linux-Servers  (1 answers)
JimmyC's response: You can enable this for one particular user in .bash_profile or .bashrc in their home directory with: shopt -s histappend PROMPT_COMMAND="history -a; $PROMPT_COMMAND" export HISTSIZE=1000 export HISTFILESIZE=1000 export HISTTIMEFORMAT="%h/%d - %H:%M:%S " export HISTIGNORE="[ ]*" I think /etc/bash.bashrc is how to set it for all users on some Linux distros. In the home directory . .bash_profile will reload the profile but some distros prefer if you log in and out again. I always add export HISTIGNORE="[ ]*" which I think is quite clever. One low-risk application I use insists on having a password entered into the command line. To ignore it from being saved in Bash's History simply start the command line with a space and it won't be written to the .bash_history file. Use it to simply ignore a command that you don't want to save too.
I have Centos system with customized application running on it. I want to make bootable usb drive from above. How can I do this ?
Asked in: CentOS-Linux-Servers  (1 answers)
JimmyC's response: Have a look at: http://techie-buzz.com/foss/create-bootable-usb-drive-for-centosredhat.html If that isn't what you need try unetbootin. It's a multi-OS USB stick creator and very good (although a bit buggy): http://unetbootin.sourceforge.net
Why is this showing up in the logs on a new install of Postfix on Ubuntu Linux Server ? (Host or domain name not found. Name service error for name=domain.com type=MX: Host not found, try again) Thank you.
Asked in: Ubuntu-Linux-Servers  (1 answers)
JimmyC's response: Check /etc/resolv.conf it looks like DNS lookups are failing.
I need strip the last few characters off a string in PHP - from the eleventh character of a word I don't want it to be any longer. Is this possible ? Thank you.
Asked in: OtherProgramming  (2 answers)
JimmyC's response: This should help: http://www.php.net/manual/en/function.substr-replace.php $var = 'ABCDEFGH:/MNRPQR/'; /* These two examples replace all of $var with 'bob'. */ echo substr_replace($var, 'bob', 0) . "
\n"; echo substr_replace($var, 'bob', 0, strlen($var)) . "
\n"; /* Insert 'bob' right at the beginning of $var. */ echo substr_replace($var, 'bob', 0, 0) . "
\n"; /* These next two replace 'MNRPQR' in $var with 'bob'. */ echo substr_replace($var, 'bob', 10, -1) . "
\n"; echo substr_replace($var, 'bob', -7, -1) . "
\n"; /* Delete 'MNRPQR' from $var. */ echo substr_replace($var, '', 10, -1) . "
\n";
I'm getting slow ftp uploads to my FileZilla server from the internet side of the router using FireFTP - typically speeds of only about 10Kb (inside the LAN everything's speedy enough). The speeds initially start out much higher - 100Kb+ - but rapidly drop to 10Kb or less. This is despite the broadband speed of the connections at each end being around the 10-meg mark. I tried FileZilla Client - same thing. I have no speed limits, global or individual user, set. Maximum number of threads is set at 10 and the number of connections is set at 0 (unlimited) for future use, but these slow speeds are happening during the testing phase of setting up the server with only one user defined and connected. Any ideas what could be the cause of this? Are there any good diagnostic tools in people's toolkits that might help me find the cause if there is one?
Asked in: Linux-Servers  (11 answers)
JimmyC's response: Yes, you're right. All you want to check is that your ISP is giving you what you expect (ie more than 10kbps !). You're checking the network is working correctly before looking at the application. So if it's an ADSL line and you connect at 8Mbps, the chances are you'll get 4Mbps in the UK as a yardstick. The results from these tools are just in Mbit or Kbit. Remember kbps and KB/s are different ! Try and stick to kbps and megs for ease.
I'm getting slow ftp uploads to my FileZilla server from the internet side of the router using FireFTP - typically speeds of only about 10Kb (inside the LAN everything's speedy enough). The speeds initially start out much higher - 100Kb+ - but rapidly drop to 10Kb or less. This is despite the broadband speed of the connections at each end being around the 10-meg mark. I tried FileZilla Client - same thing. I have no speed limits, global or individual user, set. Maximum number of threads is set at 10 and the number of connections is set at 0 (unlimited) for future use, but these slow speeds are happening during the testing phase of setting up the server with only one user defined and connected. Any ideas what could be the cause of this? Are there any good diagnostic tools in people's toolkits that might help me find the cause if there is one?
Asked in: Linux-Servers  (11 answers)
JimmyC's response: A couple of thoughts spring to mind: Don't be too certain about the connection starting correctly and then throttling back. The difference between what you can fit down the pipe and the maximum speed of the pipe is always pretty different, in simple terms. Check your speed and duplex on the NICs. You might get fast UDP and erratic TCP if you have one NIC accidentally at HD not FD. You might not notice this in a LAN because latency is far less usually. The best tools are iperf and netcat (use nc -l ...) for throughput testing. I know it sounds rudimentary but spend 10 minutes checking your *actual* connection speeds with one or both of these tools. You'd be surprised how poor some DSL performance is .... really :) You can then get deeper into config parameters if you're 100% certain that the network is as you'd expect.
How can I connect my two computers running from Ubuntu 11.04 by using a cross over cable, so that I can transfer data between these two computers ?
Asked in: Ubuntu-Linux-Servers  (1 answers)
JimmyC's response: All you would do it allocate a private IP address to each computer's network card, in /etc/network/interfaces. See here: http://tinyurl.com/2oxnnw Just have one as 10.10.10.10 and the other as 10.10.10.11 with 255.255.255.0 as the subnet mask. To be sure they can communicate run a few ping tests. Once both computers can ping each other you can use something like sFTP or Samba to move files back and forth. This might help, otherwise look up installing "openssh server" and using sFTP. http://www.howtogeek.com/howto/ubuntu/install-samba-server-on-ubuntu/
Can you integrate virus scanners into FTP servers these days ? I haven't used ClamAV for ages. Thanks.
Asked in: Debian-Linux-Servers  (1 answers)
JimmyC's response: After more hunting I found this on Debian: http://www.howtoforge.com/how-to-integrate-clamav-into-pureftpd-for-virus-scanning-on-debian-lenny Excellent.
I am new to Linux world and I need help in understanding yum server.
Asked in: RedHat-Linux-Servers  (3 answers)
JimmyC's response: This should give you a good starting point: http://tinyurl.com/4x2rdua
I need a script to check temperature in a server and then email me if it gets past 50 degrees celcius. Using a hard drive's temperature would be fine I think. I've tried writing my own script using hddtemp but I'm no good at Bash. A £5 Amazon voucher is up for grabs for helping me out. Thanks.
Asked in: ShellScripts  (5 answers)
JimmyC's response: Something like this should do it, if hddtemp is installed: #!/bin/bash value=0; hddtemp -q /dev/sda > /tmp/.check_temp; value=`awk '{ print $3 }' /tmp/.check_temp | sed -e ' s/°C//'`; if [ $value -gt 49 ] then echo "Temperature is $value degrees C " > /tmp/mail_file; mailx -s "ALARM" mail@domain.com < /tmp/mail.file else exit 0 fi
I have used checkrestart from debian-goodies to see if some old library files are still in use after a package update on Debian and Ubuntu. I have a list of kernel packages, libc packages and d-bus package updates that definitely need a server reboot. I use Uptrack from www.ksplice.com to keep the kernel reboots to a minimum (it's great so far) but I need to know when to reboot after other package updates (and only when necessary). The best answer will get 50 points and an £10 Amazon voucher. Tell me which Amazon site you use if you get selected. Cheers.
Asked in: Debian-Linux-Servers  (15 answers)
JimmyC's response: I understand but on a very important production server you can't introduce instability, especially when tools like Uptrack from ksplice.com mean that a server may be up for several months at a time. From what I've seen there's no immediate issue with something like libc upgrading but at some undetermined point later on a critical service crashing isn't welcome, especially if you then spend ages trying to diagnose it. Also it's not possible to -HUP quite a few Debian-based services without knocking over key services, the d-bus example being one.
I have used checkrestart from debian-goodies to see if some old library files are still in use after a package update on Debian and Ubuntu. I have a list of kernel packages, libc packages and d-bus package updates that definitely need a server reboot. I use Uptrack from www.ksplice.com to keep the kernel reboots to a minimum (it's great so far) but I need to know when to reboot after other package updates (and only when necessary). The best answer will get 50 points and an £10 Amazon voucher. Tell me which Amazon site you use if you get selected. Cheers.
Asked in: Debian-Linux-Servers  (15 answers)
JimmyC's response: But libc is used by almost every package on a Debian-based system and running some services on older libraries and some on new at the same time is a recipe for instability. Surely ? My experience of Gentoo tells me that at least libc can universally break an entire system after an upgrade without a reboot :) I learned the "Gentoo" way :)
I have used checkrestart from debian-goodies to see if some old library files are still in use after a package update on Debian and Ubuntu. I have a list of kernel packages, libc packages and d-bus package updates that definitely need a server reboot. I use Uptrack from www.ksplice.com to keep the kernel reboots to a minimum (it's great so far) but I need to know when to reboot after other package updates (and only when necessary). The best answer will get 50 points and an £10 Amazon voucher. Tell me which Amazon site you use if you get selected. Cheers.
Asked in: Debian-Linux-Servers  (15 answers)
JimmyC's response: More here: http://www.linux-archive.org/ubuntu-user/437233-upgraded-packages-require-restart.html
I have used checkrestart from debian-goodies to see if some old library files are still in use after a package update on Debian and Ubuntu. I have a list of kernel packages, libc packages and d-bus package updates that definitely need a server reboot. I use Uptrack from www.ksplice.com to keep the kernel reboots to a minimum (it's great so far) but I need to know when to reboot after other package updates (and only when necessary). The best answer will get 50 points and an £10 Amazon voucher. Tell me which Amazon site you use if you get selected. Cheers.
Asked in: Debian-Linux-Servers  (15 answers)
JimmyC's response: I think this is where my info on d-bus partially came from: https://wiki.ubuntu.com/DbusRestart I almost tried restarting dbus on a server then to see, and I'm VERY glad I didn't. I tried it on a desktop and the whole machine failed and needed powered off and on again !
I have used checkrestart from debian-goodies to see if some old library files are still in use after a package update on Debian and Ubuntu. I have a list of kernel packages, libc packages and d-bus package updates that definitely need a server reboot. I use Uptrack from www.ksplice.com to keep the kernel reboots to a minimum (it's great so far) but I need to know when to reboot after other package updates (and only when necessary). The best answer will get 50 points and an £10 Amazon voucher. Tell me which Amazon site you use if you get selected. Cheers.
Asked in: Debian-Linux-Servers  (15 answers)
JimmyC's response: That's interesting. Do you have any links saying that libc and dbus don't need a reboot ? It's not what I've found, searching for info on this. How do you reload d-bus on a Debian machine ? I'm not sure.
I have used checkrestart from debian-goodies to see if some old library files are still in use after a package update on Debian and Ubuntu. I have a list of kernel packages, libc packages and d-bus package updates that definitely need a server reboot. I use Uptrack from www.ksplice.com to keep the kernel reboots to a minimum (it's great so far) but I need to know when to reboot after other package updates (and only when necessary). The best answer will get 50 points and an £10 Amazon voucher. Tell me which Amazon site you use if you get selected. Cheers.
Asked in: Debian-Linux-Servers  (15 answers)
JimmyC's response: Thank you for the script. That will be useful. On Debian and Ubuntu there is actually a mechanism for saying which packages need a reboot after being updated but it seems that the maintainers of some packages don't always follow protocol and add it correctly and therefore it's unreliable. Basically if this exists then when you login a note is triggered /var/run/reboot-required.pkgs. Ksplice sidesteps this with this script in /usr/share/update-notifier/notify-reboot-required. #!/bin/sh # Ksplice: don't notify about reboots required by kernel upgrades if echo "$DPKG_MAINTSCRIPT_PACKAGE" | grep -q "^linux-image-2[.]6[.]"; then # Add another line to the list of reboots we've saved. echo "$DPKG_MAINTSCRIPT_PACKAGE" $(date) >> /var/cache/uptrack/reboots_saved elif echo "$DPKG_MAINTSCRIPT_PACKAGE" | grep -q "^libssl0.9.8"; then # Work around LP #244250, a bug in libssl configure script that # sends a reboot notification unnecessarily. true else if [ -x /usr/share/update-notifier/notify-reboot-required.ksplice-orig ]; then /usr/share/update-notifier/notify-reboot-required.ksplice-orig "$@" fi fi I really just need a list I can trust which means fewer reboots for my production servers.
I have used checkrestart from debian-goodies to see if some old library files are still in use after a package update on Debian and Ubuntu. I have a list of kernel packages, libc packages and d-bus package updates that definitely need a server reboot. I use Uptrack from www.ksplice.com to keep the kernel reboots to a minimum (it's great so far) but I need to know when to reboot after other package updates (and only when necessary). The best answer will get 50 points and an £10 Amazon voucher. Tell me which Amazon site you use if you get selected. Cheers.
Asked in: Debian-Linux-Servers  (15 answers)
JimmyC's response: Thanks, I'll clarify my question a bit further. My understanding is: I never want to run an unstable server by not rebooting when it's necessary (by running old and new libraries simultaneously that make it unstable or because the system is insecure because new patches haven't been properly applied) and I also only want to reboot when it's absolutely necessary because they are production servers. An example might be when lsof (through debian-goodies) can't find an /etc/init.d start/stop script to restart services that still have old libraries attached to them. I know that d-bus and libc need a reboot under those circumstances or the system will be unstable but not all daemons/services need a reboot and are important to maintaining stability so I'd like a comprehensive way of being able to tell or a list of absolutely critical updates that need a reboot.
How To Install Network Monitoring "Nagios" On Mandriva Please Help Me, Urgent!
Asked in: Linux-Servers  (2 answers)
JimmyC's response: Does this help you at all ? It's translated into English through Google so proceed with caution :) http://tinyurl.com/6jd5r6q
Is it possible to use it on Ubuntu Server for backups ? It's seems like a good idea.
Asked in: Ubuntu-Linux-Servers  (2 answers)
JimmyC's response: It's pretty easy to write a simple script around that tool.
Is there any way of knowing if this security update needs me to restart Apache on my web servers ? It's this update: http://www.debian.org/security/2011/dsa-2237 Thanks, I really hate stopping and starting Apache !
Asked in: Debian-Linux-Servers  (3 answers)
JimmyC's response: I've just seen the last bit of that text on the advisory. Duh. I suppose a full "restart" and not just "reload" is needed ?
I don't want all the fake logins and need to change from port 22 but how do I do that ?
Asked in: Linux-Servers  (2 answers)
JimmyC's response: Yes, it's worth changing the default port these days for sure.
Using PHP, is it possible to combine 2 pdfs such that one of them is used as a template for the other: I have 1 PDF which is laid out like a standard letterhead, with graphics in the header, and text in the footer. I have another PDF with the contents of a letter in it (margins set correctly for the layout). I want to use the letterhead template as an overlay on the content PDF, so that the resulting PDF is the actual letter with the letterhead template applied.
Asked in: OtherProgramming  (1 answers)
JimmyC's response: I haven't used it but this looks similar: http://www.kennynet.co.uk/2008/11/26/php-and-pdf-templates/ Although templating makes sense, it might be easier to follow a header and footer approach in the long run.
Should I install DKIM ? I see Google and Yahoo use them but do anyone else ? The patching for Domain Keys in Postfix looks quite hard.
Asked in: Email-Servers  (3 answers)
JimmyC's response: Great, thanks alot.
I have two identical drives in my new server and I'm going to put Ubuntu on it. What's the most reliable RAID config for automatically running off the other drive if a drive fails ? I've never used RAID before. Cheers for any help.
Asked in: Ubuntu-Linux-Servers  (6 answers)
JimmyC's response: Thanks. Would this mean that if one drive failed I wouldn't need access to the Server (unless I was to replace the failed drive) but it would keep running automatically ?
Does someone have a link to a simple explanation on how to get squid3 installed as a transparent proxy in Ubuntu 11.04 Server? Last 2 times I've tried I've managed to stuff it up... Server set up for NAT/Firewall ( iptables ). I.E. As a Home Gateway... ( working ) Interfaces : - ppp0 ( PCI - Dial-up Internet ) - eth0 ( On-Mobo - Static IP - My Machine ) - eth1 ( PCI - Dynamic IP - Guest Machines )
Asked in: Ubuntu-Linux-Servers  (3 answers)
JimmyC's response: Don't know whether this is too simple (I'm sure you've tried a few HowTos) but from here: http://www.sdharris.com/2011/06/08/transparent-proxy-on-ubuntu-11-04-server/ "If you have any problems check:- - The squid log files in /var/log/squid/; - The port number you configured in squid.conf is the same one you used in the iptables line and that you have added transparent to the http_port line of the squid.conf file; - Manually configure a browser to use the ubuntu server as a proxy to rule out a problem with the iptables."
I have loads of text files being adding to a directory and rather than worrying about running out of disk space I'd like to zip them up once a month. They don't need tarred up I don't think because they're just single files like: 345.txt So I just want to make that 345.txt.gz I'm worried that I might delete things by accident or push the server load right up. Also will gzip ignore already .gz files ? How would I do this ? Thank you.
Asked in: ShellScripts  (3 answers)
JimmyC's response: I would put this script in /etc/cron.weekly if files are added frequently. Any files already ending .gz should be ignored by gzip so don't worry. Try this on a desktop so you're confident what it does. It stops the server load getting too high using nice and still zips to the highest level of compression. With enough text you'll save a fair amount of disk space doing this. cd /var/log/files nice -n10 gzip -f * > /dev/null 2>&1
Will any one please let me know what a DNS trigger is ?
Asked in: WindowsServers  (1 answers)
JimmyC's response: There's no such thing AFAIK. You can trigger a DNS lookup. A program like a browser might need to trigger a DNS lookup to visit a webpage but otherwise it's a nonsense term.
About Us : Contact Us : Etiquette : Terms : CDN Failover : ShorterURL : CDN Fallback : © 2013 Server Circle