A family of Unix-like 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

1
vote
1answer
146 views

How to change the path that comes with the output of which command?

When I which mex at the linux system it gives a path but I want to change this path to another one. How can I set this default path to another location ?
1
vote
1answer
1k views

What is Chrome Canary and how is it different from Google Chrome - for Linux users?

Chrome has 3 releases - a regular release, a dev release and canary. Canary is simply a much newer release thats not as well tested, but has the latest shiny stuff. After a while the version ...
0
votes
1answer
162 views

User privileges LDAP scheme

I needed to create a user (it's already created) in my LDAP schema and want to give privileges of reading/writing to that user like if they were the admin but just for a specific subtree. The thing ...
1
vote
4answers
7k views

Disabling laptop monitor on boot?

I'm using a laptop with Ubuntu (no graphical desktop) to do all of my work. The resolution is awful, at 1024x576 or something similar. So I just close my laptop lid and plug it into an external ...
2
votes
1answer
77 views

Cygwin: Mapping a directory

I want to map a directory c:\Animal\Cat to /Cat So that when i use Cygwin, and just type cd /Cat from any directory, it goes to /c/Animal/Cat How would i do that? I have already done mount -c /, so i ...
1
vote
1answer
3k views

NFS Server/Client administration of multiple machines through a GUI

I want to share folders between PCs on a local network, which may have different Linuxes installed (or booted from a USB key). Thus, I do not want to count on the sharing capabilities of a given file ...
1
vote
2answers
3k views

Debian 7 Shutdown Beep

How can I disable the beep when I reboot Debian 7? I have gone into /etc/inputrc and made the console not beep and have muted Beep in alsamixer but it still happens. I have seen reference to ...
0
votes
2answers
53 views

How to store file attributes like permissions and timestamps and reapply them later on linux?

Is there an easy way to store the usual file attributes like modification time and permissions of a tree to some file, and reapply them later? This would be useful in many situations where ...
0
votes
2answers
114 views

How to display the user logged in time?

Is there a command in linux to display the amount of time a user has logged in? The 'who' command displays only the users connected.. how about the time a user is logged in?
0
votes
1answer
517 views

how to display files that are not user writable?

In linux how can I list the ordinary files in current directory that are not user writable? I tried with the ls -l command.But it displayed both the owner and group files.Is there a command to display ...
1
vote
2answers
551 views

Measure a process' run time in Windows and Linux

I'm writing a program that performs certain optimizations on an executable file and am looking for a way to measure the time the executable took to run. I've been using a script that measures the ...
0
votes
1answer
1k views

How do I make xscreensaver run on startup?

I have a raspberry pi running raspbian which is started via the following line in .profile xinit /usr/bin/chromium --kiosk --incognito www.myweb.com however after about 10-15 mins the screen goes ...
0
votes
2answers
3k views

Damn Small Linux with XAMPP Linux to create a webserver on a P4 machine or Mele A2000

A couple of days I'am busy to figure out to create a powerful light weight server that can be used as webserver to serve some simple sites that using PHP and mod-rewrite. The P4-box (actually a ...
1
vote
0answers
56 views

Communicate a button click event with sockets

Desire: I have a device or micro-controller i'll call it a mc that I need to communicate to when a web page button is clicked using sockets. MC1 <button id ='on1' name='mc1'>On</button> ...
0
votes
1answer
2k views

Linux Live USB Drive Created with dd Corrupt Partition Table and Reliability Issues

I am trying to create a Linux Live USB drive from an isohybrid (.iso) image. To accomplish this task, I have taken these steps in the past: Securely wipe the flash drive using the command: sudo ...
1
vote
3answers
1k views

How to sync file times from one directory tree to another

I have two file trees. The first one consist of original files. The second one is a duplicate but lacking correct file timestamps, they are all set to the last duplication date. Is there a clean and ...
1
vote
2answers
299 views

Advanced backuping script

I'm currently writing an advanced starting script for my minecraft server. Everything works out as I want it too. But the problem is the backups. I created a function for it. It works also great and ...
1
vote
1answer
50 views

Cross platform softlinks?

I am using a scientific software that require softlinks to work with reasonable efficiency. However, I'd also like to sync my data, that must contain bare data from that software (i.e. not packaged ...
-1
votes
1answer
345 views

How to secure memcached server

I have installed memcached server. It has options in which we can specify few options. options="-l 127.0.0.1" options="-l server_ip_address" Which is the best method? Is there any other way to ...
1
vote
0answers
306 views

Create a mdadm raid mirror of an existing lvm

Hello I'm trying to figure out how I can create a pretty strange mdadm mirror of my lvm. I have 4 disks, (sda,b,c,d). Each disk has 2 partitions: 1Gb - physical volume 500mb - Swap My system lvm ...
2
votes
2answers
199 views

Two questions about the *nix tr command

I have two questions about the tr command of Linux shell, ① is : $ echo 'abcd123' | tr -c 'a-z' '0-9' the result is : 'abcd9999'. It has 4 '9's,why? And why is 9, not one of '0-8'? ② is : $ echo ...
0
votes
1answer
109 views

Ophcrack: how to back up from drive C(sda2) to drive D(sda3) of a windows 7 machine not booting?

My laptop cant boot. So im about to reformat it, I backed up my documents using live CD Ophcrack, to drive D (sda3). At first I can copy paste my files. But not until im about done, at 75% a weird ...
1
vote
1answer
4k views

packages excluded due to repository priority protections

I am not able to update my PHP in centos 6. I have centos base, epel and rpmforge repos. yum update php Error: Package: php-tidy-5.3.3-14.el6_3.x86_64 (@updates) Requires: php-common = ...
3
votes
2answers
594 views

Arch Linux install while on a network that requires browser-based login

I need to be able to log in to my dorm's internet connection using a web browser. Without doing so, I have no internet connection, and can therefore not install Arch Linux or any packages or what have ...
2
votes
1answer
745 views

Is it possible to loop through variables, with numbers appended to the variables name, in bash?

I'm attempting to write a bash script that collects information via SNMPv3 and generates a configuration template for a given device. My goal is to generate a template based on the variables ...
1
vote
2answers
2k views

Linux - prevent disks spinning up

On bootup all disks are spun up, but 4 are just backup (and pretty noisy too). Soo I'd rather prefer to never ever spin them up at all when booting. Is there a kernel option which tells the kernel ...
7
votes
3answers
3k views

Where should I export an environment variable so that all combinations of bash/dash, interactive/non-interactive, login/non-login, will pick it up?

Here's the motivation for the question: I'm using Ubuntu 12.04 LTS 2 with the Unity desktop. In my .bashrc file, I append several directories to my PATH variable and define a few environment ...
1
vote
1answer
267 views

How can I reallocate an ext4 file system in an extended partition without lose data?

I resize the disk using the Windows default program. I don't know why, the extended partition of Linux now result unallocated. I'm sure I don't "touch" the extended partition, and I don't know why ...
2
votes
1answer
3k views

Apache/php cannot access remote cifs/samba share

I am trying to understand what my problem might be here: I am using a web application built on LAMP that needs access to a samba share that I've successfully mounted using mount -t cifs ... In the ...
0
votes
1answer
313 views

“general assuan error” in gpa under linux

I'm trying to use gpa to manage my gpg keys under linux mint and am getting a "general assuan error" whenever I try to run the application. If I run as root, gpa works fine but I'd prefer to not need ...
0
votes
1answer
103 views

Problems with vim, i removed it

I'm a new user in linux. The problem is that when i tried to run the VI (or vim) text editor, i realised that it worked really different as i remembered it used to. Example, when i try to put in mode ...
0
votes
1answer
23 views

what does this stad for [ 4200.237911 ] in i/o buffer error?

When i try to mount an external HDD of a friend of mine,this error is all over my screen.It shows a lot of errors which are unfamiliar to me ,but onething i know , it has many bad sectors in it. I ...
0
votes
0answers
113 views

C++ Standard Libraries do no exist Qt open-source [closed]

I am cross compiling code using the Qt-everywhere-opensource-src-4.7.3 kit to be used on an ARM device. In Qt I have changed the PATH to include /home/user/gumstix/gumstix-oe/tmp/cross/bin/ and I have ...
4
votes
1answer
1k views

Does zsh support hash table as a built-in data type?

If supported, which version of zsh should I use to take advantage of this feature? How to declare and use it in code?
2
votes
2answers
1k views

How to change default “Print to file…” settings

I have a fresh install of Linux Mint 15. In many applications (gedit, firefox, etc.) I can go to "File > Print..." and see a virtual printer called "Print to file". By default, it prints the PDF to ...
5
votes
1answer
124 views

Broswers open localhost instead of remote server

When I try to access my domain http://www.ylog.in , all browsers in my system opens localhost (Where I have Apache2) instead of my remote server hosted at heroku. But when I open the domain via proxy, ...
0
votes
2answers
229 views

Automatic file versioning on Linux

I want to do the following: when a file is changed then the old file should be backed up to another location with different name on Linux. E.g. whenever example.text is changed, at each change, new ...
0
votes
1answer
776 views

sudo: source: command not found when executing tcl as sudo

I have a test.tcl (has all permissions) which contains the following- #!/usr/bin/tclsh puts "hello, world" This is how I'm executing my tcl script- sudo source /opt/test.tcl I got the ...
3
votes
1answer
23k views

VLC does not support the audio or video format “undf” in Linux

When I play some avi files in my system with VLC I get this error: No suitable decoder module: VLC does not support the audio or video format "undf". Unfortunately there is no way for you to fix ...
2
votes
2answers
422 views

How can I share the XBMC video library in two OSes, in the same computer?

I dual boot, and that would be very nice. I use Windows 7 and Crunchbang Linux by the way. I googled this question and all I got was how to sync the library between two devices - and that's not what ...
2
votes
0answers
234 views

rsync: large exclusion list adding 10 hours to sync

I have had an rsync backup script running on a Centos 6 box that has been syncing ~410gb of data from a local (LAN) server over a gigabit connection. This script runs hourly, and if there are no new ...
1
vote
1answer
211 views

No guest shutdown in Linux/Ubuntu?

I had to shut down a bunch of Linux boxes tonight because we have an upcoming power outage for the whole building. I did not know any passwords for most of the boxes. So, (on the Ubuntu desktop) I ...
5
votes
3answers
2k views

Linux vulnerable to corruption in power outage?

The sysadmins at my company say that Linux is prone to getting nuked by a power outage. They say Windows machines always survive power outages but Linux boxes often become unrecoverable (ie you can no ...
0
votes
2answers
208 views

manual steps to install linux on external drive from ISO file AND without booting into it?

I would like to know what the manual steps are to replicate the operation of unetbootin linux utility. That is to say - how to manually install (and by word manually I really mean using the ...
0
votes
1answer
786 views

nginx + cgi (c++ programs)

I am stuck setting my nginx to work with custom cgi programs (using xmlrpc-c library). I am trying with fcgiwrap/spawn-fcgi like this: $ spawn-fcgi -f /usr/bin/fcgiwrap -s /tmp/fcgi.sock ...
0
votes
1answer
1k views

Is it possible to make HP wireless indicator light signal work with linux?

I have an HP Pavilion g6-1a52nr, wireless indicator works on windows but not on linux, I tried many linux distros, wireless indicator doesn't work with any, currently using crunchbang 11 64 bit which ...
0
votes
3answers
980 views

Linux crontab script to “mysqldump | gzip” gives wrong filesize

I have a bin/bash script that mysqldumps my sql database, when I run it everything goes well with filesize=3MB, but when crontab(as sudo) runs the script then the filesize is 20B script #!/bin/bash ...
0
votes
1answer
76 views

Irregular time-delay while deleting files

I have a very general question. I am running on Red Hat Enterprise Linux Workstation release 6.2 (Santiago) in a network where my workstation from time to time needs an annoyingly long period to ...
0
votes
3answers
125 views

Pre-pending to an output line of `tail -f file` if its contents match another file

Trying to cram all of the following into the title was hard, so this is what I really mean: I am doing a tail -F access.log to watch an Apache2 log in realtime. The first thing on each line is an IP ...
5
votes
1answer
2k views

What is the recommended directory to store website content?

When I first started programming for the web and I wanted to create a new project I was always taught to create a directory in /var/www/. However in a lot of tutorials I read people tend to create a ...