5
votes
2answers
4k views

Is there an easy way to log all commands executed, including command line arguments?

I am trying to find how to log a specific instantiation of rrdtool to see whether the path it is receiving is incorrect. I know I could wrap the executable in a shell script that would log the ...
18
votes
2answers
7k views

Make zsh completion show the first guess on the same line (like fish's)

In Fish when you start typing, autocompletion automatically shows the first autocompleted guess on the line itself. In zsh you have to hit tab, and it shows the autocompletion below. Is there anyway ...
1
vote
1answer
3k views

scp stuck when trying to copy files from Linux to windows

I use the following scp syntax in order to transfer a lot of files from Linux red-hat 5 to windows machine (under Temp directory). SSH server is already installed on windows machine. I use this line ...
1
vote
1answer
141 views

Why is this copy/paste in vim configuration not working properly?

I have the following in my .vimrc vmap <C-c> y imap <C-p> <esc>P So that I can do my classic sortcut for copy/paste. It works fine on Cygwin but not in my ssh session to ...
3
votes
1answer
3k views

LAN server with two network cards, can't telnet / ping to the second even if it works

I have an issue with an Ubuntu 12.04 LTS (updated) server. For reasons too long to detail, it has got one eth0 interface assigned to 192.168.1.9 and one Wifi wlan0 interface assigned to 192.168.1.10. ...
4
votes
1answer
406 views

Best practices for packaging self created software for Debian

I've got Debian packaging for a piece of software I've written. This software probably is too specialized to be part of Debian. In any case, for now I have no plans to try to include it in Debian. ...
2
votes
2answers
1k views

Looping over a folder enter anyways the loop

When looping on a folder through a for f in $path I am experiencing an unexpected behaviour, i.e. the loops is entered anyway even if no file match the wildcard. I am using cygwin and this is my ...
2
votes
1answer
50 views

What is Archive field in Release file used for?

For example current Release file for Wheezy is following: Archive: stable Origin: Debian Label: Debian Version: 7.1 Component: main Architecture: amd64 Now I can't find description of this Archive ...
0
votes
1answer
208 views

how to remove a file named “-f” from the command-line? [duplicate]

Here are some options a) rm -f b) rm "-f" (double quotes) c) rm '-f' (single quotes) d) all of the above e) none of the above
3
votes
4answers
22k views

Health check of web page using curl

I'd like to do a health check of a service by calling a specific url on it. Feels like the simplest solution would be to use cron to do the check every minute or so. In case of errors, cron sends me ...
8
votes
3answers
31k views

What makes a Unix process die with Broken pipe?

Here are some options I thought of, not sure which is the right one. There was an I/O error reading from the pipe. The process writing to the other end of the pipe died with a failure. All processes ...
3
votes
2answers
3k views

How to customize window decorator for a single non-GTK3 application window in Gnome3?

Is there a way to specify dark themes for the window decorator (Mutter) for just a single application? (Like Sublime Text). For example, on the screenshot below one window is customized to have a ...
2
votes
1answer
352 views

Pinning and local repos

I can't quite wrap my head around pinning in Debian. I'm trying to automatically install a package first from our local project repo, then from our local stable repo and then from official Debian ...
0
votes
2answers
107 views

Sharing a 1 GB HD file that can be stream more then 10 computer simultinuasly

I want to share a file that is sized at 1 GB and my OS is Linux Ubuntu 12.10 via a wireless router by the name of TP-link with a speed of around 400MBps. I want to share this file to at least 10 ...
2
votes
1answer
183 views

strings command printing some extra characters

I am trying to capture mysql traffic using tcpdump and converting it to text using strings command, but while capturing mysql traffic, I am getting some extra character at the end of each character. I ...
0
votes
1answer
1k views

How can I recover damaged file from overwritten ext4 partition?

My disk, which was previously ext4 has been formatted and Windows has been installed. I want to recover my previous files (family photos, ..) and I tried everything I could find on the internet. I ...
3
votes
7answers
5k views

Problem in splitting a string using awk or cut command

