How to Check Disk Speed on Linux
/sbin/hdparm -tT /dev/sda
/sbin/hdparm -tT /dev/sda
If your SSH public key authentication is failing with errors like this:
$ ssh -vvv myhost.com debug3: authmethod_is_enabled publickey debug1: Next authentication method: publickey debug1: Offering public key: /home/kitamura/.ssh/id_dsa debug3: send_pubkey_test debug2: we sent a publickey packet, wait for reply
…try these permissions on the server:
server$ chmod go-w ~/ (same as 755) server$ chmod 700 ~/.ssh server$ chmod 600 ~/.ssh/authorized_keys
Thanks Damien.
How to Automatically Install CPAN Dependencies without having to answer “yes” to each question:
export PERL_MM_USE_DEFAULT=1
# rpm -ql mysql-devel /usr/include/mysql /usr/include/mysql/chardefs.h /usr/include/mysql/decimal.h /usr/include/mysql/errmsg.h ...
Here’s how to monitor multiple cores on Linux:
# mpstat -P ALL
Example:
Monitor all CPU’s in 1 second intervals forever
# mpstat -P ALL 1
If Synergy fails for you with this error: “Server refused client with name XXX”, then your IP might conflict with another machine on the same network.
Here’s how to renew your IP on Linux:
### Release your current IP $ sudo dhclient -r ### Request a new IP $ sudo dhclient
Sample smb.conf:
[homes]
comment = Home Directories
browseable = no
writable = yes
; valid users = %S
; valid users = MYDOMAIN\%S
After installing Roxio Creator, you might have a system tray icon that you can’t seem to get rid of. Here’s how to do it:
Add this to LocalSettings.php:
$wgGroupPermissions['*']['edit'] = false;
# Yesterday in epoch seconds
$ yesterday=$((`date +'%s'` - 86400))
# Get default formatted yesterday's date
$ date -d "1970-01-01 $yesterday sec"
Tue Feb 17 01:27:32 PST 2009
# Same thing in YY-MM-DD
$ date -d "1970-01-01 $yesterday sec" +"%Y-%m-%d"
2009-02-17
http://www.google.com/bookmarks/lookup?hl=en&sort=title&output=rss&q=label:live
Instead of:
ALTER TABLE my_table ADD KEY `key1` (`apple`);
ALTER TABLE my_table ADD KEY `key2` (`banana`);
do this:
ALTER TABLE my_table
ADD KEY `key1` (`apple`),
ADD KEY `key2` (`banana`);
On the destination server, remove the known_hosts file:
rm ~/.ssh/known_hosts
Also, try this in your /etc/hosts.allow file
/etc/hosts.allow:
SSHD: ALL
The mapping:
<map name="pressMap">
<area href="/weekly" coords="10,6,232,79">
<area href="/store" coords="245,6,469,79">
<area href="/yelp" coords="481,6,705,79">
<area href="/press" coords="718,6,941,79">
</map>
The image:
<img src="hpAdsStatic.png" usemap="#pressMap" />
Your connection should now work.
“c:\program files\putty\pageant.exe” “c:\documents and settings\esumbar\pka-putty\mykey.ppk”
In Firefox, “about:config”, set
browser.sessionstore.resume_from_crash = false
For example, the “kill” manpage shows:
SEE ALSO
bash(1), tcsh(1), kill(2), sigvec(2), signal(7)
This is how to view section 7 of the “signal” manpage:
man 7 signal
Recent Comments