Hot answers tagged

32

"Everything is a file" is a bit glib. "Everything appears somewhere in the filesystem" is closer to the mark, and even then, it's more an ideal than a law of system design. For example, Unix domain sockets are not files, but they do appear in the filesystem. You can ls -l a domain socket to display its attributes, cat data to/from one, modify its access ...


30

MinTTY - here. It makes Cygwin entirely usable on Windows. I would be lost without it. Based on the original PuTTY code, but integrates straight into Cygwin (and in fact, is bundled with Cygwin). Start it with, C:\cygwin\bin\mintty.exe - Or where-ever you installed it. The '-' is key. There are a few other useful additions for Cygwin as well, one ...


23

Linux deletes a file completely differently than the way Windows does. First, a brief explanation on how files are managed in the *unix native file systems. The file is kept on the disk in the multilevel structure called i-node. Each i-node has an unique number on the single filesystem. The i-node structure keeps different information about a file, like its ...


23

UDF is a candidate. It works out-of-the-box on linux >= 2.6.31, Windows >= Vista, MacOS >= 9 and on many BSDs. Note: UDF comes in different versions, which are not equally supported on all platforms, see Wikipedia - Compatibility. UDF can be created on linux with the tool mkudffs from the package udftools.


22

Edit smb.conf [global] unix extensions = no [share] follow symlinks = yes wide links = yes


21

Yes and no. Virus/trojans are just programs, and will work on Wine... Also, your normal Linux fs is exposed to Wine with the user that launches Wine credentials. BUT, usually viruses are based on lots of hacks, and they expect a "standard" and common Windows installation. I doubt that any virus is coded thinking that it will be executed on Wine, and if ...


19

You can't boot Windows from a grub rescue prompt, unless the partition with the grub modules is available. That's why you get the unknown command error. Your best solution is to reinstall the Windows bootloader. To do this boot from a Windows 7 repair CD or the Windows Installation DVD to a repair prompt and run: bootrec /fixmbr If you don't have a ...


19

