How to boot up Ubuntu in text terminal mode?

Ubuntu9.10启动至文本模式
本文介绍如何将Ubuntu9.10的启动模式更改为文本模式。通过编辑'/boot/grub/grub.cfg'文件,具体操作包括创建文本模式的启动项,并设置为默认启动模式。

Ubuntu9.10 boot by 'grub', to change the boot mode to text-mode, we just need to change boot settings in '/boot/grub/grub.cfg'.

 

a. #vim /boot/grub/grub.cfg, you will find section like:

 

menuentry "Ubuntu, Linux 2.6.31-14-generic" {

        recordfail=1

        if [ -n ${have_grubenv} ]; then save_env recordfail; fi

        set quiet=1

        insmod ext2

        set root=(hd0,1)

        search --no-floppy --fs-uuid --set 99c002e1-ea23-4eae-8b0e-5489df9e4223

        linux   /boot/vmlinuz-2.6.31-14-generic root=UUID=99c002e1-ea23-4eae-8b0e-5489df9e4223 ro   quiet splash

        initrd  /boot/initrd.img-2.6.31-14-generic

}

(*note:this is the default mode with runlevel = 2)

 

b. up-copy this part, and change it as below illustration:

 

menuentry "Ubuntu, Linux 2.6.31-14-text" {

        recordfail=1

        if [ -n ${have_grubenv} ]; then save_env recordfail; fi

#       set quiet=1

        insmod ext2

        set root=(hd0,1)

        search --no-floppy --fs-uuid --set 99c002e1-ea23-4eae-8b0e-5489df9e4223

        linux   /boot/vmlinuz-2.6.31-14-generic root=UUID=99c002e1-ea23-4eae-8b0e-5489df9e4223 ro   text

        initrd  /boot/initrd.img-2.6.31-14-generic

}

(*note:since this part comes first in grub.cfg, so it become default boot mode with runlevel = 3)

 

c. #reboot

