1. Install Google Chrome
- Download Google Chrome software
Open a terminal and use wget to download the Google Chrome .deb package:
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- Install Google Chrome
sudo apt install ./google-chrome-stable_current_amd64.deb
#或
sudo dpkg -i ./google-chrome-stable_current_amd64.deb
- Upgrade Google Chrome
During the installation process, the official Google software repositories are added to your system. The file contents can be verified using the cat command:
cat /etc/apt/sources.list.d/google-chrome.list
The output is as follows:
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
When a new version is released, your Google Chrome can be automatically upgraded.
2. Install screenshot software shutter on Ubuntu
- Install shutter
sudo add-apt-repository ppa:linuxuprising/shutter
sudo apt install shutter
After running the above command, shutter will be installed.
- Uninstall the software.
If you want to uninstall, run the following command to uninstall the screenshot software.
sudo apt remove --auto-remove shutter
- If you want to modify the shortcut keys for screenshots, please open the keyboard shortcuts to configure
ps: flameshot is also a good screenshot software on Ubuntu.
3. Synergy realizes keyboard and mouse sharing between Windows and Ubuntu
Installation preparation
sudo apt-get install software-properties-common
Add qt4 source and set libcurl3,4 to coexist
sudo add-apt-repository ppa:rock-core/qt4
sudo add-apt-repository ppa:xapienz/curl34
sudo apt-get update
Install dependencies
sudo apt install libqt4-dbus libqtcore4 libqtgui4 libqt4-network libqt4-opengl
sudo apt install libcurl4=7.68.0-1ubuntu2.5ppa1
sudo apt install curl34
Install Synergy
sudo dpkg -i Synergy_1.9.0~rc3_amd64_ubuntu.deb
If there are dependency problems, you can try using
sudo apt --fix-broken install
Start the software
synergy
The synergy version 1.8.8 does not support Ubuntu 20.04 very well. According to my personal test, the following error message will pop up after each computer restart. However, restarting synergy manually can be used and there is no need to do it anymore.
System tray is unavailable
Simple use of synergy:
- As a server (for sharing), configure the client's name (the name of the screen in the client) and location in Configure Server (note that the client name is preferably in English)
- Check the Client button option on the host that is the client, and fill in the IP address of the server.
- Solution to the error message "cannot bind address: Address already in use" appears:
- Cancel SSL encryption in the edit option. Generally, you can connect in this way.
- ps -aux | grep synergy, get the process pid before restarting
Share mouse, keyboard and files between two computers
4. Ubuntu terminal multi-window split-screen Terminator
Terminator can start multiple terminals in the same window in Ubuntu, but this method only applies to the graphical interface.
- Installation and uninstallation commands
#安装
sudo apt-get install terminator
#卸载
sudo apt-get remove terminator
- shortcut key
Ctrl+Shift+E 垂直分割窗口
Ctrl+Shift+O 水平分割窗口 F11 全屏
Ctrl+Shift+C 复制
Ctrl+Shift+V 粘贴
Ctrl+Shift+N 或者 Ctrl+Tab 在分割的各窗口之间切换
Ctrl+Shift+X 将分割的某一个窗口放大至全屏使用
Ctrl+Shift+Z 从放大至全屏的某一窗口回到多窗格界面
- Modify the configuration file of the interface
sudo vim ~/.config/terminator/config
before fixing:
[global_config]
handle_size = 1
[keybindings]
[layouts]
[[default]]
[[[child1]]]
parent = window0
type = Terminal
[[[window0]]]
parent = ""
type = Window
[plugins]
[profiles]
[[default]]
background_image = None
After modification:
[global_config]
geometry_hinting = False
handle_size = 1
inactive_color_offset = 1.0
title_font = mry_KacstQurn Bold 11
title_hide_sizetext = True
[keybindings]
[layouts]
[[default]]
[[[child1]]]
parent = window0
profile = default
type = Terminal
[[[window0]]]
parent = ""
type = Window
[plugins]
[profiles]
[[default]]
background_darkness = 0.76
background_image = None
background_type = transparent
cursor_color = "#3036ec"
custom_command = tmux
font = Ubuntu Mono 13
foreground_color = "#ffffff"
login_shell = True
show_titlebar = False
use_system_font = False
- Change the Ubuntu default terminal tool.
The default terminal tool used in the Ubuntu system is gnome-terminal. After we install Terminator, we can use the dconf-tools tool to reset it.
Install dconf-toolssudo
apt-get install dconf-tools
After the installation is successful, enter the command "dconf-editor" in the terminal to open this tool, and then follow the steps below from the left menu bar to enter the specified menu item: org > gnome > desktop > applications > terminal Use gnome-
terminal The configuration is:
exec gnome-terminal
exec-arg -x
Modify the configuration of using Terminator as the default terminal tool as:
exec x-terminal-emulatore
xec-arg -e
5. View db data in Ubuntu
Install database software
sudo apt-get install sqlitebrowser