A family of Unix-like 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

How to use Control as modifier with xmodmap?

So I'm trying to create a combination of keys to generate ISO keys for the Portuguese layout, the key in question is the < >, pressing it will normally generate the < character, < > + Shift ...
3
votes
3answers
2k views

Will formatting HD and installing my own OS invalidate the warranty on laptops?

I want to purchase a brand new Toshiba or Lenovo laptop with the aim of formatting the hard drive, installing Ubuntu Linux OS and using the Windows OS as a Virtualbox virtual machine. Would doing ...
3
votes
1answer
16k views

How to forward packets between two interfaces?

My laptop (use's Ubuntu 13.10) is connected to internet using a wired connection at eth0 with ip 192.168.42.13 and it also acts as a wifi hotspot at wlan0 with the ip 192.168.1.1 (i used airbase-ng to ...
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 mode:...
3
votes
1answer
186 views

Trying to reset local ip address with a script that edits /etc/network/interfaces

I'm trying to write a script that sets the local IP address. This is what I have so far: #!/bin/sh echo -n \ "# interfaces(5) file used by ifup(8) and ifdown(8)\n"\ "auto lo\n"\ "iface lo inet ...
3
votes
1answer
2k views

NDP entries on linux

Just as we have /proc/net/arp holding ARP entries in Linux, what is the file that holds the Neighbor Discovery Protocol (NDP) entries? I searched for it on the Linux box running IPv6, but to no avail. ...
3
votes
2answers
3k 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
3answers
14k views

Can't mount hard drive. Ubuntu 12.04

I am trying to recover some pictures on my 320 GB Hard Disk, so I put in a Live Ubuntu CD and am in that right now. In the devices list, it shows my USB drive, but not my 320 GB Hard Disk. I can see ...
3
votes
4answers
9k views

CHKDSK in Linux…?

My computer has taken a dive and it will not boot up. I have reasons to believe that it is the hard drive. I would like to run CHKDSK but I cannot get the computer to boot up into Windows. My ...
3
votes
1answer
1k views

Windows 10 / Linux Dual Boot - Boot-loader Problems

I am currently running a dual boot of Windows 10 Home 64-bit and Xubuntu 15.04 64-bit on my machine. I have Windows 10 on an SSD, Xubuntu on another SSD and an HDD for storage formatted as NTFS (this ...
3
votes
2answers
2k views

Is Aircrack-ng illegal? [closed]

I just found out about this Linux-based network toolset called Aircrack-ng. It’s pretty interesting, and I’m learning how to use it. But it just occurred to me that, like a lot of Linux programs, it’s ...
3
votes
2answers
165 views

Why I can access the dir // in Linux?

I found this dir in my ubuntu server momo@myubuntuserver:/$ cd / momo@myubuntuserver:/$ pwd / momo@myubuntuserver:/$ cd // momo@myubuntuserver://$ pwd // momo@myubuntuserver://$ cd /// momo@...
3
votes
2answers
751 views

Find files > 0 bytes in length that consist only of NUL in Debian/Ubuntu

After fsck'ing an ext4 drive that had been running in a QNAP nas without an fsck for about four years, I now have a number of files that seem but be the correct size (typically 8-12mib), but each byte ...
3
votes
4answers
4k views

How to close all background processes in unix?

I have something like: cd project && python manage.py runserver & cd utilities && ./coffee_auto_compiler.py And I want both of them to close on Ctrl-C (or some other command). ...
3
votes
2answers
363 views

In bash, how I define a “command scope” variable?

I'm reading this book on the bash architecture and one of the bash maintainers says: There are different variable scopes for shell function calls and temporary scopes for variables set by ...
3
votes
1answer
3k views

Mail migration: pumping mails into IMAP account

I'm having troubles migrating the email system of our company from an old provider to a new one, call this one FOO. I already created, via control panel, the email addresses and the mailboxes on FOO ...
3
votes
1answer
834 views

Linux gnu screen - run commands immediately when screen starts?

In my .screenrc file, I have this line to open one screen window: screen -t "normal" And this line to open another window and run top: screen -t "top" top Those work just fine so I wanted to ...
3
votes
1answer
322 views

Where is terminal scroll back information stored (how does tmpfs work)?

While trying to test something unconnected, I launched an infinite loop on my terminator terminal emulator which printed a lot of data to STDOUT. After running it for a few minutes, I noticed that my /...
3
votes
2answers
2k views

How do I configure a linux machine to ignore wifi when connected via LAN?

My laptop is set to automatically connect to my campus wifi network, which is desirable under most circumstances. However, in my office, the signal is quite poor, so I rely on a wired connection. ...
3
votes
1answer
983 views

LXD containers and networking with static IP

I have done some Docker testing over the years, but for a specific kind of testing, I need a little more then just application containers. So I turned to LXC/LXD containers, which is great. After ...
3
votes
4answers
9k views

Gigabyte GA-970A-UD3 mobo won't boot from USB flash drive

I am trying to boot BAMT, a Linux distribution based on Debian via USB on a brand new Gigabyte GA-970A-UD3 motherboard. I tried various flash drive and various OS. I never had this problem with ASUS ...
3
votes
2answers
83 views

Are packages within a Linux distro interchangable?

Are the packages interchangeable "within" Linux branches? Between branches? Where is the dividing line? For example, within the Fedora branch there are various Desktop Environments, each with their ...
3
votes
1answer
1k views

Why are there weird commas in my /etc/passwd file?

There are weird commas after the real-name parameter of some lines in my /etc/passwd file. kye:x:1000:100:Kye,,,:/home/kye:/bin/bash What gives? Why are they there? Can I remove them?
3
votes
3answers
6k views

du vs df output

Why are there differences between the outputs of the df and du commands? Why they are not accurate in output? # df -h Filesystem Size Used Avail Use% Mounted on /dev/sda3 1012M 394M 567M 42% / /dev/...
3
votes
1answer
1k views

Run ssh/scp without .ssh directory or with alternate dir?

I'm inside chroot, and everytime I scp it keeps telling me: bash-4.2$ scp user@example.com:somefile . Could not create directory '/.ssh'. Host key verification failed. Obviously, I have no means ...
3
votes
2answers
37k views

Kali Linux not detecting wireless network in dual boot

Am new to Linux. Just downloaded and installed Kali Linux 1.0.7 yesterday. I have a wireless connection in the house. But Kali doesn't seem to be detecting the network. I go to the network icon and ...
3
votes
5answers
24k views

Linux Mint fails to start X automatically after update, but X still works

After some update and reboot, X fails to start. I don't get any errors or warnings from the console, after the last service has started, nothing happens. I can then switch to any terminal I'd like, ...
3
votes
1answer
679 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
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
64 views

Why do I need ./ for commands to run on Mountain Lion? [duplicate]

Possible Duplicate: What does “/” , “./”, “../” represent while giving path? Why do I need ./ for commands to run on Mountain Lion? For example, when using mysql I have to type in the ...
3
votes
1answer
588 views

Keyboard-Shortcut to move windows around on multiscreen setup [duplicate]

Possible Duplicate: How to automagically move windows between monitors with one keystroke? I am looking for a way to move windows around on a multi-screen (usually dual screen) setup. So with ...
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
1answer
964 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
3answers
447 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
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
7k views

Laptop gets hot when using Linux Mint

My laptop gets very hot when using Linux Mint. It stays ok when I'm just browsing or using terminal, but when I'm watching a stream the laptop gets very hot. I know the fan is working correctly. When ...
3
votes
4answers
1k views

Redirecting shell command outputs to another konsole shell

I am writing a shell script and I would like to write commands in the script but redirect the output to other konsole sessions. (using kde)
3
votes
1answer
2k views

apt-offline on Windows

Following this tutorial, I don't know how to reproduce step 2 on a windows machine: apt-offline get C:\apt-offline.sig --threads 5 How do I install apt-offline on a Windows machine so I can run ...
3
votes
3answers
4k 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. ...
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
3answers
716 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
635 views

Change UUID under Linux?

I need to create and assign a new UUID to an ordinary disk partition under Linux. What tools are available and how do I use them?
2
votes
2answers
948 views

How to unrar the STDIN?

What I have tried: cat archive.rar | unrar x - cat archive.rar | unrar x /dev/stdin cat archive.rar | 7z x - cat archive.rar | 7z x -si cat archive.rar | 7z l -si The unrar doesn't recognise the - ...
2
votes
2answers
1k views

How long will badblocks -vws run?

I'm running badblocks -vws /dev/sda on a new 80GB laptop drive to make sure the disk is good. So far it's completed 2 passes and is working on it's third. How many passes does it normally make?
2
votes
2answers
1k views

unexpected behaviour of Ctrl-a x and Ctrl-a X in screen?! regions, locking

According to the screen manual (version 4.0.2.) C-a x C-a C-x (lockscreen) Lock this terminal. C-a X (remove) Kill the current region. But what actually happens when I use it (...
2
votes
1answer
355 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
347 views

Where to put default setting from “/sys” folder in Fedora 18?

I have an SSD main disk and I want to use noop IO scheduler with it, like this: echo noop > /sys/block/sda/queue/scheduler But this setting gets lost after reboot. What is a right place to save ...
2
votes
1answer
57 views

OpenSSH server refuses to accept key authentication unless logged into server locally

My server is running Ubuntu-Server and ahs OpenSSH-Server installed on it. I set up the /etc/ssh/sshd_config file to accept and require rsa keys, it looks for keys in the 'AuthorizedKeys ~/.ssh/...
2
votes
2answers
14k views

Which is the most stable version of Ubuntu? [closed]

I've tried installing Ubuntu 11.10, uninstalling and reinstalling 11.04 etc. After day 1, though, some bug or the other shows up and then I spend the rest of my time looking up fixes on the Internet. ...