1
vote
1answer
59 views

How to silence spam or unwanted email from email-lists with Procmail?

I joined an email-list. I found it low-quality and I don't have time to follow their discussions. Then I informed the head to remove my email but they haven't done it. How can I can silence their ...
0
votes
1answer
2k views

glibc malloc() uses mmap() for small blocks of memory allocation?

I learned that on Linux the glibc’s malloc() uses mmap() for very big chunk of memories and brk() is used for small allocations. However that does not seem to be the case when I experiment the theory ...
6
votes
2answers
4k views

I try to add passwords to the “pass” password manager. But my attempts fail with “no public key” GPG errors. Why?

I am trying to install Pass: the standard Unix password manager, however, when I try to add passwords to the appliation I get these errors gpg: Kelly's Passwords: skipped: No public key gpg: [stdin]: ...
2
votes
2answers
387 views

notify-send fails to specify a destination, and my notification doesn't appear onscreen. Why?

Notification through libnotify seems to work under icewm, as the different notifications from applications like konversation show. But I can't get it to work from the command line using the ...
5
votes
2answers
720 views

Is there any way to prevent focus being grabbed by another application?

I am getting annoyed by windows under X opening and taking focus away from the current window which has focus. This is particularly annoying when you are typing a password into a password dialog and ...
4
votes
2answers
610 views

syncing two maildirs

I have a server that I use to frequently get email from Google using offlineimap. the email is stored in a maildir format on this server. What tool can I use to sync this maildir with the local ...
2
votes
2answers
237 views

Bind MetaL in icewm

Anybody managed to bind the Windows key in IceWM ? It seems I can't bind it to anything since I disabled the "treat as Ctrl+Alt" option. # Treat Super/Win modifier as Ctrl+Alt # ModSuperIsCtrlAlt=1 ...
2
votes
3answers
4k views

How to automatically mount remote directories on login / startup

Everytime I boot, I use sshfs to mount remote directories. I am thinking to put these short commands in my .bashrc, but that does not seem to be The Right Way™. What is the proper way to run sshfs on ...
3
votes
1answer
696 views

How to restart icewm from the command line?

I'm looking for a way to bind for example the Ctrl+Alt+Ins key combination to a command line that would restart icewm (just to make it read the configuration files again and be aware of the edits). ...
2
votes
3answers
6k views

How to tell who is connected via vnc to my machine?

How do I check how many vnc connections or different users are currently connected to my machine? Only through wireshark? And how do I kill any other users connected through vnc?
1
vote
3answers
12k views

tar: Unexpected EOF in archive

I am trying extract .tar.gz file it but with no luck gzip: stdin: unexpected end of file tar: Unexpected EOF in archive tar: Unexpected EOF in archive tar: Error is not recoverable: exiting now the ...
2
votes
3answers
5k views

Partitioning disk image file

I want to partition raw disk image with the following commands #creating the blank image $ dd if=/dev/zero of=example.img bs=1M count=50 #write the partition table $ parted example.img mktable msdos ...
1
vote
2answers
2k views

Multiple gcc and linking between them

I'm running centOS 6.3 which comes with gcc 4.4.6 and I installed gcc 4.6.3 using these instructions. But when I type gcc -v it still says gcc 4.4 is the version I'm using. The newer version is under ...
1
vote
2answers
1k views

How can my server detect IP changes in order to notify my dynamic-DNS provider?

Just set up ubuntu server, which has a dynamic ip. I am looking for a way to keep my dns server updated. Im using entrydns to do this and they provide the following command to update the server. curl ...
4
votes
3answers
1k views

rsync server/daemon security

I have a NAS (Netgear Readynas NV+) at home and a linux (Arch) box at work that is always on. The linux box is already running an ssh server/daemon and the NAS is already running an rsync ...
0
votes
1answer
2k views

rc.status equivalent in Redhat

I need to have rc.status file in RedHat Linux, to install one software(java app). Is there any way to enable it on RedHat? Or is there an equivalent on RedHat?
1
vote
2answers
489 views

