Ubuntu常用问题

Dell笔记本安装Ubuntu风扇不转

  • 安装i8kutils
sudo apt install i8kutils
  • 修改配置文件 i8kmon.conf sudo vi /etc/i8kmon.conf
# Sample i8kmon configuration file (/etc/i8kmon, ~/.i8kmon).

# Kernel I8K status file
set config(proc_i8k)   /proc/i8k

# Kernel APM status file
set config(proc_apm)   /proc/apm

# Kernel ACPI status file
set config(proc_acpi)   /proc/acpi/ac_adapter/0/status

# External program to control the fans
set config(i8kfan)   /usr/bin/i8kfan

# Applet geometry, override with --geometry option
set config(geometry)   {}

# Run as daemon, override with --daemon option
set config(daemon)   1

# Automatic fan control, override with --auto option
set config(auto)   1

# Report status on stdout, override with --verbose option
set config(verbose)   0

# Status check timeout (seconds), override with --timeout option
set config(timeout)   5

# Temperature display unit (C/F), override with --unit option
set config(unit)   C

# Temperature threshold at which the temperature is displayed in red
set config(t_high)   80

# Minimum expected fan speed
set config(min_speed)   1800

# Temperature thresholds: {fan_speeds low_ac high_ac low_batt high_batt}
# These were tested on the I8000. If you have a different Dell laptop model
# you should check the BIOS temperature monitoring and set the appropriate
# thresholds here. In doubt start with low values and gradually rise them
# until the fans are not always on when the cpu is idle.
set config(0)   {{- 0}  -1  52  -1  52}
set config(1)   {{- 1}  44  60  44  60}
set config(2)   {{- 2}  60  80  60  80}
set config(3)   {{- 2}  70 128  75 128}

# end of file
  • 重新启动Linux系统

更换Ubuntu 18.04源为阿里云

  • 备份原有文件
cd /etc/apt/
sudo cp sources.list sources.list.bak
  • 替换sources.list中 “cn.archive.ubuntu.com” 为 “mirrors.aliyun.com”
sudo sed -i s/cn.archive.ubuntu.com/mirrors.aliyun.com/g sources.list

Ubuntu ibus输入法无法选择候选词

  • 删除ibus pinyin的配置文件
cd ~/.cache/ibus
rm -rf libpinyin pinyin

Ubuntu 18.04系统QtCreate无法输入中文

  • 编辑 ~/.profile,添加如下代码
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus

Ubuntu中使用QtCreate编译报错“cannot find -lGL”解决方法

  • 安装 libgl1-mesa-dev库
 sudo apt install libgl1-mesa-dev

Ubuntu安装firefox的flash

sudo cp libflashplayer.so /usr/lib/firefox/browser/plugins
sudo cp -r usr/* /usr

Ubuntu安装视频库

sudo apt install ubuntu-restricted-extras

Ubuntu更新文件名为英文

  export LANG=en_US
  xdg-user-dirs-gtk-update

生成新的SSH key

ssh-keygen -t rsa -C "your_email@example.com"
  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值