-5
votes
0answers
22 views

How can I using array to display webpage? [on hold]

I need help please this is my code . If the user press b will display the URL in array i--. How can I write a command for option b that's make array i--?
1
vote
0answers
33 views

bash - expect and variables

I have the followin: while read line; do userinfo=$(echo $line | sed 's/@/,/') IFS=',' read -a address <<< "$userinfo" userid="${address[0]}" domain="${address[1]}" ...
0
votes
1answer
15 views

Does iptables protect from kernel vulnerabilities? [on hold]

I read a lot of kernel vulnerabilities which are beyond my understanding. I would like to reduce the risk of an issue related to one. If I block everything other than SSH on a server, will this help ...
1
vote
0answers
12 views

Fedora 21 akmods.service long boot time

I updated from 20 to 21 today and while booting into 21 I noticed the boot time being really long. The result of systemd-analyze blame: http://pastie.org/9794252 systemctl status akmods.service: ● ...
2
votes
1answer
34 views

What's the difference between `git reset file` and `git reset HEAD file`?

I find both of these can unstage a file. I used to use git reset file to unstage a file. But today when I read the http://git-scm.com/book. I find it taught me to use git reset HEAD file, what ...
3
votes
2answers
41 views

forward function and variables into sudo su - <user> <<EOF

I have declared functions and variables in bash/ksh and I need to forward them into sudo su - {user} << EOF: #!/bin/bash log_f() { echo "LOG line: $@" } extVAR="yourName" sudo su - ...
0
votes
1answer
21 views

Why doesn't this tee with process substitution produce the 1st and chosen lines? [duplicate]

What I want is printing the output the first line ( table head ) of ps aux and the grep result. After search, I come up with following. ps aux | tee >(head -1 > /dev/tty) | grep mongo But I ...
-3
votes
2answers
41 views

A process is a program that is loaded into RAM [on hold]

Is this correct? Basically, programs are simply code on hard disk and they are called process(es) when they are in the RAM, right?
-1
votes
1answer
32 views

Is the kernel version fixed within the life of a release/version of each Linux distribution?

I read the Table of versions of List of Ubuntu releases. I found that the kernel version for each release is fixed. E.g. the kernel is 2.6.24 for Ubuntu 8.04, 2.6.32 for 10.04, 3.2+ for 12.04, and ...
1
vote
3answers
55 views

looping a command without waiting for the first run

I want a better way to do this, mostly for command line use: while sleep 60; do mysql -e 'show processlist'; done This is better than: while mysql -e 'show processlist'; do sleep 60; done ...
1
vote
1answer
30 views

Where may I find a reference scheme for GNOME 3.14's theming?

I upgraded to Fedora 21, which spotlights GNOME 3.14 (plus the relevant GTK+ material). Unfortunately it seems that this particular update mangles a lot of my older themes, written for now-aging ...
1
vote
1answer
17 views

Detect changes in permissions

Is it possible to detect the files in a folder that have changed their permissions? I have read about the command find and It detects files that have changed the date of last modification but changing ...
3
votes
0answers
50 views

Is btrfs suitable as backup filesystem?

Right now I have a pretty traditional backup filesystem structure on top of ext4. Every time a backup is made, a new folder backup-DATE is created to which files are rsync'ed (with hardlinks made ...
4
votes
1answer
124 views

How to list all running daemons?

From my question, it was clear that I cannot easily decide the features of a daemon.I have read in different articles and from different forums that service --status-all command can be used to list ...
4
votes
1answer
76 views

How is ksh93 so fast?

So, in general, I tend to look to sed for text processing - especially for large files - and usually avoid doing those sorts of things in the shell itself. I think, though, that may change. I was ...
1
vote
1answer
23 views

How does 'ssh-copy-id' work under the hood?

What does the program ssh-copy-id actually do under the hood? Can the steps be explained as if to a child with a good understanding of computer science? Does it use protocols already existing in the ...
0
votes
0answers
12 views

How to create user-defined tasks in Debian?

According to the Debian terminology, a task is a collection of several individual Debian packages all related to a specific activity (see here). Tasks can be installed through the tasksel program ...
-2
votes
0answers
11 views

About the Terminal in mac OSX [on hold]

