All Questions

0
votes
0answers
1 views

Non-journalled filesystem that allows instant power off?

Is there a filesystem for Linux that allows for instant off via a power switch without going through a shutdown procedure? If so, would there be a significant performance hit compared to a journalled ...
1
vote
1answer
20 views

Command line tool to “cat” pairwise expansion of all rows in a file

Suppose I have a file (call it sample.txt) that looks like this: Row1,10 Row2,20 Row3,30 Row4,40 I want to be able to work on a stream from this file that is essentially the pairwise combination of ...
0
votes
0answers
4 views

Getting transient PID from log into a PS search before it dies

I have a transient prelink process populating our audit log, but we're not sure what the process is. The error log gives us the PID, but it disappears pretty much instantly, as the process finishes ...
0
votes
0answers
2 views

Yosemite + Fusion 7.0.1 now gets “Could not open /dev/vmmon: No such file or directory.” and will not start any VM

I've been on Yosemite on this machine since it hit released, and on Fusion 7 since it released. Now on 10.10.1 and 7.0.1 respectively. On one machine ...
0
votes
1answer
14 views

Launching a Chrome Incognito window logged into a specific google account

Is it possible to launch an incognito chrome window which is logged specifically into a certain google account (loading, say, gmail.com)?
1
vote
0answers
7 views

/dev/disk/by-id creating wrong symlinks for harddrive

I'm running into an interesting problem where on reboots and power cycles, my harddrives will occasionally be given the wrong symlink in /dev/disk/by-id. For example, when I issue ls /dev/disk/by-id I ...
4
votes
0answers
18 views

sound in firefox via ssh -X

I have a headless debian box with speakers. Suppose I'm at my laptop and I do $ ssh headless -X $ audacious then audacious' window pops up on my laptop's screen. If I open a file then it ...
0
votes
1answer
32 views

How to use ARM as LTSP server?

Arm has a limited support for server packages on Linux but is it possible to use ARM board i.e Raspberry Pi or Banana Pi(it uses Armhf instruction set rather than dated Armv6 used by raspberry pi) as ...
2
votes
3answers
72 views

How to use sed to selectively remove leading zeros

How can I substitute/remove 0's in this, using sed: 2001:0db8:03cd:0000:0000:ef45:0006:0123 to make it looks like this: 2001:db8:3cd:::ef45:6:123 There are 8 pieces of 4's divided by : in the ...
0
votes
0answers
8 views

gtk-2.0 theme: is it possible to change inactive slider?

I'm doing some slight modification of an existing theme, and I want to have the sliders be different colors in active and inactive windows. Here is an example of the slider code in the gtkrc file ...
1
vote
0answers
9 views

Creating specialised dictionary file for VIM (from Wikipedia?)

I use VIM's dictionary completion feature very frequently, yet have found it unhelpful when it comes to 'specialized' terminology, in my case German philosophical terms. I would now like to create my ...
1
vote
1answer
34 views

DNS: Can I list 1 host in 2 separate domains?

I want to test something, but I lack sufficient number of machines so I was going to overlay a subnetwork listing the same hosts under different names. I can't think of any problem with this, but I ...
0
votes
0answers
7 views

MariaDB installation is showing random letters

So I want to setup MariaDB with nginx and I have in the past but for some reason on my debian 7 machine the MariaDB is all glitched out and shows random letters. Any idea why? Thanks ...
1
vote
2answers
43 views

Sort files according to their extensions

I have made a script that will sort files according to their extension and place them in the proper folder. For example, place abc.jpg in the directory jpg. #!/bin/bash #this script sorts files ...
2
votes
1answer
19 views

how do screenshot / screen grab programs work on POSIX systems running X?

How do screenshot programs such as gnome-screenshot or xfce4-screenshooter get their data? How can they access a stream of the monitor/screen's 2d pixel matrix? Is it possible to stream only a ...
0
votes
0answers
9 views

How Can I make SIP Video to match Skype video in terms of quality?

This is a video connection between a Linux PC and an Android tablet. I really, really don't want to use Skype, but the quality through SIP is just not good enough. Trying to change codecs enabled on ...
0
votes
2answers
7 views

