Efstathios Iosifidis – 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 openSUSE project presentation at school, Nov 24th, 2016 https://lizards.opensuse.org/2016/11/29/opensuse-project-presentation-at-school-nov-24th-2016/ Tue, 29 Nov 2016 20:12:46 +0000 http://lizards.opensuse.org/?p=12138

On November 16th there was the release of openSUSE Leap 42.2. On November 24th, I had the opportunity to present openSUSE Project at school.

I was asked to make an introduction to FLOSS in general and more specific about openSUSE Project. The school was for middle aged people, for persons who quited school to work and conftibute financially to their families. There were 3 classes that they taught something computer related. It was a great opportunity for them to learn what FLOSS is and what makes openSUSE great Linux distro.

I busted the myth that “Linux is hard because you have to be a hacker, it’s terminal operated” I showed them how to install openSUSE Leap step by step (pictures) and also how to use GNOME (pictures). I mentioned our tools to make a very stable distro and finally I showed them that it’s not only a distro but there are people (the communtity) that take care of the software.

There were plenty of questions about linux software alternatives, how to install, if they can replace Ubuntu/Windows with openSUSE and what is perfect suit for specific systems. Each student took a DVD with stikers and a card with Greek community information. Professors will organize an install fest for their lab and/or laptops of their students.

I would like to thank Douglas DeMaio for managing to send me DVDs and stickers and Alexandros Mouhtsis that managed with his professors to organize this presentation. Finally, I would like to thank Dimitrios Katsikas for taking pictures.

You can find the same post at my blog.

]]>
Basic Nextcloud installation on openSUSE Leap https://lizards.opensuse.org/2016/10/28/nextcloud-installation-on-opensuse-leap/ https://lizards.opensuse.org/2016/10/28/nextcloud-installation-on-opensuse-leap/#comments Fri, 28 Oct 2016 15:09:09 +0000 http://lizards.opensuse.org/?p=12089 Nextcloud Logo

I see the official documentation has full tutorial for RHEL 6 or CentOS 6 and RHEL 7 or CentOS 7. The main documentation covers Ubuntu 14.04 LTS

openSUSE already has the Nextcloud client packaged in Tumbelweed and the Server is in the PHP extra repo! Personally, I prefer to install eveything from official repository, so when an update is available, I can have it without a glitch. This tutorial describes how to install Nextcloud using command line. I followed the official documentation of Ubuntu 14.04 LTS installation.

Why choose openSUSE Leap? openSUSE Leap is a brand new way of building openSUSE and is new type of hybrid Linux distribution. Leap uses source from SUSE Linux Enterprise (SLE), which gives Leap a level of stability unmatched by other Linux distributions, and combines that with community developments to give users, developers and sysadmins the best stable Linux experience available. Contributor and enterprise efforts for Leap bridge a gap between matured packages and newer packages found in openSUSE’s other distribution Tumbleweed. You can download openSUSE Leap from the site https://software.opensuse.org/.

Make sure that ssh (sshd) is enabled and also the firewall either is disabled or make an exception to the apache and ssh services. You can also set a static IP (check out how).

First of all, let’s install the required and recommended modules for a typical Nextcloud installation, using Apache and MariaDB, by issuing the following commands in a terminal:

zypper in apache2 mariadb apache2-mod_php5 php5-gd php5-json php5-fpm php5-mysql php5-curl php5-intl php5-mcrypt php5-zip php5-mbstring php5-zlib

Create Database (optional since it’ll create eveything automatically)
Next step, create a database. First of all start the service.

systemctl start mysql.service
systemctl enable mysql.service

The root password is empty by default. That means that you can press enter and you can use your root user. That’s not safe at all. So you can set a password using the command:

mysqladmin -u root password newpass

Where newpass is the password you want.

Now you set the root password, create the database.

mysql -u root -p
#you’ll be asked for your root passwordCREATE DATABASE nextcloudb;

GRANT ALL ON nextcloudb.* TO ncuser@localhost IDENTIFIED BY ‘dbpass’;

Database user: ncuser
Database name: nextcloudb
Database user password: dbpass

You can change the above information accordingly.

PHP changes
Now you should edit the php.ini file.

nano /etc/php5/apache2/php.ini

change the values

post_max_size = 50G
upload_max_filesize = 25G
max_file_uploads = 200
max_input_time = 3600
max_execution_time = 3600
session.gc_maxlifetime = 3600
memory_limit = 512M

and finally enable the extensions.

