0
votes
1answer
4 views

How to copy a file from remote server to local machine?

In my terminal shell, I ssh'ed into a remote server, and I cd to the directory I want. Now in this directory, there is a file called table that I want to copy to my local machine /home/me/Desktop. How ...
0
votes
0answers
4 views

M17: Trying to mount Windows 10 .iso onto partition via terminal, getting “block device ? is write-protected, mounting read-only”. Can I get a help?"

I have Linux Mint 17.1 and am trying to dual boot Windows 10 Technical Preview OR install it on my other hard drive. Extra easy damage-control for you guys- I do not care if I lose any data, as long ...
0
votes
0answers
6 views

Over the Air Update for Debian

I have a Cubietruck with a Debian build. I was thinking of creating an over the air update for it. As I create modules and applications, instead of manually flashing the SD card with a new build, I ...
0
votes
0answers
3 views

sssd configuration with Active directory

I need help in configuring the sssd so that we can use Windows Active directory username to login to Redhat machine. I have below configuration file for sssd.conf file I get the following error in ...
0
votes
0answers
4 views

Cobbler+Ubuntu: Client can't find preconfiguration file

Trying to install an Ubuntu 14 host with cobbler. The host boots and configures the ethernet interface (I can ping it), then errors out with "Failed to retrieve the preconfiguration file \ The file ...
0
votes
0answers
6 views

Can BTRFS stripe RAID arrays?

I've been using an Ext3/4+lvm2+mdadm file system setup for about 5 years on a file server. This has grown (and moved processors a couple of times) and I've moved disks between systems ...
0
votes
0answers
5 views

What permissions are needed and where are they set to run the “rdump” command

My UNIX servers are Tru64 (Digital UNIX 4.0f). Most were all put in at the same time and the r-commands work, but have been disabled. The only time we enable them is on the server with the tape ...
0
votes
2answers
11 views

Running bash script with sudo, and git inside of it

I have such a bash script: #!/bin/bash cd /home/user/projekt git config core.sparseCheckout true git pull origin master wait rm -rf ...
3
votes
3answers
38 views

Want to substitute only first occurence with sed

Original file claudio antonio claudio michele I want to change only the first occurrence of "claudio" with "claudia" so the file result claudia antonio claudio michele I have tried sed -e ...
0
votes
0answers
4 views

Bluetooth on at startup in openSUSE

I just installed openSUSE (dual boot with Windows) on my thinkpad T420 and after the install for some strange reason my Bluetooth is on when I turn on my computer. Both in Windows and openSUSE my ...
0
votes
1answer
10 views

find files with two types of extensions last modified over 30 days ago

I want to find all the files in a directory that have not been modified for at least 30 days and end in .xml or .out. This is my attempt to cobble together a couple of references to build the right ...
0
votes
0answers
27 views

Unable to print awk'ed datum in bash script

