1
vote
0answers
11 views

Shared NTFS partition conflict, files written under Debian gone

I have a dual-boot W7-Debian Jessie on my laptop, and a NTFS partition initially left for sharing data between OS and keeping big files. With myself getting used to Linux, rebooting to windows became ...
1
vote
1answer
32 views

How to change double hyphen to single hyphen of file names?

I have been using the rename command to get control over my naming conventions across my system. In converting spaces in file names to hyphens, I have inadvertently created consecutive hyphens in some ...
2
votes
0answers
10 views

odroid/ubuntu - getting wlan to start

Im working with an 'odroid' fanless PC. The latest OS attempt on it is the stock Ubuntu 14.04 that comes with it. Have made some progress getting the networking (eth0) started but am having issues ...
0
votes
2answers
12 views

How can I change the default install path by using zypper in suse 11.2?

I want to specify the install path by using zypper, but I didn't find an appropriate argument when I typed the command zypper -h. Can anyone help me or tell me? NOTE: My distribution is OpenSuSE ...
0
votes
0answers
16 views

Switch from Debian Jessie to LMDE

I don't like what GNOME applications, such as Gedit, came to be and how they look now in Debian Testing. These colorless and borderless windows with unfamiliar layout are totally unusable for me. I ...
1
vote
1answer
10 views

read UUID of partitioned Image-Disk

i know i can read the GUID of a Partition like this: blkid /dev/sdx Problem: i have created a 4GB-Image dd if=/dev/zero of=./myImage.img bs=1M count=4000 which is partitioned to 3 different ...
4
votes
7answers
396 views

Remove everything that is not a 4 character number

I need to remove everything that is not a 4 character number such as 9838, 6738, 1337 or 1889. I though that this command would work: sed 's/....[^0-9]//g' . Means any character in regex, and ...
1
vote
1answer
27 views

Disk image copied to my SD card doesn't boot

I'm following this tutorial to copy Cubian to my SD card: https://github.com/cubieplayer/cubian/wiki/Install-Cubian. and I'm using the following command as the tutorial suggested: sudo dd ...
0
votes
0answers
18 views

Lenovo thinkpad E531 multi gesture touchpad

I tried a lot of distributions and I'm looking for a distro which supports more than 2 fingers. I don't know in Windows on my Thinkpad, there is 3 or 4 finger swipe for changing windows for example. I ...
-2
votes
0answers
21 views

Need a shell script to check when a process start and when its ends? [on hold]

I have two processes, P1 and P2. I need a shell script where i can know when P1 starts and ends I will get a notification and then same for P2. Please help with answers. Thanks in advance.
2
votes
1answer
24 views

How to count the number of interfaces in a bridge

I want to bring a bridge down only when the last port is removed and so I have this somewhat hokey check to do it brctl show looks awkward to parse to get the information out and doesn't feel much ...
0
votes
0answers
28 views

Linux unresponsiveness

I'm using a Packard Bell EasyNote laptop (4GB RAM, 500GB HDD) with Arch Linux and xmonad. My problem is that machine becomes fully unresponsive or obtains a large lag. Sometimes when I only have a ...
1
vote
3answers
32 views

How to pick out files in a folder in which the header contains specific text?

Use case: Let's say there is a folder full of large RDF+XML files and they follow different namespaces. We want to find those files that follow a given namespace (for example ...
0
votes
1answer
15 views

check status process output

I wanted to understand how to create a script sh that allows me to see if an additional script functions correctly. For now this is the script that I created. if /run.sh status echo "$SERVICEXE ...
3
votes
2answers
24 views

Coloring tail output with perl

tail -f logfile.log | perl -pe 's/.*foo*/\e[1;41m$&\e[0m/g' will color all the lines containing the pattern "foo" in the logfile.log file. How can I make use of this in order to highlight ...
1
vote
0answers
55 views

Command to get System Serial Number in Linux Machines [on hold]

How Can I get System Serial Numbers in Linux Machines ? i prefer to get this through a non root account and dont want to use external commands such as dmidecode or lhal
0
votes
1answer
18 views

root cannot access virtual filesystem? [duplicate]

When attempting to check my disk usage under / I found that root did not have access to certain virtual filesystems. I also could not check the permissions on the virtual filesystem. Why is this? ...
1
vote
3answers
130 views

sort CSV by number of column in rows?

