JiFu's Wiki JiFu's Wiki
首页
  • HTML
  • JavaScript
  • NodeJS
  • Vuejs
  • 微信小程序
  • Python
  • 数据库
  • 中间件
  • 算法
  • 软件工程
  • Wordpress
  • iOS开发
  • Android开发
  • Linux
  • Windows
  • MacOS
  • Docker
  • Vim
  • VSCode
  • Office
  • 其他
  • Photoshop
  • Sketch
  • Mac
  • 游戏
关于
  • 分类
  • 标签
  • 归档
GitHub (opens new window)
首页
  • HTML
  • JavaScript
  • NodeJS
  • Vuejs
  • 微信小程序
  • Python
  • 数据库
  • 中间件
  • 算法
  • 软件工程
  • Wordpress
  • iOS开发
  • Android开发
  • Linux
  • Windows
  • MacOS
  • Docker
  • Vim
  • VSCode
  • Office
  • 其他
  • Photoshop
  • Sketch
  • Mac
  • 游戏
关于
  • 分类
  • 标签
  • 归档
GitHub (opens new window)
  • DevOps介绍
  • Linux

    • Linux介绍
    • Linux系统目录结构及详细说明
    • 使用SSH登录Google Cloud Platform
    • 生产服务器虚拟化环境搭建大纲
    • 服务器虚拟化环境搭建
    • Ubuntu

      • Ubuntu介绍
      • Ubuntu服务器安装手册
      • Ubuntu开发机安装手册
        • SSH安装
        • i3桌面环境
        • 安装fish
        • vscode
        • 输入法
        • chrome浏览器
        • dropbox
        • conky
        • 环境配置
      • Ubuntu i3wm桌面环境安装
      • Ubuntu安装Samba服务
      • 6.Ubuntu服务器安装桌面环境
      • Ubuntu Sway开发机安装手册
      • Debian服务器安装手册
      • Debian Sway开发机安装手册
    • CentOS

    • Manjaro

    • Command

    • System Service

  • MacOS

  • Windows

  • Docker

  • Vim

  • VSCode

  • Office

  • 其他

  • 运维
  • Linux
  • Ubuntu
JiFu
2023-10-18
目录

Ubuntu开发机安装手册

# SSH安装

sudo apt install openssh-server
systemctl start sshd
systemctl enable sshd
1
2
3

# i3桌面环境

sudo apt install i3
1

# i3 分辨率调整(xrandr)

xrandr配置文档 (opens new window)

# 获取输出设备
xrander
# 指定分辨率
xrandr --output HDMI-1 --mode 1920x1080
1
2
3
4

# i3配置生效

i3 reload
1

# i3 shortcuts

  1. 打开终端: alt+enter
  2. 打开菜单: alt+d
  3. 横向排列窗口: alt+h
  4. 纵向排列窗口: alt+v
  5. 将某个窗口全屏: alt+f
  6. 模式选择
    • alt+e默认(水平竖直)
    • alt+s层叠
    • alt+w标签形式显示(和浏览器的窗口很像)
  7. 选择窗口是浮动的还是平铺式: alt+shift+space
  8. 退出窗口:
    • 一般窗口ctrl+w
    • 某些应用程序: alt+shift+ql;
  9. 重启i3: alt+shift+r
  10. 关闭i3: alt+shift+e
  11. 在两个窗口中移动: alt+方向/jk
  12. 打开工作区: alt+num
  13. 将当前窗口移动到某工作区: alt+shift+num

# 安装fish

sudo apt install fish
1

# 设置默认bash

chsh

/usr/bin/fish
1
2
3

# 安装oh my fish

curl https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install | fish
1

# 安装主题

omf install bira
1

# 添加autojump

vim ~/.config/fish/config.fish
1
begin
    set --local AUTOJUMP_PATH /usr/share/autojump/autojump.fish
    if test -e $AUTOJUMP_PATH
        source $AUTOJUMP_PATH
    end
end
1
2
3
4
5
6

# vscode

wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"

sudo apt update
sudo apt install -y code
1
2
3
4
5

# 输入法

# 安装

sudo apt install -y fcitx fcitx-libpinyin
1

# 配置

vim ~/.bashrc
1
export LANG=zh_CN.UTF-8
export LC_ALL=zh_CN.UTF-8
export GTK_IM_MODULE="fcitx"
export QT_IM_MODULE="fcitx"
export XMODIFIERS="@im=fcitx"
1
2
3
4
5

# chrome浏览器

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install -y ./google-chrome-stable_current_amd64.deb
1
2

# dropbox

wget https://www.dropbox.com/download?dl=packages/ubuntu/dropbox_2020.03.04_amd64.deb -O ./dropbox_2020.03.04_amd64.deb

sudo apt install -y ./dropbox_2020.03.04_amd64.deb
1
2
3

# conky

桌面监控

