0
votes
0answers
14 views

Starting Daemons in specified order

I would like to load some custom daemons I have made in a certain order. One daemon starts xflux and one starts the x server. Is it possible to make the xflux daemon run only after the startx daemon? ...
0
votes
1answer
20 views

Best solution for WebServer in Web developer's company

I'm looking for best solution about hosting web projects on linux server. My focus is on permissions and ACL's. Example We have 3 project and 3 developers , They have access to files via Samba Share ...
-3
votes
0answers
21 views

Daily mail with bash scripting [on hold]

We write daily base automated script for check data is available or not on some specific folder on that basis subject need to be change script trigger mail after complete data checks. Means if data is ...
3
votes
0answers
26 views

rsync's --link-dest option does not link identical files if an old file exists

One might think that --link-dest'ing to an identical file would work in all cases. But it does not when the file exists, even if the file is out of date/has different contents. It is because of this, ...
0
votes
1answer
7 views

Install Mesa to home folder and make applications use it from there

I'm trying to help debug an issue with Mesa and the llvm r600 shader compiler, and would prefer not to install the test compiles of these packages system wide. My question therefore is: How can I ...
0
votes
2answers
50 views

How to print an element from the corresponding immediate next column after searching the element in the current column?

I have thousands of lines as seen in the following list. file name = "textfile" 3 2 3 1 4 7 5 8 6 8 9 8 8 9 4 7 3 9 2 3 4 4 9 2 2 2 0 9 4 0 0 9 8 2 4 0 I have to search a particular element – ...
2
votes
1answer
29 views

How to list directory/file sizes in general on UNIX-like systems?

In general on a UNIX-like system (Linux, AIX) the following can list file/directory sizes in MByte, even if the filename is starting with a "-": du -sm -- * 2>/dev/null | sort -nr | head -25 ...
1
vote
1answer
38 views

How to know which platform I am using in lubuntu, ubuntu or kubuntu

I need switch script in between lubuntu, ubuntu, and kubuntu. How can I know which platform the script is running in? Because uname/lsb_release never show different in those 3 releases Lubuntu$ ...
1
vote
2answers
42 views

Parsing C Style Multiline Comment