urxvt256c doesnt get .Xresources while urxvt does

So this is something really strange that happened. I've been using mostly urxvt and I want 256 color support, so I installed urxvt256c. However, urxvt256c doesn't listen to .Xresources, it stays ...
1
vote
0answers
4 views

JACK can't play ardour along with any other media

I recently downloaded Ardour2, and it appears that JACK cannot run Ardour along with any other media (Rhythmbox, YouTube, Pandora, etc.). The symptoms are as follows: If Ardour is the first thing I ...
-1
votes
1answer
19 views

Make sudo ask for a password

After installing DevStack, I was forced to put my user as root and gain access. I did that and now I would like to undo it. I removed the line from visudo but still no success. What want like to ...
0
votes
1answer
5 views

Update of XML value with xmlstarlet

I have file config.xml: <?xml version="1.0" encoding="utf-8"?> <widget xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" id="app" version="2.5" ...
0
votes
1answer
11 views

SSD not persistent

My SSD forgets data and falls back to a previous version, I've raised this issue on the Arch forum here. Let's say I install an application and all is well. Then after a reboot it is gone, ...
-1
votes
0answers
10 views

(openSUSE 13.2) Can't open PHP files

I have a standard installation of openSUSE 13.2 and have installed the LAMP stack. But whenever I try to open a php file, browser (Google Chrome, Mozilla Firefox) downloads it. I created (because I ...
1
vote
1answer
34 views

What is the difference between mounting in fstab and by mounting in file manager

..and what are the consequences of the different methods? I have been trying some things with the mounting of an sda2 partition. Mounting in fstab, not mounting in fstab but from the file manager. ...
0
votes
0answers
18 views

Can't boot into Windows after adding Linux as dual-boot

Okay, so I just added Linux as a dual boot and now I can't boot back into Windows. Basically, I had one hard drive which was installed with Windows 7 and booted that. I recently got a second hard ...
0
votes
2answers
14 views

How do run MYSQL scripts from a shell script with bash variables?

Im making a script where I connect to a database, look for a value and then if that value returned something then I will do something else. ip=$("variable is defined here") Then I connect to the ...
0
votes
0answers
16 views

Mismatch of IP Address in our linux machines?

I have few Ubuntu machines in which I have our app servers running which is trying to connect to another set of RHEL machines in which I have our Cassandra cluster running. Now as I said, my app ...
1
vote
1answer
15 views

How to unmount flash drive gparted says busy

I have a 4GB usb storage drive that I cannot save files to. I have copied the information I want from it, so now I would like to rescue is as a freshly formatted drive, if that is possible. There is ...
3
votes
2answers
39 views

One for loop for many tasks

The output of this code is two txt files. Can I make one for loop for both of them. i.e one for loop to give me two or more outputs? In ID1 and ID2 I have names for files. I want to print the first ...
1
vote
0answers
5 views

System doesn't see HDMI attached tv&receiver until reboot

When my system starts and receiver with tv are disabled during boot, then system will not see them even if later I will replug hdmi cable. To make receiver/tv visible to the system, I must leave them ...
0
votes
1answer
24 views

How to find password, knowing username on broken file system

My external HDD got broken. It was formatted with NTFS. In one of the files I had my login and password stored in plain text. Is there any possibility to find this password by looking for the ...
2
votes
2answers
83 views

How to print total number of file descriptors with index 24

How can I print the total number of file descriptors with index 24 for all the running processes on Linux? I tried $ ls /proc/*/fd 2> errors.txt > stdout.txt | grep "^24" stdout.txt | wc -l ...
0
votes
1answer
21 views

Issues executing program

Ultimately I'm trying to get a program to run at start up and work correctly. I have been successful in getting it to show up in running processes after a reboot, but it doesn't seem like it is ...
1
vote
2answers
161 views

Why does $var give the value of $0?

I have written a very simple awk script that reverses every word of a file-: awk ' { for (i=1;i<=NF;i++) { x="" for(j=length($i);j>0;j--) x=x substr($0,j,1); print x }}' file1 The contents of ...
1
vote
0answers
4 views

Set fixed screen resolution for application in Wine

For example, I've application (game) that has only 640x480 resolution. Now I've 2 options: launch it in window-mode, and will has 640x480 size or enable fullscreen and will fill all screen. What I ...
2
votes
2answers
97 views

How to split an image vertically using the comand line?

So, say I have a large 800x5000 image, how would I split that into 5 separate images with dimensions 800x1000 using the command line?
3
votes
3answers
180 views

USB to VGA on Linux

I've been offered a Macbook Pro mid-2012. Although it wouldn't have been my first choice it's still a great piece of hardware, only problem for me is that it only has a single Thunderbolt port ...
0
votes
0answers
10 views

“Graphic install” or any installation method wont load on dual boot

I have had this huge problem for 6hours now. I've saved a 64bit Kali iso file to my usb and then booted from it. Everything works fine and the Kali menu shows up. However, when I choose any of ...
0
votes
0answers
34 views

awk - how does the for loop work when counting words? [duplicate]

I have got the following awk script from here that counts the frequency of the words in a file-: # Print list of word frequencies { for (i = 1; i <= NF; i++) freq[$i]++ } END { ...
1
vote
0answers
9 views

Escaping output in tcsh completion by program

How do I escape output in the program providing completion? Suppose: tcsh% complete foo 'p/*/`mycomp`/' And mycomp is a Perl program printing this: #!/usr/bin/perl print "one\n"; print "two ...
1
vote
0answers
15 views

Linux mint 17 battery information inconsistent

The battery (time remaining) information shown by Linux Mint 17 on my Asus Zenbook UX32LA is inconsistent. When I unplug it from the AC power (99% charged), it says 4:55h, after 1 min it shows 7:15h, ...
0
votes
0answers
9 views

Magento store code rewrite with Nginx [on hold]

Since I'm using store codes with Magento (multiple fronts) the blog extension by Aheadworks is also using the store codes for posts in urls. Personally I prefer to have urls without the store code for ...
2
votes
2answers
98 views

regex - Searching for only character pairs

I have the following data from which I mean to extract only those lines which contain "bb" only. Not "b" or "bbb" or anything else just "bb". abb abbb aabbcc aabab abbbbc Now when I use the ...
0
votes
2answers
16 views

What does this host means ' ::1 '

To secure my mysql server, I checked the list of users : mysql> SELECT User,Host,Password FROM mysql.user; +------------------+-----------+-------------------------------------------+ | User ...
1
vote
0answers
15 views

What's the correct way to share a directory with Windows machines using Samba?

I'm running Debian 7.7, intended to be used as a server. I've got Apache installed and I'd like to share its /var/www directory and access it from Windows machines. I've followed the instructions on ...
5
votes
1answer
31 views

“403 Forbidden - You don't have permission to access / on this server” - apache2 localhost on Linux Mint 17

Desired Behaviour To be able to access localhost in browser without getting 403 Forbidden message. Current Behaviour Navigating to localhost in browser returns: Forbidden You don't have permission ...
1
vote
0answers
12 views

How to use ESC sequences to make terminal region scrollable

I have a stm32f1 controlled device that uses USART/USB port to implement a user control interface. Using a standard terminal software (putty/minicom) a user has an ability to enter simple command in ...
3
votes
2answers
92 views

single quote within double quotes and the bash reference manual

In section 3.1.2.3 titled Double Quotes, the bash manual says: Enclosing characters in double quotes (‘"’) preserves the literal value of all characters within the quotes, with the exception ...
2
votes
2answers
14 views

configure second monitor

I have a new Debian machine and I'm trying to attach a second monitor to it. When I plug it in in my HDMI port, the second monitor duplicates the firts monitor, while I wuold like to extend it. My ...
1
vote
0answers
4 views

Uvcvideo trying to load a camera twice

I've got a problem with uvcvideo, where I get this error at startup: uvcvideo: Failed to query (GET_DEF) UVC control 2 on unit 1: -32 (exp. 1). which also shows up in dmesg if you unload and load ...
2
votes
1answer
26 views

cpio VS tar - what the best archive solution in order to compress hundred of directories to one file

I have hundreds of directories under /var/Recording, and each directory there will have subdirectories, including files, hard links and soft links. I want to compress all directories under ...

15 30 50 per page