Linux refers to the family of Unix-like computer operating systems using the Linux kernel. If your question is about a certain distribution only, use a more specific tag.

learn more… | top users | synonyms

3
votes
1answer
1k views

Linux: multiple network connections - 3G/4G / Wifi / LAN / etc; how can i set a preferred network connection to use?

I've been looking at how I can setup a laptop that has multiple network interfaces, but a problem exists if all the connections are active, i.e. 3G, WiFi and LAN are all connected, I would like it to ...
3
votes
2answers
1k views

Running FreeBSD binaries on Linux

In general, will binaries built on FreeBSD run on Linux operating systems, especially Ubuntu?
3
votes
2answers
1k views

3TB SATA hard drives into an old Linux system

I have a 3 year old PC with 4 internal SATA ports. My old SATA hard drives, all smaller than 2TB, work fine. If I buy a 3TB SATA hard drive, will it work in Linux? Will Linux with GRUB be able boot ...
3
votes
2answers
5k views

Can't install Google Chrome on Ubuntu 11.04

Yesterday I freshly installed Ubuntu 11.04 (Natty Narwhal) 32bit on my laptop but couldn't install Google Chrome on it. Google Chrome was working fine with my previous Ubuntu 10.04. While I tried to ...
3
votes
1answer
753 views

Midnight Commander search exclude?

In Midnight Commander, is it possible to exclude some directories/patterns/... when doing search? (M-?) I'm specifically interested in skipping the .hg subdirectory.
3
votes
2answers
3k views

How do I ssh without a password (setting up ssh keys doesn't work)?

I want to ssh, scp, git fetch, etc. without a password. I saw the previous questions, and closed ones regarding this issue, but the suggestion seems to be to use ssh keys. However, after setting up ...
3
votes
4answers
3k views

Linux: aliases when using `screen`

I'm using screen, and I have several aliases in my ~/.bash_profile, for example python=python-2.6. But for some reasons these aliases don't work when I work in screen. How can I make them work?
3
votes
2answers
1k views

Downgrading linux

Is there any way to downgrade 10.10 to 10.04 without reinstalling linux ?
3
votes
2answers
3k views

How can I get an interface's bandwidth at any given second from the Linux command line?

I am doing a school project in which I want to get the bandwidth of a network interface at any given second, or some other small increment of time. I need this for a Perl script I am working on. ...
3
votes
3answers
680 views

New laptop - no install media - Backup Windows - Install linux

So I've got a new laptop, but no installation media. The hard drive has a hidden restore partition, a Windows 7 partition, and a small partition for vendor tools. My goal is to make a backup of the ...
3
votes
1answer
3k views

How to make all files non-executable recursively using find without affecting directories?

I need to strip the executable flag from all files within a certain directory and sub directories. Right now I'm doing it with a 2 step process find /dir/ -type f -exec chmod ugo-x {} \; find /dir/ ...
3
votes
2answers
2k views

Multiple parameters to bash script

I need to check for user provided options in my bash script, but the options won't always be provided while calling the script. For example the possible options can be -dontbuild -donttest -dontupdate ...
3
votes
1answer
388 views

List availible NICs on Linux

I have CentOS 5.5 I want to list all availible physical (or virtual on DomU) NICs connected to motherboard and see it's MAC addresses. I guess that related information should be somewhere in /proc or ...
3
votes
1answer
140 views

Removing previously type commands at a remote server

I am ssh'ing into a remote server and then su'ing to root. The problem is that sometimes, I have not paid enough attention to the console message, and I have accidentally typed in the root password ...
3
votes
2answers
2k views

How to share ethernet connection on Ubuntu (Jaunty)?

I've googled it and I've found mostly tutorials on sharing when having 2 ethernet ports. I am in a hotel with only wired connection (eth0). I would like to use my wifi card to share my connection with ...
3
votes
0answers
3k views

Recover a file deleted using rm command in Linux [duplicate]

Possible Duplicate: How to recover a removed file under linux I have accidentally deleted a very-very important file in my Linux (Ubuntu) machine using the command rm. Is there any way to ...
3
votes
6answers
3k views

How to ACTUALLY install Java on Linux?

I have a Ubuntu Server. From the terminal, how should I install JDK? In this guide it says to use this command: sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk But on Suns website, ...
3
votes
3answers
409 views

Backing up to smaller drive

In a few hours I'll have a new 500GB Sony laptop, filled with the usual Sony rubbish which I'll promptly be replacing with Ubuntu or Crunchbang or something. However, first I want to make a full clone ...
3
votes
1answer
388 views

Recover backup copy of a ubuntu linux installation on a usb stick using dd

I installed Ubuntu 10.04 on a usb stick in persistent install mode. So I could boot the laptop or my desktop computer with the stick, at boot time. Once I needed the 8GB stick for another purposes so ...
3
votes
1answer
600 views

Why is 'browser.backspace_action' turned off by default in Firefox under Linux?

Just like the title states. How come this setting is disabled (2 in about:config rather than 0) under Linux by default? Is there a reason to not turn it on?
3
votes
1answer
10k views

Why is “tar” trying to create an empty archive?

I'm trying to use tar to tar files before transfer, so I can keep the entire file path rather than losing it along the way. However, when I try to tar an empty folder, it tells me that it is cowardly ...
3
votes
3answers
2k views

Watermarking videos on Linux

I want to add watermarking on to my FLV videos. Previously I used to do that using FFmpeg's vhook option but due to some problems I had to upgrade it to the latest SVN revision. This version of FFmpeg ...
3
votes
4answers
541 views

Why are there binary differences among compressed files generated exactly the same way from the exact same starting file?

I use the "diff" command to compare two compressed files generated using zip on the exact same starting file and they are reported as being different. However, when I uncompress them and use the ...
3
votes
3answers
2k views

WIndows 7 “snap” and “live previews” effects for Linux

I really like the Windows 7 "snap" effect. That is, when you drag a window to either side of the screen, it resizes the window to be half the desktop size. I also like the "live preview" that creates ...
3
votes
6answers
3k views

How can I copy my (Ubuntu 9.04) Linux filesystem to another computer?

I have spent a lot of time configuring my computer: shell scripts, path definitions, video settings, as well as lots of programs. The disk is ext3 formatted. I would like to 1) move everything ...
3
votes
2answers
4k views

