New answers tagged

0

I used Control + Space when the first message appeared on screen, which took me to a zssh prompt. Type rz, hit Enter and the download began. I didn't realize I had to use rz in the same terminal session.


0

I encounter to the similar issue. The problem for me was because I change IP IPv4 Method from auto to manual. I did not have a correct config. After switching back to auto, reconnect, and it worked. just need the correct config for me.


0

I think with all the things I have tried and heard today a nice long, powerless shut down, (yeah that button) is the best idea; and honestly ppl leave their comps run for days and don't consider updates. I've seen many posts where ppl lost bluetooth from an update, and what fixed it? TURNING IT OFF and then on, I use a dongle for music and want to get my ...


6

it's like Russian dolls: disk -> MBR partition scheme -> extended partition container -> logical partition -> LUKS -> PV -> VG -> LV-> filesystem. So the root filesystem isn't simply on /dev/sda5. What you already did: enlarge disk enlarge extended partition container (/dev/sda2) enlarge partition (/dev/sda5) What's left: LUKS: no ...


0

yeaaa it works fine thanks a lot i just created the following directories: /var/www/.cache /var/www/.mozilla i gave www-data permission to write in it. i m wondering if ther is not a security problem with this. maybe should be better to specify a working directory for mozilla somewhere else..


-2

The good news is that you have a backup on the old disk. The bad news is that the copy means you don't have unique UUIDs on the new disk. For LUKs it is simplest to extend the LVM with lvextend, then recreate the LUKS and copy over the data from the old disk. Simplest would be to use two computers with one disk on each and use rsync. If you don't have ...


1

You most certainly can have multiple processes listening on the same port if they are bound to different IPs. Here's a demonstration using nc: % nc -l 127.0.0.1 1234 & [1] 24985 % nc -l 192.168.1.178 1234 & [2] 24988 % netstat -an | grep 1234 tcp4 0 0 192.168.1.178.1234 *.* LISTEN tcp4 0 0 127.0.0.1....


1

You can't install the debian linux-headers on Ubuntu but you can download the source: Add only the debian sources , it doesn't harm ubuntu: printf "%s\n" "deb-src http://deb.debian.org/debian buster main" |\ sudo tee /etc/apt/sources.list.d/debian-src.list Add the gpg keys: sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com ...


5

When dpkg -l isn’t given a pattern, it ignores packages marked as “not-installed”. To work around that, give it a pattern: dpkg -l '*' apt list is apt-specific, similar to dpkg-query (which handles dpkg -l), and doesn’t have an apt-get or apt-cache equivalent.


5

As far as I’m aware, there’s no translator for Ext4, whether in Debian specifically or in the Hurd in general. The existing ext2fs translator doesn’t support Ext4, and the version packaged in Debian doesn’t either.


4

Both IPv4 and IPv6 do not have port concept, only source and destination IP address. The port limit is determined by TCP and UDP protocols. If you want to extend the starting port limit (default: 1024) to add some more ports to end users you can lower the privileged port range to some lower number with sysctl: echo "net.ipv4.ip_unprivileged_port_start=...


12

The limit on listening ports is per address regardless of IPv4 or IPv6. The limitation comes from TCP and UDP packet headers which are two bytes and so port numbers for TCP and UDP can only be in the rage 0x0000 (0) to 0xFFFF (65535). When any service (including an SSH server) listens to a port, it can chose to listen to one IP address or every IP address. ...


4

The port is assigned to ip address and you can assigne (in Linux as I know) more then one IP address to the interface. But of course there may be other limits (like available file descriptors - socket() system call return file descriptor or -1 wher error).


1

Although not answering your question directly, this sidesteps the delay sudo su can be simplified as sudo -s. If you want to change to a different user, you can do that directly, for example sudo -s -u otheruser


1

It makes the system boot with the root filesystem as read-only and the /var mounted as a writable tmpfs RAM-disk. Basically a system should behave like a live Linux media without persistence. Later parts of the start-up process might include remounting the root filesystem in read-write mode, or they might not. Is this a RasPi or something similar? In that ...


0

I don't think that the "diff image" will work at the filesystem level like you want it to. There are too many variables in the placement of files/directories, metadata checksums (on newer systems), journal blocks, etc. that make it impossible to take a block-level diff from one filesystem and apply it to another filesystem even if the two ...


