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

2
votes
1answer
29 views

Check for Free Space on Linux, email if critical

I just finished dealing with a server which had run out of space, and would like to setup monitoring on it now, to prevent it going critical in the future. What I would like is to get an email sent ...
1
vote
1answer
11 views

Linux setcap and changes made to the executable

A program that I am developing uses raw sockets. For security reasons to run a program that uses raw sockets, the program has to be run under a user with effective ID 0 (root?) or have the capability: ...
0
votes
2answers
62 views

How do I set Input interface is output interface

I have eth0 with IP X.X.X.X and eth0:0 with IP Y.Y.Y.Y. My goal is if I connect to eth0 then output ip shoud be X.X.X.X and if I connect to eth0:0 the output ip should be Y.Y.Y.Y. Example: VPN ...
0
votes
1answer
22 views

Inconsistent applying permissions

Changing permissions in a script after installing certain apps (Linux and OSX), I found the following very confusing. Creating an ".app" in OSX requires placing a directory with a number of files ...
0
votes
1answer
19 views

Up arrow in gnome terminal to review command line history ignores commands with leading whitespace. Is there a workaround?

When writing python code (using gvim) I often keep complex command line commands for test cases saved in my docstrings. A common time-wasting error I make is copying the entire line from the python ...
0
votes
1answer
13 views

Mouse focus stuck (Linux)

Sorry for crappy post layout, posting from my phone. Problem: mouse focus gets stuck. Not sure how to explain it, I can sometimes get it to switch to a window, but once there it's locked until that ...
1
vote
0answers
11 views

Linux wireless scan workflows [closed]

I'm looking for a wireless printer that can scan wirelessly. I know this exact question has been answered 1000 times, but I'm looking for info on the workflow involved and for info on more efficient ...
0
votes
1answer
24 views

Unable to communicate with peripheral over Serial USB from Linux

I am struggling with establishing comunications with a peripheral over USB serial on my Linux here (fedora 20/64bit), and I am probably missing some step: I connect the device, a /dev/ttyUSBx port ...
0
votes
0answers
30 views

Configuring a Git server on Arch Linux

I’m looking to turn my website that I’m building from scratch (that is, the root of the site) into a Git server. Basically I’d like to be able to have a local copy that I can edit through Eclipse and ...
0
votes
0answers
22 views

Unable to open files with OpenVPN and samba (writing works)

I have setup a samba server and it works correctly from the local network. When accessing via OpenVPN both from Windows and GNU/Linux writing works but can't open any files. It just timeouts when ...
0
votes
0answers
14 views

raid5 after changing disk, data disappeared in lost+found or?

