Five Nextcloud Do’s and Don’ts

Five Nextcloud Do’s and Don’ts

Here are a five Do’s and Don’ts you should consider when using Nextcloud. These are examples that have of course already happened a few times in the past.

Do’s

1. When you activate an app, make sure you read the instructions first. Not reading them could cause serious problems with your Nextcloud.

2. If many people are working on a document it is better to do this online as there are no conflicts with the document. However, if you work offline, the document may not yet be synchronized and everyone gets a different version of it.

3. It is more helpful and clearer if you create a separate account for each user in the nextcloud. For example, you can see which user has deleted a file.

4. If you share a file via link, it is highly recommended to set a password and an expiration date of the link. This ensures more security for your data.

5. Always have a backup independent of the provider when working with sensitive or company relevant data. If you or one of your users makes a mistake and data is accidentally deleted, you should always have a backup of all your data stored locally.

Don’ts

1. Don’t put all files in one folder and share it with all users, so they all work on it at the same time. If several users work in the same folder at the same time, this can lead to problems during synchronization, especially if the same file is edited or uploaded.

2. But even if one of the users deletes the folder locally from the sync folder, you may lose all your data.

3. Don’t enable server side encryption because you can’t turn it off again. If you activate server-side encryption in Nextcloud, you will not receive a key to decrypt it again. To do this you would have to encrypt it on the command line where you also get a key to decrypt it again.

4. Don’t use the End-to-End-Encryption if you are not familiar with it. In addition the End-to-End-Encryption is still in beta testing. As you may know, betas may contain problems and shouldn’t be used without caution, especially when it comes to data that is very important for companies or yourself.

5. Don’t delete data from the local sync client folder. All data you delete from the sync folder will be deleted in the cloud as well. The data you delete from the sync folder will be synchronized with the cloud as well as with the local sync folders of all other users. Everything you change in the local sync client folder will also be changed in the cloud, please keep this in mind.

Please try to follow these guidelines, so you can work safely with Nextcloud without encountering particularly serious problems. If you stick to these Do’s and Don’ts, you will have no problems using Nextcloud.

Marius Gebert
Marius Gebert
Systems Engineer

Marius ist seit 2013 bei NETWAYS. Er hat 2016 seine Ausbildung zum Fachinformatiker für Systemintegration absolviert und ist nun im Web Services Team tätig. Hier kümmert er sich mit seinen Kollegen um die NWS Plattform und alles was hiermit zusammen hängt. 2017 hat Marius die Prüfung zum Ausbilder abgelegt und kümmert sich in seiner Abteilung um die Ausbildung unserer jungen Kollegen. Seine Freizeit verbringt Marius gerne an der frischen Luft und ist für jeden Spaß zu...

Jitsi vs Zoom vs BigBlueButton

Jitsi vs Zoom vs BigBlueButton

Because of Covid-19 there are a lot of precautions right now. Many companies are now forced to work remotely and this has caused a huge increase in digital work over the last few months. The classic office job naturally also includes meetings, which now have to take place online. Video conferencing platforms such as Zoom, Jitsi and BigBlueButton are suitable for many companies. But the question for a lot is, which is the most suitable platform for their own company or own personal use.
We have taken a closer look at these different appications and this is our conclusion.

What is Jitsi Meet, Zoom and BigBlueButton and how do they work?
The three applications are video conferencing and messenger services. You can create video rooms where you can video chat with co-workers, friends and relatives. You can chat with participants, share appointments and documents as well as your screen. All you need is a device capable of running the applications and a stable Internet connection.

Jitsi

Jitsi meet is a part of the open source software project Jitsi. This application requires no download and can be used on the web without registration. You can easily and quickly create a conference room and share it to others. Of course it is also possible to assign a password to this conference room. In addition, it is possible to add an unlimited number of participants to the chat, but please note that the use with video is limited to about 50 participants. The Internet connection is the problem here, each participant has an estimated input of 2 MBps with audio and video. Since not every participant has high-speed Internet access, it will be difficult to play back video transmissions from 50 or more participants. Other features include end-to-end encryption, chrome extension, an IOS and Android app as well as free unlimited use. A very important factor is data security, which is well provided by Jitsi. No data is passed onto third parties, but remains within the company.

