Debian installation on a laptop

Source: Internet
Author: User

I recently bought a ThinkPad (t420). I want to install a Linux system.

In the past, grub was installed to MBR, which is quite easy. However, if grub is installed, the original MBR information will be overwritten. The original system cannot be booted (of course, other systems can be guided after grub configuration in Linux ).

Another approach is to install grub to the LINUX partition, so that the original system will not be affected. You can use the boot loader of the original system to boot Linux.

Using USB, download the first ISO of Debian 6.03 and save it to the USB flash drive.

When installing grub, select grub to the LINUX partition. Sometimes the installation fails (the cause of failure is unclear ). At this time, you can choose not to install grub, and then use live CD to Enter manual installation.

According to some information on the Internet, you can use the DD command (Linux) or winhex (Windows) to extract the first sector (512 bytes) of the LINUX partition installed with grub and save it as a file, run bcdedit in win7 to bring the Linux Startup directory home and use this file to guide the Linux system. But I tried it several times and it was not successful. Finally, configure it with easybcd, and then you can access the system.

To manually install grub, install the following method:

1. Insert the live CD disc and enter;

2. Enter the following command on the terminal: Sudo-I (this step is used to obtain the root permission without entering the password)

3. mkdir/Media/tempdir)

4. Mount/dev/sda7/Media/tempdir (Mount sda7 to the tempdir folder)

5. Grub-install -- root-directory =/Media/tempdir/dev/sda7 (install grub to/dev/sda7)

However, because the network adapter is relatively new (82579lm), Debian 6.0.3 is not fully supported, You need to download the driver code from the Intel website, compile and install:

Http://downloadcenter.intel.com/Detail_Desc.aspx? AGR = y and dwnldid = 15817

The same is true for wireless network adapters (RTL 8188ce). You also need to compile the driver code:

Http://www.realtek.com.tw/downloads/downloadsView.aspx? Langid = 1 & pnid = 48 & pfid = 48 & level = 5 & conn = 4 & downtypeid = 3 & getdown = false & downloads = true # rtl8188ce

I had to re-download a DVD image and install GCC and other development tools.

Download a copy of the kernel mode to re-compile the kernel code. The advantage of this is that the GCC version used for the compiled kernel image is naturally the same as the version used for the driver code to be compiled later,

This avoids a lot of trouble, because the GCC version required for compiling the driver is the same as the GCC version for compiling the kernel image in use.

Today, a new kernel image is compiled using the default system configuration.

But the first time you restart the system to enter the new kernel, the system prompts

"Fatal error: cocould not load/lib/modules. Deb ....

And then it goes down,

Go to the Internet and check whether the original initrd image is deleted. Then, run the following command:

Update-initramfs-C-kversion

Update-grub

OK.

It was a good job.

Today (11.07), the wired network card is ready, but the wireless network card is not ready yet.

Install the NVIDIA driver today (the main method is to run/etc/init. d/gdm3 Stop X, control + ALT + F1 to Enter command line, then sh NVIDIA-xxx.run ).

After the operation is complete, the system cannot enter X.

I checked it online and found that the reason is that the smart graphics card switch (NVIDIA Optimus) in Linux is not supported. I need to turn it off in the bios and directly select an independent graphics card.

In this way, restart your computer and you will be able to access X. R

The mplayer code is compiled today. After the installation, music has no sound.

[Ao oss] audio_setup: Can't open audio device/dev/DSP: no such file or directory

Check it online and execute

Modprobe snd_pcm_oss

This problem can be solved.

ALSA is not found in the audio driver list of mplayer,

Decided to re-configure and compile mplayer to add support for ALSA:

./Configure -- enable-menu -- enable-Gui -- enable-ALSA

The following error is reported:

Error: the GUI requires libavcodec with PNG support (needs zlib)

Installation required

Apt-Get install zlib1g-dev.

If an error is reported:

X11 support required for GUI compilation.

Installation required

Apt-Get install libgtk2.0-Dev

After installation, an error is reported.

Error: the GUI requires libavcodec with PNG support (needs zlib)

In fact, zlib PNG has been installed.

Go to config. log and check. The original error is:

Usr/bin/ld:Cannot find-Lasound

Therefore

Apt-Get install libasound2-dev

After that, compile and install the Alsa driver in the audio driver.

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.