Best of Tech Support
The default action for a dozen UNIX signals like SIGSEGV is to abort and generate a core file as a dump of the memory image of the faulty process. On Red Hat, when getting such signals, the processes abort but do not generate any core file. The only way to know a faulty process was sent such signals is to strace it. If it is possible, where on Red Hat is the core generation configured?
—Pedro Guedes, pmg01@netc.pt
The ulimit command controls the size limit of several things in your Linux system, among them, the size of the core files. Issuing a ulimit -c 0 will tell Linux to disable core files (since they will be of zero size), ulimit -c xxxx will tell Linux to allow core files of up to xxxx blocks in size. ulimit may be set in /etc/profile for all users or in your home directory's .bash_profile. Typing ulimit -h gives help on this command. If you edit the file /etc/security/limits.conf, there you may find a line something like:
* soft core 0
or:
* hard core 0
That last 0 on each of these examples indicates that the core file size should be no bigger than 0KB; therefore there are no core files generated. Hard and soft refer to the kind of limit imposed, “hard” being more strict. Change that 0 to something else, depending on the biggest core dump file that you may expect. This file (/etc/security/limits.conf) is part of the PAM (Pluggable Authentication Modules) system, which most distributions, including Red Hat, use.
—Felipe E. Barousse Boué, fbarousse@piensa.com
I have installed Red Hat 7.2 on an old (1994-ish) colussus, but I cannot get X to run as it doesn't see the monitor, which is a CTX 1565CD. However, when I try to run Xconfigurator or any other X config tool, it does not pass the X config test. When started, the PCI probe returns the entry Silicon Integrated Systems (SiS) SG86C20, which does not appear anywhere on the list of supported cards.
—Jim Logan, jim_message@hotmail.com
The Linux Hardware Compatibility Guide (www.ssc.com/mirrors/LDP/HOWTO/Hardware-HOWTO) says you can use XF86_SVGA in a 3.x version of XFree86, or the “sis” driver in a 4.x version. The SVGA driver is a good option to try because it works with almost any card, although it will not be accelerated. Also, if you have a newer version of X, see if your card supports VESA by enabling it in the kernel and using the “vesa” driver for X.
—Chad Robinson, crobinson@rfgonline.com
I have Cox.net broadband service with an SMC router yielding a DHCP address for my home network. On the network, a Linux box is the virtual server. What I would like to do is poll the router to find the LAN side address and e-mail it to myself. The purpose of course is to be able to remotely connect using the DHCP IP address. The web page configuration on the router always starts at the login page regardless of the URL used (security). SMC does not seem willing to respond at all to my question.
—Tom Mautner, mautner@cox.net
Have you considered a dynamic DNS service? That may let you do an end run around to collect the address internally. A service such as ZoneEdit will allow you to update your address automatically via a web query, which you can automate with lynx.
—Chad Robinson, crobinson@rfgonline.com
Send yourself an empty e-mail, and you will see that the Received header lines will contain the IP that your router used when it connected to Cox's mail relay. You'll see something like this:
Received: from manyroads.ssc.com (manyroads.ssc.com
[192.168.3.58]) by mail.ssc.com (Postfix) with ESMTP
and you can get the IP from there. Not high tech, but it works.
—Marc Merlin, marc@merlins.org
If the router is doing NAT, and you want the address of its internal interface, run:
route -n | mail you@example.net
—Don Marti, dmarti@ssc.com
I have two graphic cards in my box, one is ATI Rage XL (PCI) and one is ATI RADEON VE QY (AGP). I would like to control the AGP card from a kernel module we have written (which displays on a projector), and I would like to let X control the PCI card (which displays on a flat panel monitor). The problem begins when we use startx. The PCI controlled monitor starts X correctly, but our kernel module no longer has control of our AGP card (no image displays on the projector). Does anyone know why X seems to be taking away our control of the AGP card?
—Jing Xu, jing@cs.unm.edu
Try forcing X to use a specific bus ID using the “BusID” parameter. Perhaps X is trying to use both cards as a multihead configuration, but you should be able to prevent it from doing that.
—Chad Robinson, crobinson@rfgonline.com
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Sponsored by AMD
Built-in forensics, incident response, and security with Red Hat Enterprise Linux 6
Every security policy provides guidance and requirements for ensuring adequate protection of information and data, as well as high-level technical and administrative security requirements for a system in a given environment. Traditionally, providing security for a system focuses on the confidentiality of the information on it. However, protecting the data integrity and system and data availability is just as important. For example, when processing United States intelligence information, there are three attributes that require protection: confidentiality, integrity, and availability.
Learn more about catching the bad guy in this free white paper.
Sponsored by DLT Solutions
| Designing Electronics with Linux | May 22, 2013 |
| Dynamic DNS—an Object Lesson in Problem Solving | May 21, 2013 |
| Using Salt Stack and Vagrant for Drupal Development | May 20, 2013 |
| Making Linux and Android Get Along (It's Not as Hard as It Sounds) | May 16, 2013 |
| Drupal Is a Framework: Why Everyone Needs to Understand This | May 15, 2013 |
| Home, My Backup Data Center | May 13, 2013 |
- Designing Electronics with Linux
- Making Linux and Android Get Along (It's Not as Hard as It Sounds)
- Dynamic DNS—an Object Lesson in Problem Solving
- Using Salt Stack and Vagrant for Drupal Development
- New Products
- Why Python?
- Build a Skype Server for Your Home Phone System
- A Topic for Discussion - Open Source Feature-Richness?
- Validate an E-Mail Address with PHP, the Right Way
- Tech Tip: Really Simple HTTP Server with Python
- Understanding the Linux Kernel
46 min 52 sec ago - General
3 hours 16 min ago - Kernel Problem
13 hours 19 min ago - BASH script to log IPs on public web server
17 hours 46 min ago - DynDNS
21 hours 22 min ago - Reply to comment | Linux Journal
21 hours 54 min ago - All the articles you talked
1 day 18 min ago - All the articles you talked
1 day 21 min ago - All the articles you talked
1 day 22 min ago - myip
1 day 4 hours ago
Enter to Win an Adafruit Pi Cobbler Breakout Kit for Raspberry Pi

It's Raspberry Pi month at Linux Journal. Each week in May, Adafruit will be giving away a Pi-related prize to a lucky, randomly drawn LJ reader. Winners will be announced weekly.
Fill out the fields below to enter to win this week's prize-- a Pi Cobbler Breakout Kit for Raspberry Pi.
Congratulations to our winners so far:
- 5-8-13, Pi Starter Pack: Jack Davis
- 5-15-13, Pi Model B 512MB RAM: Patrick Dunn
- 5-21-13, Prototyping Pi Plate Kit: Philip Kirby
- Next winner announced on 5-27-13!
Free Webinar: Hadoop
How to Build an Optimal Hadoop Cluster to Store and Maintain Unlimited Amounts of Data Using Microservers
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Some of key questions to be discussed are:
- What is the “typical” Hadoop cluster and what should be installed on the different machine types?
- Why should you consider the typical workload patterns when making your hardware decisions?
- Are all microservers created equal for Hadoop deployments?
- How do I plan for expansion if I require more compute, memory, storage or networking?




Comments
mount usb
simply type: mount /dev/sda1 /somewhere
Re: Best of Tech Support
Here is a script (sanitized) that I use to post my IP address. You can easily modify it to send an email instead of uploading a web page. Then just add it to your crontab to run as often as you want. Here's the URL where you can see the results of the script: http://home.hawaii.rr.com/nelsongarcia/myip.html
Aloha,
Nelson Garcia
#!/usr/bin/expect -f
set ftpserver "yourftpserver.com";
set username "yourusername";
set userpass "yourpassword";
set tmpfile "/tmp/myip";
set pubfile "myip.html";
set ifconf "/sbin/ifconfig";
set ip [exec $ifconf eth0]
set indx [string first "inet addr" $ip]
set indx [expr $indx +10]
set ip [string range $ip $indx end]
set indx [string first " " $ip]
set indx [expr $indx -1]
set ip [string range $ip 0 $indx]
set systime [clock seconds]
set datestrng "Last updated: [clock format $systime -format %H:%M:%S] - [clock format $systime -format {%B %d, %Y}]"
set toout [open "$tmpfile" w];
puts $toout "<html><head><title>My IP Address</title></head><body>";
puts $toout "<h1>My current IP is: <a href='http://$ip'>$ip</a><br>$datestrng </h1>";
puts $toout "<hr><h2>Warning</h2><br>Please do not bookmark any pages on my home server using the IP address as it is subject to change.";
puts $toout "<br>If the time above appears old, it probably means that my server is down and that you should not follow the link.";
puts $toout "<br><hr>Mail comments to <a href='mailto: '>Me</a>.</body></html>";
close $toout;
spawn ftp "$ftpserver"
expect "Name*:"
send "$username\r"
expect "Password:"
send "$userpass\r"
expect "ftp>"
send "put $tmpfile $pubfile\r"
expect "ftp>"
send "quit\r"
close
puts "\n"