Notes by voodoo
Displaying keyword search results 1 - 10
Created by voodoo on August 08, 2011 12:28:16
Last update: August 08, 2011 12:28:16
$ sudo yum whatprovides pcre-devel
Loaded plugi...
Created by voodoo on June 14, 2011 08:15:57
Last update: June 14, 2011 08:17:25
In below examples, the default gateway is 105.52.84.1 .
Use " netstat -rn ":
$ netstat -rn
Kernel IP routing table
Destin...
Use " route -n ":
$ route -n
Kernel IP routing table
Destinati...
Use " ip route show ":
$ ip route show
105.52.84.0/24 dev eth0 proto ...
Created by voodoo on June 14, 2011 08:10:42
Last update: June 14, 2011 08:10:42
The command " ifconfig -a " does not list the DNS servers. Use " cat /etc/resolv.conf " to look at the DNS server configuration. It works for DHCP configured network interfaces also.
$ cat /etc/resolv.conf
# Generated by NetworkMa...
If no DNS server is configured:
$ cat /etc/resolv.conf
# Generated by NetworkMa...
Created by voodoo on June 12, 2011 19:59:59
Last update: June 12, 2011 20:00:38
Three ways to find the Ubuntu version:
$ cat /etc/issue
Ubuntu 11.04 \n \l
$ lsb_release -a
No LSB modules are available.
...
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DIS...
Created by voodoo on March 04, 2011 12:11:33
Last update: April 13, 2011 13:55:13
By default SELinux blocks execstack permission. According to Ulrich Drepper :
"As the name suggests, this error is raised if a program tries to make its stack (or parts thereof) executable with an mprotect call. This should never, ever be necessary. Stack memory is not executable on most OSes these days and this won't change. Executable stack memory is one of the biggest security problems. An execstack error might in fact be most likely raised by malicious code."
You can check if a library/application requires execstack by using the execstack utility:
execstack -q PATHTOPROGRAM
You can try to clean the flag and see if the application still runs:
execstack -c PATHTOPROGRAM
To allow execstack for cc1 :
# grep cc1 /var/log/audit/audit.log | audit2allow ...
Created by voodoo on April 13, 2011 12:50:16
Last update: April 13, 2011 12:50:16
You can check SELinux status by /usr/sbin/sestatus :
$ /usr/sbin/sestatus
SELinux status: ...
SELinux audit log is available from: /var/log/audit/audit.log
Created by voodoo on March 07, 2011 15:24:26
Last update: March 07, 2011 15:24:26
# yum install mysql-server
Loaded plugins: pres...
Created by voodoo on March 04, 2011 12:20:34
Last update: March 04, 2011 12:20:34
# yum whatprovides libmpfr.so.1
Loaded plugins:...
Created by voodoo on March 04, 2011 12:16:52
Last update: March 04, 2011 12:16:52
# yum whatprovides libgmp
Loaded plugins: prest...
Created by voodoo on November 02, 2010 16:07:49
Last update: November 02, 2010 16:11:56
From the command line I can start and stop Windows services with NET START service_name and NET STOP service_name . But the NET command does not give a way to find the service name. You need the sc command to get the service name, below are some examples:
List all running services:
sc query
List all services, running or not running (notice the space after =):
sc query type= service state= all
List all active drivers:
sc query type= driver
Find information about the "Indexing Service" (requires GNU grep):
sc query type= service state= all | grep -i index ...
Start the indexing service:
sc start CiSvc
Stop the indexing service:
sc stop CiSvc
Check the status of the indexing service:
sc query CiSvc