Force VGA monitor output on Raspberry Pi
--------------------------
$ sudo nano /boot/config.txt
Uncomment line 25: hdmi_mode=1
# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
hdmi_mode=1
save and reboot
$ sudo shutdown -r now
--------------------------
nedjelja, 16. veljače 2014.
subota, 15. veljače 2014.
Install CUPS Server to Raspberry Pi - Raspbian
--------------------------------
$ sudo apt-get install mc nano cups
--------------------------------
$ sudo cp /etc/cups/cupsd.conf /etc/cups/cupsd.conf.original
--------------------------------
$ sudo chmod a-w /etc/cups/cupsd.conf.original
--------------------------------
$ sudo cupsctl --share-printers --remote-admin --remote-printers
--------------------------------
http://raspberry_pi_IP:631
example:
http://192.168.1.16:631
If you can‘t connect to CUPS Server on Raspberry Pi via web browser try command line bellow:
$ sudo usermod -aG lpadmin USERNAME - "your Raspberry Pi USERNAME"
or
$ sudo adduser USERNAME lpadmin - "your Raspberry Pi USERNAME"
--------------------------------
$ sudo /etc/init.d/cups restart
--------------------------------
http://raspberry_pi_IP:631
example:
http://192.168.1.16:631
--------------------------------
$ sudo apt-get install mc nano cups
--------------------------------
$ sudo cp /etc/cups/cupsd.conf /etc/cups/cupsd.conf.original
--------------------------------
$ sudo chmod a-w /etc/cups/cupsd.conf.original
--------------------------------
$ sudo cupsctl --share-printers --remote-admin --remote-printers
--------------------------------
http://raspberry_pi_IP:631
example:
http://192.168.1.16:631
If you can‘t connect to CUPS Server on Raspberry Pi via web browser try command line bellow:
$ sudo usermod -aG lpadmin USERNAME - "your Raspberry Pi USERNAME"
or
$ sudo adduser USERNAME lpadmin - "your Raspberry Pi USERNAME"
--------------------------------
$ sudo /etc/init.d/cups restart
--------------------------------
http://raspberry_pi_IP:631
example:
http://192.168.1.16:631
--------------------------------
petak, 14. veljače 2014.
Pidora on Raspberry Pi configure static IP address
Pidora on Raspberry Pi configure static IP address
$ su -
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:xx:xx:xx:xx:xx
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
NM_CONTROLLED=yes
DHCPCLASS=
HWADDR=00:xx:xx:xx:xx:xx (your MAC address)
IPADDR=192.168.1.16
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS1=8.8.8.8
--------------------
# /etc/init.d/network restart
--------------------
$ su -
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:xx:xx:xx:xx:xx
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
NM_CONTROLLED=yes
DHCPCLASS=
HWADDR=00:xx:xx:xx:xx:xx (your MAC address)
IPADDR=192.168.1.16
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS1=8.8.8.8
--------------------
# /etc/init.d/network restart
--------------------
Configure static network IP on Raspberry Pi
Configure static network IP on Raspberry Pi
Raspian - Debian
Basic vi commands:
i - insert text before cursor, until hit
I - insert text at beginning of current line, until hit
a - append text after cursor, until hit
:wq - quit vi, writing out modified file to file named in original invocation
http://www.lagmonster.org/docs/vi.html
----------------------------
$ sudo vi /etc/network/interfaces
----------------------------
auto lo
iface lo inet loopback
iface eth0 inet static
address 192.168.1.16 (your Raspberry Pi static IP)
netmask 255.255.255.0
gateway 192.168.1.1
allow-hotplug wlan0
iface default inet dhcp
----------------------------
Restart network:
$ sudo /etc/init.d/networking restart
----------------------------
Reboot your Rasberry Pi:
$ sudo shutdown -r now
----------------------------
Raspian - Debian
Basic vi commands:
i - insert text before cursor, until
I - insert text at beginning of current line, until
a - append text after cursor, until
:wq - quit vi, writing out modified file to file named in original invocation
http://www.lagmonster.org/docs/vi.html
----------------------------
$ sudo vi /etc/network/interfaces
----------------------------
auto lo
iface lo inet loopback
iface eth0 inet static
address 192.168.1.16 (your Raspberry Pi static IP)
netmask 255.255.255.0
gateway 192.168.1.1
allow-hotplug wlan0
iface default inet dhcp
----------------------------
Restart network:
$ sudo /etc/init.d/networking restart
----------------------------
Reboot your Rasberry Pi:
$ sudo shutdown -r now
----------------------------
Icons background on xfce4, Xubuntu, Mint-xfce4
Icons background on xfce4, Xubuntu, Mint-xfce4
------------------------------------
1.
Open XTerm, Terminal or Terminator
$ leafpad ~/.gtkrc-2.0
add this script bellow:
style "xfdesktop-icon-view" {
XfdesktopIconView::label-alpha = 15
XfdesktopIconView::selected-label-alpha = 100
XfdesktopIconView::ellipsize-icon-labels = 1
XfdesktopIconView::shadow-x-offset = 1
XfdesktopIconView::shadow-y-offset = 1
XfdesktopIconView::shadow-color = "#000000"
XfdesktopIconView::selected-shadow-x-offset = 0
XfdesktopIconView::selected-shadow-y-offset = 0
XfdesktopIconView::selected-shadow-color = "#ffffff"
XfdesktopIconVIew::cell-spacing = 6
XfdesktopIconView::cell-padding = 6
XfdesktopIconView::cell-text-width-proportion = 2.5
base[NORMAL] = "#cccccc"
base[SELECTED] = "#cccccc"
base[ACTIVE] = "#cccccc"
fg[NORMAL] = "#ffffff"
fg[SELECTED] = "#000000"
fg[ACTIVE] = "#000000"
}
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"
save and exit
------------------------------------
$ killall xfdesktop
------------------------------------
2.
Menu > Settings > Settings Manager > Aplication Autostart
Add > Name > xfwm4 --replace > command > xfwm4 --replace
------------------------------------
$ killall xfdesktop
------------------------------------
------------------------------------
1.
Open XTerm, Terminal or Terminator
$ leafpad ~/.gtkrc-2.0
add this script bellow:
style "xfdesktop-icon-view" {
XfdesktopIconView::label-alpha = 15
XfdesktopIconView::selected-label-alpha = 100
XfdesktopIconView::ellipsize-icon-labels = 1
XfdesktopIconView::shadow-x-offset = 1
XfdesktopIconView::shadow-y-offset = 1
XfdesktopIconView::shadow-color = "#000000"
XfdesktopIconView::selected-shadow-x-offset = 0
XfdesktopIconView::selected-shadow-y-offset = 0
XfdesktopIconView::selected-shadow-color = "#ffffff"
XfdesktopIconVIew::cell-spacing = 6
XfdesktopIconView::cell-padding = 6
XfdesktopIconView::cell-text-width-proportion = 2.5
base[NORMAL] = "#cccccc"
base[SELECTED] = "#cccccc"
base[ACTIVE] = "#cccccc"
fg[NORMAL] = "#ffffff"
fg[SELECTED] = "#000000"
fg[ACTIVE] = "#000000"
}
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"
save and exit
------------------------------------
$ killall xfdesktop
------------------------------------
2.
Menu > Settings > Settings Manager > Aplication Autostart
Add > Name > xfwm4 --replace > command > xfwm4 --replace
------------------------------------
$ killall xfdesktop
------------------------------------
subota, 11. siječnja 2014.
Install MPD server on Raspberry Pi - Music Player Daemon
Music Player Daemon
http://www.musicpd.org/
$ sudo apt-get update
$ sudo apt-get upgrade
$ mkdir ~/Music
$ sudo apt-get install mpd nano
$ sudo apt-get install alsa-utils
$ sudo modprobe snd_bcm2835
$ sudo nano /etc/rc.local
$ sudo amixer cset numid=3 1
Set Audio output from Raspberry Pi: 0=auto, 1=analog, 2=hdmi
I put analog output from Raspberry Pi > Hi-Fi.
$ sudo alsamixer
$ sudo nano /etc/mpd.conf
Change the following lines:
music_directory "/home/pi/music"
playlist_directory "/home/pi/Music/mpd/playlists"
bind_to_address "your static IP, example 192.168.1.16"
or
bind_to_address "127.0.0.1"
mixer_type "software"
$ sudo chmod g+w /var/lib/mpd/music/ /var/lib/mpd/playlists/
$ sudo chgrp audio /var/lib/mpd/music/ /var/lib/mpd/playlists/
$ sudo service mpd restart
--------------------
MPD Client install on Mint, Xubuntu, Ubuntu
$ sudo apt-get install ufw ario gmpc
$ sudo ufw disable
You must allow port 6600 in firewall.
$ sudo ufw proto tcp from 192.168.1.16 to any port 6600
192.168.1.16 is only my example, you must put your Raspberry Pi IP address !!!
$ sudo ufw enable
Ario
$ ario
Configure Ario, Edit > Preferences > Host "Raspberry Pi IP exp. 192.168.1.16"

