Ubuntu

Connecting to Microsoft SQL Server using ODBC from Ubuntu Server | James Rossiter

sudo apt-get install php5-odbc via Connecting to Microsoft SQL Server using ODBC from Ubuntu Server | James Rossiter.

Read More...

find PHP sending spam on your server logging smtp emails sent through PHP sendmail Ubuntu

Is your webserver under attack and you think it’s being generated by a domain sending SPAM using PHP? Here’s a solution to log all of the PHP mail() traffic and view it in your browser. Create a file called “phpsendmail” – I put mine into /usr/sbin/phpsendmail Here’s the code. Make sure your server has “sendmail”…

Read More...

Postfix delete mail from mailq with perl script

#!/usr/bin/perl $REGEXP = shift || die “no email-adress given (regexp-style, e.g. bl.*\@yahoo.com)!”; @data = qx; for (@data) { if (/^(\w+)(\*|\!)?\s/) { $queue_id = $1; } if($queue_id) { if (/$REGEXP/i) { $Q{$queue_id} = 1; $queue_id = “”; } } }   open(POSTSUPER,”|postsuper -d -“) || die “couldn’t open postsuper” ;   foreach (keys %Q) { print…

Read More...

build your own open source encrypted dropbox!

Encbox.md.

Read More...

Bits of Brilliance: Session Five | projectMONA

The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!) via Bits of Brilliance: Session Five | projectMONA.

Read More...

Trying to Delete Millions of Files in Linux but get an error: Argument list too long

Great source for deleting millions of files in a ubuntu directory when you get an error: /bin/rm: Argument list too long. Well, simply navigate to the directory with the problem and execute this: ls -1 | wc -l && time find . -type f -delete Apparently, ‘find’ can handle large number of files better than…

Read More...

“I Contribute to the Windows Kernel. We Are Slower Than Other Operating Systems. Here Is Why.” – Zorinaq

Interesting insight as to why Windows Kernel is failing / falling behind… “I Contribute to the Windows Kernel. We Are Slower Than Other Operating Systems. Here Is Why.” I was¬†explaining on Hacker News why Windows fell behind Linux¬†in terms of operating system kernel performance and innovation. And out of nowhere an anonymous Microsoft developer who…

Read More...

Mounting Linux (ext2/ext3) partitions under Mac OS X

Opera Omnia: Tom Pennings’ Blog: Mounting Linux (ext2/ext3) partitions under Mac OS X.  

Read More...

Ubuntu – Command Line Disk Usage in Terminal for All Directories

  Not quite happy with the available disk usage analyzers and looking for a fun project to get used to C programming, I started working on ncdu: A disk usage analyzer with an ncurses interface, aimed to be run on a remote server where you don’t have an entire gaphical setup, but have to do…

Read More...

FTP Command Line Upload Directories Recursively -R Upload All Directories using NcFTP on Ubuntu

I have to transfer a bazillion files from one server to another via FTP and I don’t know how to do this. I’ve been using the archaic FTP since the early 90s and have never figure this out, or for that matter needed to until today when I had to upload about a terabyte of…

Read More...

Open Source Dropbox SparkleShare – Self hosted, instant, secure file sync

SparkleShare – Self hosted, instant, secure file sync. How does it work? SparkleShare creates a special folder on your computer in which projects are kept. All projects are automatically synced to their respective hosts (you can have multiple projects connected to different hosts) and to your team’s SparkleShare folders when someone adds, removes or edits…

Read More...

Ubuntu MagicSpam Plesk can’t install needs libmilter package

Getting some error like: magicspam-plesk depends on libmilter1.0.1; Trying to install MagicSpam on Unbuntu 12.04 and Plesk 11? apt-get install libmilter-dev   root@blue:/tmp# sudo dpkg -i magicspam-plesk-1.0.5-3-precise64-postfix10.amd64.deb (Reading database … 188972 files and directories currently installed.) Preparing to replace magicspam-plesk 1.0.5-3 (using magicspam-plesk-1.0.5-3-precise64-postfix10.amd64.deb) … Unpacking replacement magicspam-plesk … dpkg: dependency problems prevent configuration of magicspam-plesk:…

Read More...

exceeds MaxRequestLen (16777216) plesk mod_fcgid unable to upload large files

So you’ve upgrade to Plesk and your users can’t upload large files any more. Upon looking at your log files, you see an fcgi error [warn] [client x.x.x.x] mod_fcgid: HTTP request length 16777256 (so far) exceeds MaxRequestLen (16777216) Where is maxrequestlen (16777216) set in Parallels Plesk 11 and Ubuntu It’s in a 2 locations… Edit…

Read More...

Ubuntu 12 Host or domain name not found. Name service error. Resolv.con – resolvconf

After updating to Ubuntu 12.04 my DNS networking is whacked. Postfix is getting these errors: Host or domain name not found. Name service error Apparently you can’t edit the /etc/resolv.conf file directly because it will be overwritten by the ‘system’ # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS…

Read More...

Ubuntu 12 Postfix Messages Stuck In Queue

Command To See Postfix Queue % mailq or % postqueue -p FLUSH Messages In Queue % postfix flush or % postqueue -f Hope this helps.

Read More...

Postfix Plesk on Ubuntu Error fatal: open database /var/lib/postfix/smtpd_scache.db: Invalid argument

Woke up this morning and the Postfix SMTP server on Ubuntu 10.04 and Plesk stopped running. I could start and stop via service # service postfix start and it appeared everything was working fine. However, it wasn’t until I looked at the syslog /var/log/syslog that I saw an error occurring on start up. Nov 26…

Read More...

gt5 – a diff-capable ‘du-browser’

Years ago, I was proud to own an 80MHz, 16MB RAM PC with a huge 512MB harddisk. But even on this incredibly huge harddisk, my diskspace seemed to disappear over time. So I wrote a little tool to find out where all my diskspace had gone: I called it gettree, as it showed all files…

Read More...

Turn an Old Computer into a Networked Backup, Streaming, or Torrenting Machine with Ubuntu

  Turn an Old Computer into a Networked Backup, Streaming, or Torrenting Machine with Ubuntu.

Read More...

Plesk Ubuntu / Linux Log and Config file locations

http://kb.parallels.com/en/111283 Another nice page to help me remember where all those log files and config files are for Parallels Plesk Panel for Linux services logs and configuration files

Read More...

Linux Malware Detect from R-fx Networks

What an AWESOME project. I’m so thankful to have found this. Scan your server for malware. We had a server getting slammed with a malware file. Linux Malware Detect found it. Thanks, THANKS! Linux Malware Detect | R-fx Networks. Linux Malware Detect (LMD) is a malware scanner for Linux released under the GNU GPLv2 license,…

Read More...