Tag Info

Hot answers tagged

25

"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 ...


23

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 ...


22

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 ...


20

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.


19

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 ...


16

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

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 ...


14

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

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 ...


12

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 ...


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 ...


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

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 ...


10

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. ...


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.


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

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 ...


9

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 ...


8

In my experience always install Windows as first OS. Otherwise it will overwrite the boot loader of the previously installed OS. There are ways around it, but these just make it more complicated. After installing Windows, install your first Linux distribution. It normally will find your Windows installation and add it to its boot loader automatically so you ...


8

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


8

According to this page you can convert your dsa keys to a format that PuTTY will accept with a PuTTY tool, PuTTY Key Generator. There is more detail on this page which describes importing your RSA or DSA key into PuTTY format. Essentially, you just select 'Import Key' from the 'Conversions' menu and navigate to where the key is stored on your machine.


8

It is apparently possible to install Linux on an NTFS partition. Since there are bootloaders that will boot both Linux and Windows, what you're proposing can probably be accomplished. It will be hideous. I strongly advise against it, not least because you'll run into problems with running Linux on NTFS that nobody can solve for you. If your goal is to share ...


8

Linux hardware drivers are kernel modules. Because of the open source model and licensing of the kernel, very few of these are written by hardware manufacturers; most of them are reverse engineered or based on standardized public protocols. Pretty sure bluetooth is in the later realm, and also that things like mice and keyboards are in most cases totally ...


8

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 ...


8

as I mentioned in the comment: as Wikipedia link mention: In Windows NT operating systems, a Windows service is a computer program that operates in the background.[1] It is similar in concept to a Unix daemon. A daemon is a type of program on Unix-like operating systems that runs unobtrusively in the background, rather than under the direct control of a ...


7

From the command line you can use the smbtree tool: $ smbtree Password: WORKGROUP \\WOLEVER wolever \\WOLEVER\IPC$ IPC Service (wolever) \\WOLEVER\Downloads Downloads \\MACBOOK-D397E8 Some MacBook \\MACBOOK-D397E8\IPC$ IPC Service (Some MacBook) ...



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