New answers tagged

0

Similar problem to me, also is a Dell laptop, Latitude 7275. Still looking for a solution, I did try to add blacklist peaq_wmi to /etc/modprobe.d/blacklist.conf, a solution heard from other post, it not works.


0

I am having a similar but much different issue in which I solved your problem instead. Anyways ls home, then if that comes up with nothing check with gui (thunar, nautilus, etc...) (with hidden enabled just in case) and do the same with a livedisk. If that comes up with nothing your folder is deleted. Just in case you did for next time do not recreate a ...


-1

maybe try find . -name *.xyz -exec xdg-open {} \;


0

Please check if this works: Log off Ctrl + Alt + F2 -> Log in mv ~/.config/pulse ~/.config/pulse.bak reboot


0

OBSERVATION 2: Trying to use fancontrol [...] hwmon3/pwm1_enable stuck to 2 I think I had this problem also. What worked for me, was reloading a thinkpad_acpi module with a script like this: rmmod thinkpad_acpi modprobe thinkpad_acpi fan_control=1 echo 1 > /sys/class/hwmon/hwmon3/pwm1_enable systemctl restart fancontrol.service Although it has ...


0

Eventually I found that even though listing the contents of the shared folder indicates that the files were owned by root, the actual properties of the files was unchanged from the place I copied them from. So when I burned a CD with those files and mounted that CD in the VM, the files showed up with the ownership they'd originally had. So, what seemed to be ...


1

The physical memory is not contiguous, but is scattered with holes in it. This is also reflected in the lowmem mapping of the physical memory, resulting in a total address range that is bigger than the amount of physical memory.


0

Other answers discuss SATA, IDE, SCSI, etc, but I thought I'd add the new NVMe. In modern kernels, NVMe drives use /dev/nvmeXnY for a drive, and /dev/nvmeXnYpZ for partitions. For example, partition 5 on NVMe drive (0, 1) would be /dev/nvme0n1p5. The block devices behave just like the hdX and sdX drives. Essentially, parrallel connections use hdX and serial ...


0

The drives are simply not mounted at the correct location, there should be no modification or data loss at all. However, you could modify that fstab file to ensure that the mount won't fail again by configuring unique UUID for each partition. To do so, use bklid to identify the properties of each partition and paste them accordingly in fstab.


0

Assuming that you’re using GNU diff, there’s no way to get it to generate the exact patch you’re after. It is possible to ask diff to ignore lines matching a given regex, with the -I option, but it will only ignore entire hunks consisting of only such changes. In this case, any hunk (even with no context) will change both the “Bananas” and “Clementines” ...


0

TL;DR You can use the following one-liner that will show you if your CPU is NX-capable. grep -m1 nx /proc/cpuinfo Example output: flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology ...


0

curl https://www.cnn.com/2021/05/04/politics/william-barr-memo-trump-memo/index.html http://vuln.box.ip:port/etc/shadow is not a valid url. Four more characters so I can post.


0

Looking at your Partition Map, I believe I see the issue. The EFI Partition should not be the /boot partition # cat /etc/fstab # comment snip # <fs> <mountpoint> <type> <opts> <dump/pass> UUID=fe110e32-ac2b-4c2c-9fe2-d7a3d774f4a5 /boot ext4 noauto 0 2 UUID=BCF2-DB39 ...


0

If you do patch(1), pieces that don't fit get saved in a reject file. You can then go over that one and apply (or not) the hunks that didn't get in. Another possibility (for hardcore jocks) is to just edit the patch. Note that the diff(1) format is designed for readability, not for editing. You have to be careful not to mess up the line numbers or other ...


1

to get files from specific directories with curl, use the file:// protocol, for example, to get the passwd file from the /etc/ directory, use curl file:///etc/passwd


1

You could add your module to the modules.d folder, and it'll get picked up by systemd at boot time. so make a file called /etc/modules-load.d/<featurename>.conf and let it contain <modulename> where is the name of the .ko file without the .ko extension you can get documentation for modules-load.d by typing man modules-load.d at your terminal


7

I’m assuming your Linux system uses GNU sort; GNU sort’s man page doesn’t provide complete documentation. Instead, the documentation is provided as an Info file (info sort) and is also available in the online Coreutils manual. The latter describes the behaviour you’re seeing: On systems not conforming to POSIX 1003.1-2001, sort supports a traditional origin-...


0

On Linux, using a graphical manager, create an Ethernet connection. Select your LAN card interface for that connection (run the command "ifconfig" in a terminal and to the left you will see interface names like enp0s18f2u6 or enp2s0). In IPv4 settings, mark that IPv4 is necessary for the connection (IPv6 can be ignored). Set manual address: 192.168....


0

You didn't have to use sudo to create the said files - now they are owned by the root user and naturally VBox cannot use them because they are mode 644. If you don't want to recreate them, you can simply: sudo chown myuser:myuser /path/file.vmdk


