deepin 系统一些配置

原创
2020/06/24 10:10
阅读数 379

deepin
 
a
ctrl alt f2
进入tty2
sudo apt remove bumblebee bumblebee-nvidia nvidia-smi
sudo apt purge bumblebee
 
:重启系统,按住↓进入recovery,然后利用fsck命令修复系统盘即可。比如我的系统分区为/dev/sda3,就是:fsck  /dev/sda3  然后一直yes即可修复。
 
JAVA_HOME=/usr/java/jdk1.8.0_60
  CLASSPATH=$JAVA_HOME/lib/
  PATH=$PATH:$JAVA_HOME/bin
  export PATH JAVA_HOME CLASSPATH
 
 
遇到9代和10代的卡、开机卡logo、死机或使用大黄蜂开机卡logo、死机的可以采用给内核传递参数 acpi_osi=! acpi_osi="Windows 2009" 如果有用,进系统以后修改/etc/default/grub 在最后加上一句 GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT "'acpi_osi=! acpi_osi="Windows 2009"'

然后升级最好用apt-get update&&apt-get dist-upgrade
 
eclipse svn
sudo apt-get install libsvnkit-java
eclise.ini加上配置
-Djava.library.path=/usr/lib/x86_64-linux-gnu/jni
 
 
 

配置config文件

https://blog.csdn.net/hao495430759/article/details/80673568

创建个config文件在~/.ssh下面。直接在这个文件夹下创建出这个文件,然后填充如下内容。

 

# a
Host gitlaba.com
HostName gitlaba.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/a
User yourname
 
d

Host gitee.com

HostName gitee.com

PreferredAuthentications publickey

IdentityFile /home/czw/.ssh/id_rsa

User czw

 
ssh-agent bash
ssh-add ~/.ssh/id_rsa
 

自动输入密钥对应的密码在本地执行:

eval `ssh-agent` 
ssh-add  对应的key文件

 
 
在deepin linux中用命令 sudo hwclock -w --localtime 
 
 

Deepin制作快捷启动图标

https://blog.csdn.net/keenshinsword/article/details/79086423

 

 
 

deepin虽然自带搜狗输入法,但是其占用内存过高(希望以后能修好)。

现在我们要卸载输入法:

输入如下命令:

sudo apt remove fcitx*

然后再装五笔输入法:

sudo apt install fcitx-table-wubi

#Deepin下切换指令(注意没有file) gsettings set com.deepin.wrap.gnome.desktop.background picture-uri"/home/user/Desktop/1.jpg"
 

deepin,优麒麟,ubuntu订制livecd工具,支持所有基于debian发行版

 
wifi慢解决方法
sudo rmmod iwlwifi
sudo modprobe iwlwifi 11n_disable=1
modinfo iwlwifi
如果以上可以成功,可以写入配置文件,避免每次开机都运行以上命令。
cat /etc/modprobe.d/office_wifi.conf
options iwlwifi 11n_disable=1
 
 

wine的乱码解决

wine运行程序的时候,默认是Tahoma字体,用Tahoma是无法显示中文的。因此,需要使用中文字体,例如simsun。

PlayOnLinux 中文支持

 

1. 从windows字体目录中复制simsun.ttc到"XXXX/drive_c/windows/Fonts"和"/usr/share/fonts/truetype/msfonts"这两个目录下面(msfonts为自己建立的目录)

 

 

2. 修改Wine的注册表

 

2.1 定位到HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes, 将MS Shell Dlg 及 MS Shell Dlg 2的值数据修改为simsun

 

2.2 定位到HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Fonts,新建字符串项: simsun (TrueType),修改此值数据为 z:\usr\share\fonts\truetype\msfonts\simsun.ttc

 

 
触摸板手势配置文件路径是:/usr/share/dde-daemon/gesture.json
自己修改里面的内容后注销桌面就能生效自定义的手势功能。
我是air13寸的,自用配置如下:
[
  {
    "Name": "swipe",
    "Direction": "up",
    "Fingers": 3,
    "Action": {
      "Type": "shortcut",
      "Action": "ctrl+shift+t"
    }
  },
  {
    "Name": "swipe",
    "Direction": "down",
    "Fingers": 3,
    "Action": {
      "Type": "shortcut",
      "Action": "ctrl+w"
    }
  },
  {
    "Name": "swipe",
    "Direction": "left",
    "Fingers": 3,
    "Action": {
      "Type": "shortcut",
      "Action": "ctrl+Prior"
    }
  },
  {
    "Name": "swipe",
    "Direction": "right",
    "Fingers": 3,
    "Action": {
      "Type": "shortcut",
      "Action": "ctrl+Next"
    }
  },
  {
    "Name": "tap",
    "Direction": "none",
    "Fingers": 3,
    "Action": {
      "Type": "commandline",
      "Action": "xdotool click 2"
    }
  },
  {
    "Name": "swipe",
    "Direction": "up",
    "Fingers": 4,
    "Action": {
      "Type": "built-in",
      "Action": "ShowWorkspace"
    }
  },
  {
    "Name": "swipe",
    "Direction": "down",
    "Fingers": 4,
    "Action": {
      "Type": "shortcut",
      "Action": "alt+F2"
    }
  },
  {
    "Name": "swipe",
    "Direction": "left",
    "Fingers": 4,
    "Action": {
      "Type": "built-in",
      "Action": "SwitchWorkspace"
    }
  },
  {
    "Name": "swipe",
    "Direction": "right",
    "Fingers": 4,
    "Action": {
      "Type": "built-in",
      "Action": "ReverseSwitchWorkspace"
    }
  }
]
展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
0 评论
0 收藏
0
分享
返回顶部
顶部