# 安装

sudo apt isntall conky
1

# 配置文件

vim ~/.conkyrc
1
################################
# set to yes if you want Conky to be forked in the background
background no
cpu_avg_samples 2
net_avg_samples 2
out_to_console no
# X font when Xft is disabled, you can pick one with program xfontsel
#font 7x12
#font 6x10
#font 7x13
#font 8x13
#font 7x12
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
#font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1
# Use Xft?
use_xft yes
# Xft font when Xft is enabled
xftfont Sans:size=11
own_window_argb_visual yes
#own_window_colour hotpink
# Text alpha when using Xft
xftalpha 0.8
# on_bottom yes
# mail spool
# mail_spool $MAIL
# Update interval in seconds
update_interval 1
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
#own_window_type override
own_window_type desktop
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 260 5
maximum_width 400
# Draw shades?
draw_shades no
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Stippled borders?
stippled_borders no
# border margins
# border_margin 4
# border width
border_width 1
# Default colors and also border colors
default_color white
default_shade_color white
default_outline_color white
# Text alignment, other possible values are commented
#alignment top_left
#minimum_size 10 10
gap_x 10
gap_y 35
alignment top_right
#alignment bottom_left
#alignment bottom_right
# Gap between borders of screen and text
# Add spaces to keep things from moving about?  This only affects
# certain objects.
use_spacer none
# Subtract file system buffers from used memory?
no_buffers yes
# set to yes if you want all text to be in uppercase
uppercase no
# none, xmms, bmp, audacious, infopipe (default is none)
# xmms_player bmp


TEXT
${color #0277BD}SYSTEM ${hr 1}
#Time:$alignr${time %Y.%m.%d}$alignc   ${time %H:%M:%S}$alignr   Week:${time %w}
Hostname: $alignr$nodename
Kernel: $alignr$kernel
Machine:$alignr$machine
Uptime: $alignr$uptime
Temp: ${alignr}${acpitemp} °C
Battery:$alignr${battery BAT0}
#Battery:$alignr${battery_percent BAT0}%
###############
${color #006064}NETWORK ${hr 1}
IP:${addr wlp5s0}
GateWay:$gw_ip
Down ${downspeed wlp5s0} /s ${alignr}Up ${upspeed wlp5s0} /s
#${downspeedgraph wlp5s0 25,107} ${alignr}${upspeedgraph wlp5s0 25,107}
Total ${totaldown wlp5s0} ${alignr}Total ${totalup wlp5s0}
#############
${color #26C6DA}MEMORY ${hr 1}
Ram ${alignr}$mem / $memmax ($memperc%)
${membar 4}
swap ${alignr}$swap / $swapmax ($swapperc%)
${swapbar 4}
Highest MEM $alignr MEM%
${top_mem name 1}$alignr ${top_mem mem 1}
${top_mem name 2}$alignr ${top_mem mem 2}
${top_mem name 3}$alignr ${top_mem mem 3}
##############
${color #FF9800}CPU ${hr 1}
Frequency: ${alignr}${freq dyn} MHz
Processes: ${alignr}$processes ($running_processes running)
Load: ${alignr}$loadavg
CPU1 ${alignr}${cpu cpu1}%
${cpubar 4 cpu1}
CPU2 ${alignr}${cpu cpu2}%
${cpubar 4 cpu2}
Highest CPU $alignr CPU%
${top name 1}$alignr${top cpu 1}
${top name 2}$alignr${top cpu 2}
${top name 3}$alignr${top cpu 3}
##############
${color #00BFA5}FILE SYSTEM ${hr 1}
Disk I/O:$diskio
Root: ${alignr}${fs_free /} / ${fs_size /}
${fs_bar 4 /}
Home: ${alignr}${fs_free /home} / ${fs_size /home}
${fs_bar 4 /home}
#############
————————————————
版权声明:本文为CSDN博主「FlyWine」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/wf19930209/article/details/89058804
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126

# 环境配置

# 修改键盘配置

# 备份配置文件

sudo cp /usr/share/X11/xkb/keycodes/evdev /usr/share/X11/xkb/keycodes/evdev.bak
1

# 修改键位

sudo vim /usr/share/X11/xkb/keycodes/evdev
将ESC和CAPS的键值互换一下.

<ESC> = 66;
<CAPS> = 9;
1
2
3
4
5
上次更新: 2025/04/22, 04:25:08
Ubuntu服务器安装手册
Ubuntu i3wm桌面环境安装

← Ubuntu服务器安装手册 Ubuntu i3wm桌面环境安装→

最近更新
01
WPS快捷键
05-21
02
Disable notification "to get future google chrome updates you'll need macos 10.13 or later" on mac
05-14
03
MacOS软件推荐
04-30
更多文章>
Theme by Vdoing | Copyright © 2019-2025 Ji Fu | MIT License
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式