CYBORG系统常用配置及使用技巧



  • CYBORG系统常用配置及使用技巧

    为Cyborg配置更新源,比如说163

    这里建议将官方的更新源全部注释掉,很久没有维护很多都是404

    sudo nano /etc/apt/sources.list.d/163.list
    
    deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
    deb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
    deb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse
    
    ctrl+O保存
    ctrl+x退出
    
    sudo  apt-get update
    sudo apt-get dist-upgrade
    

    locales中文乱码

    sudo dpkg-reconfigure locales
    
    en_US.UTF-8和zh_CN.UTF-8
    将zh_CN.UTF-8标记设为默认
    
    reboot
    

    VMware增强工具VMtools的安装:

    sudo apt-get update
    sudo apt-get install open-vm-tools-desktop fuse
    

    多窗口终端

    apt-get install terminator
    

    telegram

    deb http://ppa.launchpad.net/atareao/telegram/ubuntu trusty main
    
    sudo apt-get update
    sudo apt-get install telegram
    

    Shadowsocks-gui

    deb http://ppa.launchpad.net/hzwhuang/ss-qt5/ubuntu devel main
    
    sudo apt-get update && apt-get install shadowsocks-qt5
    

    如出现

    由于没有公钥,无法验证下列签名: NO_PUBKEY 6DA746A05F00FA99
    

    如果您缺少的是此公钥:6DA746A05F00FA99
    执行

    apt-key adv --recv-keys --keyserver keyserver.Ubuntu.com 6DA746A05F00FA99
    

    若不是

    apt-key adv --recv-keys --keyserver keyserver.Ubuntu.com  接缺少公钥
    

    shadowsocks-terminal

    sudo apt-get install python-pip
    
    sudo pip install shadowsocks
    
    sudo nano /etc/shadowsocks.json
    
    sslocal -c /etc/shadowsocks.json
    

    终端代理神器

    sudo nano /etc/proxychains.conf
    

    找到dynamic_chain前面的注释符,去掉

    将socks4 127.0.0.1 9095改为
    
    socks5  127.0.0.1 1080  //1080改为你自己的端口
    
    proxychains curl https://www.google.com
    

    V2ray

    sudo bash <(curl -L -s https://install.direct/go.sh)
    
    cp config.json /etc/v2ray/
    
    sudo v2ray -config=/etc/config.json
    

    直接终端代理

    export http_proxy=socks5://127.0.0.1:1080
    export https_proxy=$http_proxy
    

    搜狗输入法

    wget http://cdn2.ime.sogou.com/dl/index/1524572264/sogoupinyin_2.2.0.0108_amd64.deb?st=oJNB9bRm6YC5sxI7eOapdw&e=1551673197&fn=sogoupinyin_2.2.0.0108_amd64.deb
    
    sudo dpkg -i
    

    Chrome

    wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
    
    sudo dpkg -i google-chrome-stable_current_amd64.deb
    

    若是出现依赖问题

    sudo apt-get install -f
    
    sudo dpkg -i google-chrome-stable_current_amd64.deb
    

    网易云音乐

    wget http://d1.music.126.net/dmusic/netease-cloud-music_1.1.0_amd64_ubuntu.deb
    
    sudo dpkg -i netease-cloud-music_1.1.0_amd64_ubuntu.deb
    
    sudo apt-get install -f 
    
    sudo dpkg -i netease-cloud-music_1.1.0_amd64_ubuntu.deb
    

    QQ

    项目地址:

    [bestwu/qq] https://hub.docker.com/r/bestwu/qq

    Docker-ce安装

    添加 Docker-CE 源

    sudo nano vim /etc/apt/sources.list.d/docker.list
    

    添加

    #Docker-CE
    deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable
    

    导入Docker官方的GPG密钥

    curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
    

    更新源

    sudo apt-get update
    

    安装 Docker-CE

    sudo apt-get install docker-ce
    

    配置 Docker 国内加速

    
    cd /etc/docker/
    sudo nano daemon.json 
    
      {
       "registry-mirrors": ["https://registry.docker-cn.com"]
      }
    

    重启 Docker 服务

    systemctl restart docker.service
    

    Docker Hub拉取 bestwu/qq

    命令行中输入如下内容

    sudo docker pull bestwu/qq
    

    3.获取audio的组ID

    getent group audio | cut -d: -f3
    

    4.创建qq的yml文件,

    nano qq.yml
    
    version: '2'
    services:
      qq:
        image: bestwu/qq:office    # 后面这个 office 改成 latest , 登录的就是QQ,否则是Tim
        container_name: qq
        devices:
          - /dev/snd #声音
        volumes:
          - /tmp/.X11-unix:/tmp/.X11-unix
          - $HOME/TencentFiles:/TencentFiles
        environment:
          - DISPLAY=unix$DISPLAY
          - XMODIFIERS=@im=fcitx #中文输入
          - QT_IM_MODULE=fcitx
          - GTK_IM_MODULE=fcitx
          - AUDIO_GID=29 # 填写你获取*audio*的组ID 主机audio gid 解决声音设备访问权限问题
          - GID=$GID # 可选 默认1000 主机当前用户 gid 解决挂载目录访问权限问题
          - UID=$UID # 可选 默认1000 主机当前用户 uid 解决挂载目录访问权限问题
    

    5.启动qq

    sudo docker-compose -f qq.yml up
    

    Wechat

    项目地址:
    [bestwu/Wechat] https://hub.docker.com/r/bestwu/wechat
    1.创建wehchat的yml文件,

      nano wechat.yml
    
       version: '2'
       services:
         wechat:
           image: bestwu/wechat
           container_name: wechat
           devices:
             - /dev/snd
           volumes:
             - /tmp/.X11-unix:/tmp/.X11-unix
             - $HOME/WeChatFiles:/WeChatFiles
           environment:
             - DISPLAY=unix$DISPLAY
             - QT_IM_MODULE=fcitx
             - XMODIFIERS=@im=fcitx
             - GTK_IM_MODULE=fcitx
             - AUDIO_GID=63 # 可选 默认63(fedora) 主机audio gid 解决声音设备访问权限问题
             - GID=1000 # 可选 默认1000 主机当前用户 gid 解决挂载目录访问权限问题
             - UID=1000 # 可选 默认1000 主机当前用户 uid 解决挂载目录访问权限问题
    

    5.启动wechat

    sudo docker-compose -f wechat.yml up
    

    WPS

    wegt http://117.128.6.19/cache/kdl.cc.ksosoft.com/wps-community/download/6757/wps-office_10.1.0.6757_amd64.deb?ich_args2=466-06145906042604_3fcf4abd6588b50106ad34062ce47a6f_10001002_9c89612ddfc6f4d49033518939a83798_8b59f8b0e134758ddeb7673738a91260
    
    sudo dpkg -i wps-office_10.1.0.6757_amd64.deb
    
    sudo apt-get install -f
    
    sudo dpkg -i wps-office_10.1.0.6757_amd64.deb
    

    VMware

    先去官网下载最新的VMware linux安装包,后缀名大概是VMware什么什么.bundle

    chmod +x VMware什么什么.bundle
    
    ./VMware什么什么.bundle
    

    Virtualbox

    wget https://download.virtualbox.org/virtualbox/6.0.4/virtualbox-6.0_6.0.4-128413~Ubuntu~bionic_amd64.deb
    
    sudo dpkg -i virtualbox-6.0_6.0.4-128413~Ubuntu~bionic_amd64.deb
    
    sudo apt-get install -f
    
    sudo dpkg -i virtualbox-6.0_6.0.4-128413~Ubuntu~bionic_amd64.deb
    

    钉钉

    https://pan.baidu.com/s/1NznYL5fV8sUWInmUgciXXQ
    
    sudo dpkg -i dingding.deb
    
    sudo apt-get install -f
    
    sudo dpkg -i dingding.deb
    

    Atom编辑器

    wget -qO  -  https://packagecloud.io/AtomEditor/atom/gpgkey | sudo apt-key add  - 
    sudo sh -c 'echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" > /etc/apt/sources.list.d/atom.list'
    sudo apt-get update
    sudo apt-get install atom 
    sudo apt-get install atom-beta
    

Log in to reply