1
vote
3answers
786 views

Debian doesn't boot anymore

I use Debian Wheezy. Yesterday I added a new HDD to the system and expanded the LVM using the system-config-lvm gui-tool. I have a logical LVM group for root, /, and one for home, /home. I also ...
16
votes
1answer
5k views

Vim: Making XML text “pretty”

Is there an easy way within vi to make your XML text "pretty"? For example: I want this.. <person> <name>Nick</name> <age>26</age> ...
1
vote
0answers
103 views

Allocating resources to VPS's

I need a layman's term definition of these parameters and what they do in terms of allocating resources to servers, as I'm having issues with the VPS's that I set up, as Java seems to be unable to set ...
4
votes
1answer
610 views

rsync: how to relocate absolute symlinks?

I've pored over the rsync manpage as well as on several related questions here on serverfault. I've played with -R and -L and -l options, but no luck. Here is the question: when sending a dir from ...
2
votes
0answers
173 views

OpenLDAP error while adding an ACL

I'm trying to add an ACL to my DIT and I get the following: Enter LDAP Password: modifying entry "olcDatabase={0}bdb,cn=config" ldap_modify: No such object (32) matched DN: cn=config This ...
1
vote
2answers
12k views

Help understanding cut command in script

In a bash script, there are the following 2 lines: ipaddr=$0 segments=`echo $ipaddr | cut --delimiter=. --fields=2-3 --output-delimiter=/` I do not know how to interpret the second line where the ...
1
vote
0answers
2k views

Remove Aptana Studio 3 in ubuntu 12.04 LTS

I have actually two questions. I was using Eclipse in ubuntu 12.04LTS, it was working fine. Then I install Aptana Studio 3 and after installing Aptana Studio 3 Eclipse stop working. Any thoughts ...
6
votes
2answers
765 views

Can a user brute-force a directory listing without having read permission on the directory?

I noticed that when a user is working in a directory to which he does not have read permission that using cd produces different error messages, depending on whether or not a subdirectory exists: $ ls ...
7
votes
1answer
6k views

What does <defunct> mean in the output of ps?

I had issued the ps -ef|grep java command and this is one of the entries that I got : subhrcho 875 803 0 Jan23 pts/5 00:02:27 [java] <defunct> What is <defunct> implying here ? ...
6
votes
1answer
1k views

Subversion: how to determine when files became corrupt

I'm using Subversion just for private synchronization between a laptop and a desktop. Recently I discovered that several ASCII files and several binary files were corrupted. Instead of the expected ...
6
votes
1answer
8k views

Bonded network interface is not available after a reboot

I have some servers with multiple network interfaces, setup with bonding and some VLANs. Whenever I reboot the server, one of the bonded network interfaces is not reachable from other servers, nor can ...
0
votes
3answers
2k views

Kate vs VIM/Emacs regarding speed [closed]

I'm trying to learn C++ in school using a UNIX environment and our professor urges us to use VIM or Emacs because a GUI is disadvantageous for two reasons: Moving your hands off the keyboard and ...
1
vote
1answer
470 views

Parse log file for value changes

From this answer I have reduced a log file to this: Timestamp:1359021601 2013-01-17 15:00:01 size: 10G /mnt/SolrFiles/solr/api/ Timestamp:1359025201 2013-01-17 16:00:01 size: 11G ...
5
votes
3answers
312 views

Creating linux distro for use during exam

I'm thinking about creating a liveCD having some linux on it. The distro (let's call it Exam OS) is meant to be used by students during an exam and should be, at least, unpleasent to bypass. Let's ...
0
votes
1answer
230 views

Debian 7: Gnome3 sometimes stops when loading

Sometimes (rather rarely) when I boot up my laptop, my Gnome3 desktop stops loading. I can move the mouse, but there's nothing else on the screen (except my wallpaper). And it seems that no matter how ...
3
votes
0answers
2k views

The right way for dynamic ssh port-forwarding

Want my Firefox could use localhost:9099 proxy forwarded from vps server, why it doesn't it work this way? I always get bind: Address already in use $ ssh -vfND 127.0.0.2:9099 vpn OpenSSH_5.9p1, ...
4
votes
2answers
1k views

