Hot answers tagged

25 votes
Accepted

Why can Wine convert Windows systemcall to Linux systemcall?

Currently Correct Answer It does not translate system calls. System calls are usually not made by the software under windows itself, but through normal calls to shared system libraries¹. The windows ...
Marcus Müller's user avatar
15 votes

How are some websites able to detect on which OS I am running the Tor Browser?

There are ways to find out the actual operating system. The easiest is accessing the navigator.platform property, exposed by most browsers. Why not spoof that? Well, there are reasons, things do break....
Eduardo Trápani's user avatar
13 votes

Can I develop Windows, macOS, and Linux software or a game on one Linux distribution?

Yes, of course, you can. To do that, you need a universal language which can be understand on all target machines. Once you have such language - write a software on it, without using OS-specific code ...
White Owl's user avatar
  • 4,724
11 votes

How do I create a copy of a hard drive on my PC?

Good news and bad news. The good news is that you are correct, that would be the way to go. Always do a full sector by sector copy ("dd" would be the go to standard for this) and mess with ...
Daniel's user avatar
  • 153
8 votes

Can I develop Windows, macOS, and Linux software or a game on one Linux distribution?

The answer by @WhilteOwl is very nice, and I'd like to make some addition. You can also try to learn HTML5/ES6/CSS3, which are Web programming technologies. You can use these to develop a kind of ...
DannyNiu's user avatar
  • 622
6 votes

How are some websites able to detect on which OS I am running the Tor Browser?

I think the reason Windows appears to work is because you are experiencing a discrepancy between the internal Windows version and that which it claims in the GUI facade. https://www.reddit.com/r/...
bxm's user avatar
  • 4,776
4 votes

How do I use rsync to reliably transfer permissions & ACLs when copying from NTFS internal C: to NTFS External disk?

That had bothered me a while too. I'm looking for brave souls to take my rsync-ntacls patch for a spin. This patch enables rsync on windows to transfer NTFS security attributes while offering rsync's ...
PreussLabsLLC's user avatar
4 votes
Accepted

Hibernate Windows PC from Linux

There's no such flag as -h. Samba's net rpc shutdown doesn't support hibernation yet. Instead you could try WinEXE though I'm not sure if it still works with modern versions of Linux and Windows. Also ...
Artem S. Tashkinov's user avatar
4 votes

How do I create a copy of a hard drive on my PC?

You can use sshfs or samba to mount a network share to your computer after mount you can make a copy of the hole drive with your data with the dd command list drives with lsblk than make a copy with ...
SyncToy's user avatar
  • 198
4 votes

Can I develop Windows, macOS, and Linux software or a game on one Linux distribution?

White Owl's answer, unfortunately, is overly optimistic. In theory, this is how things should work. In practice, it just isn't the case - or, at least, it is only so to a certain extent. There are ...
gaazkam's user avatar
  • 1,400
4 votes

How are some websites able to detect on which OS I am running the Tor Browser?

Because the browser told them this. So Tor on Windows was able to hide the fact that Windows 11 was run instead of 10. But the Linux version was unable to hide the fact that Linux was the OS. User-...
Richard's user avatar
  • 41
4 votes
Accepted

How can I turn off git bash for Windows case-insensitive behavior?

You need to revert two settings, nocaseglob and nocasematch: The documentation (man bash) writes, nocaseglob If set,bash matches filenames in a case-insensitive fashion when performing pathname ...
Chris Davies's user avatar
3 votes

command that shows all online connections?

Sure, quite a lot of tools do that, and technically, you could even implement that yourself with a shell script by walking throug /proc. But that's not really helpful here: The standard tool for that ...
Marcus Müller's user avatar
3 votes
Accepted

Is there a way to emulate Windows in Linux like WSL?

Linux system calls are published, then it is "easy" for Microsoft to develop a Linux Subsystem (WSL1). And this subsystem can run an ecosystem (programs, libraries...) which is free to copy. ...
Frédéric Loyer's user avatar
3 votes

Can I develop Windows, macOS, and Linux software or a game on one Linux distribution?

Windows, MAC and Linux are very different. Modern macOS (formerly known as OS X) does have some Unix-like roots, but it's whole GUI infrastructure is very different from that used on a typical Unix-...
plugwash's user avatar
  • 4,312