Zoom

Zoom is a very popular way of video chatting and is widely used for professional applications. Of course, screen contents can be shared with other participants. The chat function, whiteboarding, breakout and waiting rooms are further features of Zoom. The free basic version of Zoom allows the use of a maximum of 40 minutes, which is a small disadvantage. In addition an account must be created to use Zoom. However, there are other versions available which are subject to a charge. With the paid versions it is possible to add up to 500 or even 1000 participants and use unlimited cloud memory. According to heise.de, Zoom sent data to Facebook every time the iOS version of the software was launched until the end of March – even if the Zoom user does not have a Facebook account. We cannot assess the data security at Zoom.

BigBlueButton

BigBlueButton is also an open source product like Jitsi and offers the possibility to extend your application with add-ons. This makes it suitable for many companies that like to integrate their application into another product. Also with BigBlueButton no additional software has to be installed, because the application runs on the web. However, BigBlueButton requires a server to be running first, after which users can access it via the web. BigBlueButton is not for communication in teams or among individuals, but rather for seminars and other interactive event formats with a manageable number of participants.

Conclusion

To summarize, Jitsi is now a very successful alternative to Zoom and can compete with its security and ease of use. However, we would be happy for a few more features.
Zoom is currently very successful and offers a simple and great solution for many companies. However, you need to be well informed about how user data is handled.
BigBlueButton is a very successful application which is becoming more and more interesting for many people. Unfortunately, the ease of use is not as good as the competition.
In general the platforms are quite similar, but still very different in their own way.

Marius Gebert
Marius Gebert
Systems Engineer

Marius ist seit 2013 bei NETWAYS. Er hat 2016 seine Ausbildung zum Fachinformatiker für Systemintegration absolviert und ist nun im Web Services Team tätig. Hier kümmert er sich mit seinen Kollegen um die NWS Plattform und alles was hiermit zusammen hängt. 2017 hat Marius die Prüfung zum Ausbilder abgelegt und kümmert sich in seiner Abteilung um die Ausbildung unserer jungen Kollegen. Seine Freizeit verbringt Marius gerne an der frischen Luft und ist für jeden Spaß zu...

Mattermost vs Rocket.Chat

Rocketchat vs Mattermost: Which one is right for you?

Communication inside the company is crucial for any business, whether you have 20 members of staff or 1000. Every business needs a way to get their message across and a platform to do so. Why should messaging services just be used for social means? The capabilities of an open-source chat platform brought into a business environment is a utility that everyone needs to consider. Two of these contenders that are in the spotlight today are Rocketchat and Mattermost.

Both are great open-source chat apps with a clean interface that isn’t cluttered and all of your groups neatly categorized so you can see exactly whats going on. They have taken simplicity, efficiency and productivity and rolled it all into a package that can really propel the level of communication in your business. Think of the success of Whatsapp and Messenger and how they both deliver on a social platform, now apply that to a business environment where you can expand the possibilities of communication to greater heights.

Lets jump right into Rocketchat and what see they have to offer.

 

Rocket.Chat

Right from the get-go you find yourself with a comfortable user interface that doesn’t jump out at you, but instead has been carefully laid-out to keep all of your chats and groups organized without having to trawl through 100s of contacts. The ability to manage groups and contacts gives you full control over what you see on your homepage neatly separated into categories of whats important to you. Being available for desktop and mobile devices you can take your chats everywhere with you and always be in the loop. Not only that but admin may also grant permissions to different users giving you control over how your chat operates.

 

Ease of Use

Due to current circumstances more and more people are now doing home-office and Rocketchat is well equipped to make sure that business flows uninterrupted and could even be the bridge to new working opportunities. With audio/video conferencing, screen sharing and live translation in nearly 40 languages already integrated, it will almost feel like your employees never left the office. As well as with email you also have the option to sign in from 3rd party apps like Facebook, Google and even Github. There’s no need to bring everyone into a meeting especially when some have to travel great distances or some are not currently in the office, just setup your meeting through Rocketchat and give everyone the ability to join from wherever they are.

