Lab 17 Installation and Administration Tools

Goal: Become familiar with system configuration tools and successfully install Red Hat Enterprise Linux

Lab Setup: Ensure that a server1 repository is available.

Provide students with boot.iso disk.

Warning: If your system cannot boot from the provided boot.iso CD, you might need to change the boot order in the computer's BIOS; however, please do not change BIOS settings without being instructed to do so.

Sequence 1: Configuring Yum and Installing the Apache Web Server

Scenario: Configure a yum repository and use it to install the Apache Web Server.

Deliverable: The ability to install packages from server1's yum repository and an installed copy of the Apache web server.

Instructions:

1. Before you can use yum to install packages, you will need to tell it the location of a software repository. Such a repository is housed on server1, along with a yum configuration file describing it. Begin by using sudo and wget to download the repository's configuration file into /etc/yum.repos.d/.

[student@stationX ~]$ sudo wget -P /etc/yum.repos.d/ ftp://server1/pub/gls/server1.repo

2. From this point on, you can perform this lab from the command-line or with graphical tools. You only need to perform one of the instruction sets below.

• From a command-line

1). Use sudo to execute the yum package management tool with root privileges.

[student@stationX ~]$ sudo yum install httpd

2). Press y when prompted for confirmation.

• Using Graphical Tools

1). Applications->Add/Remove Software

2). Enter root's password if prompted

3). Click the Search tab

4). In the Search dialog box type "Apache"

5). Check the box next to httpd

6). Click "Apply"

7). Click "Continue" to start the installation.

8). Click "OK" to verify installation and close pirut.

Sequence 2: Create a simple web page

Deliverable: Display a web page in local browser from local web server

Instructions:

1. Use a text editor to create a file called /var/www/html/index.html with the content Welcome to StationX, where X is your station number.

Note that writing to this directory requires root privileges.

2. Start the Apache web server (httpd) and configure it to start automatically when the system boots. This can be done from a command-line or with graphical tools.

• From a command-line:

1). Check to see if the service is already running.

[student@stationX ~]$ sudo /sbin/service httpd status
... output omitted ...

2). If the httpd is not already running, start it.

[student@stationX ~]$ sudo /sbin/service httpd start
Starting httpd: [ OK ]

3). Ensure that httpd starts persistently across reboots.

[student@stationX ~]$ sudo /sbin/chkconfig httpd on

• Using graphical tools:

1). Click System->Administration->Services to start system-config-services.

2). Scroll to the httpd entry in the list at the left of the window and single-click the entry.

3). Note whether the service is running. This should be displayed in the status window in the lower-right.

4). If httpd is not running, click the Start icon.

5). You should be presented with a dialog confirming that httpd is now running. Click OK to dismiss the dialog. Note that the Status window has been updated as well.

6). Ensure that httpd starts persistently across reboots by checking the checkbox to the left of the httpd label.

7). Click the Save icon and close system-config-services.

3. Start the firefox web browser by clicking Applications->Internet->Firefox Web Browser

4. Enter http://stationX, where X is your station number, into the Location bar.

5. You should see the contents of your new document displayed. If you do not, double-check the location and permissions of your index.html file.

6. Have a neighbor attempt to access your web server. This should fail. It is important to remember that the iptables firewall as used by Red Hat Enterprise Linux blocks incoming connections to services other than sshd by default. The next sequence will enable access to httpd through the firewall.

Sequence 3: Secure access to the Apache Web Server

Deliverable: Use the Security Level Configuration menu tool to configure the iptables firewall so the Apache Web server can be accessed on your server.

Instructions:

1. Click System->Administration->Security Level and Firewall to start system-configsecuritylevel.

2. Set the Firewall drop-down to "Enabled", if it is not already.

3. Find and check the entries for WWW (HTTP) and Secure WWW (HTTPS) in the Trusted Services list.

4. Click OK to close system-config-securitylevel.

5. Have your neighbor try to access your web server again. This time it should succeed.

Sequence 4: Shutdown and un-install the Apache Web Server

Scenario: You have decided not to use this system as a web server. Since it is best practice to not run services you do not need, the httpd package will be uninstalled.

Deliverable: The Apache Web Server should no longer be installed on the system

Instructions:

1. First, httpd must be shut down.

