0
votes
3answers
81 views

Compare three file and print the highest value

I have three files. All of them having only one column. File1 M 0 M A File2 A 0 M A File3 M 0 A A compare each row in the three files, i.e, for first row (M,A,M) hence the maximum occurrence is ...
0
votes
3answers
775 views

SSH Agent-Forwarding works, but what about sudo -u username no shell/ permissions? composer

Working on a remote server (A) I want to use my local SSH-Keys to access a repository on another server (B) that is not controlled by me. Generally this works like a charm. I log in as myUsername ...
0
votes
1answer
407 views

Using Fifo hang script

out="$katalog/out" # wyjscie fifo="$katalog/fifo" # wejscie mkfifo $fifo touch $out [...] #k ./a.out <$fifo >$out & pid=$! [...] # get input line by line loop start echo "$liniain" >> ...
0
votes
1answer
118 views

Is it possible triggering a script with a change of amount of files in a directory? [duplicate]

Is it possible to create some kind of directory watcher and trigger a script when the folder is not empty? I have a CentOS machine with jenkins CI on it. i would like to create a job that will move ...
0
votes
1answer
38 views

Python: Move lines backward in a textfile

Imagine a text file which contains random text and two unique markers 01 text text text 02 text text text 03 __DELETE_THIS_FIRST__ 04 text text text 05 text text text 06 text text text 07 text text ...
0
votes
2answers
4k views

Setting up hostapd with a iwlwifi device to run a hotspot

I am trying to configure my opensuse 13.1 system to function as a hotspot (on my dell xps13 computer). So I tried setting up hostapd as explained here, but I get an error: hostapd ...
0
votes
2answers
1k views

Change motd value in UNIX Operating System

I need to change the value of MOTD using a script but I do not know how I should start. Am attaching sample MOTD if anyone can help.             ...
0
votes
1answer
701 views

modpost.h:12:23: fatal error: elfconfig.h: No such file or directory

I am running Ubuntu: #lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 12.04.4 LTS Release: 12.04 Codename: precise Kernel info: 3.8.0-38-generic ...
0
votes
1answer
46 views

Regain access to seemingly frozen Live CD session

A few weeks back I started a machine up with a copy of Parted Magic, and loaded up some webpages in Firefox on it. Just last week, upon getting back to looking at the machine, I noticed that lxpanel ...
0
votes
4answers
387 views

How to know user type in LINUX machine

My account has been created on a LINUX machine. But, I don't know which type of user I am ( root user or normal user) and which type of access I have. Is there any command through which I can check ...
0
votes
1answer
210 views

Grub v2: kernel “has invalid signature”

Can somebody explain what this exact error message means? grub> linuxefi /boot/i386/loader/linux error: /boot/i386/loader/linux has invalid signature. What is Grub trying to tell me? That the ...
0
votes
0answers
61 views

How to generate a new rootfs and add blobs

Before reading this question please take two seconds to read my last questions : How to add folders and file before compiling kernel To sum up I want to add a folder @ rootfs which one has to hold ...
0
votes
1answer
818 views

Cron task starts at 5:30 and runs every 5 mins once

I want to run a crontab cron job which start at 5:30 AM and runs every 5 mins. How do i set it up in Linux? I am able to give like below. But how do i make it 5:30 ? */05 5-16 * * *
0
votes
1answer
339 views

Unable to open Windows Disk partitions in solaris 11

Not sure if I have come to the right place with the right problem but I don't really have much option as I have not found even a close solution to my problems in any other website during my tireless ...
0
votes
3answers
10k views

How to install Kali linux on to a specific (existing) partition on a USB stick

I'm endeavoring to put Kali linux onto a USB stick - I know it's already written up, but I'd like to use only a portion of the total space (the aforementioned link will use the entire drive space). ...
0
votes
1answer
1k views

How to hibernate in Debian Jessie

When I use the "hibernate" button in the Xfce menu on Debian Jessie (testing) The system seems to correctly hibernate and power off. Then when I power on again to resume it hangs before X is started ...
0
votes
1answer
30 views

Extract only the key(s) from GPG exported keypair

I have exported public and private keys to file with gpg --export and --export-secret-keys. When I examine them with gpg --list-packets. I can see that the file contains: the actual key the user ID ...
0
votes
0answers
117 views

Installation of my custom debian iso failed