Privacy

For those of you concerned about privacy, you also have the option to self-host your chat, especially if you are interacting with your customers. You can have thousands of people in designated chatrooms which you have control over and you also don’t have to pay per person which could save you a lot of money! All of your data stays safe so none of your information will be passed onto a 3rd party.

  • Clean user-friendly interface
  • Control over permissions
  • Audio/video conferencing and screen share
  • Privacy is key, nothing is forwarded

Mattermost

Now lets take a look at what Mattermost has to offer and for those of you coming from Slack, you will have an easy time transitioning. Much like Rocketchat, you will see how nicely laid-out all of your menus are and you even have the opportunity to separate your groups further so each department can have their own channel for private or group chatting. You can also import your data from Slack directly so you will be away in no time.

Privacy

Mattermost takes privacy to the next step with self-hosted deployment on premise or even to private or public clouds. Take control of your data and even after you decide to cancel, all of your information stays with you. Everything about you like IP addresses, usage patterns and even the details in your messages are kept secret so you don’t have to worry about them being passed onto anyone. There is also the option of Data loss prevention and complete operational auditability which grants you full access to logs of all server records, infrastructure/database changes and user activity.

Customization

One thing I love most about Mattermost is the customization of over 700 UI and UX apps and tools that can be integrated. You have an entire catalog of extensions, web-hooks and even chat bots that can be implemented into the program to boost productivity and avoid consistent switching of apps and programs. Why have email, video call and screen share in 3 different programs, when you integrate everything into one and use it as a hub for all of your communication needs. Here you have the freedom to customize everything to how you want it to look and even create your own plugins.

Smooth Features

Gone are the days of sending an email and waiting for a reply and having to cc everyone into the message. Here you can live chat with anyone in any group and even @ mention people where they will be notified either in app or when they are offline by email. Not only that but with silk smooth features like drag and drop file sharing, project management and custom emojis, your contacts will have no problem presenting projects and showing off their latest ideas.

  • Privacy when you delete any of the NETWAYS Web Services apps, all of the data is deleted with it
  • Integration from over 700 apps and tools
  • Smooth features for sharing and messaging
  • Endless customization possibilities

 

The great thing with both of these apps is it doesn’t just end there. Both being open-source opens the doors to unlimited possibilities in order to meet your needs. Make it your own and customize it however you like, don’t just be happy with the default you are given. And don’t just think of them as business only apps, they are perfectly suitable for private use especially now more people are spending time at home, possibly away from family, this is a great way to stay connected.

With plans to suit all of your needs NETWAYS Web Services offers various packages that can be deployed instantly and ready to use within minutes. Whether you choose to host it yourself or publicly over the cloud, a more secure communication service with endless customization options is here and it’s working wonders.

Marius Gebert
Marius Gebert
Systems Engineer

Marius ist seit 2013 bei NETWAYS. Er hat 2016 seine Ausbildung zum Fachinformatiker für Systemintegration absolviert und ist nun im Web Services Team tätig. Hier kümmert er sich mit seinen Kollegen um die NWS Plattform und alles was hiermit zusammen hängt. 2017 hat Marius die Prüfung zum Ausbilder abgelegt und kümmert sich in seiner Abteilung um die Ausbildung unserer jungen Kollegen. Seine Freizeit verbringt Marius gerne an der frischen Luft und ist für jeden Spaß zu...

Gitlab Johnyj12345 Hack

Yesterday we received the information that there is a new Gitlab “hack” which could affect older versions of Gitlab. If affected it will behave like this:

The publicly visible procedure is always the same: Johny creates one or more issues that are linked with each other and at the end of the link cascade there’s either an attached file or a link to a file which holds Gitlab’s secrets.yml.

Source: https://blog.philipp-trommler.me/posts/2020/07/13/security-possible-gitlab-hack-johnyj12345/

It seems like the vulnerability was fixed with these security release:
https://about.gitlab.com/releases/2020/03/26/security-release-12-dot-9-dot-1-released/