Does setting the system time back impair logrotate operation?

I'm working on an embedded linux system where the root filesystem is mounted from an SDcard. Although many systems like this just mount /var/log on a ramdisk, I'd like to save the logs to the SDcard ...
2
votes
1answer
54 views

Mediastream goes defunct

I am running my donnet framework based application using mono in Linux Ubuntu. My application uses linphone's mediastream command to open the RTP socket and hook the audio device. I am using the ...
10
votes
1answer
585 views

Bash tab completion expands “~” into “/home/___” when it didn't before

Previously, if I typed ~/biTab, before, it would turn into ~/bin. However, today it started turning ~/biTab into /home/username/bin. I would rather have it the former, but I'm not sure what happened ...
2
votes
0answers
475 views

Failed to execute shell script from “network” udev rule to change the MAC-address

I am trying to execute a shell script from udev rule, when a network interface is added, as follows: SUBSYSTEM=="net", ACTION=="add", KERNEL=="eth*", PROGRAM="/usr/local/bin/changemac.sh", ...
1
vote
1answer
2k views

Redirect Packets from ppp0 interface to ethernet interface in linux

My question is similar to this question, however with some change. I have a PPPoE connection on my Linux Machine (CentOS kernal 2.6.32) as a client, so that when I setup this connection, another ...
1
vote
5answers
20k views

copying files from unix to windows?

Is there any way to automate the process of copying the files between windows and unix without doing it manually, using tools such as winscp. I need to copy files from unix to windows such by ...
1
vote
0answers
337 views

How to setup a simple email daemon with autorespond and mail forwarding?

Since my mail provider unfortunately offers neither an autoresponder nor forwarding mail to others during vacancy, I'd like to setup e.g. a RaspberryPi to regularly check my mail account (via POP3 or ...
4
votes
4answers
953 views

If I have an SSD and a hard disk in a system, can the SSD act as cache for the hard disk?

Say I have some partitions; one on a SATA drive and one on an SSD. I want to create a "virtual" hybrid disk. Is this possible?
2
votes
3answers
576 views

Does Linux have ways to cache IO with memory

My server has a large amount of memory. However, the amount of IO (each of which is small) is very high. Is there a way to make a virtual drive out of portion of the memory? I realize I can also use ...
3
votes
1answer
364 views

mpirun with ssh and X11

At present we're trying to write a program which uses mpirun to launch multiple X11 clients. If the programs are text-only, then using the following command, we can run proceses on a list of ...
1
vote
1answer
367 views

Before mounting an NFS share, can the NFS client know if it's NFS v3 or v4?

The mount command in linux requires -t nfs4 in order to mount version 4 NFS shares, so I need to know beforehand which version it is.
0
votes
1answer
203 views

Bash config files being read in contradiction to `man bash`

While trying to determine the differences between .bashrc and .bash_profile I notice that .bashrc is never read, and that .bash_profile is only read from SSH, but not from PHP. This seems to ...
7
votes
2answers
12k views

What is log_daemon_msg ?