• From a command-line:

1). Use the service command to shut the server down.

[student@stationX ~]$ sudo /sbin/service httpd stop
Stopping httpd: [ OK ]

2). Use the chkconfig command to ensure that it does not start on subsequent boots.

[student@stationX ~]$ sudo /sbin/chkconfig httpd off

• Using graphical tools:

1). Run system-config-services by clicking System->Administration->Services.

2). Highlight httpd and click the stop icon.

3). Uncheck the checkbox next to httpd and click the Save icon.

4). Close system-config-services.

2. Now Apache can be un-installed.

• From a command-line:

1). Use yum's remove command to un-install httpd.

[student@stationX ~]$ sudo yum remove httpd
... output omitted ...

Press y if you are prompted for confirmation.

• Using graphical tools:

1). Run pirut by clicking Applications->Add/Remove Software

2). Enter root's password if prompted

3). Click the Search tab

4). In the Search dialog box, Enter Apache. After some searching, a number of packages related to the web server should be displayed.

5). Uncheck the box next to Apache HTTP Server.

6). Click Apply.

7). Click Continue to begin the un-install process.

8). Click OK to close pirut.

• Do not forget to close up the holes you made in the firewall. Start by clicking System->Administration->Security Level and Firewall

• Uncheck the boxes for WWW (HTTPS) and Secure WWW (HTTPS) in the Trusted Services list.

• Click OK to close system-config-securitylevel.

Sequence 5: Installing Red Hat Enterprise Linux in Graphical Mode

Scenario: A new server was just delivered. Before moving it into production, you plan to perform a test installation.

Deliverable: A basic system with only default set of packages, installed from an NFS-based network-installation server.

Instructions:

1. Boot your system from the CD your instructor will provide. This will start Anaconda, the Red Hat Enterprise Linux installer.

2. Press Enter at the boot: prompt.

3. Choose the appropriate language for your region.

4. Choose the appropriate keyboard layout for your region.

5. Choose NFS image for the installation method

6. You will now be prompted to do some network configuration. Select Use dynamic IP configuration (BOOTP/DHCP). Deselect Enable IPv6 support.

7. Enter the following information to configure the installation source:

• NFS Server Name: 192.168.0.254

• Red Hat Enterprise Linux directory: /var/ftp/pub

8. At this point Anaconda (the installer) will retrieve the necessary installation image and probe the system for its monitor and mouse type. When this is completed, you will be presented with a welcome screen.

Click Next.

9. Select Skip entering Installation Number and click Next. Confirm by clicking Skip.

10. Anaconda next checks if Red Hat Enterprise Linux is already installed on this system. If yes, it will offer you the option to perform an Upgrade instead of a fresh installation.

Choose Install Red Hat Enterprise Linux and Click Next.

11. Select Remove linux partitions on selected devices, Create default layout and Review and modify partitioning layout, then click Next.

12. Use the default Boot Loader settings unless the instructor advises otherwise. Do not create a Boot Loader password.

13. Choose DHCP for networking and check the activate on boot checkbox.

14. Set the time zone as appropriate for your location; implement UTC if the instructor suggests it

15. Set the root password to redhat (it is not a good password, but please use it anyway).

16. Use the default set of packages.

17. You should now be at the About to Install screen. Click Next to begin.

18. Track the progress of filesystem formatting by switching to tty5 (Ctrl-Alt-F5 will take you there; Ctrl-Alt-F6 will return you to the installer)

19. After the reboot following the installation, complete the initial set up tool. Create a user account of your choice. Do not register the machine with Red Hat Network. Select No, I prefer to register at a later time followed by No thanks, I"ll connect later. Select Enable Firewall when promtped to configure the firewall. Use the default values for all other settings.

20. Once you have completed the installation and the newly-installed system has booted, log in as root and examine the following:

• /root/install.log

• /var/log/messages

• /var/log/dmesg

