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
- infosb on How to Disable Media Manager Services
- tago on OpenLDAP: failed init (bdb)
- ocanizo on daemontools: /usr/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches non-TLS reference in envdir.o
- Shorten urls service make money on How To Get Yesterday's Date using BASH Shell Scripting
- sahil on daemontools: /usr/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches non-TLS reference in envdir.o
- Cesar on No recognized SSL/TLS toolkit detected
- Ladd on daemontools: /usr/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches non-TLS reference in envdir.o
- Mladen on How to Automatically Start Pageant with Private Keys in Windows
Categories
-
Recent Posts
- PHP: Get URL Content Using PHP Curl
- Netgear: Using WNDR3700 as Wireless Access Point
- Mac: How To Shutdown Using Command Line
- Linux: Send Process To Background And Logout
- Xbox: Westinghouse LCD TV and Xbox 360 Universal Remote
- Linux: Using Daemonize To Run User Processes In The Background
- Subversion: svn undo delete before commit
- Linux: How To Fix “node js openssh not found”
Blogroll
News
February 2012 M T W T F S S « Nov 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
CNN.com- Philippines issues local tsunami alert
- 'I'm sorry. Goodbye' precedes fatal Washington explosion
- Australians urged to flee flooding
- More caucuses next stop for Romney
- Activist: Rockets rip through Syrian city
- Sex abuse cases close school for days
- Lacrosse player faces trial in ex's death
- Saudi woman sues over right to drive
- Gingrich's Southern revival strategy
- Opinion: Syria in for bloody stalemate
BBC- Police chief at Leveson Inquiry
- Many trapped in Lahore collapse
- Romanian PM resigns over protests
- Web firms remove India material
- Syria troops step up Homs bombing
- Accidents due to icy conditions
- MP's call to fight web extremists
- Bank lending 'to shrink' in 2012
- Capello opposes FA Terry decision
- Woman runs for Mexico presidency
AL JAZEERA ENGLISH (AJE)- Suu Kyi given go-ahead to run in by-election
- Romania's PM resigns over austerity protests
- Abbas 'proposed as PM' in unity government
- US seeks 'clarification' over Egypt NGO trial
- Scores trapped in Pakistan building collapse
- Syrian army 'steps up Homs offensive'
- Obama 'in lockstep' with Israel on Iran issue
- Mexico's ruling party picks female candidate
- Noriega hospitalised over suspected stroke
- New York Giants win Super Bowl title
Archives
- 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
Category Archives: Linux
Linux: Send Process To Background And Logout
While process is running, press CTRL-z, then… $ bg (the output may come to foreground again, but you can logout now and the process will continue running in the background)
Posted in Linux
Leave a comment
Linux: Using Daemonize To Run User Processes In The Background
You must use full paths to all arguments for daemonize. As of now, daemonize must be downloaded and compiled, it does not exist in APT. $ daemonize /usr/full/path/to/node /home/full/path/to/app.js
Posted in Linux
Leave a comment
Linux: How To Fix “node js openssh not found”
apt-get install -y pkg-config
Posted in Linux
Leave a comment
Linux: How To Find Disk IO Usage Per Process
Sendmail sometimes uses a lot of disk IO by kicking off this process: 215 root 20 0 0 0 0 D 1 0.0 187:49.63 [jbd2/dm-0-8] Tools you can try using: iostat iotop Before: # iostat 1 avg-cpu: %user %nice %system … Continue reading
Posted in Linux
Leave a comment
Linux: How To Play AVI Files
APT packages needed to play FFmpeg .avi files: p gstreamer0.10-ffmpeg – FFmpeg plugin for GStreamer p gstreamer0.10-plugins-bad – GStreamer plugins from the “bad” set
Posted in Linux
Leave a comment
VIM: Swap Left Hand Directional Keys With Right Hand Command Keys
Reduce usage in your right hand using these mappings. – Mirror up and down keys – Shift left and right keys to the left hand – ‘s’ (change one character and insert) becomes ‘h’ – ‘d’ (‘dd’ deletes a line) … Continue reading
Posted in Linux
Leave a comment
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: 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
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 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: 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
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.
Apache: VirtualHost Redirect Using mod_rewrite
RewriteEngine On RewriteRule ^(.*)$ https://www.your-domain.com$1
Posted in Linux
Leave a comment
Ubuntu: Auto Install From USB Key Using Kickstart
1. Create a bootable USB key using an alternate version of any Ubuntu iso. 2. Edit syslinux/txt.cfg label install-serv menu label ^Auto Install 11.04 Server menu default kernel /install/vmlinuz append noprompt cdrom-detect/try-usb=true persistent vga=788 \ initrd=/install/initrd.gz quiet \ ks=http://your.kickstart.domain.com/your-kickstart-file.cfg –
fswebcam: Unable to load font ‘luxisr’: Could not find/open font
# apt-get install -y apt-file # apt-file update # apt-file search luxisr.ttf ttf-xfree86-nonfree: /usr/share/fonts/truetype/ttf-xfree86-nonfree/luxisr.ttf
SVN: Send Emails With Every Commit
SVNROOT=/svn cd $SVNROOT/hooks cp post-commit.tmpl post-commit chmod 755 post-commit vim post-commit Send Nicely Formatted Emails post-commit: REPOS=”$1″ REV=”$2″ SHARE=”/usr/share/subversion” $SHARE/hook-scripts/commit-email.pl “$REPOS” “$REV” -l /tmp/log –from svn you@email.com Modify URLs in email to link to ViewVC pages /usr/share/subversion/hook-scripts/commit-email.pl: @@ -451,23 +451,24 … Continue reading