3
votes
2answers
27 views

Is it possible to contain Linux applications in a single file or folder?

I use Windows primarily and have wanted to use Linux as my primary OS, but the "package" system always keeps me from taking that step. Is it possible to export Linux (specifically Debian) applications ...
0
votes
1answer
22 views

What permissions should each file under .ssh have?

What permissions should each file under .ssh have? I just experienced some glitch caused by .ssh/config not having 600. What permissions other files there should have?
0
votes
0answers
125 views

boot menu doesn't appear after upgrading to OS X Yosemite

I was using both OS X Mavericks and Ubuntu but after upgrading to OS X Yosemite I can't see the boot menu. I have tried both rEFIt and rEFInd but both doesn't work . Also have tried --alldrivers while ...
1
vote
1answer
15 views

Why do LiveUSBs use squashfs (and similar) file systems?

Every LiveUSB I have encountered so far uses squashfs or some similar method of "faking" and ext4 file system, while actually keeping the partition type already found on the USB flash drive. Why ...
0
votes
1answer
20 views

saving contents of echo output to variable in non-bash script

I'm used to doing something like this in my bash scripts to echo output to a variable: myvar=`echo $OSTYPE` echo "my os is of type: ${myvar}" On this current project however I'm using sh, which on ...
-2
votes
1answer
42 views

How do I automate this in a shell script?

I'm using the application PlexConnect on my home server (a headless OSX box) and I have to ssh in (from an iMac) and manually kill the Python process sometimes with the following: ssh 192.168.0.7 ...
0
votes
0answers
7 views

evolution does not work with system proxy

I am using the latest evolution with the gnome shell environment and am experiencing connectivity issues. I use a proxy to get to the "Internet" and that appears to be causing issues with evolution. ...
2
votes
2answers
45 views

An alias for a command to kill stopped jobs

I wanted to add an alias to my .bashrc so that I could kill all stopped jobs with a command like kill_stopped. I am aware that kill `jobs -p` can be used to accomplish this but I'd rather have an ...
0
votes
2answers
35 views

How to check server for SSLv3 connection if there isn't any openssl package on it?

echo Q | openssl s_client -ssl3 -connect HOSTNAME:PORT 2>/dev/null | grep 'Cipher is' But how can I test for SSLv3 connection if there isn't any openssl installed on the machine? UPDATE: the ...
2
votes
1answer
17 views

How do I check the progress of Badblocks if it's running in the background?

I'm running a drive check on my unmounted USB3 drive with: sudo fsck.ext4 -cDfty -C 0 /dev/sda1 & However, I sent it to the background and would like to check its progress. It's been running on ...
3
votes
1answer
28 views

How to find the file corresponding to a pipe opened by a process? [duplicate]

I created this script, which listens for characters received on a hardcoded pipe, and tries to eval those characters. I call my script loop_executor.sh This is all it contains: !/bin/bash while : do ...
0
votes
1answer
8 views

Adding your own RPM to kickstart file in SL

I have a kickstart file I am working on for my servers: repo --name="Scientific Linux" --baseurl=http://ftp1.scientificlinux.org/linux/scientific/6.5/i386/os/ --cost=100 %packages ...
1
vote
1answer
18 views

copy symlinks with rsync

When I'm trying to backup a disk with rsync, symbolic links are not resolved correctly. For example: media └disk1 ├folder1 │ └folder2 (symlink to /media/disk1/folder2) └folder2 After rsync ...
-1
votes
0answers
13 views

Elementary OS not not booting

Elementary OS live usb live desktop fails, while installation works although the mouse is too glitchy to use. When I try to load live desktop, it goes to command line. It displays hda_intel: ...
1
vote
0answers
39 views

How to populate /etc/network/interfaces automatically

I am trying to populate /etc/network/interfaces with a dhcp config for all interfaces at the first system boot (Debian 7.6 server). I modified the script in : /lib/udev/write_net_rules by adding: ...
1
vote
2answers
60 views

Print a line in stdout that matches an expression if the output contains another expression

This might be a common/easy task but I couldn't figure out from examples on the web or manuals of awk/sed/grep. So, here is the scenario: There is an internal command line tool that prints out a ...
2
votes
0answers
14 views

