用户工具

站点工具


jaysnote:ubuntu_first_run

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
后一修订版
前一修订版
jaysnote:ubuntu_first_run [2019/01/15 14:59]
jaylee
jaysnote:ubuntu_first_run [2021/06/22 23:14] (当前版本)
行 36: 行 36:
  
     ```bash     ```bash
-    sudo vi /etc/systemd/logind.conf+    sudo vi /etc/systemd/logind.conf 
     #HandleLidSwitch=poweroff, 关闭盖子时关闭电源。     #HandleLidSwitch=poweroff, 关闭盖子时关闭电源。
     #HandleLidSwitch=hibernate, 关闭lid时需要休眠(需要测试hibernate是否工作)。     #HandleLidSwitch=hibernate, 关闭lid时需要休眠(需要测试hibernate是否工作)。
-    #HandleLidSwitch=ignore, 什么都不做。+    HandleLidSwitch=ignore, 什么都不做。
     #HandleLidSwitch=suspend,当盖子关闭时暂停笔记本电脑。     #HandleLidSwitch=suspend,当盖子关闭时暂停笔记本电脑。
     systemctl restart systemd-logind.service     systemctl restart systemd-logind.service
     ```     ```
 +
 +* secure boot
 +
 +  如果启用了该功能,modprobe  ko 可能会失败。
 +
 +  http://3ctipsmemo.blogspot.com/2018/06/ubuntu-linux-secure-boot.html
 +
 +  https://open-cells.com/index.php/2017/06/08/kernel-module-uefi-secure-boot/
  
 ## init ## init
行 63: 行 71:
     ```     ```
  
-* 安装ssh、ifconfig、vim+* 安装ssh、ifconfig、vim、tree、htop
  
     ```bash     ```bash
-    sudo apt-get -y install ssh net-tools vim+    sudo apt-get -y install ssh net-tools vim tree htop
     ```     ```
  
行 72: 行 80:
  
     [bashrc notes](http://docs.leconiot.com/doku.php?id=jaysnote:bashrc)     [bashrc notes](http://docs.leconiot.com/doku.php?id=jaysnote:bashrc)
 +    
 +* ss
 +
 +    ```bash
 +    sudo apt-get install libsodium23
 +    sudo apt-get install libsodium-dev
 +    
 +    sudo apt-get install software-properties-common -y
 +    sudo add-apt-repository ppa:max-c-lv/shadowsocks-libev -y
 +    sudo apt-get update
 +    sudo apt install shadowsocks-libev
 +    sudo cp /lib/systemd/system/shadowsocks-libev-local@.service /lib/systemd/system/shadowsocks-libev-local.service
 +    
 +    #local
 +    sudo systemctl enable shadowsocks-libev-local.service
 +    sudo systemctl start shadowsocks-libev-local.service
 +    #edit 
 +    #cat /etc/shadowsocks-libev/config.json  
 +    
 +    systemctl status shadowsocks-libev-local.service
 +    
 +    #server
 +    sudo systemctl enable shadowsocks-libev.service
 +    sudo systemctl start shadowsocks-libev.service
 +    ```
 +
 +* timezon
 +
 +    ```bash
 +    date -R
 +    tzselect
 +    #Asia->China->Beijing
 +    cp /usr/share/zoneinfo/Asia/Shanghai  /etc/localtime
 +    ```
 +
 +## tools
 +
 +
 +* sogou
 +
 +  https://blog.csdn.net/lupengCSDN/article/details/80279177
 +  
 +  
 +* secure crt
 +
 +  https://ubuntu.pkgs.org/18.04/ubuntu-updates-main-amd64/libssl1.0.0_1.0.2n-1ubuntu5.3_amd64.deb.html
 +  
 +  https://archlinux.pkgs.org/rolling/archlinux-community-x86_64/libpng12-1.2.59-1-x86_64.pkg.tar.xz.html
 +
  
 </markdown> </markdown>
jaysnote/ubuntu_first_run.1547535568.txt.gz · 最后更改: 2021/06/22 23:14 (外部编辑)