I followed this tutorial to create my custom debian CD with build-simple-cdd but I get always an error even I use the basic config. The ISO file is created (named debian-7.3-amd64-CD-1.iso) but when ...
0
votes
0answers
3k views

stuck at grub rescue on boot, no bios, no live cd, ls returns hd0

I have an external hard drive with elementary os on it, and when I took it out my preinstalled windows 8 laptop, it came up with the "error: no such device:'hex number' grub rescue>". I can't boot ...
0
votes
1answer
554 views

How to disable the boot log daemon by editing the init script?

I understand that boot log daemon (see this question Starting Bootlog daemon: bootlogd is a part of the init script. But I don't know how to edit this script to disable this daemon. Can some one ...
0
votes
3answers
486 views

Running a bash script each time a file is uploaded? [duplicate]

I have an FTP server (Debian) setup where users send JPG images. I need a process running on the background that every time a picture is sent via FTP a bash script is executed for generating ...
0
votes
1answer
3k views

How to install Intel Graphics drivers for Mint 13

I have choppy video and my windows are choppy when I move them around. Also when my PC 'turns off monitor' it does not turn off normally but like the cable was unplugged. I guess I need to install a ...
0
votes
1answer
474 views

Starting Bootlog daemon: bootlogd

Whenever I run linux on many ARM based systems, I see a message like this: Starting Bootlog daemon: bootlogd. As can be seen from the log messages below, it takes some finite time, close to 0.5 ...
0
votes
1answer
269 views

Capture Error of LS to file [duplicate]

#!/bin/sh if [ $(ls sample01.log | wc -l) = 1 ] then echo "File Found" > lsOutput.log else echo "File Not Found" > lsOutput.log fi But if sample01.log is not already existing my code already ...
0
votes
1answer
498 views

Dell D610 6.5 CentOS Installation - Undetected Network Adapters

I've spent the better part of the day attempting to install CentOS 6.5 on an older Dell D610 laptop, using everything from a Minimal Install to the Full DVD. After multiple attempts I was able to ...
0
votes
0answers
507 views

How to fix library problem with mono on Debian?

I installed mono and when trying to run an app: a@debianVM:~/.wine/drive_c/Program Files/BOT$ mono ./APBInfinite.exe Mono: gc took 12 usecs (sip) Mono: DllImport error loading library ...
0
votes
1answer
35 views

Why dircolors don't return enything for bash called from php

I have this code in php: header("Content-Type: text/plain"); exec("/bin/bash -c 'dircolors -b'", $result); echo implode("\n", $result); but it return LS_COLORS=''; export LS_COLORS Why I'm not ...
0
votes
3answers
248 views

Bash in php exec in webpage don't colors for png and mp3 files on Linux

I have code like this in php: header("Content-Type: text/plain"); exec("/bin/bash -c 'ls --color=always'", $result); echo implode("\n", $result); and I've got result (escape is not visible) ...
0
votes
0answers
120 views

Shortcuts for sakura

How can I configure shortcuts for a sakura terminal? I know about the question Configuring shortcuts for Sakura but since I am quite a newbie I did not success. In the end I would like to have ...
0
votes
3answers
99 views

Get contact information of system administrator from the terminal

Do any of the common Unix/Linux platforms provide a way to query the system administrator contact information from the command line. Obviously a system admin might not include this information when ...
0
votes
1answer
641 views

Strange sosreport running on CentOS 6.5 upon login

Before beginning this question, I fully plan to update this post with more information if suggested by commentors or answerers, but other than what I've posted here, I'm not sure what else to post. ...
0
votes
1answer
119 views

Console download accelerator that downloads *multiple* files simultaneously

The download accelerators I've found thus far only let me specify a single file to download. This is useful for single large files, but I'm looking for a tool that lets me hand over a list of multiple ...
0
votes
4answers
5k views

How do I install Flash plugin for Firefox in Slackware 14.1?

I searched on Google but the tutorials I found said they had to paste the plugin in /usr/lib/firefox/plugins But this folder does not exist! Can someone help me?
0
votes
1answer
182 views

When speaking about cache size of a CPU, we only need the size of the cache at the furthest level [closed]

When speaking about cache size of a CPU, do we only need to know the size of the cache at the furthest level (such as at level 3, when the cache hierachy is 3-level)? Instead of the sum of all the ...
0
votes
1answer
132 views

Host name on terminal changes when I connect internet : why?

[acme@localhost ~]$ su Password: [root@localhost acme]# Now I connect internet and I get the following: [root@localhost acme]# exit exit [root@localhost acme]# su [root@dhcppc9 acme]# Edit ...
0
votes
0answers
3k views

Linux md RAID: /dev/md0 vs. /dev/md/0

On newer systems /usr/share/mdadm/mkconf (the script that is used to generate /etc/mdadm/mdadm.conf) tends to use the device name /dev/md/0 instead of /dev/md0: new-system ~ # /usr/share/mdadm/mkconf ...
0
votes
1answer
932 views

How to recover from a boot hang after deleting old swap?

I did a fresh installation of Fedora 20 in the free space of my hard drive after failing to upgrade from the older version. Everything seems to be working fine until I deleted the partition containing ...
0
votes
0answers
26 views

automount usb drive [duplicate]

I have a RaspberryPi with Raspbian (no GUI, only terminal). I want to use it as a music player (I will install a music daemon with web interface). Currently, when want to mount an external usb drive, ...
0
votes
1answer
402 views

service red5 restart FAILED

Works to start and stop but not to restart: -bash-4.1# service red5 restart Shutting down red5: [FAILED] It was all working before had to delete red5 and JDK and ...
0
votes
1answer
256 views

Adding Postgres bins to PATH: should I `export`? [duplicate]

I'm on a Mac, but this seems like a UNIX/Linux question. I just installed Postgres.app, and the documentation says to add the /bin directory that ships with Postgres.app to your PATH by adding the ...
0
votes
1answer
1k views

Configuring Apache 2.4 for CGI on FreeBSD

I am trying to run CGI on FreeBSD 9.2. I installed Apache 4.2 (pkg install apache42) Configured it to load CGI module. Also, I did chmod a+x on files in cgi-bin directory. And when I connect to ...
0
votes
1answer
86 views

Break In Attempt

mysql service has vanished from my vps and service is down since yesterday where can see from /var/log/secure file it says break in attempt from an ip that is not known to me but cannot tell if the ...
0
votes
2answers
7k views

Realtek r8169 not working in CentOS 6.5

We have recently purchased Gigabyte 990xe-ud3 motherboards. It came with Realtek LAN conroller. However with CentOS 6.5 it is not working, i.e. although it shows that it's connected with network, it ...
0
votes
1answer
108 views

where is the user content on a Mac OS X disk?

I have a friend's Mac OS X disk that comes with an HFS+ partition. I am supposed to recover the personal data from this disk (it's not yet clear if the FS is corrupted or the disk dying), but for the ...
0
votes
2answers
379 views