The NWS team wrote some scripts to see if any of the Gitlab CE / Gitlab EE apps are affected, which was not the case, also because NWS apps are running on the latest version of Gitlab.

This issue is very critical since the secrets.yml can be found with a simple web search and contains informations like:

  • secret_key_base
  • db_key_base
  • otp_key_base

 

If you are affected, you should

  • take down your Gitlab instance
  • remove the user
  • remove the issues
  • update your instance.

Best would be to also reset the “secrets.yml”, but as far as i know, there is currently no way to do so.

 

Here is a short script to check quick if the user exists (if you don’t want to check via web interface):

#!/bin/bash

echo "User.all" | gitlab-rails console | grep "Johny12345" 2>&1
response=`echo $?`

if [ $response == "0" ]; then
echo "[ALERT] Johny was here ... "
else
echo "[OK] No Johny found ..."
fi

Marius Gebert
Marius Gebert
Systems Engineer

Marius ist seit 2013 bei NETWAYS. Er hat 2016 seine Ausbildung zum Fachinformatiker für Systemintegration absolviert und ist nun im Web Services Team tätig. Hier kümmert er sich mit seinen Kollegen um die NWS Plattform und alles was hiermit zusammen hängt. 2017 hat Marius die Prüfung zum Ausbilder abgelegt und kümmert sich in seiner Abteilung um die Ausbildung unserer jungen Kollegen. Seine Freizeit verbringt Marius gerne an der frischen Luft und ist für jeden Spaß zu...
NWS announces: Nextcloud Hub now available

NWS announces: Nextcloud Hub now available

Nextcloud released a new version. But it’s not just a normal update, since there are a lot of changes, as they already described in their press release:

“With the release of Hub, Nextcloud brings a free, open source, on-premises office suite to millions of users, lowering the barrier to use. Hub brings office integration to a new level with the built-in sidebar featuring an insight in file activities, file versions, comments, chat, and video calls. […] With Hub come major improvements in Nextcloud Files, Talk and Groupware. Files introduces Workspaces, […] Nextcloud Talk for Hub features a rewritten user interface […] Nextcloud Groupware was improved.” – Nextcloud, Press release 17.01.2020

Since yesterday Nextcloud Hub is also available on the NWS Plattform. The most interesting point is that the new version brought a huge performance improvement to our SaaS (Software as a Service) app. We saw in the past, that Nextcloud 17 was pretty slow with a S3 storage as primary storage. But now we have the best benefits of using our own S3 as a primary storage with a performance that is just awesome. You could call it a “Nextcloud Managed Hosting”

We also decided to stick with Nextcloud Collabora Online instead of OnlyOffice, since we invested a lot of time to optimize Collabora to ensure the best user experience.

What makes Nextcloud Hub as a NWS SaaS app so special?

Feature
Current Version Hub (18.0.0)
Users 25 / 50 / 100
Storage 50 GB / 200 GB / 1000 GB / More possible
Traffic Flat
Collabora Inclusive
Updates Inclusive
Backup (Of configuration) Inclusive
Storage Our own NWS S3 (NOT AWS)
Need to buy a domain No. Use one of our free CNAMEs or use your own Custom Domain
Support 8×5
Migrating to NWS Possible
Installed apps Use our preinstalled apps or install whatever you want from the appstore
Callable Monthly
Server locations Nuremberg, Germany
DC Certificate ISO 27001
Time the app needs to be ready Max. 5 minutes
Special offer First 30 days are for free. Note that it is callable monthly
Costs 9,99 € / 24,99 € / 99,99 €
Start now FOR FREE Show me more informations

What is the NWS SaaS platform about?

With our SaaS platform we provide our customers with applications on demand with almost no need to take care of them. We deliver the features, the updates, taking care of the security and offer support.
Not everyone has the know-how to build up an infrastructure that fits their needs as well as maintaining it. So we created NWS for everyone who don’t want to take care about things they need to work with – we created NWS for everyone who just wants to use the software.

