Tag Archives: Linux

Link

Zypper cheat sheet : Zypper is openSUSE Linux package management system , which we can used to search and add dependency library,applications etc. This cheat sheet may help you explore openSUSE Linux – Zypper

How to enable Flutter Web support in openSUSE Linux


Flutter can be used to create web applications, which is possible by enabling the feature. Before that I would like recommend the basic flutter setup on openSUSE post.

Flutter setup for openSUSE Linux

Lets Install Flutter for Linux development. As a open source project, we can install the flutter SDK from GitHub.

The prerequisites

In order to clone the repository we have to use git. In case your SUSE doesn’t know what it is, let’s install it with zypper. Also recommend to have Visual Code /Atom for editing the code.

The following post may help you to install VS Code and Atom on Linux

Install the git

sudo zypper install git

Clone the repo

Get the lastest satble version from GitHub repository or alternatively can download from flutter site

git clone https://github.com/flutter/flutter.git -b stable --depth 1

Use the -b option to clone the stable version

Setup the path variable

You also need to set the path variable using the shell command as follows.

export PATH="$PATH:pwd/flutter/bin"

Call the Doctor

run Flutton doctor command to inspect status of your Flutter SDK

Flutter Doctor

Android IOS development

For Android you have to install the Android Studio for development tool support which can be download from official website.

For official documentation visit flutter.dev

Enable web feature

Before starting make sure you have chrome/chromium installed on your system. Otherwise the feature may not work

For enabling the web feature we have to switch to the beta channel ( web feature is an experimental feature and official full support is not yet released)

flutter channel beta
flutter upgrade
flutter config --enable-web

Run the flutter device command again and then check the web feature is list or not by using

flutter devices

and it will list the web feature

Test Run

Create sample Flutter project

flutter create myweb_app
Flutter Web on openSUSE

run the app using flutter run command

flutter run -d chrome

For building the web we can use

flutter build web

Install Python pip and setup tools on openSUSE


pip – Pythoners favorite command, is a package management system, which can be used to install and remove python packages from the PYPA(Python Package Authority).

pip and other tools can be installed using the zypper package manager in openSUSE as follow

sudo zypper install python3-pip python3-setuptools python3-wheel

For Python version two the following method will do the job

sudo zypper install python-pip python-setuptools python-wheel

How to enable Flutter Desktop support in openSUSE Linux


Flutter can be used to create Linux applications, which is possible by enabling the feature. Before that I would like recommend the basic flutter setup on openSUSE post.

Flutter setup for openSUSE Linux

Lets Install Flutter for Linux development. As a open source project, we can install the flutter SDK from GitHub.

The prerequisites

In order to clone the repository we have to use git. In case your SUSE doesn’t know what it is, let’s install it with zypper. Also recommend to have Visual Code /Atom for editing the code.

The following post may help you to install VS Code and Atom on Linux

Install the git

sudo zypper install git

Clone the repo

Get the lastest satble version from GitHub repository or alternatively can download from flutter site

git clone https://github.com/flutter/flutter.git -b stable --depth 1

Use the -b option to clone the stable version

Setup the path variable

You also need to set the path variable using the shell command as follows.

export PATH="$PATH:pwd/flutter/bin"

Call the Doctor

run Flutton doctor command to inspect status of your Flutter SDK

Flutter Doctor

Android IOS development

For Android you have to install the Android Studio for development tool support which can be download from official website.

For official documentation visit flutter.dev

Enable desktop feature

In order to make Linux ready for Flutter desktop development environment we should have following dependencies

  • clang
  • cmake
  • ninja- build
  • pkg-config
  • libgtk-3-dev
  • libblkid-dev
  • liblzma-dev

install them using zypper/ apt-get command

sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev libblkid-dev liblzma-dev

Now switch to the dev channel and run upgrade command, which will install necessary libraries and packages.

flutter channel dev
flutter upgrade

Configure the feature using config

flutter config --enable-linux-desktop

run the flutter doctor and then flutter devices as follows

flutter doctor
flutter devices

Make sure the devices command list the Linux desktop

Test Run

Create sample Flutter project

flutter create myweb_app

run the app using flutter run command

Flutter Desktop app in openSUSE
flutter run -d linux
or
flutter run

Happy fluttering

Flutter setup for openSUSE Linux


