0
votes
0answers
2 views

Unix AWK command with multiple field seperators

I am a newbie working on shell script. I faced a problem with awk where my field separator is having multiple characters. I have found the solution but I am unable to understand the script. AWK ...
1
vote
1answer
8 views

Brazilian Keyboard layout in CentOS 6.5

I'm Brazilian and new with Linux. I have the CentOS 6.5 with Gnome 2.28.2 running in a VirtualBox VM. I'm using it to PHP programming and I'm loving it. But I'm having a hard time to make ...
0
votes
1answer
10 views

What would stop a task from being run in the background?

I have a script I'm trying to launch with php ./Script.php & The task goes into the background but it is stopped. When I try to run it with bg it simply stays stopped. $ jobs [1]+ Stopped ...
0
votes
0answers
5 views

DB Synchronization between main and DR site

I hope I am asking this question in the correct section. I have an environment setup for my application which consists of master / slave Postgresql databases. The master and slave are being ...
1
vote
0answers
16 views

Can find work more efficiently to delete a large number of old files?

I want to delete old files in a directory that has a huge number of files in multiple subdirectories. I am trying to use the following - after some googling it seems to be the recommended and ...
0
votes
1answer
7 views

pkg: fail to extract pkg-static, New to UNIX

I am very new to UNIX, running FreeBSD 10 on an ASUS M50VM series laptop. I was following along with the handbook to the point at which it gets into using pkg to find software. Every time I run pkg, ...
2
votes
0answers
15 views

Module marked (F) in /proc/modules

On my 3.10 system some of modules listed in /proc/modules are marked (F). I'd like to find the cause of this (F). I am sure modules were not forcefully loaded and were built with the Kernel. Could ...
1
vote
0answers
10 views

Apply given rsync exclude patterns on given directory

I have a setup where I use rsync to mirror some source directory to a (remote) destination except for some files and locations defined witch rsync exclude patterns: # Useless files - thumbs.db - *.~ ...
1
vote
1answer
18 views

Sourcing bashrc file fails with ssh -t

ssh -vvv -F /home/me/.ssh/config serva -t "source ~/.bashrc" This is the output I get when I use -vvv flag: debug1: Authentication succeeded (publickey). debug1: channel 0: new ...
1
vote
1answer
21 views