It’s a platform for things like “one klick installation Nextcloud / Gitlab / Rocket.Chat” etc.

Give it a try. If you just want to try, it’s completely for free. WHAT ARE YOU WAITING FOR?

Marius Gebert
Marius Gebert
Systems Engineer

Marius ist seit 2013 bei NETWAYS. Er hat 2016 seine Ausbildung zum Fachinformatiker für Systemintegration absolviert und ist nun im Web Services Team tätig. Hier kümmert er sich mit seinen Kollegen um die NWS Plattform und alles was hiermit zusammen hängt. 2017 hat Marius die Prüfung zum Ausbilder abgelegt und kümmert sich in seiner Abteilung um die Ausbildung unserer jungen Kollegen. Seine Freizeit verbringt Marius gerne an der frischen Luft und ist für jeden Spaß zu...

Cachet now available at NETWAYS Web Services

We think communication is crucial. Especially during downtimes. That’s why we release a new app today. An app, which allows you to share all necessary information about your services and servers with your users. Cachet is software that improves downtime.

Cachet is a status page, which is very simple to use, yet it offers many opportunities, to better communicate downtime and system outages to customers, teams and shareholders. You can display the status of your services, websites and servers. You can create and show metrics, plan maintenances or inform your users about current issues.

 

 

Cachet comes with a powerfull API. In the detailed documentation you can generate your calls for whatever you want to create or change. All information which can be created and edited in the admin panel, can also be created and changed with an API call. The interesting part about Cachet is that administrators have the opportunity to automate the updates. For example with data of your monitoring or some scripts on your hosts which check some services.

In the following command, you would create a new incident with the name “Down” and the message “A server went down“.

  • It will be in the state “1“, which means “investigating
  • The component which is affected by this incident has the id 2, which is in this case “My Login
  • The component will be in state “4“, which means “Major Outage
  • Notify: true – so your user would receive an email with about this incident.

mgebert@MacBook-Pro ~ $ curl --request POST --url https://cachet-demo.nws.netways.de/api/v1/incidents -H "Content-Type: application/json;" -H "X-Cachet-Token: j5t0mNvvh57ubO84TxJq" --data '{"name":"Down","message":"A server went down.","status":1,"visible":1,"component_id":2,"component_status":4,"notify":"true"}'

If you want to notify your users as soon as an incident was reported, you will have to configure the credentials for your mailserver and enable the “Subscribe” button, which can be done in the settings quite simple.

But if you don’t want to use the API, you can create and manage your information just by changing the states of your components and incidents, as you can see in the screenshots below.

 

You can start your own Cachet app at the NWS platform now on our platform. First 30 days are for free and the app will be ready within 5 minutes – so what are you waiting for?

Last but not least, I want to share with you the link to a temporary available demo installation, so you can have a look at it right now. Check it out!

Marius Gebert
Marius Gebert
Systems Engineer

Marius ist seit 2013 bei NETWAYS. Er hat 2016 seine Ausbildung zum Fachinformatiker für Systemintegration absolviert und ist nun im Web Services Team tätig. Hier kümmert er sich mit seinen Kollegen um die NWS Plattform und alles was hiermit zusammen hängt. 2017 hat Marius die Prüfung zum Ausbilder abgelegt und kümmert sich in seiner Abteilung um die Ausbildung unserer jungen Kollegen. Seine Freizeit verbringt Marius gerne an der frischen Luft und ist für jeden Spaß zu...
NWS – because web services don’t have to be complicated

NWS – because web services don’t have to be complicated

Web services platforms are a common way nowadays, to run your services without the need of your own infrastructure. No matter if you need a safe place for your data, an app to communicate with people or just a place to run your own services. But what do you know about the platform of your choice?

  • Do you know how your data is stored?
  • Do you know where the servers are located in detail?
  • Do you know the people which are giving you support?
  • Do you know what happens in case of a critical issue?

I bet, most of you, or at least some of you, don’t. But that’s the point where we start. We want to be different. We want to be transparent and uncomplicated.

Our servers are located in Nuremberg – Germany. We are running them in two different datacenters to ensure high security.

