切换风格

Wizard Sky California Sunset glow Black Cloud Beige Dragon Lavender NewYear City Snow Flowers London
收藏本站XSS平台字符串转换jsfuck
216 Web安全 安装UBUNTU SERVER[复制链接]
发表于 2012-8-23 23:30:49 | 显示全部楼层 |!read_mode!

地址:http://releases.ubuntu.com/10.10/ubuntu-10.10-server-i386.iso

安装的时候虚拟机请断网安装 名字是server 以后要测试local root



选择软件的时候 选择SSH 或者一个都不选择




安装后以后更改ROOT密码 sudo passwd root用ROOT登录 不能复制粘贴安装 apt-get install openssh-server在UB1中用SSH登录SERVER ssh root@ip

  1. root@Dis9Team:~# ssh root@5.5.5.2
  2. The authenticity of host '5.5.5.2 (5.5.5.2)' can't be established.
  3. RSA key fingerprint is 50:1d:89:8b:71:2f:60:62:55:71:ae:36:f3:0f:cd:fa.
  4. Are you sure you want to continue connecting (yes/no)? yes
  5. Warning: Permanently added '5.5.5.2' (RSA) to the list of known hosts.
  6. root@5.5.5.2's password:
  7. Linux ubuntu 2.6.35-22-generic-pae #33-Ubuntu SMP Sun Sep 19 22:14:14 UTC 2010 i686 GNU/Linux
  8. Ubuntu 10.10

  9. Welcome to Ubuntu!
  10. * Documentation:  https://help.ubuntu.com/
  11. Last login: Thu Aug  2 18:59:22 2012
  12. root@ubuntu:~#
复制代码

更换源
  1. root@ubuntu:~# cd /etc/apt/
  2. root@ubuntu:/etc/apt# ls
  3. apt.conf.d     secring.gpg   sources.list~   trustdb.gpg  trusted.gpg~
  4. preferences.d  sources.list  sources.list.d  trusted.gpg  trusted.gpg.d
  5. root@ubuntu:/etc/apt# mv sources.list sources.list.b
  6. root@ubuntu:/etc/apt# nano sources.list
  7. root@ubuntu:/etc/apt#
复制代码


如下
  1. deb http://mirrors.163.com/ubuntu/ maverick main universe restricted multiverse
  2. deb-src http://mirrors.163.com/ubuntu/ maverick main universe restricted multiverse
  3. deb http://mirrors.163.com/ubuntu/ maverick-security universe main multiverse restricted
  4. deb-src http://mirrors.163.com/ubuntu/ maverick-security universe main multiverse restricted
  5. deb http://mirrors.163.com/ubuntu/ maverick-updates universe main multiverse restricted
  6. deb http://mirrors.163.com/ubuntu/ maverick-proposed universe main multiverse restricted
  7. deb-src http://mirrors.163.com/ubuntu/ maverick-proposed universe main multiverse restricted
  8. deb http://mirrors.163.com/ubuntu/ maverick-backports universe main multiverse restricted
  9. deb-src http://mirrors.163.com/ubuntu/ maverick-backports universe main multiverse restricted
  10. deb-src http://mirrors.163.com/ubuntu/ maverick-updates universe main multiverse restricted
复制代码



然后更新:
  1. root@ubuntu:/etc/apt# apt-get update
复制代码



附件: 你需要登录才可以下载或查看附件。没有帐号?加入Team
操千曲而后晓声,观千剑而后识器。

代码区

GMT+8, 2020-10-29 09:56

Powered by Discuz! X2

© 2001-2018 Comsenz Inc.

回顶部