- How to wire a CAT5 plug correctly?
Here you see the correct wire mapping of a CAT5 cable, straight and crossover:easy, right? ...
- How to debug a POP3 connection/server?
You can do that quite easily with your windows/linux client by just using telnet:(bold text are commands from us, the rest are responses from the ...
- How to "hard" reboot a server?
your server is still able to login you via ssh but doesn´t do anything about the reboot command?
Well, you can try this little c programm, ...
- How to create MySQL dumps?
As you have to move a MySQL database from one server to another you might run into troubles. Tools like phpMyAdmin may help you on ...
- How do I add comments to HTML code?
Well, this one is quite easy:to start the comment use:<!--to close it:--> ...
- How do I create a Debian mirror?
This is a bit more complicated, but here you go:First we install the package from the debian team which helps us setting up the mirror:aptitude ...
- How to ensure PHP session concurrency on multiple HTML servers?
well, this is a quite common problem, depending on which load balance
system you are using, let us first explain the problem itself:
You got 2 HTML ...
- How to install mplayer on Kubuntu and Ubuntu?
edit /etc/apt/sources.list and uncomment the lines for universe (remove the "#" in front of the lines)
add a line similar to universe see the example: ...
- How do I fix "qmail: alert: cannot start: unable to open mutex"?
Hello,
well, this shouldn´t happen at all, but it happens if you empty the queue by just deleting the files in the /var/qmail/queue directory, anyhow, ...
- How do I install ASSP?
Hello!
Well this is not that complicated, just stick with this and you will be fine.
install perl and cpan on your system ( e.g. ...
- How do I upgrade CPAN?
Hi!
well, first of all, be sure what you are doing! Usually your distribution comes with some version of CPAN and works best with that version, of ...
- How do I fix "4gb seg fixup, process xxx" running XEN on Debian (Etch)?
Hi Folks,
well it has happend too me and the fix for that is really easy, I installed XEN and suddenly it just appeared, everything was ...
- How do I resize a Virtual VMware Disk?
Also that isn´t really hard, there is a tool for this, called vmware-vdiskmanager.
shut down the VM machine
locate the regarding disk image (in Debian: /var/lib/vmware/Virtual Machines/VMNAME/*.vmdk) ...
- How do I install killall in Debian Etch?
Hello,
today I found out, that after upgrading my Sarge boxes to Etch the killall tool is missing, which is usually quite handy at times, so ...
- hwclock: select() to /dev/rtc to wait for clock tick timed out?
Hello,
well that lately has happend to me on very new hardware from IBM while running:
hwlclock --systohc
I am quite unsure about the cause, but in ...
- How do I change the timezone within Debian?
well that one is pretty simple, just call:
tzconfig
and set it to whatever you please. If you do not want to use UTC time on your ...
- How do I create a fat32 paritition with Windows XP ( fat32format )?
Hello folks,
well as Microsoft has decided to strip fat32 from the formating tool, you do not have much choice to create a fat32 partition anymore. ...
- How do I flush the qmail queue?
Well, you just have to send the ALARM signal to qmail-send process:
killall -ALRM qmail-send
that´s already it. Alternatively you can try:
/var/qmail/bin/qmail-tcpok(this is the standard ...
- How do I delete the qmail queue?
that is pretty simple too, but remember: ALL emails will be deleted and gone forever:
/etc/init.d/qmail stop ( or qmailctl stop)
cd /var/qmail/queue ( be ...
- How do I fix the index of an avi (divx) file?
Hello,
well this problem seems to be pretty common, especially with downloaded files from the internet, so here is how you can fix it:
browse to http://www.mplayer.at ...
- How to setup a transparent proxy with squid?
There are a few ways to achieve a transparent proxy, the one I am describing here is with the Linux system being the gateway and ...
- How do I install Adobe Flash Media Server 3.0 on Debian Etch?
Hello folks,
I stumbled into this myself and so I wanted to tell you how I did fix that problem. One thing for starters: I did ...
- How do I install MySQL 4.1 on Debian Etch / Debian 4.0?
Hi Folks,I ran into that problem and here is a quite easy solution, thanks to www.mytso.net: edit /etc/apt/sources.list add the following line: deb http://debian.mytso.net/etch / edit /etc/apt/preferences add the following ...
- How do I convert / change / delete more then one MySQL table?
Well, a quite simple task but still with a few dozen tables this might become quite some work in phpMyAdmin for example.To solve this, we ...
- How do I enable IP forwarding (ip_forwarding) in Debian Lenny / Etch?
Well first check if it is not yet enabled, you can do that by:
cat /proc/sys/net/ipv4/ip_forward
If the result is 0 it is in fact disabled.
To enable ...
- How do I change the default editor in Debian Lenny / Etch / Squeeze?
Hi there,
well that one is pretty easy, just run:
update-alternatives --config editor
and select your favourite editor, good luck! ...
- How do I flush the exim mail queue?
Hi Folks,
well, here is something to get you started:
exim -qf
exim -qff
The first command will rerun the mail queue and the second one will also try ...
- How do I view the exim mail queue?
Well, one easy thing to to do: exim -bp enjoy! ...
- How do I install mplayer on Mac OS X?
Hi fellow Mac users,
the problem is that the mplayer builds supplied by the mplayer people themselves are really outdated so it is suggested to stick ...
- How do I refresh the partition table in (Debian) Linux?
Well, there are a few ways to do that: of course rebooting the system is the most obvious. Anyhow, without rebooting you just need to ...
- How do I install rtorrent with xmlrpc?
Hi there,
well on Debian (Etch/Lenny) this is not that hard:
aptitude install libsigc++-2.0-dev build-essential libncurses5-dev libcurl4-openssl-dev libwww-dev libwww-ssl-dev subversion
for Etch:
aptitude install libsigc++-2.0-dev build-essential libncurses5-dev libcurl3-dev libwww-dev ...
- How do I remove all messages from exim queue?
this is also quite simple:
exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}' | bash
this should / will also work:
exim -bp | exiqgrep -i ...
- How to show MySQL version?
just run this query:
select version(); ...
- How to enable Time Machine on unsupported volumes?
Just run that command in terminal and you can use any device for Time Machine backups:
defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1
...
- How to jailbreak a iPhone 3G or 3Gs with iPhone OS 3.1.2? (with tethering?)
this time the answer is (finally!!!) quite easy:
update your iPhone via iTunes to iPhone OS 3.1.2
Download and run Blackra1n (runs on Windows and Mac OS ...
- How do I upgrade from Debian Etch to Debian Lenny?
Hi Folks,
Lenny is out for a few days now and the upgrade process is quite straight forward:
(please do that in textmode and not in your ...
- How do I set a smarthost in qmail?
Hi Folks,this is also quite easy: echo ":HOSTNAME" >/var/qmail/control/smtproutes (e.g. echo ":mx1.gosi.at" >/var/qmail/control/smtproutes ) ...
- How to convert a parition to NTFS?
convert c: /FS:NTFS (replace c with the partition name you want to convert to NTFS) ...
- How to jailbreak a iPhone 3Gs with iPhone OS 3.0?
well, so far there are two solutions: purplera1n from geogot and redsn0w from the iphone-dev team.
resn0w:
browse to http://blog.iphone-dev.org/post/126908912/redsn0w-in-june
read the text
do the magic!
purplera1n:
works with Windows XP, Windows 7 ...
- How to jailbreak a iPhone 2G/3G with iPhone OS 3.0?
Thanks to the iphone dev team there are two ways to achieve that very easily (also be sure to read the notes carefully for each ...
- How to unlock your iPhone 3G / 3Gs?
Thanks again to the iPhone dev team there is already a solution for this, once you have jailbreaked your iPhone: make sure your iPhone indeed runs ...
- How to use suspend to disk in Mac OS X?
Usually your Mac Book does a special thing, that is called "safe suspend", what happens here is that the RAM content gets written on the ...
- How to create ext3 filesystem using mke2fs?
well, sometimes on older / embedded system mkfs.ext3 might not be available, but mke2fs, so what you do it create and ext2 with journal, which ...
- How to achieve "htaccess style" authentication with lighttpd ( lighty )?
well that is also easy with Debian (Etch or Lenny):
lighty-enable-mod auth( non debian users might just add ...
- How do I flush the postfix queue?
This task is pretty straight forward:
postqueue -f
Afterwards you might want to tail the maillog and see what happens.Or you might also want to use this ...
- How to activate internet tethering on iPhone OS 3.0?
well that is quite easy, you just need to update your carrier profile, to make easy for you, browse with your iPhone to the following ...
- How to disable fsck upon startup?
not that this is recommended but with a journaling file system you should be fine in most cases, so:
tune2fs -i 0 -c 0 /dev/sda
...
- How to undelete removed/deleted files on an ext3 fs?
Well, there are three ways I know and have succeeded so far:
Follow this instructions: http://www.xs4all.nl/~carlo17/howto/undelete_ext3.html
the other way is to scan the partition/drive for file signatures ...
- How do I convert an ext2 to an ext3 file system?
first of all: check if your kernel supports ext3!(most kernels since 2006 do that anyhow, so you should be fine)
optional step: touch /forcefsckand reboot(this will ...
- How to install glusterfs in Debian Lenny?
cd /usr/src
wget "http://ftp.gluster.com/pub/gluster/glusterfs/2.0/LATEST/glusterfs-2.0.8.tar.gz"
wget "http://download.gluster.com/pub/gluster/glusterfs/fuse/fuse-2.7.4glfs11.tar.gz"
tar -zxf glusterfs-2.0.8.tar.gz
tar -zxf fuse-2.7.4glfs11.tar.gz
aptitude install sshfs build-essential flex bison byacc libdb4.6 libdb4.6-dev libfuse-dev
cd fuse-2.7.4glfs11
./configure && make && ...
- How to stop ssh brute force attacks?
well, there are a few way, the way of my choosing is to just use the recent module from iptables:
iptables -A INPUT -p tcp --dport ...
- How do I create a self signed SSL certificate for lighttpd (lighty)?
this is just a rough guide, but should work out fine:
cd ˜
openssl genrsa -des3 -out server.key 1024
openssl req -new -key server.key -out server.csr
cp server.key server.key.org
openssl ...
- How to run MacFUSE on Snow Leopard 64 bit?
Hi folks,
well, I ran into this problem some time ago and well, you could built it yourself from the google code project, but that is ...
- How to fix iconv: cannot open input file ´database.txt': File too large?
If you run into this problem there is one guy who already solved this and put it into an easy to use perl script.Check it ...
- How to limit lighttpd´s max upload file size?
well this is also pretty easy, just be sure to keep in mind the value is set in kilobytes (KB)!You just have to put that ...
- How do I disable the PHP error reporting?
This is quite easy, just add this to your PHP file:
error_reporting("E_ALL") ;
you can also achieve this via .htaccess if AllowOverride is set correctly:
php_flag display_errors off
If ...
- How to fix broken sasl after system update?
If you get error message like these on Debian Lenny/Etch (after an system upgrade):
No run directory defined for , cannot stop
No run directory defined for ...
- How to fix Confixx after perl/CPAN update?
If you encounter errors like this one:
Can't locate loadable object for module Confixx::Filter
in @INC (@INC contains: ...
- How to recover the MySQL root password?
Well, this happens from time to time and is actually easy to fix, so here you are:
/etc/init.d/mysql stopmysqld_safe --skip-grant-tables &
mysql -u root
you should now be ...
- How to fix "warning: mail_queue_enter: create file maildrop Permission denied”
just fixed that for a customer and wanted to let you know about my findings:First of all, stop postfix, check if it is still running, ...
- How to fix "warning: not set-gid or not owner+group+world executable"?
In my case it appeared in the logs for two files:postfix/postfix-script: warning: not set-gid or not owner+group+world executable: /usr/sbin/postqueuepostfix/postfix-script: warning: not set-gid or not owner+group+world ...
- How to fix "SecurityException in Application.cpp:168: Do not have root privileges. Executable not set-uid root?"?
Fixing that was actually quite easy:
chmod u+s /usr/lib/suphp/suphp
/etc/init.d/apache2 restart(or whatever http daemon you are using)
Enjoy! ...
- How to reset the CPAN configuration?
This is pretty easy, so here we go, in CPAN you just issue the following command:
o conf init
That´s it, CPAN should now start to ask ...
- How to change file encoding to utf-8 via vim?
There are a few ways to achieve that, here is for a single file:
vi filename.php:set bomb:set fileencoding=utf-8:wq
This way is a bit more automated:
vi --run-command=':set bomb, ...
- How to install Tomcat5.5 in Debian Lenny?
here are a few hints to get you started:
you need to change your /etc/apt/sources.list so it does include the non-free repository,so it will look like ...
- How to debug "back to my Mac" feature in Mac OS X?
Well, I was kinda amazed that Apple has built in quite some nice console tools for debugging, so open an terminal and run the following ...
- How to install PHP 5.3 next to 5.2.x or 4.x?
There are certain ways to achieve this, since the main reason for me doing that is testing, I choose the way with the least effort ...
- How to monitor MySQL replication with Nagios?
Well, I wrote that script quite a while ago, it worked for me, so here you are:
#!/usr/bin/php -q
<?php
$host = $argv[1];
$user = $argv[2];
$pass = $argv[3];
$link = ...
- How to format a USB stick with NTFS in Windows XP?
While sadly Microsoft has removed FAT32 support from everything but USB sticks, they also didn´t include the ability to format a USB stick with NTFS. ...
- How to install Debian Lenny from a USB stick?
Hi there,the only hard thing here is preparing the USB stick, but actually the Debian guys took care of most of the process so, here ...
- How to undelete removed/deleted files on an ext3 / ext4 fs?
Here is a new tool that will help you with recovering files from an ext3 or ext4 partition:http://extundelete.sourceforge.net/ ...
- How to convert an ext3 partition to ext4?
Well, this is actually not too hard and ext4 gives better performance in various cases, so an update to ext4 is surely not a bad ...
- How to compile a custom kernel in Debian Lenny / Etch?
This is usually quite straight forward, since Debian brings utilities with it to do this:
aptitude install build-essential kernel-package fakeroot libncurses5-dev bzip2
cd /usr/src
wget "http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.36.tar.bz2"
tar -jxf linux-2.6.36.tar.bz2
cd ...
- How to disable screen blank(ing) in Debian?
This is easy to achieve to just edit this file with your favorite editor:
vi /etc/console-tools/config
change BLANK_TIME and POWERDOWN_TIME to 0:
BLANK_TIME=0
POWERDOWN_TIME=0
reboot, done! ...
- How do I upgrade from Debian Lenny to Squeeze?
Here you go:
(please do that in textmode and not in your GUI, so KDE or whatever can be restarted without any issues)
vi /etc/apt/sources.list
(change lenny to ...
- How to install PHP and MSSQL driver for PHP on a Windows server?
Well the installation is easy, but getting the right driver is a bit hard. There are many version available, a few different open source project ...
- How to install awstats 7.0 on Debian Lenny/Squeeze?
Even Squeeze comes with an outdated version of awstats, with Lenny it is even worse. So here a few steps to update your installation to ...
- How to install ruby / rubygems / passenger on Debian Squeeze / Lenny?
Here are a few steps to get you started:
aptitude update
aptitude install ruby ruby1.8-dev irb rdoc build-essential mysql-client libmysql-ruby libmysqlclient15-dev
The enviroment is setup, now we ...
- How to remove an entry from the preference pane?
As in most cases with the Mac OS X operating system, those entries are just plain files on your hard drive.You should look in those ...
- How to fix "undefined reference to ´crypt'" while compiling qmail with vpopmail?
If you have a problem like this:
./load qmail-tcpto ip.o now.o open.a lock.a substdio.a error.a str.a fs.a auto_qmail.o
/home/vpopmail/lib/libvpopmail.a(vpopmail.o): In function ´mkpasswd3':
/usr/local/src/vpopmail-5.4.4/vpopmail.c:602: undefined reference to ´crypt'
/home/vpopmail/lib/libvpopmail.a(vauth.o): In ...
- How to fix AFP connections to old server/nas? (Mac OS X Lion)
I ran into this problem with Lion and I am sure more and more people will now, as it was released.My Thecus NAS was working ...
- How to make a bootable Mac OS X Lion USB stick?
Gladly this is actually now quite easy. (Now there is a also a tool available that does most of the work for you, at least ...
- How to install Openfire server on Debian Lenny / Squeeze?
This isn´t that hard, so here we go:edit /etc/apt/sources.list to make the entries look like this one:
deb http://ftp.at.debian.org/debian/ lenny main contrib non-free
After that run the ...
- How to completely uninstall xcode?
This is actully quite easy and might be necessary from time to time.Open a Terminal and enter the following command:
sudo /Developer/Library/uninstall-devtools --mode=all
This will take some ...
- How to fix Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2)?
I only saw this error in Xen instances running openvpn but there it happens all the time after a reboot, seems udev is cleaning up ...
- How to configure vsftpd for active and passive data connections on Amazon EC2?
This was causing me some headaches so here is the proper solution:First of all: you need to open the firewall so FTP is not blocked ...
- How to fix "Filesystem notification initialization error — contact your mail administrator (check for configuration errors with the FAM/Gamin library)"?
I ran into the problem after updating my IMAP (courier driven) server from Lenny to Squeeze and took me a while to figure out. For ...
- How to fix "Internal error: Berkeley DB error for filesystem"?
After working with the subversion system pretty flawlessy for years (as standalone service and within apache), I had this problem in my apache log files:
[Fri ...
- How to duplicate / copy partition table?
In Linux there is a small helpful tool for this, called sfdisk. It is able to diplays and manipulate the partiation table.This comamnd reads the ...
- How to install mailparse module for PHP?
pecl install mailparse
Thats about it. If you move from a major PHP version to another, like from 5.2.x to 5.3.x you have to remove it ...
- How to install dbmail 3 from git on Debian Squeeze?
Here are the steps to get you started (I put my stuff compiled from source into /usr/src):First of all we install a few libraries:
aptitude install ...
- How to convert a subversion repository to fsfs?
This is actually not that hard, but might be time consuming, depending on your repository size. Anyhow, the bdb database works fine, but in my ...
- How to fix "DB_VERSION_MISMATCH: Database environment version mismatch"?
This happend to when I switched from Lenny to Squeeze and before, when I switched from Etch to Lenny. You might want to convert your repository ...
- How to change crontab email setting ( MAILTO ) ?
This is quite easy, just add the MAILTO line to your crontab, preferable to the top, so config parameters stay visible no matter how many ...
- How to clear DNS cache in Mac OS X (Leopard/Snow Lepard/Lion)?
For Mac OS X 10.4 and below:
lookupd -flushcache
For Mac OS X 10.5 and above:
dscacheutil -flushcache ...
- How to transfer files between your Samsung Galaxy Nexus (i9250) and your Mac?
Most Android phones have the mass storage mode, but in the Samung Galaxy Nexus (i9250) it is missing,so to download/ access media files and others ...
- How to hide TabWidget of tabhost?
Or how to hide the tabbar, tabgroup, whatever you may call it :)First of all, there are different ways to achieve this, I will only ...
- How to use the ZXing scanning library in portrait mode?
This is a bit more complicated, but there is a nice thread discussing this problem here:http://code.google.com/p/zxing/issues/detail?id=178 ...
- How to checkout a specific git tag?
After you have created a local copy of the repository you can checkout a specif tag, so there you go:
git clone http://git.gosi.at/testrepo testrepo
git tag -l
git ...
- How to activate TRIM in Mac OS X?
Owners of Macbooks who upgraded to an SSD might want to use this feature and here are two ways to achieve that:
There is a tool ...
- How to unhide Library folder on Mac OS X?
This one is pretty easy, just run that command in Terminal:
chflags nohidden ~/Library
...
- How to uninstall all unused versions of (mac)ports packages?
This is actually pretty easy, just run the following command:
sudo port uninstall inactive ...
- How to change MySQL user password?
Connect to your database and run the following command:
update mysql.user set password=PASSWORD("ENTER-PASSWORD-HERE") where User='ENTER-USERNAME';
After that you might want to run:
flush privileges;
...
- How to run virt-manager on Mac OS X?
There is no easy solution for this at the moment and there is no real alternative on Mac OS X either,but you can just forward ...
- How to repair GRUB with a live cd?
There are many things that could go wrong with a GRUB installation and one way to get the system booting is some kind of a ...
- How to restart frozen Dock, Finder or Menubar on Mac OS X?
This happens from time to time and if you can either open a Terminal or connect to your Mac OX X machine via SSH you ...
- How to start a virtual machine (guest) at boot time?
This is pretty simple:
virsh autostart VMNAME
Just replace VMNAME with the name you have given your instance and running the command should output a message like ...
- How to fix mdadm / mdraid resync=PENDING or auto-read-only?
This happend to me when I created a new md device and checked for the status in /proc/mdstat.The problem is obviously just that the resync ...
- How to show ip routes in Mac OS X?
Fire up your terminal an enter the following command:
netstat -nr
Or you could limit it a bit to this:
netstat -rnf inet
Or mabye you are just looking ...
- How to delete an ip route in Mac OS X?
sudo route delete 192.168.250.0/24 10.21.0.1
...
- How to add ip route in Mac OS X?
sudo route add -net 192.168.250.0/24 10.21.0.1
...
- How to fix "Failed to fetch Packages 404 Not Found"?
Depending on which Debian mirror you are using, the error message looks like this:
W: Failed to fetch http://ftp.debian.org/debian/dists/lenny/main/binary-i386/Packages 404 Not Found
W: Failed to fetch http://ftp.debian.org/debian/dists/lenny/main/binary-amd64/Packages ...
- How to fix error: RPC failed; result=56, HTTP code = 0?
This happend to me when pushing bigger changes to my git server. The usual size is 2MB,so what I did is just set the limit ...
- How to edit a very large file?
I had to remove one line of a 20GB MySQL dump file and was wondering how I could do this.
Actually there are a few ways, ...
- How to test STARTTLS on a mailserver?
You might want to test if STARTTLS works on your setup, or maybe some other server and see the internals.From a Linux box this is ...
- How to display environment variables?
This is also pretty simple:
printenv ...
- How to bind postfix to an IP / interface?
Also a pretty basic thing, here you are:Edit the main.cf with your favorite editor, for me that is vi and on Debian the file path ...
- How to change speed / duplex setting of a network connection?
Well, you can do this with mii-tool or ethtool, both should be working nicely. On Debian to install those, run this:
aptitude install ethtool net-tools
After that ...
- How to restart network card auto-negotiation?
This might be necessary some times, here the line to do it with ethtool:
ethtool -r eth1
And here with mii-tool:
mii-tool -r eth1
...
- How to clean drives from software raid (mdadm)?
Software raid is really great in Linux, but once you need to repurpose old drives,or lets say some other implementation of software raid has fucked ...
- How to skip or bypass fsck on reboot / system startup?
There are a few ways to make this happen, the simplest way is to reboot the machine with this command:
shutdown -rf now
Specifically for Debian you ...
- How to setup framebuffer in grub / console in Debian Wheezy?
First install the frame buffer console
aptitude install fbterm
edit the following file: vi /etc/default/grub and change the following lines to the resolution you would like:
GRUB_GFXMODE=1920x1080
GRUB_GFXPAYLOAD_LINUX=1920x1080x32
reboot and that ...
- How to install djbdns / tinydns / dnscache in Debian Squeeze/Wheezy?
Sadly there is no deb packages provided in Squeeze, so we have to build them ourselves. Luckily on the other hand, in SID there are ...
- How to duplicate / copy GPT partition table?
sfdisk doesn´t do the trick on GPT tables, so this will not work.
This is also easy, we need to install
aptitude install sgdisk
and then run this ...
- How to fix "/bin/sh: msgfmt: not found"?
This is a compilation caused because a tool is missing, which is easy to fix in Debian:(this happend to me while compiling git)
aptitude install gettext ...
- How to add a custom splashscreen to Raspberry Pi / Raspbian?
First step is to create a PNG that matches your screens resolution as good as possible. After you have that you login to your Raspberry ...
- How to migrate your Microsoft Account (Live ID) to a different country?
This was not possible for quite a while and gladly Microsoft took care of it:
Log in to http://xbox.com and choose “My Account”
On the bottom right, ...
- How to get list of user-agents from nginx log?
This is actually easy to do and works with our precious cli tools:
awk -F'"' '/GET/ {print $6}' /var/log/nginx/access.log | cut -d' ' -f1 | sort ...
- How to rate limiting nginx with X-Forwarded-For header?
If you run nginx behind a load balancer, the external IP of the client will not reach your nginx daemon anymore, so instead of $binary_remote_addr ...
- How do I send an email with attachment from commandline?
Well this is easy with mutt, so first we install mutt:
aptitude install mutt
After that we run the following command:
echo "message body" | mutt -a "/path/to/file.jpg" ...
- How do I configure nginx to return 429 http code when rate limiting?
Well this is actually what you want, because usually nginx would just send out error 503 and that is simply a server error when instead ...
- How to monitor SATA HDD SMART behind a 3Ware raid controller?
The latest distro versions of smartctl are totally capeable of doing this, so here you go.
Depending on which type of 3Ware controller you have, the ...
- How to get summarized sizes of folders including their subfolders?
Well there are few ways to achieve this, here are two:
du -sh /*
This will spit out a summary for the whole root of your filesystem ...
- How do I check syntax of a bash script?
This is also quite easy:
bash -n ./test.sh ...
- How to interpret the status of dpkg (–list) or dpkg-query?
This is actually a quite usefull thing, the documentation is available in the man pages of dpkg-query. In the list view of dpkg -l and ...
- How to change encoding of a file with vim? (example: to utf8)
This is actual pretty easy, with vim, you just need to run the following command:
:write ++enc=utf-8 utf8.txt
This will let vim write the same file into ...
- How to fix "COMXAudio::Decode timeout" in omxplayer?
This is a common problem with default settings on the Raspberry Pi.
The issue is a result of too little GPU memory, to fix this, you ...
- How to disable vpopmail (email) user?
This is pretty easy:
vmoduser -d -p -w -i user@domain.com ...
- How to boot Raspberry Pi without starting x-server?
You can set this in the raspi-config:
sudo raspi-config
Under 3, "Boot Options", you can set to only load console without X.
Alternatively this command should also do ...
- How to flush DNS cache in OS X El Capitan?
Open a Terminal (in /Applications/Utilities/ or search with Spotlight) and run the following command:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder;
...
- How to fix “Unknown database driver ‘mysql'"?
If you didn´t compile dovecot from source, you need to install the dovecot-mysql package:
RedHat/CentOS/Fedora:
yum install dovecot-mysql
Debian:
apt-get install dovecot-mysql
If you compiled dovecot from source, you need ...
- How to remove all mails in the deferred postfix queue?
postsuper -d ALL deferred ...