Install damnsmalllinux (DSL) on the hard disk (Virtual Machine) and GCC

Source: Internet
Author: User
Author: liguisen

Blog: http://blog.csdn.net/liguisen/

Damnsmalllinux (DSL) is a livecd version of Linux. Simply put, it is burned to a CD and then started from the CD in the PC, just like using a complete operating system installed on a hard disk.

The biggest difference from the operating system installed on the hard disk is:

All the changes you make are limited to the memory, because it virtualizes A ramdisk in the memory. Therefore, when you restart the system or shut down the system, all the changes you have made will disappear and no data can be saved (you mount the device in the middle and write it in again). This is of course, the CD is read-only. Where can I save the data?

Livecd generally has the following two functions:

1. It is only used for demonstration, and does not involve any user data or temporary data, such as going down from the Internet.

2. Check the hardware. In this case, it is generally suspected that the operating system installed on the hard disk is damaged and the operating system on the CD is used for OS Detection.

Therefore, in general, no one will install livecd on the physical hard disk of the PC, so it is better to install the release version. The most common usage is to use it on CD. Another special requirement is to have a complete OS that can store small data. My goal is:A complete OS that can save data, with GCC, less than 250 m (can be placed on a 256 M U disk). So I want to install it on a virtual machine's hard disk! The Virtual Machine software I use is virtualpc_v5.2.

Step 1: Download DSL.

Download is available in many places on the official download page:

Http://www.damnsmalllinux.org/download.html

I chose the second one:

Ftp://ibiblio.org/pub/Linux/distributions/damnsmall/current/

The following are some examples. Please refer to their 1-readme_first.txt.

I downloaded the dsl-3.0.1.iso inside, 50 m

Step 2: Start the VPC and create a new system.

Step 3: load the downloaded ISO file in the VPC and restart it. It is like starting to use DSL as usual.

Step 4: partition and format the hard disk of the new system.

I didn't handle anything, because the image files in the VPC are dynamically increased, that is, the size of the files is as much as the actual system content. As a result, after I install the DSL on the hard disk, the image file is increased to more than 500 mb, which cannot meet my initial goal. Because it prompts that at least 200 m is required during the installation of DSL to the hard disk, I suspect it is a problem of the VPC itself. During the second installation, I first use CAT/proc/partitions to view the devices recognized by the system, and then partition the hard disks of the new system (using cfdisk/dev/hda1 ), after Dividing m into primary partitions (although this is the case, there is only about 2 m in the physical hard disk), I will not care about the rest, haha, the hard disk is dynamically increased anyway. Then you can use mkfs for formatting (this step is not required ).

Step 5: install it on the hard disk

There are two methods: Right-click the desktop and choose apps> Tools> install to hard drive.

Input DSL-hdinstall (in/usr/sbin/DSL-hdinstall) under the root user to install

The installation process is very simple. There are several options to choose between. It is not difficult. The final guide on the Internet said that grub is faulty. I chose grub for the first time and cannot access it after restarting. Therefore, this time I chose Lilo, no problem (you don't need to modify anything as you said on the Internet ).

After the file is copied, it restarts. By default, it enters the character mode. dsl users seem to have to fill in their passwords or something. I did not know what I did when I started the second time. I was prompted that the hard disk was read-only (Note: fsck actually failed, haha ), however, it also prompts that the remount can be read and written, and the commands are provided. Well, startx can smoothly enter the graphic interface.

Step 6: DSL Configuration

I have not made any configuration changes. The VPC network adopts the virtual switch mode. My network environment is ADSL modemn-> wireless router-> switch-> PC, I can access the Internet without a DSL. The strange thing is that the NIC was not found when the DSL was restarted! (Fortunately, later ). Also, the dsl I downloaded does not support Chinese characters. It is a problem, but it is not very good: you can find the Chinese process on the Internet.

Step 6: Install gcc

DSL is not GCC, DSL officially provides a gcc1.dsl package (about 18 m), provides GCC, G ++, make and so on: http://ftp.belnet.be/packages/damnsmalllinux/mydsl/system/gcc1.dsl

The premise is that your DSL can access the Internet now.

After download

# Mydsl-load gcc1.dsl

Then you can use it.

 

Note: The root identity may be required during the operation. Enter the following command:

Sudo su Root

 

Before GCC is installed, the hard disk image file is about 170 MB (not clear, but less than 200 MB). After you download gcc1.dsl and install it, it becomes around mb. I deleted gcc1.dsl, and then use RAR standard compression, hehe, turned into 75 m, which I did not think. Because we use VPC together, if the VPC is not installed on the target machine (when DSL is used by mobile devices), we need to put a VPC on the USB flash drive to prepare for installation, therefore, it is okay to decompress the DSL. To avoid installation, we recommend that you use the qemu Virtual Machine Software.

 

By the way, we provide an online post for your reference:

Http://www.linuxsir.org/bbs/showthread.php? T = 231376

Netizen Daha:

First boot into the disk, you can use an ISO image in VMware to simulate the optical drive,

Then use/usr/sbin/DSL-hdinstall to install

However, although lilo has been installed in the pilot part, you still need to configure it by yourself. The second line may be logged out (the version I used is like this), and append = the two lines will be logged out, in addition, you 'd better log out if vga = 791.

Because lilo needs to run the Lilo command again after the configuration is modified to take effect, it also needs to run lilo from another Linux system chroot.

Linux chroot on the CD to Linux on the hard disk.

If the DSL installed on the hard disk can be booted but the ACPI crashes, the append = part of Lilo. conf must be set to ACPI = OFF,

For example, change to append = "ACPI = off"

This should be able to run together. By default, the character mode is entered. the user name is DSL. General operations can be sudo.

Sudo su root,

However, startx, whether as DSL or root, is faulty and cannot access the graphic interface.

Can anyone access the graphic interface? Give me some advice

 

 

Spring @ sir:

Set DSL. ISO downloads and unlocks the linux24and minirt24.gz files in Boot/syslinux, and copies the knoppix directory to the first disk of the fat class (fat16, FAT32, for example, if my hard disk partition is hda1 (C: disk in Windows) Is NTFS, and hda5 (D: disk in Windows) is FAT32, all the above files will be copied to hda5, download loadlin to the preceding directory.

Edit Linux. BAT:

Loadlin linux24 initrdw.minirt24.gz root =/dev/Ram ramdisk_size = 100000 initrd =/etc/init

Then use a Windows 98 disk to start to C for had5:

CD knoppix

Linux

This is poorman install

Note that knoppix must be the first disk in DOS.

You do not need to change the fuse and UCI packages. Of course, the packages should be placed on the above Windows 98 disk and started to the root directory where had5 is C.

 

If you use the built-in DSL command, but MRB will be rewritten

Start the machine with DSL, right-click desktop-> app-> hdinstall, and then press the command or

Http://www.damnsmalllinux.org/dsl-hd-install.html

You can also install GRUB:

Http://www.damnsmalllinux.org/wiki/ I ...nstalling_Grub

USB installation:

Http://www.damnsmalllinux.org/wiki/ I ...hp/USB_Booting

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.