Working with our apps is pretty simple. Just start them! There is no complicated registration process, just fill in the form and you are good to go. The best thing is: you don’t even need a domain or some know how of SSL. It’s already configured for you! Of course you can use your own domain and certificates if you want, but you don’t have to.
If you are curious about how our apps are working in detail or what features are available in our apps, just have a look at our FAQs
Still can’t find what you are looking for? Contact us via live chat! If there is no live chat agent available, an automated ticket will be created, so we can get in touch with you.

But whats so special about our support? Well, it’s quick, it’s professional, it’s individual and most important of all: Our developers and administrators are your support team.

We also want to create our bills as transparent as possible. In case of our OpenStack cloud, you won’t just get a bill with an amount. You will get a detailed report of all resources you used in the past month. Which IP was used how long? How many CPUs were used how long and which VM did use them? But thats still not all. We want to give you the possibility to check at a various day of the month, how much money you spent on our cloud so far and how much you will spent till the end of the month.

Keep track of whats going on! And even if you have your applications running on a different platform – we will help you migrating your data with almost no downtime. Because we take care.

Most features we released for our apps and the platform itself, were not features “we wanted” to release. Don’t get me wrong here, we also wanted to release them, but most of them were features our customers requested and needed.

And we got one more thing. If you don’t know if you can trust us, you can just give it a try. Ask us anything or just try our services – 30 days for free (OpenStack is excluded here – but just get in touch with us. We will find a solution that fit your needs.).

Marius Gebert
Marius Gebert
Systems Engineer

Marius ist seit 2013 bei NETWAYS. Er hat 2016 seine Ausbildung zum Fachinformatiker für Systemintegration absolviert und ist nun im Web Services Team tätig. Hier kümmert er sich mit seinen Kollegen um die NWS Plattform und alles was hiermit zusammen hängt. 2017 hat Marius die Prüfung zum Ausbilder abgelegt und kümmert sich in seiner Abteilung um die Ausbildung unserer jungen Kollegen. Seine Freizeit verbringt Marius gerne an der frischen Luft und ist für jeden Spaß zu...
NWS Cloud and Terraform – does this work?

NWS Cloud and Terraform – does this work?

A few months ago we launched our OpenStack project within our NWS platform. The NWS Cloud was born.
Since then we are trying to increase the performance and the possibilities of the cloud. And nowadays there is no way around Terraform.

So i had a look at the possibilities and had to try them out. One of my first runs should create a virtual machine, create some security rules, attach a public IP to the virtual machine and install a webserver with a customized index.html

And how this works, i want to show now.

 

But first of all, i have to save my credentials in my config file

variables.tf

variable "openstack_user_name" { description = "The username for the Tenant." default = "my-nws-user" } variable "openstack_tenant_name" { description = "The name of the Tenant." default = "my-nws-project" } variable "openstack_password" { description = "The password for the Tenant." default = "my-password" } variable "openstack_auth_url" { description = "The endpoint url to connect to OpenStack." default = "nws-cloud" } variable "openstack_keypair" { description = "The keypair to be used." default = "mgebert" } variable "tenant_network" { description = "The network to be used." default = "my-nws-project" }

With this variables i can now start writing the rest of my files. I had to configure the provider

provider.tf

provider "openstack" { user_name = "${var.openstack_user_name}" tenant_name = "${var.openstack_tenant_name}" password = "${var.openstack_password}" auth_url = "${var.openstack_auth_url}" }

And the “script” which should run on the new virtual machine

bootstrapweb.sh

#!/bin/bash apt update apt install -y apache2 cat <<EOF > /var/www/html/index.html <html> <body> <p>hostname is: $(hostname)</p> </body> </html> EOF chown -R www-data:www-data /var/www/html systemctl apache2 start

But there is still no server right? So i have to write my deploy file.

deploy.tf