3 votes

What is stopping Windows from being a subsystem for Linux, like WSL?

WSL1 was just a wrapper for syscalls. WSL2 is more of a virtual machine with tight integration into the host (binfmt allowing you to call Windows binaries, filesystem integration...). An integration ...
Panki's user avatar
  • 6,439
2 votes

Adding Raw Disk to a Virtual Box gives the following errors

.vmdk for rawdisk access needs to be created with regular user access -> not root. Not nice, not safe, but at least a working solution is to change permissions of blockdevice you are going to ...
Bart's user avatar
  • 121
2 votes

Error when unlocking BitLocker encrypted partition with dislocker tool on Linux

I found the solution to this issue by trial and error. The issue was that my partition was not fully BitLocker enabled. Therefore, I booted a Windows DVD (7 and above) and mounted my partition through ...
mohammad's user avatar
2 votes

Hardware and System clock both wrong in linux

So your UTC time is about 17 minutes off. System clock synchronized: no NTP service: active Although the NTP service is active, the System clock synchronized: no indicates it has not succeeded in ...
telcoM's user avatar
  • 90.5k
2 votes
Accepted

Is it possible to verify a Windows EXE (PE file format) checksum under Linux?

There are a number of tools to do this; one such is pefile, a Python library with a build-in PE checksum verification function: #!/usr/bin/python3 import pefile import sys pe = pefile.PE(sys.argv[1])...
Stephen Kitt's user avatar
2 votes

GRUB broke my Windows boot, how to fix?

Things you can do to solve the issue: (Check the 3rd method first, that only might fix the issue) Try adding menu entries to the grub menu manually: - nano /boot/grub/custom.cfg = Open the grub-...
Asmit Das Choudhury's user avatar
2 votes
Accepted

How to fix external drive in Linux the way Windows does automatically

Easy fix? Don't use NTFS, but instead use a Linux-native filesystem. Useful fix? No, none. I see in a comment that you "have a few external drives that are supposed to be used on Windows as well ...
Chris Davies's user avatar
2 votes
Accepted

Entering special characters the same way on Windows and Linux

You could install a Compose Key utility on your Windows system. That's my preferred approach as I can create the same custom key combinations on my Linux-based and Windows platforms. My preferred ...
Chris Davies's user avatar
2 votes

Entering special characters the same way on Windows and Linux

If the ability to enter a limited set of accented characters satisfies your needs and you are OK with the US keyboard layout, there is a method that is common to Linux and Windows: the US ...
Johan Myréen's user avatar
1 vote

archlinux in a different HDD

Sounds like you have a system whose UEFI firmware auto-deletes any NVRAM boot variables that refer to disks that are not accessible. That means, you will have to prepare your UEFI OS's bootloaders for ...
telcoM's user avatar
  • 90.5k
1 vote
Accepted

How to inform Windows something is done?

What's worked well for me in the past is to upload files with a .tmp suffix, and then have the sender rename them to the correct suffix on successful transfer. The receiver completely ignores .tmp ...
Chris Davies's user avatar
1 vote

How to inform Windows something is done?

The traditional way of dealing with this, independently of the operating system on either side, is to upload a marker file to indicate that the upload is complete. The uploading side uploads all its ...
Stephen Kitt's user avatar
1 vote

How to negate pattern when using awk with double quotes

Don't do that. With a simple variable argument in awk: $ awk -v exclude='\.js$' '$1 !~ exclude' file foo.txt Or, import the pattern via the environment (handy way to support patterns containing \\): $...
Gilles Quénot's user avatar
1 vote

Windows 11 KVM Guest hangs on install in Fedora 37

downgrading ovmf does the trick for me, with: sudo dnf downgrade edk2-ovmf
user568707's user avatar
1 vote

Windows 11 KVM Guest hangs on install in Fedora 37

After some hours of testing multiple solutions, I found one which is working for me which I would like to share: Multiple people reported on GitHub here, that under Fedora 37, not the right secure ...
CLNRMN's user avatar
  • 111

Only top scored, non community-wiki answers of a minimum length are eligible