czwartek, 25 kwietnia 2013
[Linux] Microsoft SkyDrive for linux
SME Storage - download one of the packages listed below appropriate for your system
środa, 20 marca 2013
[joomla] Animated favicon
W directory templates/your_template
in find place( which generate favicon.ico )
<jdoc:include type="head" />
paste below line above:
<link rel="shortcut icon" href="templates/<?php echo $this->template ?>/favicon.gif" />
wtorek, 19 marca 2013
[Linux] Can't open display
# please check listening on port 6000. You may use command below
netstat -an | grep -F 6000
# check existing line below
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN
# if you havn't line above run command below
socat -d -d TCP-LISTEN:6000,fork,bind=0.0.0.0 UNIX-CONNECT:/tmp/.X11-unix/X0
# if you haven't socat try line below
sudo apt-get install socat
piątek, 15 marca 2013
[Linux] Script on startup after session run
I put one script in
/etc/init.d/
cp
yourScript.sh
/etc/init.d/yourScript.sh
chkconfig --add
yourScript.sh
List autostart
chkconfig --list
środa, 6 marca 2013
[CSS] Position on page
Examples
{
margin-top:20px;
margin-right:auto;
margin-bottom:20px;
margin-left:auto;
padding-top:0;
padding-right:10px;
padding-bottom:0;
padding-left:10px;
}
{
margin:20px auto 20px auto;
padding:0 10px 0 10px;
}
{
margin:20px auto;
padding:0 10px;
}
wtorek, 26 lutego 2013
[CentOS] Grow up load average, zombie processes, uninterruptible sleep
Maybe have u zombie processes ?
try:
top -b -n 1 | awk '{if (NR <=7) print; else if ($8 == "D") {print; count++} } END {print "Total status D: "count}'
find parent zombie proces ( first column )
ps -eo ppid,pid,user,stat,pcpu,comm,wchan:32 | grep pidZombieProcess
Subskrybuj:
Posty (Atom)