I lost a drive so I stopped my array, changed the drive, reassembled the array. So far so good except that when I tried to mount the array I had an error about md0 file system (sorry I rebooted so ...
0
votes
0answers
7 views

socat and serial ports (Linux)

I'm having some issues with using socat against a serial port (on the other end is an FTDI chip) the command I'm using is socat -x ...
2
votes
1answer
39 views

Renaming multiple directories

If have a directory structure that stores records based on their date of recording. Originally there was one directory that contained a subdirectory for every single day like this basedir ...
0
votes
1answer
13 views

RPM created using checkinstall giving dependency error

Compiled openssl-1.0.1.i using commands: export CFLAGS="-fPIC" ./config shared --openssldir=/usr/share/ssl make depend make all make install here it is not asking for any dependencies I am able to ...
0
votes
1answer
36 views

Grub2: “Invalid partition table!”

I have recently had to change bootloaded from my old syslinux to GRUB2. Since I have installed GRUB2 bootloader I am getting the following message on every boot: Invalid partition table! The ...
0
votes
0answers
18 views

Sound starts crackle through hdmi when cpu usage goes high

I built new HTPC with Athlon 5150 (AM1 platform) + Asrock AM1H-ITX. I have installed Linux Mint 17 + XBMC. This machine is connected to tv throught HDMI. It works like a charm except one: during ...
0
votes
1answer
6 views

Linux updating, downloading [Awaiting headers]

I've installed fresh CentOS and I've been having problems updating, downloading as it always either gave me an error "Trying other mirror" + "Read error (connection timed out) in headers". Then I ...
0
votes
0answers
16 views

Safe to manually spin down hard drive with hdparm?

I have a laptop with a ssd for primary OS drive, and a large Spinning disk for storage. I currently have an alias I use for manually spinning down the drive when I'm not using it (after umount of ...
0
votes
1answer
16 views

How to extract single file from large tar/tar.gz file

What I want to do is to extract a single file from a huge tar file, instead of extracting the whole tar. I am using RHEL 6.4 I Googled it and tried the following: tar --extract --file=some.tar ...
0
votes
1answer
16 views

iptables INPUT command

On a ubuntu1, this is iptables command: sudo iptables -A INPUT -p icmp -j DROP so on the other computer (xp1) I can not ping the ubuntu1.So this is OK. But On ubutnu I [[ can ]] ping xp1. and I ...
-4
votes
1answer
21 views

How Can I clear server log file to reduce memory?

I want to clear the server logs in Linux without having to restart server, so that I dont get Out of Memory issue. I heard that > filename would do that but that contents are stored to some other ...
0
votes
1answer
19 views

Can't connect to WIFI, when cloning my MAC address (Linux Mint 17)

I'm not able to connect to a WIFI using a cloned MAC address. I tried with 2 different access points, with the internal WIFI and with an external WIFI. After cloning to a valid MAC address (took from ...
0
votes
0answers
19 views

Centos6.5 can't use serial console but can see serial output messages during boot up

I configure CentOS 6.5 x86_64 version to support serial console. I edit configuration files as many people suggest. In GRUB, Add these two lines: serial --unit=0 --speed=115200 terminal --timeout=5 ...
4
votes
2answers
43 views

How to tell which services run at startup on Raspberry Pi? (raspbian)

I have some services that run on boot but I've actually forgotten how I set them up! If I want to change their activity how might I do that? For instance, maybe I want to disable a service from ...
0
votes
1answer
16 views

mdadm --examine displays something different than --detail

Who should I trust to fill my /etc/mdadm/mdadm.conf ? mdadm --examine --scan returns /dev/md/0 while obviously it's /dev/md0 that is currently rebuilding What should I put in my /etc/mdadm/mdadm.conf ...
1
vote
0answers
35 views

Mounting /dev/shm in a Gentoo chroot on Xubuntu 14.04

I'm trying to install Gentoo, and instead of using one of the bootable minimal install CDs provided by Gentoo, I'm using a chroot in Ubuntu. I'm mainly following the instructions outlined here, ...
0
votes
0answers
19 views

Howto write in chroot on Secure FTP(sftp)

As I understood, directory for chroot must have permission 755, and must be owned by root. But 755 mean that only owner(root) have acces for write to this folder. But what if I have user web, with ...
0
votes
2answers
42 views

Linux Mint and sound problems

I'm running into a no audio problem on the latest version of Linux Mint (Rebecca). I've uploaded the data to here for anyone to peruse, and hopefully find a solution to this problem: ...
0
votes
2answers
29 views

Install windows7 theme ubuntu - fails

I am trying to install a windows 7 theme on my ubuntu OS. I follow some steps steps from another site ...
0
votes
0answers
9 views

Troubles backing up some files from Linux system to FreeNAS using rsync

I'm using rsync to backup whole system over LAN to freeNAS server with this command: rsync -aAX --delete /* /mnt/backup ...
1
vote
1answer
17 views

Forcing dropbox to omit particular type of file extensions?

I use Dropbox to save my numerical work on the fly - it's very convenient since I don't have to think about saving code every time when I make a change - but there is one flaw. You see, my .cpp files, ...
-1
votes
0answers
5 views

How to root my Micromax A44 without bricking my phone? [migrated]

I am new to these root permission stuff. I want my phone to be rooted , so that i can extend my internal memory and add memory from my external card. I would like to know how to root my phone and what ...
1
vote
1answer
16 views

Get user logged into a given tty

I'm writing a bash script that disconnects idle sessions but writes to the tty a few seconds before terminating it to make sure it really is not being used. The format for write is write user [tty]. ...
0
votes
1answer
21 views

How to protect authorized_keys file?

I have setup key-based-only SSH login (and denied root login) to my Ubuntu server ls -l /home/ernest/.ssh shows this: -rw------- 1 ernest ernest 405 Dec 14 09:17 authorized_keys Is this means that ...
0
votes
1answer
31 views

What does `-n` option in sed do?

This is the man page entry for -n: -n suppress automatic printing of pattern space I notice that when not using -n for certain operations, each line is printed to stdout (and the requested ...
3
votes
2answers
24 views

Listing content of directory with absolute path is not equal to listing with relative path?

I launched Ubuntu 14.01 instance in AWS by using its API (with Python and Boto). I changed properties of the root device - 30GB instead of the default 8gb and used magnetic disk standard instead of ...
0
votes
0answers
31 views

Kali Linux rtl8187L injection and drivers

I use the kali linux version 1.0.9 remains. RTL8187L chipset with wireless adapter. this command: airodump-ng mon0 -c 11 I get the following error: fixed channel -1 mon0 aireplay-ng -0 0 -a ...
0
votes
1answer
10 views

Cannot remove package gramps

I used dpkg and apt-get to install, purge, remove gramps package different versions. It all went to situation when I cannot remove it fully and install clean. $ sudo apt-get remove gramps Reading ...
0
votes
1answer
30 views

DVD ROM keeps spining at random times

My dvd rom tries to read disk at random moments while I don't actually use it. I even disabled it in BIOS but no help. How to disable dvd rom permanently? What causes this behavior? I can't ...
0
votes
1answer
42 views

SSH to remote machine without domain name?

So I've been trying to SSH into my PC running Fedora. The problem is that I've never used SSH before, and have no clue about how to SSH into my machine. My machine's host name is redhat, and the ...
0
votes
0answers
5 views

Using gnu dd_rescue to rescue data from a failed hard disk

I'm using gnu ddrescue 1.18.1 from the SystemRescueCD Linux distribution. I started the recovery process yesterday using this tutorial: ...
1
vote
1answer
23 views

Is it possible to run Ubuntu in a virtual machine and be able to boot to it?

Say I were to install Ubuntu Linux onto a virtual machine (or the other way around, installing it to dual boot), and keep it's files on it's own partition. Is there a way the computer could also boot ...
0
votes
0answers
13 views

OpenGrok Setup for SVN Repository in Linux Server and localhost URL should be accessible through Windows Browser

I have configured OpenGrok in Windows environment with Tomcat Server and was able to index the SVN Checked-out Project. The Search really worked fine :-) Reference: ...
2
votes
2answers
199 views

Why does the 'vi' command open 'vim' editor?

I am using Ubuntu 12.04. Not that I am complaining as I like my vim and prefer its many features. However, I’m curious as to why it does it. It is not aliased in .bashrc or .bash_profile. I am not ...
-1
votes
0answers
38 views

John the Ripper: Crack ZipCrypto password

I made a password protected zip file with 7zip, using ZipCrypto algorithm. Set the password to 1234. I am using john-1.7.9-jumbo-7. I followed this manual: ...
1
vote
1answer
44 views

Functional MD complex RAID10 suddenly marks all drives as spares

This morning during a long ~1.5TB read operation sending data to an NFS client, my md complex-RAID10 array spontaneously stopped, then dropped four members for being "non-fresh" and failed to start ...
0
votes
0answers
43 views

Wine says “fixme:heap:HeapSetInformation” when trying to run command

Fedora 21 x64 (LXDE spin) wine-1.7.30 (Compholio) Under Linux Wine I'm trying to execute this command: $ wine "/home/user/.foobar2000/drive_c/Program Files/foobar2000/foobar2000.exe" ...
1
vote
1answer
39 views

Linux recursive rename files only

I am trying to recursively rename all files within a directory and subdirectories to lower-case but leaving the directory names unchanged. All examples I have found rename both files and directories ...
0
votes
1answer
14 views

Kali Linux and windows 8 issue [duplicate]

ok so I download Kali Linux to a usb stick plug it into my computer and I had to change my EFI to legacy I did everything went smoothly until I wanted to get back to windows 8 I restart my computer go ...
2
votes
1answer
26 views

How to get back hosts file after accidental deletion

I made a mistake and accidentally deleted hosts file from my system and cannot figure out how to get back my hosts (/etc/) file, when I do sudo service apache2 restart It's showing: sudo: ...