0
votes
0answers
5 views

KaaliLinux Write output netcat in .txt file

I'm currently trying to write a scan port result in a .txt file Heri is the command I tried to use: nc -vv -z localhost 1-80 > file.txt This doesn't work , but when I type: nc -vv -z localhost ...
0
votes
0answers
6 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
4 views

Can not evoke watch command with non-integer time option

I want to start the w command periodically, according to the man of w the smallest possible time interval is 0.1. I tried: watch -n1 w (works) watch -n1.5 w (does not work) watch -n0.1 ...
0
votes
0answers
5 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
8 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
10 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
13 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
9 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
22 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
9 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 ...
2
votes
1answer
16 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
7 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
2answers
63 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 ...
0
votes
1answer
16 views

Linux for real time production server

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
34 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
21 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
20 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
10 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 ...
1
vote
1answer
10 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
28 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 ...
-1
votes
1answer
12 views

Rhythmbox not working!

So whenever I try to play a song in rhythmbox, it never plays it. Here is a screenshot of what happens when I try to do so: Does anybody have any idea as to what could be wrong. I tried ...
1
vote
0answers
17 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
15 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.
1
vote
0answers
23 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
5 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 ...
0
votes
0answers
9 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
46 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
16 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 ...
0
votes
1answer
30 views

Syntax Error: unexpected end of file — Bash script [on hold]

I am trying to create an spritz app. Everything was working fine, but since yesterday I keep getting this error: ./spritz: line 176: syntax error: unexpected end of file I have checked the script ...
2
votes
3answers
83 views

Sorting numbers and respective units in columns

I have a list like this: 1,kg,cat 1000,g,dog 20,g,apple And I want to sort it by weight. 1 kg and 1000 g would be the same, so I'd like to have my rows sorted by weight. My data set is ...
0
votes
3answers
26 views

I have to run `startx` on boot to have a window manager, how can I fix this?

I've had Debian Wheezy for a long time and decided to upgrade yesterday to Jessie, a few things I did wrong, I ran autoremove because I was careless and a few things happened. 1) I have to run startx ...
-1
votes
0answers
13 views

Partition suggestions for dual boot 2 different linux distros? [on hold]

I want to partition my hard disk manually for installing more than 1 os. (2 different distros of linux). I am using Gparted to do the job. My Hard drive is 1 TB or 1000 GB. My first partition was ...
0
votes
0answers
4 views

how to configure codeigniter based website for password protected apache basic auth codeigniter

Actually I want to 'password protect' my website as its still in development. My requirement is simple if anyone try to access my site http://xxxxx.com it should prompt for password (Basic apache auth ...
-1
votes
0answers
17 views

deleted partition from windows and I need to recover it

I installed Ubuntu 14.04 LTS, and its my first time with Ubuntu, and I had two partitions, with information that are now deleted, how can I recover them? thank you.
0
votes
2answers
21 views

Can Symbolic Links span different file systems in Unix or Linux

Can Symbolic Links span different file systems in Unix or Linux ??? I.e consider different file systems like ext2 and ext3 can symbolic link span them?
-1
votes
2answers
16 views

Create new file with spaces from argument BASH [duplicate]

I need to create new file which contains spaces in it. And it is passed through the argument. This code below creates 2 sepate files. Can anyone help me how to create 1 file which will contains space? ...
2
votes
1answer
20 views

What does mtp://[usb:002,003]/Storage/ mean? [duplicate]

Recently that I connect my Windows phone mobile to my Xubuntu laptop I see mtp://[usb:002,003]/Storage/ alongside the other drives.It shows my phone media files! That actually I can not find it in ...
-2
votes
0answers
9 views

Replacing Android Binder with kdbus [on hold]

I read this article on lwn mentioning that the linux community may replace the Binder IPC mechanism in Android with kdbus. I wanted to ask from anyone with knowledge about these IPC mechanisms: what ...
2
votes
0answers
10 views

Catch/diagnose user process being killed - Inexplicably logged out automatically

Context: I'm using bash in Mac OSX Yosemite. Problem: I'm executing a (python) script that I expect to use alot of resources and take a few hours to run, redirecting stdout and stderr to a log file. ...
1
vote
0answers
20 views

Desktop suddenly becomes unresponsive to mouse (moving/focusing/clicking UI elements)

I have an annoying problem where my desktop suddenly becomes unresponsive to my mouse. This always happens randomly, at random times. Sometimes I can work for hours with no problems, sometimes this ...
0
votes
0answers
6 views

vsftpd conditional pasv_address (internal ip vs. external ip)

I have a vsftpd server setup that i'd like to be able to access with passive transfer from an external ip (use of my domain name) and also from my local network (192.168.1.x). Currently I have ...
1
vote
1answer
7 views

xterm formatOtherKeys not working on Ubuntu?

I'm trying to run xterm and have it pick up key bindings such as Ctrl-; Ctrl-. Ctrl-, etc.. (I like to use these bindings in emacs -nw) After some reading online I managed to get a working setup ...
1
vote
0answers
28 views

Unable to perform file operations on a MTP device mounted via GVFS: “Operation not supported”

I am running Linux Mint 17.1 64-bit (based on Ubuntu 14.04). Ever since upgrading from Linux Mint 14/Ubuntu 12.10, the Python script I use to sync music to my Walkman has stopped working. Previously, ...
0
votes
1answer
18 views

How do I partition my disk to install encrypted Debian installation alongside OSX?

I have a 500gb drive on a recent MBA. I have shrunk the OSX partition to 250gb to allow me to install Debian in the empty space. When I go through the Debian installer, the guided partitioning only ...
0
votes
0answers
10 views

Chromebook crouton LAMP

I'm trying to install a LAMP stack on Ubuntu through crouton on a Chromebook (Acer c720p). I was able to install the following packages apache2 mysql-client mysql-server php5 libapache2-mod-php5 ...
0
votes
0answers
19 views

trouble booting from cd on very old computer [on hold]

I've been trying to boot from a windows 98 boot cd. I start the computer and get press to boot and press f1 to enter setup. I go into setup and set the cd to boot first. But still I don't notice any ...
2
votes
1answer
52 views

How can I decrypt my encrypted /home partition?

A year ago I installed Linux Mint 17 on my laptop. I partitioned the HDD and separated the system (/ mount point) and the data (/home mount point). I chose to encrypt the whole /home using the basic ...
1
vote
0answers
27 views

Reading the program header contents of an ELF file

How is it possible to extract loadable program headers individually from ELF files? By examining a binary using readelf one can get output similar to: $ readelf -l helloworld Elf file type is EXEC ...

15 30 50 per page