2
votes
1answer
1k views

./configure, syntax error: unexpected token (lighttpd)

I want to build a modified version of lighttpd. I follow this tutorial: Downloading and building the H264 Streaming Module for Lighttpd (version 2) This is what I've done so far: apt get install ...
85
votes
8answers
95k views

Is it possible to see cp speed and % copied?

I'm having problems when copy large files using nautilus (it gets stuck) so I need to copy using cp. I would like to know if there is any parameter that shows the % copied and also the transfer ...
21
votes
1answer
17k views

Delete last N lines from bash history

When accidentally pasting a file into the shell it puts a ton of ugly nonsense entries in the bah history. Is there a clean way to remove those entries? Obviously I could close the shell and edit the ...
1
vote
1answer
129 views

view history of opened programs Manjaro Linux

Is there a way to view a log, or history of all programs opened in Manjaro Linux?
27
votes
4answers
21k views

Why SSH takes a long time to Connect

I have noticed that some Linux Servers in Network takes long time to connect using ssh. Situations: There are two situations I have faced: On some servers some times it takes a long time to ask ...
3
votes
1answer
203 views

Slow ecryptfs mount

If I create an encrypted share (internally done via ecryptfs) on a synology disk station DS109 (DSM 4.1), mounting is very slow (approx 40 seconds). It doesn't matter if I do it via the ...
0
votes
2answers
2k views

How to find and replace a particular string in a specific line

I developed a code which find and replaces a specific string in all xmls under all subdirectories. But i dont want all occurances to be replaced. In entire xml, code should find the tag xyz and ...
0
votes
2answers
407 views

GUI for newsbeuter?

Is there a GUI for the feed reader newsbeuter? Or would there be an easy way to create one for it? Or is there any other graphical feed reader that could use the cache.db database (SQLite) of ...
2
votes
0answers
547 views

google chrome tray icon broken in gnome 3.6

Google Chrome starts up with the correct tray icon but when restarted it has the broken tray icon. Has anyone filed a bug report about this? And is there any workaround at present?
3
votes
1answer
4k views

Email Sent via root@domain.com despite modifying /etc/aliases

First, here are the entries I added/modified in /etc/postfix/main.cf file: mydomain = domain.com myorigin = $mydomain relayhost = email-smtp.us-east-1.amazonaws.com:25 smtp_sasl_auth_enable = yes ...
0
votes
1answer
247 views

Altered fstab - no longer able to SSH or access http

I might have done something stupid on my person debian server - I altered the fstab file. I changed udev to dev to try to fix a mounting issue in /dev/sda1 but after I restarted the server, I cannot ...
2
votes
1answer
498 views

bash scripting add arguments

I have created a script which takes parameters and arguments. I want to insert the --help argument. I already know how to parse normal arguments with -, but I don't know how to parse the -- ones. to ...
1
vote
2answers
74 views

Latex auto package loading

In Windows, TexWorks loads the missing sty packages itself. In Linux it doesn't: how is this sty loading managed in Linux?
2
votes
1answer
658 views

Chrubuntu on Acer C7: SD card reader only works on AC power?

I have an Acer C7 chromebook on which I have installed Chrubuntu. Everything works great except that the SD card reader doesn't work when the computer is running from battery power. It recognizes the ...
39
votes
7answers
9k views

Why does mount require root privileges?

Why does Linux require that a user be root/using sudo/specifically authorized per mount in order to mount something? It seems like the decision as to whether to allow a user to mount something should ...
0
votes
1answer
133 views

/var has most of the drive space. Need / to have most of it

So when my host setup my dedi, they seemed to apply most of the drive space to /var I am on cpanel, and need most of the space for the /home directory where all the accounts and data are. But on ...
0
votes
1answer
337 views

Having trouble executing a compiled C program

I am running an Ubuntu v10.04 through VirtualBox. To test the persistence of files I create in the virtual machine, I wrote a very basic C program. When I shutdown the virtual machine and restart it, ...
0
votes
0answers
377 views

Installing boost 1.46 in Linux Mint

