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
Ubuntu: How To Setup ViewVC Via APT-GET
apt-get install -y apache2 viewvc libapache2-mod-python2.6 vim /etc/viewvc/viewvc.conf Single Repository: svn_roots = svn: /svn root_as_url_component = 1 Multiple Repositories: root_parents = /svn : svn root_as_url_component = 1 Apache Virtualhost: ServerName your.domain.com DocumentRoot /your/web/directory ScriptAlias /viewvc “/usr/lib/cgi-bin/viewvc.cgi” Browser: http://your.domain.com/viewvc Do not … Continue reading
Linux: How To Setup SVN+SSH Repository And Server
Server: SVNROOT=/home/svnroot mkdir -p $SVNROOT svnadmin create $SVNROOT chown -R $USER: $SVNROOT Client: svn co svn+ssh://svn.cs.lmu.edu$SVNROOT
VIM: Open Files At The Same Line Where You Left Off Last
Add this to your .vimrc file: au BufWinLeave * mkview au BufWinEnter * silent loadview
Bash: How To Get Absolute Value Using BASH
echo ‘-12′ | nawk ‘{ print ($1 >= 0) ? $1 : 0 – $1}’
Bash: How To Do Floating Point Division in BASH Shell
# echo – | awk ‘{ print 3/9}’ 0.333333
Bash: Get File Size
#!/bin/bash FILENAME=/home/heiko/dummy/packages.txt FILESIZE=$(stat -c%s “$FILENAME”) echo “Size of $FILENAME = $FILESIZE bytes.”
Linux: How To Disable Debugfs
sudo mv /etc/init/ureadahead.conf /etc/init/ureadahead.conf.disable
Posted in Linux
Leave a comment
Linux: Automatically Remove Old Files And Directories
Remove files and directories older than 30 days old: tmpreaper –mtime-dir –verbose 30d [directory]
Posted in Linux
Leave a comment
Linux: Install NIS With No Interaction
How to install NIS silently, bypassing the NIS Domain prompt On a test system, do the normal install of NIS $ apt-get install nis Then, install the debconf-utils package to read the variables it set during install $ apt-get install … Continue reading
Posted in Linux
Leave a comment
Linux: How To Mount ISO File
mount -o loop -t iso9660 filename.iso /whatever/mount/point/dir
Posted in Linux
Leave a comment
Linux: df: /nfs/user: Stale NFS file handle
# umount /nfs/user
Posted in Errors, Linux
Leave a comment
Linux: How To Scan For Rootkits
# apt-get install -y chkrootkit # apt-get install -y rkhunter
Posted in Linux, Security
Leave a comment
Linux: How To Forward SSH Agent With Sudo
Edit your sudoers file: # su # /usr/sbin/visudo Add this line: Defaults env_keep=SSH_AUTH_SOCK Or for multiple variables: Defaults env_keep=”SSH_AUTH_SOCK EDITOR”
Posted in Linux
Leave a comment
Subversion: svn: Can’t open file ‘txn-current-lock’: Permission denied
To solve this problem, run svnserve as root (or as the user who has permissions to your svn root dir): # sudo bash # svnserve -d –foreground -r /home/svn OR # chown -R subversion: /home/svn # su – subversion # … Continue reading
Posted in Errors, Linux
Leave a comment
Linux: How To Setup NIS
How To Setup NIS on Ubuntu Server 10.04.1 Follow the steps here: https://help.ubuntu.com/community/SettingUpNISHowTo Some additional notes: Quick NIS Client Setup Script #!/bin/bash echo “+::::::” >> /etc/passwd echo “+::::::::” >> /etc/shadow echo “+:::” >> /etc/group echo “ypserver my-nis-server.com” >> /etc/yp.conf How … Continue reading
Posted in Linux
Leave a comment
OpenLDAP: failed init (bdb)
Find the bdb module: # find /usr -name back_bdb.la /usr/lib/ldap/back_bdb.la Add this to your slapd.conf: modulepath /usr/lib/ldap moduleload back_bdb.la Restart slapd: # /etc/init.d/slapd restart Stopping OpenLDAP: slapd. Starting OpenLDAP: slapd.
Posted in Linux
2 Comments
APT: not fully installed or removed
If you get an error like this: apt-get remove slapd … The following packages will be REMOVED: slapd 0 upgraded, 0 newly installed, 1 to remove and 39 not upgraded. 1 not fully installed or removed. Here’s how to fix … Continue reading
Posted in Linux
Leave a comment
Linux: How To Setup Apache With SSL (HTTPS)
Here’s a quickstart basic setup of SSL on Apache running on Ubuntu Desktop 10.04.1: Create your RSA Private Key: $ openssl genrsa -rand file1:file2:file3 -out server.key 1024 Where file1, file2, and file3 are random data (zip files work well here … Continue reading
Linux: How To Setup AutoFS
Installing AutoFS on Ubuntu Desktop 10.04.1 I followed most of the instructions here: https://help.ubuntu.com/community/Autofs First, install this on the client: # apt-get install -y autofs Edit the /etc/auto.master file: /home /etc/auto.home +auto.master … which means for the local mount point … Continue reading
Posted in Linux
Leave a comment