2013年12月4日 星期三
2013年12月3日 星期二
Apt-Target release,how to set?
if you want to spin unstable tool, you should do..
apt-get update
- edit /etc/apt/conf.d/sources.list
#### add line unstable #########
deb http://ftp.us.debian.org/debian unstable main contrib non-free
Retrieve new lists of packagesreference:
2013年12月2日 星期一
Print Detailed information about all PCI buses and devices in the system
2013年12月1日 星期日
Linux Sound Architecture
Advanced Linux Sound Architecture (ALSA)
reference:
Part of Linux Kernel is a software framework that supported API for sound card device driver.
- application->pulseaudio->ALSA->hardware
alsamixer:
A graphical mixer program for ALSA that used to adjust
adjust the volume and configuration.
reference:
- http://www.alsa-project.org/main/index.php/Main_Page
- http://en.wikipedia.org/wiki/PulseAudio
- http://en.wikipedia.org/wiki/Advanced_Linux_Sound_Architecture
PulseAudio
In brief, PulseAudio is a proxy for your sound applications.
In Debian, applications such as Flesh, Skype are based on PulseAudio.
(Just know the name, but not study in depth.)
reference:
In Debian, applications such as Flesh, Skype are based on PulseAudio.
(Just know the name, but not study in depth.)
reference:
- https://wiki.debian.org/en/PulseAudio#Various_problems_with_Skype_and_Wine
- http://www.freedesktop.org/wiki/Software/PulseAudio/
Init script
Debian uses a Sys-V like init system for executing shell scripts when the
system runlevel changes. How to do?
Adding symbolic links to cause the script to be executed when the system goes down, or comes up.
The example of script executed as init.
- /etc/init.d/xxx (xxx : your init script)
- update-rc xxx
Adding symbolic links to cause the script to be executed when the system goes down, or comes up.
The example of script executed as init.
- The script is just a shell script with 'Switch case ' statement.
#! /bin/sh
# /etc/init.d/blah
#
# Some things that run always
touch /var/lock/blah
# Carry out specific functions when asked to by the system
case "$1" in
start)
echo "Starting script blah "
echo "Could do more here"
;;
stop)
echo "Stopping script blah"
echo "Could do more here"
;;
restart|reload)
$0 stop
sleep 3
$0 start
;;
*)
echo "Usage: /etc/init.d/blah {start|stop}"
exit 1
;;
esac
exit 0
...................................................................................
reference:
訂閱:
意見 (Atom)