0
votes
2answers
4k views

traceroute with explicit gateway selection

I have a router (running Linux) that is connected to two ISPs, the routes are selected using BGP, however, I would like to ping/trace each connection separately. The standard traceroute command seems ...
3
votes
1answer
52 views

How to revert direction for last parameter shortcut?

I can append a last used parameter via the keyboard shortcut Alt + . yet sometimes, I type too fast and miss my actual target. If I wanted to go back one instance, is there a way to do it? I ...
1
vote
1answer
5k views

CentOS installation: difference between live CD and live DVD

While I am trying to download the CentOS Live CD for the installation I have gone through something very new to me: install from a Live DVD. Up to now I have just gone through Live CD but whats the ...
10
votes
5answers
47k views

Remove last character from line

I want to remove last character from a line: [root@ozzesh ~]#df -h | awk '{ print $5 }' Use% 22% 1% 1% 59% 51% 63% 5% Expected result: Use 22 1 1 59 51 63 5
4
votes
4answers
5k views

How to find out what is wasting space on “/”?

I can find out what is wasting space with this: du -sm * | sort +0nr | head -30 But what if "/" is filled 100%, and there are many mountpoints, ex.: /foo, /foo2, etc. How can I get a list of ...
4
votes
1answer
3k views

Where is the log for ACPI events?

Running Mint 14. Sometimes I can suspend fine, but after my computer is on for a while, it no longer suspends. It wakes up after a second or so without any external inputs. My guess is that I'm ...
1
vote
1answer
102 views

Are there any PaxTest for OpenBSD?

Pax: PaX is a process memory protection patch For FreeBSD, there exists a testsuite called PaxTest, is there a PaxTest available for OpenBSD?
3
votes
2answers
997 views

Which systems do not honor socket read/write permissions?

man 7 unix on Linux states: In the Linux implementation, sockets which are visible in the file system honor the permissions of the directory they are in. Their owner, group and their ...
1
vote
2answers
56 views

How to write out the next 3 or X days with a command?

I can give the day for today in a command: TODAY=`date +%Y.%m.%d.` but how can I give out the next 3 or X days in a command? (Ubuntu 12.04)
0
votes
0answers
497 views

Log in using a 4-digit PIN, with a password fallback

Windows 8 has this feature where you can log in with a 4-digit PIN which is really convenient. Is there such a thing in Linux? In Windows 8, you get five attempts to log in using the PIN, then it ...
1
vote
1answer
534 views

Where to put commands to run when X starts with SLiM

I'm having trouble determining where to add these two commands: setxkbmap latam to set the correct keyboard layout, and xcompmgr -c -C & to enable transparency. Before installing SLiM, I ...
2
votes
1answer
2k views

Postfix: force local users (PHP) to use the SMTPD for outside recipients

My server has been hacked and was sending lots of spam over the Internet. The first thing I did is shutdown postfix, close the outgoing port 25 and take the time to clean the website, the postfix ...
1
vote
1answer
1k views

How does one view what the contents of symbolic link are, instead of the destination? [duplicate]

Is there some way in which I can view/edit what the contents of a symbolic link are? I don't want to view the destination the link points to, but the symbolic link itself. Suppose I have a file, ...
2
votes
2answers
5k views

How can I mimic `sudo su - user` in a script?

I need to deploy my app to server called lovelyplace by a Fabric script. Unfortunately, the server's setup is horrible, but I can do nothing about it - I have to live with it. There is one non-root ...
1
vote
2answers
136 views

Why use linux, and which one should I use? [closed]

maybe this question may seem a little bit odd here, but I would like to ask it to people that actually got some knowledge and use this system. Should I use linux? If so, which one would you consider ...
4
votes
2answers
9k views

Bash (single line): Execute 2nd command if first succeeds, execute 3rd if it doesn't?

I want to execute two commands one after another via SSH. I don't have an interactive shell. The second command should only execute if the first one succeeds, but the line is inside a script, so I'd ...
0
votes
3answers
1k views

“vmware-installer: command not found” when trying to uninstall VMware Player