0

To connect a Linux box to a Windows box (to get internet), you need a working LAN (Ethernet) connection - as said in my first post here. So basically, you need to assign static private IPv4 addresses yourself, on both machines. You might need to set the connection to "private" or "trusted" as well. Once both PC's are connected, go to &...


0

There is a simple guide at https://oracle-base.com/articles/linux/use-iptables-to-implement-packet-filtering-and-configure-nat. But I found out, that in Windows, the DNS address that the Linux PC is using, must also be given in Windows. I have a 3G USB modem connected to my Linux PC, and from that I have two Windows PC's that get internet. It's called (...


5

/var/run is on tmpfs, which is an in-memory filesystems. Its contents are not saved when you reboot. You can't put anything there that needs to be saved across reboots. The startup script or configuration for kafka is responsible for creating /var/run/kafka. If it's started by systemd, see Create a directory under /var/run at boot. If it's started via a ...


0

I think you need to choose either VGA/USB console (tty0) or Serial console (ttyS0). I don't believe you can use both together. Also, IIRC, most bistros have a no-graphical-installer argument you can pass. For example, this page for Debian may be useful: https://www.debian.org/releases/stable/amd64/apbs02.en.html#preseed-bootparms And includes an fb= variable ...


0

@LinuxSecurityFreak's solution works for me. I just want to add that if your swap partition is encrypted, then you also need to comment out related line in /etc/crypttab, otherwise CryptSetup will keep you waiting for 90 seconds during boot time. Why a new user cannot comment on existing answer? I have to make a new answer for this supplement:(


1

Assuming you are on GNU sed version of the sed editor. Try to null the path d data in both fileold and filenew files before diffing. So you could do something along these lines: sed -i ' /<path d=/c\ <path d=/> ' -- "$fileold" "$filenew"; Or if you must need to make sure that the characters in between the quotes are only ...


0

swap should be accessible only by root (0600). Letting swap be read by group and other (0644) is a security hole, as it exposes the memory of swapped-out processes, which might contain decrypted passwords or other credentials. You can repair this with sudo chmod 0600 ....


0

I had a similar need for executing a script prior to my Oracle DB's being shutdown and thought I'd share my findings here in case others come upon this same post looking for a resolution.... To me, it appears that Oracle's oracle-ohasd.service never shuts down the database cleanly. But regardless of whether oracle db shutdown cleanly or not, I want my ...


3

getent hosts does what the hosts line of nsswitch.conf tells it to do. The strace indicates it's sending a unicast DNS query to 192.168.0.100. You have two hostname resolution services that could use unicast DNS: resolve and dns. One or both of these have apparently been configured, probably by your DHCP client, to use station as your DNS default domain. For ...


1

Due to the unrelated issue, I ended up checking /etc/resolv.conf, which is created by NetworkManager on all the distros I use as clients. According to @Kusalananda 's suggestion, it seems that the Vodafone Power Station causes network manger to add the search station option to the file and it's ip address as a DNS server; removing such line causes the http://...


4

You can use --select to filter pvs output. In this case --select vgname=<name> will do the trick: # pvs --select vgname=test -o pv_free --unit=g --no-suffix --no-heading 0.07 (I also have 3 VGs and test has only one PV with 70 MiB of free space.) Check pvs --select help for more options.


0

With csvkit tools: csvjoin -I -c PassengerId <(csvcut -c -5 file.csv) <(csvcut -c 1,6 file.csv | awk '{sub(/[.][0-9]+/, ""); print}') <(csvcut -c 1,7- file.csv) For introduction of csvkit and csvcut, please see the other answer. csvcut takes fields from csv files with -c HeaderName or -c HeaderNumber argument. -C does the exact opposite. ...


0

A simple awk approach can be to get the age field looking at from the end bcoz from that end the fields don't have delimiters inside: awk -F, -v OFS=, ' NR>1{$(NF-6) = int($(NF-6))}1 ' file Using sed with extended regex -r we count the fields from the end sed -r ' s/\.0((,[^,]*){6})$/\1/ ' file Output: PassengerId,Survived,Pclass,Name,Sex,Age,SibSp,...


0

I post this answer rather than deleting this question as reference for others who might run into the same issue: I found that the problem was caused by syncthingtray-git which I'd installed from the AUR (https://aur.archlinux.org/packages/syncthingtray-git) after removal (yay -R syncthingtray-git), plasmashell started perfectly fine, and as expected!


0

I tried to do it by using the longest regex from beginning of line to the last double quotes, used the following field as is, preserved the whole digits prior to decimal, and removed .0. Here is the solution sed 's/\(.*\",[^,]*,[[:digit:]]*\)\.0\(.*\)/\1\2/'


0

