Linux refers to the family of Unix-like computer operating systems using the Linux kernel. If your question is about a certain distribution only, use a more specific tag.

learn more… | top users | synonyms

0
votes
2answers
1k views

Debug mouse freezing on Ubuntu

I have been using Ubuntu 12.04 LTS on my work desktop for a few months. Yesterday, I started having issues with my USB mouse. Whenever I type for a while, and I try to move the mouse afterwards, it ...
0
votes
2answers
511 views

Why does dd copy slower with really small and really big block sizes?

I have realized that if I use really small block sizes, the dd copy is slower, but if I use really big block sizes, it also is slow. I have found that 1M is optimum. Why is this?
0
votes
2answers
1k views

Bash script fails with “syntax error in conditional expression”

I'm new to bash scripting, and I just want to do a simple little thing, but everything I read online seems to not work for me! So I have this script here: #!/bin/bash if [[ $1 = "32"]] then ...
1
vote
1answer
49 views

Gnome sending keyboard shortcuts to an application

I would like to send key board shortcuts from my wm (gnome) to an application (specifically Emacs). for example If I press Some-prefix-key C-x C-s then I would like C-x C-s to be passed to Emacs ...
1
vote
1answer
102 views

How do I copy my Microsoft Outlook data without Microsoft Outlook?

My family member's computer stopped running Windows recently (Vista). It said something along the lines of NTLDR is missing. The family member took it to Best Buy and they said that the hard drive was ...
0
votes
2answers
3k views

How do I use cat to encrypt stdin on the fly with openssl?

The following command works for encrypting stdin using echo: echo "abc" | openssl enc -base64 This command also works for substituting characters in stdin using cat: cat | sed 's/a/b/g' However, ...
0
votes
0answers
120 views

proxy works only as a normal user

I am unfortunately behind a network in which a HTTP proxy is present. This proxy requires an authentication through a Java software. Then all the connections have to pass though this HTTP proxy, ...
0
votes
1answer
313 views

MClone with multiple Linux partitions

Is it possible to use Trinity Rescue Kit's mclone(8) utility to clone a disk with more than one ext3/ext4 partition? Specifically, if I have one computer (the sender, running mclone -s) with a disk ...
0
votes
3answers
781 views

pkg-config doesn't find package file when folder is listed in PKG_CONFIG_PATH

