Linux News

Bash scripts downloading file from remote VPN

Linux Questions - Sun, 05/15/2022 - 03:57
I have access to VPN and to user alice with IP.
I use command

Code: scp alice@10.0.118.230:myfiletodownload.iso /home/mylocaldirectory I get response
Code: /home/mylocaldirectory: Permision denied Do you know why and how I can download file from server?
I use kali linux.

I also tried

Code: scp -r alice@10.0.118.230:~/myfile.iso root@kali:~/home
Categories: Software and Help

regression on -current with qt5 (gcc-12.1.0)

Linux Questions - Sun, 05/15/2022 - 01:53
qt5 doesn't build with gcc-12.1.0 :

Code: bpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -std=gnu++14 -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -std=c++17 -Wno-narrowing -Wno-class-memaccess -Wno-attributes -Wno-class-memaccess -Wno-subobject-linkage -Wno-invalid-offsetof -Wno-return-type -Wno-deprecated-copy -c ../../3rdparty/chromium/third_party/skia/src/gpu/GrDrawingManager.cpp -o obj/skia/skia/GrDrawingManager.o
ninja: build stopped: subcommand failed.
make[4]: *** [Makefile.gn_run:1363: run_ninja] Error 1
make[4]: Leaving directory '/tmp/qt-everywhere-src-5.15.3_20220407_9b1efa0e/qtwebengine/src/core'
make[3]: *** [Makefile:82: sub-gn_run-pro-make_first] Error 2
make[3]: Leaving directory '/tmp/qt-everywhere-src-5.15.3_20220407_9b1efa0e/qtwebengine/src/core'
make[2]: *** [Makefile:80: sub-core-make_first] Error 2
make[2]: Leaving directory '/tmp/qt-everywhere-src-5.15.3_20220407_9b1efa0e/qtwebengine/src'
make[1]: *** [Makefile:49: sub-src-make_first] Error 2
make[1]: Leaving directory '/tmp/qt-everywhere-src-5.15.3_20220407_9b1efa0e/qtwebengine'
make: *** [Makefile:1088: module-qtwebengine-make_first] Error 2
Categories: Software and Help

Does continuous cli feedback use up ram?

Linux Questions - Sun, 05/15/2022 - 00:31
It's there as far back as we can scroll, but I just wonder the ram handicap. Typically I'll run a browser that keeps reporting error feedback but still runs.

E.g., Chromium:
Code: root# /usr/bin/chromium-browser: line 133: lsb_release: command not found
/usr/bin/chromium-browser: line 134: lsb_release: command not found
[24176:24301:0514/215530.866525:ERROR:bus.cc(394)] Failed to connect to the bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
ATTENTION: default value of option force_s3tc_enable overridden by environment.

(chromium-browser:24176): LIBDBUSMENU-GLIB-WARNING **: Unable to get session bus: The connection is closed
[24176:24272:0514/215556.303620:ERROR:upload_data_presenter.cc(73)] Not implemented reached in virtual void extensions::RawDataPresenter::FeedNext(const net::UploadElementReader &)
[24176:24272:0514/215557.135423:ERROR:upload_data_presenter.cc(73)] Not implemented reached in virtual void extensions::RawDataPresenter::FeedNext(const net::UploadElementReader &)
[24176:24272:0514/215557.428281:ERROR:upload_data_presenter.cc(73)] Not implemented reached in virtual void extensions::RawDataPresenter::FeedNext(const net::UploadElementReader &)
[24176:24272:0514/215558.406005:ERROR:upload_data_presenter.cc(73)] Not implemented reached in virtual void extensions::RawDataPresenter::FeedNext(const net::UploadElementReader &)
[24176:24272:0514/215558.512466:ERROR:upload_data_presenter.cc(73)] Not implemented reached in virtual void extensions::RawDataPresenter::FeedNext(const net::UploadElementReader &)
[24176:24272:0514/215559.554561:ERROR:upload_data_presenter.cc(73)] Not implemented reached in virtual void extensions::RawDataPresenter::FeedNext(const net::UploadElementReader &)
[24176:24272:0514/215559.836829:ERROR:upload_data_presenter.cc(73)] Not implemented reached in virtual void extensions::RawDataPresenter::FeedNext(const net::UploadElementReader &)
[24176:24272:0514/215601.391427:ERROR:upload_data_presenter.cc(73)] Not implemented reached in virtual void extensions::RawDataPresenter::FeedNext(const net::UploadElementReader &)
[24176:24272:0514/215601.468456:ERROR:upload_data_presenter.cc(73)] Not implemented reached in virtual void extensions::RawDataPresenter::FeedNext(const net::UploadElementReader &) Feedback like this will just scroll on and on if I don't exit terminal.
Categories: Software and Help

