Ubuntu常用问题

文章目录

  • Dell笔记本安装Ubuntu风扇不转
  • 更换Ubuntu 18.04源为阿里云
  • Ubuntu ibus输入法无法选择候选词
  • Ubuntu 18.04系统QtCreate无法输入中文
  • Ubuntu中使用QtCreate编译报错“cannot find -lGL”解决方法
  • Ubuntu安装firefox的flash
  • Ubuntu安装视频库
  • Ubuntu更新文件名为英文
  • 生成新的SSH key

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 "[email protected]"

你可能感兴趣的:(Ubuntu)