Best of Technical Support

Our experts answer your technical questions.
Graphics on a Floppy

How do I create an image file from a floppy disk? I have tried to find this everywhere, with no success. —Bryan Hepkema, bhepkema@blsc.com

If I get your question correctly, to generate an exact copy of what is on a floppy disk, and store it on your hard disk, you can use the command dd if=/dev/floppy of=/tmp/floppy_image. You may have to input the correct device name for your floppy unit (possibly /dev/fd0). This will create a binary image of whatever is on the diskette in the file /temp/floppy_image. I would suggest you study the dd command with man (man dd). —Felipe E. Barousse Boué, fbarousse@piensa.com

If you need an image from a file, just insert the floppy and cat /dev/fd0 > file. The device representing the floppy is just a file representing the whole disk. That's true for hard drives as well. —Alessandro Rubini, rubini@linux.it

Web Fonts and Printing

How do I get Netscape to print fonts like the web pages actually show? Everything is defaulted to Times New Roman. How do I load and use True-Type fonts? —Greg Crutcher, madcrutch@earthlink.net

There is no short answer to your question. Many Xwindows configuration issues have to be addressed. The right answers can be found at the following URL: pegasus.rutgers.edu/~elflord/font_howto/html/index.html#toc1. It is also worth mentioning that Netscape has its own personality regarding fonts and behavior under X. —Felipe E. Barousse Boué, fbarousse@piensa.com

Check out the TrueType-HOWTO at www.moisty.org/~brion/linux/TrueType-HOWTO.html--Pierre Ficheux, pficheux@com1.fr

Sharing Files with Windows

I have installed Caldera's OpenLinux eDesktop 2.4 on my HP Pavillion 6630 computer. I can dual boot into either Linux or Win 98 and would like to be able to share files between operating systems. Under Linux, the file directory for Windows is visible under hda, and I browse through my Windows files and even open them, but I cannot write to this directory. Is there any easy way to set up a location on the hard drive where I can read and write to files from either Linux or Windows? —Tom Newman, newmanth@usa.net

It looks like you don't have permission to write to the files. That's what I would expect if you work as a user and the directory is automatically mounted at boot. Try adding “umask=0” in /etc/fstab, in the field where “default” appears to allow everybody to write the files. To have it be effective immediately, try umount /dos; mount /dos. —Alessandro Rubini, rubini@linux.it

PostgreSQL on Boot

How can I have PostgreSQL start automatically when my computer boots up? I must start the postgreSQL server with the command nohup postmaster -d 2 > logfile 2>&1 &, and I must start it as the user “postgres”. I can't figure out where in the /etc/rc.d scripts I should start it from. Thanks for your help! —Warren Killian, warrenk@in.net

The best way to start new programs is by writing a new script, just for them, in /etc/rc.d/init.d (talking RH-hierarchy, other distributions may be slightly different in the pathnames) and then link it from /etc/rc.d/rc3.d. The instructions to write those scripts in the right way should be part of the documentation for your distribution; another good way to do things is to learn (and copy) from what other scripts do. As far as links in /etc/rc.d/rc*.d, there is also a graphic tool to make those links, part of the control-panel tool. Note that Debian is already packaging Postres, so you can look at that script as well. —Alessandro Rubini, rubini@linux.it

The script should use a syntax such as

su postgres -c '/usr/bin/postmaster ...'

However, a “postgresql” init script is included in the distribution so that it is installed in the /etc/rc.d/inid.d directory. —Pierre Ficheux, pficheux@com1.fr

Trouble Logging In

I got Corel Linux installed alongside MS Win98 okay, but now, when I boot to Linux, the login screen flashes and accepts characters only when the screen is displayed (at about half-second intervals, on and off). I cannot catch the on part in order to successfully log in. What is wrong, and how is it fixed? I tried typing kde at the command prompt, but it cannot load x. It runs okay in VGA mode and logs in to kde okay. I am a total Linux newbie but am familiar with MS-DOS and CP/M (showing my age now!) Many thanks. —Adam Puk, adam-puk@cwcom.net

Your symptoms may mean that the system is driving the screen at incorrect frequencies (the PC world is too varied; it's not easy at all to devise things that work for all possible hardware), but there should be no relationship between that and reaction to keboard input. What you may try is booting in single user and then look for the command that corrupts things by executing the init scripts one at a time. Unfortunately, to do this kind of tracing, you'd need to already have good experience. I'm afraid your best bet is to look for a knowleadgeble neighbor. —Alessandro Rubini, rubini@linux.it

______________________

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

regarding keboard issue

mohammed's picture

hello
i have a samsung KB(KE BOARD)AND THE PROBLEM IS AM NOT ABLE TO TPE THE LETTER, BEFORE 'U' AND AFTER 'T'.i.e in between T AND U.I HOPE U UNDERSTAND THE QUESTION.AM FACING A LOT OF PROBLEM WITH THIS ONE LETTER.

White Paper
Linux Management with Red Hat Satellite: Measuring Business Impact and ROI

Linux has become a key foundation for supporting today's rapidly growing IT environments. Linux is being used to deploy business applications and databases, trading on its reputation as a low-cost operating environment. For many IT organizations, Linux is a mainstay for deploying Web servers and has evolved from handling basic file, print, and utility workloads to running mission-critical applications and databases, physically, virtually, and in the cloud. As Linux grows in importance in terms of value to the business, managing Linux environments to high standards of service quality — availability, security, and performance — becomes an essential requirement for business success.

Learn More

Sponsored by Red Hat

White Paper
Private PaaS for the Agile Enterprise

If you already use virtualized infrastructure, you are well on your way to leveraging the power of the cloud. Virtualization offers the promise of limitless resources, but how do you manage that scalability when your DevOps team doesn’t scale? In today’s hypercompetitive markets, fast results can make a difference between leading the pack vs. obsolescence. Organizations need more benefits from cloud computing than just raw resources. They need agility, flexibility, convenience, ROI, and control.

Stackato private Platform-as-a-Service technology from ActiveState extends your private cloud infrastructure by creating a private PaaS to provide on-demand availability, flexibility, control, and ultimately, faster time-to-market for your enterprise.

Learn More

Sponsored by ActiveState