I was looking through /etc/init.d/ssh to get an idea of how a "proper" sys daemon is run at boot (I'm trying to add svnserve to that list). I saw this log_daemon_msg used as a command, but I have no ...
1
vote
2answers
2k views

Nginx + PHP + FTP - user permission issue

I have a wordpress copy installed on /home/username/public_html/site, and now the problem is : Nginx running PHP with "www-data" identity The site folder owner and group are "username", not ...
1
vote
3answers
3k views

How to fix speckled flash videos in Linux Mint 14?

I have recently installed Linux Mint 14 and youtube and other flash based videos are displaying lots of yellow and red specks. It doesn't matter which browser is being used either. I've tried ...
6
votes
1answer
3k views

Query USB current

How can I obtain information about the amount of current negotiated by a device attached to a USB port? I am looking for information similar to this presented by OS X in terms of current available ...
0
votes
1answer
3k views

How can I get Broadcom 4301 to work in Crunchbang Linux?

I've sunk about 6 hours into this and have not made much progress. I've installed Crunchbang, 32-bit, Waldorf on a Dell Inspiron D600. Before I took any steps, the network manager told me ...
33
votes
4answers
1k views

Is there a tool/website to compare package status in different Linux distributions?

I am currently looking for a website or a tool that would allow me to compare the package state of a particular software in different Linux distributions. For instance, which version of gimp is ...
3
votes
1answer
101 views

Mapping keyboard: at most primitive level

When I was using a comfort curve keyboard which had media keys, those keys worked as media keys in X ( with different users), in single-user mode and in multiuser-mode without X. Then I switched to ...
4
votes
1answer
4k views

What are special prompt symbols for busybox's sh support?

I want to setup a time prompt on PS1. But, there is no document about what are symbols the busybox support. Is there any one know? Here are all which I knew. PS1='\u@\h: \w \$'
0
votes
2answers
401 views

One-liner to execute a process in a current directory with no output and disown it?

I'm trying to do something fairly simple: $ ( cd /opt/myprogram && ./myprocess.sh >/dev/null 2>&1 & ; disown $! ) -bash: syntax error near unexpected token `;' How can I bust ...
19
votes
3answers
2k views

Securely delete files on btrfs filesystem

Sometimes, there's the need to delete a file in a filesystem, and make sure that the file is truly gone. A file that contains sensitive passwords, for example, should be throughly wiped from the disk. ...
7
votes
1answer
1k views

Raspberry Pi, serial console, minicom, and gnome-terminal

I'm trying to access my raspberry pi via its serial console on the gpio pins. It's working fine through a USB-3.3v serial dongle. However, there's a problem with long lines and long screens not ...
0
votes
1answer
264 views

How do I retrieve email with Exim4?

I successfully installed and configured Exim4 on my Debian/Squeeze machine, so now I am able to send outgoing emails with a command like this: exim4 -v recipient@domain.com From: sender@domain.com ...
3
votes
3answers
1k views

Solaris 11 randomly crashed

I have a Solaris 11 machine that randomly crashed this morning. After physically restarting the machine, I noticed that all of the drives were marked with a Sense Key: Soft_Error both in dmesg and in ...
5
votes
2answers
2k views

Setting a shell variable in a null coalescing fashion

I'm really fond of "null coalescing", where you can set a variable to the first "non-null" value in a list of things. Many languages support this, for example: C#: String myStr = string1 ?? string2 ...
4
votes
1answer
3k views

Debian pinning - Use stable but install from testing/unstable when necessary | Also install deps from stable, backports when available

I am configuring a Debian 6 (Squeeze) x86 server, and want to install some packages from testing or unstable when needed, so I'm using pinning. I have configured my /etc/apt/sources.list as follow: ...
22
votes
2answers
8k views

How do I remove a file with no permissions?

A hacker has dropped a file in my tmp dir that is causing issues. Nothing malicious except creating GB's of error_log entries because their script is failing. However, the file they are using to ...
3
votes
2answers
901 views

Please explain the -f option in pgrep

man pgrep says the following about -f option: -f The pattern is normally only matched against the process name. When -f is set, the full command line is used. What does it ...
6
votes
2answers
29k views

Debian: very low resolution and an “unknown monitor” problem

Edit: I have installed CrunchBang (or #!, a Debian-based distro), and that seems to have solved all of my resolution problems. I've just installed Debian after using Linux Mint for a few months. ...
2
votes
1answer
238 views

Why can't gnutls contact this site?

Why can't gnutls contact the site in question, even though wget gets the page just fine? $ gnutls-cli https://site.com/login.php --insecure --print-cert < /dev/null > cert WARNING: ...
2
votes
2answers
137 views

Using Diff with -y to get side-by-side output

I am trying to use diff with -y to get side-by-side output, but my output gets messed up after about 18 lines. Here is an example, any clue why? (Check from *.java_pool_size=134217728) : ...
0
votes
0answers
2k views

GRUB fails to install

For the past two days, I have been attempting to install Linux Mint 14 64-bit edition. Each time, the ubiquity installer has failed with this error: Executing 'grub-install /dev/sda' failed. This ...
1
vote
2answers
3k views

Help inserting a new line of text after matching a line of text (sed)?

I need to insert a hidden HTML input tag into any form tag within a bunch of HTML files. I assume this is possible with sed, but need help forming the command. My idea is to search for any instance ...

15 30 50 per page