yum --disablerepo="*" --enablerepo="epel" install your_package_name
Monthly Archives: January 2015
cPanel – Domain linux4you.tk already exists
grep linux4you.tk /var/cpanel/users/*
grep -R linux4you.tk /var/cpanel/userdata/*
munin default password
You should set it:
htpasswd -c /etc/munin/munin-htpasswd Munin
Error getting container device or resource busy
Error response from daemon: Cannot start container cen7: Error getting container ff4ec8b079fd6c00d5683cb6d5af1692058a0ba286b0e84649d7d25425f9f650 from driver devicemapper: Error mounting ‘/dev/mapper/docker-253:0-1844937-ff4ec8b079fd6c00d5683cb6d5af1692058a0ba286b0e84649d7d25425f9f650’ on ‘/var/lib/docker/devicemapper/mnt/ff4ec8b079fd6c00d5683cb6d5af1692058a0ba286b0e84649d7d25425f9f650’: device or resource busy
FATA[0000] Error: failed to start one or more containers
sudo umpunt /var/lib/docker/devicemapper/mnt/ff4ec8b079fd6c00d5683cb6d5af1692058a0ba286b0e84649d7d25425f9f650
pkill python script yum
pkill -9 -f yum
linux cat many files show file names
tail -n +1 *
create 10 random name files and write some random data
yes "mktemp -p . XXXXXXXXXX | awk ' { print tolower($0) }'" | head -n10 | bash
find . -type f -exec bash -c "cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1 > {}" \;
find echo some text to files
find . -type f -exec bash -c "echo some text > {}" \;
nginx non www to www
server {
listen 80;
server_name linux4you.t;
return 301 http://www.linux4you.t$request_uri;
}
server {
listen 80;
server_name www.linux4you.tk;
}
Holland
Holland is an Open Source backup framework originally developed by Rackspace and written in Python. It’s goal is to help facilitate backing up databases with greater configurability, consistency, and ease. Holland currently focuses on MySQL, however future development will include other database platforms and even non-database related applications. Because of it’s plugin structure, Holland can be used to backup anything you want by whatever means you want.
kde remove icon from panel
You have to open the panel settings, then while the panel settings popup is open, right-click on the icon, and there it will offer you to remove it.
userdel: user demo_user is currently logged in Ubuntu
lsof -u demo_user
pkill -u demo_user
deluser –remove-all-files demo_user
nginx list modules
2>&1 nginx -V | tr — – ‘\n’ | grep _module
grep with colors
export GREP_OPTIONS='--color=always'
cat abc.txt | grep --color=always abc
nginx: [emerg] invalid number of arguments in “return” directive in
Probably you are missing semicolon “;” at the end of some configuration statement.