Linux System Administration

Are you unable to create uppercase directory name on your storage device mounted as vfat file system. The reason for this behavior is that vfat filesystem is by default mounted by mount command with shortname option set to lower. Therefore, you nay force your system to mount your disk to show directory names as they are with winnt:

mount -o shortname=winnt /dev/sdb1 /media/temp

Here are couple more options to be complete:

lower  Force  the  short  name to lower case upon display; store a long
                     name when the short name is not all upper case.

              win95  Force the short name to upper case upon display;  store  a  long
                     name when the short name is not all upper case.

              winnt  Display  the  shortname  as is; store a long name when the short
                     name is not all lower case or all upper case.

              mixed  Display the short name as is; store a long name when  the  short
                     name is not all upper case.

Another solution to this problem is to use pmount. pmount command syntax is little different from the ordinary mount command. Instead of specifying a mount directory as an argument a user needs to specify lable. The lable will be eventually a name of the directory under /media:

# pmount /dev/sdb1 MY_DISK
# cd /media/MY_DISK/
/media/MY_DISK# ls
MEMSTICK.IND  MP_ROOT  MSTK_PRO.IND  MUSIC  PICTURE  PSP  TEST  VIDEO

Introduction

This tutorial has been written for both vi and vim. It starts with real basics, such as cursor navigation and ends with more advanced techniques like merging files.

For every section of this tutorial there is a short video with hints to help you understand how vim / vi works. Even that I have divided this tutorial into parts from novice to the expert user, there is plenty more what vim can do to make your work with vim editor easier and more efficient.

However completing this tutorial you will give sufficient knowledge about vim / vi and its features for your daily tasks.

Vim Novice level ( Vim Basics )

Moving cursor around

 move vim text editor cursor left with h, move vim text editor cursor right with l, move vim text editor cursor up with k ,move vim text editor  cursor down with j

In vim you can move cursor around with following keys h, l, k, j which is left, right, up and down respectively.

You can move cursor around also with arrow keys, however this is possible only if they are available.

Vim was designed for all kinds of terminals where arrow keys may not be available for you. Moreover, once you get used to using vim with h, l, k, j you will move more quickly than using arrow keys.

Open some text file and try use above keys now:

vim yourfile.txt

NOTE: You do not have to create a file prior to execution of the above command. If the file does not exists it will be created. If the file does exists it will be opened.

Read more ...

Virtualbox installation on Fedora Linux This short howto will guide a Fedora user with a steps on howto install VirtualBox on a Fedora linux system.

System: Fedora 14 Laughlin , i386

Kernel: 2.6.35.6-48.fc14.i686

Virtualbox Version: 3.2.12 for Linux

First, become a root and install all required prerequisites:

# yum install SDL make automake autoconf gcc kernel-devel dkms

Download RPM binary package of Virtualbox:

# wget http://download.virtualbox.org/virtualbox/3.2.12/VirtualBox-3.2-3.2.12_68302_fedora14-1.i686.rpm

Next install a downloaded RPM package with rpm command:

# rpm -i VirtualBox-3.2-3.2.12_68302_fedora14-1.i686.rpm

Recompile vboxdrv modules:

# /etc/init.d/vboxdrv setup

Make your self belong to a group vboxusers:

# usermod -G vboxusers -a username

Now, you need to log out and log in to apply the above group changes. Once you log in into the system again you should have a working version of Virtualbox on your Fedora Linux.

Page 69 of 72



Free Linux eBooks

Go to top