ubuntu 10.4?下载Ubuntu

大家好,今天给各位分享ubuntu 10.4的一些知识,其中也会对下载Ubuntu进行解释,文章篇幅可能偏长,如果能碰巧解决你现在面临的问题,别忘了关注本站,现在就马上开始吧!

如何使用Ubuntu U盘启动盘修复更新后无法启动系统的问题

首先,当然是准备一个1G以上容量的U盘,用来制作可启动U盘;

其次,到官网上下载Ubuntu desktop镜像文件。Ubuntu Desktop镜像一般700多兆,从而可以把它写到1G大的U盘上,可以从Ubuntu官网下载10.4的镜像文件。

用UltraISO将其写入U盘,制作成可启动的U盘。自作完成后重启电脑,选择从U盘启动。

由于你写入U盘的实际上是个像光盘一样的Ubuntu安装盘,所以进入U盘Ubuntu后,你可以选择不安装而直接试用体验Ubuntu,这也是本方法的关键所在,利用LiveCD,我们可以暂时进入系统,借以修复原有系统!

进入Ubuntu系统后,启动命令终端,输入如下指令,在线安装lilo和mbr:

ubuntu@ubuntu:~$ sudo apt-get install lilo

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following extra packages will be installed:

mbr

Suggested packages:

lilo-doc

The following NEW packages will be installed:

lilo mbr

0 upgraded, 2 newly installed, 0 to remove and 408 not upgraded.

Need to get 413kB of archives.

After this operation, 1,315kB of additional disk space will be used.

Do you want to continue [Y/n]? y

Fetched 413kB in 3s(124kB/s)

Preconfiguring packages...

Selecting previously deselected package mbr.

(Reading database... 129801 files and directories currently installed.)

Unpacking mbr(from.../archives/mbr_1.1.10-2_i386.deb)...

Selecting previously deselected package lilo.

Unpacking lilo(from.../lilo_1%3a22.8-8ubuntu1_i386.deb)...

Processing triggers for man-db...

Setting up mbr(1.1.10-2)...

Setting up lilo(1:22.8-8ubuntu1)...

WARNING: kernel& initrd not found in the root directory(/vmlinuz&/initrd.img)

WARNING: Do NOT reboot or LILO may fail to boot if your kernel+initrd is large.

WARNING: Please read/usr/share/doc/lilo/README.Debian

ubuntu@ubuntu:~$

安装过程中,会得到如下lilo的配置提示,按OK就行了:

Package configuration

┌───────────────────────────┤ Configuring lilo├────────────────────────────┐

││

│ LILO configuration│

││

│ It seems to be your first LILO installation. It is absolutely necessary│

│ to run liloconfig(8) when you complete this process and execute│

│/sbin/lilo after this.│

││

│ LILO won't work if you don't do this.│

││

│<Ok>│

││

└───────────────────────────────────────────────────────────────────────────┘

然后使用lilo修复系统:

ubuntu@ubuntu:~$ sudo lilo-M/dev/sda mbr

Backup copy of/dev/sda in/boot/boot.0800

The Master Boot Record of/dev/sda has been updated.

ubuntu@ubuntu:~$

修复完成,重启系统:

ubuntu@ubuntu:~$ sudo-s-H

root@ubuntu:/home/ubuntu# reboot

OK了,相信重启后选择进入系统的画面就出现了,是不是很简单?

Ubuntu 10.4 sftp可以root登陆但是ssh不可以

在linux中出于安全的需要,我们会禁止某些用户SSH登陆系统进行操作。我这里以centos操作系统为例记录下如何进行处理。

1、打开sshd的配置文件

vi/etc/ssh/sshd_config2、修改该配置文件,增加或修改如下行

#禁止用户user1登陆,多个空格分隔DenyUsers user1#禁止用户组group1的所有用户登录,多个空格分隔DenyGroups group13、保存配置后,重启sshd

/etc/rc.d/init.d/sshd restart完成上面的配置后,就可以禁止用户或用户组的用户进行登录了,第2步中的两个是可以只填一个的,可以根据需要进行调整。配置完毕后,在其他linux机器上使用如下命令进行测试:

#使用ssh测试[root@ServerA~]# ssh user1@192.168.1.168user1@192.168.1.168's password: Permission denied, please try again.#使用sftp测试[root@ServerA~]# sftp user1@192.168.1.168user1@192.168.1.168's password: Permission denied, please try again.可以看到,确实被系统禁止了,从而也就完成了我们想要的控制了。但这个有一个缺陷是,无法禁止只允许sftp而不允许ssh,如果要这样做,估计只能够单独搭建ftp服务器,比如vsftp,后续再考虑这个。

如何用U盘启动盘来修复Ubuntu系统

首先,当然是准备一个1G以上容量的U盘,用来制作可启动U盘;

其次,到官网上下载Ubuntu desktop镜像文件。Ubuntu Desktop镜像一般700多兆,从而可以把它写到1G大的U盘上,可以从Ubuntu官网下载10.4的镜像文件。

用UltraISO将其写入U盘,制作成可启动的U盘。自作完成后重启电脑,选择从U盘启动。

由于你写入U盘的实际上是个像光盘一样的Ubuntu安装盘,所以进入U盘Ubuntu后,你可以选择不安装而直接试用体验Ubuntu,这也是本方法的关键所在,利用LiveCD,我们可以暂时进入系统,借以修复原有系统!

进入Ubuntu系统后,启动命令终端,输入如下指令,在线安装lilo和mbr:

ubuntu@ubuntu:~$ sudo apt-get install lilo

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following extra packages will be installed:

mbr

Suggested packages:

lilo-doc

The following NEW packages will be installed:

lilo mbr

0 upgraded, 2 newly installed, 0 to remove and 408 not upgraded.

Need to get 413kB of archives.

After this operation, 1,315kB of additional disk space will be used.

Do you want to continue [Y/n]? y

Fetched 413kB in 3s(124kB/s)

Preconfiguring packages...

Selecting previously deselected package mbr.

(Reading database... 129801 files and directories currently installed.)

Unpacking mbr(from.../archives/mbr_1.1.10-2_i386.deb)...

Selecting previously deselected package lilo.

Unpacking lilo(from.../lilo_1%3a22.8-8ubuntu1_i386.deb)...

Processing triggers for man-db...

Setting up mbr(1.1.10-2)...

Setting up lilo(1:22.8-8ubuntu1)...

WARNING: kernel& initrd not found in the root directory(/vmlinuz&/initrd.img)

WARNING: Do NOT reboot or LILO may fail to boot if your kernel+initrd is large.

WARNING: Please read/usr/share/doc/lilo/README.Debian

ubuntu@ubuntu:~$

安装过程中,会得到如下lilo的配置提示,按OK就行了:

Package configuration

┌───────────────────────────┤ Configuring lilo├────────────────────────────┐

││

│ LILO configuration│

││

│ It seems to be your first LILO installation. It is absolutely necessary│

│ to run liloconfig(8) when you complete this process and execute│

│/sbin/lilo after this.│

││

│ LILO won't work if you don't do this.│

││

│<Ok>│

││

└───────────────────────────────────────────────────────────────────────────┘

然后使用lilo修复系统:

ubuntu@ubuntu:~$ sudo lilo-M/dev/sda mbr

Backup copy of/dev/sda in/boot/boot.0800

The Master Boot Record of/dev/sda has been updated.

ubuntu@ubuntu:~$

修复完成,重启系统:

ubuntu@ubuntu:~$ sudo-s-H

root@ubuntu:/home/ubuntu# reboot

OK了,相信重启后选择进入系统的画面就出现了,是不是很简单?

阅读剩余
THE END