0
votes
0answers
3 views

Why is konsole reading /etc/passwd?

In relation to this question: While observing the behavior of fatrace, I notice something which concerns me. Here are the first few lines of output of the command "fatrace|grep konsole" ...
0
votes
0answers
2 views

Elementary OS only booting from USB, cannot boot to partitions on SSD (Windows and eOS)

I previously had Linux Mint Petra and Windows 7 installed on my Asus UX31a. This worked fine until I ran into some Wi-fi issues after messing around with NetworkManager. I decided since I didn't have ...
1
vote
0answers
11 views

Send text/input to all tabs

I'm using the Gnome terminal and am logged into different servers on each tab. Is there a way to send the same text/command to all the tabs at once?
0
votes
2answers
19 views

How to find files containing two strings in different lines

A real example is: I have a Python file util.py, and I changed one of the function name from foo to bar. There might be other files using foo as function name and they are irrelevant. I want to ...
1
vote
1answer
21 views

Printing in awk up to specific line and 5 more results

I'm trying to print out all the lines up to the appearance of a particular song and 5 more songs with that. The problem i'm new to the shell what I have to fix in the bellow commands? RANK NAME ...
-6
votes
0answers
31 views

How to compile openSSL [duplicate]

I'm using Cygwin on Window, trying to use THC Hydra. When I try to initiate a command, I get an error: [ERROR] Compiled without SSL support, module not available I cant find any advice on how to ...
0
votes
0answers
6 views

Google Hangouts (and Skype) does not see custom null-sinks

In an attempt to turn PulseAudio to a soundboard, I cannot make Google Hangouts or Skype see the null-sinks that I made. Do I need to trick them into thinking their inputs or something? Code for the ...
0
votes
2answers
35 views

How do I find out the emitted keycode of Fn+F6?

On my Lenovo IdeaPad Yoga 2 Pro on Windows, there is a function available Fn+F6 that should turn the touchpad on and off. But on Linux, it doesn't work. How can I find out the event keycode that it ...
1
vote
0answers
12 views

linux udev rule to load gadget module for client driver

I'm having a hard time automating loading a gadget module and bringing up the usb0 device as a eth interface. The interface in question is g_ether for a embedded Linux device and connecting to a PC. ...
1
vote
1answer
24 views

What's the difference between <Directory /> and <Directory /var/www/> in apache?

I was playing with the apache configuration files after a system restore when I noticed something I have never really though about too much. Here are the first lines of the default ...
1
vote
0answers
7 views

Update Route Entry On another DD-WRT upon New IP address (WAN) SSH linux

Update Route Entry On another DD-WRT upon New IP address (WAN) SSH I have two routers on two different gateways/ISPs but on the same local subnet (192.168). If router A (192.168.1.1) gets ip address ...
5
votes
1answer
38 views

Save password in bash script for multiple queries

I would like to know if there is a safe way to only be queried for a password once in a custom bash script, and then save it somehow to be used for later needs. At the end of the script it should be ...
1
vote
1answer
33 views

Sudo su issue on ubuntu 14.04 lts: /root/zsh can't not be found

I have recently re-installed ubuntu 14.04 lts and I installed my favorite shell (zsh) but I am having an issue now. When I type, sudo su it comes back with an error stating /root/zsh can not be ...
0
votes
0answers
21 views

xclip does not change the clipboard content

I'm trying to give the following command: echo "hi" | xclip -selection c This doesn't work? It has worked in the past, but never consistently. I also tried echo "hi" | xclip -selection primary ...
1
vote
0answers
9 views

Change Router PPPoE Via SSH [on hold]

I would like to change my PPPoE settings for my modem via SSH, I have updated my DNS using ssh like so, cd LANDevice_1_HostConfig set DHCPServerConfigurable 1 set DNSServers 8.8.8.8 fcommit I ...
2
votes
1answer
27 views

How does the system know when a file has been modified? In particular memory mapped files

If I am looking at a process from outside the process how can I tell which files it modifies? One thing I can do is track calls to write, but a process can map a file to memory and write to the ...
1
vote
0answers
13 views

Force ssh to always use SSH_ASKPASS

I want to force ssh to always use the program specified by SSH_ASKPASS. In my case the program is just a bash script returning the passphrase. The problem is, as the ssh documentation says: If ...
1
vote
1answer
27 views

I'm trying to count and print song file names using awk as following