regression on -current with gtk4 (gcc-12.1.0)

Linux Questions - Sun, 05/15/2022 - 00:26
gtk4 doesn't build with gcc-12.1.0:

Code: In function ‘gtk_image_definition_ref’,
    inlined from ‘gtk_image_definition_new_empty’ at ../gtk/gtkimagedefinition.c:67:10:
../gtk/gtkimagedefinition.c:135:23: error: array subscript ‘GtkImageDefinition {aka union _GtkImageDefinition}[0]’ is partly outside array bounds of ‘GtkImageDefinitionEmpty[1]’ {aka ‘struct _GtkImageDefinitionEmpty[1]’} [-Werror=array-bounds]
  135 |  def->empty.ref_count++;
      |  ~~~~~~~~~~~~~~~~~~~~^~
../gtk/gtkimagedefinition.c: In function ‘gtk_image_definition_new_empty’:
../gtk/gtkimagedefinition.c:65:34: note: object ‘empty’ of size 8
  65 |  static GtkImageDefinitionEmpty empty = { GTK_IMAGE_EMPTY, 1 };
      |                                  ^~~~~
cc1: some warnings being treated as errors
[712/1262] Compiling C object gtk/libgtk.a.p/gtkbitset.c.o
ninja: build stopped: subcommand failed. It doesn't build neither with gtk4-4.4.2 nor gtk4-4.6.4.
Categories: Software and Help

regression on -current with doxygen (gcc-12.1.0)

Linux Questions - Sun, 05/15/2022 - 00:21
doxygen doesn't build with gcc-12.1.0:

Code: [ 23%] Built target vhdlparser
Consolidate compiler generated dependencies of target doxycfg
[ 23%] Building CXX object src/CMakeFiles/doxycfg.dir/message.cpp.o
In file included from /tmp/doxygen-1.9.4/src/doxygen.h:24,
                from /tmp/doxygen-1.9.4/src/message.cpp:21:
/tmp/doxygen-1.9.4/src/cache.h: In member function ‘V* Cache<K, V>::insert(const K&, V&&)’:
/tmp/doxygen-1.9.4/src/cache.h:53:14: error: ‘exchange’ is not a member of ‘std’
  53 |        std::exchange(it->second->second,value);
      |              ^~~~~~~~
make[2]: *** [src/CMakeFiles/doxycfg.dir/build.make:170: src/CMakeFiles/doxycfg.dir/message.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:595: src/CMakeFiles/doxycfg.dir/all] Error 2
make: *** [Makefile:166: all] Error 2 a single sed line solves the problem, follow this link from BLFS: https://www.linuxfromscratch.org/blf...l/doxygen.html

Code: find . \
  \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
  -exec chmod 755 {} \+ -o \
  \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
  -exec chmod 644 {} \+

# patch to build with gcc-12.1.0
sed -i '/mutex/a#include <utility>' src/cache.h

mkdir build
cd build
Categories: Software and Help

regression on -current with xorg-xwayland-server (gcc-12.1.0)

Linux Questions - Sat, 05/14/2022 - 23:43
xorg-xwayland-server doesn't build with gcc-12.1.0

Code: ../xkb/XKBMAlloc.c:774:17: warning: pointer may be used after ‘reallocarray’ [-Wuse-after-free]
  774 |                free(prev_keys);
      |                ^~~~~~~~~~~~~~~
../xkb/XKBMAlloc.c:771:32: note: call to ‘reallocarray’ here
  771 |            xkb->names->keys = reallocarray(xkb->names->keys,
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  772 |                                            maxKC + 1, sizeof(XkbKeyNameRec));
      |                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[275/429] Compiling C object xkb/liblibxserver_xkb.a.p/xkb.c.o
ninja: build stopped: subcommand failed.
Categories: Software and Help

Has anyone else trouble connecting to npr.org?

Linux Questions - Sat, 05/14/2022 - 22:15
I can't connect to npr.org today (Saturday, 2022 May 14). I've tried lynx, snarf, wget, firefox, and opera. It times out. I can log in to a different system and connect. downforeveryoneorjustme tells me it's up.
Categories: Software and Help

New Member

Linux Questions - Sat, 05/14/2022 - 21:53
Hello all, new member here. Just joined today after lurking for awhile. I have been a Linux user for about 12 years but in no way do I consider myself as a "pro" with it as I learn something new about it almost every time I am using it. Distros that I have multi booted on my laptops are: Bodhi, LinuxMint Mate, PCLinuxOS OpenBox with Mate and Enlightenment added, and MXLinux Fluxbox with Mate added to it. Any way, thanks for letting me join up!
Categories: Software and Help

