-1
votes
2answers
58 views

How to delete all the lines in a UNIX file except first and last line? [on hold]

I want to keep only header and trailer records in a UNIX file.
1
vote
3answers
114 views

How do I run a command in a different tty?

Suppose there are two terminals, pts/0 and pts/1. In pts/0, I have fired a command: ls>/dev/pts/1 Then, we only get the output of the ls command in pts/1, but I want to run a command as well as ...
1
vote
1answer
22 views

Connecting to WPA network in FreeBSD

For whatever reason I am having a very annoying time just trying to connect to a network in FreeBSD. So the question is how would someone manually connect to a wireless WPA network in FreeBSD 11.0? ...
2
votes
1answer
12 views

Help in building Yocto(open embedded) projects using cluster computing in Linux

I need to reduce project build time in Yocto (open embedded) in Linux platform. So I decided to cluster computers for the best performance for compilation and building. My question: Is there any MPI ...
1
vote
1answer
12 views

Dell XPS 13 L321x cannot resume after suspend

I've a Dell XPS 13 L321x running Debian Jessie that cannot resume after being suspended. Hibernate works fine if you trigger it with pm-hibernate. I've tried rmmod on the mei and mei_me drivers ...
1
vote
1answer
22 views

Kali Linux won't boot from USB

I've been trying to boot Kali Linux from my 8gb USB. I get to where I'm supposed to choose from one of the various options: Live, Persistent, Persistent With...... etc etc. I go on and select one, say ...
1
vote
3answers
60 views

Process scheduling data on linux

I am doing a project on OS and require the process scheduling data for an operating system. The data has to include the list of all processes in short-term-scheduler and long-term-scheduler along with ...
2
votes
2answers
65 views

Debian 8 - Install lastest version of MySQL

After downloading MYSQL APT Repository at http://cdn.mysql.com//Downloads/MySQL-5.7/libmysqld-dev_5.7.11-1debian8_amd64.deb I ran the command dpkg -i libmysqld-dev_5.7.11-1debian8_amd64.deb ...
0
votes
2answers
41 views

Debian 8 - Run scripts after boot

I've tried run some scripts after boot via /etc/rc.local. /etc/rc.local #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will ...
2
votes
2answers
26 views

Is it possible to redirect root email to axigen internal e-mail?

For a few month I've been using Axigen webmail as my main e-mail server. For the last month I was looking for a way of redirecting my root e-mail, as well as my crontab outputs into an internal ...
1
vote
0answers
11 views

How connected are kernel modules to kernel version?

I'm wondering how custom ROMs port new versions of Android (particularly the Linux kernel) to old phones. As I understand, Linux allows closed source kernel modules. If so, then when the phone ...
1
vote
1answer
15 views

Built-in camera not detected

I have Dell Ins. 5537 running Arch. The webcam doesn't work out of the box. There's no /dev/video* device detected. Arch wiki tells me to find the right model of webcam and load the right kernel ...
1
vote
0answers
16 views

Setting up bridged adapter for Arch guest, Windows host [on hold]

I've tried many things that I've found online but I'm stumped. I'm using VirtualBox, my guest OS is Arch, kernel version 4.4.1-2, my host is Windows 10. When I set it to have NAT adapter, I get it ...
2
votes
0answers
6 views

NFS connection won't mount in Dolphin

I'm running Fedora 23 Server on one machine, and Fedora KDE Spin on another. These are both very recent installs. I previously ran Ubuntu Server and Windows, and connected the two using a samba share. ...
0
votes
1answer
50 views

Installing Photoshop on Fedora Workstation

I currently have a Fedora 23 workstation 64 bit. I installed wine and wanted to install photoshop cs6. When I run the setup.exe wine setup.exe the ps6 fails. anyone got it working?
1
vote
1answer
23 views

Unable to reinstall GRUB on encrypted filesystem

I made a mistake and deleted the contents of my /boot directory, including GRUB (btw this is easy to do, there is no notice that it will make your system unbootable)! I was going to try to re-copy ...
1
vote
0answers
23 views

Build CentOS RPM for current git release, unsuccessful rebuild with alternate prefix

