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

168
votes
20answers
88k views

How to execute a command whenever a file changes?

I want a quick and simple way to execute a command whenever a file changes. I want something very simple, something I will leave running on a terminal and close it whenever I'm finished working with ...
0
votes
1answer
12 views

What is the difference between a Display Manager and Desktop Environment?

I know that a Window Manager just manages windows, and can basically be used with any DE. My question is what is the difference between a display manager and a desktop environment? I ask this because ...
1
vote
0answers
9 views

ZFS not writing continuously to array

Preface: I'm by no means an expert Linux user, but I've played with Linux enough to be dangerous. I'm building a personal server, basically just to use as storage for video and photos. Current specs ...
0
votes
4answers
4k views

Dual booting windows 8 and Kali Linux 1.0.8

I'm trying to install kali linux along with windows 8 The latest Kali version (1.0.8) supports booting alongside windows 8 I installed Kali Linux from a LiveCD, rebooted and it went straight to ...
1
vote
1answer
22 views

SQL error: [unixODBC][Driver Manager]Data source name not found, and no default driver specified

I am running a PHP script on a RedHat server using Teradatas ODBC drivers. <?php $conn = odbc_connect("Teradata", "username", "password"); $result = odbc_exec($conn, 'SELECT count(*) FROM ...
0
votes
0answers
2 views

How to find configuration that wil emulate spesific network conditions with netem / tc?

We had our otherwise well tested application fail once it was deployed on a device connected via a poor wan connection. To be able to debug this we want to reproduce the bad network conditions in a ...
1
vote
1answer
2k views

How do I show the Empathy icon in the menu bar's notification area?

I removed the default mail notification drop down since I only use an IM client, and don't want to have to go through an extra menu to get to it. After removing it, I tried the Empathy preferences and ...
1
vote
1answer
17 views

Grep matching lines but return matching key IDs in GnuPG output

Having this input: rsa2048/C7927B82 2015-08-30 rsa2048/FB2D99F9 2015-08-30 I want grep to only return the key ID, for example: C7927B92. Using the pattern from Grep characters before and after ...
0
votes
1answer
1k views

How to spoof the MAC on a wifi, Linux Mint 17, with NM?

I can't find a reliable way to spoof my mac. If I use the "clone MAC address" on network manager (I use Linux Mint 17, Cinnamon), I can't connect to my wifi. I tried everything, unless I remove the ...
15
votes
8answers
25k views

Make ls sort by file type (then name)

By default the ls command sorts just by filename, but I want directories to appear before other file types. I might even want files to be sorted by extension, like the way Windows explorer sorts by ...
12
votes
5answers
4k views

Bad results converting PDF to EPS on Linux

I'm having some trouble converting PDFs (created by Adobe Illustrator on a Mac) to EPS. I have tried several things but I am wondering if there is a better option. The following list is ordered by ...
2
votes
1answer
481 views

Raspberry Pi VPN with 3g dongle for internet access

I'm trying to set up a VPN connection on my RPi, but always times out. I have a DDNS setup and the public IP address is updated using ddclient. I have a network machine connected to eth0 and a 3g ...
0
votes
1answer
3k views

ext4 vs btrfs performance on SSD array

I am observing something that I cannot explain. I am trying to come up with a good filesystem configuration using HP P420i controller and SSDs. Out of curiosity I have tried BTRFS (still unstable so I ...
1
vote
2answers
300 views

fedora 22 synaptics touchpad not working

I just received a new Dell Vostro notebook. The touchpad works fine when I boot into setup, or a Windows install DVD, but with Fedora 22 workstation (live and installed), the mouse pointer appears but ...
1
vote
2answers
4k views

Installing Dropbox on headless Ubuntu 14.04 x64: permissions error

So I'm trying to install Dropbox (as root) following the seemingly easy instructions on dropbox.com: cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf - ...
2
votes
1answer
730 views

environment using su - vs “ssh user@machine” as a user on lucid

I'm trying to debug a shell environment issue on a machine running lucid. Both root & user have /bin/bash as their shell in /etc/passwd When I use "sudo su - user", my PATH includes the following ...
2
votes
3answers
5k views

Cant get squid proxy to work

i need squid proxy on my centos server. But i just can't get it to work. I did yum install squid. Here is my squid.conf file (i removed all comments): acl all src 0.0.0.0/0.0.0.0 acl manager proto ...
0
votes
1answer
61 views
+100

OpenSSH 5.3 - Change encryption algorithm for private key file

Using ssh-keygen, I need to generate a SSH private key file where the encryption algorithm used when using a passphrase is AES-128 with CBC mode. I know this is the default for OpenSSH >= 5.4 as per ...
-1
votes
0answers
22 views

remove windows 8.1 and replace with centos 7

An Acer Aspire T desktop computer came pre-installed with Windows 8.1. I would like to completely erase windows 8.1 forever from the machine, and replace it with CentOS 7. How can I accomplish this? ...
1
vote
0answers
15 views

Force media to be mounted to /dev/sr1 instead of /dev/sr0

I would like to be able to have the first device that I mount to a linux host be /dev/sr1 instead of /dev/sr0. I am trying to script installing IBM’s SVC. There installer is hardcoded to expect the ...
1
vote
1answer
31 views

Establishing an SSH connection between machines behind firewalls

I have two machines, A and C, each of which is behind a firewall so they can’t accept incoming SSH requests on port 22. I have a third machine, B, outside both firewalls and I wanted to SSH from A to ...
0
votes
1answer
6 views

How can I get Git to ignore/drop files I have deleted or that are only file-system artifacts (ending in ~)?

I would like my git repository to show only files that currently exist in the directory. In particular, I just pushed my git project to a remote repository on github.com, and now it's showing all ...
6
votes
4answers
355 views

Scaling and rotation of image without depending on EXIF data?

Is there such a thing as a simple image editor for Linux which allowed for scaling and rotating the image without using EXIF data for the scaling and rotation? So far have I tried EOG, Shotwell, and ...
0
votes
0answers
6 views

how to xset dpms force off only one monitor?

I have multi headed setup using KDE display manager with proprietary nvidia drivers (no xinerama, single X server). Usually I keep only some server monitoring stuff on second monitor, eventually web ...
2
votes
1answer
24 views

Linux: Presenting a larger-than-real file system?

Does anybody know if it's possible to have a small Linux filesystem with apparently limitless (or very big) free space? We have a Samba server with lots of filesystems, all available from a small ...
5
votes
3answers
4k views

Can Bitlocker be used in a dual boot system with Windows on one drive, Linux on another?

My workplace allows for remote logins to the company network, with certain prerequisites for securing a computer before making the connection, one of which is that Windows must be used to make the ...
16
votes
3answers
19k views

How to enter login information for a website from the linux command line

My internet connection is provided by the university. It is protected to a username/password combination. This means when I start up my computer, I have to start a web browser and open an arbitrary ...
0
votes
2answers
19 views

Opening port in iptables doesn't work

I add the following line before COMMIT in /etc/sysconfig/iptables: -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT Then I use service iptables restart to restart iptables, but the ...
0
votes
1answer
23 views

Shred File without overwriting blocks

AFAIK, a file on a file system has two components. The pointer that stores the directory path of the file. Also stores the list of sectors/blocks on the disk that the file is composed of. The real ...
2
votes
2answers
2k views

Linux 'at' command history

I got an email from root with the subject Output from your job # I guess this came from my at queue because I recognized the command. But the thing is I submitted this at command 3 weeks ago and ...
0
votes
1answer
8 views

tuleap and agiledashboard plugin

after I've installed and enabled agiledashboard plugin, I'm not able to access web home of Tuleap anymore. I found the following kind of error in httpd log: [Mon Aug 31 10:48:10 2015] [error] ...
0
votes
2answers
102 views

Can an LTSP server use a GPU for client rendering?

I am setting up an LTSP (Linux Terminal Server Project) server and some Raspberry Pi's as thin clients. Could the server make use of a GPU to increase the performance of rendering the thin clients' ...
0
votes
0answers
16 views

Unable to run yum command

I'm unable to run yum command on my Linux machine. I'm getting the following errors: dispsim:~$ yum Failed to set locale, defaulting to C Loading "rhnplugin" plugin Loading "security" plugin error: ...
0
votes
1answer
99 views

How to delete the 2nd bootloader created by EasyBCD and leave GRUB?

I have two bootloaders now; I have the GRUB and the EasyBCD that I've created before the Linux was installed properly. After reinstalling Ubuntu for the 2nd time, the GRUB came right, but now that I ...
0
votes
1answer
3k views

Networking lost after update from Debian Wheezy to Jessie

I am currently setting a Virtual Machine for development purposes. I did a big part of this configuration under Wheezy, but I need some debs that were available only on Jessie. So, I've updated the ...
1
vote
0answers
10 views

deleted linux mint from windows 8 dual boot reinstalled linux can't make it work

I have a lenovo g710 laptop with windows 8.1 preinstalled.I made a dual boot with linux mint and everything was ok.Then i did something in linux terminal and when i restarted the pc linux wouldn't ...
0
votes
1answer
8 views

LAMP Setup on CentOS at DigitalOcean

I'm following this tutorial. I got some issues start from step four: Configure Nginx to Process PHP Pages. After I typed this $ sudo vi /etc/nginx/conf.d/default.conf. I can't find server { listen ...
0
votes
2answers
11 views

Kali => ssh_exchange_identification: Connection closed by remote host

I'm using Kali Linux to connect to a server remotely using SSH, it used to work out, but suddenly I got the message: ssh_exchange_identification: Connection closed by remote host Even though I've ...
3
votes
1answer
3k views

Linux command-line: Quick way to disable internet (keeping LAN)?

Split question: this other one here is for Windows. Linux: Fastest way to disable internet (keeping LAN) from command line? I think the easiest way to deactivate internet (not LAN) in Linux is ...
0
votes
1answer
2k views

Can I output results of a MySQL query to a Excel file via Putty?

I'm on a local windows machine. The MySQL DB is on a CentOS machine elsewhere on the same local network. I want to output the results of the query that I'm typing directly into Putty into an Excel (or ...
0
votes
1answer
15 views

Linux kernel working only on kernel mode

Porting the Linux kernel to an architecture that has no execution modes (is always in kernel mode) and has no MMUs seems like a very unprotected system. Would it be possible to make Linux run in that ...
0
votes
1answer
10 views

How to find all keyboard shortcuts to a process/program in Linux?

Is there a way to find all keyboard shortcuts for a given process/program in Linux(SuSe)? I have googled tons of stuff,but don't get anything useful. Could someone give me a tip?
1
vote
1answer
18 views

sed option to preserve file times during a find/replace?

I'm trying to modify some Autotool files because a project is not honoring my CFLAGS, CXXFLAGS and LDFLAGS. I located some areas where I could likely make the change with a grep for libtool: link. ...
0
votes
0answers
6 views

proc/meminfo :MemTotal vs MemFree

There is an excellent summary of the various stats returned by proc/meminfo in this SU thread. However,it does not explain the MemAvailable statistic which I gather is relatively new. I am assuming ...
0
votes
1answer
9 views

How to boot into single-user mode (runlevel 1) without entering root password?

In Fedora 22 and Ubuntu 15.04, whenever I boot into "single-user"/"recovery" mode, I'm asked for the root password. This is a new behavior; I remember that it used to drop me straight into the root ...
0
votes
1answer
12 views

Debian can't access partition with user, only root can

I have a permission problem - my users can't access to partition. this partition is mounted with debian installer : # /data was on /dev/sdd2 during installation ...
0
votes
1answer
20 views

Difference between apache2 and apache2-bin?

My digitalocean server is running Ubuntu 14.04, and I'm trying to install Apache. When I just type in "apache2" to PuTTy, it says: The program 'apache2' is currently not installed. You can install ...
0
votes
0answers
13 views

Is it possible to copy files that skip the file system?

I got many files(for a 4TB HD, 50M+ file count) to upload to S3. To make it multi-worker upload, I have adopted tmpfs to enable concurrent upload, and there may be 1 or 2 copy-to-tmpfs worker that ...
0
votes
1answer
4k views

ubuntu 13,10 “Failed to download repository information”

I have ubuntu 13.10- 64 bit version on my machine.recently i tried to install postgres for ROR development but i couldn't complete the postgres installation and found that my update manager always ...
1
vote
1answer
2k views

Change resolution of Raspberry Pi via console?

I'm the proud new owner of a Raspberry Pi and have it up and running now with VPN/SSH/X11VNC. This morning I had it booted up on a TV on my table where I was working on it. Went to work and have been ...