有时候用virt-manager远程创建虚拟机的时候,安装不方便,没法指定镜像。
可以用网络安装:
安装地址:http://archive.ubuntu.com/ubuntu/dists/precise/main/installer-amd64/
有时候用virt-manager远程创建虚拟机的时候,安装不方便,没法指定镜像。
可以用网络安装:
安装地址:http://archive.ubuntu.com/ubuntu/dists/precise/main/installer-amd64/
转载于:https://my.oschina.net/renwofei423/blog/177104
1. 安装CSWpkggeg (Install CSWpkgget)
以root权限运行命令:pkgadd -d http://www.blastwave.org/pkg_get.pkg
Run following command as root: pkgadd -d http://www.blastwave.org/pkg_get.pkg
该命令会安装CSWpkgget,这是从BlastWave(最大的Solaris自由软件下载网站之一)上下载并安装软件所需要的包。
This command will install the CSWpkgget package, which is required to automatically download and install packages from BlastWave (one of biggest free software service for Solaris).
当出现提示询问是否继续处理时,输入all,并按回车进行安装。
Type 'all' and enter when asking whether to process.
当询问是否创建目录和安装包时,输入y,按回车继续。
Type 'y' and enter when asking whether to create a directory and install the package.
当安装完成后,会提示:Installation of <CSWpkgget> was successful.
It would print the following words when installation completes: Installation of <CSWpkgget> was successful.
2. 配置pkg-get (Configure pkg-get)
编辑配置文件/opt/csw/etc/pkg-get.conf,将其预设站点url=http://ibiblio.org/pub/packages/solaris/csw/unstable改为和你位置最近的镜像站点。镜像可以在www.blastwave.org/mirrors.php处查询。
Edit the configuration file /opt/csw/etc/pkg-get.conf, change its default site url=http://ibiblio.org/pub/packages/solaris/csw/unstable to the one nearest. The mirrors can be found at www.blastwave.org/mirrors.php.
将pkg-get所在的路径/opt/csw/bin/添加到PATH变量中去,重新登录,并使用echo $PATH命令确认添加成功。
Add the direcroty "/opt/csw/bin/" of command pkg-get to the PATH env variable, relogin, and use the "echo $PATH" to confirm the change.
3. 使用pkg-get命令 (use the pkg-get command)
3.1 安装 (install)
pkg-get install <package name>
3.2 升级 (upgrade)
pkg-get upgrage <package name>
3.3 删除 (remove)
pkg-get remove <package name>
3.4 列出所有已安装软件 (list all installed packages)
pkg-get list
3.5 列出所有可安装软件 (list all available packages)
pkg-get available
问题:
windosw 环境安装了perl (strawberry), 但是该服务器无法接入互联网,如何安装新的perl的模块?
解决方法及步骤:
1. 在linux机器上连入互联网安装minicpan, (之所以称为mini,意思是只有最新的包)
方法参考 http://search.cpan.org/~rjbs/CPAN-Mini-1.111016/bin/minicpan
我的 .minicpanrc内容如下:
local: /home/minicpan/
remote: http://mirrors.163.com/cpan/
exact_mirror: 1配置好以后运行 minicpan
2. 把 /home/minicpan/ 目录下的所有内容拷贝到windows服务器上,比如拷贝到c:\minicpan
3. 在windows 服务器命令行运行命令:
cpan
o conf urllist unshift file:///c:/minicpan/ o conf commitreload index quit
环境准备完毕。
比如要安装Net::SSH2::Cisco模块
在windows 服务器命令行运行命令:
cpan
install Net::SSH2::Cisco
即可
1、可以到网上下载安装包,自行百度
2、我这边直接用镜像文件安装telnet, rpm安装telnet。
1 mkdir /mnt/cdrom #2如果报mount: block device /dev/sr0 is write-protected, mounting read-only #请先执行。虚拟机挂着光驱光驱时提示只读,用以下命令可解决该报错, #mount -o remount,rw /dev/cdrom /mnt/cdrom 2 mount /dev/cdrom /mnt/cdrom 3 cd /mnt/cdrom 4 find -name telnet* 这个可以查到telnet的包名 找到包后,最后安装就可以了 rpm -ivh ./Packages/telnet-0.17-48.el6.x86_64.rpm 测试:telnet localhost 端口