0

One easy way to find the window manager you're using is by running either neofetch or screenfetch. If not installed, at least one of them should be available in your repo. In the exemplary screenshot below, both show that my window manager is Xfwm4.


1

# systemctl show-environment LANG=pl_PL.UTF-8 # systemctl set-environment LANG=en_US.UTF-8 # systemctl show-environment LANG=en_US.UTF-8 Appears to be doing the job, also for the services run by systemd (requires them to be restarted, obviously).


0

It's a permissions problem. www-data's home dir is /var/www which is usually owned by root. You can either give /var/www to www-data or, to limit permission changes, you can create /var/www/.mozilla and change its ownership to www-data. Then try running your script again. What seems to be happening is Firefox is trying to save the user preferences and ...


0

The answer of Kamil pointed me in the right direction, i.e. the use of hard links and tail -F. I went with the following solution: With watch re-create a hard link to the latest file periodically: watch -n 300 'ln -f $(find . | sort --reverse | head -n1) ./latest.json' Use tail -F to continuously see the latest line of the hard linked file: tail -F ...


1

Use: sudo ufw allow 22 See also: https://askubuntu.com/questions/30080/how-to-solve-connection-refused-errors-in-ssh-connection


0

I solved this problem removing the main FTP configuration file /etc/proftpd/proftpd.conf and then restarting the service sudo service proftpd restart


0

Add this line to /etc/default/grub: GRUB_RECORDFAIL_TIMEOUT=0 Update and reboot: sudo update-grub sudo reboot


1

