To clear all semaphores owned by the apache user: Raw ipcs -s | awk -v user=apache ‘$3==user {system(“ipcrm -s “$2)}’
Category: Sysadmin
forcing apt-get to always use ipv4 instead of ipv6
echo ‘Acquire::ForceIPv4 “true”;’ | sudo tee /etc/apt/apt.conf.d/99force-ipv4
Using tape Library PV114x or other with Linux
It is dead simple, make sure that when you plug in SAS cable the light on the SAS card comes up, I spent hours in struggling on Linux when drives did not appear and finally when i push the SAS connector bit inside all flashes 🙂 You only need a software name mt and tar… Continue reading Using tape Library PV114x or other with Linux
Adobe server list in case to crack adobe license
127.0.0.1 209-34-83-73.ood.opsource.net 127.0.0.1 3dns-1.adobe.com 127.0.0.1 3dns-2.adobe.com 127.0.0.1 3dns-3.adobe.com 127.0.0.1 3dns-4.adobe.com 127.0.0.1 3dns-5.adobe.com 127.0.0.1 3dns.adobe.com 127.0.0.1 activate-sea.adobe.com 127.0.0.1 activate-sjc0.adobe.com 127.0.0.1 activate.adobe.com 127.0.0.1 activate.wip.adobe.com 127.0.0.1 activate.wip1.adobe.com 127.0.0.1 activate.wip2.adobe.com 127.0.0.1 activate.wip3.adobe.com 127.0.0.1 activate.wip4.adobe.com 127.0.0.1 adobe-dns-1.adobe.com 127.0.0.1 adobe-dns-2.adobe.com 127.0.0.1 adobe-dns-3.adobe.com 127.0.0.1 adobe-dns-4.adobe.com 127.0.0.1 adobe-dns.adobe.com 127.0.0.1 adobe.activate.com 127.0.0.1 adobeereg.com 127.0.0.1 ereg.adobe.com 127.0.0.1 ereg.wip.adobe.com 127.0.0.1 ereg.wip1.adobe.com 127.0.0.1 ereg.wip2.adobe.com 127.0.0.1 ereg.wip3.adobe.com 127.0.0.1… Continue reading Adobe server list in case to crack adobe license
kill all processes in ubuntu php , nginx mysql
if your upstart script fails , you can manually start and stop nginx, mysql , php For PHP: kill $(ps aux | grep ‘[p]hp’ | awk ‘{print $2}’) For Nginx: kill $(ps aux | grep ‘[n]ginx’ | awk ‘{print $2}’) For Mysql: kill $(ps aux | grep ‘[m]ysql’ | awk ‘{print $2}’)
log subdir
find . -type f \( -name “*.log” \) -exec tail -f “$file” {} +
Node cannot be added to the GPFS cluster
There is an indication leading you to the conclusion that a node cannot be added to a cluster and steps to follow to correct the problem. That indication is: You issue the mmcrcluster or mmaddnode command and receive the message: 6027-1598 Node nodeName was not added to the cluster. The node appears to already belong to a GPFS™ cluster. Steps… Continue reading Node cannot be added to the GPFS cluster
untar multiple files in one command
ls *.tar | xargs -i tar xf {}
Command line view webcam from ubuntu to browser
This took hours to figure out. I was trying to install MJPG-streamer and running VLC command lines and all this crap but nothing worked. First install motion: ~> sudo apt-get install motion Then create a config file: ~> mkdir ~/.motion ~> nano ~/.motion/motion.conf In it, the bare minimum to run a web server and view it… Continue reading Command line view webcam from ubuntu to browser
Bonnie++ cannot open file
bonnie++ Can’t open file While running bonnie++ , you may face this error : # ./bonnie++ -d /mnt -s 8056M -n 0 -m TEST_IO -f -b -u username Using uid:1000, gid:1000. Can’t open file ./Bonnie.3497.000 You need to add -u root:root , to the command line like : ./bonnie++ -d… Continue reading Bonnie++ cannot open file