How to make `less -FX' play nice with a 2-line shell prompt

My shell prompt is two lines long (a fancier version of [%n@%m %~]'$'\n''%#. I have $LESS set to -FX. When I quit less, it leaves a single line at the end of my screen, and since my prompt has two ...
0
votes
0answers
14 views

I cannot enter the vertical line character in OSX terminal

I'm using a Mac and I'm piping some data from curl to tar and when I went to hit the | in the terminal I got the o with an umlaut. It totally works fine, as the unicode character still comes up as ...
0
votes
1answer
17 views

Which Hex code for /boot partition

I planned to install ArchLinux on my laptop. I'm only at the begining, trying to understand all the step before doing them. I'm only at the first step, i.e. partitioning, that I already have a small ...
2
votes
1answer
10 views

How to install FreeBSD 10 from USB Hard drive?

I need to install FreeBSD 10 on an old PC with no CD drive but it has a USB port. I'm on a laptop running Windows 8.1 and have downloaded the FreeBSD 10 DVD ISO image. I have an external USB hard ...
2
votes
1answer
21 views

mount is not executed when called by udev

I tried to create some udev rules to mount and unmount my USB flash drives; the rules for the moment are very simple: ACTION=="add",KERNEL=="sd[b-z]",RUN+="/root/scripts/plug_flash_drive.sh %k" ...
2
votes
2answers
46 views

Loop in WildCard as Input of Script

I want to use my script on many files sometimes. I used this for the purpose: for etminput in $1 do #process done But this just gives the first input. How can I do the process on every ...
1
vote
0answers
5 views

How to enable IOMMU on the debian sid Kernel

I'm trying to enable IOMMU on my debian sid and with this kernel version : root@ziomario-Z87-HD3:/home/ziomario# uname -r 3.14-2-amd64 the motherboard of my computer is : GIGABYTE Z87-HD3 this is ...
0
votes
1answer
26 views

How can I parse my String using regular expression to get only certain number of matches?

I am currently using this following regular expression to split my String into groups. ^([a-zA-Z0-9]*)(\[([a-zA-Z0-9=]*)\]){0,1}@([a-zA-Z0-9]*)$ Pty[R=4]@ID I am getting four groups 1) Pty 2) ...
1
vote
1answer
15 views

How does ACL calculate the effective permissions on a file?

I ran the following command to give the wheel group rwx permissions on new files and subdirectories created: [belmin@server1]$ ls -la total 24 drwxr-sr-x+ 2 guards guards 4096 Aug 27 15:30 . ...
1
vote
2answers
19 views

Livesearch with first 10 matches as preview for zsh-history?

I have seen a history-livesearch with a preview, that shows the 10 first matches in the history in a list below the BUFFER-line, which is updated on every keystroke, and acts like the standard ctrl+r ...
0
votes
0answers
26 views

Netcat not listening on 443 [on hold]

when I try to use Netcat listener waiting for the inbound shell on port 443 its not working. I've tried other ports too but all seem to fail, for eg. nc -lv 1234. The target machine is inside ...
-1
votes
0answers
26 views

Lost all files/sub-directories in a directory (ext4 filesystem in USB HDD after resume), can i find them back? and why this happened? [on hold]

I lost all files in a directory today Computer: ASUS TX300 notebook. 1 SSD on screen side, 1 HDD on keyboard/dock side. the screen is detachable from the keyboard/dock OS: Fedora 20 x64 (on SSD) ...
2
votes
0answers
12 views

PulseAudio: Sound works after first pacat call

I've got a strange problem with PulseAudio and a gstreamer python script (pygst). The script below works only if I execute a cat /dev/urandom | pacat before. I've absolutely no idea what can ...
1
vote
1answer
15 views

“Cannot find -lgdbm” when making xemacs in FreeBSD10

I have been trying to install xemacs 21.4.22 in FreeBSD10 x64. Once I run ./configure and try to run make it gives me this error with libgdm.so library [eddyraz@laptop-eddyraz] ...
0
votes
0answers
18 views

Write failed : broken pipe on ARM

I'm trying to insert a kernel module (which is kaodv.ko) into my ARM (Sabrelite). After I successfully cross compile my module, I want to insert it with insmod command. To do this, I've copy the file ...
2
votes
2answers
159 views

How to use a defined local IP instead of external one

I have a Gentoo Linux server. Server is connected to two networks: internal and external. Internal network ip: 192.168.1.200 External network ip: 192.168.0.2 If I'm trying to make request from ...
2
votes
0answers
15 views

Advertising local HTTP services via Avahi/Zeroconf on Debian

I have a Debian server on local network for home media center/NAS purposes. It is running multiple services such as Plex, or Ajenti, which I can access like so: http://debian.local:32400/web for Plex ...
2
votes
1answer
20 views

How can I remove all my docker images?

Sometimes I just want to clear everything out of docker, and start with a clean slate. Is there a systematic way to just remove all my Docker containers & images? Containers $ docker ps -a | ...
1
vote
0answers
36 views

I want to suppress “no access to tty” error message?

I have a bash script where I use ssh to connect to another server and run some commands there. I found some sites that the error (Warning: no access to tty (Bad file descriptor). Thus no job control ...
1
vote
1answer
18 views

Is there an all-in-one command for RPM to downgrade a package to an older version?

I want to downgrade a couple RPMs. Is there a switch combination for that? For example, when upgrading, I usually run rpm -Uvh foo.rpm but my understanding is that the -U switch means that it only ...
2
votes
1answer
13 views

How can I remove a stubborn docker image?

I was trying to remove a Docker image as follows and could not figure out how to do this. List of docker images $ docker images REPOSITORY TAG IMAGE ID CREATED ...
1
vote
0answers
8 views

How to edit/fix a theme to make it support a newer version of gnome?

What I have: gnome 3.12 the Faence theme, http://tiheum.deviantart.com/art/GTK3-Gnome-Shell-Faience-255097456 Current issue: The faence theme "only" supports gnome 3.10, I don't want to ...
1
vote
0answers
7 views

GPG Problems When Releasing With Leiningen

I'm trying to use lein release (default, not the plugin). Now, I've installed gpg-agent and pinentry-curses, and gotten to the point where a separate curses screen appears, asking me for my secret ...
1
vote
0answers
24 views

How do you prevent a DHCP release during shutdown?

I am currently using Ubuntu 14.04, but expect this to be applicable for different distros. I would like to prevent a DHCP release during shutdown, and opt for either the lease to expire or for a DHCP ...
4
votes
1answer
37 views

Suppressing “sudo: sorry, a password is required to run sudo” [on hold]

I am trying to test if a user has the required sudo rights to run a command as another user without providing a password. What I have is this sudo -u other-user -n true if [ $? -ne 0 ]; then ...
1
vote
1answer
32 views

Bash STDERR still appearing after redirection [on hold]

I am trying to parse the output of yum check-update in Bash 4 (Red Hat) and want to skip the first line that states: 'This system is not registered to Red Hat Subscription Management. You can use ...
2
votes
0answers
9 views

unbuffer/expect swallows the rcode when its child is signaled

unbuffer is able to pass along the return code of a process under normal circumstance, but if the process you are unbuffering is killed, for instance with a segfault, I see $? as 0 while I expect 139. ...
0
votes
2answers
31 views

What is the significance of the “wheel” group? [duplicate]

I've commonly seen references to a wheel user group online as well as when setting up my sudoers file. Does naming a group wheel imply something special about the group or is it just a name for a ...
3
votes
1answer
26 views

Bash ignoring my PATH and it's cache

I have installed pip in my ~/.local/bin/ directory. Here are the outputs of which, type and $PATH $ type pip pip is hashed (/home/bcc/pedros/.local/bin/pip) $ which pip /usr/bin/pip $ echo $PATH ...
0
votes
0answers
14 views

Google Hangouts with dual monitor and GNOME Shell

When I start a Google's video Hangout and share my desktop, I would like to be able to share only the primary screen, but I don't know how. Right now I have two monitors (LVDS1 corresponds to my ...
3
votes
1answer
15 views

Search in mutt by date and time

I've been using mutt for some days now, and I think I have the basics by now. I'm able to search messages by date (l, ~d date ...) but what I need is to also search by time. Is it even possible?
2
votes
2answers
25 views

cpulimit does not detect Node.JS process

I was able to limit python process to use only 50% CPU with the following cpulimit -l 50 -e python but when I tried to do the same for Node, and it is not able to detect the process at all. Does ...
0
votes
2answers
37 views

How to combine arithmetic expansion and brace expansion? [duplicate]

Can peoples combine arithmetic expansion and brace expansion? $ for i in {$((1 + 1))..5}; do echo $i; done; {2..5} $ echo "bash laughs at me"
7
votes
1answer
44 views

What does a computer actually do with its spare CPU cycles?

When a computer is not running at full load, in the context of Linux, what does it actually do? Between scheduled threads, if there is nothing to do, does it spin wait? Does it enter some sleep state? ...
1
vote
0answers
7 views

X server started by kdm dies during startup because of keymap couldn't be loaded

I upgraded an OpenSUSE from 11.1 to 13.1, but after the upgrade, the X server refuses to start. If I execute kdm, the X server complains in /var/log/Xorg.0.log file that: (EE) Error compiling keymap ...
0
votes
0answers
26 views

Why can't I use public/private key authentication with ssh on Arch Linux?

I have the following setup on an Ubuntu machine: ~/dotfiles/authorized_keys2 ~/.ssh/authorized_keys2 -> /home/wayne/dotfiles/authorized_keys2 I had the same setup on my Arch machine, but when I ...
1
vote
0answers
10 views

tmux blocks certain things on my Mac

I really like tmux and use it often so I set the following in my .zprofile: [[ $TERM != "screen" ]] && exec tmux so when I open a new window, tmux will be there for me. However, there are ...
0
votes
1answer
31 views

Linux Permissions [on hold]

In linux system, there are two users, user A in the same group of my directory and user B from different group. I want to allow B to access my home directory but I do not want A to access or see any ...
0
votes
0answers
3 views

Memory and CPU Monitor Usage graph [on hold]

I want to get the dynamic CPU and Memory readings of 3 servers of last 30min and get the graph on the desktop,can anybody help me with the script?
4
votes
1answer
90 views

`seq` and bash brace expansion failing

IINM my system is failing when bashing for i in {0..10000000}; # Seven zeroes. do false; done # `bash` exited and its `tmux` pane/window was closed. or for i in $(seq 0 10000000); # ...
0
votes
0answers
11 views

To mail server or not to mail server [on hold]

I am in the process of setting up the mail servers for my server. I think the previous implementation was created using Google apps. I want to create my own independent mail server. I'm thinking this ...

15 30 50 per page