New answers tagged

0

Apache2 on Debian 9 and 10 is started from systemd. it has PrivateTmp=true in its definition. So processes started from the server don't have access to the regular /tmp and /var/tmp directories. Instead, they have their own directories. You can either move the socket out of /tmp or start apache2 with PrivateTmp=false


0

Based on suggestions from @Kusalananda, the answers (by @guest and @Jetchisel), and this detailed answer by Kevin, I came up with this: #! /bin/bash # # Search for 'Name' field match in torrent metadata for all .torrent files in # current directory and directories 1-level below. # # USAGE e.g.: # cd ~/torrent-files # location of .torrent files # Run `~/...


0

FILE_NAME is being passed directly to bash -c in the -exec option of your find command. This causes problems if FILE_NAME contains quotes/shell code. In fact, arbitrary code could be executed. Example: in this particular case, the input file could contain a line '; echo "run commands";' Instead, pass the loop var to bash -c as a positional parameter. e.g.: ...


-2

looking for straight forward answer, just: $sudo su that's it!


0

I would write it like this. #!/usr/bin/env bash pattern_file="$1" while IFS= read -r -d '' file; do transmission-show "$file" | awk .... "$pattern_file" ##: Figure out how to do the awk with a file rather than looping through an array. done < <(find . -maxdepth 2 -name '*.torrent' -type f -print0) That should avoid the quoting hell :-) Ok ...


3

I wouldn't trust the Hardware RAID. If that bios or motherboard ever failed, you're done. No recovery is possible. I would turn that off and go with a software type of RAID 10. That way you have a better chance of recovery from another source.


2

When your only connection to an X11 server is untrusted, you cannot forward it further. The untrusted X11 forwarding works by the ssh client connecting to the local display, and using the xauth generate $DISPLAY . untrusted command to generate an untrusted key / cookie. But for that, the xauth command needs the SECURITY extension to be present on the ...


0

How to manually partition your Debian install with full disk encryption I am going to outline the steps to take using the netinstall ISO on Virtual Box. These steps should work the same as any of the full Desktop environment installers with Desktops. (Do note that near the end of the netinstall, you can choose a Desktop environment of your choice.) I will ...


0

Privileged users can run synaptic through: $ synaptic-pkexec It will prompt for user password.


1

The following command should do the trick: dpkg -l | grep "using multiple display manager"


1

Nautilus currently doesn't support shortcut's customization. There are many similar threads as this one with complaints about Nautilus' lack of shortcut customization and the old solutions available don't seem to work in 2020. Backspace is probably not enabled by default for navigating one folder back because it might create issues when editing a text (for ...


0

I used joão-paulo's answer, but I needed a little help getting into the sudo group. Open a terminal. Run groups to check if you're in the sudo group: $ groups ... sudo ... a. If you don't see sudo in the list, then add yourself using the root account: su - # Enter your root password adduser <your_username> sudo exit Close the terminal, log ...


0

You can disable the plymouth-quit-wait.service to make the boot process more faster: sudo systemctl disable plymouth-quit-wait.service If you don't have some package managed by snap you can disable the snapd.service.


3

The /proc filesystem is simply a set of data exposed as files, so you can operate on them like you do any other file, with cat, grep, etc. One example of a thing I do in my shell configuration is operate a little differently depending on the process that started my shell. So I can write something like this: case $(readlink /proc/$PPID/exe) in *tmux) ...


0

I created jello, which allows you to use pure python code in your filters. $ jc -a | jello '[entry["name"] for entry in _["parsers"] if "darwin" in entry["compatible"]]' [ "airport", "airport_s", "arp", "crontab", "crontab_u", ... ] https://github.com/kellyjonbrazil/jello More examples at: https://blog.kellybrazil.com/2020/03/25/jello-the-jq-...


0

To get the processor info you can use : sudo dmidecode -t 4 |grep Version or: lscpu |grep "Model name:" The update can be done by installing firmwares and microcodes from buster-backports. See Getting microcode updates sooner using Debian backports , how to check the microcode version and updates. Intel: How to update/install microcode downloaded from ...


0

While it's not explictly written, I guess the goal is to split traffic such that: 172.16.0.0/24 traffic flows through enp1s0f1 10.0.0.0/24 traffic flows through enp4s0f0 As OP wrote, this needs policy/source-based routing. iptables and netfilter are rarely useful (at least alone): generally speaking iptables and netfilter don't route and don't care about ...


1

I believe the 'Host Bridge' that lspci is referring to is the PCI host bridge that connects the CPU to the PCI bus. I have a 3rd generation Core i5 and my host bridge description says: 00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor DRAM Controller (rev 09) I think what it means is that the host bridge is designed for use with ...


