Migrate FTP to SFTP in Red Hat Enterprise Linux

I have a Red Hat Enterprise Linux server which has FTP installed and I want to migrate my data to a new server having the same configuration but with SFTP on it.

Is there a process to do it without creating a script?

All topic

Migrate ftp to sftp in Redhat Linux

I have a Redhat Linux server which has ftp installed and I want to migrate my data to a new server having same configuration but with sftp on it.

Is there a processto do it without creating a script?

All topic

Error arranque Linux mint

Instale Linux Mont 19 y 18.3 y todo venía muy bien en ambos casos, instale programas, apague y prendía la PC hasta que al iniciar antes del login la pantalla queda negra. Esto sucedió en ambas instalaciones.

Mí Notebook es una Dell inspiró 15 5000 gaming. Con GeForce GTX. Luego de cada instalación siempre cambie en drivers mánager a los drivers de la Nvidia.

enter image description here

All topic

Unable to install the NPM software into Linux

Unable to install NPM into the Linux box using graddle build , when i am running the gradle build it is fetching the data from our nexus repository , as it is facing the data correctly from our nexus location but it is hang at addRemoteTarball

after analysis found that it is adding /c/ into my nexus URL and found at it is creeating the /c folder into /tmp folder into npm folder.

so to resolve the same.

Logs : NPM-debug.logs

19379 silly mapToRegistry uri http://host:port/nexus/content/repositories/npmjs-registry-org/@types%2fsemver
19380 verbose addRemoteTarball http://host:port/nexus/c/content/repositories/npmjs-registry-org/@types/semver/-/semver-5.5.0.tgz not in flight; adding
19381 verbose addRemoteTarball [ ‘http://host:port/nexus/c/content/repositories/npmjs-registry-org/@types/semver/-/semver-5.5.0.tgz’,
19381 verbose addRemoteTarball ‘146c2a29ee7d3bae4bf2fcb274636e264c813c45’ ]
19382 verbose get http://host:port/nexus/content/repositories/npmjs-registry-org/@types%2fcommander not expired, no request

All topic

Настройка Apache2 на Astra Linux

Всем привет!
Ситуация такова: есть Astra, на которой работает Apache2.2.22.

Но при попытке получение стартовой странички с “It works!” мне возвращается Internal Server Error.

Проверяю /var/log/apache2/error.log и вижу там такую ошибку:

[crit] [client] configuration error: couldn’t perform authentication. AuthType not set!: /

Похоже, что необходимо указать AuthType. Странно, хотя здесь написано минимальное содержимое файлов с конфигурациями виртуальных хостов и AuthType я там не нашёл.

Мне аутентификация не нужна. Потому я добавляю в /etc/apache2/sites-available/default AuthType None.

    ServerAdmin webmaster@localhost

    DocumentRoot /var/www
            AuthType None
            Options FollowSymLinks
            AllowOverride None
            AuthType None
            Options Indexes FollowSymLinks MultiViews
            AllowOverride None
            Order allow,deny
            allow from all

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
            AllowOverride None
            Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
            Order allow,deny
            Allow from all

    ErrorLog ${APACHE_LOG_DIR}/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog ${APACHE_LOG_DIR}/access.log combined

Перезапускаю apache, и снова захожу на страничку. Снова в ответ получаю 500, но теперь в логе другая ошибка:

[crit] [client] configuration error: couldn’t check user. Check your authn provider!: /

Тогда я посмотрел сюда и добавил Satisfy Any и Allow from all в обе секции. Результатом стала новая ошибка при попытке получения странички:

[error] [client] Authentication not configured

Может кто-нибудь подсказать, как можно отключить аутентификацию?

P.S. Ещё я пробовал скормить дефолтные конфиги с debian 7. Результаты те же.

All topic

Battery draining too fast with linux

I tried to use Mint some time ago, but I went back to Windows due to a strange drain in the battery (With Windows ~3.5 hours and with Mint ~50 minutes).

Now I’m trying to use Ubuntu 18.04 and it seems to have the same problem. Using the Power Statistics app I was able to see that in 1h24min it went from 100% to 36%. I installed TLP and PowerTop but didn’t see much improvement.

