I occasionally write stuff down that are somewhat related to Javascript, Open Source, Unix, Android, XBMC/Kodi, Arduino, Networking or breaking stuff in general..
søndag den 7. september 2014
Finally found a useful fanless device that is affordable. The Cubox-i2 eX from SolidRun
søndag den 24. august 2014
Odroid U3
So I was hoping to get a new media center device that had just a bit more power than my raspberry pi and did not have a fan like my aging Acer Revo 3600. So I decided on the Odroid U3 from Hardkernel.
The device shipped from South Korea and I sadly ended up paying the same amount in taxes and fees that I had originally payed for the device itself. In my rush I had not learned that the U3 is NOT USB powered like the raspberry pi is, so I had not chosen to buy a power supply along with it. Big mistake.
The power plug size listed seemed fairly standard, it did however take me 3 weeks to track down the right size as the size listed in the specifications is not that standard around here.
I then threw Debian wheezy on a class 10 micro SD card, and that let me run a Xbmc build that could play back up to 720p without to much trouble. I did get some constant UI freezes that made the simple fact of using the device pretty horrible. I sprung for a micro SD card twice the price but still class 10, as I have before had problems with SD cards claiming to be high quality being.. Well anything but.
Same problem with UI freezing up and me having to wait anywhere from 5 to 20 seconds before the U3 became responsive again. I then tried out a Android jelly bean build that let me boot straight into a full screen, libstagefright supported xbmc version that could playback 1080p, with a bit of lag here and there. And what was worse. The same UI freezing persisted. When I asked around the hardkernel community, I was told that the devices could not really run OS from micro SD and that I should purchase a emmc memory module to use for the OS.
I have been running anything from servers to flawless xbmc versions from sd and flash memory so I was not about to purchase anything like that. My RPi runs without the UI freezing up from the very same micro SD. And the Odroid U3 sports a 1.7GHz Quad-Core processor and 2GB Ram so I am really surprised it was such a poor experience for me. I have no idea if it was a faulty device or something similar. But I sold it again.
And are now awaiting the arrival of a Cubox-i2eX that sports slightly lower specifications but has support for OPENELEC xbmc builds, that imo is the bees knees if you need a device for media playback only. My experience is that the stable builds are beyond rock solid and by far the most amazing builds out there.
fredag den 11. april 2014
upgraded my server. awesomeness followed
So i was getting a bit tired of my two aging NAS servers was fighting me every bit of the way, when ever i wanted to use them for something else than what the manufacturers intended, so i upgraded to a HP Proliant Microserver N40L that could contain the 4 drives from my Netgear Duo and Zyxel NSA 320.
Right away i installed plain Debian headless, and at this point i have finally been able to make a setup to sooth my needs without having to dig through german forums hoping that google translate would not trick me into running commands that would screw up a installation.
Owncloud, Plex, SMB shares, Bittorrent Sync, SubSonic SSH tunneling, vsftpd server. I am living the dream here, and in the process learning a lot that is not restricted to one single model of one simple tweak for some store brand NAS server. Here is a platform that lets me use my simple knowledge of Linux, while learning so many awesome things in the process that i can also use in other parts of my digital life, from my Linux Mint Laptop, to general database structure for programming.
Next up is a LAMP install to run projects from, and setting up SNORT. Good times.
onsdag den 8. januar 2014
Using a Raspberry Pi as a medium between external server and local NAS, using Bittorrent Sync
So i managed to sell my server build in bits and pieces. And for the money i purchased a 2 bay Zyxel NSA320, despite having an unfortunate name, it is a small form factor standard NAS. 1.2 GHz processor and 512 MB RAM. It is close to official with support for the Fonz Fun Plug, and if using from USB stick it is fairly fool proof as the NAS OS is left untouched, unless you want to kill it. The NAS is pretty loud and as far as i can tell there is no way, system wise, to lower the RPM's. S.M.A.R.T. spins the drives down, but the chassis main fan spins at full speed no matter what. I took it apart and it looks like control of the fan has been disabled by hardware. Next to the fan plug is what looks like a controlled fan mount, but soldering on this device based on a theory is further than i am willing to go at this point. Instead i bought a Fan Mate 2 physical resistance controller, that i have yet to install.
#Update. The Fan Mate can be installed but have no effect what so ever on the fan.
First thing i did was to throw the ARM build of Bittorrent Sync on it to sync it up with my remote server, and it was up and running within 15 minutes. After a reboot, btsync was nowhere to be found. And i had made sure i placed it in the permanent storage. Btsync would run and be forked to the background, but gui was unresponsive no matter what. I cleaned out every bit of btsync from .sync to license.txt but no matter what, a install would work, but gui would not. i then tried a manual install by compiling every bit of btsync to try to change the listening port as some users had reported 100% cpu use and unresponsive gui from using port 8888. In my case it did not work. Btsync still runs, but gui remained unreachable from any browser.
Now btsync is actually fairly easy to set up using the bash command line and since it really only needs to be set up very rarely it would be pretty straight forward. I however choose to utilize a Raspberry Pi, that had been sitting on a shelf since i upgraded my media player. I flashed Raspbian on a 8 GB SD card, and to keep from plugging in a HDMI monitor and controllers i used SSH to login to the RPi using the default "pi" and "raspberry" credentials and then run
# sudo apt-get install tightvncserver
# tightvncserver
That gave me a headless control of the RPi using the tightvnc application. From my Windows 8 computer i then ran the tightvnc viewer and connected to the IP. In a quick and dirty move in the /home/ directory i ran
# wget http://btsync.s3-website-us-east-1.amazonaws.com/btsync_arm.tar.gz
# sudo tar -xzf btsync_arm.tar.gz
# sudo rm btsync_arm.tar.gz
# sudo ./btsync
That worked straight away. All i had to do now was mount the NAS cifs share as a drive for btsync to download to. in /mnt/ i created a directory
# sudo mkdir nas320
the cifs utilities should come with most distros, but if needed run
# Sudo apt-get install cifs-utils
I then navigated to the /etc/ directory and ran a command to edit the fstab file
# sudo nano fstab
Below the proc, boot and main partition i added a referal to my NAS cifs share:
(keep in mind the following is on the same line in the same tabbed formatting that the already existing drives are)
# //192.168.1.88/sync/video
# /mnt/nas320
# cifs
# credentials=username=your_username,password=your_password,iocharset=utf8
# 0
# 0
Now this is a pretty dirty and unsafe way to do things. For a bit more security i would recommend creating a .smbcredentials file using
# sudo touch .smbcredentials
instead you would now add
# credentials=/path/to/.smbcredentials,iocharset=utf8
This makes makes the mount persistent and will be mounted upon reboot.
I still need to manually start up btsync, but adding the auto run script is fairly easy, but must wait a few days.
fredag den 20. december 2013
Hackintosh OS X Mavericks on the ASUS N76VM
No extra Kext messing around is needed as the image being "installed"/restored is already set up. i always keep a USB drive with Xubuntu installed on it to solve boot issues, partition management etc, and running boot-repair with the recommended repair option, usually solves boot issues.
______________________________
Update: i had to reinstall everything, since i was unable to work out any solution in either windows, Ubuntu or os x to fix the boot loader. Now i am not saying it couldn't be done. I just grew impatient and reinstalled windows. Bought a dirt cheap 80 GB 2.5" HDD to fill the second slot in the N76VM.
I gave me a chance to work on my digital forensics skills as well, as i bought the HDD used. If you are ever to sell a hard drive that you have used. Make sure you
$ shred -z -u -n200 /dev/sda1 that puppy.
Especially if you have kept nude pictures of you and wife on it. Now i am a good guy, so everything i found was deleted.
I then dedicated the drive to os x, and used R-Drive in windows to write the OS X 50 GB Mavericks image to the drive. And have a fully working install. Well. No wifi since the card is not supported, but it works just fine with a wifi dongle.
Touchpad was actually working just fine all along. Turns out that it just gets confused when a external mouse is attached at the same time. Same problem exists in windows.
So all in all. If i had started out just using a second drive. A fully working OS X install could have been made in less than a half hour.
The bootloader is the text based chameleon bootloader, and i have yet to find the time to solve that issue, as my few attempts to change the bootloader has resulted in a OS X drive returning a black screen on boot.
I will add a link to the Mavericks image file soon, as the yandex link is painfully slow.
#Update. Here is a link to the .arc image file
To bad i didn't write a decent guide. I exchanged OS X for Linux Mint, but after shifting Mint to my main drive in the laptop, and having problems finding a useful way to make music in Mint that is not rendered useless by latency problems, i once again wished to write the Maverick image to my 80 GB. But so far. Every attempt has resolved in stuttering, flickering and freezing on every boot after the first one. So i am now trying to reverse the oh-so simple process of getting it to work.
onsdag den 18. december 2013
Bittorrent Sync helped me out.
i therefore ended up using Bittorrent Sync to sync from a seedbox to my NAS server, and then used rsync to further copy the btsync to a different folder. This level of automation leaves me to just clear out files from serverside and on the NAS once in a while. So it is not a total automation. But i can live with that. Furthermore the setup i am using has torrent interception so for most sites i don't need to first download torrent to add to my seedbox torrent client, rather it intercepts it from the .torrent extension and adds it directly.
While this is working wonders at the moment. My next step will probably be to dive into usenet or to set up the encryption for downloading directly to the NAS. i have grown a bit tired of my NAS build though. i can't blame Nas4Free as it is more than awesome software and it works wonders. However my NAS needs are at this point way below what i feel N4F would be most useful for. Meaning constant spinning CPU and PSU fans for no usage is bothering me. i am now trying to sell my mobo, ram and cpu and acquire some D-Link 2 bay NAS with support for fun_plug instead.
lørdag den 21. september 2013
Debian on the OUYA. Linux Based XBMC build not far away.
- Hciconfig doesn’t show BT devices, I didn’t debug much further.
- Mpg123 seems to play but nothing is heard. Maybe it tries to pass MP3 onwards instead of PCM? GStreamer provides acceleration for MP3 and AAC though.
- Video acceleration works only with GStreamer and nvxvimagesink. Mplayer can’t even use XV video output correctly.
- Tegra3 supports only OpenGL ES 2.0 with EGL, so no full OpenGL with GLX.
- Xrandr seems to be able to switch the resolution but after the switch there was window decoration corruption.