2

Fixed. My time was off. I changed the time to be accurate with date -s "correct time nstuff here" after fixing my time I was able to download all packages.


1

I also tried a lot to do this. Actually there is a term for this called "persistence". In my experience, it works only when I create the bootable usb drive with Rufus. In Rufus, when you are creating the bootable usb, there will be an option to set persistence and the size of the persistent partition. It will make the live boot slower but at least you will ...


1

Your file system is over 16 TiB in size, so mke2fs defaulted to the “huge” file system type, with an inode ratio of 65,536 bytes. See the -T option in the linked manpage, and the huge type in mke2fs.conf: huge = { inode_ratio = 65536 }


1

Assuming systemd you could create the two systemd units shown below, enable them with systemctl --user enable bt-agent-d.service; systemctl --user enable pulseaudio-d.service and finally enable lingering in order to start them at boot and not to stop them if the user logs out with loginctl enable-linger username. PS The 'username' in the last command is a ...


2

apt-cache pkgnames is designed for use in tab-completion: it quickly generates a list of all the package names apt knows about for the system’s main architecture (whether installed, available remotely, or simply mentioned in some other package’s relationships). It’s not intended for direct human consumption, and doesn’t spend much time filtering, so it lists ...


0

Here a sample script to configure a static IP: #!/bin/bash read -p 'interface: ' IFACE read -p 'ip address: ' IPADDRESS read -p 'netmask: ' NETMASK read -p 'gatway: ' GATEWAY cat <<EOF > /etc/network/interfaces.d/static-"$IFACE" allow-hotplug $IFACE iface $IFACE inet static address $IPADDRESS netmask $NETMASK gateway $GATEWAY ...


2

Upon further investigation and discussion with Stephen Kitt I found that I had 2 different versions of virtualenv on my PC: $ find /usr/ -iname "virtualenv" | grep bin /usr/local/bin/virtualenv /usr/bin/virtualenv The one in /usr/bin/virtualenv does not throw errors when I run it: $ /usr/bin/virtualenv --version 15.1.0 And doing some web searches I found ...


0

So, I used tcpdump to see how tow servers are communicating, I found out my target server does not receive any packet from my source server, I reported the problem to my Data Center and the problem was in one of the routers in their network.


4

To avoid messing things up outside the virtualenvs, I recommend using the packaged versions: sudo apt install python-pip virtualenv (along with python3-pip for Python 3 support, if appropriate). You’ll probably need to remove the versions of pip and virtualenv installed in your home directory, and any others on your PATH outside /usr/bin. When setting up ...


1

You have to add /sbin to your PATH: vagrant@stretch:~$ PATH="/sbin:$PATH" vagrant@stretch:~$ command -v fdisk /sbin/fdisk And use fdisk with sudo: vagrant@stretch:~$ sudo fdisk -l Disk /dev/sda: 19.8 GiB, 21265121280 bytes, 41533440 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/...


1

Is /sbin in your path? Run echo $PATH to check. Often /sbin is a symlink to /usr/bin so check if that is also in the path. See this question for how to modify the path.


0

I´ve had same problem, which I solved: Change group to user on rules.v4 sudo chgrp "usergroup" /etc/iptables/rules.v* Enable writting permission to group sudo chmod 664 /etc/iptables/rules.v* Try again sudo iptables-save > /etc/iptables/rules.v4 This worked for me, I hope it helps.


0

