0
votes
0answers
3 views

how to password protect a file?

I have the script called Linux.sh . I want it to be executed by everyone on mobaxterm, others should not able to edit the script. Is there any way to password protect the script.
0
votes
0answers
7 views

Minimal virtualization environment

I'm using a virtual machine running Windows for development purposes inside a Ubuntu host (I also use the Ubuntu part for my regular activities, but not both at the same time). As I need to compile on ...
0
votes
0answers
2 views

Handle mouse and keyboard usb device in udev

I'm trying to set up usbip on our thin clients to forward (almost all) USB devices to the server. What I don't want to forward are all input devices and all hub / virtual devices. So I want to ...
0
votes
1answer
13 views

Unplug a new hard drive without umount?

Before I unplug a external hard drive with file systems, I use umount. But my new hard drive doesn't have anything on it yet. (no file systems). I connect it to my laptop using a sata-usb adapter. Is ...
0
votes
0answers
7 views

Which way is safer to read data from /sys

I am attempting to write a program that will monitor the temperature of various hardware components. The language I chose for it is Java. Now there are two ways I could read the temperatures: a) Do ...
1
vote
4answers
48 views

How to get current working directory?

I want to have a script that takes the current working directory to a variable. The section that needs the directory is like this dir = pwd. It just prints pwd how do I get the current working ...
0
votes
0answers
3 views

How econfigure hex code of my 'CancIsert' key?

Stating I'm using MintMATE and that I've done the homework of checking fields in the 'Keyboard Shortcuts' applet... My 'CancInsert' key inadvertently and without an apparent logic reason doesn't do no ...
1
vote
3answers
27 views

Completely buffer command output before piping to another command?

Is there a way to only execute a command after another is done without a temp file? I have one longer running command and another command that formats the output and sends it to a HTTP server using ...
0
votes
0answers
11 views

How to check a new hard drive?

I have a new SATA hard drive. I plug it to my SATA-USB adapter and then to my laptop. I found it by lshw *-scsi physical id: 2 bus info: usb@1:1.3.2 logical name: scsi10 ...
0
votes
1answer
32 views

Is Linux really more vulnerable than Windows and Mac? [on hold]

These days, I have seen many articles in the internet like this one that are trying to say that Windows is now less vulnerable than Linux. I think this is the number of solved issues so it means more ...
0
votes
1answer
10 views

Generate major page faults

Is it possible to generate major page faults in the linux kernel at will? Can a program be written such that it is guaranteed to cause a major page fault on it's execution.
2
votes
1answer
11 views

Override a few keycodes with XKB

I want to shuffle a few keys around with XKB. (Why? On a laptop where some keys are inconveniently located.) I currently use xmodmap: keycode 110 = Prior keycode 115 = Delete keycode 112 = Next ...
2
votes
4answers
19 views

grep and print how many times my pattern in file 1 is present in file2

