前言
双系统安装见windows10+ubuntu 双系统安装手记
常用操作
快捷键
alt+F2 输入命令
ctrl+alt+T 打开终端
常用命令
./name
可以用来执行当前目录下的二进制程序,其中:
.
表示当前目录./
表示当前目录下./name
表示执行当前目录下的name文件
通用更改
基础设置
- 调整显示器位置:设置-设备-显示-显示器排列
- 大号文本:设置-通用辅助功能-大号文本-打开
- 更换软件源:软件和更新-下载自-其他站点-aliyun或huaweicloud
- 软件更新:sudo apt-get upgrade
浏览器
- 使用ubuntu软件搜索chrominum然后安装。
- 登陆chrome账号,同步书签、密码及应用,设置应用从菜单中隐藏。
- 可以把常用网站都登陆一下。
设置密钥环
- 设置了开机登陆不需要密码后,每次登陆需要输入一个密钥环。
- 通过终端进入seahorse,修改默认密钥环的密码为空。
- 可能会出现安全问题。
输入法
- 下载搜狗输入法并安装
- 设置-区域和语言-管理已安装的语言-键盘输入法系统-fcitx
- 注销并重新登录,已经可以使用搜狗输入法
- 可以选择登录搜狗个人中心。
linux qq
- 进入linux-qq下载地址
- 根据帮助选择硬件架构与格式下载(我的是x64+deb)并安装
- 手机qq扫码登录。
- 界面非常古老,但基础的聊天、传文件都是没有问题的。
网易云音乐
- 进入下载地址
- 点击右上角——下载全部客户端,选择Linux版,下载,安装。
- 字体会很小,解决方案是将
https://blog.csdn.net/weixin_36349646/article/details/102879728
和https://blog.csdn.net/jianghe_130/article/details/85275101
这两篇文章结合起来,有时间再做。
编程相关
sublime
- ubuntu软件安装sublime
- 配置好项目目录
C++
- 执行
sudo apt-get install g++
来安装g++. - sublime->tools->build system->new build system,设置如下编译选项,命名为
cpp_littlefall.sublime-build
。其中默认选项是仅编译,其他选项见名字。
后来更新了一波,给$file
和$file_base_name
加上了引号,否则无法正确编译带空格的路径。 - 再更新了一波,把打开终端后两个命令之间的
&&
改成了&
,这样前一个命令失败后终端不会闪退。
{
"encoding": "utf-8",
"working_dir": "$file_path",
"shell_cmd": "g++ -Wall -D _LITTLEFALL_ -std=c++14 \"$file\" -o $file_base_name",
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"selector": "source.c++",
"variants":
[
{
"name": "compile and run, in terminal",
"shell_cmd": "g++ -Wall -D _LITTLEFALL_ -std=c++14 \"$file\" -o $file_base_name && gnome-terminal -- bash -c './$file_base_name&read' "
},
{
"name": "compile and run, in sublime",
"shell_cmd": "g++ -Wall -D _LITTLEFALL_ -std=c++14 \"$file\" -o $file_base_name & ./$file_base_name "
},
{
"name": "only run, in terminal",
"shell_cmd": "gnome-terminal -- bash -c './$file_base_name&read'"
},
{
"name": "only run, in sublime ",
"shell_cmd": "./$file_base_name"
}
]
}
- sublime->tools->developer->new Snippet,设置如下内容,命名为
cpp_entry.sublime-snippet
.
<snippet>
<content><![CDATA[
#include <bits/stdc++.h>
using namespace std; using ll = long long; inline int read();
const int M = 100016, MOD = 1000000007;
int main(void)
{
#ifdef _LITTLEFALL_
freopen("in.txt","r",stdin);
#endif
${0:printf("It's your reflection looking back to pull you down.\n");}
return 0;
}
inline int read(){
int x=0,f=1;char ch=getchar();
while(ch<'0'||ch>'9') {if(ch=='-')f=-1;ch=getchar();}
while(ch>='0'&&ch<='9'){x=x*10+ch-'0';ch=getchar();}
return x*f;
}
]]></content>
<tabTrigger>sa</tabTrigger>
<scope>source.c++</scope>
</snippet>
python
{
"encoding": "utf-8",
"working_dir": "$file_path",
"shell_cmd": "python3 \"$file\"",
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"selector": "source.python",
"variants":
[
{
"name": "build by python3, run in terminal",
"shell_cmd": "gnome-terminal -- bash -c 'python3 \"$file\"&read' "
},
{
"name": "build by python2, run in sublime",
"shell_cmd": "python2 \"$file\" "
},
{
"name": "build by python2, run in terminal",
"shell_cmd": "gnome-terminal -- bash -c 'python2 \"$file\"&read' "
},
{
"name": "run python3 console",
"shell_cmd": "gnome-terminal -- python3"
},
{
"name": "run python2 console",
"shell_cmd": "gnome-terminal -- python2"
}
]
}
剩余问题
应用程序界面无法使用安装的输入法。