You should not need a FQDN; just use the host part. For instance: `[root@darouter ~]# arping -I enp2s0f1 matilda ARPING 192.168.100.12 from 192.168.100.254 enp2s0f1 Unicast reply from 192.168.100.12 [D0:67:E5:EB:37:25] 0.759ms Unicast reply from 192.168.100.12 [D0:67:E5:EB:37:25] 0.801ms Unicast reply from 192.168.100.12 [D0:67:E5:EB:37:25] 0.732ms Sent ...


0

Found it ! It seems that my router has a DNS server indeed : nslookup host_ip router_ip Server: 192.168.1.254 Address: 192.168.1.254#53 69.1.168.192.in-addr.arpa name = hostname.lan. So that answers the .localvs .lanquestion. In recent Debian, the local domain is .lan. Still, ping hostname.lan returns unknown host. Thanks to https://askubuntu....


0

Naturally I don't know your exact setup, but I think two things are going on here. My setup is similar to yours in that I have a native (untagged) VLAN with subnet 192.168.1.0/24 and VLAN20 running on the same interface with subnet 192.168.2.0/24. Firstly the 169.254.243.53 address is an automatically-assigned link local address. I've disabled this on mine ...


0

I was finally able to get this to work. It turns out that the video cable was the issue. I was using a DisplayPort-to-HDMI video cable and this was not allowing the higher video resolutions. I then replaced it with a standard DisplayPort cable (i.e. DisplayPort on both ends) and as soon as I did that the higher video resolutions were available and worked ...


2

The main statistics regarding Debian version use are the popularity-contest statistics. If you scroll down to “Statistics per popularity-contest releases”, you’ll see what releases the systems reporting popularity-contest data are running. This doesn’t necessarily reflect the general Debian-using population. I would recommend only supporting the releases ...


1

Here is an example how I am parsing the output of 'pactl subscribe'. In this example the trigger for an action was the string "Event change on card #0" when a headphone was plugged or unplugged. #!/bin/bash function MySubscription() { if [ "$1" != "Event change on card #0" ]; then return 0 fi #detect plug state pactl list | grep "...


0

Searching nVidia, it seems version 435.21 is the minimum needed. Those aren't debian offered versions of nvidia-driver packages, but buster-backports give you the opportunity to use 440.59 as of writing. You should add backports in your repositories and force nvidia-driver from there. Greetings. -edit- didn't read everything ! You tried the backports, but ...


0

You need to edit your /etc/hosts with the new IP address (DHCP): IP_here hostname.local To solve this problem permanently, you need to assign a static IP address to your machine.


1

You need to boot in legacy-mode, that's all. Enter your UEFI-settings and choose correct boot device, dont choose the ubuntu-entry, that's for EFI-mode, instead boot to your HDD, then grub will open, choose ubuntu then and run sudo update-grub again. You have an obsolete boot-loader for ubuntu on your drive which will boot in efi-mode, but grub is also in ...


1

You can disable the rotation sensor with the following commands: sudo systemctl stop iio-sensor-proxy.service sudo systemctl disable iio-sensor-proxy.service or sudo apt-get remove iio-sensor-proxy


0

I had the same issue, basically UUID's got mixed up after disabling and deleting my swap inside a virtualbox. This caused timeout issues and dependency failures, and it forced a file system check on each boot. I had to update my UUIDs accordingly. If a swap partition is deleted (e.g. on purpose when migrating from HD to SSD), the file /etc/initramfs-tools/...


3

Welcome to Unix & Linux StackExchange! You can get a full list of installed packages with e.g. dpkg --get-selections | less. If you selected to install a tool that has both text-based and GUI interface, it may have dependencies to some X11 and/or GNOME libraries. That is usually pretty harmless. Also, with X11, it is perfectly possible to run a ...


0

Apparently you need to right click on the icon in the launcher not on the desktop after starting sudo apper. Then click edit app from there and get to the advanced options as described above.


0

I would have a look at the system services. It is a good idea to review the default setup, because there may be services that you don't need, and you can disable them to improve performance, even reduce the attack surface (for example there may be a webserver running, that you don't need). To list all loaded services on your system, including failed ...


0

If your firewall uses the built-in kernel firewall, then sudo iptables -n -L will list all the iptables contents. If there is no firewall the output will be mostly empty. Your VPS may have ufw already installed, so try ufw status. ufw is a simplified "façade" to the kernel firewall (so what is set with it also appears in the iptables output), but it is a ...


0

You can fix this error by unmounting and remounting the mountpoint. Then try this command: sudo fusermount -uz /data mount /data Attribution: https://stackoverflow.com/questions/24966676/transport-endpoint-is-not-connected


-1

Had the same error when using su command to enter root Solved by adding /sbin to PATH once entered root on terminal: # su # export PATH=/sbin:$PATH


1

I managed to get FreeBSD 12.1-STABLE running on my OVH VPS by taking the following steps Reboot in rescue mode from OVH's management panel. Once logged in (via SSH or KVM, either works), perform the following sequence of commands Unmount your original filesystem with umount /dev/sdb*. Note that the rescue system is mounted from /dev/sda. Don't touch /dev/...


2

Yes, you can clear apt’s index by deleting all the files in /var/lib/apt/lists: sudo rm /var/lib/apt/lists/*_* (all index files have underscores in their names, none of the directories in /var/lib/apt/lists do).


1

Found the solution here : Why does LXQT Autostart not do anything? I updated the /home/debian/.config/autostart folder and created a new .desktop file with inputs: [Desktop Entry] Exec=sh script_name Path=/full/path/to/working/directory Name=MyAppName Type=Application Version=1.0


Top 50 recent answers are included