Flux rss

Linux Tricks

Mounting a CD-ROM drive

To mount a CD-ROM drive under Linux, log in as the system administrator, i.e. with the login "root".
It is then sufficient to mount the drive, i.e. to "capture" the content of the CD-ROM drive in a directory (most of the time /mnt/cdrom/) by typing in the following command:
mount -t iso9660 /dev/cdrom /mnt/cdrom
Do not forget to unmount the drive by using the command
umount /mnt/cdrom

Mounting a MS-DOS partition

Under Linux, it is possible to access MS-DOS partitions by mounting them in the Unix file system. To mount the partition /dev/hda1, it is sufficient to type:
mount -t msdos /dev/hda1 /mnt/hd
Do not forget to unmount the partition
umount /mnt/cdrom

Mounting a floppy disk drive

A floppy disk drive can be mounted just like a MS-DOS partition, and the data contained on a DOS formatted floppy disk can be accessed by using the following command:
mount -t msdos /dev/fd0 /mnt/fd
Do not forget to unmount the floppy disk drive
umount /mnt/fd.

Restarting the computer

To correctly restart the computer, it is sufficient to use the command "shutdown". For most Linux distributions, the keystroke sequence <CTRL> <ALT> <DEL> has been programmed as the equivalent of the command shutdown.
To quickly restart the computer, it is sufficient to type in "shutdown -r now".

Forcing recognition of the SCSI controller

In case the controllers have no bios, they are generally not detected by Linux, in which case detection can be forced by typing in the following at the LILO prompt:
boot: linux tmx8xx=<IRQ>,<adress>
tmx8xx represents a TMC-8xx controller; in case you have a different controller, you must know its name. IRQ represents the interruption of the controller and "addresses" the adress of its shared memory.

Creating an alias

First of all, what is an alias?
An alias is a shortcut which makes it possible to execute another command. The term may also cover other concepts, and an alias may also refer to a shortcut to an email.
The commands under Linux to mount a peripheral device are (as you have seen above) very long to type in.

Instead of typing the command:
"mount -t iso9660 /dev/cdrom /mnt/cdrom"
it is therefore sufficient to type in:
alias cdrom='mount -t iso9660 /dev/cdrom /mnt/cdrom'
it is therefore sufficient to type in "cdrom" to mount this peripheral device.

However, if you ask: Why should I type in this command if I have to declare it every time that I reinitialize the system?
It is actually sufficient to edit the file "/etc/bashrc" and add the following line:
alias cdrom='mount -t iso9660 /dev/cdrom /mnt/cdrom'

Last update on Thursday October 16, 2008 02:43:15 PM.

This document entitled « Linux Tricks » from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the licence, as this note appears clearly.

Results for Linux Tricks

Linux - The Vi editor Despite its very limited ergonomics, Vi i is one of the most popular text editors texte under Unix type systems (with Emacs and pico). Under Linux, there is a free version of Vi called Vim (Vi Improved). Vi (pronounced vee-eye) is an editor that is... en.kioskea.net/linux/linvi.php3
Linux - Compiling the kernel In this article, compiling the kernel under Linux is explained. The following explanations are based on version 2.4.20 of kernel, i.e. the most recent version of the kernel at the time this article was written (March 2003). The sources of the most... en.kioskea.net/linux/linkernel.php3
Linux - Mini HOW-TO Documents The mini HowTo documents are a set of documentations written by different people on very specific topics concerning Linux. Below you will find a (non exhaustive) list of HowTo documents written or translated into French: HOW-To Description 3Dfx-HOWTO... en.kioskea.net/linux/howto.php3

Results for Linux Tricks

Log in remotely with SSH (Linux)Log in remotely with SSH (Linux) The commands below are relevant only if you have an existing account on the PC you want to connect and that a SSH server is installed. When using Linux the syntax is quite simple as the client part is... en.kioskea.net/faq/sujet-604-log-in-remotely-with-ssh-linux
Using SQLPlus under LinuxUsing SQLPlus under Linux You would be surprised to see that you can’t rollback your command with the up arrow (last command entered) or the backspace button (actual command correction).Special characters are displayed. Some existing... en.kioskea.net/faq/sujet-577-using-sqlplus-under-linux
Using an USB memory key under LinuxUsing an USB memory key under Linux Automatic setup based upon version used Mandriva Fedora Core Debian & consort Manual setup Automatic setup based upon version used Follow the procedure below to set up automatically your USB... en.kioskea.net/faq/sujet-702-using-an-usb-memory-key-under-linux

Results for Linux Tricks

I wanna connect my xp client to linux serverHello, this is ravi chawla actually iam new learner with linux fundas and i now want to come up with telnet fundas so iam trying to connect my windows xp client with linux server via telnet but failed. so can you pls suggest me the process to this via... en.kioskea.net/forum/affich-18290-i-wanna-connect-my-xp-client-to-linux-server

Results for Linux Tricks

Download Driver Ati Radeon Catalyst Linux x86To drive Ati Radeon Catalyst Linux x86 8.7 is a driver devoted to the cards Radeon HD of series following:X2900, 2600, on 2400, X1950, X1900, X1800, X1650, X1600, X1550, X1300, X1050, X850, X700, X600, X550, X300, 9800, 9700, X9600, X9550, X9500,... en.kioskea.net/telecharger/telecharger-850-driver-ati-radeon-catalyst-linux-x86
Download Avira AntiVir Personal free for Linux / FreeBSD / OpenBSD / SolarisFor Linux / FreeBSD / OpenBSD / Solaris Avira AntiVir PersonalEdition Classic is a very good and free antivirus which reliably protects your private computer against dangerous viruses, worms, Trojans, rootkits and costly dialers. en.kioskea.net/telecharger/telecharger-110-avira-antivir-personal-free-for-linux-freebsd-openbsd-solaris
Download Damn Small LinuxWhat does it happen of your ancient PC when you think it is obsolete? Here is the resolution which will enrapture the unhappy possessors of the old processors, "Damn Small".It is a distribution of Linux conceived to be light because she can work on... en.kioskea.net/telecharger/telecharger-304-damn-small-linux

Results for Linux Tricks

Linux - Tree structure of files To ensury compatibility and portability, Linux systems comply with the sole FHS (File Hierarchy Standard) standard. The basic hierarchy is as follows: /the root, containing the main directories /bincontains essential executables of the system, used... en.kioskea.net/linux/linarb.php3
Linux - Preparation of the system Linux does not require a state-of-the-art computer in minimal configuration: a 386SX processor or higher 4 MB of RAM (8 MB recommended) a hard disk controller and a hard disk with 20 MB of free space (100 MB recommended) (in practice, Linux can run... en.kioskea.net/linux/lininstpre.php3
Linux - Installation of XFree86 XFree86 is a graphical interface under Linux (XWindow is the interface of the UNIX stations). To configure XFree86, just type "XF86Setup" in the command line; this entry is case-sensitive. A screen appears. You are prompted to enter information,... en.kioskea.net/linux/instxfre.php3