RH033读书笔记(16)-Lab 17 Installation and Administration Tools的更多相关文章

  1. RH033读书笔记(9)-Lab 10 Understanding the Configuration Tools

    Lab 10 Understanding the Configuration Tools Sequence 1: Configuring the Network with system-config- ...

  2. RH133读书笔记(9)-Lab 9 Installation and System-Initialization

    Lab 9 Installation and System-Initialization Goal: Successfully install Red Hat Enterprise Linux. Sy ...

  3. RH033读书笔记(15)-Lab 16 The Linux Filesystem

    Lab 16 The Linux Filesystem Goal: Develop a better understanding of Linux filesystem essentials incl ...

  4. RH033读书笔记(8)-Lab 9 Using vim

    Lab 9 Using vim Sequence 1: Navigating with vim 1. Log in as user student 2. [student@stationX ~]$ c ...

  5. RH033读书笔记(2)-Lab 3 Getting Help with Commands

    Lab 3 Getting Help with Commands Sequence 1: Using the Help Tools 1. man -f keyword whatis keyword l ...

  6. RH033读书笔记(5)-Lab 6 Exploring the Bash Shell

    Lab 6 Exploring the Bash Shell Sequence 1: Directory and file organization 1. Log in as user student ...

  7. RH033读书笔记(4)-Lab 5 File Permissions

    Lab 5 File Permissions Sequence 1: Determining File Permissions 1. What is the symbolic representati ...

  8. RH033读书笔记(3)-Lab 4 Browsing the Filesystem

    Lab 4 Browsing the Filesystem Sequence 1: Directory and File Organization 1. Log in as user student ...

  9. RH033读书笔记(7)-Lab 8 Introduction to String Processing

    Lab 8 Introduction to String Processing Sequence 1: Exercises in string processing 1. Other than the ...

随机推荐

  1. Xenu-web开发死链接检測工具应用

    Xenu 是一款深受业界好评,并被广泛使用的死链接检測工具. 时常检測站点并排除死链接,对站点的SEO 很重要,由于大量死链接存在会减少用户和搜索引擎对站点的信任,web程序开发者还可通过其找到死链接 ...

  2. SE 2014年4月3日

    一  OSPF协议都支持哪些特殊区域?每种特殊区域都有什么特点. OSPF协议支持的特殊区域主要有stub区域.totally stub区域以及nssa区域,其中stub区域一般出现在末梢网络,即它的 ...

  3. SocketAsyncEventArgs使用解说

    原文:SocketAsyncEventArgs使用解说 如果在.NET下写过网络通讯的同学应该感觉不陌生了,有很多刚入门的同学很多都认为这东西可以大大提高处理效能还有就是使用上很不适应.其实使用之前最 ...

  4. 低版本的 opencv库的 vs2010 打开 高版本opencv

    打开track.vcxproj文件, 注释掉跟版本有关的行就可. 本例子中,当用双击.sln用vs2010打开高版本的opencv项目时,会出现错误, 并且会有错误信息提示,双击该错误信息,就会打开该 ...

  5. 【转】Acm之java速成

    这里指的java速成,只限于java语法,包括输入输出,运算处理,字符串和高精度的处理,进制之间的转换等,能解决OJ上的一些高精度题目. 1. 输入:格式为:Scanner cin = new Sca ...

  6. Redis的字典(dict)rehash过程源代码解析

    Redis的内存存储结构是个大的字典存储,也就是我们通常说的哈希表.Redis小到能够存储几万记录的CACHE,大到能够存储几千万甚至上亿的记录(看内存而定),这充分说明Redis作为缓冲的强大.Re ...

  7. 解决方式:QSqlDatabase: an instance of QCoreApplication is required for loading driver plugins

    在用QSqlDatabase时遇到报错QSqlDatabase: an instance of QCoreApplication is required for loading driver plug ...

  8. Android JNI 获取应用程序签名

    使用Android JNI 获取应用程序签名. 获取基础上生成自己的签名password,这可以防止别人反编译找到自己的源代码password. jstring Java_com_masonsdk_j ...

  9. JAVA的class打包成dll

    一.将已经编译后的java中Class文件进行打包:打包命令JAR 如:将某目录下的所有class文件夹全部进行打包处理: 使用的命令:jar cvf test.jar -C com/ . //注意这 ...

  10. 泛泰A850 (高通8064+720p)刷4.4专用中文recovery TWRP2.7.1.3版

    欢迎关注泛泰非盈利专业第三方开发团队 VegaDevTeam  (本team 由 syhost suky zhaochengw(z大) xuefy(大星星) tenfar(R大师) loogeo cr ...