I have a properties file which has a password field (key value pair) PASSWORD=NDhhHcsOBofXUdUzGw5B0Q== I am trying to get the value in my shell script using the awk command password=`awk -F "=" ...
1
vote
1answer
3k views

Set default permisson for newly folders and files in Linux

I'm using OpenSuSE and my computer has only 2 accounts: root and me.I have a directory /srv/www/htdocs/abc. I just want to set it up so that when new folders or files are created in this directory ...
0
votes
1answer
125 views

Are there any Linux distros that protect against “self-mutilation”? [closed]

Over the past week I have installed and reinstalled Linux several times (Mint 15 in all but one case; Ubuntu 13.04 is too slow on my laptop), and after a mishap with QT today I completely gave up in ...
1
vote
3answers
387 views

Launching shell script from SSH and disconnect

I have a script which I run from SSH that launches several processes which I would like to keep open when I disconnect from my session. Is that feasible? Launching the script in background is not a ...
0
votes
0answers
301 views

Installing Linux distros manually from live cd without installer

I am trying to install a debian based linux and I think its installer is broken. The live cd works fine, but the setup process always gets stuck at 9% and shows an error ("can't complete setup"). Is ...
2
votes
2answers
586 views

How to source correct startup scripts on interactive, non-login shell

I'm trying to set up a sane/usable environment in a barebones OpenSolaris-derivative (OmniOS, a distribution of Illumos/OpenIndiana). I have all the plumbing code I need in .profile, .inputrc, and ...
3
votes
1answer
2k views

How dbus calculates machine id?

How DBus calculates machine id? (/etc/machine-id, /var/lib/dbus/machine-id). Which way is more correct to determine it?
-1
votes
2answers
200 views

Problem with network interface [closed]

I had a problem with eth0 interface. I installed linux distribution version 11.10 and I want to set static IP address to my linux computer. When I run ifconfig, it didn't print the eth0 interface. It ...
1
vote
2answers
4k views

Uninstall Aptana from Ubuntu

Can someone please tell me how to uninstall Aptana from ubuntu 12.04 LTS? I followed these instructions, in summary: Install the prerequisites with apt-get install. Download Aptana Studio Extract ...
3
votes
1answer
3k views

Boot SystemRescueCd using UEFI?

How would you boot SystemRescueCd if you don't have the option to use the legacy-bios? I have the new UEFI and I have no luck booting SystemRescueCd(with a USB stick). I am planning to back up my ...
4
votes
1answer
367 views

Ubuntu unattended install : echo keypress to dialog

Ubuntu 12.04 LTS Server 64 My unattended-mode bootstrap.sh script contains: apt-get upgrade -y I know that during execution a primitive UI for GRUB installation will be shown which requires ...
3
votes
2answers
280 views

Fluxbox menu entry that prompts for some input

How do I ask 'which man file would you like to open?' in one command from the commandline, which will also open xterm at the same time. This is needed for a fluxbox menu item. For it to be a fluxbox ...
3
votes
3answers
6k views

Should /usr and /home be on different partitions?

In studying for the lcpi exam, I met the following statement. If multiple disks are available it is good practice to also have the /usr and /home directories on different partitions. ...
4
votes
2answers
5k views

Comparing two files using Unix and Awk

I need to compare two files, File1 and File2 (Separated by space) using 4 fields (Field 1, 2, 4 and 5 of File 1 with field1, 2, 4 and 5 of File2). Logic: If column 1, 2 and 4 of File 1 matches with ...
-1
votes
1answer
111 views

Is Windows Linux based [closed]

Is Windows Linux based? Because I cannot find a stack exchange site for Windows. If there is not sit for Windows can anybody explain how to request a site.
0
votes
2answers
585 views

NetworkManager controls my wireless card, but it can't find any networks?

I have a Broadcom wireless chip which I've managed to wrestle into working with Debian GNU/Linux (I'm on Sid, if it matters). The interface is definitely there: 612 ± ip link 1: lo: ...
-1
votes
1answer
383 views

I can't access my computer through specific port?

On Fedora I tried to access port 1521, so I opened the following port on my firewall: $ sudo iptables -I INPUT -i eth0 -p tcp -m tcp --dport 1521 -j ACCEPT $ sudo service iptables save I then tried ...
1
vote
0answers
295 views

linux-firmware-nonfree hangs my system, but I need it for 3D graphics

I'm on Debian Sid, fully up-to-date. I need firmware-linux-nonfree in order to get 3D graphics, but unfortunately, when I install it, my system hangs at boot at the point where it waits for /dev to be ...
3
votes
1answer
1k views

Can I use Gnome 3 Shell “Activities” hot corner in VMWare Player VM?

I have Fedora 19 running Gnome 3 Shell installed on my laptop, and in a virtual machine running inside VMWare Player on my desktop. The VM has the proprietary VMWare tools and is up to date as of ...
1
vote
0answers
2k views

how does /etc/init.d/networking restart cause wpa_supplicant to be run using the previous configurations?

Background: I use Debian Lenny and have two WiFi interfaces. I use a generic configurations on /etc/network/interfaces iface wlan0 inet static address 10.0.0.1 network 10.0.0.0 ...
8
votes
1answer
2k views

In which cases is SIGHUP not sent to a job when you log out?

I read an answer from a user who claimed that running foo 2>&1 >& output.log & would result in foo continuing to run even when they log out. According to this user, this even ...
2
votes
2answers
150 views

Printable guide for ArchLinux setup

I want to install Arch Linux on my computer, but I only have one computer, so I will be unable to access online documentation for a significant portion of the process (everything up until I get a web ...
4
votes
4answers
5k views

the first five characters

I need to copy the first five characters from an output file, 25 lines in all, and copy that output to a file. also it might be nice to remove blank or null entries in the output.
3
votes
4answers
672 views

Replace all occurences of \ except \N

I have a file like this: 1,2,subjects,\mat\hs,unix\,\Nato,\N,123,\N I want to replace all occurences of \ with #, except for \N, such that the output looks like this: ...
3
votes
1answer
298 views

How do I access a flash drive that has been ejected without physically plugging it out and back in? [duplicate]

When I plug in my flash drive, it gets auto-mounted. If I right click on the drive and select 'eject', then it's unmounted. Now, I want to remount the drive in Terminal. How do I do this? I've ...
2
votes
1answer
426 views

iptables string not dropping packet from tcp streams while using conntrack and string

I'm facing an unusual issue where specific TCP steams are not getting dropped by iptables; instead it's like iptables is just removing those specific packets. We're getting the following traffic: ...
2
votes
1answer
101 views

clear gnu screen window name

I'm using screen with a hardstatus listing my open windows, I usually have a few named (mail, im, top, etc.) and a few with blank name. Some program changes the current window name, for my named ...
2
votes
3answers
323 views

mv files to a different path which is constructed via a regex replacement

I have a directory full of files stored in subdirectories according to their filename, i.e.: 20d1/d325/52d1/20d1d32552d1a95249e62662fbdf924dd72c4027.jpg ...
2
votes
1answer
425 views

aufs with lower writable branch

I'm trying to hide some directories on a mounted file system (it's not about security, just aesthetics). I've mounted the file system regularly on /mnt/data and wanted to use aufs to overlay a ...
1
vote
3answers
111 views

How to AND terms in zypper search?

Suppose I want to search for the packet luasocket in OpenSUSE, but I don't know if it's called lua-socket, lua_socket, liblua-socket, lua5.1-socket, socket-lua or who knows what. Therefore I make a ...
5
votes
3answers
6k views

How can I convert a pdf file from gray-scale to black-white?

My OS is Ubuntu 12.04. How can I convert a pdf file from gray-scale to black-white? The gray-scale pdf file comes from scanning with gray-scale option, and the black-white scale pdf is required by ...
3
votes
1answer
178 views

what are the caveats of sending email via the “mail” command?

I want to send emails from my work computers so that I can notify myself when various long-running tasks are completed. As I understand it, the command below looks up bar.com's MX record, makes a ...
4
votes
3answers
2k views

How can I make Ctrl + Alt act like Alt gr in Ubuntu?

I recently switched to Ubuntu on my laptop and one thing that almost got me to switch back to windows is the fact that I can't make Ctrl + Alt to act like Alt gr. I have programmed in several years ...
0
votes
1answer
2k views

problem with installing packages

I get these messages when I run this command: # yum install pcre pcre-devel php php-common php-gd php-cli php-mysql flex bison Loaded plugins: product-id, refresh-packagekit, security, ...

15 30 50 per page