<!--[if !supportLists]-->1. <!--[endif]-->ubuntu版本:ubuntu-12.04-server-i386.iso
安装命令如下,安装过程过于简单就不用说了。
sudo apt-get install openssh-server
查看是否安装成功:
ps -e |grep ssh
1329 ? 00:00:00 sshd |
看到sshd那说明ssh-server已经启动了
查看IP:ifconfig
naxsu@ubuntu:~$ ifconfig eth0 Link encap:Ethernet HWaddr 00:0c:29:e0:32:e5 inet addr:192.168.26.128 Bcast:192.168.26.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fee0:32e5/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:53 errors:0 dropped:0 overruns:0 frame:0 TX packets:55 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:5999 (5.9 KB) TX bytes:7364 (7.3 KB) Interrupt:19 Base address:0x2000
lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) |
用SecureCRT连接
<!--[if gte vml 1]><v:shapetype id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"> <v:stroke joinstyle="miter" /> <v:formulas> <v:f eqn="if lineDrawn pixelLineWidth 0" /> <v:f eqn="sum @0 1 0" /> <v:f eqn="sum 0 0 @1" /> <v:f eqn="prod @2 1 2" /> <v:f eqn="prod @3 21600 pixelWidth" /> <v:f eqn="prod @3 21600 pixelHeight" /> <v:f eqn="sum @0 0 1" /> <v:f eqn="prod @6 1 2" /> <v:f eqn="prod @7 21600 pixelWidth" /> <v:f eqn="sum @8 21600 0" /> <v:f eqn="prod @7 21600 pixelHeight" /> <v:f eqn="sum @10 21600 0" /> </v:formulas> <v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect" /> <o:lock v:ext="edit" aspectratio="t" /> </v:shapetype><v:shape id="图片_x0020_1" o:spid="_x0000_i1027" type="#_x0000_t75" style='width:304.5pt;height:279.75pt;visibility:visible;mso-wrap-style:square'> <v:imagedata src="file:///C:\Users\itway\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png" o:title="" /> </v:shape><![endif]--><!--[if !vml]--><!--[endif]-->
<!--[if gte vml 1]><v:shape id="图片_x0020_3" o:spid="_x0000_i1026" type="#_x0000_t75" style='width:279pt;height:146.25pt;visibility:visible; mso-wrap-style:square'> <v:imagedata src="file:///C:\Users\itway\AppData\Local\Temp\msohtmlclip1\01\clip_image002.png" o:title="" /> </v:shape><![endif]--><!--[if !vml]--><!--[endif]-->
<!--[if gte vml 1]><v:shape id="图片_x0020_4" o:spid="_x0000_i1025" type="#_x0000_t75" style='width:404.25pt;height:132pt;visibility:visible; mso-wrap-style:square'> <v:imagedata src="file:///C:\Users\itway\AppData\Local\Temp\msohtmlclip1\01\clip_image003.png" o:title="" /> </v:shape><![endif]--><!--[if !vml]--><!--[endif]-->
<!--[if !supportLists]-->1. <!--[endif]-->下载
wget http://download.oracle.com/otn-pub/java/jdk/6u31-b04/jdk-6u31-linux-i586.bin
<!--[if !supportLists]-->2. <!--[endif]-->把jdk移到/usr/local/目录下
naxsu@ubuntu:~$ sudo mv jdk-6u31-linux-i586.bin /usr/local/
[sudo] password for naxsu:
<!--[if !supportLists]-->3. <!--[endif]-->安装
naxsu@ubuntu:/usr/local$ ./jdk-6u31-linux-i586.bin
-bash: ./jdk-6u31-linux-i586.bin: Permission denied
提示没权限
方法一:在前面加上sudo sh
root@ubuntu:/usr/java#sudo sh ./ jdk-6u31-linux-i586.bin
方法二:加权限
root@ubuntu:/usr/java# sudo chmod u+x jdk-6u31-linux-i586.bin
root@ubuntu:/usr/java# ./ jdk-6u31-linux-i586.bin
naxsu@ubuntu:/usr/local$ sudo chmod u+x jdk-6u31-linux-i586.bin
naxsu@ubuntu:/usr/local$ sudo ./jdk-6u31-linux-i586.bin
出问题了,如下:
naxsu@ubuntu:/usr/local$ sudo ./jdk-6u31-linux-i586.bin ./jdk-6u31-linux-i586.bin: 1: ./jdk-6u31-linux-i586.bin: cannot open html: No such file ./jdk-6u31-linux-i586.bin: 2: ./jdk-6u31-linux-i586.bin: cannot open head: No such file ./jdk-6u31-linux-i586.bin: 3: ./jdk-6u31-linux-i586.bin: cannot open title: No such file ./jdk-6u31-linux-i586.bin: 3: ./jdk-6u31-linux-i586.bin: Request: not found ./jdk-6u31-linux-i586.bin: 4: ./jdk-6u31-linux-i586.bin: cannot open META: No such file ./jdk-6u31-linux-i586.bin: 5: ./jdk-6u31-linux-i586.bin: cannot open link: No such file ./jdk-6u31-linux-i586.bin: 6: ./jdk-6u31-linux-i586.bin: cannot open link: No such file : not foundlinux-i586.bin: 7: ./jdk-6u31-linux-i586.bin: ./jdk-6u31-linux-i586.bin: 8: ./jdk-6u31-linux-i586.bin: cannot open body: No such file ./jdk-6u31-linux-i586.bin: 9: ./jdk-6u31-linux-i586.bin: cannot open div: No such file ./jdk-6u31-linux-i586.bin: 10: ./jdk-6u31-linux-i586.bin: cannot open table: No such file ./jdk-6u31-linux-i586.bin: 11: ./jdk-6u31-linux-i586.bin: cannot open tr: No such file ./jdk-6u31-linux-i586.bin: 12: ./jdk-6u31-linux-i586.bin: Syntax error: redirection unexpected |
用vi编辑器打开,竟是一个网页。
只能到官网下载JDK了,下节续