Please help me to find out the answer .THANKS.

Linux Questions - Sat, 05/14/2022 - 20:29
Hi guys I am looking for the difference between the command "sudo" and "sudo su".
Categories: Software and Help

LXer: How To Enable Minimize And Maximize Buttons In Fedora 36 Workstation

Linux Questions - Sat, 05/14/2022 - 19:46
Published at LXer:

This guide explains how to enable minimize and maximize buttons in application windows using Gnome Tweaks and Dash to Panel extension in Fedora GNOME Workstation and Silverblue editions.

Read More...
Categories: Software and Help

How To Enable Minimize And Maximize Buttons In Fedora 36 Workstation

LXer Linux News - Sat, 05/14/2022 - 19:36
This guide explains how to enable minimize and maximize buttons in application windows using Gnome Tweaks and Dash to Panel extension in Fedora GNOME Workstation and Silverblue editions.
Categories: General News

multi user phot and video server

Linux Questions - Sat, 05/14/2022 - 18:41
I have an odd question, my wife is going through a ton of family photos and old videos as well. She had the idea of creating a webpage that allows family members to log in and upload/download family photos and videos.

all the family members use windows so it has to be accessible from any os easily.

i have 3Tb drive at home so space is not an issue at the moment. What are some ideas i could do and try?

thanks
Categories: Software and Help

IP Forwarding?

Linux Questions - Sat, 05/14/2022 - 17:38
Good afternoon, everyone!

I'm trying to get a Linux host to act as a router. It has two NICs, one is in the 192.168.4.0/24 subnet (192.168.4.1), the other is in the 192.168.5.0/24 subnet. I want hosts to be able to use 4.1 as their gateway...traffic goes in 4.1, then goes out 5.x...

I've tried getting IP forwarding to work and it's not wanting to cooperate. I think I'm missing something...I'm thinking I need a static route, but I'm not sure. The hosts (one Linux, one Windows) in question are VMs in VirtualBox that I'm using for some testing but can't quite get it all to work the way I want.

The Linux host has WAN connectivity. The Windows host can ping the Linux host (gateway), but the Windows host does NOT have WAN connectivity. The Linux host can NOT ping the Windows host but DOES have WAN connectivity...this is why I'm thinking it's a routing thing that I'm missing...

Thoughts? Perhaps there's an easier way to do this?

Any info greatly appreciated. Thank you!!
Categories: Software and Help

LXer: KDE Frameworks 5.94 Released with More Than 200 Changes, Here's What's New

Linux Questions - Sat, 05/14/2022 - 17:36
Published at LXer:

The KDE Project released today KDE Frameworks 5.94 as the monthly update for this open-source collection of more than 80 add-on libraries to Qt providing common functionality needed for the Plasma desktop environment and various KDE apps.

Read More...
Categories: Software and Help

KDE Frameworks 5.94 Released with More Than 200 Changes, Here's What's New

LXer Linux News - Sat, 05/14/2022 - 17:24
The KDE Project released today KDE Frameworks 5.94 as the monthly update for this open-source collection of more than 80 add-on libraries to Qt providing common functionality needed for the Plasma desktop environment and various KDE apps.
Categories: General News

LXer: How To Install Multimedia Codecs In Fedora 36 Workstation

Linux Questions - Sat, 05/14/2022 - 15:15
Published at LXer:

This tutorial explains how to install multimedia codecs in Fedora 36 workstation from RPM Fusion software repository.

Read More...
Categories: Software and Help

How To Install Multimedia Codecs In Fedora 36 Workstation

LXer Linux News - Sat, 05/14/2022 - 15:13
This tutorial explains how to install multimedia codecs in Fedora 36 workstation from RPM Fusion software repository.
Categories: General News

Recover formatted btrfs partition

Linux Questions - Sat, 05/14/2022 - 14:05
I goofed and reformatted a large btrfs partition which contained all my videos. And I did not reformat it as btrfs again but as ext2 (mistook it for the boot partition). Nothing was saved or written to once reformatted (did not even write the boot folder to it).
I have a backup that is only about 2 months old and the only thing added since then was some movies I ripped from BluRay. I own the physical media and can re-rip them easily enough.
So I'm interested in trying to recover it only as a learning experience for future reference and only if I do not have to waste vast amounts of time. (OK if the recovery utilities run for days, just don't wanna allocate lots of personal man-hours to learn.)

Is it feasible? Really difficult? Should I start with gparted/gpart, photorec, btrfs-tools, or ???
Categories: Software and Help

Pages