ubuntu default,ubuntu最好用最普及的版本

ubuntu默认启动字符界面怎么启动图形界面

ubuntu默认启动字符界面怎么启动图形界面?

答:ubuntu默认启动字符界面启动图形界面的方法,1.开机默认进入命令行模式#输入命令: sudo systemctlset-defaultmulti-user.target#重启: reboot要进入图形界面,只需要输入命令startx从图形界面切换回命令行:ctrl+alt+F7

2.开机默认进入图形用户界面#输入命令: sudo systemctlset-defaultgraphical.target#重启: reboot要进入命令行模式:ctrl+alt+F2从命令行切换到图形界面:ctrl+alt+F7。

ubuntu切换到指定内核版本

在安装英伟达显卡驱动时,遇到了无法安装的错误,检查日志后发现是显卡驱动与Linux内核不匹配所致。Ubuntu系统默认每隔一段时间更新一次内核版本,为了解决问题,需要将内核切换到之前的版本。下面是如何操作的步骤。

首先,查看所有内核版本,执行命令`dpkg--list| grep linux-image`。输出结果中包括了多个内核版本,例如:`linux-image-5.19.0-32-generic`、`linux-image-6.2.0-39-generic`、`linux-image-6.5.0-14-generic`等。

接着,确认英伟达驱动版本与Linux内核版本是否一致。运行`uname-r`查看当前内核版本,假设结果为`6.5.0-14-generic`,此时需要让驱动与之匹配。

修改GRUB文件以设置默认启动内核。使用命令`vim/etc/default/grub`打开文件,将`GRUB_DEFAULT=0`改为`GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 6.2.0-39-generic"`,确保与驱动版本一致的内核作为默认启动选项。

更新GRUB配置并重启系统,执行命令`sudo update-grub`后,再通过`sudo reboot`命令重启电脑,完成内核版本切换。

通过上述步骤,成功将Ubuntu系统内核版本切换至之前老版本,解决了英伟达显卡驱动安装问题。此方法适用于遇到内核版本与驱动冲突时,需调整内核版本以兼容的情况。

如何设置ubuntu系统的串口输出

1.平台:intel X86 baytrail平台

2.由于开发模式需要查看内核串口输出,所以需要将linux系统从开机到系统引导起来的部分都定向到串口,那么如何设置呢?

安装ubuntu系统后(这里装的是14.10版本的ubuntu系统)

(1)首先设置grub参数:

修改/etc/default/grub文件:

修改如下内容为:

GRUB_CMDLINE_LINUX_DEFAULT="text console=tty0 console=ttyS0,115200n8"

然后增加一行:

GRUB_SERIAL_COMMAND="serial--unit=0--speed=115200--word=8--parity=no--stop=1"

然后执行update-grub,使配置生效

(2)然后在/etc/init/目录中创建ttyS0.conf,内容如下:

#ttyS0- getty

start on rc RUNLEVEL=[2345]

stop on runlevel [!2345]

respawn

exec/sbin/getty-L 115200 ttyS0 vt100

遗留问题:

系统起来后,在串口部分只显示到:

* Starting regular background program processing daemon[ OK ]

* Starting Signal sysvinit that alsa-utils tasks are complete[ OK ]

* Starting CPU interrupts balancing daemon[ OK ]

* Stopping save kernel messages[ OK ]

* Stopping Restore Sound Card State[ OK ]

* Starting cups-browsed- Bonjour remote printer browsing daemon[ OK ]

* Starting automatic crash report generation[ OK ]

* Starting configure virtual network devices[ OK ]

[ OK ]toring resolver state...

[ OK ]rting uuid generator uuidd

* speech-dispatcher disabled; edit/etc/default/speech-dispatcher

saned disabled; edit/etc/default/saned

* Stopping System V runlevel compatibility[ OK ]

* Stopping cold plug devices[ OK ]

* Stopping log initial device creation[ OK ]

* Starting save udev log and update rules[ OK ]

[ 150.593006] systemd-logind[947]: Failed to start unit user@1000.service: Unknown unit: user@1000.service

[ 150.602779] systemd-logind[947]: Failed to start user service: Unknown unit: user@1000.service

然后在VGA上有显示登录,但是串口上没有显示

这里需要进一步研究

不过总算将这一步做出来了,后面的问题就是开机脚本配置的问题了

阅读剩余
THE END