5
votes
3answers
4k views

Why pidof and pgrep are behaving differently?

I have a init script in /etc/init.d/myservice for initialize a service like this: ... start() { ... daemon /usr/sbin/myservice ... } stop() { ... pgrep myservice pidof myservice ps -ef ...
2
votes
1answer
334 views

Disabling xscreensaver when firefox is playing HTM5 video

I find some questions talking about disabling xscreensaver with flash but no one about HTML5. Then, how to disable xscreensaver when firefox is playing an HTML5 vidieo and, if possible, only for some ...
3
votes
4answers
3k views

Execute a program at login

I'm running Arch-Linux ARM on a Raspberry Pi. My project goal is to have a barcode scanner attached to the Pi that forwards the scanned messages to a server in a LAN. To harden the system against ...
4
votes
1answer
220 views

Methods to diagnose why an application works for local user account but fails on a network user account?

I have setup a CentOS 6.5 machine that is attached to my company's domain. The OS is configured to allow Active Directory authentication so we do not have to have separate usernames and passwords to ...
2
votes
1answer
114 views

Load application with module load and specify a different name from the default [closed]

I am using my local workstation to run applications stored on our local cluster. To load and run an application, I normally use: module load xxx However, there is a an application on my computer ...
2
votes
1answer
222 views

Is there any convenient way to run remote program on local data?

I have two servers running Linux, namely A and B. There is a large amount of data on A, but I want to use the program x on B to process those data. It would be inefficient to transfer all data from A ...
1
vote
1answer
602 views

Logrotate not picking up or acting on new configuration file

I had a logrotate configuration file set up for a log (let's call it Log1). It is working fine and the log is rotating everyday as expected. Yesterday I cloned this set up and modified it for three ...
0
votes
1answer
279 views

How to avoid emerge recalculating dependencies after adding required keywords/uses?

While emerge --autounmask-writes followed by a etc-update basically automates adding additional keywords and use flags, running emerge afterwards (without any other modifications) will again calculate ...
3
votes
2answers
237 views

tee / sudo password cache conflict?

I have a large bash script (Ubuntu 12.04). The script is designed to be invoked by a regular user; only certain commands within the script run with sudo. It is not an option to run the entire script ...
0
votes
2answers
5k views

Failed to connect to dl.google.com port 443: Network is unreachable

$ curl -v https://dl.google.com/dl/cloudsdk/release/install_google_cloud_sdk.bash | bash * STATE: INIT => CONNECT handle 0x2001f130; line 1011 (connection #-5000) * Hostname was NOT found in DNS ...
1
vote
1answer
927 views

ALSAEQUAL runs, but sliders do not seem to affect audio

I want to have an equalizer that lets me easily adjust sound for listening to music on my laptop with headphones. I'm trying to install ALSAEQUAL since it seems that this is the preferred tool for ...
1
vote
1answer
121 views

What is the Command to check the history of the command executed which should based on the user who accessed it [closed]

I am looking for the command or script to meet the following requirement. I wanted a history of all the users who connected to my machine and what commands they execute in there session and at which ...
-1
votes
3answers
977 views

Install tar.bz2 archive?

I cannot seem to find out how to install a tar.bz2 file. I've Googled it and I've came across two commands, these did not work. I've changed my directory to my downloads folder cd ~downloads after ...
11
votes
1answer
14k views

Best way to sync files - copy only EXISTING files and only if NEWER than target

I'm doing this sync locally on Ubuntu 12.04. The files are generally small text files (code). I want to copy (preserving mtime stamp) from source directory to target but I only want to copy if the ...
1
vote
1answer
218 views

Can a script be running even after it's been killed?

I know it sounds so stupid, and I know it IS stupid; but I ran a Unix script to send me and my friend emails every few seconds to test mailx. The stupid thing is I used $ while true; do blah blah ...
1
vote
1answer
95 views

User sharing in Unix

How does Unix or Linux stop other users from accessing or modifying each others files? I know permissions are a part of it. Is there a specific concept in use?
4
votes
3answers
469 views

What happens in UNIX/Linux when a program is bigger then size of memory?

I was wondering how embedded systems are able run programs bigger than the size of memory. If I had 1 GB of memory and the program was 1.5 GB, would the program load? Are there systems that only use ...
1
vote
0answers
42 views

Most efficient way of purging of 10TB data from SAN? [duplicate]

I want to purge storage data from SAN which accumulates to 10 TB. The OS is linux. The storage is mounted as mount-points on a system for which it is visible I was recommended by a friend to use ...
4
votes
1answer
11k views

Activity Logging Level in SFTP

I'm using CentOS, i have already figured out how to enable the SFTP Logging. After that when i test it by using FileZilla (from User-end) and tail -f /var/log/sftp.log from the Server, all the ...
3
votes
2answers
3k views

How can I tell if PPP compression is enabled for modem?

I'm using Debian Linux on an embedded system, we use ppp to connect to the WAN via a CDMA modem. I want to find out if compression is being used by ppp. In my /var/log/messages I see the line: ...
3
votes
2answers
351 views

Time running a Ruby script is different locally than over SSH

Has anyone else seen this behavior? I created a simple Ruby script for giggles to see how fast it would count up on a couple machines I have. Here's the source: for n in 1...1000000 do ...
3
votes
2answers
785 views

Bash parameter expansion - greedy versus non-greedy

It's a bit of a contrived example but here goes: Say I have a variable 1.2.3.4 containing version information and need to replace the .4 at the end with .5 version=1.2.3.4 echo ${version%.*}.5 1.2.3....
1
vote
2answers
454 views

Ubuntu plus whonix

I have a dual boot Ubuntu 12.04 and Windows 7 Professionl 32 bit. Is it possible to install Whonix OS inside of Ubuntu? Or.. LXDE OS inside Ubuntu? Any suggestions are welcome.
5
votes
2answers
16k views

Cannot start xterm over ssh after several successes

I am running some MATLAB scripts on the command-line of a remote computer using ssh. These scripts launch 5 xterms that are forwarded to me via ssh (using the -X option). At the moment I am debugging ...
4
votes
2answers
231 views

Inconsistencies between redirecting input from file, here docs, and here strings

Why is this inconsistent? I would expect here docs and here strings to be functionally equivalent to redirecting input from a file. $ bash --version GNU bash, version 4.1.2(1)-release (x86_64-...
18
votes
7answers
15k views

Can root/superuser read my read-protected files?

On shared unix hosting, if I have a file sensitive-data.txt and I issue: chmod 600 sensitive-data.txt Can root user still read my file? Specifically I'm wondering if it's safe to store my password ...
0
votes
1answer
7k views

How can I run reboot as a normal user without needing to enter a password? [duplicate]

My goal is to use reboot as myusername without entering a password. How can I achieve this? I have read Allowing a user to use sudo without a password and followed the suggestions but it still doesn'...
3
votes
2answers
15k views

sed: substitute text with a string that contains special characters

I have a lot of text file with specific tag called "Comment", example I have a file called 3dchess.sh, I need change the tag: Comment=3D chess for X11 to Comment='<span size="xx-large">...
6
votes
2answers
183 views

Can I use variables inside {} expansion without `eval`?

Can I use variables inside {} expansion without appealing to eval? If so, how? This doesn't work: $ touch 1.foo 1.bar $ ls 1.{foo,bar} 1.bar 1.foo $ extensions=foo,bar $ ls 1.{$extensions} ls: ...
0
votes
1answer
341 views

APF firewall & IPset

Due to too many hack attempts from spam countries, today got the server configured with IPset for iptables. I loaded thousands of ip range in IPset & then added it to iptables with this command ...
3
votes
1answer
277 views

CPU Frequency changing every second

I just installed conky and recognized that my CPU-Frequency changes every second in steps of 10 to 100MHz and between 1000MHz - 2000MHz. Just wondered if this is normal behavior?
1
vote
2answers
2k views

Blacklisting won't work for kernel module “radeon”

I tried to blacklist kernel module "radeon" as it is classhing with my propietary drivers. I tried it doing it in two ways but none of them worked and every time command mkinitcpio -M will list "...
1
vote
2answers
349 views

free video editing software for Linux with audio tracks auto matching

I have a few video files which basically cover the same action from different perspectives. I would like to merge them into one "split-screen" kind of video (two or four panes). The problem is videos ...
1
vote
1answer
800 views

Debian Squeeze RAID 5 Install?

I have a box with four Hard Drives on it. I am going to install Debian Squeeze (I know it's old... I have to) on it. I want to be able to treat the the four Hard Drives as a single Harddrive. Durringt ...
2
votes
1answer
4k views

Nginx not available from localhost, but available by network

Have server with installed nginx and php-fpm. Some sctript need access to part of site via curl. But it fails. I tried to run curl on server : curl -v -i alexcoder.info * About to connect() to ...
0
votes
1answer
737 views

Broken libglib on debian 6

So, some time ago I wanted to update mpd from 1.5 to 1.6 which required a newer version of libglib( >= 2.31.8) on amd64, so I compiled them from source as I was on debian oldstable and couldn't find ...
3
votes
1answer
1k views

How to let a user execute a script owned by root? Setuid doesn't seem to work anymore [duplicate]

I have some bash scripts that I use with the user 'root' to manage iptable rules. The problem is that I want these things at the same time: The script must be owned by root Permissions must be 700 ...
12
votes
1answer
16k views

How to get back from “testing” to “stable” - Kernel downgrade

currently I am having lot's of fun with apt-get - and the bad thing is, it was my own fault. I had enabled the testing packages in /etc/apt/sources.list to install a certain package. And I told my ...
1
vote
1answer
54 views

Why does SLES 11 corrupts given characters?

If I open a notepad and copy this from it: aña, to a file opened with vi on the machine, I get this: aña My question: Why? What could the problem be? Logfiles on the server has the same ...
3
votes
1answer
194 views

uname shows duplicate architecture

Why does uname show x86_64 three times? This is Ubuntu 12.04.4. $ uname -a Linux seedbox 3.2.0-59-generic #90-Ubuntu SMP Tue Jan 7 22:43:51 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
2
votes
1answer
417 views

How do I know that my virtual guest is using VT-x?

I know my cpu supports VT-x, but how can I check that the KVM guest machine uses it? My Desktop is CentOS running a Windows 7 guest. I'm asking because.. the virtual Windows 7 says I'm using a XEON ...
1
vote
1answer
580 views

bash control statment for when an option flag is used

I trying to make control statement to check on a option flag is used or not? For -o output.file if is used I would like to make equal to variable OUTPUTSUM = OUTPUTFILE and if there no -o option use ...
2
votes
1answer
2k views

Connect to pseudoterminal (same user) from lost session [duplicate]

I was running several large processes at once, and my PC froze (I suspect due to heat, its a laptop, and the fan was at maximum for several minutes just prior to locking up). The mouse cursor moved, ...
0
votes
2answers
3k views

Installing AMD Radeon HD 7400M series fedora 20

I just installed fedora 20 on my second pc and its running pretty hot, I found a driver on the site http://support.amd.com/en-us/download/desktop?os=Linux%20x86_64. i unpacked it and i tried sudo sh ...
6
votes
2answers
3k views

Replace string with sequential index

Can someone suggest an elegant way to accomplish this? Input: test instant () test instant () ... test instant () //total 1000 lines output should be: test instant1 () test ...
1
vote
0answers
65 views

What are the linux kernel versions incompatibilities with btrfs?

I read that usage of a btrfs volume with a newer kernel can render it unreadable when that same volume is used with an older kernel. I have a mobile storage device that will be used by different linux ...
4
votes
1answer
156 views

Is there a way to cat files as they are created? [duplicate]

Unlike the answer to this question (Can a bash script be hooked to a file?) I want to be able to see content of files that haven't been created yet as or after they are created. I don't know when ...
3
votes
1answer
2k views

How to set laptop screen brightness just after boot with full disk encryption

my girlfriend bought Lenovo Essential G500 i5-3230 and I installed Linux Mint 16 on it with full disk encryption. It is standard installation with encryption using dmcrypt and LUKS. But there is a ...
72
votes
5answers
117k views

Find where inodes are being used

So I received a warning from our monitoring system on one of our boxes that the number of free inodes on a filesystem was getting low. df -i output shows this: Filesystem Inodes IUsed ...
1
vote
1answer
200 views

Cannot exit terminal emulator

I have a very strange and intermittent problem. Sometimes, with no pattern I can discern, running exit fails to close my terminal emulator. In the screencast below, I open the first terminal and ...

15 30 50 per page