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.

Webinar
One Click, Universal Protection: Implementing Centralized Security Policies on Linux Systems

As Linux continues to play an ever increasing role in corporate data centers and institutions, ensuring the integrity and protection of these systems must be a priority. With 60% of the world's websites and an increasing share of organization's mission-critical workloads running on Linux, failing to stop malware and other advanced threats on Linux can increasingly impact an organization's reputation and bottom line.

Learn More

Sponsored by Bit9

Webinar
Linux Backup and Recovery Webinar

Most companies incorporate backup procedures for critical data, which can be restored quickly if a loss occurs. However, fewer companies are prepared for catastrophic system failures, in which they lose all data, the entire operating system, applications, settings, patches and more, reducing their system(s) to “bare metal.” After all, before data can be restored to a system, there must be a system to restore it to.

In this one hour webinar, learn how to enhance your existing backup strategies for better disaster recovery preparedness using Storix System Backup Administrator (SBAdmin), a highly flexible bare-metal recovery solution for UNIX and Linux systems.

Learn More

Sponsored by Storix