Unique lines with unique words

Help me to print unique lines in Linux. Word examples like A B B C C D A E F G H I I J the output should be F G H I I.e., the line should be unique at first and the words in the line should ...
2
votes
1answer
527 views

Hide parent directory but allow to view dir

I would like the following result on my UNIX system: ls -l /users/test -> permission denied, or any other way so I can't see the content of it. ls -l /users/test/testdir/ -> shows all files in the ...
2
votes
2answers
1k views

Is there any impact of reaping zombie processes?

I will execute following command for reaping zombie /usr/bin/preap $(ps -ef | grep defunct | grep -v grep | awk '{ print $2 }' | xargs) Is there any service impact of this approach ?
1
vote
1answer
248 views

ServeRAID error in syslog, is it important?

I was checking the logs in server when i came across this message. Nov 4 12:52:05 SERVERNAME ServeRAID Manager Agent: [338] Periodic scan found one or more critical logical drives: controller 1. ...
4
votes
5answers
4k views

Debian checkinstall ignores install=no; how to have it build, but NOT autoinstall a package?

Ok, here is one thing that puzzles me... I'm trying to build a package from source, and then use checkinstall to generate a .deb package. Note that I want to just create the .deb package, but I do NOT ...
3
votes
0answers
236 views

How many rings does OpenBSD use?

Usually a Windows/Linux operating system uses afaik max 2 rings But how many rings does OpenBSD use?
3
votes
2answers
323 views

Same target IP address when using tsocks