Lets Install Flutter for Linux development. As a open source project, we can install the flutter SDK from GitHub.

The prerequisites

In order to clone the repository we have to use git. In case your SUSE doesn’t know what it is, let’s install it with zypper. Also recommend to have Visual Code /Atom for editing the code.

The following post may help you to install VS Code and Atom on Linux

Install the git

sudo zypper install git

Clone the repo

Get the lastest satble version from GitHub repository or alternatively can download from flutter site

git clone https://github.com/flutter/flutter.git -b stable --depth 1

Use the -b option to clone the stable version

Setup the path variable

You also need to set the path variable using the shell command as follows.

export PATH="$PATH:pwd/flutter/bin"

Call the Doctor

run Flutton doctor command to inspect status of your Flutter SDK

Flutter Doctor

Android IOS development

For Android you have to install the Android Studio for development tool support which can be download from official website.

For official documentation visit flutter.dev

How to install Typora markdown editor in OpenSUSE


Welcome to another OpenSUSE tutorial, this time my favorite markdown editor typora.

So how do we exactly install Typora in OpenSUSE Linux? Well you can search for Typora in the repository using Zypper search typora and go on with sudo zypper install package name.

The second option is to install from the debian package, which surely working. Here is the guide

How to install .deb file in OpenSUSE/Linux

In OpenSUSE we can install apps from repository using Zypper install command command. Linux apps comes in many formats, some of them come in binary, rpm and so on. So how do we install apps from a .debian binary file

We can use dpkg to install .deb file in Ubuntu and OpenSUSE. By default SUSE don’t have the dpkg package, we should install it first using

sudo Zypper install dpkg

After that open the corresponding file folder in console. and execute the command. ( in the example I have typora debian file )

sudo dpkg -i typora_0.9.96_amd64.deb

How to install .deb file in OpenSUSE/Linux


In OpenSUSE we can install apps from repository using Zypper install command command. Linux apps comes in many formats, some of them come in binary, rpm and so on. So how do we install apps from a .debian binary file

We can use dpkg to install .deb file in Ubuntu and OpenSUSE. By default SUSE don’t have the dpkg package, we should install it first using

sudo Zypper install dpkg

After that open the corresponding file folder in console. and execute the command. ( in the example I have typora debian file )

sudo dpkg -i typora_0.9.96_amd64.deb

How to install atom editor in OpenSUSE


GitHub’s Atom Editor may be the best full featured code editor. Before VS Code is come to light it is one of the most used code editor.

How can we install the Atom editor in OpenSUSE Linux. As usual search the repository and try to install using zypper command. There is always a plan B.

Install the editor from the packagecloud.io repository

sudo sh -c 'echo -e "[Atom]\nname=Atom Editor\nbaseurl=https://packagecloud.io/AtomEditor/atom/el/7/\$basearch\nenabled=1\ntype=rpm-md\ngpgcheck=0\nrepo_gpgcheck=1\ngpgkey=https://packagecloud.io/AtomEditor/atom/gpgkey" > /etc/zypp/repos.d/atom.repo' 

Now try to install any of the following versions using the zypper utility

 sudo zypper install atom
 sudo zypper install atom-beta 

It should work,

How to add Flutter path in OpenSUSE Linux


Flutter command not working on SuSE Linux ? Here is the quick reason for that. The path variable may not set or save.

Adding the path in a proper way may fix this issue.

 export PATH="$PATH:`pwd`/flutter/bin"

And now you are ready to create your first project

How to install Visual Code on openSUSe Linux


I have noticed that the VSCode installer always end up with error in OpenSuse TumbleWeed edition. Here is my alternative solution to the problem.

Launch your console and issue the following

curl -sSL -o code.tar.gz https://go.microsoft.com/fwlink/?LinkID=620884
sudo mkdir -p /opt/code && sudo tar zxf code.tar.gz -C /opt/code --strip-components=1
sudo ln -sf /opt/code/code /usr/local/bin

This will install VS Code on Suse , in case it didn’t update repository and try install again by using following code

sudo zpper refresh
sudeo zypper install code

Create Install script

We can create a intall.sh script to install the app. Add those three lines of scripts to the file.

It also require that , the files has permission to execute the file. Set the file permission using

chmode +x install.sh

Now we are ready to run the file by running the ./install.sh command.