Use the PSCP tool from the putty download page: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html PSCP is the putty version of scp which is a cp (copy) over ssh command. PSCP needs to be installed on your windows computer (just downloaded, really, there's no install process). Nothing needs to be installed on the school's servers. PSCP and ...


18

Try using the ssh connection termination escape sequence. In the ssh session, enter ~. (tilde dot). You won't see the characters when you type them, but the session will terminate immediately. $ ~. $ Connection to me.myhost.com closed. From man 1 ssh The supported escapes (assuming the default ‘~’) are: ~. Disconnect. ~^Z Background ssh. ~#...


16

After a day of research, I can now answer my own Question: yes it is possible, and you can even use that partition as /boot and store your kernels/initramfs/etc. there. Requirements: Grub >= 2.00 (1.98 and 1.99 do not work) Grub must be installed from a Linux kernel, that has support for EFI variables (CONFIG_EFI_VARS compiled in or as module efivars) For ...


16

A modern computer contains hundreds of parts that can be turned on and off or clocked faster or slower independently. The granularity is smaller than visible chips, smaller even than cores. A large part of power saving consists on turning parts on and off at the best time. Each part should be turned off when not in use, but only if it's going to remain ...


15

There are 2 ways, which I normally use Option 1: Before booting up Ubuntu, inside Virtualbox Ubuntu VM settings, specify a share folder. Then after logged in to Ubuntu, create a new directory for example /media/vboxshared and mount that drive using the command sudo mount -t vboxsf SHARENAME /media/vboxshared. Enter your password when it prompts for the ...


15

It depends on how you want to connect. You can create shares on the Windows machine and use smb/cifs to connect to the share. The syntax would depend based on if you are in a domain or not. # mount -t cifs //server/share /mnt/server --verbose -o user=UserName,dom=DOMAIN You also have the ability to mount the $IPC and administrative shares. You can look ...


15

On Windows, the system RTC clock is traditionally kept in local time. In Unix and Linux, it's traditionally kept in UTC, and /etc/localtime is used to indicate the current timezone so that the displayed time is correct. These two worldviews collide in dual-boot configurations, because there's only one RTC. Usually you tell Linux to assume that the RTC is ...


13

Yes, this is possible in a few different ways but you will need an X window server for Windows. Some options of a X windows server are XManager, XMing and MobaXterm. Once you have an X server running on Windows you can use PuTTY to connect to your host after you have set the configuration parameters: Connection/SSH/X11 Enable X11 forwarding X display ...


12

Researching the undocumented feature You're right the ntldr command (it is command, not module) is not documented. So it's a great excuse for some adventures in code archaeology. Whenever I find an undocumented feature, first thing to do is check sources. The source at the Savannah bazaar repo shows that it was merged into the main line in August 2010. ...


11

Your overwritten files are lost forever from that partition. Restore them from backup. Running Testdisk from a live CD might help a little; use the Testdisk live CD, which has a number of recovery tools. But be aware that recovery quickly gets difficult; it'll be quicker to recover your own data from backups, and to reinstall any third-party software from ...


11

You have to look at it from the employer's perspective. Even a single Linux machine in an otherwise Windows-only shop is a maintenance liability. Some companies have policies against the installation of unverified software on their systems or networks. Most of what you cite as reasons can be done in Windows as well, either using built-in functionality (...


11

Quoting "${build}" prevents word splitting, so it has the same effect here as writing "gulp build" (with quotes), which would search for an executable called gulp build with a space inside the name; and not as writing gulp build, which executes gulp with a build argument. Concluding, the last line of your script should be: ${build}


10

You should try rsync instead of cp: rsync -avz linux_path /mnt/windows_share/ and crontab instead of the perl loop: crontab -e and add the following line to it: * * * * * rsync -avz linux_path /mnt/windows_share/ It's going to be executed every minute, and if that's an option in your case, it's more robust than the while loop.


10

rsync --partial is one simple way to do it if you have rsync, since it runs over ssh just fine. What --partial does is keep a partially downloaded file, so you can just resume from where you got interrupted.


10

After snooping around various forums and some Stack-overflow post I found the issue. Here is an explanation to better understand and 'see' the root cause of the errors. First off if you are writing code on Windows, better arm yourself with Notepad++. It's basically the Swiss Army knife of text-editors in my opinion. Now to have a look at the EOL (...


10

I'm going use the term BIOS below when referring to concepts that are the same for both newer UEFI systems and traditional BIOS systems, since while this is a UEFI oriented question, talking about the "BIOS" jibes better with, e.g., GRUB documentation, and "BIOS/UEFI" is too clunky. GRUB (actually, GRUB 2 -- this is often used ambiguously) is the bootloader ...


10

To answer that, young Padawan, you merely have to consult the writings of those who were working on Unix when Tyrannosaurus Rex roamed a still-cooling planet. Deliberate upon the palimpsest so humbly offered by a sage of those halcyon dream-time days, one Eric Raymond. Verily shall his great pièce-de-résistance, "The Art of Unix Programming", enlighten the ...


9

Since you are on Ubuntu which has python installed per default you can just run python -m SimpleHTTPServer in the directory of files you want shared. This just creates a webserver on port 8000 that serves whatever is in that folder, so on your Windows Computer you can just point a browser to http://IP_OF_UBUNTU_BOX:8000 and download whatever you need.


9

Pros If a computer needs to have Linux installed temporarily, Wubi is easier to remove without leaving obvious traces. Without Wubi, you need to re-enlarge the Windows partition and restore the Windows bootloader. With Wubi, you just use the supplied uninstaller. You can even temporarily hide the Ubuntu entry from the Windows bootloader. For someone who ...


9

Wine works even for Windows CLI apps.


9

Many of the fallowing points apply equally to all POSIX operating systems and many other alternative OSs. Powerful terminal emulator with piping, redirection, and background processes. bash, the default shell, is a programming language that you can use for every day system management. It is several magnitudes more powerful than DOS such that many chose to ...


9

For a start, you've got the VM configured to be emulating an IDE bus, which is pretty slow. Try changing it to a SATA bus. Better yet, install the virtio drivers in Windows 7, and change it to a virtio bus. NOTE: Windows may complain about the hardware being changed underneath it, and may have difficulty finding the boot disk after it has changed from ...


9

Depends on the Windows version and the configuration of the server-side when we talk about non-local disks. Since Windows Vista, Windows does have an idea of symbolic links, but the semantics differ. But the more important problem here should be the path names, which follow a different syntax. For starters: single-rooted directory tree on the unixoid side ...



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