I have multiple CSV files with many records. The total number of rows should be 134. I have many files, and each rows has its own number of columns (from 15 to 200). I need to sort them according to ...
2
votes
0answers
11 views

How should I deal with smtp_relay_restrictions in postfix?

I just setup a mail server with postfix and dovecot, now I'm having trouble sending emails with evolution. e.g When I send an email to to@gmail.com, I got an error: NOQUEUE: reject: RCPT from ...
0
votes
0answers
16 views

Wine: Application tried to create a window, but no driver could be loaded (trying to run a BAT file) [on hold]

I installed wine and I'm trying to run a .bat file called "startserver.bat" However, when I type wine startserver.bat, I get the following error: Application tried to create a window, but no driver ...
3
votes
2answers
34 views

Disk busy is close to 100% and iowait is 0,0% on SunOS, how can it be possible?

During monitoring of SunOS5.10 machine I noticed strange behavior: Disk busy is close to 100% Disk waiting time is 0,0% Primary purpose of this machine is running application server on jvm. This ...
1
vote
5answers
42 views

grep words around a token

I have some lines in a file like: This is one word1:word2 of the lines This is another word3:word4 of the lines Line without a match Yet another line word5:word6 for test I need to grep ...
0
votes
0answers
22 views

System CPU Time and User CPU Time Calculation for a Process in Linux

I want to calculate CPU time consumption of a particular process in system mode and user mode using statistics present in /proc/<PID>. There are two fields utime and stime in ...
1
vote
1answer
12 views

Setting a shift-like key for changing language layout in KDE

Is there a way to set a shift-like (not tab-like) hot-key for changing language layout in a KDE environment so that the language layout toggles again when the key is pressed and toggles to the ...
1
vote
2answers
47 views

Compare and print data from different text files to one in Shell

How can I compare and print data from different text files to one in Shell. I have captures NAS details of three different boxes using SSH, now I need to combine all the three text files to one file ...
0
votes
2answers
31 views

Debian Jessie updates

I've installed Jessie about 2 months ago (from a fresh download from Testing), and I never see package updates notifications. And I am never asked to download anything. Is there something I have to ...
0
votes
0answers
5 views

Logitech G700 keys suddenly mapped to wierd keys

So the point of this is more to investigate what happened for anyone else that may come across the situation. I have a logitech G700S 046d:c531 using Linux Mint 17, and it detected fine with all the ...
3
votes
1answer
33 views

losetup /dev/loop0 disappears after some time

at the moment I do some tests with loop devices on Linux/Ubuntu. In a small test script I have the following commands: #!/bin/sh rm testfile.x dd if=/dev/zero of=testfile.x bs=1M count=1200 losetup ...
0
votes
0answers
42 views

Disable certain keystrokes for SSH users [on hold]

I wrote a script to disable some keyboard keys while a user is logged in from a terminal, but when a user connects to server via ssh with software like putty, commands like showkeys, loadkeys doesn't ...
1
vote
1answer
38 views

Difference between / and // [duplicate]