I am stuck in an effort to provide an maintain an up-to-date git release for a collection of CentOS Linux servers. I was hoping to be able to create binary RPMs that I could just have published to a ...
1
vote
1answer
43 views

Combining strings command and grep: how to limit results to null-terminated strings

I have a feeling that it is strings which is thwarting my efforts here. The binary files I want to use strings on unfortunately yield several matches per file, even though it is a 100% rule that ...
0
votes
0answers
10 views

Can I make entering my private key's password work like sudo does? [duplicate]

Is there a way to skip typing my SSH private key's password if I have used it recently, similar to when sudo caches your credentials for a limited time? I know that I can use ssh-add with the -t ...
0
votes
1answer
12 views

How to add public key to QCOW2 image via virt-sysprep

I am trying to add my public key to the root account on a qcow2 disk image (CentOS 7 Cloud Image). The documentation from virt-sysprep says that it supports adding keys, but I cannot seem to ...
4
votes
3answers
155 views

How do you extract a whole word containing substring?

If I have a file that looks like this: example.png example.jpg example2.jpg example2.png example.swf example2.swf example3.jpg example4.jpg example3.png example3.swf and I want to extract the ...
2
votes
1answer
17 views

Get current memory usage of a tmux session

As the title says. I need a way to the used memory of a current tmux session. I am not sure if that is even possible. I am using tmux to start multiple minecraft servers I'd like to know each servers ...
0
votes
0answers
10 views

SIPS changing padcolor to transparent in landscape

I am creating a bash script to automate the scale down and padding of a lot of images. The idea is this: whatever the image size is, if the image is portrait, scale the height to 960 and add a white ...
0
votes
0answers
5 views

How to rename the “VMWare Shared Folder”? in OSX

