how to use GNU stow
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebear1_
    1_4M_N008
    Now 100%

    Thanks, very informative

    My problem was running stow --simulate -v 2, so output will be like linking all dir and files in package_name to target which was weird .stow-local-ignore

    2
  • I've tried to stow dot files by following online blog/form, and it worked now, I tried to manage my $HOME/bin directory with stow, but it didn't $HOME/.dotfiles directory structure ```sh /home/USER/.dotfiles/ |-- bash | |-- .bash_aliases | |-- .bash_logout | `-- .bashrc |-- .git | |-- branches | |-- COMMIT_EDITMSG | |-- config | |-- description | |-- HEAD | |-- hooks | |-- index | |-- info | |-- logs | |-- objects | `-- refs |-- git | `-- .gitconfig |-- .gitignore |-- install.sh |-- Makefile |-- .stow-local-ignore |-- vim | `-- .vimrc `-- zsh ``` $HOME/bin/src directory structure ```sh /home/USER/bin/ |-- src | |-- backup | | |-- backup | |-- clone | | `-- clone | |-- epub2html | | `-- epub2html | |-- gnome-nightlight | | `-- nightlight.sh | |-- list | | `-- list | |-- new | |-- pomorodo | | |-- notification.wav | | |-- old_pomo | | |-- pomorodo | | `-- test | |-- revoke_exec | | `-- revoke_exec | |-- rm_exec | | |-- rm_exec | | `-- tmp | |-- install ``` Where is my mistake and thanks in advance.

    10
    2
    How can I prevent my PC from connecting to the internet without a VPN connection?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebear1_
    1_4M_N008
    Now 100%

    May I ask, how I can accomplish this?

    I've tried with systemd service file, but I don't know yet how. Is there better solution?

    I want to stop interface on shutdown, sleep and hibernate.

    1
  • Question related to script distribution
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebear1_
    1_4M_N008
    Now 100%

    sorry to bother but I was thinking, should I consider ./install.sh executed with root and non-root perm If so, essential files should placed in /usr/local/share?

    1
  • I am sorry and aware this is the wrong community. However, I am unable to find Ask Programmer. I wrote a small bash script, and I would like to share it on GitHub. However, to operate probably it requires dir with some files in user $HOME dir. The only solutions came to my mind were, tar the directory BUT is this pragmatic solution?

    8
    7
    I don't know who Wayland is
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebear1_
    1_4M_N008
    Now 100%

    It seems an opportunity to ask my stupid questions.

    Q1. If I am going to build my minimum linux installation without a GUI, does this require a display manager?

    Q2. is there other way to interact with my machine other than tty

    6
  • Hey guys, i a am using ParrotOS and trying to install virtualbox from .deb package and i got the following warning ``` dpkg: dependency problems prevent configuration of virtualbox-7.0: virtualbox-7.0 depends on libc6 (>= 2.34); however: Version of libc6:amd64 on system is 2.31-13+deb11u6. virtualbox-7.0 depends on libssl3 (>= 3.0.0~~alpha1); however: Package libssl3 is not installed. virtualbox-7.0 depends on libstdc++6 (>= 12); however: Version of libstdc++6:amd64 on system is 11.2.0-18really16parrot1. virtualbox-7.0 depends on libvpx7 (>= 1.10.0); however: Package libvpx7 is not installed. ``` but it seems like ParrotOS repo outdated so i add `http://archive.ubuntu.com jammy main universe` to `/etc/apt/sources.list` update repo list `apt-get update` and then obtain libc6 package information ``` apt-cache policy libc6 libc6: Installed: 2.31-13+deb11u7 Candidate: 2.31-13+deb11u7 Version table: 2.35-0ubuntu3 50 50 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages *** 2.31-13+deb11u7 600 600 https://deb.parrot.sh/parrot lts/main amd64 Packages 600 https://deb.parrot.sh/parrot parrot/main amd64 Packages 600 https://deb.parrot.sh/direct/parrot parrot-security/main amd64 Packages 100 /var/lib/dpkg/status ``` then install libc6 via `sudo apt-get install libc6=2.35-0ubuntu3` BUT i got ``` Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages were automatically installed and are no longer required: afl++-doc docbook-to-man greenbone-security-assistant gtk-doc-tools gvmd-common hashcat-data intltool libapache2-mod-php libapache2-mod-php7.4 libc-devtools libclang-cpp11 libclang-cpp9 libclang1-11 libcrypt-dev libfakeroot libffi-dev libgc1 libgvm21 libhiredis0.14 libllvm9 libltdl-dev liblzf1 libmicrohttpd12 libnsl-dev libobjc-10-dev libobjc4 libomp-11-dev libomp5-11 libpfm4 libpocl2-common libradcli4 libtirpc-dev libucl1 libz3-dev llvm-9 llvm-9-runtime llvm-9-tools openvas-scanner oracle-instantclient-basic ospd-openvas php-common php7.4-cli php7.4-common php7.4-json php7.4-opcache php7.4-readline postgresql-common python3-defusedxml python3-qrcode python3-terminaltables redis-server redis-tools sysstat upx-ucl xsltproc Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: libncurses6 libncursesw6 libtinfo6 Suggested packages: glibc-doc locales Recommended packages: libnss-nis libnss-nisplus The following packages will be REMOVED: afl afl++ afl++-clang armitage bluelog build-essential clang clang-11 clang-9 commix fakeroot g++ g++-10 gsad gvm gvm-tools gvmd hashcat lib32gcc-s1 lib32stdc++6 libbluetooth-dev libc-bin libc-dev-bin libc6-dev libc6-i386 libclang-common-11-dev libclang-common-9-dev libexpat1-dev libncurses-dev libpocl2 libpython3-dev libpython3.9-dev libstdc++-10-dev libtinfo-dev libtool llvm-9-dev locales mate-common metasploit-framework pocl-opencl-icd postgresql postgresql-13 python3-dev python3-gvm python3.9-dev set unicorn-magic zlib1g-dev The following packages will be upgraded: libc6 libncurses6 libncursesw6 libtinfo6 WARNING: The following essential packages will be removed. This should NOT be done unless you know exactly what you are doing! libc-bin 4 upgraded, 0 newly installed, 48 to remove and 180 not upgraded. Need to get 3,812 kB of archives. After this operation, 1,122 MB disk space will be freed. You are about to do something potentially harmful. To continue type in the phrase 'Yes, do as I say!' ``` What should i do? Edit: format command output

    6
    2

    hello guys. i am trying to match one or more digit from end of string ``` import re print(re.match(r'\d+$', "hello001")) print(re.match(r'[0-9]+$', "hello001")) ``` output None from both print statement. I've tried my regex on regex101.com and it seems working probably.

    12
    2

    Hello guys, I'm using Parrot OS on an Asus G513. My problem is when I unintentionally adjust shortcuts (filled with Launcher1) automatically. However, this problem didn't catch my attention, when I used to boot live USB, after user space load any keystroke I press seems not working, from opening terminal to other shortcuts, however after like 5 min it will start to respond but each few key press screen brightness will get dimmer and dimmer, I thought it's problem with DE. now I just can press key combination (Alt + arrow) or (Mod + f) When I keep pressing return to delete, launcher1 eventually will get filled again before I realized it The only way I can adjust things now, via ssh additional notes 1. I can type in my password normally on the lock screen 2. I can't log in via tty. Even before this incident, this is what will happen when I try to log in ``` hostname login: USER@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ password:@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ login inncorrect ``` tty will keep printing @^ combination until i hit Ctrl + c Things I've tried: looking at /home/USER/.config/kglobalshortcutsrc, but there's no luck, and the last modification date is May 2 Edit: add shortcut photo Update: I've managed to adjust the shortcut by holding "return + ctrl + alt + m" . But still, I can't figure out what causes rapid input. thanks in advance.

    12
    2
    Does the system become infected?
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebear1_
    1_4M_N008
    Now 100%

    Maybe it's called 'USB Killer' (Please Correct Me If I Misunderstood), and thanks for your warning, But i am dealing with a normal USB flash drive.

    7
  • If USB flash drive contain any of malware/virus/worm inserted to linux host without being mount (auto mount disabled), does malware/virus/worm will infect host

    17
    8
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebear1_
    Now
    6 14

    1_4M_N008

    programming.dev