I have a file1 (list of my pattern) like this: file1 Fatty_acid_degradation Aminobenzoate_degradation Amino_sugar_and_nucleotide_sugar_metabolism Amoebiasis and I have a file2 (list of all the ...
1
vote
1answer
13 views

How can I resize an md device in FreeBSD?

I have 1GB RAM installed and I want to enlarge both nodes md0 and md1 /dev/md0 38M 216K 35M 1% /tmp /dev/md1 58M 20M 33M 39% /var I tried this ...
0
votes
2answers
14 views

Use wine without user interaction

I want to run a Windows executable (a console application) from a shell script. This script is part of a bigger project that automatically builds packages, so I need to avoid user interaction. ...
2
votes
2answers
20 views

Why is a variable passed to the su command, but not an array from the same scope?

In the example below, why does $var get passed to the su in the start function, but not the array modules ? #!/bin/bash var=cat modules=( one two three four ) start() { su gleventh -c "for i in ...
0
votes
1answer
6 views

How to inspect local dsc package (need to check 'section', 'priority')

I am managing repository with a with reprepro. Sometimes I need to upload source packages to the repo. For several packages reprepro asks for additional information: $ reprepro -b ...
1
vote
0answers
12 views

Problem with pkg behing a chunking proxy

I have a freshly installed FreeBSD 10.1 at work in a VM. As it is behind a corporate proxy, I had to set HTTP_PROXY in environment and it began to run fine. But no way to get pkg to work correctly. I ...
0
votes
0answers
4 views

Re-enabling the console once the kernel is up, if silent mode was set in Uboot?

I have enabled the silent mode by setting the U-boot env variable "silent". Uboot-> setenv silent 1 Uboot-> saveenv Now, I would like to re-enable the console once the kernel is up. Can ...
0
votes
0answers
6 views

Thunderbird: server connection slow after restoring backup on Mint

I've made a copy of the .thunderbird folder in my home directory (on Ubuntu 12.04) and restored that backup on a freshly installed Mint 17.1 Cinnamon using the Profile Dialog of Thunderbird. ...
0
votes
0answers
4 views

Fedora 20 KDE: shortcut for airplane mode

is there a possiblity to have a Keyboard shortcut (e. g. fn + f10) for the airplane mode (Switch off all wifi Connections) under KDE (Fedora 20)?
0
votes
0answers
15 views

Debian IPv6 Works off and on

I have a problem where when I boot my server IPv6 works. I can ping an IPv6 address for however long I want and it will continue to work. However whenever I stop using it and let it sit for maybe ...
0
votes
0answers
16 views

Ubuntu script not working as desired

http://bernaerts.dyndns.org/linux/74-ubuntu/309-ubuntu-dual-display-monitor-position-lost The above link contains an Ubuntu script to reset the second monitor position, however when used under ...
0
votes
0answers
5 views

error in build to process builder in java

I have devloped myself tagger and I want to host on the web. my server is based on jsp. But This tagger is based on svmtool and it has been written in Perl script. That's why, I have created one ...
2
votes
1answer
24 views

Make links work in backup?

One file system of mine has many symlinks which link to directories in the file system. Is it possible to create a backup of the file system where the backups of the links work (i.e. still point to ...
0
votes
1answer
21 views

Find and convert all ALAC files to mp3 / opus / aac

I'm looking for a way to convert all alac files in a directory recursively to another format. Problem: alac as well as aac use suffix m4a, so find -name "*.m4a" doesn't work.
1
vote
1answer
21 views

After reinstalling Linux Mint, Windows 7 does not boot

I had a dualboot setup in my computer: On one side, Linux Mint ( /dev/sda2 ), on the other, Windows 7 ( /dev/sda3 ). I ran into some weird problems with Mint, so I decided to install the last version ...
0
votes
1answer
35 views

Why would the prompt get overwritten?

p_ash-3.2$ cp some_file1234.html /some/loc/ation/ofthe/some_file1234.html.html_Backu Have been seeing this intermittent issue with the command-line, while typing longer lines as part of any command, ...
0
votes
2answers
19 views

adding PATHs for a bunch of programs

I have a big list of programs (samtools,annovar,bra,bedtools etc) in a "Programs" folder. I have read lots of posts about exporting the path, so that I do not need to identify the whole path to the ...
-1
votes
0answers
5 views

Fedora 20: how to show effect of nmcli command in KNetworkManager?

I have installed a Fedora 20 (KDE) Linux on my notebook that runs just perfect. However, when I enter into airplane mode on the command line by 'nmcli r wifi off' the GUI of the KNetworkManager does ...
0
votes
1answer
17 views

Syntax highlighting and export EPUB format

I need to write RTL format and finaly export as Epub (pdf as freedom).I need to explain my codes and somthing such as syntax highlighting, Do you have any solution? UPDATE: My question has 2 aspect: ...
0
votes
0answers
5 views

How to convert the qemu parameters for an osx guest for libvirtd

I managed to have an osx guest running in qemu with the following commands: // create the virtual image $ qemu-img create -f qcow2 mac_hdd.img 35G // .. install osx ... // start the guest $ ...
0
votes
0answers
4 views

Cannot exit full screen in Pantheon terminal

Pantheon terminal is always in full screen. I cannot find ant way to change change the size of the terminal. Can someone please help me figure out how to do this?
0
votes
0answers
9 views

What SMART attributes are common for HDD and SSD?

I wrote an application on my Linux machine with an HDD that detects these SMART values (Names are as written here) Re-allocated Sectors Count. Power-On-Hours. Command Timeout. Offline ...
0
votes
0answers
9 views

Customized Restricted shell

I want to implement authorization of bash commands.I started with TACACS+ Server and tacplus package.I did not find a way to do that.After that I Implemented some restricted shells.first bdsh that was ...
1
vote
2answers
26 views

Appending an input file with awk after a pattern (looping?)

I am trying to take a text file called 'input', of the form line1 line2 line3 PATTERN x y z x y z lineN and use awk to place a number (1) after each "x y z" line. I need the lines before the ...
2
votes
2answers
17 views

Why in vim is the first operand in move (m) 1-based and the last operand 0-based?

Given the following file 1 2 3 4 5 When I say :1m3 the file looks like this 2 3 1 4 5 But when I say :3m1 it looks like this 1 3 2 4 5 I thought the 3 should be before 1. Why is it like ...
0
votes
2answers
42 views

use `mv` command and my file gone [on hold]

i want to move myfile.tar.gz to folder My command is mkdir backup mv myfile.tar.gz /backup arrrgh, and the file gone in /backup directory not exist, try using find command not shown how to ...
0
votes
1answer
31 views

how to list users in a group and their passwords

How do I view a list of users in a specific group and their passwords or attributes? I know to use cut -d: -f1 /etc/passwd But this only lists users.
0
votes
0answers
17 views

Improper shutting down results in corrupted OS

While shutting down ubuntu 10.4,switching off the system manually when blank screen appears before getting it power off by itself, Result in unclean shutdown on next booting and corrupted OS( improper ...
1
vote
1answer
21 views

remove lines where a field's value is less than or equal to 3 - sed or awk?

I need to remove every line that has a value of 2 or less in the 8th field (column). My data looks like this: 12-31 Airport 189 379 41 49.70946503 -124.91377258 2 2880 30.8 01-01 ...
0
votes
0answers
11 views

Help filtering logs - auditd

System: RHEL release 6.3 (santiago) Issue: Once I start the audit service I'm starting to get thousands of logs in /var/log/audit/audit.log Most of the logs received are of - sshd Log sample: ...
0
votes
0answers
23 views

convert from one memory format to another and find the difference between them

Using shell scripting, how can I convert from one memory format to another and find the difference between them? I want to compare current rate and previous memory rate (Where we need to compare ...
0
votes
1answer
16 views

Apache: rewrite or redirect?

I need to redirect an URL with a variable, eg. http://www.mydomain.com/foo/55555 should go to http://www.mydomain.com/bar/55555 where 55555 is a variable number. Do I need to use redirect or ...
0
votes
0answers
5 views

common-account line read order

My authentication is centralized in a LDAP. I've one login system who is working without any ldap so it's present in my /etc/passwd file. This my common-account file in pam.d directory. account ...
0
votes
1answer
11 views

How to search parenthesis by ack

I want to search for a parentheis ( using ack, but neither using ( nor \( worked. The first one ("(") is recognized as a multiple line command. The second one ("\(") is treated as an invalid regular ...
0
votes
0answers
12 views

Getting started with D-Bus using C++ and systemd

I'm trying to get up & running with systemd dbus on my Linux desktop machine. What is a good place to start ? Is there an exhaustive documentation of systemd dbus API ? My first goal is to enable ...
2
votes
0answers
15 views

How to monitor UPnP communication?

My Computer is connected to router that supports UPnP, however it's not the last router on the way to the WAN. So, mapping there has no effect. I've got VPS and I've made a VPN network (computer ...
1
vote
1answer
19 views

How to replace string of the file, which is present in tar file through UNIX

I have a tar archive xyz.tar containing lots of .sh files like: 123.sh 456.sh 789.sh Every .sh file has some string content, e.g. 123.sh contains welcome to Hollywood, 456.sh contains I love ...
0
votes
2answers
50 views

How do I move a line in a text file up or down by one line?

I have some text files, and I'd like to be able to move an arbitrary line in any of the files up or down one line (lines at the beginning or end of the file would stay where they are). I have some ...

15 30 50 per page