I’m current using a Dell Inspiron 15-5558 that I bought in 2016, it has a dedicated NVIDIA 920M. Brightness at 20% and just the Wifi turned on.

Printscreen from Power Statistics: https://imgur.com/a/pCnjpf8

All topic

linux server hangs after “running local boot scripts”

after a sudden electricity break down one of the company servers (ubuntu) hangs at boot.
I have an OK message for “running local boot scripts (/etc/rc.local)” but it freeze there and a black screep appears after a couple of minutes.

This is an image from server boot:

What is the problem and how to fix this?

All topic

Can’t launch multiple instances of MySQL in Linux

I’m in real trouble here. First, thank you to all of you that will take the time to read my post.

So, I’ve followed tones and tone of tutorial to create multiple MySQL instances.
On the paper, it’s not complicated. I’ve followed this tutorial (in french, sorry, but it’s not complicated to understand) http://www.bocciolesi.fr/tutoriels-et-cours/installer-plusieurs-instances-de-mysql/

I’ve created a separated my.cnf that I’ve named multi_my.cnf. Here is the content :

mysqld     = /usr/bin/mysqld_safe
mysqladmin = /usr/bin/mysqladmin
user       = multi_admin
password   = multi_admin
log         = /var/log/mysqld_multi.log

socket     = /tmp/mysql.sock2
port       = 3307
pid-file   = /var/lib/mysql2/hostname.pid1
datadir    = /var/lib/mysql2
#language   = /usr/share/mysql-8.0/mysql/french
user       = cube

Of course, I did a copy of the /var/lib/mysql folder to /var/lib/mysql2 and managed the permissions. In this side, I think everything is good. Also, my multi_admin user is configured.

But, when I run the command :

mysqld_multi -–defaults-file=/etc/mysql/multi_my.cnf start

And then, the command :

mysqld_multi -–defaults-file=/etc/mysql/multi_my.cnf report

I end up having :

Reporting MySQL servers
MySQL server from group: mysqld2 is not running

The same thing happens when I try to put the content of multi_my.cnf on the my.cnf file.

Here is the content of /var/log/mysqld_multi.log :

mysqld_multi log file version 2.16; run: lun. sept. 24 11:53:56 2018

Starting MySQL servers

2018-09-24T09:53:56.129051Z mysqld_safe Logging to '/var/log/mysql/error.log'.
2018-09-24T09:53:56.140844Z mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
2018-09-24T09:53:56.389354Z mysqld_safe mysqld from pid file /var/lib/mysql2/hostname.pid2 ended
mysqld_multi log file version 2.16; run: lun. sept. 24 11:53:58 2018

Reporting MySQL servers
MySQL server from group: mysqld2 is not running

The thing that brings my attention here is that in the log, we can see that the daemon tries to use the databases from /var/lib/mysql. Shouldn’t it be /var/lib/mysql2 ?

Any explanation would be much appreciated !
Thank you.

All topic

Code Composer for Linux/Ubuntu

From the TI’s website I can see that there are compile tool chains for Linux based hosts, but they do not support C67x family of DSP. Is that correct?
If not where can I found Linux-based code composer tools for this family particularly?

All topic

Can’t install NPM in Alpine Linux, although it’s present in repos

Here’s my Dockerfile with instructions that all work except for the last line:

RUN echo http://nl.alpinelinux.org/alpine/v3.5/main > /etc/apk/repositories; 
    echo http://nl.alpinelinux.org/alpine/v3.5/community >> /etc/apk/repositories; 
    echo @testing http://nl.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories; 
    echo @edgecommunity http://nl.alpinelinux.org/alpine/edge/community >> /etc/apk/repositories; 
    echo @edge http://nl.alpinelinux.org/alpine/edge/main >> /etc/apk/repositories

RUN apk update
RUN apk upgrade
RUN apk add --upgrade apk-tools@edge
RUN apk add nodejs
RUN apk add npm


ERROR: unsatisfiable constraints:
    masked in: @edge
    satisfies: world[nodejs-current-npm]

I check Alpine package respository, and it’s there: http://nl.alpinelinux.org/alpine/edge/main/x86_64/ and in the main repository site: https://pkgs.alpinelinux.org/package/edge/main/x86/npm

What’s going wrong?

All topic