未加星标

The Smallest Server Suite A Lightweight Linux Server Distribution

字体大小 | |
[系统(linux) 所属分类 系统(linux) | 发布者 店小二04 | 时间 2017 | 作者 红领巾 ] 0人收藏点击收藏

Howdy! Today, we are going to talk about The S mallest S erver S uite, shortly TheSSS , a lightweight linux server distribution. It is specially designed for system administrators who wants to setup a simple and tiny set of server software for small local area networks. It could be used for developers who wants to test their applications without installing a complex Linux server setup. The size of this tiny Linux distribution is less than 70 MB.

Using TheSSS, we can install and configureFTP, HTTP, SFTP, SSH, Proxy server and Telnet in no time. It is based on 4MLinux server , a miniature Linux distribution. TheSSS comes with 4MLinux Firewall and Clam Antivirus by default. You can create a live USB and test it if it fits to your needs, or install it on any virtual machine and start exploring it straight away.

In this tutorial, we will see how to install TheSSS and how to configure it.

Install ‘The Smallest Server Suite’

Download the latest version from the link given below.

Once downloaded, make a bootable USB or CD. If you prefer USB, I recommend Etcher tool which is used to create bootable USB and SD cards. Refer the following link to know how to create bootable USB drive or SD card.

Etcher A beautiful App to create bootable SD cards or USB drives

Boot your system with TheSSS boot medium. You should see a screen like below. Press ENTER to continue.

After few seconds, you’ll be landed in the live session. The default username and password is root/root .

Also, you can type “helpme” to bring up the help screen at anytime.

This is how help screen looks like.

As you see in the above screenshot, there are three important commands namely,

server netconfig install2hd

These are main commands that you’re going to use to install TheSSS on your system.

It’s also possible to backup your data using 4MLinux Backup Scripts (just try to execute ‘backup’, ‘fsbackup’ or ‘image’ commands). The ‘lftp’ and ‘rsync’ utilities are included, too.

The ‘nmonitor’ script will give you an access to a very wide set of system monitoring tools. ClamAV Antivirus can be downloaded & installed by means of the ‘antivir’ script.

You can execute ‘mc’ to open Midnight Commander when, for example, you must edit some configuration files. Run ‘links’ command if, for any reason, you need a small web browser.

Use one of the following tools for disk partitioning: ‘cfdisk’ (for MBR) or ‘cgdisk’ (for GPT). It’s also possible to replace LILO with GRUB by running the ‘update-grub’ script.

Download Free eBook: “Linux Quick Fix Notebook”

To view the list of servers, just type “server” in the prompt, without quotes of course.

server

Sample output would be:

You can always execute ‘helpme’ to return to the main menu.

Before installing TheSSS on your system, we need to partition the hard drive.

To check the partition table, run:

fdisk -l Sample output: Disk /dev/sda: 8 GiB, 8589934592 bytes, 16777216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

As you see above, I have 8 GB hdd. Let us go ahead and partition the hard disk. You can either use‘cfdisk’ (for MBR) or ‘cgdisk’ (for GPT) utilities. I am going to use cfdisk for the the purpose of this tutorial.

Type cfdisk in the prompt to partition the drive.

cfdisk

You will see a screen like below. Choose “dos” as label type.

We’re going to create two partitions.

Root partition, /dev/sda1, as primary bootable with size 5 GB and ext4 formatted. Swap partition, /dev/sda2,as primary with size 2xRAM size.

You can create as many partitions you want like separate HOME partition, but I am going to create two partitions.

Select ‘New’ .

Enter partition size, in our case it is 5 GB. You can also specify size in MB using letter ‘M’.

Then, we need to choose the type of the partition i.e primary, logical, swap etc. As I mentioned earlier, we make this partition as primary with bootable and ext4 formatted.

Next select ‘Bootable’ to make this partition as bootable partition.

Then, select ‘Write’ using left/right arrow button to write the partition changes.

Type ‘Yes’ to save the changes.

We have created the primary and bootable partition. next, we will create swap partition.

Select the free space using up/down arrow and select ‘New’ .

Enter Swap partition size i.e 2XRAM size. I have assigned all rest of space to the swap partition.

Select partition type as ‘Primary’ .

Select ‘Write’ and hit ENTER.

Type ‘Yes’ to save the changes.

Finally, select Quit and hit ENTER to close cfdisk utility.

Then, type udev in the prompt to save the partition table. Udev is the device manager for the Linux kernel that creates/removes device nodes in the /dev directory dynamically.

udev

You can verify the partition details using command:

fdisk -l Sample output: Disk /dev/sda: 8 GiB, 8589934592 bytes, 16777216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x2599e83b
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 10487807 10485760 5G 83 Linux
/dev/sda2 10487808 16777215 6289408 3G 83 Linux

We have successfully created the partitions. Next, we are going to format them.

Format the primary partition using command:

mkfs.ext4 /dev/sda1

Then, format and activate theSwap partition using the following commands:

mkswap /dev/sda2 swapon /dev/sda2

It’s time to install TheSSS on our system. To do so, type install2hd in the bash prompt.

install2hd

You’ll be greeted with a message like below. Just hit ENTER key to continue.

Welcome to TheSSS installation script!
You will be asked to choose a target partition, on which your new TheSSS
will be installed. The target partition must be at least 1 GB in size.
You can choose any kind of the target partition (even NTFS or Linux swap),
but it will be formatted to ext4 filesystem, meaning that all the data on
this partition will be lost.
NOTE: it strongly recommended, so that you will make a backup of all your
important data before installing any new operating system in your PC.
Press Enter to continue...

Next, enter the target partition number to install TheSSS server. You need to Enter the bootable partition number here.

Disk /dev/sda: 8 GiB, 8589934592 bytes, 16777216 sectors
Units: sectors of 1 * 512 = 512

本文系统(linux)相关术语:linux系统 鸟哥的linux私房菜 linux命令大全 linux操作系统

主题: LinuxUB3G5G
分页:12
转载请注明
本文标题:The Smallest Server Suite A Lightweight Linux Server Distribution
本站链接:http://www.codesec.net/view/533334.html
分享请点击:


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 系统(linux) | 评论(0) | 阅读(79)