resource "openstack_networking_secgroup_v2" "secgroup1" { name = "ALLOW SSH AND HTTP" } resource "openstack_networking_secgroup_rule_v2" "secgroup_rule_1" { direction = "ingress" ethertype = "IPv4" protocol = "tcp" port_range_min = 22 port_range_max = 22 remote_ip_prefix = "0.0.0.0/0" security_group_id = "${openstack_networking_secgroup_v2.secgroup1.id}" } resource "openstack_networking_secgroup_rule_v2" "secgroup_rule_2" { direction = "ingress" ethertype = "IPv4" protocol = "tcp" port_range_min = 80 port_range_max = 80 remote_ip_prefix = "0.0.0.0/0" security_group_id = "${openstack_networking_secgroup_v2.secgroup1.id}" } resource "openstack_networking_secgroup_rule_v2" "secgroup_rule_3" { direction = "ingress" ethertype = "IPv4" protocol = "icmp" remote_ip_prefix = "0.0.0.0/0" security_group_id = "${openstack_networking_secgroup_v2.secgroup1.id}" } resource "openstack_compute_instance_v2" "web" { name = "web01" image_name = "Ubuntu Xenial" availability_zone = "HetznerNBG4" flavor_name = "s2.small" key_pair = "${var.openstack_keypair}" security_groups = ["default","ALLOW SSH AND HTTP"] network { name = "${var.tenant_network}" } user_data = "${file("bootstrapweb.sh")}" } resource "openstack_networking_floatingip_v2" "floating" { pool = "public-network" } resource "openstack_compute_floatingip_associate_v2" "floating" { floating_ip = "${openstack_networking_floatingip_v2.floating.address}" instance_id = "${openstack_compute_instance_v2.web.id}" }

 

In this file i configure first of all the new security group and afterwards 3 rules to allow ICMP, HTTP and SSH. Then we can start the virtual machine with a name, image_name, a flavor_name, security_groups and so on. I could configure more, like a loop which creates me 10 web-servers with the name web-01 to web-10 . But for now, thats fine. When the server is up and running, the deploy will attach a floating IP to it, so i can access it without a VPN.

And thats it, basically. When it is installed, the bootstrapweb.sh will install the apache2 webserver and replace the default index.html with my custom one.

There is almost no setup which can’t be build up with terraform in combination with the NWS Cloud – so just try it yourself

If you want to see the code above in action, have a look at this video!

Marius Gebert
Marius Gebert
Systems Engineer

Marius ist seit 2013 bei NETWAYS. Er hat 2016 seine Ausbildung zum Fachinformatiker für Systemintegration absolviert und ist nun im Web Services Team tätig. Hier kümmert er sich mit seinen Kollegen um die NWS Plattform und alles was hiermit zusammen hängt. 2017 hat Marius die Prüfung zum Ausbilder abgelegt und kümmert sich in seiner Abteilung um die Ausbildung unserer jungen Kollegen. Seine Freizeit verbringt Marius gerne an der frischen Luft und ist für jeden Spaß zu...
NETWAYS Web Services Raffle

NETWAYS Web Services Raffle

We wanted to do a big raffle. A very special one. You can win 3 amazing prices and how this works will be described below. But first of all, what are the prices?

  • First place: Our incredible @gethash for one day at your office*
  • Second place: One NWS app for free. A whole year! **
  • Third place: One big box of Dragee Keksi

The requirements will be explained in detail in the tweet of the NWS Twitter Account. Basically you have to follow the NWS Twitter account and retweet the tweet, where this blogpost is published. It will be pinned to the account till the end of May. We will draw 3 winners from all participants.

The great colleagues of Netways are excluded from this raffle cause Bernd is afraid of their crazy ideas.

The winners will be announced on May 31st 2019 and will be published on the NWS Twitter account.

We wish good luck to all of you!

*Restriction: it has to be within Germany!
**You decide which app. OpenStack is excluded here

 

Marius Gebert
Marius Gebert
Systems Engineer

Marius ist seit 2013 bei NETWAYS. Er hat 2016 seine Ausbildung zum Fachinformatiker für Systemintegration absolviert und ist nun im Web Services Team tätig. Hier kümmert er sich mit seinen Kollegen um die NWS Plattform und alles was hiermit zusammen hängt. 2017 hat Marius die Prüfung zum Ausbilder abgelegt und kümmert sich in seiner Abteilung um die Ausbildung unserer jungen Kollegen. Seine Freizeit verbringt Marius gerne an der frischen Luft und ist für jeden Spaß zu...
FM Empfänger mit dem Raspberry Pi 3

