Ubuntu部分实用工具安装记录

一、安装google浏览器

  1. 下载 Google浏览器软件

打开终端,使用wget来下载 Google Chrome .deb 软件包:

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
  1. 安装 Google Chrome
sudo apt install ./google-chrome-stable_current_amd64.deb
#或
sudo  dpkg  -i ./google-chrome-stable_current_amd64.deb
  1. 升级 Google Chrome

在安装过程中,官方 Google 软件源被添加到你的系统。可以使用cat命令来验证文件内容:

cat /etc/apt/sources.list.d/google-chrome.list

输出如下:

### 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

当一个新的版本被发布时,你的 Google Chrome 可以被自动升级。


二、Ubuntu安装截图软件shutter

  1. 安装shutter
sudo add-apt-repository ppa:linuxuprising/shutter
sudo apt install shutter

上面的命令运行完后shutter就安装完成了

  1. 卸载软件
    如果想卸载运行下面的命令就可以卸载截图软件
sudo apt remove --auto-remove shutter
  1. 如果想要修改截图的快捷键请打开keyboard shortcuts中进行配置
    在这里插入图片描述
    ps:flameshot也是Ubuntu上的不错截图软件


三、Synergy实现Windows和Ubuntu键鼠共享

安装准备

sudo apt-get install software-properties-common

添加 qt4 源 与设置 libcurl3,4共存

sudo add-apt-repository ppa:rock-core/qt4
sudo add-apt-repository ppa:xapienz/curl34
sudo apt-get update

安装依赖

sudo apt install  libqt4-dbus libqtcore4 libqtgui4 libqt4-network libqt4-opengl
sudo apt install libcurl4=7.68.0-1ubuntu2.5ppa1 
sudo apt install curl34

安装 Synergy

sudo dpkg -i Synergy_1.9.0~rc3_amd64_ubuntu.deb

如果出现依赖问题可以尝试使用

sudo apt --fix-broken install

启动软件

synergy

synergy1.8.8版本对Ubuntu20.04支持不是很好,亲测在每次电脑重启后会弹出下面的报错,不过手动重启synergy可以使用就没再操作了

System tray is unavailable

synergy的简单使用:

  1. 作为服务器(用来共享)的主机在Configure Server中配置客户端的名称(客户端中screen的名称)与位置(注意客户端名称最好英文)
  2. 在作为客户端的主机上勾选Client的按钮选项,并填写server所在的ip
  3. 出现cannot bind address: Address already in use报错的解决方法:
    • 在edit选项中取消ssl加密,一般这样就可以连接上了
    • ps -aux | grep synergy,获取进程pid在重启

两台电脑共享鼠标、键盘和文件


四、Ubuntu终端多窗口分屏Terminator

Terminator可以实现在 Ubuntu在同一窗口中启动多个终端,不过这一方法仅适用于图形界面下。

  1. 安装与卸载命令
#安装
sudo apt-get install terminator
#卸载
sudo apt-get remove terminator
  1. 快捷键
Ctrl+Shift+E    垂直分割窗口
Ctrl+Shift+O    水平分割窗口     F11         全屏
Ctrl+Shift+C    复制
Ctrl+Shift+V    粘贴
Ctrl+Shift+N    或者 Ctrl+Tab 在分割的各窗口之间切换
Ctrl+Shift+X    将分割的某一个窗口放大至全屏使用
Ctrl+Shift+Z    从放大至全屏的某一窗口回到多窗格界面
  1. 修改界面的配置文件
sudo vim ~/.config/terminator/config

修改前:

[global_config]
  handle_size = 1
[keybindings]
[layouts]
  [[default]]
    [[[child1]]]
      parent = window0
      type = Terminal
    [[[window0]]]
      parent = ""
      type = Window
[plugins]
[profiles]
  [[default]]
    background_image = None

修改后:

[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
  1. 更改 Ubuntu 默认终端工具
    Ubuntu 系统中默认使用的终端工具是 gnome-terminal,当我们安装完 Terminator 之后可以借助dconf-tools 工具来进行重新设置。

安装dconf-toolssudo

apt-get install dconf-tools

安装成功后,终端中输入命令 “dconf-editor” 来打开这个工具,然后从左边的的菜单栏中按照下面的步骤依次进入指定的菜单项:org > gnome > desktop > applications > terminal
使用gnome-terminal的配置为:

exec  gnome-terminal
exec-arg -x

修改使用 Terminator 作为默认终端工具的配置为:

exec  x-terminal-emulatore
xec-arg -e

五、Ubuntu查看db数据

安装数据库软件

sudo apt-get install sqlitebrowser

猜你喜欢

转载自blog.csdn.net/u011795345/article/details/126110754