In VMware Work Station when we share a folder by default it located at /Volumes/VMWare Shared Folder/folder_name how to change the "VMWare Shared Folder" folder name ? (rm failed because its not a ...
1
vote
1answer
12 views

How to modify partition in FreeBSD 10 with gpart

I am using FreeBSD. My HDD has this set of partitions: root@core:/media # gpart show => 63 390721905 ada0 MBR (186G) 63 1985 - free - (993K) 2048 ...
0
votes
3answers
41 views

Why does (` `) gives a list and $() gives only one argument

I might not word this properly, pls edit. Say I have: lst=(`ls $1`) echo $lst #this gives the first element of the list but then when I tried this: lst=$(ls $1) echo $lst #this gives me all the ...
0
votes
2answers
21 views

How to prevent a process from hanging the computer?

A process can cause the computer to "freeze" for example when exhausting CPU or swap. Is there a way to prevent this from happening? For example by setting the max %CPU or IO MB/s that can be granted ...
0
votes
2answers
44 views

Need help in data arrangement

Could you please help me to sort this out, I have data which i would like get output in below format using shell/perl script. Data: Virtual Machine Test status Running. Assigned Server ...
1
vote
0answers
9 views

Is there a single documentation page for all the XDG_* environment variables?

I can find documentation for some XDG_* here and there, but for many others I still don't know where to look. I have not been able to find a single document where the meaning of all these variables ...
0
votes
2answers
70 views

Share my Windows 7 C folder with another Ubuntu Linux 15.10 Lenovo desktop computer

I would like to share my Windows 7 C folder with another Ubuntu Linux 15.10 Lenovo desktop computer. The following URL describes how to do this procedure. ...
1
vote
0answers
17 views

apply proper security labels during filesystem restore

When restoring a filesystem on a separate system (i.e., possibly a different system than the one where the filesystem was originally mounted and in use), I would like to apply the correct security ...
2
votes
0answers
8 views

Btrfs: available space not used after migrating from RAID1 to RAID6

I had 8 2TB disks running in a RAID1 setup but it started to get full so I converted it to a RAID6. However, it seems I can't use the space I've gained by switching to RAID6. My filesystem is pretty ...
0
votes
1answer
13 views

Laptop slow and unresponsive when running on battery

My laptop is slow and unresponsive when running in battery; it works fawless when connected to ac power. In the past I used to have tlp/laptopmode-tools but since Linux 3.x I have uninstalled both. ...
1
vote
1answer
22 views

sbuild schroot fails

I am trying to package an Ubuntu package as a Debian package. For maintainability I am trying to use sbuild. Following the steps here I go through the first five steps, but when I try to build I get ...
4
votes
3answers
141 views

How can I rename a directory with name made of non-printable characters only

On SunOS I have directories with names containing only non-printable characters. The command ls -ldb * returns the following (some spaces deleted) drwxr-xr-x 3 user1 group1 3 Feb 4 18:10 ...
0
votes
1answer
15 views

Set bindings in i3 to control keyboard backlight

For my i3 window-manager settings, I am looking for a command line tool, similar to xbacklight, but to control the brightness of the leds which are in the keyboard. Basically, I can set up the leds ...
1
vote
3answers
47 views

Find size of file in unix using for loop

I am trying to get the size of each file in a directory using a for loop, running the below script #!/bin/bash FILE=/home/cloudera/Desktop/new for file in $FILE do size=`du -b ${file} | cut ...
2
votes
3answers
33 views

Can the Bash shell “Ignore” Excess copy-paste text?

Say, I have a "Quick&Dirty" Perl script in a gui text editor, and I start the Perl interpreter in a terminal window which is running Bash. I can copy-paste the Perl script to the terminal & ...
0
votes
1answer
25 views

ssh RPi from PC - How to share internet connection?

I have Raspberry Pi connected with PC on eth0 port. I am using eth0 to ssh RPi. I have web application on RPi that requires Internet access. Now, I set static ip to RPi (192.168.1.50) and to PC ...
0
votes
1answer
18 views

Does dnsmasq work for OS X? [on hold]

I tried installing it and then launching it, but none of the features work at all. Here is my dnsmasq.conf listen-address=127.0.0.1 address=/localhost.localdomain/127.0.0.1 ...
0
votes
0answers
28 views

Plasma Device Notifier thinks all my internal hard drive partitions are removable and always shows them

Since a few weeks ago, Plasma Device Notifier thinks all my internal hard drive partitions are removable and always shows them. If I go into it's settings and select to show "Non-removable devices ...
3
votes
0answers
25 views

using wget to download all audio files (over 100,000 pages on wikia)

I am trying to download all audio files in Wookiepedia, the Star Wars wiki. My first thought is something like this wget -r -A -nd .mp3 .ogg http://starwars.wikia.com/wiki/ This should download ...
1
vote
2answers
26 views

Changing root's passwords using setuid

Is is possible to change root's password using setuid? What I tried is writing a simple program which calls system("passwd root") owned by root and its setuid bit is set but it didn't work. The ...
1
vote
0answers
8 views

Installing out-of-tree kernel driver in Qubes OS NetVM

I have bought an Edimax USB wifi stick, which requires an out-of-tree (i.e. 3rd party) kernel module to be compiled for it to run on Linux. However, Qubes OS is a bit different to ordinary Linux ...
0
votes
2answers
10 views

Using Screens with a PHP Script

I found an external developer to make me a PHP script to 'snipe' Mineraft usernames. In order for it to operate, I have to start the script from the command line using this: php -f sniper.php > ...
2
votes
4answers
618 views

The wc -w command outputs incorrect answer [duplicate]

I have to find how many times the word shell is used in a file. I used grep "shell" test.txt | wc -w in order to count how many times that word has been used, but the result comes out 4 instead of 3. ...
1
vote
2answers
55 views

Stop bash script with any key

I'm writing a custom gnome-terminal profile which I want to stop with any key I choose. After pressing the key, my intention is to complete all my commands at that moment and start su. I've tried ...
1
vote
2answers
19 views

Trying to direct variable contents into command gives Ambigious Redirect

I'm trying to write a script which tests the http response from various Node servers I have running and which then emails me if any respond with a 502 error from Nginx (meaning one or more server has ...
0
votes
0answers
19 views

Most efficient way to replace a line in a text document? [migrated]

I am learning to code in Unix with C. So far I have written the code to find the index of the first byte of the line that I want to replace. The problem is that sometimes, the number of bytes ...
-1
votes
1answer
27 views

How can I Log ssh login passwords attempts?

I need to log ssh passwords attempts. I read somewhere you could get this done by patching openssh but I don't know if that is the correct way to get this done. I am using Arch. EDIT: I want to get ...

15 30 50 per page