FM Empfänger mit dem Raspberry Pi 3

Es gibt viele Projekte für Einsteiger, um mit einem Raspberry Pi kleineres zu realisieren. Unter anderem ein FM Empfänger, wofür die folgende Anleitung genutzt werden kann.

Materialien: 

  1. Raspberry Pi 3
  2. Female Female Jumper
  3. Tea5767 Modul
  4. Lautsprecher (Beispiel)
  5. AUX Kabel

Vorgehen: 

1) Die mitgelieferte SD Karte enthält bereits ein Noob OS, womit Raspian installiert werden kann. Sollte ein anderes Kit ohne Karte bestellt werden, braucht man natürlich auch eine SD Karte. Noob OS dann einfach herunterladen, entpacken und auf die Karte kopieren

2) I2C aktivieren via: sudo raspi-config
-> Interfacing Options
-> I2C
-> YES

3) Der Raspberry Pi muss natürlich auch mit dem Modul verbunden werden. Hierzu werden die Female-Female Jumper benutzt.
Raspberry Pi    Tea5767
5V              5V
SDA.1           SDA
SCL.1           SCL
GND             GND

Auf welche Pins nun genau gesteckt werden muss, kann mittels gpio readall herausgefunden werden. Falls SDA.1 und SCL.1 bereits in Verwendung sind, kann auch auf 0 oder 2 ausgewichen werden.

4) Ob das Modul auch erkannt wurde, wird folgendermaßen überprüft:
i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: 60 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

Die “1” steht hier für SCl.1 und SDA.1 – sollte SDA.0 und SCL.0 verwendet worden sein, muss der Command entsprechend angepasst werden.  Wenn in der angezeigten Tabelle keine Zahl erscheint, wird das Modul nicht erkannt. Dies liegt meist an einer falschen Verkabelung oder einem defekten Modul.

5) Aus einer anderen Anleitung haben wir uns eines Links zum Code bedient, das den Tea5767 steuert. Es kann hier natürlich selbst auch ein Skript geschrieben werden, wenn tiefere Einblicke gewünscht sind. Hierfür wird python3 benötigt sowie verschiedene Module. Beim ersten Aufruf des Skriptes wird aber mitgeteilt, ob etwas nachinstalliert werden muss, oder nicht. Falls das der Fall ist, kann mit pip3 install $modul entsprechend nachjustiert werden.
Unter /home/pi ein neues Verzeichnis (z.B.: PiFM) erstellen und das Skript dort ablegen.

6) Mit python3 radio.py kann nun der eigentliche Radio gestartet werden. Es empfiehlt sich, das Skript kurz durchzulesen, da der Radio über Tasten gesteuert wird. So wird mit “W” die Frequenz um +1 verändert, mit “E” um +0.1

Alles in allem ist das ein schönes Projekt um erste Eindrücke in die Funktionsweise eines Raspberry Pis zu bekommen und wie bestimmte Module funktionieren, verbunden und genutzt werden. Interessant wird das auch, wenn man parallel dazu mit einem 2. Pi einen FM Transmitter aufbaut. Hierzu gibt es in einem späteren Blogpost aber mehr.

Marius Gebert
Marius Gebert
Systems Engineer

Marius ist seit 2013 bei NETWAYS. Er hat 2016 seine Ausbildung zum Fachinformatiker für Systemintegration absolviert und ist nun im Web Services Team tätig. Hier kümmert er sich mit seinen Kollegen um die NWS Plattform und alles was hiermit zusammen hängt. 2017 hat Marius die Prüfung zum Ausbilder abgelegt und kümmert sich in seiner Abteilung um die Ausbildung unserer jungen Kollegen. Seine Freizeit verbringt Marius gerne an der frischen Luft und ist für jeden Spaß zu...