Gnome Music Player Client
$ gmpc
Configure gmpc, Music > Preferences > Host "Raspberry Pi IP exp. 192.168.1.16" > Music directory > /home/pi/Music
MPDroid client for Android:
https://play.google.com/store/apps/details?id=com.namelessdev.mpdroid
--------------------
petak, 10. siječnja 2014.
Raspberry Pi - Raspbian ,LANGUAGE = (unset), LC_ALL = (unset)
$ sudo apt-get update
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TIME = "en_IE.UTF-8",
LC_MONETARY = "en_IE.UTF-8",
LC_ADDRESS = "en_IE.UTF-8",
LC_TELEPHONE = "en_IE.UTF-8",
LC_NAME = "en_IE.UTF-8",
LC_MEASUREMENT = "en_IE.UTF-8",
LC_IDENTIFICATION = "en_IE.UTF-8",
LC_NUMERIC = "en_IE.UTF-8",
LC_PAPER = "en_IE.UTF-8",
LANG = "hr_HR.UTF-8"
$ sudo apt-get install locales-all
$ sudo raspi-config
$ sudo apt-get update
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TIME = "en_IE.UTF-8",
LC_MONETARY = "en_IE.UTF-8",
LC_ADDRESS = "en_IE.UTF-8",
LC_TELEPHONE = "en_IE.UTF-8",
LC_NAME = "en_IE.UTF-8",
LC_MEASUREMENT = "en_IE.UTF-8",
LC_IDENTIFICATION = "en_IE.UTF-8",
LC_NUMERIC = "en_IE.UTF-8",
LC_PAPER = "en_IE.UTF-8",
LANG = "hr_HR.UTF-8"
$ sudo apt-get install locales-all
$ sudo raspi-config
$ sudo apt-get update
Pretplati se na:
Postovi (Atom)

















