Teste raspbmc: well the official package showed already some errors when an apt-get update was done... so I switced to xbian.org. I like this one since couchpotatoe and transmission are already built in, and I can install other packages I need... since it is based on debian
Xbian runs fine, but there seems to be an issue with my SD Card ( a transcend SDHC class 10 8GB card) file system gets corrupted after approx one week
Back up raspian/xbain installation:
Followed this instruction
Samstag, 30. März 2013
Montag, 30. Juli 2012
Raspberry PI
Raspian Linux image
- write to a ntfs external HD,
configure /etc/fstab according to http://www.liberiangeek.net/2012/04/auto-mount-windows-ntfs-partitions-in-ubuntu-12-04-precise-pangolin/UUID="822482F72482ED8B" /media/Pladde ntfs-3g defaults,auto,uid=1000,gid=1000,umask=000 0 0
- podcast:
install "podracer"- mail server and sending mails using the gmail account
mutt is your tool of choiceuse this instruction from lifehacker
and then, from 2013 onward sudo apt-get install libsasl2-modules
then echo "hello from raspi" | mutt test@mail.com test
- couchpotato: dowload movies when the are available
follow this guide http://raspberry-blog.com/howto/installing-couchpotato-on-raspberry-pi/- rtmp
Some radio streams are not available as mp3... solution: use a script to dump the stream and convert it to the mp3 Here the bash script, install rtmdump and mplayer and avconv#!/bin/bash
URL="${1}"
FILEmp3="${URL##*\/}"
FILEwav="${FILEmp3%%.*}.wav"
FILE3="${FILEwav%%.*}.mp3"
WDIR="$(mktemp -d "/tmp/rtpdump.XXXXXX")"
trap 'rm -rf "${WDIR}"' EXIT INT HUP
rtmpdump -r ${URL} -o ${WDIR}/${FILEmp3}
mplayer ${WDIR}/${FILEmp3} -ao pcm:file=${FILEwav}
avconv -i $FILEwav "$FILE3"
rm $FILEwav
- Samba
according to http://www.forum-raspberrypi.de/Thread-tutorial-samba-windows-freigabe-server-installation-raspbian-debian and dont forget to add the support for symlinks in case you would like to use an mounted devicehttp://www.maistech.net/2011/09/ubuntu-server-samba-sharing-with.html
- Sync your data do the cloud
Dropbox aint working: no support for the ARM chip. Therefore I used BOX.com, as descriebd here:http://linuxfordummies.org/mount-your-box-com-account-in-linux/
EDIT: dropbox seems to work now: see https://github.com/andreafabrizi/Dropbox-Uploader
- Check & Monitor temperature... and mail it to you
https://github.com/fechu/PiTemp nice script for local displayand
https://sites.google.com/site/benhewitttechnology/raspberry-pi-with-xivley for the internet of things (may fail if network connection is to slow while torrenting)
- control podcast remote with a smartphone:
install vlcand make sure you use the 3.5mm jack (thanks to this post)
sudo modprobe snd_bcm2835sudo amixer cset numid=3 1
edit sudo nano /usr/share/vlc/lua/http/.hosts according to http://wiki.videolan.org/Documentation:Modules/http_intf#Access_control
start vlc on boot based on http://mvpmc.wikispaces.com/vlc the script , add the --extraintf=http in the vlc call at the end and
and finally add the script with
update-rc.d vlc defaults
Sonntag, 18. März 2012
convert youtube to mp3 bash script
this nice script will do it
call it youtube2mp3.sh and call it up like youtube2mp3 "url youtube" "title.mp3"
x=~/.youtube-dl-$RANDOM-$RANDOM.flv
youtube-dl --output=$x --format=18 "$1"
ffmpeg -i $x -acodec libmp3lame -ac 2 -ab 128k -vn -y "$2"
rm $x
prerequisites here; http://askubuntu.com/questions/218932/convert-youtube-to-mp3
call it youtube2mp3.sh and call it up like youtube2mp3 "url youtube" "title.mp3"
x=~/.youtube-dl-$RANDOM-$RANDOM.flv
youtube-dl --output=$x --format=18 "$1"
ffmpeg -i $x -acodec libmp3lame -ac 2 -ab 128k -vn -y "$2"
rm $x
prerequisites here; http://askubuntu.com/questions/218932/convert-youtube-to-mp3
Sonntag, 6. November 2011
Dienstag, 9. November 2010
ftp server vsftpd
after adding dyndns for static IP access
sudo apt-get install vsftpd
added an ftp user
sudo adduser
Samstag, 24. Juli 2010
2010 eddition: ubuntu server 10.04 on a DELL OPTLIPLEX G620
Well ,my T22 is dying after 4 years. So I got a new old DELL and the what I will do is
done
using this time 192.168.1.221
TO DO
- install ubuntu 10.04 server edition
- LAMP and SAMBA Packages
- dowloaded and installed ubuntu-10.04-server-i386.iso
- installe LAMP, OpenSSH, SAMBA fileserver and MailServer
- no root pwd on mysql
done
using this time 192.168.1.221
- Port forwarding on router
- SAMBA
sudo smbpasswd -a "myuser"
Adding
follow symlinks = yes
wide links = yes
unix extensions = no
to have access as well to mounted external harddrives- Transmission torrent
used this settings $ sudo nano /var/lib/transmission-daemon/info/settings.json
{
"alt-speed-down": 50,
"alt-speed-enabled": false,
"alt-speed-time-begin": 540,
"alt-speed-time-day": 127,
"alt-speed-time-enabled": false,
"alt-speed-time-end": 1020,
"alt-speed-up": 50,
"bind-address-ipv4": "0.0.0.0",
"bind-address-ipv6": "::",
"blocklist-enabled": false,
"cache-size-mb": 2,
"dht-enabled": true,
"download-dir": "/home/daevu/download",
"download-limit": 1000,
"download-limit-enabled": 0,
"encryption": 2,
"idle-seeding-limit": 30,
"idle-seeding-limit-enabled": false,
"incomplete-dir": "/home/daevu/Downloads",
"incomplete-dir-enabled": false,
"lazy-bitfield-enabled": true,
"lpd-enabled": false,
"max-peers-global": 200,
"message-level": 2,
"open-file-limit": 32,
"peer-limit-global": 240,
"peer-limit-per-torrent": 60,
"peer-port": 53958,
"peer-port-random-high": 64000,
"peer-port-random-low": 42000,
"peer-port-random-on-start": true,
"peer-socket-tos": 0,
"pex-enabled": true,
"port-forwarding-enabled": false,
"preallocation": 1,
"proxy": "",
"proxy-auth-enabled": false,
"proxy-auth-password": "",
"proxy-auth-username": "",
"proxy-enabled": false,
"proxy-port": 80,
"proxy-type": 0,
"ratio-limit": 0.2500,
"ratio-limit-enabled": true,
"rename-partial-files": true,
"rpc-authentication-required": true,
"rpc-bind-address": "0.0.0.0",
"rpc-enabled": true,
"rpc-password": "{81ed8acf066233eabf1621d75adc85f0a3faa20b8021nMli",
"rpc-port": 9091,
"rpc-username": "daevu",
"rpc-whitelist": "127.0.0.1,192.168.*.*",
"rpc-whitelist-enabled": true,
"script-torrent-done-enabled": false,
"script-torrent-done-filename": "",
"speed-limit-down": 100,
"speed-limit-down-enabled": false,
"speed-limit-up": 5,
"speed-limit-up-enabled": true,
"start-added-torrents": true,
"trash-original-torrent-files": false,
"umask": 18,
"upload-limit": 100,
"upload-limit-enabled": 0,
"upload-slots-per-torrent": 14,
"watch-dir": "/home/daevu/torrents/",
"watch-dir-enabled": true
}
- Postfix :with gmail relying according to http://ubuntu-tutorials.com/2008/11/11/relaying-postfix-smtp-via-smtpgmailcom/
- JdDownloader: first install vncserver:
apt-get install -y vnc4server xinetd
run vnc4passwd (enter desired pwd
to run vncserver on startup: add this lieno to /etc/rc.local just before exit =
- su "myusername" -c 'vnc4server :1 -geometry 1024x768 '
Install JAVA (since transmission works not with OpenJDK)
sudo add-apt-repository “deb http://archive.canonical.com/ lucid partner”
sudo apt-get update
sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk sun-java6-plugin
Download transmission over VNC
After download let's make it executable and run it :$wget -c http://212.117.163.148/jd.sh
$chmod +x jd.sh
$./jd.sh
- INSTALL WLAN Chipset (ZyDas1211) (Follow http://wiki.ubuntuusers.de/WLAN/wpa_supplicant
- To get MAC Address:
- ifconfig -a
- to initially start it
- sudo ifconfig wlan0 up
- Edit /etc/initd.interfaces so it will start from boot (comment out eth0)
##WLAN
auto wlan0
iface wlan0 inet static
address "your desired IP"
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
wpa-ssid "mynetwork"
wpa-psk "mypassphrase"
wpa-proto RSN
wpa-key_mgmt WPA-PSK
wpa-pairwise CCMP
wpa-group TKIP
TO DO
- move torrent after finish: http://1000umbrellas.com/2010/04/28/how-to-automatically-move-and-remove-transmission-daemon-downloads does not work
- TOR & privoxy
- BAckup Pics and docs on the machine
Dienstag, 13. Juli 2010
transmission torretn client 2.0 on karmic
according to http://www.techdrivein.com/2010/06/install-new-improved-transmission-20-in.html
Abonnieren
Posts (Atom)