- Samba [Network Sharing] (optional)
(...continued)- Configure share folder
In console mode open file /etc/samba/smb.conf for editDarkStar:~#joe /etc/samba/smb.conf |
,and type in the following code:[global]
hosts allow = 192.168.0. 192.168.2. 127.
preferred master = no
local master = no
domain master = no
client lanman auth = yes
lanman auth = yes
name resolve order = bcast host
workgroup = WORKGROUP
security=user
server string
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
[MYMOVIES]
comment = MYMOVIES
path = /mnt/mymovies
valid users = root user1 user2 user3
public = no
writable = yes
printable = no
|
Then save the file and exit by pressing Ctrl+K followed by X.
** NOTE: The above configuration file allow access from all hosts with an IP address 192.168.0.x into the contents of the /mnt/mymovies folder. That is as long as the user connecting is one of root,user1,user2,user3 which they also have write access to the directory
Finally adding users in the SAMBA password list is performed using the smbpasswd command like seen belowDarkStar:~#smbpasswd -a username1 |
- Alsa [Sound System]
- Configure ALSA Channels
In console mode open file ~/.asoundrc for editDarkStar:~#joe ~/.asoundrc |
,and type in the following code: #defaults.ctl.card 3
#defaults.pcm.card 3
#defaults.timer.card 3
pcm.!default {
type plug
slave {
pcm "both"
}
}
pcm.both {
type route
slave {
pcm multi
channels 6
}
ttable.0.0 1.0
ttable.1.1 1.0
ttable.0.2 1.0
ttable.1.3 1.0
ttable.0.4 1.0
ttable.1.5 1.0
}
pcm.multi {
type multi
slaves.a {
pcm "tv"
channels 2
}
slaves.b {
pcm "receiver"
channels 2
}
slaves.c {
pcm "analog"
channels 2
}
bindings.0.slave a
bindings.0.channel 0
bindings.1.slave a
bindings.1.channel 1
bindings.2.slave b
bindings.2.channel 0
bindings.3.slave b
bindings.3.channel 1
bindings.4.slave c
bindings.4.channel 0
bindings.5.slave c
bindings.5.channel 1
}
pcm.tv {
type hw
card 0
device 3
channels 2
}
pcm.receiver {
type hw
card 0
device 1
channels 2
}
pcm.analog {
type hw
card 0
device 0
channels 2
} |
Then save the file and exit by pressing Ctrl+K followed by X.
Should you have more than one sound cards in the HTPC and the one you intend on using by default is not listed as index 0 when you issue the commandDarkStar:~#cat /proc/asound/cards |
,then remove the # character on the first three lines of the previous code and replace number 3 with the index number of the card you wish to use as default.
- Set default Volume Settings
Issue the alsamixer command in console mode to access the ALSA Mixer menu.,then press on F5 to gain visibility on all card channels. You can browse around the card channels and mixer volume bars using the arrow keys of your keyboard.
When happy with your volume changes exit the mixer by pressing the Esc key and store your settings using the command below
A package with the changes mentioned in this chapter is available for download
here (a9e1625112e0913d2bb18ccae069ed2b)
No comments:
Post a Comment