Slackware 14 Installation Guide

Source: Internet
Author: User
Tags tmp folder dreamweaver

Slackware 14 Installation Guide I. Installation preparation 000 1. Download slackware we recommend that you use a domestic source to download slackware. Of course, if you can endure the download speed at the same time as that of a foreign source snail bait, that's another case. At the same time, it is best to download the dvd version. After all, there are more and more comprehensive things in the dvd version, and the current USB flash drive is huge.: Http://mirrors.ustc.edu.cn/slackware/slackware-14.0-iso/slackware-14.0-source-dvd.iso 2, make installation U disk a, use UltraISO to open the slackware-14.0-source-dvd.iso image file. B, click the UltraISO menu [boot], and select [write hard disk image] c, write mode select USB-HDD +, start making U disk installation boot disk. 3. Set the USB flash drive to direct the Asus computer to the ESC instance and choose to start from the USB flash drive. If this is not the case for other computers, you can restart the system and Press F1 to enter the BIOS and modify it. Before starting the USB flash drive to the hard disk, set it to boot from the USB flash drive. Ii. system installation 1. Start the computer and press enter to start the system. 2. Set the keyboard layout and press enter to use the default US keyboard. 3. log on to the system and press enter to automatically log on as root. 4. Enter cfdisk in hard disk partition and press enter to partition the hard disk. To learn, we have to be brave enough to install slackware on the entire hard disk. It is best to divide the hard disk into three partitions, namely the root partition "/", the primary partition "/home", and the swap partition "swap ". In this way, the main partition "/home" can be used to store personal documents, music, and other important content. when reinstalling the system, as long as the partition size does not change, this partition will not be broken, you can retain the original data. Of course, everything focuses on security. Please back up data. Sda1 minute 30G, big enough. Remember to select bootable and press enter once. Sda2 is divided into 2 times the memory size. For example, 2 GB memory is divided into 5 GB memory, which is used as the swap partition. Change the hard disk partition type "type" and ID to 82. The remaining primary partitions of sda3 are for personal use. The larger the value of "/home", the better. Select quit and press enter to exit the partition. 5. Start the installer and enter setup in the terminal to start the installer. HELP: Read the installation help keymap: Set the keyboard layout ADDSWAP: Set the swap partition TARGET: Set the Slackware installation TARGET partition SOURCE: SELECT the package SOURCE, that is, the installation media SELECT: select the software package to INSTALL: install configure: CONFIGURE system EXIT: EXIT installation 6. skip this step to set KEYMAP. Because the US keyboard is used by default when we set the keyboard layout. 7. Set ADDSWAP to move the selection entry to ADDSWAP and press Enter. The installer automatically searches for swap partitions on the hard disk. Then, select OK and press Enter. Check whether there is an error in the SWAp partition. Select No and press Enter. Then, swap space configured is displayed, that is, the swap partition is set successfully, and the setting information is added to/etc/fstab. Click OK and press Enter. 8. set TARGET in the Setting up root linux partition screen. Select a hard disk partition as the root partition and enter "/". Select/dev/SB_1 and press Enter. Then, in the new format partition/dev/sba1 screen, select Format, that is, format the partition, and press Enter. In the new screen of select filesystem for/dev/SB1, select format to Ext4 file system. Then, draw the gourd according to the sample, set sda3, and input/home. After setting is complete, add the setting information to/etc/fstab 9. Set the SOURCE to select the SOURCE for installing the Slackware package, because it is a USB flash drive installation, so we select 2 Install from a hard drive partition and press Enter. Input/dev/sdb4. if you have more partitions, check the path of the USB flash drive. It is/dev/sdb5 (or 6, 7 ...... A In sba represents the first hard disk, and B in sdb represents the second hard disk. The number after sba or sdb represents the first partition. Of course, you can also use the fdisk-l command to list all available partitions before installation. Remember to store the partitions of the ISO file and press Enter. Enter/slackware in the new screen and press Enter. 10. Set SELECT in the package series selection screen, which includes the following: A Base Linux system basic system AP Various Applications that do not need X some Applications that do not depend on x d Program Development (C, C ++, Lisp, Perl, etc .) Program Development Tool e gnu Emacs editor f faq lists, HOWTO documentation FAQ list and HOWTO documentation K Linux kernel source code KDE Qt and the K Desktop Environment for x kde Desktop Environment and QT library KDEI International language support for KDE Desktop Environment L System Libraries (needed by KDE, GNOME, X, and more) KDE, GNOME, X and other required System Libraries (System Library) N Networking (TCP/IP, UUCP, Mail, News) network Application and tool T TeX typesetting software T EX typographical software TCL Tcl/Tk script languages Tcl/Tk script language X Applications some graphical interface Applications Y Games game Xfce xfce desktop environment I am KDEI, Y, Xfce not selected. If it is not developed, D should also be able to select the. y game class, which is meaningless to me. xfce is not selected because slackware is kde by default and I usually use the default desktop environment. KDEI is not selected, after installing the system, you must install U Disk/media/SlackDVD/slackware/kdei/, find a Chinese package kde-l10n-zh_CN-4.8.5-noarch-1.txz and installpkg on, or the system does not have Chinese. After you press enter, select a new image of prompting mode and start to select the software package series: "Full" does not prompt other information. The Terse and full packages of all the software packages selected in the previous step are automatically installed, during the installation process, each line shows that a software package is installed. Menu in the interaction Menu, select the software packages to be installed in the selected software package series. The Expert is actually the same as the "menu" option. Newbie installs required packages in the selected package series. For non-required packages, a menu appears asking you to confirm whether to install them. It is very troublesome, but we can see more detailed information. Custom uses the Custom tagfile in the Slackware package directory to install tagpath and uses the tagfile specified by other paths for installation. Anyway, the new user selects "full" and installs all; if you are a master, you can choose expert and customize your personality. Press enter to start system installation. 11. Create (Create) a Startup Disk Skip (Skip) is a USB flash disk installation. Of course, select Skip. 12. Install the LILO boot program in Simple mode, try to automatically install LILO Expert mode, and manually edit lilo. conf, set the boot menu, and install LILO Skip to Skip. If you do not install the LILO boot program, select simple and install LILO automatically. Then, select the resolution on the command line interface. Select the additional Kernel Parameter as needed. Generally, do not add the parameter. Press enter to skip the parameter. Configure Console mode: select No here. Choose the installation location of the LILO boot sequence. There are three options: Root installation to the super block of the Root partition (but the file system of the Root partition cannot be XFS) floppy is installed to a Floppy disk. The MBR is installed to the Master Boot Record. However, the strange thing is that my Asus ul 20ft laptop did not install the LILO boot program successfully. You have to reinstall grub for boot. After the system is ready, we first boot with a USB flash drive. On the boot interface that the USB flash drive enters, go to "boot:" and follow the prompt on the interface, enter: huge. s root =/dev/sda1 rdinit = ro to enter the slackware system after the hard disk is installed. Then, go to the first page of the http://slackbuilds.org/web site, and search for grubwith 14.0's, and access http:/// slackbuilds.org/result /? On the search = grub & sv = 14.0 page, click grub2 to go to http://slackbuilds.org/repository/14.0/system/grub2/page, and download grub2.tar.gz and grub-2.00.tar. xz. However, before compiling and installing grub2, make sure that there are gnu-uniont, OS-prober, and help2man in the system. In fact, you only need to compile and install the gnu-uniont and help2man dependencies first, you can compile and install grub2. After grub2 is compiled and installed, we have to install grub-install -- root-directory = // dev/sda in the terminal to the hard drive boot Sector Grub-mkconfig-o/boot/grub. after cfg re-generates the configuration file, you can directly use grub2 to boot the hard disk without USB flash drive boot. 13. Configure the mouse in the new mouse configuration screen. Select your mouse type. I use usb. Then, on the new gpm configuration screen, select "Yes" to start the gpm program. gpm program. You can copy the paste text with the mouse on the command line interface. 14. Select Yes for the network configuration, set configure network to set the host name, and enter a name that is easy to recognize in the LAN, such as smsl. Set the domain name. If the server is used, enter the domain name, such as onesl.com. For personal laptops, enter the IP address. static IP addresses (static IP addresses) and DHCP addresses (automatically obtain IP addresses from the DHCP server) are available), loopback (set the loopback interface) and so on, please select and set according to the actual situation. I chose networkmanager and used it to manage the network: Great. 15. Select rc. cups and rc. samba from the System Service set for startup so that we can use the printer service and use samba commands to access the LAN. 16. Set the console font. Select No here and use the default font. 17. Set the time zone to No, set the hardware clock to the local time, and then, select Asia/Shanghai 18 and set the default window manager when X is started. You can select your preferred desktop environment or window manager, for example, although both KDE and kdm can select the default desktop system when logging on, it is necessary to know that the control is xwmconfig. You only need to enter xwmconfig on the terminal to make the selection. 19. Set the root account password. Here, select Yes and press Enter. Enter the root password set twice. Then press enter to continue. 20. After installation is complete, press enter to return to the main menu of the installation program. On the main menu of the installation program, select EXIT to EXIT the installation program. Enter reboot in the command line to restart the machine and start slackware. By default, the interface is not displayed. To enter the GUI, type startx. 3. System Configuration 1. Update the system to/etc/slackpkg/mirrors and set the update source. We recommend that you use the zhongke big source. It is said that Slackpkg can only set one image source, and it is best to officially approve the image and cancel the # comment above. Then, you can update the software package database through the command # slackpkg update # slackpkg upgrade-all in the terminal. 2. Modify the default interface. The default running level of slackware is 3, that is, the multi-user command line interface. Under the Default runlevel line in the file/etc/inittab, change the number after the id to the required value. We change the Default value 3 to 4 to enable the graphic interface to be started by Default. 3. Add a user. for personal use, use root to log on. If you are a newbie, we do not recommend that you use root login to solve the problem. In linux, the user has an administrator, a system user, and a common user. The Administrator's ID number is 0, the System user's ID number is 1-499, and the normal user's ID number is> = 500. it is better to use adduser username to add new users, because there will be a bunch of things for you to choose. Useradd username is only used to add new users. Of course, you can use passwd username to create a password. To delete a user, you only need to: userdel username. 4. After configuring the Chinese environment, Slackware is installed in English by default. After confirming the installation of the Chinese package, you only need to change the locale environment variable in/etc/profile. d/lang. sh. Modify/etc/profile. d/lang. sh comment out the export LANG = en_US line, and add export LANG = zh_CN.utf8 to the following. We recommend that you set/etc/profile. d/lang. modify the csh. If the kde logon interface is to change to Chinese, modify/etc/kde/kdm/kdmrc, find # Language =, change it to: Language = zh_CN.uTF-8, of course, also in the system settings, click locale, select china in country, and select Simplified Chinese as the first language. 5. Firefox is changed to Chinese by default. Then, enter about: config in the address bar of FireFox and press Enter. In the filter box, enter general. useragent. locale. Double-click the option and enter "zh-CN". OK. Restart the browser. FireFox is now in the Chinese version. 6. Install the fcitx Chinese Input Method removepkg scim and removepkg scim-bridge to delete SCIM-related software packages. In. 7. Add the Microsoft Font here. Then, install the font in "system settings-font Management". To adjust your visual habits, visit http://wenq.org/cloud/fcdesigner_local.htmlto adjust the font. 8. download the latest Linux kernel source code from www.kernel.org. Decompress the downloaded file to the/usr/src directory, and delete the existing soft link named linux, and use the command ln linux-3.6.3 linux-s to create a new soft link pointing to the new kernel code (linux-3.6.3 in this example. Run the command cd linux to enter the kernel source code tree, and then you can configure and compile the kernel. The steps are: make oldconfig and make menuconfig. Configure to cut down the kernel, and then make modules, make modules_install, and make install. The new compiled kernel is installed in the default directory. After the computer is restarted, use uname-sr to see that the new kernel has taken effect. Iv. Software Installation 1. Install yongzhong under root, decompress the package, and click setup to install the software smoothly. However, during the installation, it is found that the installation has not been completed, but it has actually been installed. However, when we really want to run yongzhong, we find that it cannot be run at all. Solution my network management yufeng has been found, is yongzhong built-in jre problems, to java website http://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-1880261.html download the latest jre, after decompression, replace the jre in/usr/local/Yozosoft/Yozo_Office. In fact, I also found that it is okay not to replace the entire jre, as long as all the lib under the jre directory is replaced. In this way, you can smoothly run yongzhong. However, we still find that there are problems, that is, sometimes there is a false death, and the program cannot exit. At the same time, after the replacement of yongzhong, after running, we found that there was no font in the font drop-down menu, and the font in the connection system was useless. Very strange. I found a solution to this problem after two days. Use kwrite to open setup. sh, we can see in the third line FONT_PATH =/usr/X11R6/lib/X11/fonts/TrueType, Then we open the/usr/X11R6/lib/X11/fonts directory, but I found that there was no TrueType folder in it. The problem was found here. Therefore, under/usr/X11R6/lib/X11/fonts, we create a folder named TrueType and paste the commonly used Microsoft fonts in it. When we opened yongzhong office again, we found that there was no font to solve the problem. After testing, I feel that the problem of permanent running and false death are all here, that is, the font support cannot be found. In other words, as long as the font support problem is solved, there may be no need to replace jre. To delete yongzhong, you only need to enter rmyzo in the terminal and press Enter. 2. Install filezilla here to prepare and install the package. Of course, you must download and install wxPython or wxGTK to solve the dependency problem. 3. to install wine with Dreamweaver 8.0, you can only install wine honestly. After downloading and compiling winein http://slackbuilds.org/, you can install Dreamweaver 8.0 in wine. However, Dongxing Securities installed by wine cannot run. According to the original habits, install wine and then download and compile cabextract and winetricks. Then, run winetricks on the terminal and select and install mfc42.dll and ie7. however, Dongxing Securities cannot run at last. I still have a strong network management system (yufeng. After research, it is found that there are problems with database support. As a result, we only need to go to the Microsoft XP system, enter the C drive/windows/system32 directory, and put all the suffixes as ". copy all dll files and paste them to /. in wine/system32, if a file with the same name is queried, all files are overwritten. Therefore, Dongxing Securities was revived. 5. Common commands 1. Enter the directory cd/opt to enter the opt directory cd .. Back to the upper-level directory cd .. /Opt means to return to the upper-level directory and enter the opt folder pwd to check the current working directory mkdir/tmp to create the tmp folder rm-rfv/tmp recursively Delete the tmp directory su-the user name is switched to another user in the terminal 2. decompress the Tar xfv original package path/package name. (Add. 3. Move the original Mv package path/package name to the current directory. (Add. 4. Permission file permissions include r (read), w (write), and x (execution ). For example, the chmod + x/opt/file name modification permission for a file under the opt directory chmod 777/opt-r recursively modifies the file under the opt directory to 777. 5. The termination command terminates the running command in the terminal: ctr + c 6. Delete the software and execute pkgtool in the terminal. 7. install the software first-built package :. /File name. After slackbuild, install: installpkg package file name

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.