-
Ubuntu下,如何保留屏幕亮度设置 - [应用]
2009-02-27
1.修改/etc/default/acpi-support
ENABLE_LAPTOP_MODE=true
2.修改 /etc/laptop-mode/laptop-mode.conf
交流电模式下使用 laptop mode
#
# Enable laptop mode when on AC power.
#
ENABLE_LAPTOP_MODE_ON_AC=1
#电池那也可设为1
使用 laptop mode 进行LCD亮度控制
#
# Should laptop mode tools control LCD brightness?
#
CONTROL_BRIGHTNESS=1
#
# Commands to execute to set the brightness on your LCD
#
BATT_BRIGHTNESS_COMMAND="echo 0"
LM_AC_BRIGHTNESS_COMMAND="echo 9"
NOLM_AC_BRIGHTNESS_COMMAND="echo 9"
BRIGHTNESS_OUTPUT="/sys/class/backlight/acpi_video1/brightness"
如果你不明白上面的设置的意思,可以参考下面的说明
*********************************************************************
# * If your system has the file "/proc/acpi/video/VID/LCD/brightness" (VID may
# be VID1 or similar), use this file as BRIGHTNESS_OUTPUT, and use
# the command "echo <value>". The possible values can be listed using the
# command:
#
# cat /proc/acpi/video/VID/LCD/brightness
# * If you have a file /sys/class/backlight/.../brightness, then you can use
# that file as BRIGHTNESS_OUTPUT, and the command "echo <value>".
#
# As far as I understand it the values are between 0 and
# the value contained in the file /sys/class/backlight/.../max_brightness.
*********************************************************************** -
在ubuntu上安装中文字体 - [应用]
2008-04-25
把字体(*.ttf)拷贝到/usr/share/fonts,这样gimp也可以用特殊的中文字体了。
-
通过蓝牙,从ubuntu的pc上向dopod 575的手机上发送文件 - [应用]
2008-02-17
我最近养成一个习惯,喜欢在等人等车的时候用手机看一些技术文档。可是我的工作系统是ubuntu,手机又是windows mobile系统的smartphone,所以只有通过bluetooth发送文件。 今天我实践了一下,还是很成功的。下面把主要过程记录一下。
1. pc上安装软件包 apt-get install
* bluez-pin
* bluez-hcidump
* bluez-utils
* gnome-bluetooth2. 修改 /etc/bluetooth/hcid.conf
将security user 改为 security auto
3. 启动 bluetooth 服务
sudo /etc/init.d/bluetooth start
4. 将575的蓝牙开启,注意状态是:“可识别” ,不是“打开”。
5. 输入 #hcitool scan得到手机的device id
e.g. Scanning ...
00:01:EC:0C:D2:00 HTC Smartphone下面还可以做一个测试,是ubuntu蓝牙开发组的测试 https://wiki.ubuntu.com/Bluetooth/TestPlan
6. 将开始-设置-无线数据交换,把里面的“接收无线书记交换内容”的勾,勾上。(这步,我没有做,一直失败。)
7。通过gnome-obex-send发送
#sudo gnome-obex-send -d 00:01:EC:0C:D2:00 file
(看网上资料,obex可能有bug,有的系统可能需要先运行 #hciconfig hci0 inqmode 0 )
文件缺省发送到 \storage\my documents。
补充:
gnome-obex-send 已经被 bluetooth-sendto代替了。
-
ubuntu如何自动解决包依赖问题 - [应用]
2008-02-13
相信ubuntu用户都遇到过这种情况,在编译某些源代码时,
被提示缺少某些库文件,可是由于不知道库在ubuntu源中
具体的名字,无法正确的apt-get install。
现在有一个工具auto-apt可以帮助你解决问题。
首先,安装auto-apt:
# apt-get install auto-apt
然后,你所要做的仅仅是:
# auto-apt run command
这里“command”指在运行过程中可能出现“需求文件不存在”问题的命令。例如:
# auto-apt run ./configure
一会儿,它就会告诉你要安装所需的软件包并自动转到apt-get处理。如果你正在运行X,
就会一个图形界面提示窗口。就这么简单。
-
让ubuntu sudo不输入密码 - [开发]
2008-02-13
1)/etc/sudoers 的属性改成740
2)编辑sudoers, 将最后一行改为
%admin ALL=NOPASSWD:ALL
3)/etc/sudoers 的属性改回440







