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.

AG Open Source and our responsibilities

Last semester I founded the AG Open Source at our university. We are organizing workshops and hackathons in cooperation with open source projects/ companies. Our students should learn more about open source development and how to contribute. The difference to the Friedrich-Alexander-University and their professorship in open source development is that we want to learn the real practice by professionals.

After 3 months we had a reputation. The AG Open Source should be open for other faculties, too. EFI (electronic – fine mechanics – information technology) has been interested for our events. So students in Computer Science and Electronics are receiving basic courses in Linux and using git. In addition, we create a program which is different every semester. Last semester we had topics like security and the ownCloud hackathon. This semester our focus is on monitoring and docker.

I am the Lead of the AG Open Source. I am educating other students in the student council for different positions in the AG. We need an additional lead. So I have one student as a Junior Lead who is being taught in organization, email writing and publishing by me. Two other students want to become Linux Trainers. They  have to know all about the cooperation with other  AGs in the student council and their processes, too.

Last semester I was the Linux Trainer in all Linux workshops. One (advanced) student supported me with running through the lines and looking for different students. Other students in my semester are interested for this job this semester, too. Last week we received the request for a Linux course for advanced Linux users parallel to the Linux course for beginners. So I am teaching one student to pick up my course for beginners. Next semester we’ll use 2 rooms for this event. I’m planning the course for Advanced Linux Users.

 

Since this week we are responsible for a new task at our university: Linux

support for students

A EFI student stood in the door of our student council for Computer Science and said: „I’m not from this faculty, but I need Linux support by the AG Open Source. Nobody else can help me. I was in the data center. They want to support only Windows. I can’t find anybody at our faculty, too.“

The data center has reconfigured eduroam. That’s the Wifi for students and professors. We need additional entries for Linux systems and a new certificate now. I configured his Wifi and I know: I have to educate Linux Supporters for our AG. On our internal homepage openSUSE and Android are listed as supported operating systems (Linux) by the data center, but our Sysadmins don’t know what to do there. All students are coming to the student council for Computer Science now, because they are receiving Linux workshops by us.

Our AG Open Source is growing, but our responsibilities are growing, too!

 

 

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.

FOSDEM Day 1 and Day 2

 

I have slept in the Hotel Evergreen. The breakfast was very small. The room and wireless were ok.

I have got luck, that other German people wanted to go to FOSDEM, too. They have been in the same hotel and knew the way from the last years. They shown me the different houses and I went directly to the openSUSE booth, where some of the community were available. CentOS was our neighbor. We all have got gloves and tee shirts by them. They have got beer by us.

I have got new t shirts. I wore one of last November with the new release. I was a little bit surprised, that we would have a new one again. DVDs with Leap were available, too. They were burned in December – the last month of Open Source Press. They closed. That was my first question, I asked Richard. He told me, that they have closed for books, but would produce DVDs for a longer time.  It was a full day for us at the booth. We disposed beer and t shirts. I new many faces from OpenRheinRuhr, FrOSCon and GUUG. It has been more famous faces I thought to know. I will see many of them at the FFG of the GUUG again.

 

I made a trip through the house to the other booths. People of our DevOps meetup group wanted to have Jenkins stickers. I took some of them. I bought a tee shirt by them, too. After that I heard, that they would have Jenkis meetup groups everywhere on the world, but not in Germany at the moment. We have got so many meetup groups for it in Karlsruhe and not Jenkins? It would be too late for me, because I want to change the town in May. I will give it to our organisators and take it with me for Nuremberg.teamFOSDEM

 

I was interviewed by the Hacker Public Radio.  They wanted to have a interview at every booth. My sound wasn’t very good after a common cold, but I did it. All my Open Source friends were coming to me at the booth. I gave Douglas some hints for the next oSC. I don’t know at the moment, whether I can come, because that will be my second month living in Nuremberg again. In the evening of the first day some community members wanted to go out for eating and drinking. At the end we let it for being fit for the next day.

At the next day the FOSDEM wasn’t so full like the day before. At the beginning I created a plan for visiting talks. I have got the next interview with a PhD student of the TU Berlin for his doctor thesis. His doctor father told him wrong things about the difference between Microsoft and Linux projects. Some things have been right, but our support can be faster than the support of Microsoft. And we get more and more customers by them.

 

My first visit to a talk was Literate DevOps for Configuration Management. I hoped a little bit more about this presentation. During the presentation I thought about doing every step with sed. My directly neighbor was another student at the German distance teaching university (Master Praktische Informatik). He wanted to know, how you can get more support by the university. I told him about our facebook group, newsgroups and irc. He was surprised, that the university would have irc channels. After his stories about his first studying (business information technology) und Hagen I am happy, that I want to change to Nuremberg. I don’t need a education degree by a university on the level of a university of applied science.

 

After that I went to Big Data meets fast Data. I have got luck for getting a free place. It was a presentation about different in-data-memory databases. That was very interesting for me. After that I took a conference waffle with me to the booth. I saw some people of B1 Systems again.

At the end of the day I have got a openSUSE box by Richard. I am looking forward to the future of the openSUSE box (perhaps without Open Source Press).

oSBox

 

Thanks for the wonderful 2 days and the Travel Support. That was my first chance for coming to FOSDEM, because normally that’s the time for learning for the university. I have done a break this semester. I was able to take a lot with me. Next year I will have learning on the program at this time again.