New answers tagged

0

If anyone else is in a very locked-down environment, and you can't even install PuTTY, here's what I do: Transferring files from Windows to Linux (CentOS 7) On my Windows computer, open a command prompt scp [local file to send to Linux] [Linux username]@[Linux computer]:[Linux path to save to] examples: scp log.txt ryanLinuxUser@cent.xyz.com:/home/...


0

I can't speak to the naming of your specific interface, but if you were to set things for say interface eth0, you can add the settings to /etc/systemd/network/eth.network. The settings will then persist. I did this to enable mDNS. (it meant adding MulticastDNS=yes to that file)


0

Posting my previous comment as answer (which was just a comment because I wasn't sure whether it would solve the issue entirely): In an attempted edit on a similar question on SO a potential (and for your case partial I think) solution was mentioned: Running apt-get install gcc-9-base libgcc-9-dev libc6-dev allows for libc6-dev to be installed which ...


1

At the moment there is no autostart option, since this application is meant to be desktop agnostic and there is no standard way to achieve this. Fortunately there is a standard way for most Linux/Unix system (those adhering the FreeDesktop standards). However, since the app is meant to become cross platform in future, the option is not available in the app, ...


0

If they can access the machine by booting into the OS then Full Disk Encryption won't work - in Windows anyway they'll be able to access the documents and saved password files, and even inject their own viruses if they wanted to with an admin account. You'll want to use a file-based (not disk-based*) encryption scheme where you have an encrypted container ...


0

I do not understand the purpose of legacy mount point. ZFS provides a hierarchical structure of datasets within a pool. In your case you have a pool named rpool, and at least the following datasets: rpool rpool/ROOT rpool/ROOT/s10x_u10_wos_17b Each of these datasets is often a filesystem (though it can be a volume / block device instead). Just as each of ...


1

AWK can do this by itself, piping multiple processes is not necessary. awk '{print NR " " gsub(/[{}]/, "")}' Example: $ printf 'test{}\n abc\n }{{}\n xyz}' | awk '{print NR " " gsub(/[{}]/, "")}' 1 2 2 0 3 4 4 1 The grep count option -c is a con job. It does not return the total count you expect (it is actually just a line count, not a match count). $ ...


0

This question was asked quite a while ago, but for posterity I will point out that according to this issue, it's been relocated to: /usr/share/dbus-1/session.conf


0

debian.org has seems to fix this issue. I did this installation about 6 months ago on my Lenavo ideapad 100S-14IBR laptop. However, I installed a debian 10 by upgrading from debian 9.9 and also through a clean installation of debian 10 it seems to work fine now without an issue. Thanks & Best Regards Michael


0

When your script running continuously Press CTRL+Z to stop the execution.


0

If you just want to yank from VIM to Windows, for WSL2 and Ubuntu 20.04, this answer on Reddit worked perfectly for me with standard VIM and standard WSL2 Ubuntu. Put the following in your .vimrc (at the bottom, for example): " WSL yank support let s:clip = '/mnt/c/Windows/System32/clip.exe' " change this path according to your mount point if executable(s:...


0

All results for any related keywords I could think of were dead ends. But I was able to figure it out... So, also included in the sbsigntools package is the sbattach utility, this will do the job, though it's not immediately obvious. I'll just mention that you need to know what you're doing and why you're doing it. You can break Secure Boot if you don't ...


3

How? How is ssh doing this? It opens /dev/tty. The relevant line from strace ssh … is: openat(AT_FDCWD, "/dev/tty", O_RDWR) = 4 The file descriptor 4 is then used with write(2) and read(2). (Testbed: OpenSSH_7.9p1 Debian-10+deb10u2). Why? Why is ssh doing this? Doesn't it violate *nix idioms? I'm not sure about "*nix idioms", whatever they are;...


1

To archive the entire month of January by using the filename (not the file timestamp) you can use: tar czvf 2020-01.tar.gz 2020-01*.csv If you want to archive the first and second halves of January separately and you are using a shell that supports brace expansion (eg. bash): tar czvf 2020-01-A.tar.gz 2020-01-{01..15}*.csv tar czvf 2020-01-B.tar.gz 2020-...


1

If you want to know what bash will execute when you enter sudo in a bash prompt, enter type sudo This covers commands in the path, aliases, functions and built-ins.


0

There are several ways, here is one way even if the executable is not in your path. How to find an executable find / -perm +111 sudo


-2

#!/bin/sh # ############################################################################## ### Source: https://ipinfodb.com/api # # Created by Eric Gamache on 2009-05-26 # # Version 1.0 by Eric Gamache -- 2009-06-04 # Version 1.1 updated by Marc-Andre Caron -- 2009-06-08 .. Added timezone # Version 1.2 updated by Eric Gamache -- 2009-06-08 .. fix ...


1

It does not matter whether Linux is embedded or not. It doesn't even matter whether it is Linux or not. FTP does not let you run commands on the remote system. You would also need to login to FTP as root to able to access the system config files, and hopefully that is disabled for appropriate security. Really, FTP should be disabled for everybody since ...


1

You can use the which command to know where any command file is located. which sudo should do the trick.


0

First make sure you have the HIST_IGNORE_SPACE option set, for example in your .zshrc file: setopt HIST_IGNORE_SPACE Then you can prefix your print -s "another command" statement with a space to prevent it from being recorded in your history.


0

Looks like systemctl enable firewalld turned on my os firewall. So the solution was: I turned it off and now the connection go through. To turn off systemctl stop firewalld To disable so it doesn't start on reboot I did systemctl disable firewalld


0

But is it possible that I simply mount the downloaded Ubuntu 20.04 .iso image file from my current OS (Windows 10) just like I can with some other applications? It is not currently possible to install Ubuntu from within Windows. While it is possible to mount the ISO, and view the contents of the image, you will be unable start the installation process ...


0

It's quite easy to backup a full USB drive. In Linux a USB drive is available as a block device. Partitions are available as block devices as well. In fact they are just fragments of the drive that holds them. The kernel reads the partition table and provides names like /dev/sdx1 or /dev/sdx2, so you (and processes, and the OS itself) don't have to work with ...


0

After much rummaging, I hit on this solution: Script /usr/share/initramfs-tools/scripts/init-top/udev runs early in the initramfs boot stage, prior to mounting the root FS and starting systemd proper. It calls udevadm settle, which waits for all hardware change events to complete (unsure what exactly constitutes completion, except evidently my USB port ...


2

this firefox -url $(cat url-to-be-open.txt) might work


0

After clicking "START" in Rufus, choose "Write in DD Image Mode" (it will prompt you). A live Linux image doesn't always want to boot from a USB if it is written in ISO Image Mode, at least in my experience.


0

Just to be safe I tried this in mac catalina: mv '~' '~_bkp' you can change directory to check the contents cd '~_bkp' ls If its empty simply 'remove' rm -rf '~_bkp' 'rmdir' can be used too to remove the empty directory


0

Update: According to the Dell support the screen needs replacing.


0

No, there is no generic method of doing this. Tty devices do not have a built-in screen buffer, and they do not have any built-in understanding of the terminal graphics control codes, either. They're just fancy bidirectional pipes which transfer data between the "host" program (terminal emulator) and the rest (shell and CLI tools). Actually interpreting ...


0

very Simple cd directoryname/ && ls


0

Try type alsamixer in a terminal.


0

You can also use: firewall-cmd --permanent --ipset=blacklist --remove-entry=x.x.x.x


0

I only rename with right clic, example: compress-pdf-v0.1-x86_64.AppImage to: compress-pdf-v0.1-x86_64.zip then right clic "Extract Here" and working extract all files inside in one folder


1

Not a complete answer, but since you have A script to find the newer N archives (output to newerN.lst) A script to find all archives older than N days (output to older.lst) You can easily produce a list of the old files that are not in the N newer using grep --invert-match --file newerN.lst older.lst This list is what you want to erase.


0

The output shows that you are trying to install a new set of texlive packages with partly new package names. The new packages contain files which are part of the old packages as well, hence dpkg errors out before breaking installed packages. Approach 1 dpkg/dpkg-deb is good in resolving package dependencies automatically, you can try to use apt for that: ...


-1

Kind of easy solution: 1. sudo nautilus 2. Create "home" folder with read-write permission 3. ??? 4. You are awesome


1

For reference: https://manpages.debian.org/apt https://manpages.ubuntu.com/apt apt upgrade will upgrade all packages that can be upgraded without the need to install additional packages or remove any conflicting installed packages. Basically it will apply all package upgrades that do not include changed dependencies. apt full-upgrade (the correct ...


0

I think its just due to the mount command , try this one : mount -t nfs 149.210.143.92:/mnt/kubernetes-nfs-volume /var/kubernetes-nfs-volume


2

When you run this on the Pi: # shell on Pi export DISPLAY=:0 ssh root@192.168.1.35 /home/enter.sh you're running export … on the Pi. Then ssh inherits the variable from the shell but it doesn't push its environment to the server. It can set DISPLAY on the server but the variable won't have the value you set on the client (see man 1 ssh, ENVIRONMENT section)...


0

The packages were installed with independent package names that were different than the .deb files. dpkg --list | grep packagename | awk {'print $2'} showed me which packages to remove. apt purge worked fine after that.


0

Based on what I learnt from https://serverfault.com/a/932206/491739 and my own experimentation: Yes, it does use policy based routing (ip rule). It happens after iptables based on the fact that following sample rule works (I can see packets logged before they are eventually dropped): iptables --append PREROUTING --in-interface tun12 --match set --set ...


0

Does seem like an older issue, but might prove useful for others: I find the easiest way to achieve file copies from WSL to windows without having to struggle with permissions is as follows: 1) Open "File explorer" 2) Connect to your running WSL instance just like you would connect to a network drive: --> Enter \\wsl$\< WSL_Distro > in the address ...


0

I did some experiments and I found that the ssh subsystem is executed by 'sh -c ...' command. Apparently, there is no way to avoid having login shell. And it seems that the only way out is to tighten up shell level restrictions.


1

The mcelog program can supply some explanations: /usr/sbin/mcelog --ascii < error_text I extracted the error text part: Machine check events logged CPU 0: Machine Check: 0 Bank 3: baa0000000040118 TSC 0 MISC d012000100000000 SYND 4d000000 IPID 300b000000000 PROCESSOR 2:870f10 TIME 1590567072 SOCKET 0 APIC 0 microcode 8701013 Then I ran it on a Linux ...


0

Use the shortcut Ctrl + J on chrome to show all the downloads. Click on the Show in folder link located below the filename to navigate to the file location.


0

Chrome keeps a summary of the files it has downloaded at the bottom left of the screen. You can go to the button file you downloaded, click the up arrow and select "Show in Folder".


0

In the ~/.ssh/authorized_keys file you can set a certain private key to only run a certain command.


1

Ok, I figured this out. The main httpd log directory, /var/log/httpd, and all the logs in that directory are owned by root. But, those are the logs that httpd itself writes. Apparently, the files read/written by PHP are under the auspices of the apache User and Group, as specified in /etc/httpd/conf/httpd.conf User apache Group apache I chown'ed the log ...


0

You'll have to keep track of them individually, probably by partial name, and keep the last N versions OR x days. for each commonThing do if more than N then delete copies > N older than X days fi done or some such similar arrangement. Doing this reliably is a challenge, as you'll probably need a list of the commonThings to identify ...


0

yum is the installation manager for the RedHat family of distros (RHEL, Fedora, Centos). On Ubuntu you should use apt/apt-get: sudo apt install docker-ce However, since you seem to run a rather old Ubuntu version (16.04?), you have better install Docker from the Docker repository to get a recent version: https://docs.docker.com/engine/install/ubuntu/ (...


Top 50 recent answers are included