Wireless networking issue with Ubuntu

I must say I am really new to the networking stuff and Linux (Ubuntu 8.10). I am unable to connect to my wireless network after running these commands to change the MAC address and run in monitor ...
2
votes
1answer
275 views

How to disable a plugged-in PCI-e graphic card on OS level? [duplicate]

I have a server running for which I want to have a possility to access it with a screen connected to VGA (very rarely, most of the time it's accessed via SSH). Therefore I have a PCI-e graphic cards ...
2
votes
1answer
47 views

Understanding metadata usage behavior in a newly converted btrfs filesystem

I have a 5 TB hard drive with 3.3 TiB (as reported by du) of media files in 119k files and directories; the average file size was about 28 MiB. I converted the ext4 partition into btrfs with ...
2
votes
3answers
2k views

oxps to pdf or image - Linux

I've been trying to solve the problem of converting an .oxps file to .pdf or other file format. Any solutions for Linux out there? I've been searching around and cannot come up with much thus far. ...
2
votes
1answer
66 views

How to get Apache2 to wait for network initialization?

Server just upgraded from Squeeze to Wheezy. After reboots, I noted that apache2 wasn't starting, so installed bootlogd to inspect the output of init scripts. The error output from apache start was, ...
2
votes
1answer
535 views

What does 0.0.0.0 gateway mean in routing table?

I am new to being a Linux system admin and I am learning about routing tables. Currently I have two interfaces in my virtual machine: vagrant@vagrant-ubuntu-trusty-64:~$ ifconfig eth0 Link ...
2
votes
1answer
2k views

Installing firmware with samsung magician dc

I am trying to get Samsung magican DC to work on my linux (linux mint 17 xfce) computer. I downloaded samsung magician dc from here. Then I downloaded the firmware update files from this page (under ...
2
votes
1answer
247 views

Geany comment block format

I'm trying to figure out where the comment block style is defined in Geany for C files. By this I mean when I select a block of text and hit ctrl-e, each line in the block of text is pre-pended (at ...
2
votes
1answer
209 views

Why does Ubuntu mount the wrong partition as root?

I am messing around with a problem of Ubuntu mounting a backup of my root partition residing on a different disk as / instead of the real one. I think the problem has been triggered by a clash of ...
2
votes
1answer
486 views

dm-crypt+luks: Can I have a separate header without storing it on the luks encrypted device?

I would like to encrypt my external hard drive with dm-crypt+luks, but I am not satisfied with all the information, that the LUKS header is providing in plaintext. So I would like to keep the LUKS ...
2
votes
1answer
111 views

Is is possible to copy binary data containing a NUL character to the X clipboard?

If I do either of: printf 'a\0b' | xsel printf 'a\0b' | xsel -b printf 'a\0b' | xclip printf 'a\0b' | xclip -selection c and then paste from the corresponding selection (PRIMARY or CLIPBOARD) on ...
2
votes
1answer
3k views

dkms does not find kernel source

For days now I am trying to get ZFS-on-Linux working on Debian 7 but the module doesn't want to compile: # dpkg-reconfigure zfs-dkms ------------------------------ Deleting module version: 0.6.3 ...
2
votes
1answer
38 views

How do I make a virtualised WAN?

I want to create a virtualised WAN. As in, I want to have a couple of VMs (VBox) on one physical host machine, that exist on separate LANs, but that can talk to each other. Do I make the VMs, set them ...
2
votes
1answer
3k views

Apache 2.4 don't follow all symlinks

I'm configuring my local Apache webserver after a fresh Kubuntu 14.04 install. Apache version is 2.4.7. I usually work with files located in a separated partition (/dev/sdb6 here), and create ...
2
votes
1answer
7k views

Changing kernel bootsplash image?

I want to display a custom boot splash image on my Beaglebone Black (running Ångström). I know of three places where images can be dumped to the framebuffer: Bootloader (uboot) - needs display ...
2
votes
1answer
227 views

sed: Removing \r\r before \n in a very large file

I have a corrupted disk image file (about 27 GB) in which before all \n characters \r\r was inserted. I want to remove these \r\r before all \n. I tried with awk: awk '{ sub("\r\r$", ""); print }' ...
2
votes
1answer
1k views

When I reboot going from Linux to Windows, the USB keyboard and mouse don't work

When I'm on Linux and I reboot the machine and choose to boot on Windows 7, the keyboard and mouse are turned off, like they aren't receiving power. After another reboot they work fine (unplugging and ...
2
votes
3answers
3k views

Why does this script fail when run from cron, but works when run manually?

I have a relatively simple bash script that works great when invoked directly, but fails when run by cron. Why does this fail and how can I make it work via cron? #!/bin/bash apt-get update -y ...
2
votes
1answer
94 views

USB storage recognized on linux, not windows, mkfs in which type?

I have a key that have been infected by the famous virus which transform files to shortcut. I ve done USBFix to clean it, and put it on a raspberry pi, I saw files in normal and .lnk form, and erased ...
2
votes
1answer
1k views

How to transparently tunnel a port from IPv4 to a remote IPv6 device?

At home, I am connected with an IPv6 address and additionally, my provider provides a NAT-like setup through which I receive a public IPv4 address that I share with other customers (the reason being ...
2
votes
1answer
81 views

Why does computer hangs everyday?

My Linux computer hangs every day (sometimes twice a day). It also hangs my home network until the Ethernet cable is unplugged or I reset it. I can`t find any severe exceptions in log. This computer ...
2
votes
2answers
337 views

Install postgres without apt-get

I have access to a machine on a scientific hpc, and I'm setting up an environemnt to create a web application, made up basically of TOMCAT and postgresql. I cannot use another web server. The OS is ...
2
votes
5answers
924 views

How to access linux disk from windows 7? [duplicate]

I have a computer with Linux installed. And I want to be able to read and write data to its disk from Windows 7. Is there any software or does Windows 7 have any functionality for it built-in? I've ...
2
votes
3answers
2k views

Bash script, string not replaced correctly with escaped $ and & characters

I have created a shell script which takes a string as input. If the string contains $ or &, then I need to replace those characters with \$ and \&. I could done that with sed command. After ...
2
votes
3answers
278 views

sitecopy insists on a ~/.netrc with 600 permissions, but my ~/ is on an NTFS partition

I am desperately trying to get sitecopy to run from my computer, but the stupid thing seems to insist on reading my ~/.netrc file, even if the manpage seems to say otherwise ("If it exists, the ...