1
vote
0answers
21 views

Docker - Force to Use AUFS Instead of BTRFS

I am having significant problems using Docker on my BTRFS filesystem, and I suspect that is due to a lack of stability with the BTRFS driver. I would rather figure out how to switch the fs driver than ...
3
votes
1answer
23 views

Dmenu does not start some programms (e.g., emacs) — is there a log file?

I'm running dwm with dmenu under Arch Linux. While dmenu is working, it doesn't start some programs, e.g., emacs, although it shows the command with auto-completion. When I start them in the terminal, ...
0
votes
1answer
26 views

Why is my /etc/apt/sources.list set to squeeze when I have debian wheezy?

I have set up a few new debian boxes which were installed with debian wheezy (7.1). I set them up and upgraded to the current stable release: $ cat /etc/debian_version 7.6 If I look at my ...
2
votes
1answer
35 views

Arrow key/Enter menu

I need help finding out how to possibly create a menu in a shell script that will display 3 options that a user will use the arrows keys to move the highlight cursor and press enter to select one. If ...
1
vote
0answers
17 views

systemd start unit after another unit goes inactive

Is there any way to delay a unit from starting up once another unit goes inactive? I have a startup process (oneshot.service) that runs as a one-shot and sets up the environment for all other ...
2
votes
3answers
45 views

copying parallel directories Why does cp -r work this way?

The following works correctly (ie does what I want) cd /var/www/release/ mkdir wiki cp -rp ../html/wiki ./ However if I do (what seems more intuitive) cp -r ../html/wiki ./wiki it will ...
0
votes
0answers
11 views

ir-keytable modifier keys support

I'd like to add modifier keys to some of my ir-keytable tables. I've tried with the following syntax: 0x48e KEY_LEFTALT+KEY_RIGHT # >> right jump But it is not working (the scancode=keycode ...
4
votes
0answers
48 views

How come zipping a created disk image, makes smaller files than piping?

Case 1. I use dd to create an image: dd if=/dev/rdiskx of=/path/to/image bs=1m. It's 16 GB in size. I zip it, and it's suddenly around 100 MB. Case 2. I use dd to create an image, piping it ...
4
votes
4answers
105 views

Printing selective fields following 1st column instructions

Suppose I have a file in which I'd like to simultaneously print different awk commands following the first column instuctions, without messing up the original file (as it would happen with two ...
2
votes
0answers
16 views

How to create GUIs (such as menuconfig) with lxdialog

I try to generate a menuconfig by my own with the help of lxdialog (source: lxdialog). Unfortunately this is not so well documented as I wished for. Example: So what I did: I included these files ...
3
votes
2answers
26 views

Can I use scrypt to hash for LUKS?

Can scrypt be used as the hashing algorithm for LUKS? Can I tune its parameters? How can I do this?
0
votes
1answer
409 views

Packages still not found even after apt-get update

I am working on a Linux Mint 16 computer and since recently, every time I want to install something via apt-get install, the log message says that the packages couldn't be authenticated. I go ahead ...
4
votes
3answers
168 views

How do I find seconds since midnight?

Using the date program, how can I calculate the number of seconds since midnight?
2
votes
0answers
32 views

DirectX installed on Wine althought it doesn't work in games

I have installed DirectX on Wine used winetricks to have better graphics in my games. Althought it doesn't work! When I want to run GTA: San Andreas it shows I have to download and install DirectX. In ...
0
votes
0answers
17 views

Making proxies on Debian

Hi guys I am trying to create SOCKS Proxies on my VPS and currently am not getting too far so any help is well appreciated. Here's a few details on my VPS: It is running Debian linux, has 512mb ram ...
1
vote
2answers
86 views

Chown permission denied on owned dir

I have following directory (/usr/local) rwxr-xr-x. 43 root root 4096 Jul 25 14:19 . rwxr-xr-x. 14 root root 4096 Feb 21 10:27 .. rwxr-xr-x. 2 root root 4096 Jun 28 2011 bin [...] rwxr-xr-x 1 ...
0
votes
1answer
20 views

Could not commit to disk during OS Installation

I've tried several times to load Fedora 20 onto an Acer 5750z laptop, but during the installation I get an error message of "Could not commit to disk", switched the OS disk to Ubuntu 14.04 and ...
1
vote
0answers
11 views

