-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRaspberrySetup.txt
More file actions
121 lines (92 loc) · 2.87 KB
/
RaspberrySetup.txt
File metadata and controls
121 lines (92 loc) · 2.87 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
Raspi-Setup
----------------------------------
sudo raspi-config
Advanced Config -> Enable Serial (UART)
Update
----------------------------------
sudo apt-get update
sudo apt-get upgrade
Change Hostname (-> "musicbox")
----------------------------------
sudo nano /etc/hostname
sudo /etc/init.d/hostname.sh
sudo reboot
Change password (-> )
----------------------------------
passwd
Install MONO
----------------------------------
sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
echo "deb http://download.mono-project.com/repo/debian wheezy-apache24-compat main" | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get install mono-complete
Music Folder
---------------------------------------
mkdir /home/pi/Music
sudo chmod a+rwx /home/pi/Music
Install MPD (Music Deamon)
-----------------------------------
sudo apt-get install mpd mpc alsa-utils (maybe already installed)
#sudo chmod g+w /var/lib/mpd/music/ /var/lib/mpd/playlists/
#sudo chgrp audio /var/lib/mpd/music/ /var/lib/mpd/playlists/
MPD Config (sudo nano /etc/mpd.conf)
------------------------------------------
music_directory "/home/pi/Music"
metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc,comment"
audio_output {
type "alsa"
name "My ALSA Device"
device "hw:0,0" # optional hw:0,0 internal, hw:1,0 usb
# format "44100:16:2" # optional
# mixer_device "default" # optional
# mixer_control "PCM" # optional
# mixer_index "0" # optional
}
Samba Install
------------------------------------
sudo apt-get install samba samba-common-bin
Smaba Config (sudo nano /etc/samba/smb.conf)
------------------------------------
wins support = yes
[Music]
comment=Raspberry Pi Share
path=/home/pi/Music
browseable=Yes
writeable=Yes
create mask=0777
directory mask=0777
public=yes
Autostart programm
-----------------------------------
sudo chmod +x Jukebox.Runtime.exe
sudo nano /etc/rc.local
add before exit 0
sudo mono /home/pi/Desktop/Jukebox/Jukebox.Runtime.exe
Prozesse
-----------------------------------
to kill a running programm
sudo killall Jukebox.Runtime.exe
list all
ps -ef
Edimax WLAN
-----------------------------------
- disable powersaving
- sudo nano /etc/modprobe.d/8192cu.conf
- add content:
options 8192cu rtw_power_mgnt=0 rtw_enusbss=0
- wlan config
- sudo nano /etc/network/interfaces
- remove content:
allow-hotplug wlan0
iface wlan0 inet manual
- add content:
auto wlan0
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.0.222
submask 255.255.255.0
gateway 192.168.0.1
wpa-ap-scan 1
wpa-scan-ssid 1
wpa-ssid ""
wpa-psk ""