android – openSUSE Lizards https://lizards.opensuse.org Blogs and Ramblings of the openSUSE Members Fri, 06 Mar 2020 11:29:40 +0000 en-US hourly 1 https://wordpress.org/?v=4.7.5 Make your openSUSE Raspberry Pi a seedbox https://lizards.opensuse.org/2015/05/22/make-your-opensuse-raspberry-pi-a-seedbox/ Fri, 22 May 2015 12:23:54 +0000 http://lizards.opensuse.org/?p=11426 Raspberry Pi is a quite slow ARM board, compared to other boards. Even if you compare Raspberry Pi B+ against Raspberry Pi 2. So maybe one of the best use of RasPi is to make it seedbox. Let’s say you’re at the office and a friend tells you to test a distro. You can login to your home Raspberry Pi seedbox and add the torrent file there.

Here I will show you how to setup Transmission, vftpd and suggestions for Android programs.
First of all, download and create the openSUSE SD card (resize your SD card to full size or you can mount the extra size as extra partition. Since it’s not something important, then you can use full size of your SD card).
Then setup the dynamic dns service (see previous posts).
Finally set a static IP (to use it with port forward of your router).

INSTALL TRANSMISSION

First install transmission:

$ zypper in transmission transmission-daemon

Create 2 folders for incomplete torrents and completed torrents:

$ mkdir -p /torrents/incomplete && mkdir /torrents/complete

Configure proper permissions for transmission:

$ chgrp transmission /torrents/incomplete
$ chgrp transmission /torrents/complete
$ chmod 770 /torrents/incomplete
$ chmod 777 /torrents/complete


Now edit transmission settings.json file using:

$ cp /var/lib/transmission/.config/transmission/settings.json /var/lib/transmission/.config/transmission/settings.json.old
$ rm /var/lib/transmission/.config/transmission/settings.json

and

$ nano /var/lib/transmission/.config/transmission/settings.json

Here is the content of your file:

{
“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,
“blocklist-url”: “http://www.example.com/blocklist”,
“cache-size-mb”: 4,
“dht-enabled”: false,
“download-dir”: “/torrents/complete”,
“download-limit”: 100,
“download-limit-enabled”: 0,
“download-queue-enabled”: true,
“download-queue-size”: 5,
“encryption”: 1,
“idle-seeding-limit”: 30,
“idle-seeding-limit-enabled”: false,
“incomplete-dir”: “/torrents/incomplete”,
“incomplete-dir-enabled”: true,
“lpd-enabled”: false,
“max-peers-global”: 200,
“message-level”: 2,
“peer-congestion-algorithm”: “”,
“peer-limit-global”: 91,
“peer-limit-per-torrent”: 150,
“peer-port”: 51413,
“peer-port-random-high”: 65535,
“peer-port-random-low”: 49152,
“peer-port-random-on-start”: false,
“peer-socket-tos”: “default”,
“pex-enabled”: false,
“port-forwarding-enabled”: true,
“preallocation”: 1,
“prefetch-enabled”: 1,
“queue-stalled-enabled”: true,
“queue-stalled-minutes”: 30,
“ratio-limit”: 2,
“ratio-limit-enabled”: false,
“rename-partial-files”: true,
“rpc-authentication-required”: true,
“rpc-bind-address”: “0.0.0.0”,
“rpc-enabled”: true,
“rpc-password”: “{2dc2c41724aab07ccc301e97f56360cb35f8ba1fGVVrdHDX”,
“rpc-port”: 9091,
“rpc-url”: “/transmission/”,
“rpc-username”: “transmission”,
“rpc-whitelist”: “*.*.*.*”,
“rpc-whitelist-enabled”: false,
“scrape-paused-torrents-enabled”: true,
“script-torrent-done-enabled”: false,
“script-torrent-done-filename”: “”,
“seed-queue-enabled”: false,
“seed-queue-size”: 10,
“speed-limit-down”: 250,
“speed-limit-down-enabled”: true,
“speed-limit-up”: 0,
“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,
“utp-enabled”: true
}

Username: transmission
Password: transmission
Port: 9091

Start and enable the service.

$ systemctl start transmission-daemon
$ systemctl enable transmission-daemon

You’re done. All you have to do is to open your browser to http://RASPI.IP.ADDRESS:9091/ and use the login/password (default for above config transmission/transmission)

INSTALL FTP SERVER

Let’s say that the file is i your pi disk. You’re not at home. How can you check it? Maybe the easiest way is to setup an FTP server. Maybe the best program is vsftpd. You can install it:

$ zypper in ftp vsftpd

Create a folder for ftp users (if it’s not there).

$ mkdir /srv/ftp

Create a group called ftp-users.

$ groupadd ftp-users

Create a sample user called seedbox with home directory /srv/ftp/, and assign the user to ftp-users group.

$ useradd -g ftp-users -d /srv/ftp/ seedbox

Set password for the new user.

$ passwd seedbox

Now you should change few things:

$ nano /etc/vsftpd.conf

And uncomment:

local_enable=YES
write_enable=YES

Start the service and you’re done:

$ systemctl start vsftpd

$ systemctl enable vsftpd

Personally I use the program filezilla but you can also use the Firefox addon FireFTP.

INSTALL SAMBA

OK, you installed torrent server. How can you access the downloaded files from your computer? Well it’s easy. Just install SAMBA. For that reason, I followed the tutorial here.

First of all, install SAMBA.

$ zypper in samba

Then all you have to do is to change SAMBA configuration file.

$ cp /etc/samba/smb.conf /etc/samba/smb.cnf
$ nano /etc/samba/smb.cnf

Just add the following lines:

[Seedbox]
comment = Public Shares
path = /torrents/complete
writeable = Yes
only guest = Yes
create mask = 0777
directory mask = 0777
browseable = Yes
public = yes

You should restart SAMBA or you can reboot your Pi.

$ systemctl start smb nmb

$ systemctl enable smb nmb

Now you can access your Pi from Nautilus (check here how to do that).

Android

If you want to use it via android phone/tablet, you can use the program Remote Transmission

Android's Remote Transmission

More applications are Transdrone and TorrentToise.

]]>
LXDE can do it! LXDE on Android smartphone! https://lizards.opensuse.org/2009/08/24/lxde-can-do-it-lxde-on-android-smartphone/ https://lizards.opensuse.org/2009/08/24/lxde-can-do-it-lxde-on-android-smartphone/#comments Mon, 24 Aug 2009 13:55:59 +0000 http://lizards.opensuse.org/?p=2013 Yes i did it. I made LXDE running on my new Android smartphoe, the latest HTC masterpiece, the HTC HERO. Here some shots:

That’s great! But there is a main problem here, I’m not running openSUSE with X11:lxde packages, but debian with their stuff. I cannot use my geeko because the phone is an ARM and our openSUSE@ARM looks to still be in an early development stage. This post wants to be a ping to or openSUSE@ARM project and of course some marketing to this great and light Desktop Enviroment. For people interested in, here some hardware infos:

# cat /proc/cpuinfo
Processor       : ARMv6-compatible processor rev 2 (v6l)
BogoMIPS        : 526.25
Features        : swp half thumb fastmult edsp java
CPU implementer : 0x41
CPU architecture: 6TEJ
CPU variant     : 0x1
CPU part        : 0xb36
CPU revision    : 2
Cache type      : write-back
Cache clean     : cp15 c7 ops
Cache lockdown  : format C
Cache format    : Harvard
I size          : 32768
I assoc         : 4
I line length   : 32
I sets          : 256
D size          : 32768
D assoc         : 4
D line length   : 32
D sets          : 256

Hardware        : hero
Revision        : 0080
Serial          : 0000000000000000

# busybox free
total         used         free       shared      buffers
Mem:       197016       191024         5992            0            8
Swap:            0            0            0
Total:       197016       191024         5992

]]>
https://lizards.opensuse.org/2009/08/24/lxde-can-do-it-lxde-on-android-smartphone/feed/ 3