extension=php_gd2.dll
extension=php_mbstring.dll

Apache Configuration
You should enable some modules. Some might be already enabled.

a2enmod php5
a2enmod rewrite
a2enmod headers
a2enmod env
a2enmod dir
a2enmod mime

Now start the apache service.

systemctl start apache2.service
systemctl enable apache2.service

Install Nextcloud from source code (option 1, preferable)
Before the installation, create the data folder and give the right permissions (preferably outside the server directory for security reasons). I created a directory in the /mnt directory. You can mount a USB disk, add it to fstab and save your data there. The commands are:

mkdir /mnt/nextcloud_data
chmod -R 0770 /mnt/nextcloud_data
chown wwwrun /mnt/nextcloud_data

Now download Nextcloud (find the latest version at https://nextcloud.com/install/). Then unzip and move the folder to the server directory.

wget https://download.nextcloud.com/server/releases/nextcloud-10.0.0.zip
unzip nextcloud-10.0.0.zip
cp -r nextcloud /srv/www/htdocs
chown -R wwwrun /srv/www/htdocs/nextcloud/

Make sure that everything is OK and then delete the folder nextcloud and nextcloud-10.0.0.zip from the root (user) directory.

Now open your browser to the server IP/nextcloud

Set your administrator username and password.
Your data directory is: /mnt/nextcloud_data
Regarding database, use the following.
Database user: ncuser
Database name: nextcloudb
Database user password: dbpass

Wait until it ends the installation. The page you’ll see is the following.

Install Nextcloud using the respository (option 2)

If you want to have automatic updates of your Nextcloud instance when there’s a new version, you can add the repository. There are packages available for openSUSE Leap 42.1, 42.2 and Tumbleweed (we recommend openSUSE Leap 42.1). You should be an administrator, so you can install Nextloud on your server.

1. Add the Nextcloud repository.
openSUSE_Leap_42.2

zypper ar http://download.opensuse.org/repositories/server:/php:/applications/openSUSE_Leap_42.2/ Nextcloud

openSUSE_Leap_42.1

zypper ar http://download.opensuse.org/repositories/server:/php:/applications/openSUSE_Leap_42.1/ Nextcloud

openSUSE_Leap_Tumbleweed

zypper ar http://download.opensuse.org/repositories/server:/php:/applications/openSUSE_Tumbleweed/ Nextcloud

2. Refresh your repositories

zypper refresh

3. Install Nextcloud (be careful you have to install LAMP first and change permissions of the files).

zypper install nextcloud

4. Open http://serverIP/nextcloud to install your instance (admin user account). Be careful to create another folder with the proper permissions for your data (as described).

5. Login and use Nextloud.

For more information about Nextcloud on openSUSE, check openSUSE wiki.

For any changes, check the github page.

For more configuration, you can follow the official documentation. That was the basic installation on openSUSE Leap.

]]>
https://lizards.opensuse.org/2016/10/28/nextcloud-installation-on-opensuse-leap/feed/ 2
What happened @ FOSSCOMM 2015, Athens Nov 6-8 https://lizards.opensuse.org/2015/11/12/fosscomm-2015-athens-nov-6-8/ Thu, 12 Nov 2015 13:21:58 +0000 http://lizards.opensuse.org/?p=11564 DSC_0746

The 8th Free and Open Source Software Communities Meeting (FOSSCOMM) took place in Athens (Greece), November 6-8th 2015 at the Technical Educational Institute of Athens.

The Conference started early on Saturday morning welcoming the participants and with the key note. Various presentations about open source software, hardware constructions and some workshops took place. Presentations such as Raspberry Pi arcade, openstack, OSGeo, ownCloud, Bitcoin and many more were quite interested by the visitors.

DSC_0716

Greek openSUSE community was there with a booth and some presentations. On Saturday Alex P. Natsios presented “Enlightment on openSUSE”, an alternative GUI, and the other presentation was about “openQA”. Since openSUSE Leap 42.1 was very fresh, Alexandros Vennos took the opportunity to present what are openSUSE Leap 42.1 and Tumbleweed, the differences and what to install on what occasions. Presentation had title “openSUSE – Leaping Ahead”.

DSC_0709

The booth was quite crowded. We had some left over DVDs of 13.2 but we proposed the visitors to install Leap 42.1. The question we were asked most was what is the difference between openSUSE Leap and Tubleweed and why to install and on what ocasion. We even created couple of bootable USBs from the ISOs of Leap. We had a Banana Pi running Tumbleweed with MATE playing a video loop of openSUSE Leap 42.1 KDE review. We gave almost all of our promo materials to the visitors since they were interested on openSUSE.

