0
votes
0answers
2 views

Bluetooth keyboard not showing up in /dev/input

I've just installed an Apple Wireless keyboard on a Debian system. I used this guide and only console tools — no X on that machine yet. The keyboard works fine. Now I want to remap a right Cmd key ...
1
vote
0answers
2 views

nginx returning netstring with wrong length?

I installed nginx (nginx version: nginx/1.7.9) via macports on my mac running the latest OSX. I configured a URI to use SCGI: location /server { include ...
0
votes
0answers
3 views

rc.local, su, and a bash script

I've got a bash script /usr/local/bin/startvnc that's just this: #!/bin/bash vncserver -kill :$1 sleep 2 vncserver -geometry 1250x950 :$1 And it gets called, per user, from /etc/rc.local like this: ...
0
votes
0answers
4 views

cpulimit on a bash script which runs other commands

I have a bash script which runs other cpu-intensive commands . When I apply cpulimit on the bash script, the output of top shows processes for the commands inside the script still run without ...
-1
votes
1answer
4 views

How to install openssh-server on openSUSE

I recently installed openSUSE, and I want to set up an ssh server so that I can ssh into this machine. However, I am having trouble installing openssh-server. I have tried $ sudo zypper install ...
0
votes
0answers
4 views

tmux command to move pane to edge of window?

In Vim, you can move a window to an edge of the viewport with H/J/K/L. Vim will make sure the window occupies the whole edge and resize/shift the other windows around it. Is there something similar ...
0
votes
0answers
7 views

Check if there is no GUI

Is it possible to check if a UNIX machine (Mac / Linux) has a GUI? Basically I would like to distinguish between: UNIXes with GUI (i.e. normal Macs, Linuxs) UNIXes with no GUI (i.e. Mac server/ ...
-1
votes
0answers
7 views

Making a secret to take contents of a file encode it and outputs to a file and to be able to decrypt the message

Script names :make secret, read secret makesecret takes the content of the file msg-norm and encodes it and outputs the encrypted message to the file msg-mixed readsecret then decrypts the ...
0
votes
1answer
6 views

libvirt - virbr0 - setting the IP address

I am having issues with setting the IP address of the virbr0 interface created by libvirtd. I have configured a different IP in the xml file that configures networking (or so I thought), but it still ...
0
votes
1answer
8 views

How to force decimal addition (#10) when adding numbers with a carry (octal issue)

How can I get 10#1$result to work correctly? When creating a calculator for adding two numbers I am adding together by transversing the digits from small to large. e.g. for adding 51 plus 51 I am ...
0
votes
1answer
7 views

Searching for terms that occur exactly once in a set of files

Similar to this question: Searching for terms in a set of files, only I expect each term to occur at least once in the set of files. How can I modify the search so that I can get a subset of the list ...
0
votes
0answers
5 views

Why does my SD card need authentication to access?

I'm running Ubuntu 14.04 on a Toshiba Chromebook 2 via crouton. I recently reformatted a 256GB SD card that I keep in my chromebook at all times. My problem is that every time I try to access my SD ...
0
votes
1answer
12 views

How to switch from input mode into command mode in ed ?

As far as I know, ed starts in command mode. Once I input i,a or c ed changes into input mode. So far it worked. Now I read that in order to switch from input mode into command mode one has to input ...
1
vote
1answer
16 views

Different Commands on Multiple Servers

I want to execute different commands on different servers. Server addresses are in a text file. Commands are the same except a parameter related to their addresses. For example: ./run0 on the first ...
0
votes
0answers
10 views

rsync unexpected EOF in read_timeout

I'm trying to rsync directories from server A to server B, but i get the following error: permission denied unexpected EOF in read_timeout Command is: rsync -avzn ${LOCAL_DIR} ...
1
vote
0answers
9 views

How to turn off scroll lock LED, indicating keyboard layout, when the PC is turned off

I edited the file /etc/X11/xorg.conf.d/90-keyboard-layout.conf: Section "InputClass" Identifier "keyboard-all" MatchIsKeyboard "on" MatchDevicePath "/dev/input/event*" Driver "evdev" ...
1
vote
2answers
16 views

What is the correct way to set up sw RAID1 so either drive boots?

I've set up a non-UEFI CentOS 6.6 "blank" install with /boot and / each in a separate RAID 1 (3 drives/1 spare). I removed one drive, rebooted, and let it sync to the spare. When I saw this was ...
2
votes
0answers
7 views

How do I test sshguard on debian?

I want to replace fail2ban with sshguard because it uses less resources. I installed sshguard via apt-get and it seems to be running on my debian wheezy server: # /etc/init.d/sshguard status sshguard ...
1
vote
1answer
15 views

Need help selecting networking option in VMware workstation

I am a complete noob in this area, so I really need help and advice. I am trying to setup something like a VPS on my computer. What I will do is: 1) Install vmware workstation on my computer 2) ...
0
votes
3answers
25 views

grep randomly appearing and disappearing in ps aux (ps aux | grep python) [duplicate]

This isn't an actual problem - but more of a curious question, when I run while true; do ps aux | grep abc; echo done; done I get the following: user 29733 0.0 0.0 11748 924 pts/1 R+ ...
0
votes
0answers
10 views

How can I get tiling windows on Debian 7.8? [on hold]

I would like to try a tiling window manager. But I'm a bit confused what might be the best approach. There is a whole list of suitable window managers at WindowManager But I can't see which one is ...
-1
votes
0answers
16 views

Random MAC-address at every boot on different OS [duplicate]

Using OpenBSD, how can we generate new MAC-address at every boot? What would the script look like? Where do we need to put it? Random mac address at startup covers Linux.
0
votes
2answers
17 views

Can setting random date cause problems under a UNIX desktop?

If we write a script that sets the date on a UNIX Desktop (so Linux, BSD) to a random one, example: in every minute, a new date is set: 1983.03.12 15h:17; 2039.04.01. 03:17, etc. Q: What problem ...
0
votes
1answer
4 views

How to use PPMD with 7z under Linux?

How can I use the 7z compression with PPMD algorithm? It produces better compression than the default in 7z.
1
vote
0answers
6 views

Fedora 21 VT Change Hangs

On Fedora 21, I have GDM 3 and GNOME 3.14 installed. When I switch to tty2 and do a bit of work then switch back, my laptop hangs. I am using Intel HD Graphics 4600. Thanks
1
vote
1answer
6 views

How to only allow a group for network access?

Using OpenBSD's pf. Question: How can we modify the firewall of OpenBSD to allow ONLY a given group for network access? If somebody isn't in that group, it shouldn't have layer 3 or layer 2 network ...
3
votes
1answer
102 views

Bash Shell Script Array Length Off By One

The length of an array in my bash shell script appears to be off by one. I have 11 elements in a text file that I am reading in to an array, but my array length seems to be 12. (( count = 0 )) while ...
0
votes
0answers
3 views

Disable Language Packages in Zypper

I am an OpenSUSE user, which means that I use zypper as the main package manager. When I install almost anything, I get a package with the same name but with a -lang suffix that is recommended by ...
2
votes
1answer
22 views

How can I redirect output files to a specific directory/folder

Suppose I have an executable in Unix. Suppose the name of the .exe file is myExe and it takes two parameters. I did not create this executable, this is a freely available one. myExe generates 4 ...
1
vote
1answer
10 views

nova volume-detach fails silently, compute log shows libvirtError: invalid argument: no target device vdb

Using Openstack Havana, I'm trying to detach a cinder volume from a nova instance. Nova volume-list shows it as in-use: | 34b0ea26-f85c-4b62-8ebd-884b0e63e2d5 | in-use | filestore | 256 | None| ...
0
votes
0answers
6 views

syslog - remote logging (remote server)

I have few applications running on my machine. Example: : /var/cacti/logs/Eload1.log Whatever is written to this log i would like it to be logging/written to: @syslogserver Is this possible?
0
votes
1answer
8 views

Installing Node.js on a remote LAMP server with no internet connection

As a part of a student project, I am to host my Node.js-based server application on a server so that other people can try connecting to it and test the integrity of it's functions. The problem is that ...
0
votes
0answers
11 views

BIND as a Private Network DNS Server - Getting REFUSED

I've setup named to act as a local dynamic dns server on my private network with dhcpd. All is working. The only thing that bugs me is that I'm getting REFUSED when querying host-name that doesn't ...
0
votes
1answer
21 views

Parse header in a file and based on the header replace a value in the file

I have a problem I need help with. I'm not very experienced with awk, but it seems to be a good tool for this job. I have the following file Field1|Field2|Field3|Field4|Field5 a|b|c|d|e 1|2|3|4|5 ...
0
votes
0answers
4 views

Sound doesn't work on a Centos 6.5 VPS

I installed GNOME Desktop Environment on Centos 6 on my VPS, then I installed Firefox, Flashplayer and VLC. Everything work well but I can't hear the sound. I searched for a solution on the Internet ...
1
vote
1answer
14 views

Not able to resolve IP address for eth1 in Vagrant VM

On runnning ifconfig command I get the following as output. I need the IP address of eth1 for running my python server port with. eth0 Link encap:Ethernet HWaddr 08:00:27:CE:08:3D ...
-1
votes
0answers
22 views

Theoretical situation: Limited access and installation of some application to a live server

I have been given this task described below and I made list of assumptions and little list of what can go wrong and some plan of action what to do. The task does not really say how to access the ...
-8
votes
0answers
31 views

didn't et answer so posting it again---Unix script-help needed [duplicate]

I want to make a script in unix .I have 2 files with same structure with pipe as a delimiter. Now first i want to check if column1(eid)-->file1 is present in column1(eid)-->file2,if so then it will ...
-2
votes
0answers
25 views

flush output of cat [on hold]

Now I'm using cat in a script to write into a file, but it seems the contents will be buffered. What can I do with it? cat >> comments.txt << EOF bla bla bla EOF
0
votes
3answers
26 views

Simple method to find the number of seconds between two (non-standard) date formats?

I have a program which outputs dates in the following form: Thu Mar 5 09:15:27 2015 This is very close to the output of date in Linux, but this format does not include time zone. Assuming I can ...
1
vote
1answer
19 views

Absolute path from user input without losing symlinks inside

Is it possible to convert in a shell script a user input path (absolute or relative) to the absolute path but without losing the symlinks inside, e.g. /a/b/c is the current user dir and c is a symlink ...
0
votes
4answers
37 views

How does “-dc” work in “cat /dev/urandom | tr -dc ”01"?

So far I know, the /dev/urandom file is one of the special files, it's purpose is to generate random characters. When I execute cat /dev/urandom a stream of strange characters, some even Chinese ...
0
votes
1answer
16 views

Unable to start ubuntu after installing updates - Stuck at 'Try (hd0,0)'

I've installed Ubuntu 14.04.2 LTS on the same hard drive as my Windows 8.1 OS, on its own partition. The installation went without any hickups. After that I used EasyBCD on my windows system to ...
0
votes
1answer
34 views

How to change hostname on Linux and make it appear on a network? [duplicate]

First, what is the correct way to change the hostname in Linux ? I followed some steps on the internet and sometimes it does not take effect. Besides, the new hostname does not appear when I ping my ...
0
votes
0answers
17 views

Install Wmware tools on Debian

I can't copy/paste from Vmware virtual machine with 32-bit Debian inside of it to my Windows 8. I decided to install VM tools. After mounting the VM media to /media/cdrom0 I got the contents : ...
3
votes
1answer
13 views

Pipe command output to Yad and also log the output to a logfile

Need to have the process of command typically an update to be shown using yad and at the same time log all the output to a given log file set up. This is what I have apt-get update | yad ...
1
vote
0answers
11 views

How to automatically update the top info directory

I use MSYS2 on my Windows machine and when I installed make, as a dependency pacman installed guile. Listing the files of the guile package revealed that it has info pages (guile.info.gz) installed at ...
2
votes
1answer
31 views

Named pipes: several experiments leads to confusion

Hello I've come across various articles and SO questions and I am still confused about something that I use on daily basis, but never realized how confusing it can be. I am experimenting with (named) ...
3
votes
2answers
24 views

How to run ntp commands as non-root?

NTP commands such as ntpd and ntpdate are privileged and belongs to the root group. What is the best way to run these commands as non-root ? Linux capabilities, ownership, any method ? I have openSUSE ...
-2
votes
2answers
53 views

How can I find the name of my Network Interface [on hold]

I have a project that requires me to scan the local network. I found a program on the internet that allows the local network scanner condition, but I brought the gold @ IP argument in my network ...

15 30 50 per page