Flux rss

Intranet - Installing the Linux distribution Mandrake

Introduction to installation

The server can work with any Linux distribution, but we have chosen to use the distribution Mandrake, which has the advantage of being simple to install, and includes a multitude of pre-installed applications.

You can find this distribution:

  • On the site www.linux-mandrake.com (if your connection allows it)
  • In stores for about US$100/₤50
  • On a CD from a magazine (about US$8/₤4, check your local bookstore)

Before installing, it may be useful to make a list of devices found in your machine and to note their reference numbers and characteristics (the hard drives, the graphics card, the sound card, etc.)

Partitioning the hard drive

To start installation, you will need to partition your hard drive (see the article on Fdisk) in order to separate the data which corresponds to applications, temporary files, or virtual memory (swap).

Let's say that the hard drive is 10GB and that it includes:

  • a /home partition
  • a /tmp partition
  • a /var partition

Here are the characteristics of the partitions:

Type of partition Size Mount point
Linux 32 MB /boot
Linux swap 128 MB -
Linux swap 128 MB -
Linux Ext - -
Linux 4320 MB /
Linux 4096 MB home
Linux 512 MB /tmp
Linux 1024 MB /var

Installation steps

Installing Mandrake is entirely graphical, so all you need to do is follow the steps and enter the right options:

  • Installation level: expert
  • Use of machine: server
  • Disk optimisation: no
  • Security level: medium
  • file system: create a new partition in a free area, and indicate the mount point and the type (ext2/swap)
  • Choosing packages: You only need to install the required packages:
    • Mail
    • WWW
    • News Tools
    • System configuration
    • Web server
    • Network management workstation
    • Documentation
    The packages which were not installed may be used later as needed.
  • Configuring the network: This is for the local area network properties. Click on local area network and let the system detect the physical settings of your card(s). Then enter the following elements:
    • IP address: 192.168.1.1
    • subnet mask: 255.255.255.0
    • machine name: tuxserver
    • DNS server: 192.168.1.1
    • Do not check boot/dhcp
  • Cryptography: Agree to all default options
  • Printing configuration: Fill in the fields if you are ever going to have a local or network printer
  • Adding users: The users will be created manually later
  • Boot disk: It is strongly recommended to create one in order to be able to restart the server if a problem arises
When you restart the machine, you will be able to see each of the services boot up (you can go back to the screen with the key combination <CTRL>+<PageUp>)

Mandrake start screen (/etc/issue)

Then, log in as root (superuser) with the password that you provided at the time of installation.

Post-installation configuration

Be default, the superuser, for security reasons, cannot log in to the server by telnet or FTP. For practical reasons, and for as long the entire intranet is not connected to the Internet, we will temporarily give these rights to the user root.

To authorise the superuser to log in by telnet, you have to edit the file /etc/pam.d/login and add the following line:

#auth	required /lib/security/pam_securetty.so

To authorise the superuser to log in by FTP, you have to edit the file /etc/ftpusers and add the following line:

#root

Creating usergroups

In order to give the server a certain measure of security, you will need to create users and groups which can be granted only the permissions they need.

First, you have to create a group called users which will include all users on the intranet. This lets you define permissions for every user belonging to this group, all in one go. To create this group (it might already exist), use the following syntax:

groupadd users

Then, create a directory called /etc/skel_intranet. This will contain the structure (called the skeleton) for each user's work directory. Here are all the commands that can be used to create it:

cp -r /etc/skel /etc/skel_intranet 
cd /etc/skel_intranet
mkdir public_html
mkdir public_html/images
chmod -R 755 public_html
mkdir Maildir
mkdir Maildir/new
mkdir Maildir/cur
mkdir Maildir/tmp
These commands can be used to create a directory called public_html within the directory skel_intranet, which can contain the user's personal page, as well as the directory Maildir (and its subdirectories new, cur and tmp) for the user's email. You can, of course, add additional directories to the skeleton if need be.

Then, create each of your users with the following command:

useradd smith -G users -m -u 500 
-k /etc/skel_intranet
-c "Smith John, Accounting Dept., Workstation: 89654"
  • -G: specifies the group the user belongs to
  • -m: creating the home directory if it doesn't exist
  • -u: positions the userID if desired
  • -k: specifies the skeleton to copy into the account (by default /etc/skel)
  • -c: for adding comments

The desired rights must be added to the user's account with the command:

chmod 755 /home/smith

You can delete a user at any moment with the command:
userdel -r toto

Michel Maudet

This document entitled « Intranet - Installing the Linux distribution Mandrake » 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.

Résultats pour Intranet Installing the Linux distribution Mandrake

Installing linux Hello, I would really like to know how to install linux, step by step on my pc! Thxx!! en.kioskea.net/forum/affich-778-installing-linux
How to install xp after formatting linux Hello, I installed linux fedora cora 2 on just one partition. I have only one partition in my SATA hd. Now I want to install xp. Pc doesn't boot from xp cd. I tried win98 also. Pc does boot but doesn't format my hd. I have tried to exclude... en.kioskea.net/forum/affich-29076-how-to-install-xp-after-formatting-linux
Using Linux in text mode(Minimal system mode) Using Linux in text mode(Minimal system mode) With most Linux distributions an alternate CD or a server CD is provided, which can install a Linux environment in minimal text mode. Advantages of such a system: Stability: Since there are... en.kioskea.net/faq/sujet-807-using-linux-in-text-mode-minimal-system-mode

Résultats pour Intranet Installing the Linux distribution Mandrake

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
[Debian] Debian GNU/Linux 4.0 AMD64 - Installing Skype[Debian] Debian GNU/Linux 4.0 AMD64 - Installing Skype Downloading Skype Installation Configuring Skype Downloading Skype mkdir /home/lami20j/src cd /home/lami20j/src wget http://www.skype.com/go/getskype-linux... en.kioskea.net/faq/sujet-808-debian-debian-gnu-linux-4-0-amd64-installing-skype
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

Résultats pour Intranet Installing the Linux distribution Mandrake

Linuxhi, i need to install linux on my pavilion dv6000, so which kind of linux i need? i want to install it for counter-strike:source server. Thanks en.kioskea.net/forum/affich-30671-linux
Linuxhi, i need to install linux on my pavilion dv6000, so which kind of linux i need? i want to install it for counter-strike:source server. Thanks en.kioskea.net/forum/affich-30670-linux

Résultats pour Intranet Installing the Linux distribution Mandrake

Download WubiFor those who want to become familiar with the handling of Ubuntu, there are four paths: one must simply install it. The install? But how? It's a bit difficult not? Wubi (Windows-based Ubuntu Installer) is a program that can install Linux (Ubuntu to... en.kioskea.net/telecharger/telecharger-1081-wubi
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
Download Ext2 Installable File SystemIf you currently have Windows running and you realize that you need some files for your work which you have stored on an Ext2 volume of your Linux installation, you no longer have to shut down Windows and boot Linux! Furthermore, Windows will now... en.kioskea.net/telecharger/telecharger-235-ext2-installable-file-system

Résultats pour Intranet Installing the Linux distribution Mandrake

Intranet - Installing a DNS A DNS (domain name server) is a server that links names to the IP addresses of computers on a network. In order to set up such a server, it is necessary to install bind and named. They can be downloaded as RPM files (for Mandrake they are bind... en.kioskea.net/intranet/resdns.php3
Intranet - Installing a mail server The most commonly used e-mail server in Linux is Sendmail; however, as it is very hard to configure, we will use Qmail, an alternative e-mail server, instead. Qmail is made up of a group of programs that work with different UID/GIDs, in order to... en.kioskea.net/intranet/resmail.php3
Linux - Installation The RedHat distribution is currently one of the most popular distributions, considering that the installation procedure is very simple. As a matter of fact, this procedure simply asks you to choose from a list of main peripheral devices as well as... en.kioskea.net/linux/lininst.php3