2
votes
1answer
384 views

Root Password Policy and Refresh

Unfortunately the infrastructure I work in has static root passwords that are very rarely refreshed. So people leaving the company will have our root passwords and it can potentially be leaked to ...
8
votes
3answers
549 views

How do I capture the exit code / handle errors correctly when using process substitution?

I have a script that parses file names into an array using the following method taken from a Q&A on SO: unset ARGS ARGID="1" while IFS= read -r -d $'\0' FILE; do ARGS[ARGID++]="$FILE" done &...
28
votes
5answers
32k views

Solving “mv: Argument list too long”?

I have a folder with more than a million files that needs sorting, but I cant really do anything because mv outputs this message all the time -bash: /bin/mv: Argument list too long I'm using this ...
2
votes
1answer
519 views

Unable to SSH into Google Cloud Server after Reboot

I was learning to configure a Debian server and familiarising myself with the common command lines. However, after executing the reboot command in SSH, my subsequent SSH connections were refused and ...
0
votes
1answer
90 views

Terminal filesystem location

I'm using gnome 3 on debian. I want to create a launcher on the desktop for terminal. Where is terminal in the file system? I tried "which terminal" but it doesn't output anything
4
votes
2answers
177 views

Running several times the same command with several arguments after a pipe

I have a key (of random binary data) that gets generated by get_key. And with this key, I can do several things with my encrypted files. For example, I can decrypt them. get_key | tee >(decrypt ...
2
votes
1answer
3k views

What would happen if the amount of free memory (vm.min_free_kbytes) was too low?

I came across the following parameter in kernel settings (in sysctl): vm.min_free_kbytes This is the amount of free memory (RAM) that's always free no matter what. In my case, I have only 1 GiB of ...
1
vote
1answer
2k views

Connect To Wifi on Arch Linux

I have a fresh installation of Arch Linux. During the install I used wifi-menu to connect to wifi. After the installation I tried to use it and it said I needed to install dialogs to use it - which ...
11
votes
4answers
45k views

How do I find out why cron is not running my jobs?

I'm using Ubuntu 14.04, and the cron daemon is running: # ps ax | grep cron 822 ? Ss 0:00 cron but it is not executing any jobs. I was previously getting entries in /var/log/syslog such ...
1
vote
2answers
947 views

ssh-agent not adding key when started graphically

Recently I added the following script to my auto-start (in KDE): eval `ssh-agent` ssh-add The script should be started at login and ask for my passphrase and load my secret key. It does almost fine....
3
votes
1answer
952 views

RFCOMM device seems to be missing (dev/rfcomm0)

I am trying to send and receive serial commands over bluetooth. I have installed pyBluez library. The issue is that while the rfcomm.conf exists there is no rfcomm0 in /dev/ directory. I rebooted but ...
1
vote
2answers
569 views

Passwordless ssh login not with disabled direct console root login

We have the centralized server which has passwordless SSH configured to access other Linux servers within our environment. The issue we are facing is that when we disable root direct console access ...
1
vote
1answer
500 views

can't get hello world shell script to run in FreeBSD

Server is running FreeBSD 9.2. Using vim, I wrote the following script called hello: #!/bin/sh echo "hello world" Then I set it as executable: >chmod 755 hello Then I tried to run it from ...
3
votes
3answers
13k views

How can I run a “grep | grep” command as a string in a bash function?

I'm trying to build a command that pipes the results of one grep command to another grep command in a bash function. Ultimately, I want the command executed to look like this: grep -I -r FooBar /code/...
7
votes
2answers
5k views

How does DNS name resolution work, in principle?

Right now I'm taking an online course for Linux sysadmin and I was asked a question I just generally don't understand. I know how to search for a name server, if I'm correct at least it's using the ...
0
votes
1answer
1k views

Graphics card recommendation, Dell PowerEdge R210 & CentOS 6.5 [closed]

I have server with displays and a keyboard-mouse for displaying network map status and for use as a shell and virtual console in my server room. Need a recent video card that is > $100 that can ...
0
votes
1answer
370 views

Is there a way to permanently exclude the kernel from updates?

I'm using Fedora and wonder if there is some way I can exclude kernel updates when I run yum update, until I specifically want to update the kernel. The reason why I am concerned about this is ...
2
votes
2answers
1k views

Error when creating BTRFS Filesystem

I'm attempting to install Arch Linux using the btrfs filesystem. I'm at the beginning of the install processes preparing my drive and I'm hitting an issue. Firstly I begin to clear any GTP and MBR ...
1
vote
1answer
200 views

Sysctl parameter change after every reboot

I have found that the value of net.netfilter.nf_conntrack_count variable change every time i reboot the system. Did any one have an explanation for that?
1
vote
0answers
141 views

Why doesn't putting elinks in background and then resuming with `fg` work reliably?

The elinks program takes over the terminal to let you browse the web. But its behavior in the context of job control is wonky. If I CTRL-Z suspend an elinks session, and then try to resume it with ...
2
votes
0answers
1k views

Can't install gnome shell extensions

Just did a fairly minimal install of OpenSUSE 13.1, including gnome-shell 3.10.1. [Long frustrated rant deleted] I can't get GNOME shell extensions to work at all. Initially when I went to the ...
1
vote
1answer
199 views

How to count the number of active windows open apart from that of the window manager?

I would like to count the number of active windows open apart from that of the window manager I am using. I am aware that wmctrl can do this, however, when I do the following: wmctrl -l on my ...
2
votes
1answer
2k views

Finding dependencies for a compiled C++ program

I wrote and compiled a C++ program using Qt Creator in Ubuntu 13.10 (32 bit). I tried to run the compiled program in a newly installed Ubuntu 13.10 (64 bit). But it is not run. I think the problem is ...
2
votes
1answer
180 views

How to convert .doc to ODF with a command line?

I'd like to convert many Microsoft Word documents to ODF (the OO.org formata with a command line (because there are many of them). (I need them for reading afterwards on a device where reading OO.org ...
0
votes
0answers
351 views

Letters from mail server comes as raw html (Outlook 2013)

I have two servers with sendmail(php, zf2) and I send mail (from both) to my outlook mail. Message body in html format. From the first email server it comes normally. But from second server letters ...
2
votes
1answer
1k views

Is it useful to setup RAID0 on laptop? [closed]

I have a Dell laptop, which I am going to replace the CD-ROM hub with a HDD. I am thinking if I setup a RAID0 on my original HDD and the new HDD, would I have some I/O performance improvement? ...
0
votes
3answers
3k views

Script to recursively check permissions and owners of a directory and write shell script to recreate them

I'm trying to write a shell script to preserve and rewrite all permissions/groups in a large directory with several subdirectories in the event they get changed or are not properly created or if ...
1
vote
1answer
807 views

With a file with 750 permission, which group has “5” permission?

The bits 750 invoke the -rwxr-x--- permissions, on a given file, to the user who owns the file and "the" group. My query regards the group. Which group on the system would receive these permissions? ...
0
votes
1answer
717 views

Move Data from Partition to Partition on Same Drive

Moving data from one drive to another is slow. Copying data on a drive to it's self is slow. Moving data from one drive to it's self is fast. If I'm moving data on the SAME drive but a different ...
2
votes
1answer
6k views

wget a file, logging the output and showing the output on prompt

In a bash script, I must download a file from the web. I the wget command for doing this. I would like to log the output of the wget command, and at "the same time" have the output prompting on ...
1
vote
1answer
1k views

Linux kernel: task vs thread

When I was reading a book(Linux kernel programming), I found an interesting/confusing paragraph about mm_segment_t addr_limit(one of the member in struct_task) as shown below: mm_segment_t ...
8
votes
2answers
11k views

Determine what device a directory is located on

If I do # cd / # ln -s /home test # cd test # mount --bind $PWD /mnt the entry in /proc/mounts is /dev/sda2 /mnt ext4 rw,noatime,data=ordered 0 0 which is the device that is mounted to /home and ...
1
vote
2answers
342 views

How can I format a flat file using awk?

Below is the format of some table data contained within a single file: ;NULL;ABCD;ABHJARS;;ABCD;ABCD;Y;;;;;;;;;A; ;NULL;XEU-ANKD;XEU-AJKD;;ABCD;ABCD;Y;;;;;;;;;A; . . ;11744;AMKDIONSKH;AMKDJ AN DJ ...
1
vote
1answer
330 views

objdump Vs sh4-linux-objdump

I need this command (sh4-linux-objcopy) in RHEL 6. I could not find the package by yum install , neither there is a corresponding rpm. Here is how I want to use it: sh4-linux-objdump -h vmlinux | ...
6
votes
2answers
12k views

What is Binary package? How to build them?

I want to get detail about binary package and run them on linux. I am running Debian base (Ubuntu/Linux mint) Linux os. How to build binary package from source? And can I directly download binary ...
1
vote
1answer
151 views

mkfs.xfs /dev/custom_dev

I try to format a custom block device with mkfs.xfs in Ubuntu Server 12.04 LTS. In the end terminal prints: cache_node_put: node put on refcount 0 (node=0x1cd7810) cache_node_put:node put on node (...
2
votes
1answer
785 views

Remove multiple possible suffixes

Example: I want to create a quick command to shrink images (for my filebrowser). ... FN="/tmp/some-image.jpg" gm convert "$FN" -resize 50% "$(dirname $FN)/$(basename $FN .jpg/png/gif).jpg" ... How ...
0
votes
2answers
4k views

udev rule trouble on a Raspberry Pi (Raspbrian) using an ACR122U card reader

I am trying to get my ACR122U usable by all users on my Pi. I have the drivers installed correctly and nfc-list is working for root: root@raspberrypi:/etc/udev/rules.d# nfc-list nfc-list uses libnfc ...
2
votes
1answer
798 views

Can I convert an existing LVM VG to a stripe (RAID0 eq)?

I have an existing LVM volume group of 3 disks (ext4), with 4 logical volumes. Not quite ready for the leap to a nextgen FS, I would like to balance the load on the disks. I have seen you can create ...
0
votes
1answer
130 views

Secondary bridge only working at random in debian wheezy

We are currently migrating from vmware server to kvm. So far everything works smooth, with the exception of the secondary bridge. Our network layout is as follows: Firewall with 3 ports eth0 Public ...
1
vote
0answers
404 views

can't receive mails to thunderbird via postfix local server

A small introduction. I have a SMTP server ( Haraka - http://haraka.github.io/ ) on port 25 and a local postfix server on port 9267. I intercepts mails in Haraka and then I send them to my postfix ...
1
vote
1answer
359 views

Modoboa 1.1.1 Deployment Errors

I tried to install modoboa follow this steps: http://modoboa.readthedocs.org/en/latest/getting_started/install.html I installed modoboa with pip install modoboa: Traceback (most recent call last): ...
1
vote
1answer
3k views

Using EXIFTool to add EXIF data from filenames

There is a set of photos with timestamps in their filenames like these: Photo on 3-09-12 at 9.24 PM #2.jpg Photo on 3-09-12 at 9.24 PM #1.jpg Photo on 3-09-12 at 8.23 PM.jpg etc. ("3-09-12", ...
1
vote
0answers
1k views

How to set up Active Directory authentication on CentOS 6.5?

I have: 1. A CentOS machine to which I have SSH and STFP access. 2. The machine is on network where there is a MS SQL Server database and Windows shared drives. 3. All authentication seems to be with ...
2
votes
2answers
3k views

Disable SSH password authentication on specific interface

I have an OpenWrt router, I want to disable password authentication on SSH, so that one can only authenticate with keys. This is easily achieved by following the guide in the documentation, however, I ...
2
votes
1answer
6k views

Why should we use a ~15-25 GB root partition?

I have separate partitions for / and /home, yet my root partition is ~30 GB and growing. Why does everyone recommend a 15-25 GB root partition, and how is this achieved? Here is my space usage, along ...
3
votes
2answers
993 views

How to clone an apt repository to keep all old packages?

This may sound trivial, but I haven't found a solution anywhere yet. Is there a way to backup or clone an apt repository such that I get a clone that (1) contains all current packages and (2) keeps ...
2
votes
3answers
242 views

Make grep work for special filenames

I have a set of txt files whose names may contain space or special characters like #. I have a grep solution grep -L "cannot have" $(grep -l "must have" *.txt) to list all the files who have must ...
41
votes
1answer
50k views

Good detailed explanation of /etc/network/interfaces syntax?

I understood the very basic concept of how to use /etc/network/interfaces, but all I find online are examples, example after example, which I can copy-paste from. What I miss is an explanation of the ...
0
votes
1answer
395 views

Nagios : How to monitor windows host from linux “by command line”?

I need help to monitor windows host using command line in Nagios. As we can monitor Remote Linux host by NRPE (check_nrpe)using command line as : /usr/local/nagios/check_nrpe -H localhost -c ...

15 30 50 per page