When working with CSV files, the main problem that you are facing is that your column separator may reside in the column value itself, if the column is of type string and the string is enclosed in (double) quotes. So, the following command: sed -r 's/^(([^,]*,){6})([^\.,]*)[^,]*(,.*)$/\1\3\4/g' would work, but only if you do not have a comma in a text ...


1

I wasn't able to do this with sed because the use of commas as the delimiter as well as the comma in the Name field not being a delimiter made it too complicated so I used awk with the gsub option: awk -F ',' 'NR==1; NR>1{gsub("\.0","",$7);print} ' OFS="," file This is somewhat messy given the circumstances but it sets a ...


3

A bit awkward, but I think it gets the job done. The csvkit Python package contains command line tools for working with CSV files. Among these is csvcut, which works like the standard cut command, but which is CSV aware, which means that it allows for fields that may contain embedded field delimiters and newlines, as long as they are properly quoted. With ...


0

Why this file should be compiled? I suspect it's for performance reasons. The magic database is not small. File would need to parse every human-readable magic source file, construct the structures it uses to detect file formats, compute the strength of every pattern and sort everything by that. This process could be unbearably slow, especially decades ago (...


1

why is this so unachievable? Linux can support anything under the Sun as long as you write patches to support a particular uArch and hardware components. Right now Linux is being ported to Mac devices running the M1 SoC. Actually the reason I am writing all these sentimental sentences is to be able to understand how does Linux actually works. ...


0

First of all, you can't remove the PV, because you don't have enough free space in the VG -- /dev/qw127 is ~372 GiB and you have only ~216 GiB of free space, so you first need to make sure you at least 372 GiB of free space in vger by resizing/removing existing LVs. After that you can use pvmove /dev/qw127 to move all the LVs from this PV to the other one ...


0

Well I played around with various command line tools but they're not particularly intuitive or friendly. Luckily I stumbled across a project on Github that works great and has a beautiful, simple GUI called "Key Mapper." https://github.com/sezanzeb/key-mapper It's available for various Linux distros. Here's an example of swapping the Alt key so ...


0

If you have 'parted' and 'resize2fs' built you can resize the partition, resize the filesystem then reboot in a script. For example here's a system I'm building with a 500MB image flashed onto a 16GB SD Card: # parted -s /dev/mmcblk0 u s p Model: SD SL16G (sd/mmc) Disk /dev/mmcblk0: 31116288s Sector size (logical/physical): 512B/512B Partition Table: msdos ...


2

The bash source (available on Debian with apt-get source bash) writes its history file using the function history_do_write in the file bash-5.0/lib/readline/histfile.c. It creates a temporary file, writes the history lines to that, and then uses this to replace the actual history file tempname = (overwrite && exists && S_ISREG (finfo.st_mode))...


0

It's impossible to say for sure, but most likely something changed the HISTFILE environment variable and then called bash (or maybe some other readline-based file, but then the question would be why $HISTFILE would contain .bash-history). This sounds like something you'd do in a unit test (suite). I've been digging around bash source code for a couple of ...


4

In addition to files under /proc and /sys, FUSE file systems are by default not accessible to root; see Why cannot find read /run/user/1000/gvfs even though it is running as root? for details. It is also possible to set systems up with mandatory access control systems such as SELinux so that root is restricted. Russell Coker has (or used to have, I haven’t ...


0

That would be hard, since the backslash is used to escape the next character, and at end of line, it starts a continuation line. So even if you could make a function called cd\, you'd need to run it as cd\\, or 'cd\'. And with aliases, escaping or quoting part of the name prevents alias expansion... Anyway, you can't create those aliases or functions in Bash:...


0

(This is really a "comment" and not and answer, but it doesn't fit in the comment section) It seems ifup doesn't create the bridge interface "behind the scene". I expect it to do this: ip link add name brLAN type bridge ip link set brLAN up ip link set eno1 master brLAN ip link set eno1 up And if the bridge use dhcp then: dhclient brLAN


4

Many files under /proc are not writable, and there are files under /sys that are writable but not readable. Examples: echo something > /proc/$$/cmdline cat /sys/block/sda/device/delete (Be careful: echo > /sys/block/sda/device/delete will "detach" sda from the system) This is so because /proc and /sys are special filesystems. It has nothing ...


0

Kubuntu 20.04 LTS installed by USB stick, several attempts fail to install grub. A failed upgrade from 18.04 LTS has trashed Windows (7->10 upgrade) boot, and I want to get that back too. I've tried this make your own /cow trick: dd if=/dev/zero bs=1M count=1 of=cowfile mkfs -t vfat cowfile mv cowfile /cow followed immediately with: kubuntu@kubuntu:~$ ...


0

The following sets all the cpu cores to maximum frequency. you may need to install utility cpupower. cd /sys/devices/system/cpu/ sudo cpupower frequency-set -g performance


Top 50 recent answers are included