Lock system after awake suspend (incl. forced-shutdowns system after countdown)?

For speed and convenience I do not shutdown my system when I am only gone some minutes, but do a pm-suspend! When the system "unsuspends"/resumes I would like that there is a (screen)lock (on X and ...
0
votes
1answer
20 views

Stat, Blocks and Sector size - ext4

While reading upon how files are stored in the filesystem, I created a testfile which happened to be of size 217 bytes. Checking the output of stat on this file, I saw that this file is occupying 8 ...
0
votes
1answer
8 views

Can masscan use the Nmap Scripting Engine?

There is a great tool: https://github.com/robertdavidgraham/masscan that we can use if a bigger network need to be scanned for various aspects. But, can the masscan use the Nmap Scripting Engine? ...
1
vote
2answers
97 views

Group words based on the value of the first column

I want to group all the file contents based on the value of first column. It would be better if the output is in sorted form. Input: 1 foo 2 bar 1 foobar 2 barbar 3 apple 4 banana 3 mango 5 orange ...
0
votes
2answers
31 views

Why awk does not show the correct record length?

I'm concerned regarding what awk shows as the record length. I'm checking some files for a specific record length - awk shows the result I wanted, but the file size shows that each record in the file ...
1
vote
0answers
9 views

cssh intercepts F10

I am using cssh (cluster-ssh) to ssh to multiple machines simultaneously. Everything works great, except that cssh intercepts F10 key (which in cssh opens menu. This is very unfortunate, because I ...
0
votes
0answers
15 views

Shell script to monitor log files going over a certain size [duplicate]

Due to another issue I'm tracking down, one of my app servers occasionally starts generating a large amount of errors and then becomes unresponsive. For now, the simple solution is to restart the ...
1
vote
2answers
54 views

Still vulnerable after disabling SSLv3

I'm trying to disable SSLv3 to avoid the Poodle problem. I'm using the following instructions as a guidleine: https://access.redhat.com/solutions/1232413 I've applied the following line to my config ...
1
vote
2answers
22 views

Redirect specific e-mail address sent to a user, to other email-recipients

I'd like to know if it is possible to configure postfix to redirect to many email addresses (including the original recipient) instead of only one? Here is my scenario: When an e-mail is: Sent from: ...
3
votes
3answers
76 views

How to get whole command line from a process?

How can I get the command arguments or the whole command line from a running process using its process name? For example this process: # ps PID USER TIME COMMAND 1452 root 0:00 ...
1
vote
1answer
9 views

wc -m command in raspberry pi adding an extra number

I am writing a program on the pi using wc -m command to count the amount of letters in a string, however, it counts the letters but adds one extra. This is what I currently have. echo "enter a word" ...
0
votes
1answer
37 views

What does */13 do in a crontab?

*/n * * * * in a crontab means run every n minutes, if n divides 60 evenly. What happens for other cases, like */13 * * * *?
0
votes
0answers
6 views

what are the hash functions used by SFQ classless qdisk?

I noticed an example of creating an SFQ, in which the only parameter is perturb which is the period to switch hash function to another. I was wondering what are the hash functions used by the SFQ, are ...
2
votes
1answer
24 views

Reprepro repository is missing some files?

I'm using reprepro to package some internal files for distribution via Puppet. When the puppet clients are hitting the repository I'm seeing errors like this: [error] [client 10.20.xx.xx] File does ...
1
vote
1answer
37 views

Why does mouse and keyboard freeze when Linux swaps

I have noticed that under Linux, when there is heavy swapping, the mouse cursor freezes, and even CapsLock or Ctrl+Alt+F1 don't work. The system uses the deadline I/O scheduler but this should not ...
1
vote
0answers
15 views

Autocomplete include directories in c++

VisualStudio has some extension which checks the include directories and makes suggestions while typing. My current project uses a lot of included libraries, sometimes with rather long pathnames. ...
2
votes
1answer
158 views

What is the purpose of avahi on a RHEL 7 server?

Running a server machine with CentOS 7, I've noticed that the avahi service is running by default. I am kind of wondering what the purpose of it is. One thing it seems to do (in my environment) is ...
-2
votes
0answers
15 views

Uniqe values in a table [duplicate]

I have asked this question before but later on I realized that the answer provided by @Anthon is not working properly for me How can I find unique values in two a column table? Let me again define ...
0
votes
0answers
15 views

System not responding and ttyS0 (ttyS0) main process (1627) killed by INT signal

The system is not responding(Unable to do SSH or Telnet, even scheduled cron job is not running) if it runs for more than 5 days. The scenario is "the ssh session is opened and console is opened from ...
0
votes
0answers
30 views

Is it normal to irssi freezes when receiving dcc?

I'm running it over screen with Raspberry Pi Model B, maybe the hardware is not the best, but when a streaming begins, I am unable to type anything, even Alt + Arrow doesn't work, but changing ...
0
votes
0answers
6 views

Set a default user to be shown at startup with LightDM

Is it possible to set a default user to be shown at startup with LightDM?
1
vote
1answer
44 views

command not found via shell script but works on terminal

In my .sh file I cannot invoke ant or mv or cp commands but the same commands executes on terminal.below is my script sample.sh file #! /bin/sh cp filename.so filename_org.so android update project ...
2
votes
0answers
14 views

Position independent code: what is the difference at compile time? [migrated]

Reading through the libtool docs I wondered why we need to tell the compiler to produce position independent code. After all, the object file which is produced does not yet know where in address space ...
3
votes
1answer
27 views

dhcpd does not allow filename option with a colon in it

For some reason, tftpboot does not work with a colon in filename parameter: group { filename "node7:linux/pxelinux.0"; host machine_7a { hardware ethernet 02:01:02:02:01:11; ...
0
votes
1answer
13 views

What is the suspend procedure in KDE?

I've been reading this question, and I'm wondering what is the procedure for suspending in KDE? Whether to RAM or to disk.. When I click suspend, or close the lid, what gets triggered? What is the ...
0
votes
1answer
21 views

How to configure sendmail.postfix to relay on exchange 2010?

I'm currently trying to figure out how to configure sendmail.postfix in Red Hat 6 to work with exchange 2010 relay. I've already configured our exchange server to allow our web server to relay. What ...
1
vote
2answers
41 views

Can't install any packages on RHEL because of dependancies

Trying to install packages, and keep getting dependency errors. Already installed EPEL, IUS, REMI repos. Example: yum install gcc and I get Error: Package: ...
2
votes
2answers
171 views

Shell script written in a different shell than what my current shell

If the shell script is #!/bin/sh But the value of my $SHELL is ksh. Will it make a difference if I changed my ksh to sh, and then executed the script. ie. will a script have different behaviour ...
1
vote
0answers
13 views

Unable to Configure Quotas in RHEL6 & CentOS6- quotecheck returns error message

Unable to Configure Quotas in RHEL6 & CentOS6- quotecheck returns error message I've created new partition(/dev/sda6) and mounted it(on /hulk). Edited /etc/fstab file to give quotas on the ...
0
votes
0answers
5 views

How do I set kernel-ml default in CentOS?

I have installed kernel-ml package from http://elrepo.org/tiki/kernel-ml Now I have both the original CentOS kernel and kernel-ml. How do I set kernel-ml as default on boot? Thank you!
0
votes
0answers
15 views

How do I port this initramfs script from Ubuntu to openSUSE? [on hold]

I have an Acer C720 chromebook on which I installed openSUSE (after using Ubuntu on it for 6 months). My problem is that I can't get suspend to work. On Ubuntu I used this fix: create file ...
0
votes
0answers
21 views

Row merger due to redunt splits of a single row in Unix

Thanks for your explanation and time Avinash. The code is working as expected but my depiction of problem truned much simpler than the actual problem. Problem: I have a file which has ~5Million of ...
0
votes
0answers
19 views

Citrix Receiver fails to run on custom distro

I have a customized OS, based on lfs. GCC, glibc version of this OS matched with that of Ubuntu-13.04 I installed an application named Citrix Receiver on both OS. On Ubuntu, it runs smoothly as per ...
0
votes
0answers
21 views

to check fields in configuration file

i have configuration file in which first field is filename, second field is the column if we find the value of that column is null in the filename that is given in first column. if any of value of ...

15 30 50 per page