Tag Info

Hot answers tagged

20

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


19

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


17

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

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.


15

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


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


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

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


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

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


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

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.


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

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


8

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


8

Wine works even for Windows CLI apps.


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


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


7

Samba If you want to share files stored on Linux Linux, install a Samba server on the Linux machine. Follow the documentation (Red Hat 6, CentOS 5, Ubuntu). If you want to share files from Windows, your file manager on Linux can probably connect to a Windows share with no extra effort on your part. Try browsing smb:///. If you want access from the command ...


7

Since you have cut it to the filesystems supported by OS X and Windows out of the box, I'm afraid the least common denominator is FAT32. exFAT might be an option if you can relax the requirement and accept using FUSE - it is patent encumbered and hence it isn't going to make it to kernel till 2029 or until Microsoft grants the patent on royalty-free basis, ...


7

Without troubles, use FAT32. There is no other compatible possibility. Linux since version 2.6.xy has no more problems with NTFS, but Mac OS does...Maybe you could make more partitions at your flash, but this is actualy not great solution. Other solution: Try to imagine you have 4GB flash memory. Split it to 2 partitions. 1) FAT32 with freeware portable ...


7

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


7

The notion of multiple hierarchical protection domains, often called protection rings was introduced by the Multics operating system. Wheras original Multics system had eight distinct rings, many modern systems have fewer. Another difference is that in Multics, ring transitions happen in software, whereas many modern CPU architectures include some form of ...


7

This can be done by installing Cygwin and an openssh server on your Windows machine. Cygwin will come with bash, which can run your script, and openssh can be installed under Cygwin, and will allow you to login to the Windows machine remotely. Before logging in, you can transfer your script to the Windows machine using scp, and then run it directly with ssh. ...


7

The problem with the script is that when copying a file from another system like Windows, it adds a newline \n and a carriage return \r\n. For more about line feeds see newline entry on wikipedia. To demonstrate the issue I've uploaded short fragment here which explains how to solve the problem. In short: Use tr to remove those weird line endings tr -d ...


6

You're probably remembering loadlin



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