I am dumping datum into a csv file (my_datum_file.csv). The contents are all comma seperated, and I want to find the last instance of the 4th parameter (i.e. the last instance of datum regarding MX3, ...
1
vote
1answer
7 views

How to print incremental count of occurrences of unique values in column 1

I'm trying to come up with an solution to this problem, I need to incrementally count and then print the counts of the unique values in column 1 of a tab delimited text file. Here is an example: ...
0
votes
1answer
11 views

Error - Segmentation Fault

I am trying to run DQN, which is some AI for Atari. Upon launching the program (sudo bash run_cpu < the_name_of_the_game >), I get the following error: run_cpu: line 46: 9377 Segmentation ...
0
votes
0answers
6 views

U-Boot Bootup error

I'm running a Debian Linux on a Cubietruck, running off a SD card. When I power on, I get the following error: Booting kernel from Legacy Image at 46000000 ... ...
1
vote
0answers
7 views

How to check whether CAN bus controller's drivers are presented in my Debian Wheezy?

I've heard that Linux kernel has native CAN bus support at network layer since some years, with a lot of drivers for both embedded and USB CAN bus controllers, how do I check whether they are ...
0
votes
1answer
6 views

unable to locate package software-centre on chromebook

I've just installed Ubuntu via crouton on my hp chromebook 14, but I need to install software centre as I can't do anything without it. I try to run apt-get install software-centre but it returns ...
1
vote
0answers
4 views

NAT External IP to local server using iptables

I have a adsl connection with static IP (lets say 1.1.1.1). My debian firewall connects Internet with ppp and IP is assigned to firewall directly; ppp0 Link encap:Point-to-Point Protocol inet ...
0
votes
0answers
3 views

Kolab on FreeBSD

I want to install Kolab on FreeBSD 10. It seems there are no precompiled packages available, so I have to compile from source. On Kolab's Git server the latest Kolab server available is version 2.3.4 ...
0
votes
1answer
17 views

tcpdump -i any and promiscuous mode

From the man page for tcpdump 4.1.1 (yes I know its old) -i Listen on interface. If unspecified, tcpdump searches the system interface list for the lowest numbered, configured ...
1
vote
0answers
19 views

How do I prevent just 'exit' from being saved when I close an SSH connection?

When searching for a way to do this on Google, all I can find are ways to quit the session without saving history (like kill -9 $$), but I have the opposite problem. I want to save all of my history, ...
0
votes
1answer
26 views

Creating multiple input files by using sed in a for loop

I am a newbie and wasted a lot of time on this so any help is greatly appreciated. Suppose I have a simple Mathematica script file named "a.m" which contains the parameter 'a' with no assigned value: ...
0
votes
0answers
10 views

Authentication error with apt-get

I am trying to install CppCMS (A C++ network library) on my Debian computer. I have added the repository sources to sources.list file. When I run: $ sudo apt-get source cppcms I get the warning ...
1
vote
1answer
16 views

dd'ing SDD, decreasing write speed

My hard drive is a SanDisk SSD. The drive is new. I've booted into ArchLinux Live System, with the intention of preparing the hard drive for full disk encryption. I've noticed a significant drop of ...
0
votes
3answers
24 views

Change Multiple (Including No) File Extensions

If I have a directory of files, where some files have an extension like .html and some files have no extension, how do I change them all to, e.g. .txt?
1
vote
1answer
15 views

Adding new attribute to existing xml file using sed or awk

I have a xml file which contains below details: <server> <mbean code="WSMQConnectionFactory" name="service=MQQueueConnectionFactory"> <attribute ...
1
vote
1answer
15 views

use mutt to send email through specific port on CentOS 7

What specific syntax do I use to get mutt to send an email through port 587 on a CentOS 7 server? For example, the sender is me@mydomain.com, the recipient is someone.else@someotherdomain.com, the ...
0
votes
2answers
13 views

Is there a way to store tab seperated values into a 2-d array

I have been looking for a solution on this online but could not get much information (most multi-array examples are not being created from text docs) so here it goes. Say I have a script that reads in ...
0
votes
2answers
19 views

I want to condense a list of ranges (from-to)

I have data involving codes assigned to ranges in the form of From To Code 0 5 A 5 10 A 10 15 A 15 20 B 20 25 B 25 30 A 30 35 A 35 ...
0
votes
1answer
17 views

why isn't this expression finding whitespace after the date?

I'm using sed to find any expression that matches a date in the format 00/00/0000 with any amount of whitespace after and simply replace it with the letter h. I made the expression: sed -E ...
2
votes
0answers
6 views

Thunderbird displays IMAP folders incorrectly (gmail account)

I have set up Icedove (Thunderbird) to use my gmail account with IMAP. I would like to have my IMAP folder structure gmail.com - Inbox - Drafts - Sent - Trash However, the actual ...
1
vote
0answers
11 views

Protecting Registers in Context Switch

I'm working on implementing a cryptographic algorithm. I'm using locked memory pages to keep sensitive data (such as keys and intermediate values) locked in RAM (having them never be written to ...
0
votes
0answers
5 views

HW RAID10 without TRIM support with SSD

Recently we purchased new server for Database with 1TB x 4 SSD in Hardware RAID 10, but my Hardward RAID doesn't support TRIM so you think it is going to be big deal? Is there anyway i can do ...
0
votes
1answer
19 views

Avoid conversion to scientific notation in awk

I have a csv file that contains hundreds of columns. I would like to subtract the value of a specific column from a static number and then print the entire line. The values of that column are long ...
1
vote
2answers
30 views

How to grep over a variable

I have a scenario like VAR = `Some command brings the file path name and assigns it to VAR` For example VAR can have value like /root/user/samp.txt I want to grep command like grep HI $VAR ...
0
votes
1answer
16 views

Processing output from an sqlite db into a ksh array with spaces

I am querying an SQLite3 database like so: input=$(-separator "," "SELECT field1,field2,field3 FROM table1") and get this result: Red,Yellow is a color,Blue I need to insert this into an array, ...
0
votes
0answers
32 views

How to password protect a file?

I have the script called Linux.sh. I want it to be executable by everyone on mobaxterm(collection of Unix utilities for windows machine), but others should not be able to edit the script. Only i ...
1
vote
2answers
19 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 ...
1
vote
0answers
9 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
17 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
1answer
19 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 ...
0
votes
5answers
140 views

How to get current working directory? [duplicate]

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
4 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
4answers
44 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 ...
1
vote
0answers
18 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
45 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
2answers
16 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
2answers
19 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
21 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
14 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 ...

15 30 50 per page