Author Archives: Daniel Sobrinho

Installing NodeJS on Deepin 20

Hello, follow the steps for installing NodeJS on Deepin 20. The repository has all versions and you can find it at : ' https://github.com/nodesource/distributions/tree/master/deb '. In this way the instructions below will follow for the installation of the latest stable version, at the time of this being NodeJS v15.

Download the installation file of the latest stable version of NodeJS via the command
:wget https://deb.nodesource.com/setup_current.x -O setup_nodejs.x

Edit the downloaded file
:nano setup_nodejs.x

Search for: DISTRO=$(lsb_release -c
-s)Switch to: DISTRO=bu
sterThus:#DIS
TRO=$(lsb_release -c -s)D
ISTRO=buster

Now run installer:sudo
bash setup_nodejs.x

The following instructions will follow from the installer i
tself:sudo apt-get install gcc g++

makecurl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key a

dd -echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.li

stsudo apt-get update && sudo apt-get install yarn

Ready!

Run: node -v
E be happy!

Changing the keyboard layout to ABNT2 in CentOS 8 via terminal

Which of us has never been through the situation of typing a bar and exiting a semicolon in the terminal? Here's a simple tip to change the layout of your keyboard in CentOS 8.

To see your current layout, type with the command:

localectl

In the output of this command, look for the VC Keymap property, which will probably be us. Now, let's change it to the good old ABNT2 keyboard by entering with the command:

localectl set-keymap br-abnt2

One more tip: If you need to see what layouts are available, just sign in with the following command:

list-keymaps localectl

Deepin 20 repositories in Brazil

Brazilian Mirrors for the Deepin v20.

Open the Terminal and typ
e:sudo nano /etc/apt/sources.list

In the file you open, replace all the information with any of the lines below:

Federal University of Paraná (UFPR)

deb[by-hash=force] https://deepin.c3sl.ufpr.br/deepin apricot main contrib non-free

University of São Paulo (USP)

deb[by-hash=force] http://sft.if.usp.br/deepin apricot main contrib non-free

Paulista State University (UNESP)

deb[by-hash=force] http://mirror.unesp.br/deepin apricot main contrib non-free

Federal University of Amazonas (UFAM)

deb[by-hash=force] http://mirror.ufam.edu.br/deepin apricot main contrib non-free

Next, in The Terminal type:s
udo apt update && sudo apt dist-upgrade

Source: @deepinbrasil / Author: Alex Wender

Pin Deepin Dock to Main Monitor (First Monitor)

Deepin Linux is an exceptional distribution, we who are users know how pleasurable it is to keep the day to day working on this desktop.

More native and translated applications are introduced every day, as well as more third-party applications added to your own store. The system has the basis of its repositories under the Debian Buster Stable repositories, this favors its stability and updating, greatly aggregating our experience with the system.

Deepin Desktop Environment, that is, not only a desktop but actually a complete Desktop, is in a growing and has been routinely internalizing more functionality in its own control panel, configuration windows and context menus, thus managing to maintain its visual quality and respecting its so praised UI and UX features.

But now let's go to the purpose of this post, solve the problem of people who use two or more monitors with Deepin, this since the Dock is not just on the main monitor.

To pin the Deepin dock to the first screen you must perform the following command on the terminal:

dconf write /com/deepin/dde/dock/mainwindow/only-show-primary true

For this command to run you need to have installed dconf-cli.

Installing dconf-cli:

apt install dconf-cli

If the dconf client is not installed you will get the return: "dconf: File or non-existent directory", or something like that.

There are other ways to make the change, including outside text mode. However I recommend doing through this command line, as this will change only what you need, without margins for any unnecessary or improper error or change.

Did you like the tip or do you like Deepin? Leave your comment and share with those you like the most or have this dock problem.

I would like to see an article on this change of this configuration bia GUI, ie out of text mode, via programs with windows? Send your message, it will be a pleasure to prepare the material to assist.