chown :: Change User / Group Only
Posted by blackonsole on November 13th, 2012 04:37 AM | No Comment
:: How to change user owner only using chown
chown myuser: hello.txt hello/
:: How to change group owner only using chown
chown :mygroup hello.txt hello/
:: Link
+ Google
+ man chown
Linux :: Compiling MP4Box
Posted by blackonsole on August 2nd, 2012 07:11 AM | No Comment
:: How to compile MP4Box in Linux
+ download
wget //sourceforge.net/projects/gpac/files/GPAC/GPAC%200.5.0/gpac-0.5.0.tar.gz/download
wget //sourceforge.net/projects/gpac/files/GPAC%20extra%20libs/GPAC%20extra%20libs%200.4.5/gpac_extra_libs-0.4.5.tar.gz/download
+ extract and compiling
tar -xzf gpac-0.5.0.tar.gz
tar -xzf gpac_extra_libs-0.4.5.tar.gz
cd gpac_extra_libs
cp * ../gpac/extra_lib
cd ../gpac
./configure
make lib && make apps
make install lib && make install
cp bin/gcc/libgpac.so /usr/lib
+ checking MP4Box
whereis MP4Box
:: Links
+ Google
+ WowTutorial
WordPress :: Using OS cron job
Posted by blackonsole on July 20th, 2012 04:29 AM | No Comment
:: How to change wp cron to os cron job
+ add cron job on os cron
crontab -e
# add a line like this:
wget -q -O /dev/null //yourhostname.tld/wp-cron.php?doing_wp_cron >/dev/null 2>&1
+ disable wp-cron
vi wp-config.php
# add this line:
define('DISABLE_WP_CRON', true);
:: Links
+ Google
+ WPDaylyBits
:: WP MU :: Slow After Upgrade
Posted by blackonsole on July 19th, 2012 07:58 AM | No Comment
:: How to fix WordPress MU slowly after upgrade
try to upgrade database table for wordpress using this url:
//domainname.tld/wp-admin/upgrade.php
:: Links
+ Google
+ KartikShasti
:: Sudo without password
Posted by blackonsole on May 21st, 2012 07:57 AM | No Comment
:: How to setup sudo without password prompt
visudo
add this line for setup sudoer without password
your_username ALL=(ALL) NOPASSWD: ALL
:: Links
+ Google
+ Maestic
:: phpMyAdmin : Enabe / Disable Root Login
Posted by blackonsole on May 21st, 2012 03:15 AM | No Comment
:: How to enable root login in phpMyAdmin
vi config.inc.php
on /* Authentication type */ add this line:
$cfg = TRUE;
:: How to disable root login in phpMyAdmin
vi config.inc.php
on /* Authentication type */ add this line:
$cfg = FALSE;
:: Links
+ Google
+ MikeRoberto
:: Cron: Auto restart daemon if it down
Posted by blackonsole on May 7th, 2012 04:20 AM | No Comment
:: How to create script for auto restart daemon if it down
+ create auto restart daemon script (nginx)
cat > alwaysup.sh
add the script, like these:
#!/bin/bash
alwaysup=`ps aux | grep -v grep | grep -c nginx`
if
then
...