ubuntu系问题记录(让linux更加适合coder)

1.开机默认亮度

        1》首先确定电脑屏幕亮度区间

#: cd /sys/class/backlight/intel_backlight
#: ls
    此目录下有三个文件,分别表示:
    actual_brightness     最小值  
    brightness            当前值
    max_brightness        最大值


          2》 确认亮度区间后

    #:vi /etc/rc.local

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
#添加如下一行命令,103必须在亮度区间内。
echo 103 > /sys/class/backlight/intel_backlight/brightness
exit 0


2.不支持exfat格式U盘

@感谢deepin社区xliang9550在论坛的回复
#我只安装了这一个软件即可正常访问exfat格式的盘了,另外还有exfat-utils没有测试.
$: apt-get install exfat-fuse


3.配置java环境变量

$: vi /etc/profile
#在最后添加后四行,注意修改路径
#set java environment
export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_51
export JRE_HOME=${JAVA_HOME}/jre
export PATH=${JAVA_HOME}/bin:$PATH
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib

4.设置桌面图标(以eclipse为例)

在桌面新建文件eclipse.desktop

#添加如下内容,适当修改
[Desktop Entry]
#字符集格式
Encoding=UTF-8
#图标名
Name=Eclipse
Comment=Eclipse IDE
#执行文件路径[修改]
Exec=/usr/lib/eclipse/eclipse
#图标文件路径[修改]
Icon=/usr/lib/eclipse/icon.xpm
#是否打开终端
Terminal=false
#类型
Type=Application
Categories=GNOME;Application;Development;
StartupNotify=true

附:

在linux deepin2014.3当中,出现了这样的问题:

    可以在终端顺利启动Eclipse,但是鼠标双击,或者用起动器启动就会出现如下的内容:

A Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No java virtual machine was found after searching the following locations:…

    解决办法是在终端进入你的eclipse目录,然后输入:

$: mkdir jre
$: cd jre
$: ln -s JDK目录/bin bin



你可能感兴趣的:(ubuntu)