Best of Technical Support
I have a Red Hat 7.2 system with two physical drives, each partitioned with three logical volumes. I have done something that caused my main root partition to be read-only. I've checked the directory permissions, and they are fine. But if I try to vi or touch a file in root or anywhere in a root subdir, I receive touch: creating 'test': Read-only file system.
—Jeff Manning, Jeff@VMWorks.com
Make sure you are truly on the root partition:
# cd / # df .
The output should include a Mounted on column with a value of /. If it truly is mounted read-only, it is most likely because you had some filesystem error. You should fix it before you mount the partition read-write:
# fsck /dev/hda2
Replace /dev/hda2 with the entry under the Filesystem column in the output of df. Finally, do this to mount the root partition as read-write:
# mount / -o remount,rw
—Christopher Wingert, cwingert@qualcomm.com
When my machine boots up in X, I get back what I think is the KDE login manager. I would prefer to use GNOME's GDM, as it has better features and is more customizable. How do I make GDM the default X login manager?
—Gordon Baldwin, gordonbaldwin@bigpond.com
Log in as root and edit the /etc/sysconfig/desktop file, changing:
DESKTOP="KDE"
to:
DESKTOP="GNOME"
—Keith Trollope, ktrollope@san.rr.com
I recently upgraded StarOffice from 5.2 to 6.0, and my system can no longer access the network printers. The printers are HP LaserJets with JetDirect cards, and they have their own IP addresses. Using spadmin outputs only to a default printer; there is no obvious way to specify an IP address. Looking at psprint.config shows a location parameter but offers no documentation saying how to set up an IP printer.
—Murray Zangen, murray@nj.com
First, add the printers to the system using printtool and specify JetDirect printer. Then, in spadmin, add the printer definition for StarOffice. When you get to the print command window, specify the printer in the command, for example:
lpr -P hp3
—Keith Trollope, ktrollope@san.rr.com
This is a follow-up to the bulletproof backup/boot question that appeared in Best of Technical Support in the January 2003 issue. LILO knows about the -R option, which basically means “install this boot entry just once, then use default”. You may, at an early boot stage, install your emergency mode with lilo -R. At system shutdown (when all went well, if you are picky after remounting / as read-only) you may re-install your normal mode. So, if the box crashes unexpectedly (or goes down quickly from, say, a forced reboot with Ctrl-Alt-Delete), you come up in emergency mode.
—Tomas, mlavergne@cfl.rr.com
How do I stick a Linux box into my Windows peer-to-peer network? I have an existing Windows peer-to-peer network that includes one Windows XP machine and three or four Windows 98 machines. They have fixed addresses in the 10.1.1.1-10.1.1.14 range. All the machines are completely shared, and there are no passwords; I'm the only actual user most of the time. How do I make the Windows machines see the drives on the Linux machine and vice versa?
—J. G. Owen, owen_labs@worldnet.att.net
Samba can help with this task. Setting up Samba this way can be confusing, however, because the documentation doesn't make it clear from the first step that there are actually two halves to this task. In Windows, client and server functionality is the same. Once the network is up, you can browse other systems, and they can browse yours. With Samba, each side has to access the other. Once Samba is installed, it takes only a little work to access other systems. You should be able to use the smbmount command to mount a share from another system. In fact, if you have other name resolution methods correctly installed, such as DNS, you generally don't need to run nmbd and smbd. For permanent shares, you can add a line to /etc/fstab that is similar to the following:
//machname/share /mountpt smbfs åusername=xxx,password=yyy 1 1
You do need to set the Linux machine up as a server to enable other machines to access it. This is done by editing smb.conf to define the basic server properties as well as the shares to create. Then run nmbd and smbd to provide those services. The trick to avoiding sometimes-messy PDC-related work is to compile Samba such that it supports your normal password services. You can then add users to your system normally and use the smbpasswd utility to create the file Samba actually uses. It's a relatively manual process (described in the “Unofficial HOWTO” at www.samba.org), but it does do the trick. If you want to browse as well as share, make sure you add the guest or no-name account.
—Chad Robinson, crobinson@rfgonline.com
Various versions of Windows are a bit touchy with the Network Neighborhood. The best thing to do is edit /etc/samba/smb.conf. Make sure the “workgroup = line” matches your workgroup. Add a “netbios name =” for the name of your machine. Depending on your installation, the default passwords will be picked up from /etc/password.
—Christopher Wingert, cwingert@qualcomm.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 |
- New Products
- Linux Systems Administrator
- Senior Perl Developer
- Technical Support Rep
- UX Designer
- Web & UI Developer (JavaScript & j Query)
- Designing Electronics with Linux
- Dynamic DNS—an Object Lesson in Problem Solving
- Making Linux and Android Get Along (It's Not as Hard as It Sounds)
- Using Salt Stack and Vagrant for Drupal Development
- Reply to comment | Linux Journal
6 hours 41 min ago - Reply to comment | Linux Journal
6 hours 57 min ago - Favorite (and easily brute-forced) pw's
8 hours 49 min ago - Have you tried Boxen? It's a
14 hours 41 min ago - seo services in india
19 hours 12 min ago - For KDE install kio-mtp
19 hours 13 min ago - Evernote is much more...
21 hours 13 min ago - Reply to comment | Linux Journal
1 day 5 hours ago - Dynamic DNS
1 day 6 hours ago - Reply to comment | Linux Journal
1 day 7 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!
Featured Jobs
| Linux Systems Administrator | Houston and Austin, Texas | Host Gator |
| Senior Perl Developer | Austin, Texas | Host Gator |
| Technical Support Rep | Houston and Austin, Texas | Host Gator |
| UX Designer | Austin, Texas | Host Gator |
| Web & UI Developer (JavaScript & j Query) | Austin, Texas | Host Gator |
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
printing issues
Hello. My name is Tim Gershikov. I am an assistant network admin for Bass & Associates in tucson, AZ. We have a linux Red Hat computer that does not print one specific file only. We use mozilla to connect to internet, than adobe to read the files. I already downloaded a package of all the gentium fonts, but it didn't help. I believe there is a problem between the printer (HP 4000) and the fonts on postscript renderer. See, it opens the file and we can see it, but once we send it to the printer, it prints in squares. We also established that that file prints of Windows-based PC's that are running Mozilla, but not of Linux-based PC's. I was wondering if you could help me out, and tell me what do I need to download or do in order for me to fix this problem. Thank you so much for your time. My e-mail address is: tgershikov@bass-associates.com
printing issues
Hello. My name is Tim Gershikov. I am an assistant network admin for Bass & Associates in tucson, AZ. We have a linux Red Hat computer that does not print one specific file only. We use mozilla to connect to internet, than adobe to read the files. I already downloaded a package of all the gentium fonts, but it didn't help. I believe there is a problem between the printer (HP 4000) and the fonts on postscript renderer. See, it opens the file and we can see it, but once we send it to the printer, it prints in squares. We also established that that file prints of Windows-based PC's that are running Mozilla, but not of Linux-based PC's. I was wondering if you could help me out, and tell me what do I need to download or do in order for me to fix this problem. Thank you so much for your time. My e-mail address is: tgershikov@bass-associates.com