Just download the latest osmc for Raspberry, burn it to sdcard and plug.
Install kore at your android, enable service->webserver->remote http at your osmc,
Huray... i got media centre with remote control :)
The same does with openelec and xbian, it's pretty, and off course available for raspberry pi.
Friday, August 28, 2015
Saturday, August 22, 2015
Clock skew detected. Your build may be incomplete.
Happen to me many times, and keep forgeting this:
find . -exec touch {} \;
Bye bye "Clock skew detected. Your build now can be completed." :)
find . -exec touch {} \;
Bye bye "Clock skew detected. Your build now can be completed." :)
Thursday, August 20, 2015
Running Xorg From rc.local as common user
To start Xserver with no desktop manager at boot time and run as common user, simply put this line at /etc/rc.local
setsid sh -c 'su -c startx username <> /dev/tty1 >&0 2>&1' &
Replace the startx with your Xserver application such as startxfce, startlxde etc.
In my system i want to run the xterm on 1024x768 monitor with whole area active, no need mouse moved to active xterm area, says the geometri of xterm to cover whole area would be 170x59 character size, the command became:
setsid sh -c 'su -c "xinit -geometry 170x59" username <> /dev/tty1 >&0 2>&1' &
Ref: http://unix.stackexchange.com/questions/146758/how-do-i-run-as-a-limited-user-while-logged-in-as-root-and-another-question
setsid sh -c 'su -c startx username <> /dev/tty1 >&0 2>&1' &
Replace the startx with your Xserver application such as startxfce, startlxde etc.
In my system i want to run the xterm on 1024x768 monitor with whole area active, no need mouse moved to active xterm area, says the geometri of xterm to cover whole area would be 170x59 character size, the command became:
setsid sh -c 'su -c "xinit -geometry 170x59" username <> /dev/tty1 >&0 2>&1' &
Ref: http://unix.stackexchange.com/questions/146758/how-do-i-run-as-a-limited-user-while-logged-in-as-root-and-another-question
VIm Cheatsheet
Cursor movement
h - move cursor left
j - move cursor down
k - move cursor up
l - move cursor right
w - jump forwards to the start of a word
W - jump forwards to the start of a word (words can contain punctuation)
e - jump forwards to the end of a word
E - jump forwards to the end of a word (words can contain punctuation)
b - jump backwards to the start of a word
B - jump backwards to the start of a word (words can contain punctuation)
0 - jump to the start of the line
^ - jump to the first non-blank character of the line
$ - jump to the end of the line
G - go to the last line of the document
5G - go to line 5
Tip Prefix a cursor movement command with a number to repeat it. For example, 4j moves down 4 lines.
h - move cursor left
j - move cursor down
k - move cursor up
l - move cursor right
w - jump forwards to the start of a word
W - jump forwards to the start of a word (words can contain punctuation)
e - jump forwards to the end of a word
E - jump forwards to the end of a word (words can contain punctuation)
b - jump backwards to the start of a word
B - jump backwards to the start of a word (words can contain punctuation)
0 - jump to the start of the line
^ - jump to the first non-blank character of the line
$ - jump to the end of the line
G - go to the last line of the document
5G - go to line 5
Tip Prefix a cursor movement command with a number to repeat it. For example, 4j moves down 4 lines.
Frame Buffer Set on Banana Pi
When you plug the HDMI of Banana Pi running Bananian to low resolution TV or Monitor, you won't get proper display. To correct this use the frame buffer setting,
sudo apt-get install fbset
Replace the /etc/fb.modes, fill it with these lines:
mode "640x480-60"
# D: 25.200 MHz, H: 31.500 kHz, V: 60.001 Hz
geometry 640 480 640 960 32
timings 39682 48 16 33 10 96 2
rgba 8/16,8/8,8/0,8/24
endmode
mode "768x576-75"
# D: 49.188 MHz, H: 46.580 kHz, V: 75.008 Hz
geometry 768 576 768 1152 32
timings 20330 128 32 32 8 128 5
accel true
rgba 8/16,8/8,8/0,8/24
endmode
sudo apt-get install fbset
Replace the /etc/fb.modes, fill it with these lines:
mode "640x480-60"
# D: 25.200 MHz, H: 31.500 kHz, V: 60.001 Hz
geometry 640 480 640 960 32
timings 39682 48 16 33 10 96 2
rgba 8/16,8/8,8/0,8/24
endmode
mode "768x576-75"
# D: 49.188 MHz, H: 46.580 kHz, V: 75.008 Hz
geometry 768 576 768 1152 32
timings 20330 128 32 32 8 128 5
accel true
rgba 8/16,8/8,8/0,8/24
endmode
Wednesday, August 12, 2015
Linux FIle & Media Server
I had several external usb hardisk. I need to bring them along with my laptop when needed. I though why not create a file server, so that i can still access it anywhere at home. Utilizing one of the cubieboard, i create this file server.
Samba Server
sudo apt-get install samba cifs-utils ntfs-3g dosfstools
add these lines at the end of /etc/samba/smb.conf
[media]
path = /media
public = yes
writable = yes
comment = smb share
printable = no
guest ok = yes
read only = no
directory mask = 0777
Samba Server
sudo apt-get install samba cifs-utils ntfs-3g dosfstools
add these lines at the end of /etc/samba/smb.conf
[media]
path = /media
public = yes
writable = yes
comment = smb share
printable = no
guest ok = yes
read only = no
directory mask = 0777
Tuesday, August 11, 2015
Homemade 3G Router/APCombo
This article show you how to make your own 3g router using embedded linux, in my case i'm using a raspberry pi 1 Model B. What you need other then the board it self were 3g modem and wifi dongle. The Wifi dongle that were gonna use, should have multiple tx queue features, one from atheros should do the trick.
Ethernet/LAN was bridged with Wifi. In this way client via ethernet can also connected to the network. The bridge hold the system ip address, and no ip assigned to ethernet or wifi.
3G connection were done by umtskeeper which include sakis3g, AP were done by hostapd working along with dnsmasq for dhcp and brigde util to configure the network bridge.
Ethernet/LAN was bridged with Wifi. In this way client via ethernet can also connected to the network. The bridge hold the system ip address, and no ip assigned to ethernet or wifi.
3G connection were done by umtskeeper which include sakis3g, AP were done by hostapd working along with dnsmasq for dhcp and brigde util to configure the network bridge.
Friday, August 7, 2015
Media Player On Allwinner device.
This is my note to make media player that work on Cubieboard, Bananapi and other allwinner board. Assume you already had a working debian wheezy system running on the board.
Add these repository:
sudo vi /etc/apt/source.list
deb http://dl.bananian.org/packages/ wheezy main
deb http://packages.cubian.org/ wheezy main non-free
Add gpg key:
wget -O - http://packages.cubian.org/cubian.gpg.key | sudo apt-key add -
wget -O - http://dl.bananian.org/packages/bananian-packages.key | sudo apt-key add -
Add these repository:
sudo vi /etc/apt/source.list
deb http://dl.bananian.org/packages/ wheezy main
deb http://packages.cubian.org/ wheezy main non-free
Add gpg key:
wget -O - http://packages.cubian.org/cubian.gpg.key | sudo apt-key add -
wget -O - http://dl.bananian.org/packages/bananian-packages.key | sudo apt-key add -
Subscribe to:
Posts (Atom)