ubuntu basic
Contents
ubuntu basic
apt-select
|
|
mirrors
deb, deb-src
不是要看代码或者自己编译的话 deb-src 可以注释掉或者删除
backports proposed security updates
简单的解释: 基础:由于ubuntu是每6个月发行一个新版,当发行后,所有软件包的版本在这六个月内将保持不变,即使是有新版都不更新。除开重要的安全补丁外,所有新功能和非安全性补丁将不会提供给用户更新。
security:仅修复漏洞,并且尽可能少的改变软件包的行为。低风险。 backports:backports 的团队则认为最好的更新策略是 security 策略加上新版本的软件(包括候选版本的)。但不会由Ubuntu security team审查和更新。 update:修复严重但不影响系统安全运行的漏洞,这类补丁在经过QA人员记录和验证后才提供,和security那类一样低风险。 proposed:update类的测试部分,仅建议提供测试和反馈的人进行安装。
个人认为: 1.重要的服务器:用发行版默认的、security 2.当有要较新软件包才行能运作的服务器:用发行版默认的、 security、(backports 还是不适合) 3.一般个人桌面:用发行版默认的、 security、backports、update 4.追求最新、能提供建议和反馈大虾:发行版默认的、 security、backports、update、proposed 全部用上!
Ubuntu 22.04 LTS (Jammy Jellyfish)
ubuntu mirror
aliyun
|
|
163
|
|
|
|
tsinghua
|
|
WSL
|
|
中文乱码问题
|
|
https://blog.csdn.net/weixin_39792252/article/details/80415550
查看软件安装位置
|
|
apt 查看软件包版本
|
|
PPA
为什么要用 PPA 如你所见,Ubuntu 对系统中的软件进行管理,更重要的是控制你在系统上获得哪个版本的软件。但想象一下开发人员发布了软件的新版本的情况。
Ubuntu 不会立即提供该新版本的软件。需要一个步骤来检查此新版本的软件是否与系统兼容,从而可以确保系统的稳定性。
但这也意味着它需要经过几周才能在 Ubuntu 上可用,在某些情况下,这可能需要几个月的时间。不是每个人都想等待那么长时间才能获得他们最喜欢的软件的新版本。
类似地,假设有人开发了一款软件,并希望 Ubuntu 将该软件包含在官方软件仓库中。在 Ubuntu 做出决定并将其包含在官方存软件仓库之前,还需要几个月的时间。
另一种情况是在 beta 测试阶段。即使官方软件仓库中提供了稳定版本的软件,软件开发人员也可能希望某些终端用户测试他们即将发布的版本。他们是如何使终端用户对即将发布的版本进行 beta 测试的呢?
通过 PPA!
网络
netplan
|
|
动态IP
|
|
静态 IP, /etc/netplan/00-installer-config.yaml
|
|
|
|
区域语言
ls -l 文件日期显示中文的问题
Region & Language> Manage Installed Languages> Regional Formats> Display numbers, dates and currency amounts in the usual format for: English(United States)
apply system-wide
add a shell script to launcher as shortcut
Create foo.desktop file, location depends on if it is for personal use or all users. If these directories do not exist, create them. For personal use, ~/.local/share/applications .desktop 文件不能用软链接
gedit ~/.local/share/applications/name.desktop
For all users, /usr/local/share/applications/ (or /usr/share/applications/ depending upon your system).
sudo -i gedit /usr/share/applications/name.desktop
Paste below text
|
|
edit Icon= and Exec= and Name= Also Terminal=True/false determines whether the terminal opens a window and displays output or runs in the background Exec= 指定的Shell脚本不能有 nohup, 实际上也不需要 nohup, 设置 Terminal=false terminal 不会弹出来 put this in unity panel by dragging it from files manager logic is very simple that unity panel allows *.desktop files as launcher though I haven’t tried it because I use Natty.
比如 pycharm
|
|
https://askubuntu.com/questions/141229/how-to-add-a-shell-script-to-launcher-as-shortcut
I was facing this problem and I will share my notes in case it helps someone.
If the .desktop file is for all users to use then it should be placed under /usr/local/share/applications. If the .desktop file is only for the current user then it should be placed under ~/.local/share/applications. The .desktop file placed as above does not need execute permissions. It can be 0644. If the .desktop file has a key Hidden then it should be Hidden=false. If the .desktop file has a key NoDisplay then it should be NoDisplay=false. The Exec key should have a valid command. Bash commands may not work as detailed in this answer. With these settings in place the desktop entry should be searchable using the Super key, and from there using the Right Click -> Add to Favorites option, it can be setup as a favorite on the dash.
Note: In the above bullet points, “Has a key” means if the key is present in the config file. Alternatively, it can be absent, in which case the default value for that key takes effect.
super key
windows key
dev env
- citrix
- 能打开远程桌面
- 不能传文件,看不到 C 盘, 也许通过配置能解决
- Jetbrains OK
- webex
- fcitx 偶尔能输入中文, 有时候没有响应,只能用英文
- 会议模式 ok, 音质销差但是不影响
- 不能共享屏幕
- 中文输入法
- 某些 APP 有可能用不了中文输入法,有可能需要在外面输中文再拷进去
- outlook 用网页版
- gnome terminal: 可以配置保留所有命令行的输出, windows terminal 只能保留 32767 行
- containerd + nerdctl
indicator-sysmonitor
https://ubuntuhandbook.org/index.php/2023/01/indicator-show-cpu-gpu-memory-ubuntu-panel/
https://github.com/fossfreedom/indicator-sysmonitor
|
|
audio recoder
https://vitux.com/how-to-record-audio-in-ubuntu/
ogg player
apt install vorbis-tools
ogg123 foo.ogg
autostart applications
press win and search startup
gnome terminal 日志, 命令 保留条数
Preferences> Unnamed> Scrolling> limit scrollback to: 100000 lines
background
Ubuntu 22.04 不能在 GUI 中设置纯色背景, 只能在命令行里实现.
|
|
桌面图标
settings> appearance> show person folder: False
ubuntu 22.04 thinkpad x1 gen9
https://github.com/pachadotdev/x1-carbon-9th-gen-ubuntu/blob/main/README.md
|
|
中文字体
系统语言选择英文, 在 webex 里中文字体不正常的问题
ubuntu 22.04 修改 /etc/fonts/conf.avail/64-language-selector-prefer.conf, 把 所有 <family>Noto Sans CJK SC</family>
调整到第一行
ubuntu 24.04 /etc/fonts/conf.d/64-language-selector-cjk-prefer.conf
Author -
LastMod 2020-10-09