I need to use tsocks (to tunnel an ssh connection through an ssh tunnel to reach given machines), but there is a problem. There are two servers that has the same IP address (that I need to reach ...
1
vote
1answer
686 views

Automatically install build dependencies prior to building an RPM package

I am trying to build the .rpm package. i have just followed the steps to do that. Till now all step was gone fine but now i just stuck with this step. I just ran the following command and got this ...
3
votes
3answers
4k views

In Vim, how can I delete all text from the current cursor position until the next space?

In Vim, I know d$, that deletes everything to the end of line. But how can I delete all text from the current cursor position until the next space? dw doesn't work, since it treats symbols like colon ...
3
votes
0answers
129 views

tab-expansion and “./” bash shell [closed]

Maybe someone here would be able to help me out. Have installed Ubuntu 12.04 LTS (kubuntu) on two machines. The .bashrc and .bash_profile files are identical as the file structures on each machine is ...
3
votes
4answers
2k views

Can't add large number of rules to iptables

I made a very simple bash script (echo at start, runs commands, echos at end) to add approx 7300 rules to iptables blocking much of China and Russia, however it gets through adding approximately 400 ...
5
votes
2answers
12k views

How to use a timer in bash?

I needed a timer which will start at the very beginning of the script and stops at the end.Can anyone help me with that?
0
votes
2answers
3k views

Is a shell script is a programming Language [closed]

This is the first question in UNIX: I was started shell script from 2 days before. But I have a conflict: is a shell script a special programming language for a specific shell??
5
votes
5answers
7k views

Live USB: how to access USB drive that linux booted from

Can't find it in /media or /mnt. What I want: live distro so I have guarantee it won't break and will boot/work every single time have access to directory on that USB drive for storage purposes, ...
4
votes
1answer
300 views

vim auto complete custom list

I had these two questions about this function " how do I load a file into a list here? " set some variable func! CustomComplete() " and then read the variable here so that b:list = a \n split ...
4
votes
3answers
4k views

DNS Master vs Slave and Primary vs Secondary

I'm a little confused about the difference between a "secondary name server" and a "slave name server" and a "primary name server" and a "master name server"   I understand that a slave name server ...
1
vote
1answer
2k views

Error when restarting Postfix

I have recently purchased an SMTP server for my web app (I need to send account confirmation emails to my users and I don't want them to go into the SPAM folder, I will also be using it for email ...
4
votes
1answer
9k views

nmap shows me that one service is “open|filtered” while locally it's “open”, how to open?

I have a Quake 3 server. And it's launched successfully. The problem is that no one can connect to that server. I am running: nmap -sU -p 27960 hostname and it's showing me that it's state ...
2
votes
1answer
52 views

How to prevent tmux from displaying date in new window

When I create new window in tmux it displays name of current directory and date: Directory: /home/killy nie, 4 lis 2012, 14:51:18 CET [killy@xerxes : ~] How can I prevent that? EDIT: I realized ...
4
votes
1answer
125 views

Emacs depends on perl

Why does emacs depend on Perl? I thought it is all based on C/Lisp? Emacs Version 24.1.4.fc17 (Working on a fresh out of the box fedora17)
2
votes
1answer
351 views

systemd stuck on mounting an encrypted volume

systemd seems to stuck on mounting an encrypted volume, when I set the init to /usr/sbin/systemd in grub.cfg, I have one line in /etc/crypttab secure /dev/sda8 /etc/cb.key That works with original ...
10
votes
3answers
6k views

Configure up-arrow to browse through commands with same initial characters rather than all previous commands

On the bash command-line, ↑ gives me the previous command. On the command-lines in numpy or matlab, when I type a few characters, ↑ gives me the previously entered command starting with those ...
4
votes
3answers
1k views

Find files that have words in common

What would be the best way to create a list of files that have common words with a given file. For example, if I had: $ ls mainFile file1 file2 file file4 $ cat mainFile exquisite malicious ...
1
vote
1answer
396 views

How can I configure postfix smtp per user?

I have previously used msmtp as my MDA. msmtp has a configuration file with username and password of the outgoing smtp server (eg gmail) stored in my home directory. I've recently changed ...
2
votes
1answer
209 views

Binding additional keyboard shortcuts in bash

I like typical GUI shortcuts: Ctrl+Backspace Ctrl+Del And other typical shortcuts. Are there any ready .bashrc with all this shortcuts available?
0
votes
2answers
3k views

Update is telling me my package system is broken - the instruction to fix it doesn't work - what to do?

I am using Linux Mint 12 and currently have the Mate desktop running. The icon in the upper right showed their were updates. Tried to do it and it said that The package system is broken ...
2
votes
1answer
585 views

Recover MDADM Raid 5 in LVM with badblocks

I'm pretty sure I'm dealing with at stuffed RAID 5 array. Two of the drives were listed as failed in /proc/mdstat and mdadmdetails: 0 0 8 33 0 active sync /dev/sdc1 ...
1
vote
0answers
97 views

VNC session turns undead over the weekend

During the week I have a single VNC session I'm working with throughout the week. However, whenever I come back from the weekend or some vacation, I can no longer connect to that session, getting a ...
4
votes
1answer
476 views

Filtering the keyboard input

I have a program that takes input from the keyboard and presents a nice visualization. The purpose of the program is so that my infant can mash on the keyboard and get the computer to do something. ...
3
votes
1answer
191 views

Stop aria2c from parsing torrent file

When I download a torrent file with aria2c, it always try to parse it and add a torrent task, but all I want is get that file. Is it possible to stop aria2c from doing so? I didn't seem to find an ...
2
votes
1answer
2k views

What is the difference between cmask and umask?

What is the difference between the umask setting that can be found in /etc/profile and the cmask setting that can be found in /etc/default/init? What is the difference between the two? When will one ...
2
votes
2answers
86 views

^P not working in zsh, where should I look at?

I copied my bashrc and start tweaking it for zsh, but I suddenly found ^P wasn't functioning, It just print a ^P on screen. What could be wrong? Or where should I look at now?
17
votes
3answers
7k views

What's the newline symbol in zsh's PS1?

I'm trying to setup a multiple line PS1, for zsh, but \n doesn't was parsed by zsh, PS1="%~\n %> " How should I set it up?
1
vote
1answer
560 views

Adding Windows user to Linux group; possible? [closed]

I have a NAS that runs on Linux and I connect to it from my Windows desktop. I noticed that all directory in that drive belongs to user 'root' and group 'root'. That effectively denies me the right to ...

15 30 50 per page