How to stop gnome from forcing me to logoff / logout?

from time to time my gnome shell or some parts of it are crashing. Gnome sees a time out and is forcing the user to logout without other possibilities. "Oh no! Something has gone wrong." See ...
2
votes
1answer
24 views

“Missing separate debuginfo for …” when running gcore

I am running the following: command: gcore 56058 output: Missing separate debuginfo for /lib64/libdl.so.2 Try: zypper install -C "debuginfo(build-id)=dcca9c1f648bda0a7318a7c8844982c440e3e4a3" ...
0
votes
0answers
7 views

PCI-e SSD - Not visible to sysstat's iostat or sar

I am attempting to get basic statistics during test runs on a server with a PCI-e attached SSD that is mounted on /dev/rssda1, however sar and other sysstat either do not log, or in the case of iostat ...
4
votes
2answers
162 views

Print lines if given column starts with a capital letter

I have a file like this: ID A56 DS /A56 DS AGE 56 And I'd like to print the whole line only if the second column starts with a capital letter. Expected output: ID A56 DS AGE 56 What I've ...
23
votes
4answers
2k views

Result of diff two files with switched lines says missing the same line twice

I am trying to understand the linux diff command on two files whose lines are just permutation of each other but not able to grok the output that it generates. Consider the three commands below: ...
4
votes
4answers
151 views

Indirection on a Bash array

Is there a possibility to write the following script without the loop? IPv4_first=1.1.1.1 IPv4_second=2.2.2.2 IPv4_third=3.3.3.3 IPv4_all=() for var in ${!IPv4_@} do IPv4_all+=(${!var}) done ...
1
vote
0answers
26 views

How to find out why my cron didn't run? [duplicate]

This is the content of root's crontab: 0 23 * * 0-4 /usr/sbin/rtcwake -time `date --date="+16 hours" +"%s"` -m mem This is set to fire off that command every Sun-Thu at ...
3
votes
0answers
31 views

RAID-1 mirror has become a single hard disk

I have an HP N40L microserver, with 2 identical drives, I used the system to hardware-RAID them as a mirror. I then installed mint on the system about a year ago. This has been running perfectly, ...
1
vote
1answer
23 views

How to align columns of multiple lines at a fixed distance with vim

Here is another one of my vim question (They seem to become my trademark here.). I have a really long file basically consisting of lines of the following form: ;07 :ANZ textv S9_1 9_1_K3_2 ...
5
votes
1answer
413 views

What does su - `whoami` command do?

I am running a script in my project and I see this command su - `whoami` I am having a few basic questions: What does this command do ? What is the significance of `` quotes outside the whoami ...
2
votes
0answers
11 views

Dual boot Linux partition scheme with encryption

I am trying to figure out how I should encrypt my machine. I am reorganizing and will have two 500GB drives. I am setting up a dual boot system (both linux). My prospective partition scheme: sda: ...
0
votes
2answers
10 views

Disable error: nouveau unknown i2c port and unknown status

I am running Linux Mint Debian Edition, and I am getting the following errors: Jul 25 10:23:39 mhost kernel: [ 36.775380] [drm] nouveau 0000:01:00.0: unknown i2c port 57 Jul 25 10:23:39 mhost ...
0
votes
0answers
5 views

Why surt1000xli APC UPS recognised by NUT apcsmart driver as “old”?

So I have this UPS connected to machine with a RS232/USB cable. ups.conf contains [apc1] driver = apcsmart port = /dev/ttyUSB0 desc = "APC USB" And I get the following output: $ sudo ...
1
vote
1answer
23 views

bash script not being run by cron [duplicate]

I have a very simple bash script that runs flawlessly when I do ./removeOldBackup.sh or sh /home/myusername/backup/removeOldBackup.sh but when I add it to crontab like * * * * * sh ...
3
votes
2answers
106 views

Valgrind /usr/lib files are not regular Linux files

The problem that I encountered today (on an embedded device with Linux) is that some files (specifically, the Valgrind /usr/lib files) are behaving very strange and they are not copy-able with scp ...
1
vote
1answer
21 views

dialog --inputbox

Follow the below script I've a unique variable that keeps all variables, I need have each variable separated from $VALUES: #!/bin/bash shell="" groups="" user="" home="" exec 3>&1 ...
1
vote
2answers
71 views

