-
Notifications
You must be signed in to change notification settings - Fork 5
/
TODO
52 lines (40 loc) · 1.19 KB
/
TODO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
1. alsa.conf
$ sudo sed -i 's/#$//g' /usr/share/alsa/alsa.conf.{min,mix,plug}
2. /etc/rc.local
echo 55698 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate || true
echo 4899049 > /sys/kernel/debug/sched/migration_cost_ns || true
3. sysctl.conf
net.ipv4.tcp_rmem = 4634 88316 3345785
net.ipv4.tcp_wmem = 4584 89966 3455757
vm.max_map_count = 672156
4. mpd.conf
input_cache {
#size "465 MB"
size "487453249"
}
5. mpv.conf
#demuxer-max-bytes = 78338K
demuxer-max-bytes=80226757
icc-cache-dir=/dev/shm/
gpu-shader-cache-dir=/dev/shm/
demuxer-max-bytes=80226770
no-icc-cache
no-gpu-shader-cache
6. rc.local
### usb mount
if [ "$usbmount" = on ]; then
blkid | while read line; do
uuid=$(echo $line | grep -io uuid.* | cut -d\" -f2)
drive=$(echo $line | cut -d: -f1)
if [ -n "$uuid" ] && ! grep -q $uuid /etc/fstab && ! mount | grep -q "$drive"; then
type=$(echo $line | grep -o TYPE.* | cut -d\" -f2)
case $type in
vfat) opt="ro,codepage=949,iocharset=utf8" ;;
ntfs) opt="ro,umask=022" ;;
*) opt="ro" ;;
esac
[ -d "/mnt/$uuid" ] || sudo mkdir -p "/mnt/$uuid"
sudo mount -o "$opt" "$drive" "/mnt/$uuid"
fi
done
fi