Installation of Jupyter on external hard disk/ USB

We have to use Jupyter notebooks for Machine Learning at our university. Jupyter needs a lot of space on the hard disk and I was able to remember (from vocational school) that we were able to install PHPMyAdmin on a USB stick. You have a transportable web application on this way. I had this goal for Jupyter and the Python environment on Linux. 🙂

So I want to give you the installation guide for Jupyter on openSUSE Leap 15.1 (incl. Python) in a virtual environment.
Install the following packages as a foundation:

 sudo zypper install python3-pip python3-devel

After that install the virtual environment with pip3:

sudo pip3 install --upgrade pip
sudo pip3 install virtualenv

Create a project directory for Jupyter in your home directory and mount the external disk/ USB stick there:

sudo mkdir ~/Jupyter
sudo mount /dev/sda1 ~/Jupyter

You have to umount /dev/sda1, if the disk has been mounted automatically in /run/media/ (in my case):

sudo umount /run/media/user/TOSHIBA\ EXT/
sudo mount /dev/sda1 ~/Jupyter

If the external disk is mounted, you can create the virtual environment for Python and Jupyter in the special project directory:

virtualenv ~/Jupyter

Inside, it will install a local version of Python and a local version of pip. We can use this to install and configure an isolated Python environment for Jupyter.
Before we install Jupyter, we need to activate the virtual environment:

source ~/Jupyter/bin/activate

You are ready to install Jupyter into this virtual environment.
You can install Jupyter on the external disk with the following command:

pip install jupyterlab

Call Jupyter via command line inside of the project directory then:

jupyter notebook

That will open your web browser with http://localhost:8888/tree.
Do you need additional packages or Python libraries? You can install them in this project directory, too.
Change to this directory and install them with pip3 (in my case these ML packages):

pip3 install scipy numpy matplotlib sklearn pandas
pip3 install keras tensorflow

Enjoy Jupyter on an external disk.

Running for the openSUSE Board again…

One period is more quickly left than you can imagine and I am running for re-election for the openSUSE Board!
My name is Sarah Julia Kriesch and I am a work experienced Student in Computer Science at 2 universities.
I am completing my Study Abroad Semester at the University of Bristol at the moment and I have a running IT project at my home university Nuremberg Institute of Technology Georg Simon Ohm. In addition, I am working as a Student Research Assistant at my home university.

A lot has happened in the last years and I try to combine my studies with openSUSE Contributions as best as possible. I am the Founder of the Working Group Open Source  at the Faculty of Computer Science of the Nuremberg Institute of Technology. We offer workshops in Linux and Open Source bi-weekly. These are open for Students by other Faculties, too. I am the Educator for our Orga Team with Linux Trainers. We have presentations and workshops in cooperation with openSUSE every semester. I want to forward such Open Source education everywhere in Germany.

Our IT project is a migration of our Linux Laboratory from Ubuntu to openSUSE Leap. We automate that with Salt and that all have to work with Kerberos authentication. So our Students are able to use their AD accounts and special sums have to be debited against our student cards for printing with Kerberos tickets then. We are working in cooperation with SUSE here.

I have occupied myself with different units in Bristol. I have HPC, Embedded & Real-Time Systems, Security and Sustainability. I am glad to be allowed to combine a part of my exam in Sustainability with openSUSE. I wanted to create a project plan to improve our Sustainability for my next period in the openSUSE Board. My election pledge is the switch from DVDs to USB flash drives in the marketing material.

My efforts within openSUSE is mainly an education part at our university to receive new openSUSE/ Open Source Contributors and being active as an Advocate at different conferences and expos. I have switched from Germany to the United Kingdom for this semester. This year I will return to Germany. Another role is the Global Coordinator Localization incl. German translations and the Wiki.

Going forward and joining Germany again, I want to concentrate more on the well-being of the openSUSE Community. You don‘t receive new Contributors if you don‘t have the correct climate in the community and some would be unsatisfied. I want to build that on the introduction of the Board publicity by our elected Board Members in the last year. That would improve the collaboration and respect within openSUSE.

I am much obliged to be an elected Board Member for 2 years. I appreciate receiving your votes for a second term.

Thank you in advance!

 

 

 

 

 

tcpdump of a docker container

You create docker containers and many tools are missing. As an example: tcpdump

So I was looking for a solution for sniffing the traffic from outside of the container. It is recommended to setup an additional (tcpdump) container and to use it with following network connection:

docker pull adamoss/docker-tcpdump

docker run -ti –net=container:${id} adamoss/tcpdump port https or port http

 

You can specify different ports and save the data in a file. The id is the name of the container and the „–net=container:“ is saying that you want to have input/output traffic of the docker container like the command would be executed on the same system.

openSUSE on ownCloud

It is Christmas time and I have got cookie cutters by openSUSE and ownCloud. What can you create as a happy Working Student at ownCloud and an openSUSE Contributor?

Normally you deploy ownCloud on openSUSE. But do you know the idiom „to be in seventh heaven“ (auf Wolke 7 schweben)?

I want to  show you openSUSE Leap 42.2 on ownCloud 9.

 

opensuse Leap 42.2 on owncloud 9
opensuse Leap 42.2 on ownCloud 9

9.1 is the latest release, and 7 not up to date and insecure for the openSUSE chameleon. The second reason is that the chameleon has got a perfect place on the cloud.

You can watch the success in both projects!

I wish you all a merry christmas and a lot of fun with your cookie cutters!

Arriving in Brussels for FOSDEM

Today I left the company a little bit earlier for getting the train to Brussels.

What for a surprise! A ex colleague of 1&1, who works as an architect, was sitting across from me since Mannheim. We told us about the changes in the last years, what would be new and what we want to have in the future. We had to wait for the next train in Cologne for a 3/4 hour. We used this time for eating. We met another ex colleague, who is a freelancer now. WE spoke about Cologne and the life there. I have lived 8 years of my childhood in this town.

We began a discussion about good literature for Computer Science and getting DevOps into a company:

-The most important book for learning programming and algorithms in theory is Introduction to Algorithms. You can find additional videos matching to the book on the homepage of the MIT.

-I go to every presentation of the Java User Group Karlsruhe. Many companies are working on the base of Clean Code. That’s the practical part for good programming. Every programmer should read this book.

-You can learn operations with an own server at home or with training on the job in companies. I have taken the first way during my education as a Computer Science Expert and have got a job as a Junior Linux System Administrator at 1&1 after that. That was a big jump for me and I enjoyed my junior time. Our team has got the specialization „Monitoring & Infrastructure“. We were Sysadmins for the root monitoring system, the customer DNS and the internal DNS. I wanted to learn more and switched to an international provider for MRM systems. We are a small business, but the leader on the European market. I was responsible for all in the system administration of our customer systems. Different Open Source Software is integrated into our software and working in this area of Cloud Computing is part of Big Data. You can have fun there and grow.

The combination of all is a dream…

We took different ways after arriving Brussels. I went to the hotel Evergreen. I thought, that would be a good idea for bowing out of Evergreen in openSUSE. We‘ ll miss this project.

 

I am looking forward to see many familiar faces at the FOSDEM.