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
434 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
349 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: $ ...
1
vote
1answer
242 views

How can I get a tmux session menu from outside a tmux session?

I'm trying to build a wrapper for tmux that presents me with a menu of all available sessions instead of creating a new one. However the man page explicitly says that this is not possible (excerpt ...
1
vote
2answers
778 views

Why is this RPM “uninstallable”?

Sometimes when I ask Zypper to install something, I will get a message similar to this: Problem: foo-tools requires foo-lib, but this requirement cannot be provided Problem: foo-tools requires foo-...
3
votes
1answer
400 views

ifconfig: bad address '-apbridge'

I need to configure the network interfaces in my OpenWRT-router. hence I need to change some options in the /etc/config/network file. specifically I want to remove the bridge connection. I have tried ...
1
vote
1answer
462 views

Run jar file on startup as root without password

I developed a jar file I would like to run in all *nix platforms. I want to run the jar file on every restart with the root privileges without prompting any password. I googled for the solution but it ...
3
votes
1answer
379 views

How to change modMask in Xmonad when specific window is focused, or on specific workspace?

I am using left Alt as my primary modkey, but for certain application I would like to use Alt+keys as my bindings, and for that specific application I want left winkey to be my modkey. It seems that ...
3
votes
1answer
159 views

How to Print Summary of Packages that Can be Updated?

When I log into Ubuntu Server 12.04 LTS, I'm met with a message that looks something like this: 6 packages can be updated. 6 updates are security updates. How can I get a detailed summary of the ...
1
vote
0answers
25 views

New menu item called “arch_grub” emerged as a temporary boot device

I have Ubuntu installed along with Arch. I re-installed Arch a few times already. Now it works well. Once when I was re-installing Arch during boot when I chose the "Choose temporary boot devise" ...
5
votes
2answers
4k views

How to send data from serial port over wifi?

I have microcontroller device which reads data from sensors and sends it via Serial to USB converter (ftdi232 cable). This Serial to USB converter is connected to ARMv7 mini-computer - CuBox with ...
2
votes
3answers
338 views

Remove spaces and headers from a dumped database table

I have dumped the database table data into a flat file and below is how the data looks like : (Kindly copy from below ;metier_code ; ;-------------------------; (0 rows affected) ;...
0
votes
1answer
136 views

Help Deciphering Disk Usage. Where Did the Space Go?

The System An instance running on Amazon EC2 It is an m1.large EC2 instance The instance is running Ubuntu Server 12.04 LTS Here's What Happens... To begin, let's execute the following: root@...
4
votes
1answer
13k views

No domain defined in /etc/resolv.conf

I see more and more servers that have no domain defined in the /etc/resolv.conf file. Only a search entry. In what cases is this setup used ? Are there any cases where it must not be used ? ...
0
votes
0answers
592 views

Black screen after logged in. Xubuntu 12.10

Hi I'm a total noob in Linux/ubuntu. I had Xubuntu 12.10 running for a month or so without major problems. A few days ago after downgrad firefox from 29 to 28 by removing and reinstalling and ...
7
votes
1answer
10k views

How do I start a virtual machine in background upon OSX system start?

I have a virtualbox machine on a OSX 10.9.2 host. I do not want to open VirtualBox everytime and start the machine there. Also, I do not need the the screen output as I will just ssh from OSX terminal ...
3
votes
1answer
242 views

liferea: change default link color

Liferea (Linux Feed Reader) uses per default a dark blue color for hyperlinks. I am using a dark desktop theme (white text on dark background) and these default colors are very difficult to read. I ...
2
votes
1answer
829 views

How to copy partioning information with dd?

I am trying to recover partitioning information using TestDisk. To try things out I copied all data from the original harddisc to another physical drive using dd as follows: $ dd if=/dev/sda of=/dev/...
1
vote
0answers
121 views

How to load virtualbox video kernel module?

I have a virtual quantal (12.10) Ubuntu machine. Upon starting, it says in it its boot.log Loading VirtualBox video kernel module [fail] What is this component and ...
1
vote
1answer
226 views

GlusterFS use Geo-replication or normal gluster?

We have 4 offices with ipsec lan2lan over fibre net (20-100 mbit on eache office, except one office with 10 mbit fibre). Latency is below 20 ms (between to of the offices with fastest network we have ...
1
vote
1answer
221 views

32 bit OS memory limitation on NUMA systems

Running 32 bit Rhel 6.5 with kernel 2.6.32-431.el6.i686 on a server with 46 Gb RAM and NUMA support. CONFIG_X86_PAE=y Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHz OS is not able to see more than 14GB ...
1
vote
5answers
70 views

find subdirectories with lowest number

I am trying to list all subdirectories with the lowest number. For example, for the following list: /100/2001 /100/2003 /101/2001 /101/2004 /102/2000 /102/2003 /102/2005 I am ...
1
vote
1answer
2k views

Changing systemd HandleLidSwitch setting during run-time?

The setting HandleLidSwitch is defined in /etc/systemd/logind.conf as follows: HandleLidSwitch=<hibernate,ignore,...> The setting is applied successfully on boot. However, I would like to ...
1
vote
0answers
234 views

How to combine deb dependencies into main package?

I want to include deb-dependencies with main deb-package. Consider 1 deb package which have 19 deb dependencies, so I have to install all packages by dpkg -i *.deb. If all 19 dependencies can be ...
0
votes
1answer
260 views

Get a faster response for a ping

I noticed that the answer to my ping is slower in one debian machine that another. For the first one when i ping to 8.8.8.8: 64 bytes from 8.8.8.8: icmp_req=1 ttl=47 time=29.6 ms For the second ...
2
votes
1answer
147 views

Update jails FreeBSD in silent mode

What if I want to add all process to the cron? Is there silent way to upgrade jail? After these steps: # make buildworld # make installworld DESTDIR=/jails/somejail It comes time to: # ...
3
votes
2answers
2k views

How to find data copies btrfs

I have deduplicated my btrfs filesystem with bedup, so now all duplicate files (above a certain size) are "reflink" copies. Is there any way to see, given a filename, what other files are the same ...
3
votes
1answer
3k views

Why can yum still not update GCC 4.9.0?

GCC 4.9.0 has been released since April 22. However, I can still not update it through the following command: $yum update gcc Why does the yum repository lag so much behind gcc.gnu.org?
2
votes
6answers
1k views

How to search, replace and append a pattern to the end of each line

I have the following list of items: bigBone fishMarket dogCollar ... I need to generate a two character mapping like this: bigBone -> bb fishMarket -> fm dogCollar -> dc ... How can I ...
1
vote
0answers
275 views

Very weak wireless connection on Debian live image install

I'm having a problem with the wireless connection on a fresh install of Debian 7.4 which I didn't have before, I had Debian installed before and WiFi was working great, the only thing that changed ...
8
votes
2answers
60k views

chroot: failed to run command ‘/bin/bash’: No such file or directory [duplicate]

When I run the chroot command an error is given: failed to run command ‘/bin/bash’: No such file or directory
0
votes
1answer
59 views

Linux make 1 big from 3 smaller pictures

I need to automate a task where I have smaller jpg/png images what I would like to merge into 1 big picture by placing them in a square area. Obviously to do this I would need to open gimp every time....

15 30 50 per page