I've just installed Linux Mint 14. Some application I need requires Boost 1.46. For some reason, it fails to compile with the Boost available in Mint's repo (1.49). Is there a way to install Boost ...
1
vote
0answers
733 views

How to awk printf additional string with backslash [closed]

I have a csv that I want to add a preceding column to and a trailing column. The trailing column is a date (manual string right now). Every time I try to get that date, it ends up replacing some text ...
0
votes
3answers
3k views

Kill nohup command on cluster

Last night I launched a command via nohup on a cluster and then closed the connection. Today I would like to kill this job (I know it's still running because output is being generated in an output ...
1
vote
2answers
2k views

OS X setting environment variables

I have OSX 10.8.2 with ZSH as my shell and iTerm as a terminal (don't know if the last thing is relevant). I have to mention that I'm relatively new to OSX. I'm trying to set up some environment ...
0
votes
4answers
3k views

Overriding functionality of special keys on CM Storm Trigger keyboard

I have a CM Storm Trigger Keyboard. This has some special keys, which can be programmed to trigger certain macros. There are special "M" keys for macros on the left-hand side, and there are two ...
21
votes
1answer
33k views

Understanding /etc/aliases and what it does

These are the contents of '/etc/aliases' file on my Debian (Wheezy) server, as it is: # /etc/aliases mailer-daemon: postmaster postmaster: root nobody: root hostmaster: root usenet: root news: root ...
0
votes
1answer
781 views

ssh daemon error: sshd must be own

Running service sshd restart and then service sshd status on my system as root prints the following error: Redirecting to /bin/systemctl status sshd.service sshd.service - OpenSSH server daemon ...
12
votes
3answers
1k views

Practical use for moving file descriptors

According to the bash man page: The redirection operator [n]<&digit- moves the file descriptor digit to file descriptor n, or the standard input (file descriptor 0) if n is ...
11
votes
4answers
6k views

What's the difference between a hard links and copied files?

RHEL 6 My understanding is that hard links include a copy of the original file and that I could delete a hard-linked file in one directory, and it would still exist in the other directory. If ...
2
votes
1answer
3k views

How do you mount an ext2 formatted qemu disk image?

I am having issues mounting an image I created with the qemu-img program. Every time I attempt to invoke mount upon the subsequent file, it responds with failed to setup loop device: No such file or ...
3
votes
1answer
377 views

Significance of arrows symbols in duplicating/closing file descriptors under bash

I'm reading a book about Linux command line where author doesn't seem to follow the conventions in bash manual regarding arrows symbols used in redirection operations. Namely, he always uses left ...
0
votes
2answers
154 views

How to create an ISO file out of 2.5M files?

So I have a good number of files (based on current node count in the filesystem, 2498329) and when I try to make an .iso out of it, mkisofs runs out of memory, pushes the machine into swap and then ...
1
vote
4answers
288 views

Why would someone want to change the last access date of a file without making actual changes within the file itself?

CentOS 6 I'm studying RHEL / Centos and recently learned that the touch command can be used to change the last access date of a file. I'm struggling to understand a practical reason why anyone would ...
1
vote
2answers
387 views

How to make dns resolve faster

I changed name server of one domain. Then I flush dns root@host [~]# /etc/init.d/named restart Stopping named: [ OK ] Starting named: ...
3
votes
1answer
428 views

zsh completion: getting file names from a specific directory

OK, a little background: I use a Mac, and I do as much as possible in the CLI. In particular, I frequently pop in a USB stick, cp or mv a file over, and then immediately wish to eject (unmount and ...
2
votes
2answers
834 views

Why linux uses swap memory when there are still tons of physical memory unused

root@host [/home4/nudenude/public_html/hello/cache]# top -r top: unknown argument 'r' usage: top -hv | -abcHimMsS -d delay -n iterations [-u user | -U user] -p pid [,pid ...] root@host ...
1
vote
2answers
7k views

What does SWAP mean in top?

It says p: SWAP -- Swapped size (kb) The non-resident portion of a task's address space. q: RES -- Resident size (kb) The non-swapped physical memory a task has used. RES = CODE + ...
2
votes
1answer
3k views

How to run Steam from the Xfce desktop?

I've installed Steam on Debian 7.0 without any hassle, and I can run it by typing steam &. I've set it as a desktop launcher in Xfce, but when I ran it, nothing happened. Then I've check the ...
4
votes
2answers
329 views

Aliasing 'python' to 'ipython' only when 'python' is run without args

I thought it would be nice to have an alias (in ~/.zshrc) to have 'python' aliased to 'ipython' ONLY when 'python' is run without args (otherwise, programs won't launch). First of all, how to express ...
2
votes
2answers
2k views

Unable to rename a RAID device: stuck with /dev/md126

I had a fully working server. I booted with SystemRescueCD, without writing anything. I didn't even mounted a partition. Then rebooted the server. The server no longer boot correctly because some ...
1
vote
0answers
575 views

Mint Debian Install - Thinkpad T430s Problem

I wanted to try out the Linux Mint Debian. I downloaded an iso, checked it and then dd it on a usb stick. I boot on the usb fine and Mint is starting, but then it looks like that : The desktop ...
2
votes
2answers
2k views

How to interpret this top command

top - 04:36:16 up 32 days, 2:33, 1 user, load average: 251.72, 250.54, 231.19 Tasks: 785 total, 249 running, 522 sleeping, 2 stopped, 12 zombie Cpu(s): 8.9%us, 90.5%sy, 0.4%ni, 0.0%id, ...
4
votes
1answer
10k views

How to Format an LVM partition

I need to format a partition. But I have one LVM on my machine (VirtualBox) that is composed of two different two partitions of two Virtual HDD's (sdb5 and sdc5) fdisk output df output
4
votes
2answers
2k views

Purpose of using setuid() in SUID programs

I wonder that an SUID program like passwd is using the setuid() function call. Why does it drop root privileges? Against what types of attack does this help? Buffer-overflow?
1
vote
1answer
125 views

Lock a script starting daemons

I'm run a script with cron: */10 * * * * flock -n /tmp/lock script I have to make sure that only one instance of the script is running at the same time, and for that I'm using flock. The problem is ...
2
votes
1answer
204 views

What is the corresponding freebsd command of these rpm commands?

I know about rpm, but I am newbie about freebsd packaging system. I learnt about how to create package and know I want learn how to get some information about packages or files. Can somebody give me ...
1
vote
2answers
251 views

Installation of RHEL and softwares on multiple machines

In our organization, we have 15 new systems each with same hardware. I need to setup all the machines with RHEL 6.0 in it, multiple software, and lot of basic configuration. I don't have any ...
0
votes
1answer
36 views

A user in a group does not have group access?

I have a fresh install of ubuntu server 12.10. I have created a group called www-dev and a user called dab. the user is in the group and i can verify that by members www-dev which returns dab. I ...
3
votes
3answers
76 views

How to separate numerical values from identifiers

I'm currently writing a shell script that seperate values from their identifiers (retrieved from grep). For example, if I grep a certain file I will retrieve the following information: value1 = 1 ...
1
vote
1answer
97 views

How to make ZSH tab completion work with two tabs

I saw a question like this on here, but the answer didn't work for me. I'm trying to set up tab completion and I want it that if I have two files fileA and fileB and I type fil<tab> it first ...
23
votes
1answer
5k views

git diff displays colors incorrectly

In order to get coloured output from all git commands, I set the following: git config --global color.ui true However, this produces an output like this for git diff, git log whereas commands ...
6
votes
2answers
13k views

NFS connection refused

I want to set up a filesharing server with NFS. But when I want to show the conetnts of export I get this: manuel@server ~ $ showmount clnt_create: RPC: Port mapper failure - Unable to receive: errno ...
5
votes
2answers
5k views

mpd: no audio output with PulseAudio, no mixing with ALSA

I am trying to use mpd with PulseAudio output. Thus I wrote the following in /etc/mpd.conf: music_directory "/mnt/dados/Musicas" playlist_directory "~/.mpd/playlists" db_file "~/.mpd/mpd.db" log_file ...

15 30 50 per page