I want to filter non-commented javascript with sed and output the line number Here is the example: /*! * jQuery UI 1.8.17 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual ...
1
vote
1answer
29 views

How to use convert command with bash to resize all images in a given directory?

I want to resize all PNG files in ~/somefolder/ whose filenames are NOT started with tn_ to 50% of its original size and rename the output file with a tn_ as its prefix and its original name. I know ...
0
votes
1answer
38 views

FIle hole - how is it represented? [on hold]

The linux programming interface says, file hole don't take up disk space in general, I did google but didn't found answer to following question: If it don't take up space, then how the file system ...
1
vote
1answer
63 views

Missing file command?

I'm running OpenMediaVault which is a Debian based Linux distribution and the file command is missing. Is there any way to install it?
0
votes
0answers
28 views

how to test login command in unix using shell script?

IN shell scripting I am using as : sudo login $user && echo 'yes' and expecting "yes" as output. But its not as per expectation. ****Actually my task is to automate "login" command to test in ...
2
votes
1answer
42 views

Are encrypted volumes more vulnerable to power loss?

I have some encrypted volumes that I use with my Xubuntu machine. One volume is a container file that is mapped to /dev/loop0 and encrypted using plain dm-crypt; another volume is a USB hard drive ...
1
vote
1answer
31 views

awk script to rearrange similar rows

I want rearrange about 5 million rows (with 300 columns) into groups. Data looks like the following: where there were various experiments (column 2) conducted at different locations (column headers ...
5
votes
2answers
391 views

How are mutually untrusted app's files protected in Linux

I am running a Ubuntu Linux machine. When I run applications written by different vendors like Chrome and Firefox, I notice that they all are running with my uid. But if that's the case, any file they ...
1
vote
1answer
16 views

How to exclude the folders proc and sys from search with find command ?

I wanted to execute a script that picks out a random directory path: find / -type d | shuf -n1 Unfortunately I get error messages about the prohibition of entering certain directories. How can I ...
4
votes
1answer
69 views

How to perform the watch command onto expression with pipes?

I learned today the wonderful shuf command: ls | shuf shows me a listing of the working direcotry, but thanks to shuf each time I execute this piped command expression with another order. So I ...
0
votes
0answers
15 views

GNOME Wacom Tablet settings pannel don't show Waltop Evo tablet

In general, Waltop Evo Graphic Tablet works but I can't configure it with Wacom Tablet settings pannel (Settings>Wacom Tablet). It shows "Please plug in or turn on your Wacom tablet ..." More info: ...
5
votes
1answer
319 views

How to copy a file several times into randomly choosen paths within the filesystem?

I have a filesystem and a special file foo. I would like the script to choose several times (5,10 or 100) random paths to folders within this filesystem and to copy the file foo into each of them. ...
3
votes
1answer
30 views

Question on environmental variable

I have Oracle jdk7 installed on my centos6. I noticed that the /etc/profile has the lines below: #below lines are added for Java export JAVA_HOME="/usr/java/latest" ## export JAVA_HOME JDK ## export ...
2
votes
1answer
25 views

How do I run two processes and find out when one ends in bash

I was thinking to do something like this: command1 & command2 wait Will this work? I want to proceed when command2 finishes, but command1 can still be running.
1
vote
0answers
13 views

Automatically logout of cinnamon after period of idle

I have been searching around and I have been unable to find something that can logout of a cinnamon session after a period of inactivity. I am running Fedora 21 and I do not want something that will ...
-2
votes
0answers
26 views

Wine and sketchup install produce Bad EXE format error

Please help me figure out what the cause of this problem: $ WINEPREFIX=$HOME/.wine64 wine64 tmp/SketchUpMake-en-x64.exe fixme:service:scmdatabase_autostart_services Auto-start service L"MountMgr" ...
0
votes
0answers
13 views

What is the Install feature of gnome-font-viewer doing behind the scenes?

I'm attempting to install some OpenType fonts, system-wide. It seems that the standard procedure for this is to copy the .otf files into either /usr/share/fonts/ or /usr/local/share/fonts/ and then ...
0
votes
4answers
35 views

AWK print regex pattern

I am trying to print a regex pattern for the following piece of mail log. In particular I am trying to get the ID between the square brackets (see the second line for reference). Mar 29 03:48:13 ...
0
votes
0answers
9 views

Removing embedded artwork from video files

How can I remove embedded artwork for video files (.mp4, m4v)? I've found eyeD3 but that doesn't work (gives me this error No ID3 v1.x/v2.x tag found!) and seems to only be for .mp3 files.
2
votes
0answers
18 views

Why am I losing audio on VLC when playing HQ videos?

I am having a problem with VLC when I play HQ videos (720p and higher): when I try to look for a particular scene (say I am playing a movie and want to get to go to 30 minute mark) the sound goes off. ...
1
vote
1answer
27 views

How can I detect that not enough options were passed with getopts

I want to add a line of code that tells the user that enough arguments were not given (may be an error message somewhere. but i am not sure where?) blastfile= comparefile= referencegenome= ...
2
votes
3answers
66 views

How to take variables from another Makefile in shell script

I want to use the variables from another Makefile under the directory ~/kernelbuild/linux-3.14.37 in my own shell script. Following is the variables that I need: VERSION = 3 PATCHLEVEL = 14 SUBLEVEL ...
7
votes
2answers
652 views

License of source code when the license is not indicated

When source code is released on the internet and neither a license nor a copyright notice is indicated, what is the code licensed under? I can make a fork of the code?
2
votes
1answer
26 views

Why does chmod succeed on a file when the user does not have write permission on parent directory?

I am trying to understand file/dir permissions in Linux. A user can list the files in a directory using cd test ls -l Even if the user issuing above commands does not have read, write or execute ...
0
votes
1answer
20 views

Error: you do not appear to have the sources for the 2.6.32-042stab102.9 kernel installed

I've just bought a new VPS with Cent OS 6.6 installed. I'm attempting to install Asterisk 11 on this VPS via command line remotely. I've used the directions here however I get this error: you do not ...
0
votes
0answers
35 views

Backup And Restore Shell Script

I have been trying to create a script that backups up a certain directory and then restores the directory. The backup works as it should but when I try run the restore function I get the following ...
1
vote
1answer
20 views

Write output from netcat to a file

I'm currently trying to write a scan port result to a text file Here is the command I tried to use: nc -vv -z localhost 1-80 > file.txt This doesn't work (that is, the error messages from nc ...
1
vote
1answer
33 views

How to interactively remove all directories matching given criteria?

My script below has two problems: The script stops after first matched directory rm -i is not quite interactive What are my incorrect assumptions that make it fail? How can I fix it? ls -1A | ...
0
votes
2answers
35 views

Can not evoke watch command with non-integer time option

I want to start the w command periodically, according to man watch the smallest possible time interval is 0.1. I tried: watch -n1 w (works) watch -n1.5 w (does not work) watch -n0.1 w ...
0
votes
0answers
17 views

Unable to log in after Fedora 21 OS upgrade

I am unable to log in to the new Fedora 21 OS after upgrading from 20, using yum. My laptop has full disk encryption and I am able to decrypt upon reboot, but when I reach the terminal login screen, I ...
1
vote
2answers
77 views

regular expression to extract information in shell script

I would to grep certain parts of some shell command output in the shell script: $ uname -r >> 3.14.37-1-lts Where I just need the 3.14.37. And also for the shell script variable VERSION that ...
1
vote
0answers
23 views

password protected samba share

I would like to have a few samba shares. Some of them should be available to everybody (this is already working) and some of them should be protected with a password (and username). For the password ...
0
votes
0answers
17 views

Which Linux Kernel supports a Thunderbolt display port in a PC laptop?

I recently got a PC laptop with a Thunderbolt display. I would like to install Linux but which Kernel version can support a Thunderbolt display?
1
vote
0answers
11 views

How to print a custom warning at the *end* of a Puppet run?

Verbose Puppet runs are verbose. To make sure the user notices a custom warning message, it would be good to print it only at the end of the run. Is this possible without major breakage of the Puppet ...
0
votes
0answers
35 views

How do I realize a Shell Script that keeps track of how long the keyboard has not been used ?

Is it possible to write a script that counts the time between two pressed keys, so that one could put a script into the crontab that checks if the keyboard had not been for longer than a certain time ...
0
votes
0answers
30 views

Unable to install windows program

I'm trying to install "Microsoft Picture It! Premium 10" but at the end of the setup i get an error message "Windows Update: Internet Explorer and Internet Tools - Setup was unable to install all the ...
3
votes
0answers
30 views

Program run in SSH accessing pulseaudio on the machine where it runs

I would like to run a program remotely (through ssh) but with audio going to the remote machine where the program actually runs. This would normally work with ALSA, but pulseaudio apparently checks ...
-1
votes
0answers
12 views

interface name problem in pfsense [on hold]

when I am downloading Pf-sense on Vmware I got this problem when I enter name of WAN interface: invalid interface name 'the name I entered' I have tried all possible name but the same problem
2
votes
3answers
158 views

Double square brackets for FreeBSD

I have this code: [[ "$1" =~ [/\\]$ ]] On linux it works just fine, but when I tested it on FreeBSD an error occured : ./projekt2.sh: [[: not found and it .. I there any alternative which would ...
-1
votes
1answer
35 views

Linux for real time production server [on hold]

I would like to know a linux OS for a real time 24x7 running production server. I have heard that RHEL is pretty stable & suitable for this type of usage. Now I would like to know how it is ...
2
votes
4answers
117 views

How can I create new shell commands?

I'm using bash, and I want to be able to execute a script just by typing its name as a command, same as pwd for example. Is there a specific directory where I need to save my script to, or any other ...
0
votes
0answers
34 views

Opening a TCP port in Linux

I am trying to establish a TCP socket between my linux server and my client running on my laptop. The TCP server code I am running is, from socket import * HOST = '' PORT = 1999 ...

15 30 50 per page