|
|
Recently I’d a requirement to up-grade few workstations since all the old hardware does not support RAM more than 4GB. It’s because we will not get DDR2 4GB RAM easily in market. Also I’m looking for suitable Intel chipset which support CentOS/RedHat
So I’m started hunting on Intel website to get Linux supported hardware. Unfortunately they do not update any Linux supported hardware list in officially for past few years and also they did not respond to any such query over the email/voice support. This is clearly stating that Intel officially support Windows only due to the business tie-up with Microsoft Corporation in back end.
So you can not see any latest Motherboard listed in Linux support section on Intel website nowadays.
Finally I found a RedHat hardware catalog list published for certain Intel Motherboard in their supported list while on Google search.
Here is the link which help you to find the RedHat hardware support
https://hardware.redhat.com/list.cgi?
Login window should like as shown below,

Pls note you would have to input the search string something like this for a motherboard search, DESKTOP BOARD DQ77MK. Otherwise it will list all the chipset manufactures which supported RedHat
An Output window will look like this once you’ve entered my pattern,

if you click on your OS architecture, you will get some kind detailed report of that hardware as shown below, Pls note latest Intel Product does not support the Redhat OS which below version 5.

Author: Liju Mathew
Visit Liju's Website - Email Liju I'm Liju, one linux enthusiastic who have been playing with Linux for more than 7 years. I'm curious about to read blog, learning and implementing new technologies from my personal experience. Like to be play with burning head on busy schedule :-) This is a bookmark of all challenges that I'd faced which would be helpful to others sometimes as I'd learn it from the same way :-)
Nothing more, I have to go miles, before I sleep
Poedit is cross-platform gettext catalogs (.po files) editor.It aims to provide more convenient approach to editing catalogs than launching vi and editing the file by hand. It’s a good option to create Language translator file and able to search the language keyword from the source files. Then it will generate a word translator and after inputting the proper language conversion, we can deploy it as .po file which is a generic standard and all other third party tool support this .po type file.
Features
Here is a brief features list:
Unlike other catalogs editors, Poedit shows data in very compact way. Entries are arranged in a list, so that you can easily navigate large catalogs and immediately get an idea about how big part of the catalog is already translated, what needs translating and which parts are only translated in a “fuzzy” way.
Runs on Unix and Windows systems.
Plural forms support. [1.3.0]
Features white spaces highlighting.
Fuzzy and untranslated records are highlighted and displayed at the top of the list.
Automatic compilation of .mo files (optional).
Automatic headers update.
References browser lets you see where and in what context is the string used.
You can use Poedit to scan source code for translatable strings.
Integration with KDE and GNOME desktops. Neither of these environments is required, support for them is strictly optional.
It’s hard to install Poedit from the source code and you can it’s binary version on additional repository for your Linux Distribution. In my case I uses CentOS 5.4 32 bit platform. You ay get EPEL yum package from this download location. http://dl.fedoraproject.org/pub/epel/5/. Here is the my steps,
[root@rc-127 installation]# wget http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
--2013-05-16 10:38:41-- http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
Resolving dl.fedoraproject.org... 209.132.181.26, 209.132.181.27, 209.132.181.23, ...
Connecting to dl.fedoraproject.org|209.132.181.26|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12232 (12K) [application/x-rpm]
Saving to: `epel-release-5-4.noarch.rpm'
100%[==============================================================>] 12,232 44.0K/s in 0.3s
2013-05-16 10:38:43 (44.0 KB/s) - `epel-release-5-4.noarch.rpm' saved [12232/12232]
[root@rc-127 installation]# rpm -ivh epel-release-5-4.noarch.rpm
warning: epel-release-5-4.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 217521f6
Preparing... ########################################### [100%]
1:epel-release ########################################### [100%]
[root@rc-127 installation]# yum install poedit
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* epel: mirrors.ispros.com.bd
Rain-Concert-Centos-5 | 951 B 00:00
epel | 3.4 kB 00:00
epel/primary_db | 3.1 MB 00:12
newrelic | 951 B 00:00
newrelic/primary | 2.1 kB 00:00
newrelic 5/5
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package poedit.i386 0:1.4.2-2.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================
Package Arch Version Repository Size
========================================================================================================
Installing:
poedit i386 1.4.2-2.el5 epel 858 k
Transaction Summary
========================================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
Total download size: 858 k
Is this ok [y/N]:


Author: Liju Mathew
Visit Liju's Website - Email Liju I'm Liju, one linux enthusiastic who have been playing with Linux for more than 7 years. I'm curious about to read blog, learning and implementing new technologies from my personal experience. Like to be play with burning head on busy schedule :-) This is a bookmark of all challenges that I'd faced which would be helpful to others sometimes as I'd learn it from the same way :-)
Nothing more, I have to go miles, before I sleep
Most of the time, you may need to overwrite the existing files in the huge folder whenever a new release or updates are published. And this may occur certain situation and I got the prompt to delele each files inside that folder which contains thousands of files. I’m lazy to press “y” to delete all the file till it’s end. When I find an answer in google, it says you need to use “f” force option to over write the files. I applied it but still I’m getting that prompt for confirmation. ahhhhhh !! Strange .. Isn’t it. What I normally do is,
a. Rename that folder and create an empty folder to copy. This is not a straight forward action but works fine without any delay.
[root@rc-090 html]# cp -r public_html_new/* public_html/
cp: overwrite `public_html/build.dev.properties'? y
cp: overwrite `public_html/build.xml'? y
cp: overwrite `public_html/css/video.css'? y
cp: overwrite `public_html/css/event.css'? y
cp: overwrite `public_html/css/400.css'? y
cp: overwrite `public_html/css/page.css'?
So I want to know the reason of this prompt even though I uses force [-f] option in cp command.
Reason
Most of the Linux distribution has set certain alias towards a command which execute certain harm/delete actions or it may cause a process initiation which clear all the sensitive information from the disk. So it has to be validate twice before executing it. This was done for additional file safety and be warn users what they are going to perform.
You may see the existing command alias set for your platform by executing the command “alias” without any argument
[root@rc-127 installation]# alias
alias cp='cp -i'
alias l.='ls -d .* --color=tty'
alias ll='ls -l --color=tty'
alias ls='ls --color=tty'
alias mv='mv -i'
alias rm='rm -i'
alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
[root@rc-127 installation]#
Pls note that the command “cp” has the alias name cp -i which cause you to get a promt up on each file deletion. This is the root cause of getting prompt even though you applied “-f” option
Solution/hack
You will not use the EXACT cp command to replace the files. Here is the great hack, you have to use the exact path where the cp command resides.
[root@rc-090 html]# whereis cp
cp: /bin/cp /usr/share/man/man1/cp.1.gz /usr/share/man/man1p/cp.1p.gz
[root@rc-090 html]# /bin/cp -rf /var/www/html/public_html_new/* /var/www/html/public_html/
[root@rc-090 html]#
Cheers !!
How do I set new command alias
If you want to set an alias to watch the top CPU consuming process using the command top alias top_process=”top | head -n 15″. You need to set alias as shown below
[root@rc-025 Liju]#alias top_process="top | head -n 15"
[root@rc-025 Liju]# top_process
top - 15:10:05 up 14 days, 2:56, 2 users, load average: 10.24, 10.36, 10.34
Tasks: 268 total, 1 running, 264 sleeping, 0 stopped, 3 zombie
Cpu(s): 22.8%us, 0.4%sy, 0.0%ni, 76.8%id, 0.1%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 4138544k total, 3983676k used, 154868k free, 78028k buffers
Swap: 4096532k total, 143116k used, 3953416k free, 3011296k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3524 root 18 0 285m 82m 11m S 777.8 2.0 320367:55 webAccess
5008 root 16 0 198m 74m 20m S 3.9 1.9 588:19.60 firefox
5208 root 5 -10 538m 282m 272m S 3.9 7.0 217:09.85 vmware-vmx
5242 root 0 -20 0 0 0 S 2.0 0.0 48:07.39 vmware-rtc
1 root 15 0 2064 620 536 S 0.0 0.0 0:01.14 init
2 root RT -5 0 0 0 S 0.0 0.0 0:00.05 migration/0
3 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0
4 root RT -5
Author: Liju Mathew
Visit Liju's Website - Email Liju I'm Liju, one linux enthusiastic who have been playing with Linux for more than 7 years. I'm curious about to read blog, learning and implementing new technologies from my personal experience. Like to be play with burning head on busy schedule :-) This is a bookmark of all challenges that I'd faced which would be helpful to others sometimes as I'd learn it from the same way :-)
Nothing more, I have to go miles, before I sleep
Sometimes we need to same server setup for different applications and diff. client. This would be quite easily since the Amazon support private AMI image sharing and distribute over the different region securely.
Here is the major steps to do that,
a. Loging to the AWS account where we created the EBS AMI for the sharing.
b. Move to the menu IMAGES–> AMI and then Choose the image we want to share
c. Expand the Permission text and add the AWS Account number of target account.
That’s it