I am using fedora 16` and I need to uninstall VMware Player and VMware Workstation. I tried this: [root@Feddy non-admin]# vmware-installer --uninstall-product vmware-player bash: vmware-installer: ...
0
votes
1answer
2k views

Is there any small linux distro for ARM NAS?

I want a small linux distribution, that includes the following open source packages: busybox samba afpd avahi pureftpdftp minidlna transmission I thought, I can compile one from sources, but it's ...
1
vote
2answers
125 views

Create my own disk server

I have been wondering how all these small nas boxes that run linux can share over network and usb. The network part is totally under control, but I am completely at a loss on how I could hook up a ...
4
votes
1answer
1k views

Understanding btrfs dmesg

Based on the documentation I found at https://btrfs.wiki.kernel.org/index.php/Data_Structures I am strugeling to understand the following dmesg [ 173.946830] device fsid ...
13
votes
2answers
3k views

Bash is not finding a program even though it's on my path

I have a program on my path. The program runs when executed with a full path specified. But the program cannot be found when I run it with just its name. Essentially, I want to understand how the ...
10
votes
3answers
12k views

How can I grep for this or that (2 things) in a file?

I have a file that has "then"'s and "there"'s. I can $ grep "then " x.x x and then some x and then some x and then some x and then some and I can $ grep "there " x.x If there is no blob none ...
3
votes
1answer
4k views

updatedb: can not open a temporary file for `/var/lib/mlocate/mlocate.db'

I go to use the updatedb command to update the index and I get updatedb: can not open a temporary file for `/var/lib/mlocate/mlocate.db' fyi The locate command is working, e.g. $ locate Index.xml ...
4
votes
2answers
5k views

Mate desktop breaks with no panels and tens of caja windows on user switching?

I'm using Sabayon GNU/Linux with Mate-Desktop. I have my computer set up for multiple users so my girlfriend and the kids can use it too. ~ $ uname -a Linux 3.9.0-sabayon #1 SMP Thu Jun 27 07:53:45 ...
1
vote
1answer
113 views

midnight commander: specify commandline options in global config file

I want to start mc always with the --nomouse option. Is there a way to put this option into the (global) config file, so that I don't have to type it every time ?
1
vote
2answers
1k views

Where to set boot sector for dual boot system “Kubuntu - Windows XP”?

I've downloaded Kubuntu 13.04 .iso from their site. Unfortunately this version doesn't provide auto installation as Install Kubuntu alongside existing OSes. They either take all you disk of force you ...
2
votes
1answer
1k views

Debian 7.0 (64bit) Skype crashes when answering call [closed]

I can make video call using Skype but when I answer Skype crashes and sometimes gdm3 too. LOG : ALSA lib conf.c:4687:(snd_config_expand) Unknown parameters CARD=DX ALSA lib ...
6
votes
2answers
883 views

How can I merge two ddrescue images?

I have two ddrescue images created from contiguous recovery attempts of the same media. The two images are the same size but have complementary data: $ od part-one/ddrescue_image --skip-bytes ...
1
vote
0answers
402 views

Linux Mint 14 - Segfault in steam.sh (cannot launch steam)

Here is my output when I try to launch steam: tetra@nick-Inspiron ~ $ steam Running Steam on linuxmint 14 64-bit STEAM_RUNTIME is enabled automatically Installing breakpad exception handler for ...
16
votes
2answers
2k views

Is it harmful to close a terminal window without properly exiting an application?

Using Ubuntu 12.04 LTS, my question is that if I started an application in a terminal window, then is there anything bad about just closing the terminal window without exiting the application properly ...
5
votes
2answers
6k views

How to 'strace' a unix domain socket?

Kind of hard to explain but I noticed when straceing the PID that has the socket open I cannot see any of the communication. How can I sit in the middle of a socket file to watch communication?
8
votes
6answers
10k views

How to grep for text in a file and display the paragraph that has the text?

Below is the text in the file: Pseudo name=Apple Code=42B state=fault Pseudo name=Prance Code=43B state=good I need to grep for "42B" and get the output from the above text like: Pseudo ...
3
votes
1answer
763 views

Can't find vgaswitcheroo directory in CentOS6

I've installed CentOS6 on my laptop, which has a built in VGA and a discrete (AMD) VGA. I used to switch AMD video off in other distro's (e.g. Fedora, Arch) using: $ echo OFF > ...
2
votes
1answer
949 views

How to use kdialog progressbar from a Bash script when the bar was initialized in another script?

Here is an example of how to use the kdialog progressbar. It works. dbusRef=`kdialog --progressbar "Press Cancel at Any time" 10` qdbus $dbusRef showCancelButton true until test "true" = `qdbus ...
0
votes
2answers
2k views

