All Questions
1
vote
0answers
6 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 ...
1
vote
1answer
11 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
11 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 ...
3
votes
1answer
28 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
3 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:
...
2
votes
1answer
38 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
24 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
21 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
9 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
13 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
10 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
27 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
8 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
12 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
23 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
2answers
49 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 ...
3
votes
1answer
159 views
License of source code when the license is not indicated
when a source code is released on the internet and the license is not indicated and nor copyright, then what is the license code?
I can make a fork of the code?
2
votes
1answer
19 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 ...
-4
votes
0answers
36 views
Bash scripting: I am moving one hour old log files from host to rackspace cloud storage [on hold]
I am working on the cloud, using turbolifter to move one hour old log files from my server to rackspace cloud storage but it is not working due to a python issue.
Therefore I'm using this script, but ...
0
votes
1answer
16 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
31 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
15 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
1answer
24 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
12 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
1answer
66 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
21 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
16 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
10 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
31 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
20 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
23 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 ...
0
votes
0answers
9 views
interface name problem in pfsense
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
142 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
27 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
3answers
76 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
25 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
...
1
vote
1answer
24 views
write command does not work
I have 2 users : User1 is connected on tty1 and User2 is connected on tty2.
The output of mesg on both ttys is is y.
On tty1, when I type write User2 tty2, I get write: User2 has messages disabled ...
0
votes
0answers
21 views
Fedora 20 won't boot
It flashes to a blank screen a few times, perhaps trying to load cinammon desktop, then hangs here
I accidentally chowned the ownership of everything in /var to the apache group, which caused a few ...
2
votes
1answer
17 views
Option --skip-slave-start Not Working with Systemctl
I just started with centos 7. I'm trying to get replication working and am attempting to start mysql without starting the slave (so that I can set the pointers as to where it's supposed to resume ...
1
vote
2answers
38 views
pipe in shell with redirection
My understanding is that a pipe in shell like a | b redirects b's stdin to a's stdout. However, I tried ls | less < somefile, the behavior is very strange. less shows the output of ls concatenated ...
2
votes
0answers
20 views
Can I use my SIM card slot to telephone?
My laptop (a Thinkpad T440) has a SIM card slot which is meant to be used for internet, though I haven't tested that yet since I don't have any SIM cards with internet contracts.
However, is it ...
0
votes
0answers
7 views
Tegra Mesa GLES without X
I am trying to setup a Tegra 3 (Toradex Apalis T30) based system that will have an OpenGL ES based user interface on a touch screen. Unfortunately the standard Linux4Tegra kernel is seriously outdated ...
1
vote
0answers
16 views
Convert BIOS booting to UEFI in existed linux installation
I have debian installed on HDD with GPT partition table. But it installed with BIOS compatible mode. Now I want to boot it from native UEFI. How can I do this?
Ofcource I have motherboard with UEFI.
2
votes
0answers
27 views
Shell script for automated kernel compilation
I am trying to write a shell script to build a custom kernel on Arch Linux.
I have succeeded to do write all the steps described in the Arch Linux kernel compilation page:
...
2
votes
0answers
7 views
Can I connect to Multiple Bluetooth devices using a Bluetooth dongle?
I am using a usb bluetooth adapter on my PI 2 , which communicates to an arduino using HC-06 Bluetooth module. This script runs to connect to that module:
#! /usr/bin/python
import serial
from ...
1
vote
0answers
12 views
How do I ask NetworkManager/ModemManager to run a program before pppd?
The story is not so important for this question, but here it is: the GPRS modem is locked-in to the vendor's software (it doesn't work, if it doesn't receive a correct response to a "challenge" it ...
1
vote
2answers
50 views
sort only the first column and uniq
I have a list as such below:
1,cat
1,dog
2,apple
3,human
I'd like an output like this:
1,cat,dog
2,apple
3,human
So value 1 from column 1 contains the value of cat and dog from ...
0
votes
0answers
7 views
How can I maximise Netbeans window from the terminal?
I am on CentOS 6 and using VNCViewer to remote in to a box which has four monitors. The problem is VNCViewer won't allow me to click on the Netbeans Window "Maximise" square, top-right, so I can ...
0
votes
0answers
18 views
“apt-get install” ends with segmentation fault
I have a following minimalistic sources.list file:
root@c:~# cat /etc/apt/sources.list
deb http://ftp.fi.debian.org/debian/ wheezy main
root@c:~# apt-get update
Hit http://ftp.fi.debian.org wheezy ...