I'm using OSX Lion, and I wanted to upgrade my OSX lion to OSX Yosemite. I wanted to have a clean install of my OSX. I was gonna make a bootable USB, and I got stuck at the sudo in terminal. it says ...
6
votes
5answers
432 views

Use two different ip addresses per host in SSH

I have a server, named gamma, constantly up and running at work. Sometimes I connect to it from at home, in which case I use the public IP address 55.22.33.99. Sometimes, I connect to it when I'm at ...
-1
votes
0answers
12 views

Jar file size mysteriously reduces to 0kb [on hold]

I have a jar file deployed on Centos 5.x, Java process runs fine, but after some time, a few months perhaps, the file size goes to 0. So when you have to restart the process due to any reason, it cant ...
0
votes
0answers
20 views

Daemons of accounts

When I try to login onto my pc. The place where am supposed to input the password has the following words. The daemon of accounts has not started. What does that mean?
0
votes
0answers
7 views

theHarvester returns 0 results

I have attempted to using the following command on Kali Linux: theharvester -d syngress.com -l 10 -b google Unfortunately, the result I got was nothing. There was no email and host. Is it the ...
1
vote
1answer
33 views

wget recursion problems

Is there any way to get wget to recursively download from one starting URL (including every prerequisites) and include other paths for which the same will be done? To make this clearer: The file ...
0
votes
4answers
64 views

Time calculation [on hold]

I have a text file containing flight times, hours and minutes one per line: eg 8 minute(s), 28 second(s), 870 milliseconds 19 minute(s), 24 second(s), 398 milliseconds 18 second(s), 876 milliseconds ...
0
votes
0answers
16 views

Every time I try to resize the partition I get 2 MB instead of what I wanted?

I'm trying to partition my hard drive when installing CentOS 7. I chose manual partitioning, set the partitioning scheme on Standard Partitioning, then clicked on "Create them automatically". The ...
1
vote
2answers
59 views

How does bash's arithmetic work?

read num1 2 read num2 5 echo "$((num1+num2))" 7 echo "$(($num1+$num2))" 7 I referred this. I don't understand how the above both expressions yields same result? Please explain. echo ...
1
vote
0answers
19 views

Restart rsyslog after ntp time sync

I want to ensure that the logs written, have the correct timestamp. So, when ntpd completes the sync (ntpq -c rv displays sync_ntp), I want to restart rsyslogd. But I am not finding any hooks/config ...
1
vote
0answers
10 views

Which activity/program prevents my monitor from going off?

I can set my monitor off with xset dpms force off but something prevents KDE from setting it off. On the other hand, when I play a long youtube video it might go off (!). This correctly happens after ...
0
votes
0answers
24 views

Computer shutting off when headphones are plugged in [on hold]

Whenever I plug in my headphones into the audio jack the monitor starts blinking and the whole machine becomes unresponsive. I tried using different sets of headphones but the same thing happens ...
-1
votes
2answers
26 views

How to insert specific lines into a file using vim?

I am using vim for both programming and competitive coding. Now, since I want to insert specific macros whenever I open a source file when I am doing competitive coding. I just copy paste the entire ...
0
votes
1answer
19 views

CROSS compilation of BTRFS file system

We are developing Beaglebone black based custom board, We are planing to use eMMC for storage. To decide the file system on the eMMC we want to cross compile Btrfs user space utility, Does anyone know ...
0
votes
1answer
21 views

Red glitch borders on linux desktop animations