For more pictures check Flickr

DSC_0736

]]>
How to create an openSUSE Banana Pi M1 image with MATE Desktop https://lizards.opensuse.org/2015/09/17/how-to-create-an-opensuse-banana-pi-m1-image-with-mate-desktop/ Thu, 17 Sep 2015 18:32:51 +0000 http://lizards.opensuse.org/?p=11533 I won a Banana Pi from ownCloud. So I tried to install openSUSE.

There are 3 options:

1. According to the wiki page, you can download the image they provide but there’s no kernel support for Mali400MP2 GPU (who knows if it’s fixed by now). No Mali mean no GUI. The link to image is http://download.opensuse.org/ports/armv7hl/tumbleweed/images/.

2. Download the image from http://www.lemaker.org. The GUI used is XFCE.

3. Do it the hard way, build it yourself. I would like to install MATE. I know, I could use the lemaker image.
I followed the page HowTo Build Banana Pi Image.

This post has 2 sections. The first is how to create the SD card and the next one is how to install MATE.

Create the SD card.

1. Create a folder where you’re going to work (download the nessesary files).

mkdir WORKSPACE

cd WORKSPACE

2. I’ll skip the steps 1-5 from the Build it yourself page. You can download the file:

BananaPi_hwpack.tar.xz

Download also the rootfs openSUSE image file.

openSUSE-Tumbleweed-ARM-JeOS.armv7-rootfs.armv7l-Current.tbz

3. Create the folder with the ROOTFS_DIR

mkdir ROOTFS_DIR

4. Decompress the file to ROOTFS_DIR

openSUSE-Tumbleweed-ARM-JeOS.armv7-rootfs.armv7l-Current.tbz

5. Now work with the file BananaPi_hwpack.tar.xz. Decompress the file.

tar xvfJ BananaPi_hwpack.tar.xz

6. Copy related files to the directory ROOTFS_DIR

cp kernel/script.bin ROOTFS_DIR/boot
cp kernel/uImage ROOTFS_DIR/boot

Create the file:

nano ROOTFS_DIR/boot/uEnv.txt

with the following content

mmcboot=fatload mmc 0 0x43000000 script.bin || fatload mmc 0 0x43000000 evb.bin; \
fatload mmc 0 0x48000000 uImage; if fatload mmc 0 0x43100000 uInitrd; \
then bootm 0x48000000 0x43100000; else bootm 0x48000000; fi
uenvcmd=run mmcboot
bootargs=console=ttyS0,115200 console=tty0 \
disp.screen0_output_mode=EDID:1280x720p60 \
hdmi.audio=EDID:0 root=/dev/mmcblk0p1

Copy the rootfs folder:

cp -r rootfs/* ROOTFS_DIR

7. Now prepare the SD. Format the sdcard (assume the sdcard mounted at /dev/sdb. You can find it with the command cat /proc/partitions)

sudo umount /dev/sdb1
sudo dd if=/dev/zero of=/dev/sdb bs=1k count=1024
sudo dd if=bootloader/u-boot-sunxi-with-spl.bin of=/dev/sdb bs=1024 seek=8

Create partition (you can do it using gparted too)

sudo fdisk /dev/sdb

* Delete partitions: o
* List partitions: p
* Create new partitions: n
* Primary partitions: p
* Partition number: 1
* Press ENTER twice to use the total size of the card
* Write the partition table: w

Format the parititon

sudo mkfs.ext4 /dev/sdb1

8. Copy ROOTFS_DIR into sdcard

mkdir mnt
sudo mount /dev/sdb1 mnt
sudo cp -a ROOTFS_DIR/* mnt
sudo sync
sudo umount mnt

Now boot the card. The default username/password are:

Username: root
Password: linux

Unfortunately ssh didn’t work. I logged in and changed few things.
First of all I edited the file sshd_conf

nano /etv/ssh/sshd_conf

And found:
Port 22
PasswordAthentication yes
PermitRootlogin yes

Then I used the command

chown -R root /var/lib/empty

Rebooted and all set.

You can download the image from openSUSE-Tumbleweed-BananaPi-headless-20150928.tar.xz

copy it at least 2GB sd card and resize it.

Install MATE Desktop

The first thing you have to do is to update (zypper up).

The easiest way is to open YaST and go to Software Management.
Then filter by Patterns.
Click to install MATE Desktop Environment and MATE Base system.

After everything is installed, make MATE-session as default window manager

nano /etc/sysconfig/windowmanager

Find the line:

DEFAULT_WM = “kde-plasma”

and change it to

DEFAULT_WM = “mate-session”

Then reboot. Login and type startx

]]>
Create multi liveUSB with openSUSE https://lizards.opensuse.org/2015/05/30/create-multi-liveusb-with-opensuse/ Sat, 30 May 2015 08:51:44 +0000 http://lizards.opensuse.org/?p=11466

I was trying to create a liveUSB with many distros. The reason is simple. All of my USB sticks were quite big for only one distro. So the rest of the USB space is wasted. For example, the openSUSE USBs I got from conferences, are 8GB. If I use installation DVD, I’m going to use only 4GB. LiveGNOME is only 1GB (the rest would be persistent drive for storage but personally, I don’t use it.

For that reason, I used 2 programs.

1. Multisystem.

I translated to Greek. Unfortunately, this software is installed only on Ubuntu/Debian distros. I used it also on Arch Linux but there was a problem lately and didn’t work correctly. On Ubuntu, I managed to insert 13.1 successfully and lately this was difficult to do. At the end of each time, there were some strange symbols running for a quite long time with a sound (I muted the sound for that reason). I think persistent drive for 13.2 and Tumbleweed wasn’t something that the creators of the program added.
DVD ISO and NET install ISO wasn’t at their list either.

2. YUMI

This works on Windows. At the end of the page there’s a version for Ubuntu/Debian (and source code). I didn’t test them.
I tested this tool and I inserted NET install ISOs to an old 512MB USB I had. The only “negative” is that there wasn’t room left for the ISOs I wanted. 90MB x 4 = 360MB. It adds syslinux stuff. Anyways, at least I can use a very old USB.

With the help of my friend Thanos, I created a liveUSB with the Tumbleweed versions of GNOME and KDE.
I’ll write here how I did it with some possible options. Firstly the references. I used Arch wiki and a και έναν tutorial that Thanos sent me.

Let’s see the steps:

1. Create a FAT32 partition

If you use terminal, you need the commands:

To find the name of your USB

$ cat /proc/partition

To unmount your USB (yours might have different name than sdX)

$ sudo umount /dev/sdX1

Format the partition

$ sudo mkfs.vfat -n MULTIBOOT /dev/sdX1

2. Create 2 directories boot and iso inside your USB.

$ sudo mkdir /run/media/USERNAME/MULTIBOOT/{boot,iso}

if this doesn’t work, just go to MULTIBOOT and create the directories with the command mkdir.

3. Install grub (this command didn’t work on openSUSE. I guess there was something more to install).

$ sudo grub-install –force –no-floppy –root-directory=/run/media/USERNAME/MULTIBOOT /dev/sdX

4. Copy the ISO you want to the iso directory of the USB.

5. Create a grub.cfg file

$ nano /run/media/USERNAME/MULTIBOOT/boot/grub/grub.cfg

Here is all the different options you could have.
Add the text:

# Config for GNU GRand Unified Bootloader (GRUB)
# /boot/grub/grub.cfg

# Timeout for menu
set timeout=30

# Default boot entry
set default=0

# Menu Colours
set menu_color_normal=white/black
set menu_color_highlight=white/green

# Path to the partition holding ISO images (using UUID)
#set imgdevpath=”/dev/disk/by-uuid/UUID_value”
# … or…
# Path to the partition holding ISO images (using device labels)
#set imgdevpath=”/dev/disk/by-label/label_value”
set imgdevpath=”/dev/disk/by-label/MULTIBOOT”

# Boot ISOs
menuentry ‘openSUSE Tumbleweed GNOME Live x86_64′ {
set isofile=’/iso/openSUSE-Tumbleweed-GNOME-Live-x86_64.iso’
loopback loop $isofile
linux (loop)/boot/x86_64/loader/linux isofrom_device=$imgdevpath isofrom_system=$isofile LANG=en_US.UTF-8
initrd (loop)/boot/x86_64/loader/initrd
}

menuentry ‘openSUSE Tumbleweed KDE Live x86_64′ {
set isofile=’/iso/openSUSE-Tumbleweed-KDE-Live-x86_64.iso’
loopback loop $isofile
linux (loop)/boot/x86_64/loader/linux isofrom_device=$imgdevpath isofrom_system=$isofile LANG=en_US.UTF-8
initrd (loop)/boot/x86_64/loader/initrd
}

menuentry ‘openSUSE Tumbleweed GNOME Live 32bit’ {
set isofile=’/iso/openSUSE-Tumbleweed-GNOME-Live-i686.iso’
loopback loop $isofile
linux (loop)/boot/i386/loader/linux isofrom_device=$imgdevpath isofrom_system=$isofile LANG=en_US.UTF-8
initrd (loop)/boot/i386/loader/initrd
}

menuentry ‘openSUSE Tumbleweed KDE Live 32bit’ {
set isofile=’/iso/openSUSE-Tumbleweed-KDE-Live-i686.iso’
loopback loop $isofile
linux (loop)/boot/i386/loader/linux isofrom_device=$imgdevpath isofrom_system=$isofile LANG=en_US.UTF-8
initrd (loop)/boot/i386/loader/initrd
}

menuentry ‘openSUSE-Tumbleweed-DVD-x86_64′ {
set isofile=’/iso/openSUSE-Tumbleweed-DVD-x86_64.iso’
loopback loop $isofile
linux (loop)/boot/x86_64/loader/linux install=hd:$isofile
initrd (loop)/boot/x86_64/loader/initrd
}

menuentry ‘openSUSE-Tumbleweed-DVD-i586′ {
set isofile=’/iso/openSUSE-Tumbleweed-DVD-i586.iso’
loopback loop $isofile
linux (loop)/boot/i386/loader/linux install=hd:$isofile
initrd (loop)/boot/i386/loader/initrd
}

menuentry ‘openSUSE-Tumbleweed-NET-x86_64′ {
set isofile=’/iso/openSUSE-Tumbleweed-NET-x86_64.iso’
loopback loop $isofile
linux (loop)/boot/x86_64/loader/linux install=hd:$isofile
initrd (loop)/boot/x86_64/loader/initrd
}

menuentry ‘openSUSE-Tumbleweed-NET-i586′ {
set isofile=’/iso/openSUSE-Tumbleweed-NET-i586.iso’
loopback loop $isofile
linux (loop)/boot/i386/loader/linux install=hd:$isofile
initrd (loop)/boot/i386/loader/initrd
}

menuentry ‘openSUSE-Leap-42.1-DVD-x86_64′ {
set isofile=’/iso/openSUSE-Leap-42.1-DVD-x86_64.iso’
loopback loop $isofile
linux (loop)/boot/x86_64/loader/linux install=hd:$isofile
initrd (loop)/boot/x86_64/loader/initrd
}

menuentry ‘openSUSE-Leap-42.1-NET-x86_64′ {
set isofile=’/iso/openSUSE-Leap-42.1-NET-x86_64.iso’
loopback loop $isofile
linux (loop)/boot/x86_64/loader/linux install=hd:$isofile
initrd (loop)/boot/x86_64/loader/initrd
}

I wrote all possible senarios. You choose what you need.

Everytime that new snapshot is available, you download and change the name. Then just copy it in the iso directory.

You can test my live USB Tumbleweed GNOME+KDE, 32-64bit plus NET install of Leap. It fits in 4GBs USB.

If you want to use other distro, just check the wiki.

]]>
Install ddclient on your openSUSE Raspberry Pi https://lizards.opensuse.org/2015/05/25/install-ddclient-on-your-opensuse-raspberry-pi/ Mon, 25 May 2015 12:49:04 +0000 http://lizards.opensuse.org/?p=11434 We’ve seen two Dynamic DNS clients. We’ll see another one here.

1. First of all, install the program.

$ zypper in ddclient

2. Create the confing file

$ nano /etc/ddclient.conf

with the following content

daemon=5m
timeout=10
syslog=no # log update msgs to syslog
#mail=root # mail all msgs to root
#mail-failure=root # mail failed update msgs to root
pid=/var/run/ddclient.pid # record PID in file.
ssl=yes # use ssl-support. Works with
# ssl-library

use=if, if=eth0
server=freedns.afraid.org
protocol=freedns
login=login_name
password=the_password
somedomain.mooo.com

Change the ones that are in bold letters.

3. Start the service

$ systemctl enable ddclient

Reboot

]]>
Upgrade your openSUSE Raspberry Pi from 13.1 to 13.2 https://lizards.opensuse.org/2015/05/24/upgrade-your-opensuse-raspberry-pi-from-13-1-to-13-2/ Sun, 24 May 2015 09:59:06 +0000 http://lizards.opensuse.org/?p=11431 We’ve seen how to create an SD card. I used the 13.1 version. The wiki page https://en.opensuse.org/HCL:Raspberry_Pi is not very clear (to me) about resize partitions. So I tried to upgrade the version 13.1. Here what I did.

1. Check if the update repository already exists and is enabled.

$ zypper repos –uri

You should have the following enabled

3 | openSUSE-13.1-repo-update | openSUSE-13.1-repo-update | Yes | Yes | http://download.opensuse.org/ports/update/13.1/

If not, then add it

$ zypper addrepo –check –refresh –name ‘openSUSE-13.1-Update’ http://download.opensuse.org/update/13.1/ repo-update

2. Refresh and update your system

$ zypper ref && zypper update

3. Remove all third party/OBS repos you no longer need.

$ zypper lr

# Remove with

$ zypper rr (alias or number)

4. Change all remaining repo URLs to the new version of the distribution (needs to be run as root).

$ cp -Rv /etc/zypp/repos.d /etc/zypp/repos.d.Old

5. Change the repos.

$ sed -i ‘s/13\.1/13.2/g’ /etc/zypp/repos.d/*

6. Refresh new repositories (you might be asked to accept new gpg key)

$ zypper ref

If you haven’t removed third party/OBS repositories you may encounter some errors as these repositories may not exist yet or they may have different unguessable URL. It is always recommended to remove them and add their newer version after upgrade.

7. Upgrade

$ zypper dup

Now you have to wait. Reboot at the end, just to be sure that everything went smooth.

]]>
Run copy.com on your openSUSE Raspberry Pi https://lizards.opensuse.org/2015/05/23/run-copy-com-on-your-opensuse-raspberry-pi/ Sat, 23 May 2015 09:34:10 +0000 http://lizards.opensuse.org/?p=11428 A good question is why do you want to sync a folder on your Raspberry Pi with a cloud service. The answer is little complicated. It’s a subproject that I’m working on right now. I want to upload some data I’ll create on a Raspberry Pi (with limited size of SD card). The uploaded data will be saved on other computer and the SD will be clear again to create new data.

The cloud service I prefer is always ownCloud.
Here I used http://www.copy.com. It provides 15GB of disk but you can increase it.

First of all download the file

$ wget http://copy.com/install/linux/Copy.tgz

Then extract it

$ tar xzvf Copy* copy/armv6h/

This will create a folder called “copy,” and in it there will be three sub-folders: “armv6h,” “x86,” and “x86_64.” The first one contains the Copy client binaries for the Raspberry Pi, the second contains the Copy client for 32-bit Linux on a PC, and the third the same client but for 64-bit Linux PCs.

$ cd /copy/armv6h

Now there are 2 ways of using copy. The CopyCmd tool and CopyConsole.

CopyCmd

List of the directories

$ ./CopyCmd Cloud -username=user@gmail.com -password=’mypass’ ls

Upload all content of local /home/user/directory/ to remote /directory

$ ./CopyCmd Cloud -username=user@gmail.com -password=’mypass’ put -r /home/user/directory/ /directory

CopyConsole

The CopyConsole tool keeps a folder on your Raspberry Pi synchronized with the data on Copy.com.
The sync app runs in the background and is started like this:

$ ./CopyConsole -daemon -username=user@gmail.com -password=’mypass’ -root=/home/user/directory

This will sync the local /home/user/directory to copy.com. If you delete something from there, it’ll delete from local folder as well.

Remeber to run this command everytime you restart your pi. It’s better to run it manually because there is username and password that are personal (unless you created an account just for your raspberry pi).

]]>
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.

]]>
Set static IP on your openSUSE Raspberry Pi https://lizards.opensuse.org/2015/05/21/set-static-ip-on-your-opensuse-raspberry-pi/ Thu, 21 May 2015 16:08:23 +0000 http://lizards.opensuse.org/?p=11424 To set a static IP in Debian based distros is easy. Just change a file (/etc/network/interfaces).
In openSUSE is easier. Everything can be done under YaST.

1. Open YaST and go to Network Devices>Network Settings.

2. Then choose Statically Assigned IP Address (move with tab button and click on space button). Give the static IP you want and as Subnet Mask, 255.255.255.0. Press Next (press enter).

3. You’ll see an overview of the ethernet card.

4. Go to Hostname/DNS and add Google’s DNS servers (optional).

5. Next, go to Routing and add your router ip (usually 192.168.1.1).

Now press OK, reboot and try to login again with SSH.

]]>