一、Ubuntu-18.04上安装搜狗拼音输入法
参考资料:https://www.cnblogs.com/lfri/p/10769144.html
- 从 https://pinyin.sogou.com/linux/?r=pinyin 下载 Linux版本64位的搜狗输入法安装包。
- 双击,安装 。
- 安装完成后,进行设置:
将系统输入法改成fcitx,然后点击上面的Apply System-Wide应用到全局。然后重启。
二、不同用户之间拷贝文件
参考资料:
https://www.cnblogs.com/Cherrison-Time/p/11587816.html
https://www.cnblogs.com/ftl1012/p/scp.html
1. 登录 A 用户
2. 安装 ssh服务
(1)生成ssh秘钥
在终端中,执行:ssh-keygen -t rsa
(连按回车,生成秘钥)
(2)安装openssh-server
在终端中,执行:
sudo apt install openssh-server
sudo /etc/init.d/ssh start
(3)测试
在终端中,执行:ps -ef | grep ssh
(查看sshd进程)
3.使用scp命令拷贝文件
scp是secure copy的简写,用于在Linux下进行远程拷贝文件的命令, scp传输是加密的,可能会稍微影响一下速度。另外,scp还非常不占资源,不会提高多少系统负荷,在这一点上,rsync就远远不及它了。虽然 rsync比scp会快一点,但当小文件众多的情况下,rsync会导致硬盘I/O非常高,而scp基本不影响系统正常使用
(1) 复制文件
命令格式:
scp local_file remote_username@remote_ip:remote_folder
或者
scp local_file remote_username@remote_ip:remote_file
或者
scp local_file remote_ip:remote_folder
或者
scp local_file remote_ip:remote_file
第1,2个指定了用户名,命令执行后需要输入用户密码,第1个仅指定了远程的目录,文件名字不变,第2个指定了文件名
第3,4个没有指定用户名,命令执行后需要输入用户名和密码,第3个仅指定了远程的目录,文件名字不变,第4个指定了文件名
(2) 复制文件夹
命令格式:
scp -r local_folder remote_username@remote_ip:remote_folder
或者
scp -r local_folder remote_ip:remote_folder
第1个指定了用户名,命令执行后需要输入用户密码
第2个没有指定用户名,命令执行后需要输入用户名和密码
例如:把用户A目录下的 esp文件夹 拷贝到 用户B目录下:
在终端中,执行:
scp -r /home/userA/esp userB@localhost:/home/userB/
三、截屏
参考资料:https://blog.csdn.net/qq_38880380/article/details/78233687
使用ubuntu自带的截图工具为screenshot 。调用screenshot的快捷键,可通过下述方法查看:
system settings----> Devices ----> keyboard----->shortcuts----->screenshot:
四、安装Flash插件
参考资料:
https://blog.csdn.net/qq_22527639/article/details/80991557
https://blog.csdn.net/qq_36285997/article/details/82262857
Step1. 到官网下载:https://get.adobe.com/cn/flashplayer/
选择 linux版本的tar.gz包,64位,Linux 64-bit, 简体中文, Firefox
Step2. 将上述文件解压缩,打开 readme.txt 文件查看安装方法:
Installing using the plugin tar.gz:
- Unpack the plugin tar.gz and copy the files to the appropriate location.
- Save the plugin tar.gz locally and note the location the file was saved to.
- Launch terminal and change directories to the location the file was saved to.
- Unpack the tar.gz file. Once unpacked you will see the following:
+ libflashplayer.so
+ /usr- Identify the location of the browser plugins directory, based on your Linux distribution and Firefox version
- Copy libflashplayer.so to the appropriate browser plugins directory. At the prompt type:
cp libflashlayer.so <BrowserPluginsLocation>
- Copy the Flash Player Local Settings configurations files to the /usr directory. At the prompt type:
sudo cp -r usr/* /usr
Step3. 将 libflashplayer.so 文件拷贝到 Firefox插件目录
在终端里执行:sudo cp libflashplayer.so /usr/lib/mozilla/plugins/
Step4. 将解压的usr目录下的文件都拷贝到 /usr 目录
在终端里执行:sudo cp -r usr/* /usr
这样就安装更新完成了。