Best of Tech Support
When I run a Perl script (version 5.6.0) and try to print a number, for example, print 5;, the number will not be printed to the screen unless I include a newline character print 5,`\n';. If I change the shell to csh or ksh, the problem goes away. But if I set my shell to Bash or sh, the Perl script will not print the number to the screen, but it will print a string to the screen. My question is what do I need to change in the Bash shell to get it to work correctly with Perl?
—Blake Brezeale, email@example.com
You might have corrupted your Bash shell environment. In this case you can type reset at the shell prompt and press Enter.
—Usman S. Ansari, firstname.lastname@example.org
I'm running Mandrake 8.1, which comes with gcc 2.96. I tried updating my compiler to 3.0.x using the Mandrake update software, and now I show parts of gcc 2.96 installed and parts of 3.0.x installed. As a result, I can't compile anything anymore.
—Rich Till, email@example.com
You should first uninstall all the gcc pieces (2.96 and 3.0.x), including libstdc and anything that is directly dependent on gcc 2.96. When all the pieces are removed from the system, re-install gcc 3.0.x and all the necessary pieces. Resolve any conflicts during the gcc 3.0.x install.
—Usman S. Ansari, firstname.lastname@example.org
I am trying to install Red Hat Linux 7.2 on an Intel hardware machine with a DPT VI (Adaptec) hardware RAID 5 setup. I go through the installation process okay and partitions are created. When I finish the installation process and press Enter to boot up, however, I get the error messages:
creating root device mounting root filesystem mount: error 19 mounting ext3 pivotroot: pivot_root (/sysroot, /sysroot/initrd) failed:2 freeing unused kernel memory: 220K freed kernel panic: No init found Try passing init= option to kernel
—Byron Rendar, email@example.com
Ted Ts'o has written a solution for this problem at: www.redhat.com/mailing-lists/ext3-users/msg03575.html. You need to modify /etc/fstab; try mounting the root filesystem as ext2 if it cannot mount as ext3. Change the ext3 in /etc/fstab to ext3,ext2. (You can convert the ext2 filesystem to ext3 later.) A longer alternate solution also is available on the web site.
How do I connect to the Internet using digital cable? My provider is Cox in Oklahoma City, and they do not support Linux machines. My NIC is a Realtek 8139 10/100. SuSE Linux detects the card, and it's enabled with DHCP. During bootup my card is detected but no IP address is assigned.
—Matt Reynolds, firstname.lastname@example.org
Is your provider actually using the DHCP protocol? Some providers are switching to PPP over Ethernet, which is not compatible. Check with your local Cox office to be sure; Cox uses both, depending on where you are in the country. SuSE supports PPP over Ethernet, but it's documented under ADSL or T-DSL in the manual, and the YaST2 configuration screen is called “DSL configuration”. Install the pppoed package, and see sdb.suse.de/sdb/en/html/hoe_adsl_pppoe.html.
As I work with IP-telephony (Nortel), I need to use vendor-specific codes in my DHCP server. Is there any DHCP server out there for Linux where it is possible to use vendor/option codes higher than those the Red Hat distribution uses?
—Bjoern Arstad, email@example.com
If your DHCP option code isn't supported by name, you can include it in dhcpd.conf with:
option option-nnn 'value';
where nnn is the option code as a three-digit decimal number. See man dhcp-options-dhcpd.
—Don Marti, firstname.lastname@example.org
|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|
|Non-Linux FOSS: Seashore||May 10, 2013|
- RSS Feeds
- Making Linux and Android Get Along (It's Not as Hard as It Sounds)
- Using Salt Stack and Vagrant for Drupal Development
- Dynamic DNS—an Object Lesson in Problem Solving
- New Products
- Validate an E-Mail Address with PHP, the Right Way
- Drupal Is a Framework: Why Everyone Needs to Understand This
- A Topic for Discussion - Open Source Feature-Richness?
- Download the Free Red Hat White Paper "Using an Open Source Framework to Catch the Bad Guy"
- Tech Tip: Really Simple HTTP Server with Python
- Roll your own dynamic dns
5 hours 6 min ago
- Please correct the URL for Salt Stack's web site
8 hours 18 min ago
- Android is Linux -- why no better inter-operation
10 hours 33 min ago
- Connecting Android device to desktop Linux via USB
11 hours 1 min ago
- Find new cell phone and tablet pc
11 hours 59 min ago
13 hours 28 min ago
- Automatically updating Guest Additions
14 hours 37 min ago
- I like your topic on android
15 hours 23 min ago
- This is the easiest tutorial
21 hours 59 min ago
- Ahh, the Koolaid.
1 day 3 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?