Search for a string in a line and append related lines

I have a file containing some ID (identifier) and DS (description) lines. I'd like to keep the rows containing the string value in their ID line, as well as all the following (related) DS lines before ...
6
votes
2answers
33 views

How to make files inside TMPFS more likely to swap

I'm using tmpfs for my /tmp directory. How can I make the computer decide to swap out the files inside the /tmp before swapping out anything that is being used by applications? Basically the files ...
3
votes
1answer
91 views

How to draw a single pixel in a terminal?

Until now I used characters to draw images, shapes etc in a terminal. Is it possible to draw a single pixel? Let's say: foo 1 1 red This will draw a red pixel at the coordinate (1, 1). Is there ...
0
votes
2answers
33 views

How to print a string at the end of line using awk?

I am very new to awk. I am trying to add a new calculated column. But awk insert the column to the next line rather to the end of the current line. Here is an example of my data: ...
1
vote
0answers
15 views

unable to create key file. ubuntu installation error

I am trying to generate a preseed file for automating the Ubuntu installation process. I want full disk encryption with the help of preseed having the pass-phrase included in the preseed. I wrote ...
1
vote
0answers
20 views

Trap not trapping SIGTSTP

I have a script that keeps displaying the login prompt: #!/bin/bash trap '' 2 20 while true; do login done This is part of a bigger project so please don't tell me to just use the system login ...
1
vote
1answer
10 views

Unzip all non-existing or older files from archive

The behaviour I'd like with unzip is to extract all files, overwriting any that are older than those in the archive, not touching any that are the same age or newer, and to never prompt. The options ...
4
votes
2answers
35 views

How to sort a collection of lines from different files?

I want to sort second line in each file by second column, and also print name of the corresponding file. I am doing it like this - rm tmp; for filename in file*; do num=`head -2 $filename | tail ...
2
votes
2answers
65 views

How to write a function in bash?

I am drawing blank here. How should I have written this script? #!/bin/sh XZY_NODES="\ vl-ocnt-1 \ vl-ocnt-2 \ vl-onet-1 \ vl-onet-2 \ vl-ocmp-1 \ vl-oomp-2 \ " is_xyz_node () { host=$1 ...
0
votes
1answer
20 views

As what user does a command end up executing? [duplicate]

How can I find out as what user a command executes? (I'm running Ubuntu, but I suspect the answer applies to Unix in general). What I'm trying to do is get msmtp running and logging to ...
2
votes
1answer
38 views

Specifying DNS settings to override those of DHCP

Every 6 months or so I cannot access the DNS on whatever router I'm using. usually have to add the nameserver by hand to the /etc/resolv.conf file. I've tried adding Google free DNS to the file and it ...
0
votes
0answers
38 views

Spawn login prompt in an X terminal

I have a system that runs a bash script when it starts (I use /etc/init.d/rc.local to execute it without needing to log in). For reasons I won't go in to here, I need to launch a graphical terminal ...
3
votes
2answers
43 views

How to view files hidden by a mount on Debian 6

I have been trying for a while to view files, hidden by a mount on my device sporting Debian 6, to no avail, and being new to Linux, I am compelled to ask the question: How do you view files hidden by ...
4
votes
0answers
18 views

How to find Debian packages that would free up the most space

Say I have a Debian machine where I would like to free up space on '/' by removing useless packages. To find good candidates of packages to review, I would like to focus my attention on the largest ...
1
vote
1answer
17 views

Maintain Xserver applications running even after closing the remote conecction

We have a Ubuntu server (mainly a compute server), which does not have X-server installed on it. One can use something like Byobu or Screen to have programs running on the server even after the SSH ...
3
votes
1answer
32 views

Arch Linux RPI: How accurate is the time on the RPi in Linux?

Currently I'm working on a application on my RPi which will be monitoring a set of GPIOs in real-time where the exact time when the GPIO turns HIGH is crucial for my application. And I need to know ...
-2
votes
0answers
20 views

Modify Perl Menu [on hold]

Here is my code so far: #!/usr/local/bin/perl -w use strict; use Cwd; while ( 1 ) { print "\n COMMAND MENU\n"; print "\n a. Current date and time\n"; print "\n b. Users ...

15 30 50 per page