1_4M_N008

joined 1 year ago
[–] 1_4M_N008@programming.dev 1 points 5 months ago

I will figure it out somehow

I need another service to stop on connection lose (e.g slow internet), any idea how?

[–] 1_4M_N008@programming.dev 2 points 5 months ago* (last edited 5 months ago)

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

 

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

/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

/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.

[–] 1_4M_N008@programming.dev 1 points 5 months ago (2 children)

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_4M_N008@programming.dev 1 points 6 months ago (1 children)

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_4M_N008@programming.dev 3 points 6 months ago* (last edited 6 months ago) (4 children)

Correct me if I misunderstood, I will include Makefile, and when run make install it will execute install command?

 

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?

[–] 1_4M_N008@programming.dev 1 points 6 months ago

Thanks for the advice

[–] 1_4M_N008@programming.dev 1 points 6 months ago* (last edited 6 months ago) (4 children)

thanks, but is there way to address some limitation (e.g. only one came to my mind scroll back.)

[–] 1_4M_N008@programming.dev 6 points 6 months ago* (last edited 6 months ago) (6 children)

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

[–] 1_4M_N008@programming.dev 1 points 8 months ago

Thank for pointing out the differences between repos

[–] 1_4M_N008@programming.dev 1 points 8 months ago

thanks for your advice, i downloaded .deb package few months ago on another machine when i was on public wiif and now i am now metric connection if there no other option, or it will cause system instability i will download it from package manager

6
submitted 8 months ago* (last edited 8 months ago) by 1_4M_N008@programming.dev to c/linux4noobs@programming.dev
 

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

[–] 1_4M_N008@programming.dev 6 points 8 months ago

thanks, i will pay more attention for docs

 

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.

 

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.

 

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

view more: next ›