Tags
apache apparmor apt apt-get bash common mysql convert date diff division dpkg emails file find floating Forking https kickstart linux localtime Monitoring mysql package perl PHP phpmyadmin php seconds ago point Postfix queue rpm setup shell scripting size ssh subversion svn time time diff ubuntu UTC viewvc vim wordpress hacks wordpress tips wordpress tricks-
Meta
Recent Comments
- Yoav Aner on Linux: How To Forward SSH Agent With Sudo
- siba prasad on How to move a column in MySQL
- Fitz on How to move a column in MySQL
- SvenT on How To Get Yesterday's Date using BASH Shell Scripting
- Business Intelligence on SVN: Send Emails With Every Commit
- Lou on Xbox: Westinghouse LCD TV and Xbox 360 Universal Remote
- Manikandan on Ubuntu: Flushing IpTables Causes Loss of Internet Connection
- infosb on How to Disable Media Manager Services
Categories
-
Recent Posts
- NFS: Forcing NFS clients to use NFS Version 3
- GIT: Setting up a basic repo
- PHP: Switch Case Regex
- Perl: How To Fix malformed UTF-8 character in JSON string
- Ubuntu 11.04: Google Chrome Sync Server is Busy
- Ubuntu 11.10: Disable System Beep
- Ubuntu 11.10: How To Disable Unity
- PHP: Get URL Content Using PHP Curl
Blogroll
News
May 2012 M T W T F S S « Apr 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
CNN.com- Police: Trayvon Martin's death 'ultimately avoidable'
- Man questioned in highway killings
- Flesh-eating infections: Scores per year
- Travolta accuser hires Gloria Allred
- Court upholds Mississippi pardons
- Facebook IPO: Internet glee, skepticism
- Do voters want moderates out of D.C.?
- Now it's the jury's turn in Edwards trial
- Breyer's D.C. home hit by burglary
- Opinion: Dimon's $23M isn't the problem
BBC- VIDEO: Help offered on bringing up baby
- China jails smuggler Lai for life
- Airport starts search for new MD
- Dementia patient 'had 106 carers'
- Quarter of buses have problems
- 'Escalator tore off my big toe'
- Sex offenders get police cautions
- VIDEO: Malawi babies who are fighting to grow
- VIDEO: UK prepares for Olympic flame arrival
- VIDEO: G8 leaders to meet at Camp David
AL JAZEERA ENGLISH (AJE)- 'Disco queen' Donna Summer dies at 63
- Facebook to go public in $104bn flotation
- Tunisia-uprising injured sew lips in protest
- DR Congo troops shell rebel bases
- UN chief blames al-Qaeda for Syria bombings
- China jails fugitive smuggler for life
- Mladic trial postponed over 'errors'
- Fitch downgrades Greece on euro exit fears
- New French cabinet takes pay cut
- Obama unveils 'new chapter' in Myanmar ties
Archives
- April 2012
- March 2012
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- December 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- June 2008
- May 2008
- April 2008
- March 2008
Author Archives: Masao
Ubuntu: CMake “RPM package requires rpmbuild executable”
apt-get install -y rpm
Linux: Backup Entire Directories With Revision Control Using Subversion SVN
General steps (for example, the /etc directory) Install Ubuntu Server Log in and sudo bash. Import the /etc directory into your SVN repository. Check out the new directory and call it “/etc.new” Move out the old directory: “mv /etc /etc.old” … Continue reading
Posted in Linux
Leave a comment
Linux: MySQL Set Root Password
For Windows, do this: shell> mysql -u root mysql> SET PASSWORD FOR ‘root’@'localhost’ = PASSWORD(‘newpwd’); mysql> SET PASSWORD FOR ‘root’@’127.0.0.1′ = PASSWORD(‘newpwd’); mysql> SET PASSWORD FOR ‘root’@'%’ = PASSWORD(‘newpwd’); The last statement is unnecessary if the mysql.user table has no … Continue reading
Posted in Everything Else
Leave a comment
Linux: Subversion SVN+SSH Import New Project
svn import myfolder svn+ssh://kitamura@svn2.cs.lmu.edu/svn/myfolder \ -m “my comment”
Posted in Linux
Leave a comment
nTop: How To Fix RD: Disabled – unable to create base directory
1. faster one sudo chown -R nobody:nogroup /var/lib/ntop 2. slower but nicer sudo chmod 755 /var/lib/ntop sudo mkdir /var/lib/ntop/rrd sudo chown -R nobody:nogroup /var/lib/ntop/rrd and then you can run sudo ntop & and connect to it on http://localhost:3000 Source: Ubuntuforums.org
Posted in Networking
Leave a comment
Subversion: How To Fix “format: permission denied”
# chmod 775 /abspath/to/svnroot
Posted in Everything Else
Leave a comment
Ubuntu Linux: Flush, Clear, Renew DHCP Cache
When all else fails on the client… # apt-get install -y dhcpcd # dhcpcd eth0 # dhcpcd.sh: interface eth0 has been configured with new IP=XXX.XXX.XXX.XXX If it still fails, restart the DHCP server… # /etc/init.d/dhcp3-server restart Other things to try … Continue reading
Posted in Linux
Leave a comment
Ubuntu: How To Setup TFTPD With File Creation
/etc/default/tftpd-hpa TFTP_OPTIONS=”–secure –create” # service tftpd-hpa restart tftpd-hpa start/running, process 2479 # echo asdf > asdf.txt # tftp tftpd_server_name tftp> put asdf.txt Sent 6 bytes in 0.0 seconds tftp>
Posted in Linux
Leave a comment
Ubuntu: How To Fix “WARNING: The following packages cannot be authenticated!”
apt-get update
Posted in Everything Else
Leave a comment
Ubuntu Kickstart: How To Partition Drive Automatically
# Stuff auto-generated by system-config-kickstart #System bootloader configuration bootloader –location=mbr #Clear the Master Boot Record zerombr yes #Partition clearing information clearpart –all –initlabel # Preseed Auto-Partition Options preseed partman-lvm/device_remove_lvm boolean true preseed partman/confirm_write_new_label boolean true preseed partman/choose_partition select finish preseed … Continue reading
Posted in Linux
Leave a comment
Ubuntu Server: How To Disable GDM and Start in Text Mode
cat /etc/default/grub # If you change this file, run ‘update-grub’ afterwards to update # /boot/grub/grub.cfg. GRUB_DEFAULT=0 GRUB_HIDDEN_TIMEOUT=0 GRUB_HIDDEN_TIMEOUT_QUIET=true GRUB_TIMEOUT=10 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT=”text” GRUB_CMDLINE_LINUX=”" … Then, run update-grub and reboot. A diff with the alternative … Continue reading
Posted in Linux
Leave a comment
WordPress: How To Add Buttons To Every Post
wp-content/themes/twentyten/functions.php At the top of every post: function twentyten_posted_on() { [print stuff here] printf( __( ‘Posted on %2$s by %3$s’, ‘twentyten’ ), ‘meta-prep meta-prep-author’, … ); [print stuff here] } Or at the bottom of every post: function twentyten_posted_in() { … Continue reading
Posted in Open Source
Leave a comment
WordPress: Change Default Header Images
wp-content/themes/twentyten/functions.php Line 135 register_default_headers( array( ‘berries’ => array( ‘url’ => ‘%s/images/headers/berries.jpg’, ‘thumbnail_url’ => ‘%s/images/headers/berries-thumbnail.jpg’, /* translators: header image description */ ‘description’ => __( ‘Berries’, ‘twentyten’ ) ), ‘cherryblossom’ => array( ‘url’ => ‘%s/images/headers/cherryblossoms.jpg’, ‘thumbnail_url’ => ‘%s/images/headers/cherryblossoms-thumbnail.jpg’, /* translators: header image … Continue reading
Posted in Linux, Open Source
Leave a comment
CakePHP Scaffolding: How To Increase Default Records Per Page
lib/Cake/Controller/Component/PaginatorComponent.php Line 71 public $settings = array( ‘page’ => 1, ‘limit’ => 20, ‘maxLimit’ => 100, ‘paramType’ => ‘named’ );
Posted in Linux, Open Source
Leave a comment
Windows 7: How To Disable Pop-up Thumbnails When Hovering Over Taskbar
Method 1: You may try the following steps to disable the Taskbar thumbnail preview in Windows 7: 1. Click “Start” and type “gpedit.msc” and hit Enter 2. Navigate to User Configuration, Administrative Templates, and Start Menu and Taskbar in left … Continue reading
Posted in Windows
Leave a comment
Linux: How To Fix VIM Colorscheme Failure
If your colors don’t come back in VIM after deleting or removing your swp files… Remove this directory: /home/your-username/.vim Note: This is a last resort method (as Scott mentions below), when simply writing and quitting doesn’t work.
Cisco: Disable Translating Domain Server Timeout
To stop these messages (and the timeout pause): Translating “‘”…domain server (255.255.255.255) % Unknown command or computer name, or unable to find computer address Do this: SW0(config)#no ip domain-lookup SW0(config)# SW0# %SYS-5-CONFIG_I: Configured from console by console SW0#ssdf Translating “ssdf” … Continue reading
Apache: VirtualHost Redirect Using mod_rewrite
RewriteEngine On RewriteRule ^(.*)$ https://www.your-domain.com$1
Posted in Linux
Leave a comment
Windows: Stop fwupdate.exe
Remove LG Tool Kit from Programs
Linux: How To Partition and Mount a Second Drive
If your Linux server is configured with two hard disks, and you want to partition your second drive, you must: Partition the secondary hard disk. Create a file system for the new partition. Mount the partition to make it accessible. … Continue reading
Posted in Everything Else
Leave a comment