what is a background process?

Here is a common definition of a background process: "A background process is a program that is running without user input. A number of background processes can be running on a multitasking operating ...
1
vote
1answer
146 views

Emacs key problem

I am using Cygwin to connect to an Ubuntu installation, and for some reasons my Ctrlh for the help has been remapped to CtrlDel. When I actually type Ctrlc,h I get the error: No operation mapped ...
5
votes
1answer
461 views

Email client that understands both HTML and maildir

I'm using Mutt as my main email client, but I'm looking for another one for my work email (because of HTML email). I need one that can handle my existing Maildir email, to be able to switch between ...
1
vote
3answers
1k views

rsync: samba vs ftp for backup

I need to back up ~0.5 TB of files (about 600,000 of them) from a Windows Server 2003 machine to a CentOS 6.4 machine across a 100MB network, and update them once a night. The backup script would be ...
5
votes
2answers
13k views

Proper way to add a user account via bash script

I cross posted this question to AskUbuntu because my problem seems most acute on Debian/Ubuntu, but it was suggested that I ask here. Whatever method is suggested for solving this problem should work ...
1
vote
1answer
151 views

ssh key authentication not working from network/if-up.d/ scripts

I have two nearly identical scripts in network/if-up that need to access SSH keys. Permissions on SSH private keys are 600, so how can my scripts access these keys? I would prefer to keep the SSH ...
9
votes
1answer
21k views

What does the eth0 interface name mean in Linux?

What do the Linux interface names mean? eth0 eth1 wlan0 My current assumption is that when we are connected to the Internet via LAN cable it's eth0 or eth1 and when we are connected with internet ...
3
votes
2answers
2k views

Does the order of partitions matter much?

I've just ran a test install of Arch on a separate computer, and now I'm ready to do the real thing on my main one. However, since the guide didn't explicitly recommend it, I did not install with a ...
2
votes
1answer
988 views

cat >/path/to/file <<EOF drops some paste content, also patch <<EOF too. Why?

From time to time I like to use cat >/etc/configfile <<EOF thing, and paste content, then send EOF that will flush it into file. Its good with one or two lines, but when there's more of them, ...
2
votes
3answers
21k views

How can I find my local mail spool?

I am a graduate student and a relative Linux novice. This question is a sort of spin-off of my earlier question. My institution has a Ubuntu Linux cluster. I am just a user; I do not have sysadmin ...
2
votes
0answers
298 views

GNU screen, tmux, dvtm - none work as ordinary user

I bought cheapest vps for teamspeak hosting and I have strange issues with demonizing it's process. None of screen tmux and dvtm work for ordinary user, but they work witout a charm for root. As far ...
3
votes
2answers
3k views

Copying Linux NFS files to a standard consumer external hard drive

I am a graduate student and a relative Linux novice. My institution has an in-house Linux cluster on which I run many scientific simulations. I have a Windows desktop computer from which I access ...
2
votes
0answers
508 views

How to configure Unbound to use DNSSEC?

I'm having a local caching DNS server: Unbound: [root@localhost /etc/unbound] cat unbound.conf server: interface: 127.0.0.1 access-control: 127.0.0.1 allow verbosity: 1 ...
8
votes
3answers
6k views

Possible to get SMS/text message notification when process ends/is killed?

There are scripts that will send an e-mail when a server process is finished. However, I do not want to check my email every so often just to see whether a job has finished. Therefore I'd like to get ...
1
vote
2answers
2k views

Saving all incoming messages into a database with Postfix?

Is there some plugin for Postfix that can allow you to save all incoming messages into a relational database (PostgreSQL)?
2
votes
1answer
418 views

How to build Chromium from source on OpenBSD?

If I check ex.: curl -s http://ftp5.eu.openbsd.org/ftp/pub/OpenBSD/5.3/packages/amd64/ |grep -i chromium Then I can see that for the most up-to-date Chrome for the latest stable OpenBSD is: ...

15 30 50 per page