In CentOS7 or RedHat7 again we have funky strange network interfaces names… To change the name back to eth0 just follow: 1. Rename the device name vi /etc/sysconfig/network-scripts/ifcfg-ens** 2. Rename the file mv /etc/sysconfig/network-scripts/ifcfg-ens192 /etc/sysconfig/network-scripts/ifcfg-eth0 3. add net.ifnames=0 biosdevname=0 to […]
Benchmark a SSD
I used the sysbench tool, more info at sysbench –test=fileio –file-total-size=1G prepare sysbench –test=fileio –file-total-size=1G –file-test-mode=rndrw –max-time=300 –max-requests=0 run sysbench –test=fileio –file-total-size=1G cleanup RESULT: sysbench 0.4.12: multi-threaded system evaluation benchmark Running the test with following options: Number of threads: 1 […]
The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found
ERROR: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found Testes on CentOS 6.4 x64 with Tomcat 6 Instalar o APR, ——————- Install pre-req: yum install apr apr-devel openssl-devel gcc Download tomcat-native-1.1.30-src.tar.gz: […]
Linux how to change interface name
When cloning vm’s inside a ESX I always get a eth1 instead of eth0. So here is what I do to fix that. Step #1:Get Mac ifconfig -a | grep hwaddr eth0 Link encap:Ethernet HWaddr b8:ac:6f:65:31:e5 Step #2: Rename eth1 […]
How to connect NFS with a specfic user under CentOS/RedHat 6
How to connect NFS with a specfic user under CentOS/RedHat 6 ##SERVER SIDE## 1. On server side must have the insecure option enabled edit /etc/exports /exports/real 192.17.36.147/255.255.255.255(rw,nohide,insecure,no_subtree_check,sync) 2. Make the change exportfs -ra 3. Make sure it is running rpcinfo […]
bash get analytics data
This is a bash script to get Google Analytics Data, in this case A total day Pageviews. Here is the code: #!/bin/bash # Get google anlytics pageview results # by Felipe Ferreira Dec 17 2013 # v1 #todo: get REAL […]
Run jenkins with another user
How to configure jenkins to run under different user other then tomcat6 account. I configured it to run a bash script using: sudo -u ubuntu /opt/script NOTE: inside the script debug it using whoami and env I had problems with […]
