nedjelja, 16. veljače 2014.

Change audio to 3.5mm or headphone output on Raspberry Pi

--------------------------

Change audio to 3.5mm or headphone output on Raspberry Pi

--------------------------
$ sudo aptitude install alsa-utils

$ lsmod | grep snd_bcm2835

$ sudo -l

# amixer cset numid=3 1

0=auto, 1=headphones, 2=hdmi

or

$ sudo amixer cset numid=3 1


$ sudo alsamixer

--------------------------

Force VGA monitor output on Raspberry Pi

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

--------------------------

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

--------------------------------

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

--------------------

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

----------------------------

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

------------------------------------