分类 Linux 下的文章

debian/ubuntu 服务器网络引导重装系统

 

cd /boot

安装debian下载文件

wget http://ftp.us.debian.org/debian/dists/squeeze/main/installer-amd64/current/images/netboot/debian-installer/amd64/initrd.gz

wget http://ftp.us.debian.org/debian/dists/squeeze/main/installer-amd64/current/images/netboot/debian-installer/amd64/linux

 

安装ubuntu下载文件

wget http://archive.ubuntu.com/ubuntu/dists/hardy/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64/initrd.gz

wget http://archive.ubuntu.com/ubuntu/dists/hardy/main/installer-amd64/current/images/netboot/ubuntu-installer/amd64/linux

nano /boot/grub/grub.cfg(或者nano /boot/grub/menu.lst)
menuentry 'Install OS' {
insmod part_msdos
set root='(hd0,msdos1)'
linux /boot/linux
initrd /boot/initrd.gz
}

修改menu.lst大致也差不多

nano /boot/grub/menu.lst

在文件后面添加

title Install OS

kernel (hd0,0)/linux

initrd (hd0,0)/initrd.gz

然后重启
选择Install OS,进入安装界面,正常安装系统

 

Can't locate IO/Socket/SSL.pm in @INC

Can't locate IO/Socket/SSL.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at ./slowloris.pl line 7.

 

 

debian/ubuntu 

aptitude -V -R install libio-socket-ssl-perl libnet-ssleay-perl

centos

perl Can't locate URI/URL.pm in @INC
yum -y install perl-libwww-perl
Can't locate IO/Socket/SSL.pm
yum -y install perl-IO-Socket-SSL
                

perl: warning: Setting locale failed.

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "zh_CN.utf8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

 

nano /root/.bashrc

添加内容

export LC_ALL=C

保存

执行 source /root/.bashrc

 

ubuntu 10.04/11.04/11.10 桌面和服务器升级到Ubuntu 12.04 LTS

ubuntu 桌面版(Desktop Upgrade)升级

按Alt + F2并键入命令“ update-manager -d ”

然后单击“升级”

首先检查更新,然后安装,最后单击“升级”,并按照屏幕上的说明。

ubuntu服务器版升级(Server Upgrade)

 

安装更新核心包:

sudo apt-get install update-manager-core

编辑 /etc/update-manager/release-upgrades

nano /etc/update-manager/release-upgrades

Prompt=normal;

启动升级工具与命令

sudo do-release-upgrade -d

并按照屏幕上的说明操作!

 

升级有风险,须谨慎!

 

Debian/Ubuntu rhythmbox播放器乱码解决

nano /usr/share/applications/rhythmbox.desktop

查找 Exec= rhythmbox %U

将其修改为 Exec=env GST_ID3_TAG_ENCODING=GBK:GB18030 rhythmbox %U

保存。

清空媒体库,重启rhythmbox,重新导入文件.