On the bash prompt one, three or more slashes (/,///,////, ...) are treated as a single slash, whereas two slashes (//) are left as is: 12:07 $ cd / 12:07 $ pwd / 12:07 $ cd // 12:07 $ pwd // 12:07 $ ...
1
vote
1answer
10 views

No build scripts available when compiling module outside of Linux source tree

I am attempting to build a basic module outside of the Linux source tree (3.18.0-rc6). When I build it, I get an error saying it couldn't find scripts/... My directory setup looks like this ...
1
vote
1answer
12 views

I would like to install Linux Mint on a separate hard drive than my windows installation on the same computer [on hold]

As the title says I would like to install Mint on an empty hard drive on my computer that has Windows 7 installed on it as the main drive. It would seem that this is not difficult but having tried ...
0
votes
1answer
15 views

Configuring zlib for compiling and installation

I am trying to install zlib-1.2.8 from within "/root/tmp/zlib-1.2.8/" but I think my configuration options are incomplete. The configuration command that I'm using is: ./configure ...
4
votes
1answer
23 views

Save scratch emacs file without access to terminal

I'm trying to save the contents of an Emacs scratch buffer, which I can't access any more due to an inaccessible terminal. On my Linux box I've ssh'ed to a server, and started Emacs. My Linux box has ...
1
vote
1answer
15 views

no pwm-capable sensor modules installed on MSI B75MA-P45

I am using a MSI B75MA-P45 motherboard on Centos 6 and my CPU fan is currently stuck at 100%. I can see RPM of the fan and temperature inside my BIOS however when I run sensors-detect I only see CPU ...
0
votes
1answer
22 views

What does newermt mean in find command?

I know I can use this option to find file between particular modified times. But I'm curious about what does this mean? I used man find | grep newermt trying to find something. But I got no direct ...
2
votes
2answers
35 views

How will apt-get handle my manual installed software?

Suppose the Emacs version in the APT repository is 24.3, I configure && make install my own emacs 24.4. After a long time, the software in the APT repository was updated to 24.5. What would ...
3
votes
1answer
74 views

Windows boot option is missing after installing CentOS 7, how can I get it back?

I recently installed CentOS 7 on a machine that has been running Windows 7. I did a dual boot installation and installed CentOS in a partition. But when I boot up my machine, it only gives me two ...
0
votes
0answers
3 views

How “-fstack-protector” and “FORTIFY” option are different? [migrated]

These days I'm searching for the secure coding guide, and there is an option to prevent the buffer overflow. one, $gcc -fstack-protector -S test.c $cat test.s two, $gcc -O -D_FORTIFY_SOURCE=1 ...
0
votes
0answers
14 views

Trouble writing a C shell command that will customize the “who” utility to display both the “date” and “who” [on hold]

I can write a command to customize one command to 'who' but I can't figure out how to do more than one command. I need to be able to in the c-shell assign a command to who using the 'alias' command. ...
1
vote
0answers
8 views

XKB: Can I have an eight-level key and have Ctrl participate in selecting it’s levels?

Is there an XKB way to generate a key event, form a normal key combo which includes Ctrl without having the ctrl modifier bit set? Or the same question asked in another way: Can I have an eight-level ...
1
vote
1answer
16 views

'hhighlighter' wrapper script saying command not found

I have gotten the wrapper script 'hhighlighter' from https://github.com/paoloantinori/hhighlighter which colors anything you want in stdout. I followed the instructions about installing ack-grep, ...
1
vote
2answers
19 views

ps to show only processes that match more than one condition (AND)

According to the ps man page: Except as described below, process selection options are additive. The default selection is discarded, and then the selected processes are added to the set of ...
1
vote
1answer
25 views

Dual boot windows and linux

I have Windows 7 installed, and I have just installed Linux Mint 17. The PC automatically boots into Linux now. How can I get a dual boot startup screen with Windows 7 and Linux? Are there any UI ...
0
votes
0answers
29 views

rsync --delete doesn't delete all files

This is the script I have so far rsync -avz -e ssh --delete /tftp/ username@192.168.1.51:/tftp/ I want it to completely copy every directory/file in /tftp/ and overwrite everything in the ...
2
votes
1answer
23 views

Command Line Macros in Comments using SLURM

In my opinion, comments are comments are comments. They should NEVER change program state. Sadly, the people over at SLURM disagree. SLURM requires the following syntax (or something similar) to ...
0
votes
0answers
9 views

Xorg.bin 100% CPU usage after switching TTY [on hold]

I'm on Arch Linux. After I switch between TTYs, Xorg goes berserk and consumes all CPU (actually just two cores, but it says 99%). It's entirely frozen and I have to kill it via SysRq. Here's my ...
0
votes
1answer
7 views

LXDM resolution too small on laptop when started with external screen

I have a laptop with small screen resolution, and when I connect external monitor before boot, it keeps resolution of the laptop screen, until I log in. I'm using LXDM. How to fix it?
1
vote
1answer
25 views

No connection after plugging in ethernet cable (WiFi works fine) [on hold]

I've read all that came up on Google, but to no avail so far. I have Arch Linux on my laptop, Thinkpad X201. Wireless works perfectly, I have wpa_supplicant and dhcpcd in rc.local and it connects ...
0
votes
1answer
38 views

Bash script class path issue with java

jvm.script.sh /opt/scripts/jvm/jvm.script.sh #!/bin/bash JAVA_HOME='/java' PATH="$PATH:/$JAVA_HOME/bin" java -cp ./classes:./lib com.mystuff.bar.foo.myclass & init.script.sh ...

15 30 50 per page