I am using gnome 3.14 + debian 8 jessie + nvidia optimus graphic driver. Those borders on animations are driving me insane and I would love some suggestions on how to resolve it :( ? PS, can someone ...
0
votes
0answers
11 views

Geting error “Must specify either driver or file” using physical disk in QEMU [duplicate]

I want to install windows 10 64 bit but my current verson of windows is 32 bit so it is unable to run the setup.exe file so I booted into live ubuntu 14.10 64 bit and installed qemu to use my current ...
5
votes
2answers
423 views

Difference between /run and /var/run

Is there any difference between /run directory and var/run directory. It seems the latter is a link to the former. If the contents are one and the same what is the need for two directories?
1
vote
1answer
19 views

Apache server allow access from the local network

I have installed fedora server, and I cannot seem to get web requests through to it. I can ping it fine, and apache is functioning fine on the machine as far as I know. I have the listen on ...
3
votes
0answers
18 views
+50

Edit a binary value in hexadecimal in chntpw?

I'm trying to edit a Windows registry entry to change the key to my Bluetooth device to be able to dual-boot with my Bluetooth keyboard. I know which registry entry to use and I can extract Windows' ...
0
votes
0answers
4 views

Arch bsd will not boot right if all on usb [on hold]

I have been wanting to use the bsd side of linux for a while but when i mount the iso file on a usb it will not boot. any solutions? sry for the crappy tags....
1
vote
0answers
11 views

Configuration management via versioned packages

For the hosts we manage, my boss has a vision of configuration management via versioned packages (in our particular case, fpm-built debian packages). This is to make: host deployment easier easier ...
0
votes
0answers
27 views

WIFI connected but not working in Lubuntu

I'm new to Linux in general and I have had difficulty with some wifi connections. Some work and some don't. When I look under edit connections everything looks the same and I am left rather puzzled as ...
0
votes
1answer
11 views

NodeJS / Etherpad: freshly installed etherpad causes TypeError

I have a Debian 7 stable server and installed etherpad-lite with this tutorial how to install etherpad-lite on debian stable. Everything went fine and etherpad starts without errors using: service ...
2
votes
2answers
76 views

Output of stat on OSX

I want to use the stat command to get information on a file. I did this: Josephs-MacBook-Pro:Desktop Joseph$ echo 'hello' > info.txt Josephs-MacBook-Pro:Desktop Joseph$ stat info.txt 16777220 ...
0
votes
0answers
21 views

DNS/BIND configuration to resolve *.mail.*.outlook.com subdomains

I'm running BIND 9.3.3rc2 on a CentOS 5 system acting as an SMTP server. Until last week, I haven't had any problems with DNS or name resolution. The only problems I have resolving are with subdomains ...
0
votes
1answer
29 views

frequent linux mint hangs

My Linux Mint system (17 Cinnamon, lenovo g565) hangs up frequently during work (say, 2-4 times a day). It may look different white screen black screen screen freeze Maybe some of these symtoms ...
-2
votes
0answers
21 views

Manjaro xfce stuck after booting from Grub [on hold]

I've just downloaded Manjaro xfce via torrent, then burn it to an USB with Win32 Disk Imager. I tried to install it on an old Acer PC, and after booting from Installation first menu, it stuck at ...
3
votes
1answer
16 views

What is the last step to use my scanner?

I have a Canon DR-1210C USB Scanner. It is recognized by the kernel when plugged in: [5365651.911506] usb 2-2.1: USB disconnect, address 3 [5365661.952066] usb 2-2: USB disconnect, address 2 ...
2
votes
2answers
34 views

How to detect real sample size and number of channels in WAV file?

I've got this wonderful conundrum with a WAV file, whereas I cannot detect it's actual sample size (i.e. how many bits are in a sample) and the number of channels. geek@liv-inspiron:~$ soxi file.wav ...
-3
votes
0answers
19 views

Help crontab hell lubuntu alternative 14 [on hold]

I try to run a cronjob, but nothing it not want go I have Lubuntu alternate, and try to run a python script, I add this line in cron job * * * * * ...
1
vote
0answers
7 views

Subordinate GIDs/UIDs with LXC and userns for unprivileged user?

When using userns (via LXC in my case), you assign a range of subordinate GIDs and UIDs to an unprivileged user. See for resources: subuid(5), subgid(5), newuidmap(1), newgidmap(1), ...
0
votes
0answers
3 views

httpd and mod_security woth OWASP's dos rules

I'm trying to setup the mod_security on my httpd web server. I have followed the basic steps yum install mod_security I put the modsecurity_crs_10_setup.conf in the /etc/httpd/modsecurity.d I put ...
0
votes
0answers
5 views

How To Customize Syntactic Colors In Padre

I'm new to Linux Mint (I've just installed Cinnamon version 17.1), and I would like to customize the colors in the editor for Padre (version 1.00). I know that there is a config file in the ...

15 30 50 per page