Fedora Linux Lessons and Tips
Most of these lessons are from working with Fedora Core 3 - 6, and Fedora 7 and 8, but may be applicable to other Linux distributions as well. Some tweaks in cross platform applications such as Thunderbird may apply even to Windows users.
How Tos
- Recent things I learned with Fedora 9 and 10
- Problem: Desktop icons in Gnome do not appear after log in: How to fix it.
- Enigmail in Thunderbird error message solution
- How to restore grub
- How to make OpenOffice start up faster
- How to erase a CDRW disk.
- How to tweak Thunderbird's spam filter setting to catch more spam.
- How to delete unwanted emails from the server without having to download them first.
- How to mount an ISO file
- How to run Java .jar files
- How to stop a hung process
- How to block inappropriate Internet content with Dansguardian
- How to install new fonts
- How to download a section of a password protected web site with wget
- How to fix update problems resulting from unresolved dependencies
- How to format a drive or partition
- How to add MP3 support for K3b - the painless way!
- How to input Japanese within an English environment
- How to make certain Windows programs to run under WINE
- How to make seamless image patterns for web backgrounds
- How to convert Nero Burning ROM NRG image files to ISO files
- How to create a DVD disk from an AVI file you downloaded from the Internet
- How to install Bittorrent and set the iptables (firewall) to receive incoming and outgoing connections
- How to backup a DVD with dvdbackup
- How to extract the contents of multiple ZIP files in one single command
- How to mount a LVM drive
- How to create an encrypted volume to store your private data UPDATED on Oct. 6, 2005
- How to automatically mount a second physical hard disk drive or a partition and assign write privileges as a user
Various lessons
- Playing streaming video .asf files in Firefox
- Mixed repositories resulting in VLC and Mplayer not working
- Adding DMA to my DVD player
- How I fixed the problem of not being able to play DVDs rented from the video shop
- Fixing dependency problem: error while loading shared libraries: libstdc++.so.5
- Setting up SCIM to type in Japanese
- Slicing images with Gimp
- Networking with my Windows PC using Samba
- "Xlib: connection to ":0.0" refused by server" problem and solution
- Lessons using Yellowdog Updater Modified (Yum)
- Problem and solution playing WMV (Windows Media Video) files
- Fixing Gnome log in problem with error message: Warning: Unable to read ICE Authority file /home/myusername/.ICEauthority
- Using the sudo command to avoiding typing the root password for root access
- Lesson on manual partitioning
- Device drivers in Linux - a simple workaround
- Problem of installing a kernel update with Yum
- Installing new updates automatically with "Yum"
- Installing NTFS file support in the Linux Kernel UPDATED on Aug. 17, 2006
- Making my SCSI scanner to work UPDATED Sept 23, 2005
- Installing the Java plugin for Firefox
- Fixing my LAN device
- Using "wget" to download an entire web site
- Bible Time a KJV Bible program
For more tips and reasons that inspired my switch to Linux, also see: Adventures Learning Linux: My experiences with Fedora
Disclaimer: The following hacks and tweaks worked fine for me, but I make no promises that they will for you! It is always a good idea to back up your important data to a different media before you tweak your system. Please read through the entire section of the problems I faced and the solutions I found before you start to implement any of them! At the end of some of the sections I later added some updated information of new things I learned. You may not have implement the first steps I took. I left the older steps to remind me from whence I came.
Recent things I learned with Fedora 9 and 10
Fix the broken OpenOffice quickstarter linkJust copy it from the usr/lib64/openoffice.org3/share/xdg/ directory to ./config/autostart directory!
Clear Bash History
From Terminal enter:
Wipe the freespace of your home user directory
Plymouth graphical boot loader display
To get it to work, just add to the grub kernel line after the word quiet: vga=792
Combine AVI files:
We're going to make use of the wonderful cat command. I'd renamed each Luther video as Luther1.avi - Luther2.avi. Now to string them all end to end.
cat Luther1.avi Luther2.avi > Luther.avi
Now we're 2/3 of the way there! Stringing together .avi files can cause a breakdown in the sync between video and sound. So, we'll use mencoder to sort things out.
mencoder -forceidx -oac copy -ovc copy Luther.avi -o Luther_final.avi
But tried this and it didn't seem to work for me! :-(
Play mp3 in Totem Just run: yum install xine-lib-extras-freeworld xine (After RPM Fusion repo is installed!)
RPM install
rpm -ivh packagename
src.rpm install
rpmbuild --rebuild packagename..src.rpm
cd /root/rpmbuild/RPMS/noarch/
rpm -ivh packagename
RPM Uninstall
rpm -e packagename
Command to rip DVDs:
mencoder /dev/sr0 -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate="1200" \ -vop scale -zoom -xy 640 -oac mp3lame -lameopts br=128 -o /home/jamesjp/Name-Of-DVD.avi
Way to Change Fedora Root Password At boot Grub, press e to edit the command line, add a space and -s meaning single user. It will boot up with root access. After that run the passwd command.
Command to convert wmv file to swf file: ffmpeg -i source-file.wmv -s 400x326 -ar 44100 -r 12 target-file.swf
How to make Firefox Faster Normally the browser will make one request to a web page at a time. When you enable pipelining it will make several at once, which really speeds up page loading.
Type about:config into the location bar
2. Alter the entries as follows:
Set "network.http.pipelining" to "true"
Set "network.http.proxy.pipelining" to "true" (if you use a proxy)
Set "network.http.pipelining.maxrequests" to some number like 10. This means it will make 10 requests at once.
3. Lastly right-click anywhere and select New-> Integer. Name it "nglayout.initialpaint.delay" and set its value to "0". This value is the amount of time the browser waits before it acts on information it recieves.
Yum Commands after installation. yum -y install kmod-nvidia xorg-x11-drv-nvidia libdvdread libdvdplay libdvdnav lsdvd libdvbpsi seahorse bluefish thunderbird yumex nautilus-open-terminal gftp gnome-commander mc k3b k3b-extras-nonfree samba system-config-samba wine* zim gstreamer-* libdvdcss kleansweep timidity++ cabextract devede grsync gconf-editor sunbird deluge gparted cssed nautilus-actions preload xine-lib-extras-freeworld xine
yum groupinstall "Development Libraries" "Development Tools" -y
yum install -y compat-libstdc++-33 compat-libstdc++-296
Secure Delete to right click
- To add 'secure delete' option to right click
- This will not delete folders
- Large files can take a long time to shred, ie 700mb can take a half an hour or more to shred, depending on your machines speed.
- To see how/what the shred command does type shred --help in a terminal
- Open a terminal and copy paste below one line at a time pressing enter after each line. (root password will be required)
su yum -y install nautilus-actions
- Navigate to System-> Preferences->Look and Feel->Nautilus actions Configuration
- Where you will get a screen like below fill in blanks as shown
Label: Secure Delete
Tooltip: Securely Delete files not folders
Icon: gtk-delete
Path: shred
Paramaters: -f -n 26 -u -v -z %M
Comand to install flashplugin
yum install nspluginwrapper.{i386,x86_64} pulseaudio-lib.i386How to edit sudoers to use sudo with certain programs without being prompted for a password/
Examples:
jamesjp ALL=NOPASSWD: /usr/bin/pup
jamesjp ALL=NOPASSWD: /usr/bin/puplet
jamesjp ALL=NOPASSWD: /usr/sbin/pup
jamesjp ALL=NOPASSWD: /usr/sbin/puplet'>/usr/sbin/puplet
(End of Recent Tips)
Problem: Desktop icons in Gnome do not appear after log in: How to fix it.
I had this problem once before, found the answer, fixed it, but then forgot the solution a couple years later. I won't forget this time now that I'm documenting the solution. Simply open Terminal as a normal user and enter:
This will kill Nautilus which will immediately again reload bringing back the desktop icons. Why this problem happens I don't know except that in both times from what I remember, it happened after a system update with yum.
Enigmail error message problem and solution
After upgrading to a newer version of Fedora and starting with a clean /home/user directory, I could no longer use the Enigmail plug in of Thunderbird but kept getting error messages such as "can't connect to `/tmp/seahorse-4VRcyo/S.gpg-agent': No such file or directory". This message also was listed as a bug in Ubuntu but nobody in the Fedora community seemed to have the same problem. After much detective work, I learned the the Seahorse agent has to be turned on for Enigmail to run properly. I added to the session manager the following entry.
seahorse-agent
This loads the Seahorse agent each time I log in. Problem fixed!
How to fix the grub bootloader
When playing around with other distros like Ubuntu, sometimes the installation messed up the grub bootloader of Fedora. Consequently Fedora will not boot. Here's how to fix it:
- Boot with the Rescue CD or the installation DVD
- Choose linux rescue
- At the prompt, enter:
chroot /mnt/sysimage
grub-install /dev/yourbootdrive - Enter the word exit, and the PC will restart. Remove the CD / DVD from the drive before it does.
In my case because I am using a SATA hard disk, I entered:
How to make OpenOffice start up faster
I added Openoffice to the Gnome Session manager with the following command:ooffice -quickstart -nologo -nodefaultI had to do this in Fedora 7 only. In Ubuntu Feisty Fawn just checking the "Enable systray quickstarter" option under Tools, Option, Memory will add the command automatically to the Gnome Session manager.
How to erase a CDRW disk.
I kept getting errors trying to erase a CD RW disk both k3b and gnomebaker. From Fedora Forum I learned one must unmount the disk first, but there was no unmount options for that disk in Gnome Nautilus. I had to do it from the command line in root using the umount command. This problem seems to be fixed in Fedora 7.Playing streaming video .asf files in Firefox
I couldn't watch certain streaming video files with the .asf extension. I found that all I needed to view them is mplayer and the mplayer plugins for Firefox! I got them by enabling the Livna repository and installed them with yum.
Mixed repositories resulting in VLC and Mplayer not working
I started getting the error message:symbol lookup error: /usr/lib/libavcodec.so.51: undefined symbol: faacDecOpenwhen I tried to use either Mplayer or Vlc. I learned it was because I mixed FreshRPMs and Livna. To fix the problem I had to remove some components with yum:
How to tweak Thunderbird's spam filter setting to catch more spam.
In spite of all the good things I read about Thunderbird's Bayesian spam filter, it was still catching only a relatively small percentage of spam mail in spite of the fact that I had been training the filter for over a year. I found a tweak that increased the likelihood of catching spam at the risk of some false positives. But because Thunderbird is set to never label as spam anybody listed in the address book, I considered increasing the spam catching ability with the built in Thunderbird spam filter over all safer than using third party spam filter plugins. I used such a plugin called "Spamato" and though it did an overall better job than Thunderbird's spam filter, it did have some false positives from time to time in spite of the fact that there was a Thunderbird address book entry for the sender of the email that was classified as spam.
To change the default setting of Thunderbird's spam filter, do this:
- On the toolbar click on Edit, and then on Preferences
- Click on Advanced
- Click on the General tab
- Click on Config Editor...
- Scroll down till you find "mail.adaptivefilters.junk_threshold" and double click on it
- Change the number from 90 to 50
- Click on OK, and exit out of that window
How to delete unwanted emails from the server without having to download them first
Due to a large amount of spam I was receiving in a certain email account, it became such a chore to find valid email, I opted to quit the using the account and made a new one on another server. However because the old account was connected to one of my web sites, the administrator told me I could not remove the email account entirely without also removing my web site. And so I was stuck with keeping the account, and also keeping it from getting too full of junk. The only email program I previously knew able to delete email directly from the server without having to download it first is a Windows program called Becky! email. I effectively used it with Wine and it did the job. But I always wondered if there was a program in Linux that could do the same thing. I finally found it on Dec. 4, 2006: kshowmail
It uses KDE libraries and so you need KDE installed on your system. It's very simple to setup and use. You can also use kshowmail to delete a single large unwanted email from the server!How to mount an ISO file
I knew there exists software in Windows that can mount an ISO file so that you can use it to install programs without having to first burn it to a CD, but I didn't know how that could be done in Linux. I googled for the answer and found that Linux already has all the tools needed to do it!First log into root in Terminal and then make a new directory under /mnt
How to run a Java .jar file
I wanted to up upload a large file to the Google Video server. Google said to download and install the "Desktop Uploader" for files over 100 megabytes. I downloaded the file for Linux called GoogleVideoUploader.jar but could not figure out at first how to run it. Google offered NO instructions whatsoever on their instructions page! And so I googled for the answer from another web site and found the command to run the file:And so I CDed to the jar file, opened terminal and ran the command:
and it worked! Of course you need Java installed to use Java.
How to stop a hung (run-away / zombie) process
I found that though I exited a certain application, System Monitor showed me that it was still using a lot of CPU power! Usually this was after exiting a Windows application using wine. This not only wastes needless CPU cycles which slows down your system, it runs up your electric bill and heats up the CPU. I learned how to kill the process using the kill -9 process command.1. Open a Terminal Window
2. Enter:
3. Enter:
Fixing a slow jumping DVD playback
Playing DVDs worked fine in FC 4 but for some reason FC5 did not play them as well. I learned from Fedora Forum that I need to add DMA to my DVD device. I edited in root /etc/rc.d/rc.local and added the following line to the end of the file:/sbin/hdparm -d 1 /dev/dvdand rebooted my system. That fixed the problem!
Lesson how to make certain Windows programs to run under WINE
Some Windows programs will not run unless the DLL overrides are set in the winecfg. In the case of Theophilos Bible program, it would hang unless riched20 and riched32 were set in the DLL overrides section. To do that open winecfg from Terminal:The Windows version setting in winecfg may also need to be set differently according to the Windows program you wish to run. For example, though most programs will run if set to Windows 98, DVD Shrink will work only if set to Windows 2000 or XP.
From Wine version 0.9.23 to the current version (0.9.28 at the time of this post) there is a conflict with installations that include Smart Common Input Method (SCIM). SCIM is used to input Asian characters such as Japanese, Chinese or Korean, and so mainly folks who use these languages (such as myself) would have a problem with Wine. To get around this bug, I had to remove the installed Fedora Core Wine, download the Wine source file from winehq.org untar the source, and edit the dlls/winex11.drv/x11drv_main.c file by commenting out the line:
if (!XInitThreads()) ERR( "XInitThreads failed, trouble ahead\n" );by adding /* to the start of the line and */ to the end of the line so it looks like this:
/* if (!XInitThreads()) ERR( "XInitThreads failed, trouble ahead\n" ); */This line is just under the line that says:
/* Open display */
After making the change, save the file and then open Terminal in the root of the Wine source directory and start to compile the source with the following command:
April 1, 2006: How I fixed the problem not not being able to play a DVD rented from the video shop in Fedora Core 5
I had no problem at all in FC4 playing a rented DVD, but could not play the same DVDs after installing FC5! My favorite multimedia program, VLC, could not do the job. Totem didn't work. I tried other multimedia programs like Xine. That didn't work. Finally I installed a totem-xine combination which gave me a clue: I was missing a library file named libdvdcss! And so I downloaded libdvdcss with yum using the Livna repository:
I also learned another way to do it by executing this command in root:
March 5, 2006: Fixing dependency problem: error while loading shared libraries: libstdc++.so.5
I downloaded the latest version of Thunderbird from Mozilla but I couldn't run it. I kept getting "error while loading shared libraries: libstdc++.so.5" The fix was to run the following command in root and install the needed library with Yum:
March 2, 2006: How to set up SCIM in Fedora to type in Japanese
SCIM is the default Asian language input method in Fedora Core 5. I found it works in Fedora Core 4 also. The former method is called IIIMF but SCIM is superior to it.
First make sure that SCIM is installed by running the follow command in Yum after logging into Root from a Terminal window with su.
And press enter. This command is especially to install Japanese language input. If you wish to install other Asian languages as well you can shorten the command in Yum by simply entering:
This will give you everything that applies to SCIM. After installing SCIM, run the following command in Terminal as a normal user:
.bash_profile Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi User specific environment and startup programs PATH=$PATH:$HOME/bin export PATH unset USERNAME
Add the following lines at the end of that file:
GTK_IM_MODULE=scim
XMODIFIERS=@im=SCIM
export GTK_IM_MODULE XMODIFIERS
After saving the file, log out of your user account and then log back in again. SCIM should run and you will see a new icon in the display panel that gives you the option to change langages! But to select a language, first you must first open the program that you want to use to type in. This SCIM setup works great in Thunderbird email, Gedit, all Gnome based word processing and editing programs, Bluefish, and OpenOffice. It does not work (at least this setup) in KDE applications. :-(
Lesson on Feb. 23, 2006: Slicing images with Gimp
I tried to figure out from before how to cut up an image into sections and put in a table so that it will load faster section by section rather than using one large image. I'm sure you've seen images like this on the web. It's cool to watch an image load this way! This is something that I could only do in Windows using Paint Shop Pro up till now, but I learned that it's just as easy to do in Gimp, just not as apparent.
The steps are to first put horisontal and verticals guides on the image. The guides option is under Image in the Toolbar. After that use: Filters → Web → Py-slice. It will copy the cut image and make a HTML file with the table code you need. After that just import into your web page! If you know about relative paths, this is not hard to do.
Lesson May 31, 2006: Networking with my Windows laptop using Samba
It seems I bungle through this every time I set up Samba, but I eventually get it working. Here is what I did last time:
- Using Gedit I edited /etc/samba/smb.conf and set my Windows workgroup to WORKGROUP. Here's another good page to see more examples of various options in smb.conf
- Caveat: Edit smb.conf and remove the entire Homes section or the entire user directory will be accessable!
- Go to System → Administration → Samba and add the directories you wish for Windows to be able to access. (Note: system-config-samba must be installed in order to do this.) Change the acess properties so that only your linux user name can access them.
- While still in the Samba server configuration dialog box, click on Preferences, then click on Samba Users, then Add User.
Now you should see the Create New Samba User dialog box.
- Click the drop down arrow to the right of Unix User Name and select the user name of your account.
- In Windows Username type the user name you wish to access your Linux PC from Windows. This does not have to be the same as your Linux user name.
- Then type your Samba password twice. This is the password you type from Windows just after typing your Samba User name in Windows. It doesn't have to be the same as your Linux user password.
- In root open /etc/samba/smb.conf with a text editor and remove the ; in front of the hosts allow string IP address line and change it to the IP address of your Windows computer. You can find that IP address within Windows by entering at the command line:
ipconfigIf you have more than one windows computer, enter the second ip address immediately after the first separated by a space.
- Also in the /etc/samba/smb.conf file, go to the encrypt passwords line and remove the semi-colon at the beginning of this line and set it to yes.
- Go over other entries in the smb.conf file and make sure that's want you want.
- From root enter the command:
chkconfig --level 35 smb on
- From root enter the command:
system-config-firewalland check Samba and Samba client to be a trusted services
- From root enter the command:
/etc/init.d/smb restart
Now you should be able to access your Linux shares from Windows!
It is so nice to be able to network with my Windows PC! Now I have the best of both worlds and can exchange documents back and forth between PCs. I can even edit my Linux PC documents from Windows if I need to, and visa versa.
Update Mar. 15, 2006 I learned I had to remove the Homes section in /etc/samba/smb.conf or my entire /home/user folder was browsable!
Update January 22, 2009: I learned I had to enable Authentication since upgrading. Go to System → Administration → Authentication and enter your root password. The Authetication Configuration dialog box should appear. Click on the Authentication tab, and check the Enable SMB Support box.
Make sure also that both Samba and Samba client is checked as a trusted service in the Firewall Configuration dialog box.
Jan. 6. 2006 How to install new fonts in Linux
Installing a new font I found is something that took me a long time to figure out after a lot of bungling around. I read lots of web pages how to do it, but they were so complicated and over my head. However I found a simple procedure and am finally taking the time to document it: All you need to do is create a hidden directory in your /home/user directory named .fonts and copy the new font into it!
cp font_file_name .fonts
You can even use a file manager like KDE or Nautilus to drag and drop the fonts into the .fonts directory after changing the view to show hidden files / folders.
Lesson on Nov. 24, 2005: How to download a section of a password protected web site with wget
Because my friend Lydia in Ukraine does not have broadband, she had been sending me requests to download music from a certain organization's web site. (All original music made by members of the organization). This particular site is for members only, and therefore password protected. Even using a download manager such as Star Downloader (using WINE) it was very laborious to download all the music she wanted (nearly 30 CDs to date) And so I wondered if I couldn't use the Wget program to down the whole section in one shot. Using wget means the program would do all the work for me even if it took days and night - which it did - nearly 48 hours of 24Gigabytes of MP3 files! (WIth ADSL before I upgaded to fiber optic cable!)
I only wanted the audio section of the web site, and that included all the sub directories of the audio directory recursively, but not the entire web site. I had to abort my first attempt when I saw that wget was downloading the entire site which I didn't want or need. Then I discovered the -np option of wget which means "no parent" or do not descend to the parent directory. I figured this would work and it did! Here is the command I used.
It took much longer than I thought, even at 150K a second! Here is the message I got when done:
FINISHED --07:47:01-- Downloaded: 24,622,929,541 bytes in 11073 files
This was not cracking that site for I am a member with a legitimate user name and password! I literally saved myself scores of hours of future labor by taking just a few minutes to learn the command options of wget. Maybe you poor Windows GUI only users might appreciate the power of the command line after reading this. :-)
"Xlib: connection to ":0.0" refused by server" problem and solution
After logging in as root with su, certain Gnome applications (like gedit) would not load. Instead I would get the error message:
Xlib: connection to ":0.0" refused by server Xlib: No protocol specified (gedit:5789): Gtk-WARNING **: cannot open display:Other things I couldn't do was use gdmsetup or other system apps that related to Gnome. I also noticed that there were KDE apps in the Gnome menu that weren't there before. Another difference was the Log in screen had changed that reminded me of what KDE uses. So I came to realize that KDE was somehow causing conflicts. It was probably because I added two more KDE repositories to Yum that weren't there before. I added them because I want to experiement with Quanta Plus again but couldn't install it without these repositories.
I tried the "switchdesk gnome" command from Terminal. This fixed a similar problem before, but this time it didn't work. So I decided to remove all the KDE libraries with Yum.
There are only two lines in that file and should read thus if you use Gnome:
DESKTOP="GNOME" DISPLAYMANAGER="GNOME"In my case, one of the lines had KDE after the equal sign. and without quotation marks around it. So I edited it in root with Midnight Commander, changed the KDE to "GNOME", saved the file and rebooted. This time the problem was *really* fixed! The greeter screen looked like it should look for Gnome and there were no more conflicts using gedit in root.
K3b, Kaddressbook and Kgpg are really the only KDE apps I really like and use. I don't like the KDE sounds for events, especially the breaking glass sound during error messages! Awful!! Sometimes my speaker was too loud and the breaking glass sound really jars my nerves. I stopped using Kyum as a gui for Yum and started to use Yumex instead.
Lessons using Yellowdog Updater Modified (Yum)
Oct. 24, 2005: I think using Yum is the best and easiest way to install software and keep the system updated. It sure beats hunting all over the Internet for updates like I used to do when working in Windows! But sometimes I ran into snags using here. Below is my compilation of things I learned to date:
- When Yum aborts with an error message of this kind:
//var/cache/yum/updates-released/repomd.xml:1: parser error : Document is empty
Try cleaning the Yum cache with the clean all command:
yum clean all
This has usually fixed the problem for me and Yum was able to do the job I wanted it to do with the next install or update command. - Don't mix the Livna repository with either freshrpms, newrpms, atrpms or the dag respository! If Livna is added, disable the others and visa versa.
- Yumex is a good GUI to use for Yum if you rather work in a graphic interface than the command line. It shows what is happening better than the Kyum GUI.
- Always use Yum from the command line rather than the Red Hat Network Updater(very slow) or the Add/Remove Applications menu in the System Settings menu. Add/Remove Applications will always prompt you for the installation CD and hence not give you the latest updates, only older stuff. Besides that, you may end up with failed dependencies and not be even be able to install what you want!
Besides Yum, I found that I can also use apt-get and its graphical form of synaptic to install new applications in Fedora Core. Either Apt-get and Synaptic work much faster than Yum. If you don't have these utilities yet, just install them with Yum!
How to make seamless image patterns for web backgrounds
I learned this trick on Oct. 24 and am really excited about it! That's because previously the only way I knew how to do it was using Paintshop Pro in Windows. But by using the Gimp in Linux, it is much easier to make a seamless pattern!
1. Open the image you wish to make sceamless in Gimp.
2. In the Tool Bar, click on Filters, → Map, → Make Seamless.
3. Save the image
That's all there is to it! In Paintshop Pro I had to select only part of the image, and if the selection was too close to any one of the 4 edges of the image, Paintshop Pro would tell me it couldn't do the job unless I gave it more slack. I'm glad to be free of that hassel! The background image on this web page was created by this method.
How to convert Nero Burning ROM NRG image files to ISO files
Problem: I had some image files I made with Nero Burning Rom (back in my Windows days) and I wanted to burn more CDs from them. K3b, my favorite CD/DVD burner in Linux, did not recognize the .nrg format. Renaming the extension didn't help. So I googled for the answer and found a cool little utility that could convert nrg to iso: nrg2iso Click on the link to download the tar file, untar it (I use Gnome Fileroller) log in as root, cd to the nrg2iso-0.2 directory, and enter the make command. It will compile in a jiff. Then use Midnight Commander or the cp command to copy the file nrg2iso to /usr/local/bin To convert your nrg file, CD to the directory of that file and enter the command:
Problem and solution playing WMV (Windows Media Video) files
My favorite video player, VideoLAN (vlc) couldn't seem to play wmv format video format files and my next favorite player, MPlayer, could only play some of them. After going to the Mplayer web site, I learned I needed to download more codecs for it, unpack the tar file and to copy them to /usr/lib/win32 directory. The easiest way to do this is to log in as root and use Midnight Commander (mc). Midnight Commander sure beats typing out long paths and file names from the command prompt!
How to create a DVD disk from an AVI file you downloaded from the Internet
I downloaded some really good educational documentaries from the Internet, and wanted to show them to the young people I live with. But because the downloads were AVI files and could only be played on a fast PC, and because the kids weren't interested in coming to my room and watching them from my PC screen, they didn't see them. I wondered if I could convert them to DVD format to play on our DVD player. I knew if I could make them into DVD and show them from the big TV screen, the kids would want to watch them! So I googled for the answer and finally found it Oct. 4, 2005. It worked! Boy am I excited! I bet a lot of my Windows savvy friends don't know how to do this. :-)
These steps are thanks to the author of: DiY DVD from avi: doing it with Linux But because of some things I considered small errors (probably typos), and some updated information, I am duplicating his tutorial and trying to simplify it for both myself and my readers.
You need the following software and its dependencies:
- tovid
- dvdauthor
- k3b
This will not only install mjpegtools and transcode, but the dependencies that they need!
If Yum can't find these packages, you probably need Livna added as a repository. If you use Fedora Core 4, you can check out this link to add Livna.
After that go to the tovid download site and download tovid from the mirror closest to you. It is an RPM file, so you can either open it immediately with "Install Packages" or download it and open it after that with Install packages. If you downloaded and installed tovid's dependencies first, it should install correctly.
Download and install dvdauthor in case you don't have it:
Exit from Root, CD to the directory that contains the AVI file you want to convert to DVD, and run the following command:
Substitute "avifilename.avi" for the name of your avi file. This command will create a file named mydvd.mpg. This mpg file will be much larger than the original AVI file, so you need to be sure you have at least 3 or more gigabytes free on the partition you are working in! Also be prepared to wait a looong time for this process to finish. You can be doing something else while its working.
When Tovid is finished its job, a file named mydvd.mpg should be in the directory you are working in. Enter:
This process is quick and will make a file named dvdlayout.xml. After that enter this command:
Lo and behold, you should now see a new subdirectory named dvdlayout. Open it and you will see further subfolders named AUDIO_TS and VIDEO_TS. The latter directory should contain the video / audio files converted from your AVI source. If so, success! Now all you need to do is use K3B to burn the AUDIO_TS and VIDEO_TS directories to a blank DVD disk and you're done!
After you burn and test the DVD on a DVD player, you might want to delete the source files from your HDD as they are probably pretty large.
How to install Bittorrent and set the iptables (firewall) to receive incoming and outgoing connections
For a long time I struggled on whether to use the easy graphic interface of Firestarter to manage my firewall, or to use iptables. Even though Firestarter seemed to be easier to use, the constant messages of blocked connections were discomforting. I didn't know if it was good good or bad to block them, and especially so when using Bittorrent and Skype. On Sept. 27, 2005 I finally found a simple easy to follow step by step tutorial how to set up iptables properly for Bittorrent!
However now I use Firestarter instead of setting iptables from the command line. Firestarter is much easier to use and much faster to add and remove firewall rules.
Fixing Gnome log in problem with error message: Your session only lasted less than 10 seconds .... Warning: Unable to read ICE Authority file /home/myusername/.ICEauthority
On Aug 25, 2005 I apparently did something bad and messed up the permissions of my Home directory. I couldn't log in to Gnome anymore as a normal user! So I googled for the answer and found I could use the chown command to fix the problem while logged in as Root in the failsafe terminal from the log in screen.
Lesson August 1, 2005: Using the sudo command to avoid having to type the root password
I learned that instead of typing su or su - and then a password for root access, I could skip having to type the password by using the sudo command. By default sudo should already be installed on your system. You just need to edit the /etc/sudoers file and add this line:
username ALL=(ALL) NOPASSWD: ALL
To edit the /ect/sudoers file, you of course need root access first by logging in with the su command. You are supposed to only the visudo editor program, but this editor is perhaps the most unfriendly text editor I've ever seen! I can't make head nor tail out of it, and couldn't figure out how to save the sudoers file and exit from visudo properly. The next time I tried to use visudo, I would get an error message. So rather than use visudo, I use gedit instead. All I know is that it works! If you edit the /etc/sudoers file correctly, after that to get root access without typing a password, from the Terminal window just enter this:
Lesson on July 26, 2005: How to backup a DVD.
I found a program called Dvdbackup (RPM file download) which can make ISO images of DVD. If you use install this RPM, here is the code to use it to make an ISO image. The command is one single line. Substitute DVD_Volume_name for your DVD volume name. The DVD device would also need to be changed if yours is not /dev/hdb
Lesson on July 13, 2005: How to extract the contents of multiple ZIP files with a single command
I was asked to make audio CDs from files I downloaded of original music made by my friends from MP3 files compressed with ZIP. I found myself opening each ZIP with Gnome's graphic archive program "Fileroller" and dragging and dropping each MP3 file to a folder. For each CD of 14 to 18 songs each, this is a lot of work! I remembered a saying I used to tell others about working with PCs, "If you think there must be an easier way to do it, there probably is." In the old DOS days I used to use single commands from the DOS command prompt to do lots of things, and so I was sure there must be some command to do it in Linux. There is! I found the command from a forum in linuxquestions.org. I copied the next set of downloaded ZIP files to a directory of its own, opened Terminal, CDed to that directory, and typed the followed at the prompt:
Rather than have to refer to this documentation each time I want to run this command, I saved it in a text file, copied it into the /home/myusername/bin directory, (you can create a /bin directory in your home user directory. This is already included in the PATH) and set the properties to executable. I named the file "unzipall". It acts just like the good old DOS batch file except that it doesn't need a .bat extension. Because the unzipall file is in a directory in the PATH, I can type this command from any directory at the Terminal prompt to extract all the ZIP files in it with one shot!
Later I added a second line to my unzipall script to automatically delete all the zip files after extracting the contents. Now my script file looks like this:
for i in `ls`; do unzip $i; done rm *.zip
Lesson on July 11, 2005, Manual partitioning
I bought a third SATA HDD for my PC for the purpose of using it for the /home partition so that in future upgrades I would only have to format the root partition. In order to do this, and because I wanted to use the Reiser file system, I could not use the installer's automatic partitioning tool but had to figure out how to do it manually.
linux selinux=0 reiserfs
This is to enable support for the Reiserfs.
To make a long story short, after installation I kept getting the message:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown block (0,0)
I came to realize this is because I failed to create a separate boot partition. The kernel apparently didn't like /boot to be formated in Reiser. So I started the install process again, this time making sure that the first partition of the system HDD was allocated 100 megabytes and partitioned in ext2 with the mount point set as /boot. After that the kernel had no trouble booting! Because the /home partition was no set up on a second HDD, the new installation didn't change any of my basic settings.
How to mount a LVM (Logical Volume Managed) drive To mount a second drive or partition, you first log in as root within Terminal and enter:
(Note that I am using the Reiser file system) Because Linux is case sensitive, you must type the case the exact way you find it listed in the /dev/mapper directory.
June 30, 2005 If your Motherboard is one of the latest models, the Linux kernel may not recognize either your audio card or LAN device. At this point I still don't know how to install drivers to make Linux recognize hardware like audio or LAN devices. I do know that once you do install the needed modules to a kernel, you have to do so again next time a new kernel is installed. So to avoid that, I found a simple workaround: Buy a cheap second hand PCI card to use instead! I did so with both my audio card and LAN card. The kernel recognized them no problem.
In Windows I used to use PGP Disk to store private files, and so was looking for something similar in Linux. Today, June 16, 2005, Gabriel in Chile turned me on to a web page that gave me the answer I was looking for! http://www.saout.de/tikiwiki/tiki-index.php?page=looptutorial
Though you can go to that page and figure it out for yourself, I wanted to add this tutorial for us newbies because if you use Fedora Core, you can skip some of the steps. I tried this using Fedora Core 4 Test 3 and the kernel already had everything I needed! There were no extra packages I needed to install.
Note that all the commands below can run only when logged on as root with the su - command to give you root's path. Note also that the variables you can change in these commands are the word "secret" for the name of the drive mounted, (you can substitute another word) and the number 100. This will create an encrypted volume of 100 megabytes. You can make it bigger or smaller if you wish.
You may need to install cryptsetup first. I noticed it wasn't included after I did a clean install of Fedora Core 4. Use yum to install it after logging in as root with the su - command:
losetup /dev/loop0 /home/secret
cryptsetup -c aes -y create secret /dev/loop0
mke2fs -j /dev/mapper/secret
mkdir /mnt/secret
mount /dev/mapper/secret /mnt/secret
After that open up gedit or kedit in root and call up the /etc/fstab file and add the following line to it:
/dev/mapper/secret /mnt/secret ext3 noauto,noatime 0 0If you wish to copy files to your new secret volume immediately after this procedure, you also have to change ownership from root to your user name:
After I copied the files into the secret volume, I wanted to make sure I could access them again before wiping the source files. So I reboot the PC and ran the following commands as root with root's path (Enter su - first)
cryptsetup create secret /dev/loop0
mount /dev/mapper/secret /mnt/secret
Rather than typing all this out every time you want to mount the secret volume after booting your PC, you can use gedit and make a file with the lines in it. You can name the file anything you want and then set it with executable permissions.
To access this new volume, just browse to the /mnt/secret directory! (Or whatever name you named the directory under /mnt)
Added information on Oct. 6, 2005: Unless you unmount your encrypted volume and remove the actions of cryptsetup and losetup, your PC will not shutdown cleanly and you will get error messages the next startup telling you so. But in spite of that, I've had no problem remounting the encrypted volume - except once which freaked me out. But it did work again after a reboot. I made a backup of the volume's source file just in case it gets corrupted.
In order to avoid error messages in the future, I wrote an umount script. It is basically the same procedure in mounting the encrypted volume but in reverse with different options! Here they are below that you can run from the command line:
To unmount your secret volume manually, run the following commands in root:cryptsetup remove secret /dev/loop0
losetup -d /dev/loop0
May 13, 2005: How to format a drive or partition
Formating a drive in Linux is not as simple as in Windows. One reason I think is because there are more security walls in Linux to prevent viruses from doing damage. This is a good thing! Because there are more steps involved and my memory is getting poorer, I added these notes not only to help you, but help myself remember how to do it.
1. Open a terminal window.
2. Log in as root and enter root's password. The hyphen after su is necessary to give you root's PATH.
4. Unmount the drive with the following command:
5. Then enter:
6. After the format is finished, you have to change the ownership from root to your user name in order to have write privileges to copy files to it:
/media/usbdisk
Most mount points are either under /media or the /mnt directory.
Lessons from April 14-16, How to make audio CDs from MP3 files / how to add MP3 support to K3b:
A young man I live with asked me to burn an audio CD for him from MP3 files he downloaded from the Internet. I thought, "No problem for K3b! If Nero can do it, K3b can too!" But I was disappointed to see a message from K3b when I dragged and dropped an MP3 file on it that the format is not recognized! The MP3 plugin for K3b in Fedora is not added by default. I tried to install the plug-in but couldn't figure out how. So I searched the Net for an alternative CD burner and found one for Gnome called "GnomeBaker"! Because I prefer Gnome to KDE I thought to give it a go. GnomeBaker does recognize MP3. However, I still couldn't make an audio CD from MP3 with it. GnomeBaker is still apparently buggy.
1. Open Terminal
2. Enter the following commands:
yum -y install k3b*
That's all it takes! Yum added the MP3 plugin automatically to K3b and K3b recognized it. I tried to do it manually before based on instructions from another web site but with no success
.April 13, 2005, Enabling Japanese input in an English locale
I struggled off and on hours and hours over a period of weeks to figure out how to type in Japanese in the English locale. Linux in an English locale correctly displayed Japanese characters, but to type in Japanese I would have to log out and then log back in using the Japanese language locale. I searched and searched the Internet for a tutorial how to input Japanese characters while still in an English locale. Only finally today for the first time I found the answer from the Fedora Core web site http://fedora.redhat.com/projects/i18n/iiimf-faq.html - the first place I should have looked but it was the last....duh!Do this:
Open Terminal and enter the following commands:
ln -s /etc/X11/xinit/xinput.d/iiimf ~/.xinput.d/en_US
Once you are back in your normal English language log in, open an editor and then press the shift key and tap space to enable Japanese input mode. Works great! Now I can finish typing all my Japanese emails from within the English log in.
Update Dec. 13, 2005: I heard that Fedora Core 5 test 1 implemented a newer far superior method of Japanese input called SCIM, I installed it with Yum. I found SCIM is indeed better than IIIMF!
In order to make SCIM work, I had to edit a file in my Home User directory named .bash_profile. I added the following lines to the end of .bash_profile:export PATH unset USERNAME xport XMODIFIERS='@im=SCIM' export GTK_IM_MODULE="scim" export QT_IM_MODULE="scim" export LC_CTYPE=ja_JP.utf8 scim -dAfter that I logged off and logged back in again. Lo and behold, a new icon poped in in the Notification Area of the bottom icon panel of my desktop. It is much easier to switch languages back and forth and the Kanji selection is better than before too.
March 30, 2005, Downloading an entire web site with "wget"
I missed my Theophilos Bible software that I used to use in Windows and looked around for something for Linux to take its place. I could at first only find on-line HTML Bible sites and wondered if I could download a whole site to my hard disk with all the files linked properly. So I did a search on the Internet and found the wget command could do the job. I opened a terminal window and entered: wgetSure enough, wget showed its existance by showing some output lines! I then typed at the terminal prompt:
Upon entering the above command, the download process and finally ended with the message:
FINISHED --19:15:35--
Downloaded: 330,750,211 bytes in 1909 files
Sure beats downloading page after page manually!
On March 30, 2005 I learned how to install "Bible Time" - a Bible program for Linux. It was a bit of work to compile two different programs using the "./configure" "make" and "make install" commands. First I needed to compile "sword", then "bibletime" and then finally I downloaded the KJV module files and copied them into my home/.sword folder. When I entered bibletime at the terminal prompt, my first Linux based Bible program started up!!
March 23, 2005, Installing new updates automatically with "Yum"
Yum runs from the command line and is the prefered method of updating your software and system in Fedora Core 4. Don't use the "Add/Remove Applications" under Desktop - System Settings menu to add new applications because you will be prompted to insert your installation CD/DVD and the applications that are on it are probably already outdated! Moreover, you will run into dependency issues if do.
After a clean install, the first thing you should do is update your system with Yum. Log in as root with the su command and enter the following command:
Let Yum do its thing! The first time you update your system, it may take a long time depending on how old the installation CD is. Linux is very much dependant on the Internet for updates, and so you need a broadband (fairly fast) connection to use Yum.
Yum not only updates, but you can install software you don't even have yet directly from the Internet if that software is included in one of the repository links listed in the yum.conf file! For example, I heard that Mplayer could convert MP3 files to wav. I didn't have Mplayer installed nor did I have the installation program. So I just opened a Terminal window, entered su to log in as a Super User as root, and entered the command:
Yum did downloaded not only mplayer, but all the library files I needed for Mplayer! What could be easier? It sure beats the old Windows way of searching for programs with a browser!!
However in order to install Mplayer and other third party software repositories that Fedora Core cannot include for legal reasons, you must first update your /etc/yum.conf file. If you don't, you won't have any support to play MP3 files and do other things that Fedora Core does not include. The easiest way to update yum.conf in Fedora Core 4 is to follow the tutorial of the Unofficial Fedora FAQ
Bittorrent is not included in Fedora Core by default, and so I used Yum to install it the painless way:
yum -y install bittorrent*
Besides yum, there are GUI versions of it called Kyum and Yumex (Yum Extender). These are not installed by default but you can use yum to install both of them with one command:
May 31, 2005 Problem of installing a kernel update with Yum:
Yum failed to install a new kernel ending with an error message saying that it could not unpack it. After several attempts, I realized that it was unpacking the kernel in the /boot directory and that it could be /boot had reached its limit of 100 megabytes! The solution? I logged in as root and simply deleted a few of the old kernels. There were at least a dozen saved up in /boot. No wonder yum couldn't finish the job! After that I ran the yum update again and the new kernel was installed with no problem.
rpm -q kernel
yum remove kernel-2.6.xxxxxxxx
The first command is to log in as root with root's PATH. The second will bring up a list of all the kernels. The third will remove the kernel. Substitute the xxxes for the kernel version you wish to remove. Doing this will free up space in the /boot directory. It is good to keep at least one extra kernel that you know worked for you before!
May 22, 2005 Problem: I could not update with yum because of an unresolved reference to libjawt.so.6. I found the answer below from the fedora-test-list Digest, Vol 15, Issue 78.
Find out where the problematic dependency is coming from:
libgcj-4.0.0-7
However when I tried the same procedure on other failed dependency problems, it didn't always work for me. Sometimes I fixed them by using Yum to uninstall and then reinstall a certain application. However one time I really messed myself up that way by uninstalling the glibe library and ended up with Gnome vanishing from the Desktop! I had to do a total reinstall of my system to fix it! But because I have my /home partition on a seperate drive, I didn't lose hardly any of my previous settings or any of my data. And so for me a clean install is not such a big deal anymore.
I think the answer to avoid unresolved dependancy problems is to use only Yum from the very beginning to update your system as soon as you install it and to try to stick to yum as much as possible in installing new software. It is probaby also good to stick to one configuration of your yum.conf file. I found that tutorial on the Unofficial Fedora FAQ page on how to update yum.conf worked best for me. I have no failed dependency issues since then.
Installing NTFS file support in the Linux Kernel
I wanted to be able to access files from my 40 gig USB portable HDD in Linux, but because Fedora cannot support for the NTFS file system for legal reasons it is rumored, Linux recognized the USB drive when I plugged it in, but it could not read any of the files. Googled for the answer and learned that the Livna repository can supply NTFS support. First you need to make sure you have the Livna repository installed.
Making my SCSI scanner to work
You try to run XSane as ROOT, that really is DANGEROUS! ...... Continue at your own risk
So from the lesson I learned on March 8, I knew I had to somehow allocate ownership to my log-in user name. I knew the command but not the device name. Using Hardware Browser I found my Epson scanner was assigned as /dev/sg2
Logged in as root I entered the command
On Sept. 23, 2005, I finally got tired of running the chown command each time to make my SCSI scanner work and Googled for an easier way. I found that by editing the 50-default.perms file located in /etc/security/console.perms.d that I could automatically give the scanner permission to run as a normal user! This is what I did:
1. Log in from terminal as root with the su command
2. Run the following command:
<scanner>=/dev/sg*
Note that this only applies if your scanner is a SCSI. According to the 50-default.perms file, a USB scanner should already have user permissions by default.
Lesson on March 11, 2005, Subject: Installing the Java plugin for Firefox:
I just spent at least a couple hours trying to figure out how to install the Java plugin for Firefox! The Flashplayer installation was easy and installed automatically from the Internet, but the Java plugin can only be installed manually. Here is what I finally did. I hope it will save you time and not have to bungle around like I did! Just follow the directions below. After every command at the command prompt, hit enter. You don't have to write all all the long commands but just copy and paste them into the terminal window. Exit all Firefox windows before starting this procedure.
- Go to the Java Download page and download the J2SE(TM) Runtime Environment 5.0 Update 4. The Java installation file should download in your Home directory
- Open a Terminal window (command line prompt) and change directory (cd command) to where you downloaded the jre-1_5_0_04-linux-i586-rpm.bin file if you are not there already.
- Enter the commands:
su (log in as root)
./jre-1_5_0_04-linux-i586-rpm.bin - The Java installation process should start. Just follow the simple instructions given and type Yes when asked to.
- After the Java installation process is completed, go to the /home/user/.mozilla/plugins with the cd command
- You should now be in the Mozilla plugins directory. Now enter:
ln -s /usr/java/jre1.5.0_04/plugin/i386/ns7/libjavaplugin_oji.so libjavaplugin_oji.so - Enter the ls command to see if the libjavaplugin_oji.so link has been created in the directory. The file name should appear in cyan color.
- Run Firefox and go to a page that has a Java applet to test it.
Later I learned that the ln -s command is used to create a "symbolic link". In Windows terminology this is known as a "shortcut". What I was doing was creating a link from the libjavaplugin_oji.so file located in /usr/java/jre1.5.0_04/plugin/i386/ns7 to the mozila plugin directory located in my Home folder. In my case the full path to the Mozilla directory is: /home/jamesjpn/.mozilla/plugins So if you are having problems following the above instructions, make sure you are typing the command from the correct mozilla plugin folder and that you are using the correct path to libjavaplugin_oji.so file in your system. You can know for sure by using the File Browser.
Update on March 10, 2006: I just followed a tutorial by Stanton Finley on how to install Java. It's a slightly different procedure and perhaps easier to do than the above!Lesson on March 10, 2005, Subject: Fixing my LAN device:
I couldn't connect to the Internet after running some updates. I finally realized that Linux was not recognizing my LAN card correctly anymore. I went to:
Applications
System settings
Network
Was asked to type the root password
The Network Configuration window came up. I saw that the status was inactive.
I clicked on the Hardware tab and then clicked on the Edit icon. I saw that the IRQ setting was "Unknown" This meant that Linux was not recognizing the LAN device correctly. What to do? I used brute force! I shut down the machine, removed the power cord, removed the LAN card, turned on the machine and booted into Linux. I was asked if I wanted to remove the LAN device from the settings. I said Yes. After it booted into the Log in screen, I click shutdown, turned off the machine, removed the power cord, put the LAN card back in, turned on the machine and booted into Linux. I was asked if I wanted to configure the LAN card. I said Yes. Linux configured it automatically and my Internet and Email was restored!
Later I had a similar problem, but instead of physically taking the card out, I deleted the LAN device completely from the Network Configuration dialog box, rebooted the computer, and added it again. This time when I clicked on "Activate Device" it activated properly!
Also today I discovered why I was getting an error message when logging into Gnome. It kept telling me it couldn't find my Internet host and therefore may not work correctly. So I put in my yahoo.com provider host name in the Hostname under the DNS tab of the Network settings, and that seemed to satisfy Gnome!
I was using KDE before but always seemed to run into problems with it. KDE seems more powerful and user friendly in some ways, but it also seemed unstable at times. I like Gnome more than ever now and appreciate the cool applets, like the weather applet for example.
Lesson on March 8, 2005, How to automatically mount a second physical hard disk drive or partition and assign write privileges as a user:
I had lots of fun trying to make Linux automatically mount my second physical HDD! It took me a long time but I finally figured it out. You can save lots of hours by following the instructions below if you want Linux to automatically mount a secord HDD. These instructions also apply to mounting a Windows NTFS or FAT partition on your HD if you set up for dual booting and Linux did not automatically mount it for you.
- Open a Terminal Window
- Enter the su command with a space and a hyphen after it:
su -and type your root password. This will make you a "Super User" with Root's path.
- Enter the command:
mkdir /mnt/drv2
- This will make a folder under the /mnt directory with the name of drv2. You could even use a different name if you wish. If you are mounting a Windows partition, you might want to name it
/mnt/win-c or /mnt/win-d according to the drive letter that Windows gives that drive or partition. This will be the mount point of the drive you want to access. -
Find out what device name Linux gave your second hard disk by using fdisk with the -l switch:
fdisk -lThis will give you a quick list of your drives and you should see from the list what Linux called your other drive. In my case it was /dev/sdb1
Remember the device name of your second HDD for now you need to do some real geeky work and edit your /etc/fstab file! - Go back to the Terminal Window. If you did not exit it, you should still be logged in as a Super User. If not, type su and your root password again.
- Now enter the command at the prompt: gedit /etc/fstab Note that there is a space between gedit and /etc/fstab
- If you typed that correctly gedit should have called up the fstab file Now type in this line in that file on its own line:
/dev/sdb1 /mnt/xxx ext3 rw,auto,user 1 3
Please note the variables being the name of your second hard disk device and the name of the directory you created in the /mnt directory. - Save the file and reboot your computer
If the drive you are mounting is formated in NTFS, you will be able to read it only if your kernel supports NTFS. Chances are that if your distribution is something other than Red Hat or Fedora, it probably does support reading NTFS. But even so, you will not be able to write to it, only read or copy files from it. If you are mounting a drive formated in FAT or FAT32, you will be able to write and copy files to it only if you change the ownership by executing the following commands from Terminal:
chown -R username /mnt/xxx
Note that you need to substitute username for your login name and xxx for your mount point directory name. After this you should be able to copy files into your second hard drive formatted in FAT or FAT32. To access the drive using the file manager, just browse to the folder under /mnt that you set the mount point, and you should see them.
Comments? Questions? Errors found? Email: ![]()