This solution uses tail -F (i.e. tail --follow=name --retry ) which is not portable. Tested with GNU tail. Proceed as follows: Create monitored as a regular file: : >>monitored Periodically check if there is a file*.json file newer than monitored. If so, replace monitored with a hardlink to the file: while sleep 1; do find . \( -name . -o -prune \...


1

This is dpkg-name: $dpkg-name foo.deb dpkg-name: info: moved 'foo.deb' to './feature-dev_1.4.177_armhf.deb' Original name foo taken from DEBIAN/ directory parent


2

This is expected behaviour and is documented in the manual. At the terminal type man 8 mount: -r, --read-only Mount the filesystem read-only. A synonym is -o ro. Note that, depending on the filesystem type, state and kernel behavior, the system may still write to the device. For example, Ext3 or ext4 will replay its journal if the filesystem is dirty. To ...


0

Normally the emacs is just a symbolic link that is automatically created during install so you can simply add a symbolic link sudo ln -s /usr/bin/emacs-26.3 /usr/bin/emacs NOTE: Those are the correct paths for Arch but you probably want to verify the install location with which emacs-26.3


0

If you want to watch all files in current directory, use this construction: ls | cat - <(inotifywait -m --format '%f' -e create . ) | while read file ; do tail -v -f "$file" & done Note that it does not support having subdirectories in the watched directory.


0

Make sure you have set your sources.list correctly, here is how to override the non-debian repository (as said @A.B in this comment) : sudo rm /etc/apt/sources.list.d/* cat <<EOF |sudo tee /etc/apt/sources.list deb http://deb.debian.org/debian/ unstable main EOF Then run: sudo apt purge libgcc1 # not available in Sid sudo apt update sudo apt dist-...


1

Try sudo apt clean instead, this article goes into more detail about the two commands but basically autoclean removes uninstalled packages while clean removes uninstalled packages and the cached .deb files. https://www.how2shout.com/linux/apt-get-command-autoclean-clean-autoremove/


1

To fix the EULA selection, you can change the value stored in the debconf database directly: debconf-get-selections | grep PacketTracer_731_amd64/accept-eula | sed s/false/true/ | sudo debconf-set-selections Then configure pending packages: sudo dpkg-reconfigure --pending


0

I had the same issue. What fixed it for me was switching from Wayland to X11: Open /etc/gdm3/daemon.conf Uncomment the line WaylandEnable=false Reboot


0

This will work in LXDE and most other environments. It doesn't require knowledge of the environment or sudo group privilege. It kills all processes the user has running, effectively logging them out. pkill -KILL -u your username


0

Use these commands for the solution: sudo chmod a+rwx /etc/apt/apt.conf.d/50appstream sudo gedit use /etc/apt/apt.conf.d/50appstream then put in the comment last 3 lines of the file, Like this: #APT::Update::Post-Invoke-Success { #. "if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh-cache > /dev/null | ...


0

First of all, lsb support on Debian is still provided through metapackages, just as they are on Ubuntu. So you might have all the packages you need available from apt. Run apt-cache search "Linux Standard Base" to show which packages are available. Debian Jessie (oldstable) should have all the packages you need. If there are certain packages ...


0

On debian stable (buster) you need to use buster-backports, backports contain a recompiled packages from debian testing for debian stable, testing doesn't have a backports repository. In other word bullseye-backports will be released when bullseye will be stable.


0

It is very ease to expand ext4 partition with growpart. Backup current partition table sfdisk -d /dev/sdb > sdb_partition_bak.dmp Execute dry-run to see what will be changed. If you don't have this tool. Run apt-get install cloud-utils growpart -N /dev/sdb 1 If everything is fine growpart /dev/sdb 1 Resize file system. It may take 10 seconds ...


0

Those are options for the mariadb program itself. You can put them in configuration files, overriding what is already set, e.g. on my system: $ sudo ack datadir /etc/mysql/ /etc/mysql/mariadb.conf.d/50-server.cnf 21:datadir = /var/lib/mysql So I would suggest making your own custom config file in /etc/mysql/mariadb.conf.d/ numbered after 50 ...


0

#!/bin/bash # To add this repository please do: if [ "$(whoami)" != "root" ]; then SUDO=sudo fi ${SUDO} apt-get -y install apt-transport-https lsb-release ca-certificates curl ${SUDO} wget -O /etc/apt/trusted.gpg.d/apache2.gpg https://packages.sury.org/apache2/apt.gpg ${SUDO} sh -c 'echo "deb https://packages.sury.org/apache2/ $...


2

Actually, the way to set the configuration of a non-root group associated with the UNIX socket of wpa_supplicant is pretty weird (and not documented). The following steps could be useful. Create a group (linaro in your case); I will anyway use "netdev" in my examples, which should already exist in most distributions (if not existing: sudo groupadd ...


0

This is most likely happening to you when you leave the computer for a while, then come back. Why? You have a monitor connected via HDMI. HDMI supports carrying audio, and is thus an audio output device. When the monitor powers off due to inactivity , then back on, this audio device becomes available again. PulseAudio is configured to switch its default ...


0

Add this after the UsePAM yes in /etc/ssh/sshd_config AuthenticationMethods publickey,keyboard-interactive


0

The answer @jiwopene gave is fine but it applies to every package upgraded on the system. This is not what I asked about because some upgraded software will not function when old, deprecated options exist in the config file. Other packages will simply fill log files with warning messages (sshd, postfix for instance) which can cause needless overhead for ...


0

I know I am late to the party here, but I just wanted to add on to this one. I was getting a DHCP address on my network interfaces even though they were set to static. I was even getting this in Ubuntu 20.04 with ifupdown installed and using /etc/network/interfaces with manual IPs set. I added the following to /etc/dhcpcd.conf to stop all my NICs from ...


2

See -rw-r--r-- 1 root root 7224 Sep 19 2017 apache2.conf ^^ Group root has the permission to read the file but not to write it, so user ascuser cannot edit the file.


2

The program that provides this question is called dpkg. It is called by apt in latter phase of package installation on Debian-like systems. You can pass configuration options to it using -o Dpkg::Options::="OPTIONS". And because you want to execute dpkg with --force-confold (force configuration – old), use this: apt-get install -o Dpkg::Options::=&...


1

From comments it was made clear that the user had one or several lines in their ~/.bash_profile file saying PATH=~/bin:PATH This would clear the PATH variable, resetting it to a list of paths that are not generally useful. This would easily be remedied ty prefixing PATH with $ in the value assigned to the PATH variable: PATH=~/bin:$PATH This prepends ~/bin ...


1

sudo apt install openssh-client


0

You're using tee incorrectly. The iptables-save command creates the contents of what should be saved and sends it to stdout. The tee command needs to read the stdout of iptables-save and write it to the designated file. The correct way to save the routes without needing to use root shell is to have iptables-save pipe the content to tee which will then save ...


0

Using tasksel by removing task-xfce-desktop: sudo tasksel remove task-xfce-desktop


Top 50 recent answers are included