I am unable to try/install Ubuntu 22.04 using USB. I use the guideline provided by Ubuntu official website, the USB installer is created using balenaEtcher. I try to boot using the way provided by Lenovo official website (restart and press F12 while having USB plugged in). My laptop is Lenovo 310-14IKB Laptop (ideapad) - Type 80TU, Windows 10. I tried turning off fast startup/ changing boot mode to legacy/changing boot priority from UEFI to legacy/disabling safe booting mode, but none of them works. lenovousb-installation Share Improve this question Follow edited Oct 17, 2022 at 18:03 Pablo Bianchi's user avatar Pablo Bianchi 17.6k55 gold badges9191 silver badges129129 bronze badges asked Apr 30, 2022 at 9:08 Keus's user avatar Keus 9111 gold badge11 silver badge55 bronze badges 2 Please edit your original question to tell us more: Did you check the sha256sum of the iso file (that it was downloaded correctly)? What tool did you use to create the USB installer drive? How did you try to boot into the USB drive? - I see 'noveau' in the output list. It indicates that there is an nvidia graphics chip/card, and I suggest that you try booting with the boot option nomodeset. There is detailed help about it at this link. If that works, you can install a proprietary nvidia graphics driver later on. – sudodus CommentedApr 30, 2022 at 9:21 2 Your edits to the original question indicate that you are doing things correctly. You might check the sha256sum too (check versus the published value), but I am more convinced now, that you have a graphics problem, so please try booting with nomodeset (or simply select 'Ubuntu (safe graphics)' in the grub menu. – sudodus CommentedApr 30, 2022 at 10:03 If still no luck, we need new ideas to test, for example, have you tested with the previous but still supported LTS version Ubuntu 20.04.4? – sudodus CommentedApr 30, 2022 at 10:15 Thank you everyone!!!!!!! I made it! – Keus CommentedApr 30, 2022 at 12:06 Congratulations, and welcome back, if you have other questions in the future :-) – sudodus CommentedApr 30, 2022 at 12:26 Show 1 more comment 4 Answers Sorted by: Highest score (default) 4 Hope my little experience can help anyone using Lenovo laptop in future. I change to using Rufus to create the USB using the GPT option. I disabled the fast startup option but didn't disable the safe booting option. Then I boot the laptop using NOVO button (option 2 in Lenovo official guidelines) instead of using legacy bootmode. And lastly add in the nomodeset option Share Improve this answer Follow answered Apr 30, 2022 at 12:16 Keus's user avatar Keus 9111 gold badge11 silver badge55 bronze badges I have Dell Latitude E6530. I followed using Rufus v 3.20, GPT partition scheme, UEFI (non CSM) target system. Then, boot in UEFI mode (safe graphics) option. And finally! No black screen and I can progress the Ubuntu 22.04 installation. – Joshua T CommentedOct 5, 2022 at 13:32 Add a comment 2 dont use Try install bla bla use Safe GUI bla bla Share Improve this answer Follow answered Aug 17, 2023 at 5:46 Jonry Simbolon's user avatar Jonry Simbolon 2111 bronze badge Add a comment 2 My computer use RTX3090 and RTX2080, show the message the same. I selected Safe Graphic, it worked fine. Share Improve this answer Follow answered Jul 20, 2024 at 12:42 John's user avatar John 2122 bronze badges That was already said in the answers. You have added noting new. Sorry not an answer. – David DE CommentedJul 20, 2024 at 13:44 Add a comment 0 I was firing the USB from terminal command line and I was getting this error. When I switched to BalenaEtcher, in addition to change the USB port and sticker. it worked like a charm!详细解释一下
10-11
<think>我们参考了引用[1]中关于Ubuntu软件包管理的命令,特别是使用dpkg安装本地.deb文件的方法。但7-Zip在Ubuntu官方源中通常以p7zip或p7zip-full的名称提供,因此我们可以直接使用apt命令安装,无需手动下载.deb文件。 用户的问题是如何在Ubuntu Linux上安装7-Zip。7-Zip在Ubuntu的软件仓库中通常被称为p7zip-full(完整版)或p7zip(简化版)。我们推荐安装完整版以获取更多功能。 安装步骤如下: 1. 打开终端(Terminal)。 2. 更新软件包列表(可选,但推荐): sudo apt update 3. 安装p7zip-full: sudo apt install p7zip-full 安装完成后,可以使用以下命令验证安装: 7z --help 如果用户需要从源代码编译安装,或者需要最新版本,也可以考虑从7-Zip官网下载源码编译,但通常推荐使用apt安装,因为更简单且易于管理。 注意:引用[1]中提到了使用dpkg安装本地.deb文件的方法,但在这里我们不需要,因为7-Zip在官方仓库中已有。如果用户下载了.deb文件,也可以使用dpkg -i来安装,但需要自行解决依赖问题。 因此,我们给出两种方法: 方法一(推荐):使用apt安装 方法二:使用下载的.deb文件安装(如果用户有特定版本需求) 但根据问题,用户可能只需要基本安装,所以重点在方法一。 相关问题: 1. 如何用7-Zip在Ubuntu中解压文件? 2. 7-Zip支持哪些压缩格式? 3. 如何在Ubuntu中卸载7-Zip?</think>### 如何在 Ubuntu Linux 安装 7-Zip 7-Zip 在 Ubuntu 中可通过 `p7zip-full` 软件包获取,安装步骤如下: 1. **更新软件包列表**(推荐先同步仓库信息) ```bash sudo apt update ``` 2. **安装 7-Zip 完整版** ```bash sudo apt install p7zip-full ``` *包含 7z、7za 命令及 GUI 支持* 3. **验证安装** ```bash 7z --help # 查看帮助信息 ``` --- ### 基础使用示例 - **压缩文件/文件夹** ```bash 7z a archive.7z /path/to/file_or_folder ``` - **解压文件** ```bash 7z x archive.7z -o/path/to/output ``` - **列出压缩包内容** ```bash 7z l archive.7z ``` > ⚠️ 若需卸载:`sudo apt remove p7zip-full` --- ### 备选安装方式 - **通过 Snap 安装**(适用于隔离环境) ```bash sudo snap install 7zip ``` - **源码编译安装**(官网下载) 访问 [7-Zip 官网](https://www.7-zip.org/download.html) 获取源码包 ---
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值