Then login to the second AWS account where you want to launch the AMI,
Go through the Instance setup wizard and choose the launch instance from “My Images” tab. You can see all the Private images shared to your account. Just click on it to launch the instance easily !! Whoolaaa !!!

Author: Liju Mathew
Visit Liju's Website - Email Liju I'm Liju, one linux enthusiastic who have been playing with Linux for more than 7 years. I'm curious about to read blog, learning and implementing new technologies from my personal experience. Like to be play with burning head on busy schedule :-) This is a bookmark of all challenges that I'd faced which would be helpful to others sometimes as I'd learn it from the same way :-)
Nothing more, I have to go miles, before I sleep
This is the an addition of my earler post Selenium GRID setup. The limitation Selenium Grid are,
a. This is can work only on LAN
b. Required more Virtual machiness pre-reloaded with different browsers.
c. We can not run Grid setup in internet
As a remedy for this problem, the SauceLab team who is the active supporter and co-founder of Selenium Opensource community has launched new Cloud based solutions for running web browser based tests. So we do not need to worry about system resource and just initiate the browser request from Hub server to run test at Saucelab networks.
Brief description about SauceLabs
SauceLab offers a platform for running automated or manual cross browser testing. Using their platform we can,
a. Have cross browser testing including linux,Windows, Mac, iOS and Andriod.
b. Would be helpful to CSS/Html5 designers ( UI Team) to verify the scripts in different browsers.
c. Moreover we can automate browser-based test for most of the OS platforms remotely.
How do I run the Selenium script hosted locally in Saucelab servers,
These are the basic steps,
a. Download Selenium server (selenium-server-standalone-2.32.0.jar0 from seleniumhq.org
b. Download Saucelab plug-ins for Selenium Grid (sauce-grid-plugin-1.0.4.jar) can be available at http://sauceio.com/index.php/2012/09/introducing-the-sauce-plugin-for-selenium-grid/
c. Launch the Selenium server along with SauceLab plug-in
#java -cp selenium-server-standalone-2.32.0.jar:sauce-grid-plugin-1.0.4.jar org.openqa.grid.selenium.GridLauncher -role hub -servlets com.saucelabs.grid.SauceOnDemandAdminServlet,com.saucelabs.grid.SauceOnDemandConsoleServlet
A sample output will looks like as show below,
[root@rc-026 selenium]# java -cp selenium-server-standalone-2.32.0.jar:sauce-grid-plugin-1.0.4.jar org.openqa.grid.selenium.GridLauncher -role hub -servlets com.saucelabs.grid.SauceOnDemandAdminServlet,com.saucelabs.grid.SauceOnDemandConsoleServlet
May 5, 2013 12:22:05 AM org.openqa.grid.selenium.GridLauncher main
INFO: Launching a selenium grid server
May 5, 2013 12:22:06 AM org.openqa.grid.web.Hub <init>
INFO: binding com.saucelabs.grid.SauceOnDemandAdminServlet to /grid/admin/SauceOnDemandAdminServlet/*
May 5, 2013 12:22:06 AM org.openqa.grid.web.Hub <init>
INFO: binding com.saucelabs.grid.SauceOnDemandConsoleServlet to /grid/admin/SauceOnDemandConsoleServlet/*
2013-05-05 00:22:06.198:INFO:osjs.Server:jetty-7.x.y-SNAPSHOT
2013-05-05 00:22:06.240:INFO:osjsh.ContextHandler:started o.s.j.s.ServletContextHandler{/,null}
2013-05-05 00:22:06.248:INFO:osjs.AbstractConnector:Started SocketConnector@0.0.0.0:4444
Great ! next you need to enable Sauce authentication in that selenium server.
Just go to http://localhost:4444/grid/admin/SauceOnDemandConsoleServlet or the adjust the server url you’d been hosted it. Browser window will look like this,

Next you need to click on Configure Proxy link and provide your sauceLab user name and access key ( will be shown at the left side on the login window in Sauce account). and then Save the changes. See the following screen,


Perfect ! Now You’re ready to play with Saucelab clouds.
In earlier post, I have provide a sample JUnit test which can run the unit test in Selenium Grid environment.You may download that program here [70MB size] and you may need to modify the content of the file “HubNodeCommunication.java” and modify the Huburl line to http://localhost:4444/wd/hub (the selenium server port which started with SauceLab plugin). You can download the file from here.
@Before
public void setUp() throws MalformedURLException
{
baseUrl = "http://www.serveridol.com";
hubURL = "http://localhost:4444/wd/hub";
DesiredCapabilities capability = DesiredCapabilities.firefox();
capability.setPlatform(Platform.LINUX);
capability.setCapability("version", "12.0");
driver = new RemoteWebDriver(new URL(hubURL), capability);
}
@Test
public void testDistributor() throws Exception {
driver.get(baseUrl + "/2013/05/04/jvm-monitoring-tool-using-jtop/");
driver.findElement(By.linkText("Auto Scaling")).click();
driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);
}
Then build the Jnuit project and run. You can see your test are running at Saucelab along with video pre-view and screenshots.

Hoping that you are enjoyed my class and will have get a clear idea about running selenium scripts in Saucelab clouds.
Cheers !!!
Author: Liju Mathew
Visit Liju's Website - Email Liju I'm Liju, one linux enthusiastic who have been playing with Linux for more than 7 years. I'm curious about to read blog, learning and implementing new technologies from my personal experience. Like to be play with burning head on busy schedule :-) This is a bookmark of all challenges that I'd faced which would be helpful to others sometimes as I'd learn it from the same way :-)
Nothing more, I have to go miles, before I sleep
Here another informative software tool for monitoring JVM statistics using JDK tools. We can get it from demo folder in JDK bundle (C:\Program Files\Java\jdk1.6.0_14\demo\management).This is the nice tool I found to monitor and identify the JVM threshold value on peak hours.
How to launch JTop
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\liju>jconsole -pluginpath "c:\Program Files\Java\jdk1.
6.0_14\demo\management\JTop\JTop.jar"
Now you can an applet loaded along with JTop running. Screen will look like as shown below,

One you’ve got connected, you can see the uage of HeapMemory, Threads and memory usage of classes.

VM Summary is,

Heapdump will be very useful for finding memory leakage, tuning application and debugging unexpected/unknown errors at runtime.
I found that we can not take heapdump if you use SSH tunnel for connecting JTop or VisualVM. It’s because heapdump size obviously bigger on busy servers likely more than 450Mb. So we may need to use jconsole command line utility from the same server to take the heapdump.
How do I take heapdump
[root@fc-web ~]# ps aux | grep "java" | tail -n 1 | awk '{print $2}'
22645
[root@fc-web ~]# jmap -dump:file=heap.bin 21245
Dumping heap to /root/heap.bin ...
Heap dump file created
[root@fc-web ~]# zip heap.zip heap.bin
adding: heap.bin (deflated 59%)
[root@fc-web ~]# du -sh heap.zip
273M heap.zip
[root@fc-web ~]#
Author: Liju Mathew
Visit Liju's Website - Email Liju I'm Liju, one linux enthusiastic who have been playing with Linux for more than 7 years. I'm curious about to read blog, learning and implementing new technologies from my personal experience. Like to be play with burning head on busy schedule :-) This is a bookmark of all challenges that I'd faced which would be helpful to others sometimes as I'd learn it from the same way :-)
Nothing more, I have to go miles, before I sleep
|
|