4
votes
2answers
663 views

Wildcard automounts with systemd

I’m running jessie/sid with systemd 208 and try to convert the following wildcard autofs configuration to either an /etc/fstab or .mount/.automount definition. $ cat /etc/auto.master /home/* -fstype=...
12
votes
4answers
744 views

Why does *BSD uses driver specific names for network interfaces? Does it imply limitations?

I notice that depending on the brand of the network card, interface names differ (driver dependent I suppose). Why does *BSD uses driver specific names for network interfaces? Does it mean there is ...
1
vote
5answers
340 views

How can I download all usernames?

I have access to a university's Linux server where all students have accounts. I can retrieve their full name by typing the finger username, and their departments by typing id username. All the ...
1
vote
2answers
666 views

Find when the file was closed in Unix

I know ls -l will give the modified time of file, but it is giving the time when the file was opened, not closed (using Ctrl+D or something) Please tell me how to find the time of file closed [BASH]$...
2
votes
1answer
4k views

How to force `dpkg` to install dependencies [closed]

I would like to install .deb file via dpkg in Arch Linux. This .deb file needs many dependencies. I don't want to install dependencies one by one manually. How do I force dpkg to install all ...
0
votes
3answers
68 views

Using sed to perform substitutions in a file

I was trying to replace dates in a huge file using sed. I tried : sed -ie 's/2014-[0-9]{2}-[0-9]{2}/2014-05-07/g' test However, nothing happened at all, my file test is not modified. Do you know ...
0
votes
1answer
886 views

can't uninstall netbeans in ubuntu

I am using netbeans8.0 new version, I want to uninstall lower version netbeans7.4 I tried using the following command in my terminal: root@selvaksa-OEM:/usr/local/netbeans-7.4# sh uninstall.sh ...
-1
votes
1answer
147 views

Please explain the Awk script provided below

Can anyone please expain me step by step below AWK script written. I have the below code written in my script to format the flat file data. Just wanted to understand so that i can reuse -- I am not a ...
4
votes
1answer
516 views

Binding Shift-Enter to insert a newline without evaluating the current expression

I try to bind Shift-Enter to insert a newline without evaluating the current expression in the terminal and in repl modes. Reading through the ArchWiki, I tried setting this in my ~/.Xmodmap file and ...
0
votes
0answers
73 views

Auto change splash screen after log on

I know how to change the splash screen, however I would like it to change automatically. Say I have a folder of images and I want each of them appear to be splash screen randomly every time I log on. ...
2
votes
0answers
437 views

Modifier keys cannot be mapped to regular keys on USB keyboard with udev

Using an hwdb file, /etc/udev/hwdb.d/99-keyboard.hwdb, I can remap the left Alt key on my USB keyboard as the Ctrl key: keyboard:usb:v*p* KEYBOARD_KEY_700e2=leftctrl This also works when I try to ...
0
votes
1answer
1k views

git, setting up remote repository without ssh

I want to set up a remote git repository on a openSuse machine, and I have the following question. Do I really need ssh on the machine, to set up the remote git repository? Initially is it possible ...
0
votes
1answer
158 views

Is it possible to `tail -f /dev/vcs`?

I would like to get a continuous stream of output from the virtual terminal. Is that possible? If not, why is tail -f not working here?
2
votes
1answer
1k views

Qemu Backing Files Question

If I'm creating a new.qcow2 qcow2 image based on a backing file (called base.qcow2) and the backing file is located on an nfs share. What happens if someone tries to modify, replace, or delete the ...
1
vote
0answers
204 views

Constant prompt for WPA2 password in Fedora

I asked on the Fedora forums but no one responded so I am asking here. I am on Fedora 20 with Gnome 3. My machine is the Dell XPS 13 which has an Intel 7260 rev 6b wireless card. I connect to my ...
1
vote
1answer
1k views

Mounting USB Drive — Cannot delete files unless have su permissions

Is there a way I can automount this USB drive so that I don't need to have root privileges to delete files? This is what I currently have in my fstab file: /dev/sdb1 /mnt/epson auto defaults,user,...
1
vote
0answers
163 views

Atom - compatible processors for a kernel

Does anyone know any Atom N270-compatible processors (what I mean is not that they run on the same socket, but that they can share a kernel with nothing going wrong). Btw, this also means that they ...
102
votes
14answers
326k views

How do I set my DNS when resolv.conf is being overwritten?

Most of the info I see online says to edit /etc/resolv.conf, but any changes I make there just get overridden. $ cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by ...
2
votes
0answers
42 views

heartbeat stops after reviving primary node

I followed these steps correctly, everything worked well before I have revived heartbeat on node01 "at the last steps of the tutorial" when I hit /etc/init.d/heartbeat start it started correctly but ...
0
votes
1answer
144 views

How can I access files of an SMB share if I have the IP?

Having the IP, under Linux how can I access shared smb files? When I type in for example: smb://192.168.0.50 I get an error message.
16
votes
3answers
11k views

how is page size determined in virtual address space?

Linux uses a virtual memory system where all of the addresses are virtual addresses and not physical addresses. These virtual addresses are converted into physical addresses by the processor. To ...
0
votes
2answers
12k views

Bash script returns “command not found” when outside the source folder

under my directory, /home/lucas/bin I have the following script term_multiscreen: [lucas@lucas-ThinkPad-W520]~$ sudo cat bin/term_multiscreen #!/bin/bash # Initializes ...
0
votes
2answers
336 views

Method to paste specific column when in terminal

I'd like to paste only the third column of data from within the terminal. I originally have something like: 4 SF0086 SF0086 12 SF0087 SF0087 17 TSF141 TSF141 29 TSF070 TSF070 30 TSF028 TSF028 31 ...
2
votes
4answers
7k views

What does “while test $# -gt 0” do?

I'm trying to create a function and believe I found a good working example but I don't understand all the logic behind it. More specifically, on the "while" line, could someone explain what test is ...
3
votes
0answers
355 views

Migrate a qcow2 image between storage pools

I have 2 storage pools. host_images (directory storage pool) remote_images (nfs storage pool) How do I copy qcow images from remote_images to host_images using libvirt APIs? I've tried using the ...
13
votes
1answer
832 views

Command to retrieve the list of characters in a given character class in the current locale

What could be way to retrieve a list of all the characters in a given character class (like blank, alpha, digit...) in the current locale. For instance, LC_ALL=en_GB.UTF-8 that-command blank ...
6
votes
2answers
3k views

tmux exits immediately after starting

I'm trying to start with tmux but am failing to even run it. Immediately after starting it exits, similar to this question. It happens both without a .tmux.conf, and (following some examples) with ...
1
vote
0answers
83 views

Create global enviromental variable after boot

I know about /etc/profile and /etc/environment, but I would like to set a global environmental variable after boot and login. By global, I mean an environment variable that can be accessed by any ...
0
votes
1answer
309 views

Can I use `screen` to keep an ssh tunnel alive from the client?

I read here that you can keep your ssh sessions alive a bit longer using a utility called GNU screen. Is it possible to keep an SSH tunnel alive longer with this as well?
4
votes
0answers
185 views

Copy a file to a directory that doesn't exist with only one command (Linux) [duplicate]

Is it possible to copy a file to a dir that doesn't exist such that it creates the directory, using only one command? Without using && and more than one command. Edit: It is not duplicate, in ...
0
votes
1answer
474 views

Can't seem to connect to my Debian Mysqli Server?

So I have a simple PHP script which I attempted to do something along the lines: $db = mysqli_connect("localhost", "root", "PASSWORD HERE", "database name"); mysqli_query($db, "SELECT STATEMENT HERE")...
-1
votes
2answers
518 views

Use IP tables to port forward behind a router?

Is it possible to use IP tables to port forward behind a router? My setup is thus: I have a Raspberry Pi running a small website on port 80, and a beefier computer running a Minecraft server on port ...
1
vote
0answers
26 views

Is there a way to execute the second-to-last command that started with a given string? [duplicate]

In a project with different makefiles: $ make -f foo1.make ... ... $ testing testing ... ... $ !ma make -f foo1.make Good! But then if I by accident do: $ make -f foo1.make ... ... $ testing ...
7
votes
2answers
1k views

How do I set Zsh autocompletion rules for second argument (of function) to an existing command's rules?

I have a custom Zsh function g: function g() { # Handle arguments [...] } Within it, I handle short arguments that execute Git commands. For example: g ls # Executes git ls-files ... g g # ...
0
votes
0answers
336 views

Create an image of an existing linux installation

I have installed fedora 19 Xfce and removed a bunch of packages. I need to do a similar installation in multiple other machines. Repeating the process is time consuming. Is there some way by which I ...
0
votes
0answers
96 views

Installed Ubuntu (on its own partition, Windos 8 machine) and lost both boot options in BIOS

I partitioned the unit in Windows first, and after I disabled Windows in BIOS because it wasn't allowing the boot CD to load. After the installation, the option to enable Windows and the option to ...
0
votes
1answer
433 views

buffer cache and free memory

Below is the output of free in Ubuntu: $ free total used free shared buffers cached Mem: 8173180 8013092 160088 0 1076276 3091136 -/+ ...
1
vote
1answer
3k views

Create a iptables rule if the rule does not all ready exist

Hi I've created a script to setup Nagios on my remote servers. My Script checks iptables to see if a firewall rule all ready exists and then is supposed to add the rule if it's not all ready there. ...
0
votes
1answer
3k views

yum install PHP Error Summary

so I'm following this tutorial to install php5 in a red hat 6.5 box and I have only type one command and is this one below, I just wantend to install the php-gd module.(testing..) when I try this: ...
6
votes
3answers
577 views

Is there a perl or awk solution for this problem?

I have an input file (input.txt) like below. id1 id2 name weight 53723848 12651711 timburnes 1.36667 53530214 12651711 timburnes 1.51191 53723848 53530214 timburnes 1.94 764157 ...
1
vote
1answer
348 views

Set a screen session name at the command prompt

I am trying to create a simple alias that will allow me to create a new screen and set its name simple by typing newscreen {screenname} where {screenname} is set at the prompt. For example, I would ...
0
votes
1answer
491 views

Black screen when starting X

I have two systems. The only real difference between them is that one is OpenSUSE 12.2, and the other is OpenSUSE 13.1. Oh yeah, and that the 12.2 box works, while the 13.1 one doesn't. Basically, ...
5
votes
1answer
4k views

Remote syslog command line Client

I use logger pretty regularly, but is there a FOSS command line tool for remote submission of syslog messages over the network? Right now, I have to configure a facility/priority pair to submit to a ...
0
votes
2answers
2k views

Building from SRPMs on CentOS 6.5

NOTE: I'm very new to yum/rpm, but am familiar with Linux. I'm trying to compile Awesome on CentOS 6.5 using rpmbuild. I found SRPMs for Fedora Core and am trying to rebuild them on my CentOS install ...
1
vote
4answers
113 views

How to delete a line if string is the only thing on the line

How can I use sed or something else to delete a line only if the string I'm searching for is the only thing on the line? Example output: device-address-binding: ? database-revision: 20 -- ...
3
votes
2answers
3k views

How to search and replace strings matching a replacement list for multiple files

I have a file, say map.txt, containing a list of search strings and corresponding replacements: search -> replacement bigBone -> bb fishMarket -> fm dogCollar -> dc ... I need to ...
0
votes
2answers
107 views

How much physical disk can SLES 9 handle? Are there any limitations?

I think there is a limitation that how many disk could a SLES 9 machine handle. (32bit). I cannot find the number via Google.. My question: Can somebody tell with reference, what is this number?
2
votes
4answers
494 views

Allow guest SSH login and redirect to a program

Sometimes I get really silly ideas. This time, the idea is to deliver an easter egg for anyone who decides to try and connect to my server via SSH. Doing so will run a program, such as easteregg.sh, ...
4
votes
2answers
24k views

Why is Apache running on port 8080 instead on port 80?

I am confused why Apache is not responding on port 80 ... $ wget http://localhost:80 --2014-05-06 15:32:44-- http://localhost/ Resolving localhost (localhost)... 127.0.0.1 Connecting to localhost (...
1
vote
0answers
34 views

Filter partial output of some script [duplicate]

I need to analyze the output of some script So, I know their header and their tail of some part of the output script, but not the content. I found an approach [1] But I need something like: $ ...

15 30 50 per page