RANK NAME BAND YEAR GENERE DOMESTIC/INTERNATIONAL 206:Reach Out, I'll Be There:The Four Tops:1978:Pop:3/2 207:Bye Bye Love:The Everly Brothers:1950:Classic:3/2 ...
0
votes
1answer
11 views

Live Linux distribution with preinstalled NVIDIA CUDA support

Is there any Linux distribution with preinstalled NVIDIA CUDA support that could be launched from a live CD/USB drive?
1
vote
1answer
41 views

Strange error (?) when I run `man` command from a folder that no longer exists [duplicate]

Let's have a look at the followings: radu@Radu:~$ mkdir test radu@Radu:~$ cd test radu@Radu:~/test$ rmdir ~/test radu@Radu:~/test$ man ls man: can't change directory to '': No such file or directory ...
3
votes
4answers
86 views

How to prepend a particular text file contents to every text file in a directory and its subdirectories?

I hate to clutter my source code files with licensing/attribution comments but some times it is a requirement. So having dozens of source code files (organized in a tree of subdirectories) written I ...
4
votes
2answers
32 views

modify file ownership for files inside tar archive

I am working as user, and I would like to create a tar archive, which when unpacked (by root) will extract its files with root ownership (otherwise root would have to change the ownership manually for ...
0
votes
0answers
19 views

Desktop appears as a terminal when viewed via VNCserver client

I have installed vnc server on a RHEL 6.5 machine using the following commands: yum -y install tigervnc-server xorg-x11-fonts-Type1 and have made the changes to the /etc/sysconfig/vncservers file ...
2
votes
2answers
35 views

SSH: “Connection closed by remote host” randomly while working on an interactive session

I am working on a remote server, on which I do numerical simulation using the OpenFOAM computational fluid dynamics library. I built a collection of Python scripts to automate my parametric studies ...
1
vote
1answer
32 views

Why CRONTAB tasks are lost when quit Putty session? [on hold]

I logged to remote computer, running under Solaris, using Putty and added some jobs to be run by cron. When I quit console and logged once again all jobs was lost. crontab -l myuser How do I ...
2
votes
0answers
29 views

Mouse not working correctly

So for the last month or so on my Ubuntu 13.10, after installing nvidia drivers and then re installing nouveau drivers (because nvidia didn't work correctly) I got a problem with my mouse. I just made ...
0
votes
0answers
19 views

Airdrop compatible

Is there anything in Linux that implements whatever it is that makes Airdrop in OS X work? I'm not really familiar with that program, so I'm not sure what protocol it's using to communicate.
4
votes
3answers
166 views

Send a specific signal to an external USB keyboard? Or, how do I fix fdopen()?

Some background: I'm trying to make the caps lock light on an external keyboard light up on-command when I run a command from the command line. Ideally it would be scriptable, so that I can use it for ...
8
votes
2answers
179 views

How can I find available network interfaces?

This is in regard to linux, but if anyone knows of a general *nix method that would be good. I booted a system yesterday with an ethernet cable plugged in. "NetworkManager" is not installed, so once ...
2
votes
0answers
14 views

lv_home is in use. e2fsck: Cannot continue, aborting

I would like to shrink my logical volume for home directory, so that I can extend volume for root. df -h /dev/mapper/vg_mitoscomp-lv_root 50G 33G 15G 70% / /dev/mapper/vg_mitoscomp-lv_home ...
0
votes
1answer
11 views

Incoming Spam Mail to my mail id's in my website

Hi i am getting lot's of incoming spam mail's to mail id's in my websites such as (info@domain.com, infouk@domain.com) mostly to info pages not to user's mail account. How to stop mail from such mail ...
1
vote
0answers
11 views

phpcurl not able to install on terminal

I am not able to install packages php and curl. But its gives dependencies error, please check below curl : Depends: libcurl3 (= 7.29.0-1ubuntu3.4) but 7.32.0-1ubuntu1 is to be installed ...
2
votes
1answer
16 views

Checking if Apache requires SSL pass-phrase

I'm thinking about restarting a client's Apache server, but I'm reluctant to do so because I know he's currently running HTTPS and I don't want to get stuck with the server prompting me for the SSL ...
6
votes
4answers
439 views

Combined `mkdir` and `cd`? [duplicate]

is there any way (what is the easiest way in bash) to combine the following: mkdir foo cd foo The manpage for mkdir does not describe anything like that, maybe there is a fancy version of mkdir? I ...
2
votes
1answer
23 views

Problem on running Script on host after connecting

I am new to linux scripting. Please help. I searched on below a lot but was not able to find appropriate answer : I am trying to make a script which I will later schedule as cronjob, so that it keeps ...
1
vote
1answer
10 views

Migrate socat init script to systemd

I use socat with following init script on debian 7.2 with sysVinit. It works perfectly: #!/bin/bash DESC=socat DAEMON=/usr/bin/socat LIB=/usr/lib/socat SOCAT_ARGS="-d -d -lf /var/log/socat.log" [ ! ...
2
votes
2answers
31 views

Check if a drive has been Zeroed with xxd and uniq?

I'm looking for a way to check if the entire binary contents of a USB device are purely 0s. I'm trying this command: sudo xxd /dev/sdb | uniq but it has no output and just runs forever. I've ...
3
votes
0answers
33 views

How to create Virtual Network for VM's

I have downloaded a Linux Live CD which I am required to do pentesting using VirtualBox . Live CD is configured for router with Pool Starting Address 192.168.2.2 . Now problem is that my router is't ...
1
vote
3answers
79 views

Why does SSH have unsecure defaults?

Why does SSH come with such an unsecure default configuration? to name what I consider unsecure defaults: root login enabled on SSH SSH protocol version 1 (which is vulnerable to MIM attacks) ...
2
votes
3answers
36 views

How to do more than one substring replace at once in bash?

I have a directory contains image files that are to be echoed in bash. While echoing, I want to replace both file name and extension in single line command. Example files: images/file_name_1.jpg ...
1
vote
1answer
12 views

Create a VPN network between a live server and private networks

I have a VPS (Cent OS 6) on a live IP. I have several other machines (All linux, mostly Cent OS 6 and a few Android devices) sitting behind NATted ADSL Routers on several sites. I need to create a ...
1
vote
4answers
74 views

How to specify matching patterns while excluding some files having a PATTERN in their filenames

NOTE: I have updated this question from what I posted earlier and hence some answers may not match with what I intend to ask. I want to search some TEXT in a set of files in sub-directories and ...
1
vote
1answer
17 views

Where is my tablet's memory card mounted on laptop?

I connected my Asus fonepad7 tablet to my laptop via usb. My laptop automatically detects it & opens. But I'm unable to find where the memory card of my tablet mounted on laptop. Just see below, ...
2
votes
3answers
71 views

What are the 3 flavours in ubuntu 14.04 LTS?

I can find these 3 flavours on Ubuntu download page, but previously, I could find only 32 and 64 bit versions. Can anybody explain about each? 64-bit 32-bit (for machines with less than 2GB RAM) ...
2
votes
1answer
12 views

Using setuid Properly

I've been scared too much by the warning about setuid. However I cannot find a way around using it. I want to be able to run: arp -s 198.51.100.1 00:53:00:12:34:56 as the user steven but arp -s ...
3
votes
3answers
32 views

A way for saving running state of a program

I have a program that will perform a lengthy calculation which may take several days to be completed. Is there a way to save the program's running state; so I will be able to turn off the computer ...
2
votes
1answer
25 views

rkhunter /usr/bin/ssh && /usr/sbin/sshd [Warning]

My last rkhuter scan reported a couple of warnings that deserve to be checked(for my noob eyes). Main reason for my suspect is that i wasn't on the machine at (03-Apr-2014 01:12:12) ->AM I googled ...
8
votes
4answers
559 views

What is meant by “a system call” if not the implementation in the programing language?

I would like to understand the term "system call". I am familiar that system calls are used to get kernel services from a userspace application. The part i need clarification with is the difference ...
1
vote
1answer
22 views

What is the meaning “MAC MISSMATCH”? [on hold]

I have every day in the log the few lines start with: MAC MISSMATCH:IN=vlanXX OUT= MAC=ff:ff:ff:ff:ff:ff:bc:ae:c5:da:70:a6:08:00:45:00:00:4e SRC=xx.xx.xx.xx DST=xx.xx.255.255 LEN=78 TOS=0x00 ...
0
votes
1answer
20 views

understand the output of stty -a and change ctril backspace to just backspace

I am working in bash shell on a Solaris environment and whenever I type "backspace" it clears out the entire line. Do you have any suggestions for me to change the backspace clearing entire line to ...

15 30 50 per page