Chinaunix首页 | 论坛 | 博客
  • 博客访问: 205010
  • 博文数量: 32
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 850
  • 用 户 组: 普通用户
  • 注册时间: 2013-11-22 15:50
文章存档

2014年(16)

2013年(16)

分类: LINUX

2013-12-20 09:41:22

                    RHEL6.4开发环境构建,配置NFS、tftp、samba、arm-linux-gcc、telnet等
    
    SYSTEM:red hat enterprise linux server 6.4

1.Installed data:2013-12-19


2. gcc/g++版本:v4.4.7

3. 不需安装VMtools

4. 开启SSH,使系统支持远程启动
        # chkconfig sshd on //开机自启动
        # service sshd start

5. 关闭防火墙和SELINUX //对于配置smb尤为重要
        # cp /etc/selinux/config /etc/selinux/config.back //备份该文件
        # vim /etc/selinux/config
            SELINUX= enforcing --->SELINUX=disabled //关闭selinux
    然后命令行执行如下命令
        # setenforce 0;

        # chkconfig iptables off //启动时关闭防火墙

5. 配置SMB
        查看smb服务器启动情况
            # service smb status
            # vim /etc/samba/smb.conf ,增加如下内容
                [wangtisheng]
                        comment = Personal Directories
                        browseable = yes
                        writable = yes
                        path = /home/wangtisheng
                        valid users = wangtisheng
                        ;valid users = MYDOMAIN\%S

        为当前用户添加samba密码
            # smbpasswd -a wangtisheng
        重启smb服务
            # /etc/init.d/smb restart

        开机启动smb服务
                # setup  --> system services 选中smb即可

6. 安装arm-linux-gcc v3.4.5
        在/usr/local目录下新建目录arm
            # cd /usr/local
            # mkdir arm
        将3.4.5版本编译器安装到arm目录下
            # cd arm/3.4.5
            # ls 内容如下
                    arm-linux                      bin          include  lib      man
                    arm-linux.crosstoolconfig.txt  distributed  info     libexec  tmp
        修改/root/.bashrc,添加如下内容
            # vim /root/.bashrc
                export PATH=$PATH:/usr/local/arm/3.4.5/bin
        执行source /etc/profile使修改生效,或者注销重新登录
            # source /etc/profile
        查看arm-linux-gcc版本信息
            # arm-linux-gcc -v
            

7. 配置tftp服务器
    tftp-server-0.rar
        安装tftp server
            # rpm -ivh tftp-server-0.42-3.1.i386.rpm
        修改tftp配置文件
            # vim /etc/xinetd.d/tftp

             # default: off
                # description: The tftp server serves files using the trivial file transfer \
                #       protocol.  The tftp protocol is often used to boot diskless \
                #       workstations, download configuration files to network-aware printers, \
                #       and to start the installation process for some operating systems.
                service tftp
                {
                        socket_type             = dgram
                        protocol                = udp
                        wait                    = yes
                        user                    = root
                        server                  = /usr/sbin/in.tftpd
                        server_args             = -s /home/wangtisheng/tftpboot
                        disable                 = no
                        per_source              = 11
                        cps                     = 100 2
                        flags                   = IPv4
                }

        重启tftp服务器
            # /etc/init.d/xinetd restart
        查看tftp服务器是否成功启动
            # netstat -a | grep tftp
                udp        0      0 *:tftp                      *:* 
        可用tftp下载uImage测试

8. 配置NFS
        查看是否安装nfs-utils的安装包
            #  rpm -q nfs-utils
                nfs-utils-1.2.3-36.el6.i686
        NFS配置,加入允许访问的计算机、目录和访问权限
            # vim /etc/exports
                /home/wangtisheng/nfsroot  *(rw,sync,no_root_squash)
        NFS重启
            # /etc/init.d/nfs restart

        可用NFS方式挂载根文件系统测试,测试OK

9. 安装telnet
telnet-server-0.rar

        # rpm -ivh telnet-server-0.17-38.el5.i386.rpm 
        # vim /etc/xinetd.d/telnet
            disable = yes ---> disable = no
        # /etc/init.d/xinetd restart

阅读(3184) | 评论(0) | 转发(2) |
给主人留下些什么吧!~~