So here is my PKG_CONFIG_PATH contents: /usr/local/lib/pkgconfig:/usr/lib/pkgconfig and here is the output of locate lv2.pc (lv2 is the library I'm trying to link with) ...
1
vote
1answer
408 views

Website fails to load specific assets only on linux kernel + my internect connection combo

The website in question is Ingress Intel. You probably won't be able to access it unless you have been invited to Ingress, but you don't need to because I can relay all errors and problems here. When ...
1
vote
2answers
65 views

How to have /etc/ config files overriden by those found in $HOME/etc/

I recently crashed my home server, now looking for a more efficient way to do things. I want to use a /etc in my /home/webserver directory. Which would override the normal /etc/ files. Exemple: ...
2
votes
1answer
241 views

Pull certificate from Firefox without using Firefox

I have a Comodo email certificate installed in Firefox 20, and I've tried (and failed) many times to export the certificate as PKCS12 (error is "Failed to create the PKCS #12 backup file for unknown ...
1
vote
3answers
570 views

Print/list/check address blocks, matching a CIDR network prefix, from command line?

I am not much of a network person, but I understand that (IPv4) addresses can be written in a format like 127.0.0.1/16. I tried reading through Wikipedia's IPv4 subnetting reference, Subnetwork and ...
3
votes
1answer
4k views

How to set up IP addresses on command line for connecting to network without using dhclient

What I do to connect to our wireless network: run sudo ifconfig wlan0 up run wpa (a script that invokes wpa_supplicant with all the necessary arguments) run sudo dhclient wlan0 (this is the step I ...
2
votes
4answers
3k views

Write but not read permission on a file in linux

Is it possible to have write but not read permission on a file in Linux? What about execute but not read and write permission?
0
votes
0answers
543 views

getting following error while installing ffmpeg-php on PHP v5.4.14 / CentOS 5.9

Having trouble installing ffmpg-php on centos, SSH shows following error after commands: ./configure make make install ..... /usr/local/src/ffmpeg-php-0.6.0/ffmpeg_movie.c:1215: warning: ...
0
votes
1answer
35 views

Installing a CPAN module using a remote compiler

I need to install the XML::Parser module. Unfortunately, that package uses expat. Due to security concerns, I am not allowed to install the dev package of expat. making the CPAN Module fail to ...
0
votes
2answers
668 views

permanent powertop changes with systemctl

I have got a .sh-script, trying to make powertop changes permanent. 'auto' > '/sys/bus/pci/devices/0000:00:02.1/power/control'; the commands in this .sh-script are all of this type. I have a ...
1
vote
3answers
2k views

How to run a script at boot time for normal user?

I want to run a bash script at boot time in CentOS 6. I added the script in /etc/init.d/ directory but all these script are run by root. I want to run script for any user.
0
votes
2answers
80 views

How to link an inaccessible directory such that it is accessible?

In one system I have the following file system organization. /home/user1/MyDocs/ /scratch/user1/ Above /scratch/user1/ is accessible to all systems on the network, but /home/user1/ is not. I want ...
0
votes
0answers
222 views

How to break RAID-1 and boot from the secondary part?

I have 2 hard drives with identical partitioning and RAID-1 between them. I want to break the mirror (OK with that), and then boot from the secondary side of the mirror without using Live-CD (that's ...
1
vote
1answer
105 views

How to delete a file in linux that does not have any/garbage file persmissions?

How do I delete a file that does not have any file permissions ? I am not able to delete file forcefully or as superuser. Please refer the screenshot:
2
votes
4answers
254 views

Mounting +2.2 TiB Volumes on 32-bit ArchLinux

I've recently setup a 32-bit Arch Linux installation for home server usage. When attempting to connect and mount my 3 terabyte external USB harddrive, I am notified that volumes above 2TiB are not ...
1
vote
1answer
809 views

Why directories size are different in ls -l output on XFS file system?

I can't understand why ls -l show folder size less then block size. For example: [user@01 NEW]$ ls -l total 4 drwxr-xr-x 5 root root 78 Apr 22 00:43 controllers drwxr-xr-x 14 root root 4096 Apr ...
0
votes
1answer
220 views

Does the order of how a find command in Linux is negated matter?

I am attempting to negate a find command so that I get every other file except for the file or files in the command. find . -maxdepth 1 -regextype posix-egrep -regex '.*/.*\.svg' -exec echo {} \; ...
0
votes
1answer
370 views

Unable to run test.sh file through project.php inside /var/www/

test.sh's path is /var/www/proj/test.sh, and project.php is inside /var/www/ and my test.sh uses and creates some .txt files. when i execute test.sh through terminal it works fine, but when I run ...
1
vote
0answers
416 views

Permanently delete using delete key - Linux

How can I set the Delete key to do the same thing as Shift + Delete: permanently delete files, rather than sending them to the trash can? I'm using Linux Mint 14, a Debian distro, with the Cinnamon ...
0
votes
0answers
1k views

Installing boost asio on CentOS 5

I tried running: yum install boost boost-devel boost-doc (1/3): boost-1.33.1-15.el5.i386.rpm (2/3): boost-doc-1.33.1-15.el5.i386.rpm (3/3): boost-devel-1.33.1-15.el5.i386.rpm Then it ...
3
votes
1answer
3k views

Errors when updating package list with apt-get on (K)ubuntu

I get some errors when trying to update the package list with sudo apt-get update command, specifically the error messages are as follows: W: GPG error: http://dl.google.com stable Release: The ...
0
votes
1answer
485 views

USB flash drive doesn't appear in any OS

Hi I got new Kingston DataTraveller drive. I have repartitioned it in OS X than dumped and image of another flash drive on it. Few more times of the same but now it doesn't appear in any OS when I ...
6
votes
1answer
5k views

Suppressing the “Picked up _JAVA_OPTIONS” message

I'm using _JAVA_OPTIONS to set some defaults for Java on RHEL. It works fine but now every time I start java I get the following message Picked up _JAVA_OPTIONS: -foo -bar -baz is it possible to ...
1
vote
1answer
49 views

Why does the NFS client access an outdated path?

I have a questiong regarding NFS. I'm exporting /opt/foo via NFS in /etc/exports: /opt/foo client.domain.com(rw,no_root_squash,async,wdelay,no_subtree_check) /opt/foo is mounted on ...
-2
votes
3answers
812 views

How to run apache server if it not already running

I wonder if it is possible to check whether or not apache2 is running. If it is not running I want to execute it using shellscript Currently I have added a function which I named run_apache which ...
2
votes
1answer
11k views

Changing max inode count number in ext3 filesystem in Cent OS

Assuming that I use ext3 filesystem in Cent OS: Can I increase the number of Free Inodes in the filesystem? If Yes how? When I run tune2fs -l /dev/sda1 it got these inodes statistics: Filesystem ...
1
vote
4answers
2k views

Can I use cp to backup and restore Linux

On the same physical machine, the partitions of / and /home are both not large enough. I cannot extend the two partitions directly, since they are the last two partitions. I deleted the two partitions ...
0
votes
1answer
53 views

Connecting a server to DSL router

I have a broadband internet connection which is plugged in directly to my laptop. I have debian server with old configuration and currently connected to my laptop using bluetooth PAN connection. I ...
1
vote
2answers
132 views

GCC running version doesn't match emerged version

Here is the output from my portage search for gcc: emerge -s gcc ... * sys-devel/gcc Latest version available: 4.6.3 Latest version installed: 4.6.3 Size of files: 70,353 kB ...
2
votes
1answer
632 views

apt-get fails at everything in Ubuntu due to postgresql error - how to fix?

I've got a server with zoneminder, mysql, ffserver and some ffmpeg instances running on it, but for some reason everything seems to be tied to PostgreSQL. I noticed an error when loading the ...
0
votes
1answer
215 views

How close to death is my Linux hard drive [duplicate]

I want to test my hard disk that is on opensuse 12.2 - update see some results below I have installed S.M.A.R.T. How would you start the tests? note: can I run a single test that runs all the ...
0
votes
3answers
257 views

How to give access to user for specifig directory?

I made symlink when logged in as www (apache user): ln -s /home/anotheruser/test /var/www/test Now I go to my mydomain.com/test and I get a 403 error. /home/anotheruser/ has permissions 764 ...
0
votes
2answers
210 views

Find a file matching a pattern, but not in directory matching another pattern

I have a source tree having some directories with names ending with -old, which are kept as a reference when rewriting components that are in them. There's also a Makefile that just finds all *.cpp ...
7
votes
2answers
10k views

bash - Sending simulated keystrokes

I've recently been trying to write a script that can be used to automate my c++ program in bash. If you know AutoIt, I can simply show you an example of what I am trying to do: send("1{enter}") or ...
8
votes
3answers
18k views

On Linux, how can I find all files that contain a string and delete them?

I want to delete all files that contain the string foo. How can I do this using bash in Linux?
0
votes
2answers
145 views

Is there some way to tell if a Linux machine was woken up by wake-on-lan packet?

I'm looking for a way (programmatically or otherwise) to determine if my machine was woken up by WOL or not (let's say, a Ubuntu Server box). This is sort of a two-fold question, where I want to know ...
-1
votes
1answer
646 views

Heartbeat Cannot chdir to [/var/lib/heartbeat/cores]

all I came across some error while starting heartbeat 3.0.5, the output of the /var/log/ha-log are as following: [root@localhost ha.d]# tail -200 /var/log/ha-log Apr 20 21:52:16 localhost ...
2
votes
0answers
707 views

mdadm RAID monitoring no DegradedArray email

So, I have a couple of MDADM RAID arrays and I want to set up monitoring with email notifications for drive failures through sSMTP but I can't seem to get it working. The system in question is a ...
2
votes
1answer
912 views

How to retrieve a list of installed packages on (K)ubuntu sorted by category

I'm using Kubuntu. I'd like to get a list of installed packages on my system, and in particular to have them sorted by category, i.e. as seen in Muon Package Manager, in the category filter tab. For a ...
0
votes
1answer
247 views

USB not registering on Linux

I have a usb with a hidden cdfs partition that I want to purge, but when I plug it into my linux box, it doesn't register. fdisk -l only shows my hard drives, and the usb doesn't auto-mount. I pulled ...
1
vote
0answers
88 views

Slower file create on faster server. Why? [closed]

I have two servers. The old one has 24GB RAM, i7-950 @ 3,0Ghz, 2x 1,5TB SATA HDD (ST31500341AS). The new one has 32GB RAM, i7-3770 @ 3,4GHz, 2x 3,0TB SATA HDD (ST3000DM001-9YN166). Now I noticed, ...
1
vote
3answers
3k views

du which counts number of files/directories rather than size

I am trying to clean up a hard drive which has all kinds of crap on it accumulated over the years. du has helped reduce disk usage, but the whole thing is still unwieldily not due to the total size, ...