Durant35 / Office-System-Pearls

install notes for Ubuntu, start from 14.04
0 stars 0 forks source link

Ubuntu18.04 Setup #3

Open Durant35 opened 4 years ago

Durant35 commented 4 years ago
$ cat /etc/os-release 
NAME="Ubuntu"
VERSION="18.04.4 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.4 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
garychan@ThinkPad-E470:~$ uname -a
Linux ThinkPad-E470 5.3.0-28-generic #30~18.04.1-Ubuntu SMP Fri Jan 17 06:14:09 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Durant35 commented 4 years ago

Why always resee ~/.snap folder?

https://askubuntu.com/questions/1079203/why-is-gnome-system-monitor-on-18-04-installed-as-a-snap-by-default

$ sudo snap remove gnome-system-monitor
$ sudo apt install gnome-system-monitor

https://askubuntu.com/questions/1039411/how-can-i-replace-snap-application-such-as-gnome-calculator-with-a-deb

# remove all snap packages except core and core18
$ sudo snap remove `sudo snap list | cut -d " " -f 1 | tail -n 2 | grep -v 'core' | tr '\n' ' '`
# Then install their .deb counterparts with:
$ sudo apt install gnome-calculator gnome-characters gnome-logs gnome-system-monitor
#  uninstall the whole Snapd ecosystem from your computer with:
$ sudo apt purge snapd squashfs-tools gnome-software-plugin-snap
Durant35 commented 4 years ago

Topicons plus支持Wine等图标显示

# 安装tweak-tool,用于定制化桌面
$ sudo apt install gnome-tweak-tool
$ sudo apt install gnome-shell-extension-top-icons-plus
# 重启后,打开tweak-tool->Extensions勾选Topicons plus,并可配置Top Center/Right...
Durant35 commented 4 years ago

合上盖子休眠,Wifi会自动断,导致VPN老要重连

直接修改“合盖子不休眠”行为

https://www.okcode.net/article/27012

$ sudo vim /etc/systemd/logind.conf
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See logind.conf(5) for details.

[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
# default: suspend
HandleLidSwitch=ignore
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192
#UserTasksMax=33%

## !!!! Recommend you to reboot then!!!

根源应该就是Ubuntu18.04合盖子的行为变了

https://unix.stackexchange.com/questions/248033/configure-linux-laptop-to-switch-off-screen-but-otherwise-remain-running-when-li

$ sudo apt-get install vim
$ sudo vim /etc/systemd/logind.conf
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See logind.conf(5) for details.

[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
##
# The full set of possible values for HandleLidSwitch and HandleLidSwitchExternalPower is:
#  ignore, poweroff, reboot, halt, kexec, suspend, hibernate, hybrid-sleep, suspend-then-hibernate, and lock
# default: suspend
##
HandleLidSwitch=lock
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192
#UserTasksMax=33%

## !!!! Recommend you to reboot then!!!

[参考] 可以修一下Nvidia阉割版Ubuntu

https://www.malachisoord.com/2017/02/18/ubuntu-fix-wifi-after-suspend/

Durant35 commented 4 years ago

E470 无线网卡驱动异常,上不网

VPN installed first, then faster apt-get update

The following packages have unmet dependencies: dkms : Depends: dpkg-dev but it is not going to be installed E: Unable to correct problems, you have held broken packages.

需要按照以下方式解决

$ sudo apt-get remove libdpkg-perl

Recommend to install following one

$ sudo apt-get install build-essential

Durant35 commented 4 years ago

Build Wine-3.0.2 from soure

https://blog.csdn.net/qq_26056015/article/details/83061737

$ sudo apt install flex bison libx11-dev
$ ./configure
$ make
Durant35 commented 4 years ago

Video Player

Durant35 commented 3 years ago

XXX-X AAC decoder, H.264 (Main Profile) decoder are required to play the file, but are not installed.

image

https://blog.csdn.net/gisbbs/article/details/104474449

sudo apt install ubuntu-restricted-extras
Durant35 commented 2 years ago

Gnome Workspace多窗口

Durant35 commented 2 months ago

搜狗输入法

https://shurufa.sogou.com/linux/guide

如遇到安装语言报错,建议重新安装dbus修复

sudo apt-get install --reinstall dbus

Ubuntu搜狗输入法安装指南和无法输入中文问题解决方案

sudo apt install libgsettings-qt1
Durant35 commented 2 months ago

Terminal instead of Terminator

sudo update-alternatives --config x-terminal-emulator