码迷,mamicode.com
首页 > 系统相关 > 详细

Linux 入门 1 (vm虚拟机安装openSUSE 11,SecureCRT远程连接)

时间:2014-07-06 12:52:32      阅读:538      评论:0      收藏:0      [点我收藏+]

标签:des   style   blog   http   color   使用   

Linux版本:

  openSUSE-11.0-GNOME-LiveCD-i386.torrent ,(680M)下载地址:http://ftp5.gwdg.de/pub/opensuse/discontinued/distribution/11.0/iso/torrent/

  安装都是默认的,设的硬盘大小是8G,内存1G,网络连接时桥接,分区挂载都是快速安装默认的,自己没修改。


  安装好后,ifconfig查看suse的ip为192.168.1.103,而物理机(笔记本)是192.168.1.100,从物理机可以ping通suse,而suse端ping -c4 192.168.1.100无法ping通物理机。。。

  解决方法:将物理机的防火墙关闭即可。

 

secureCRT连接suse提示“未连接”的问题

  1、没有安装openssh(ubuntu没有安装

  2、没有启动sshd服务(可以netstat -antp 命令查看

  3、防火墙没打开

 

  用netstat命令查看,发现sshd服务已经是启动的状态了,所以只能是防火墙没打开的缘故

  bubuko.com,布布扣

 

  打开防火墙的方法参考:http://blog.csdn.net/aaronychen/article/details/2802199 

  打开这个文件:/etc/sysconfig/SuSEfirewall2,该文件内部的一部分如下:

  bubuko.com,布布扣

  使用命令:rcSuSEfirewall2 restart    //重启防火墙,以使配置生效

 

  bubuko.com,布布扣

 


开机默认以文件界面启动

  修改 /etc/inittab 文件里的默认启动级别

linux-0k5g:~ # cat /etc/inittab
#
# /etc/inittab
#
# Copyright (c) 1996-2002 SuSE Linux AG, Nuernberg, Germany.  All rights reserved.
#
# Author: Florian La Roche, 1996
# Please send feedback to http://www.suse.de/feedback
#
# This is the main configuration file of /sbin/init, which
# is executed by the kernel on startup. It describes what
# scripts are used for the different run-levels.
#
# All scripts for runlevel changes are in /etc/init.d/.
#
# This file may be modified by SuSEconfig unless CHECK_INITTAB
# in /etc/sysconfig/suseconfig is set to "no"
#

# The default runlevel is defined here
id:5:initdefault:

# First script to be executed, if not booting in emergency (-b) mode
si::bootwait:/etc/init.d/boot

# /etc/init.d/rc takes care of runlevel handling
#
# runlevel 0  is  System halt   (Do not use this for initdefault!)
# runlevel 1  is  Single user mode
# runlevel 2  is  Local multiuser without remote network (e.g. NFS)
# runlevel 3  is  Full multiuser with network
# runlevel 4  is  Not used
# runlevel 5  is  Full multiuser with network and xdm
# runlevel 6  is  System reboot (Do not use this for initdefault!)
#
l0:0:wait:/etc/init.d/rc 0
l1:1:wait:/etc/init.d/rc 1
l2:2:wait:/etc/init.d/rc 2
l3:3:wait:/etc/init.d/rc 3
#l4:4:wait:/etc/init.d/rc 4
l5:5:wait:/etc/init.d/rc 5
l6:6:wait:/etc/init.d/rc 6

# what to do in single-user mode
ls:S:wait:/etc/init.d/rc S
~~:S:respawn:/sbin/sulogin

# what to do when CTRL-ALT-DEL is pressed
ca::ctrlaltdel:/sbin/shutdown -r -t 4 now

# special keyboard request (Alt-UpArrow)
# look into the kbd-0.90 docs for this
kb::kbrequest:/bin/echo "Keyboard Request -- edit /etc/inittab to let this work."

# what to do when power fails/returns
pf::powerwait:/etc/init.d/powerfail start
pn::powerfailnow:/etc/init.d/powerfail now
#pn::powerfail:/etc/init.d/powerfail now
po::powerokwait:/etc/init.d/powerfail stop

# for ARGO UPS
sh:12345:powerfail:/sbin/shutdown -h now THE POWER IS FAILING

# getty-programs for the normal runlevels
# <id>:<runlevels>:<action>:<process>
# The "id" field  MUST be the same as the last
# characters of the device (after "tty").
1:2345:respawn:/sbin/mingetty --noclear tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6
#
#S0:12345:respawn:/sbin/agetty -L 9600 ttyS0 vt102
#cons:12345:respawn:/sbin/smart_agetty -L 38400 console

#
#  Note: Do not use tty7 in runlevel 3, this virtual line
#  is occupied by the programm xdm.
#

#  This is for the package xdmsc, after installing and
#  and configuration you should remove the comment character
#  from the following line:
#7:3:respawn:+/etc/init.d/rx tty7


# modem getty.
# mo:235:respawn:/usr/sbin/mgetty -s 38400 modem

# fax getty (hylafax)
# mo:35:respawn:/usr/lib/fax/faxgetty /dev/modem

# vbox (voice box) getty
# I6:35:respawn:/usr/sbin/vboxgetty -d /dev/ttyI6
# I7:35:respawn:/usr/sbin/vboxgetty -d /dev/ttyI7

# end of /etc/inittab

 

 将上面红色字体部分里的 id:5 改为 id:3 保存,重启电脑即可。

 bubuko.com,布布扣

 

 

 

Linux 入门 1 (vm虚拟机安装openSUSE 11,SecureCRT远程连接),布布扣,bubuko.com

Linux 入门 1 (vm虚拟机安装openSUSE 11,SecureCRT远程连接)

标签:des   style   blog   http   color   使用   

原文地址:http://www.cnblogs.com/shirishiyue/p/3826107.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!