Some errors when building Glibc LFS - are they harmless?

I've finished chapter 5. When I'm building glibc, I get some errors: root:/sources/glibc-build# grep Error glibc-check-log make[2]: *** [/sources/glibc-build/posix/tst-getaddrinfo4.out] Error 1 ...
0
votes
0answers
537 views

No sound in Ubuntu minimal + xbmc. Possible bug?

I'm running Ubuntu 12.04 minimal+XBMC with no gnome interface. lspci | grep -i audio 00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03) aplay -l **** List of ...
0
votes
0answers
154 views

Is swapping the cause of high IO on my box?

I'm running a LAMP stack on an Amazon EC2 micro instance with 616 MB of memory. This seems sufficient to be able to run a few small websites with Apache, MySQL and PHP. I have one Wordpress site ...
0
votes
2answers
119 views

compiling bash 4.2 with patches

I want to compile bash 4.2 from source. but http://ftp.gnu.org/gnu/bash/bash-4.2.tar.gz is more 2 years old. Should i apply all the patches from http://ftp.gnu.org/gnu/bash/bash-4.2-patches?
0
votes
2answers
219 views

Regex and patterns on a ksh command line

I'm wondering what's the difference between using * and .* in a regex string. I guess, * stands for "0 to n characters" but I don't see what .* stands for. For example, what is the difference ...
0
votes
2answers
1k views

How can I install Bastille on a recent version of Debian?

To the best of my ability, I have looked everywhere in order to find a .deb file however even on its own website (bastille-linux.org) it is recommended to use aptitude which no longer seem to contain ...

15 30 50 per page