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

0
votes
1answer
81 views

What are(some of the)top level(under /) directories meant for in file system os Linux?

I have read man hier (info hier in fact). But it seems a bit old(Correct me if I am wrong). There are many directories, which are not mentioned in the manual. Eg /sys /selinux /lost+found I have ...
3
votes
2answers
1k views

Why is it a lot faster to call rm on a directory than deleting a folder from the GUI (Linux) over SSH

Out of curiosity, why is it a lot faster to delete a folder / folders in Linux (I'm using Ubuntu) over SSH by calling rm -rf somefolder than deleting the folder from the GUI (right-click then "Move to ...
2
votes
1answer
3k views

No interfaces defined in new Linux installs after installing BSD

A few months back, I attempted an install of PCBSD on my laptop (EDIT: Thinkpad T420). Before installation, my partitions consisted of /swap, /, and /home for an Arch Linux install, and one ...
3
votes
1answer
6k views

Error - unknown filesystem grub rescue - Can't boot from any other media whatsoever

So I've been trying anything and everything under the sun to fix this problem. Have a lenovo Y570 laptop and decided to duel boot linux mint alongside windows 7. I partitioned some space on the ...
2
votes
0answers
57 views

Picking right serial device

I have several identical USB to serial port adapters on my Fedora FC12 server. Each time I boot, the devices seem to change devices names (/dev/ttyUSBn). Now I will assume that the bus and device ...
2
votes
2answers
567 views

Command-line interrupts in OS X vs Linux

Occasionally, when I'm developing on my Mac, I'll get a process that hangs. When that happens, I'll try the following: Ctrl + C in the active terminal window If nothing happens, I'll open a new ...
0
votes
1answer
92 views

Creating a mutiboot USB from linux

There are many tools out there (YUMI, SARDU, etc.) which allow for easy creation of multiboot linux USB drive from Windows. Are there any similar tools for linux (general, not disro-specific)?
1
vote
1answer
2k views

Linux - turn off externally powered drive

I'm running Debian (Raspbmc). I have a number of external hard drives connected via USB. These HDD are powered by an external power supply. Since I often fall asleep while watching movies, I want to ...
1
vote
0answers
142 views

Code::Blocks IDE says that the obj/directory cannot be created

When I try to compile my C/C++ code in Code::Blocks, it says obj/directory cannot be created When I searched for that error, people suggested that it doesn't have read and write permissions for ...
3
votes
1answer
1k views

Live Linux Distro for text only mode

I'm looking for a linux distro where I can boot into it via USB, run a script on startup and shutdown. I need bare minimum, but I also need network drivers. Also need to save files across reboots. I'...
2
votes
1answer
1k views

Notify when normal user changes to root?

Would it be possible that when a normal user logs in to root via su command an email notification will be sent?
2
votes
1answer
484 views

Does schroot allow configuration files in the home directory to be overwritten?

When schroot is configured to mount /home, will packages installed inside the chroot overwrite the configuration files in $HOME? For example, if a newer version of gconf2 is installed inside the ...
2
votes
1answer
182 views

Abiword document conversion output to stdout

I am trying to convert documents using abiword and then would like to output the result to stdout, so that I can use that in my php application. I am able to convert, but was unable to find anything ...
5
votes
3answers
2k views

Is a process PID guaranteed to stay the same as long as the process doesn't die?

I'm doing some simulation work with Linux, and the code I'm working on right now only works under the assumption that, once a process has been assigned a PID by the kernel, that PID will remain the ...
27
votes
1answer
48k views

Why is the “top” command showing a CPU usage of 799%?

I am running a process in a 4 core Ubuntu server. However, top command shows that the CPU usage is 799% all the time. How can this be possible? I know for multi core CPUs, more than 100% CPU usage ...
3
votes
4answers
13k views

How can I install Windows 7 without dvd or usb, on linux?

I have a different problem that I don't think can be solved but it's better to ask before loosing all hope. I currently run Crunchbang (Debian dist) and would like to install Windows 7 as well. ...
2
votes
1answer
1k views

Should i keep /var partition on my SSD?

I have bought Samsung 830 SSD (256GB capacity). I have moved my Win7 system partition (128 GB) to the SSD, and now i want to install Arch linux on the remaining 128GB. I just don't know how to ...
5
votes
5answers
2k views

Why does wget'ing an image give me a file, not an image?

I do wget http://services.runescape.com/m=itemdb_rs/3809_obj_sprite.gif?id=2 and it downloads the following file: 3809_obj_sprite.gif?id=2 How can I make it save as the following? 2.png
2
votes
2answers
2k views

Setup for two SSDs and one HDD?

I currently have one 2TB HDD. In about a week, I'll have 2 SSDs; one that is 60GB and the other that is 128GB. I would like to setup Windows 7 and some Linux operating system. I am also a pretty big ...
8
votes
2answers
8k views

How do I detect SD card insertion (just the SD card, not the card reader) in Linux?

I have a headless debian (3.2.0-3-686-pae) to which I wanted to attach a standalone card reader to automatically process my pictures. The idea is that the reader will be plugged in all the time and I ...
0
votes
2answers
2k views

Fedora 17: How do I install Python 2.7 into /usr instead of /usr/local?

I want to install Python 2.7 onto my Fedora machine, but it installs it into the /usr/local/bin. How do I make it so that won't happen? I want to do this because the setuptool I installed keeps on ...
2
votes
1answer
4k views

FATAL : No Bootable medium found! System halted

I just got a .iso of the linux distro Backtrack 5 R2. I set it up, using virtual box, and set it up to run using the .iso, and hard drive as a .vdi. Here's the setup: System: Base Memory: 1500 MB ...
2
votes
0answers
1k views

Why is xinit automatically starting xterm?

When I run: xinit [client application] -- :128 vt01 -novtswitch I notice it starts an instance of xterm in addition to my client application. Per the man page: ... If no specific client ...
2
votes
2answers
2k views

How to remove 'connection to xx.xxx.xx.xxx closed' message?

#!/bin/bash ssh -t $SSH " some commands " Where is the 'connection to xx.xxx.xx.xxx closed' message coming from? I can't stop it even with result=ssh ...
6
votes
2answers
8k views

How to check if any errors occurred during ssh?

I'm writing a deployment script, and I need to rollback if any errors occurred. Eg: #!/bin/bash ssh myapp ' mkdir /some/dir # check if above command failed, and execute rollback script if ...
1
vote
0answers
345 views

Compile MakeMKV 1.7.6 - Segmentation Fault

I've previously been able to compile MakeMKV 1.7.5 and older versions, but the latest version (downloaded from http://www.makemkv.com/forum2/viewtopic.php?f=3&t=224) gives me strange segmentation ...
2
votes
1answer
731 views

Using rsync to copy to an external drive mounted on filesystem

If I use the command rsync -av / /media/backup Is /media/back included in the / filesystem? Would that cause some kind of repeating loop causing rsync to attempt to copy /media/backup to itself?
2
votes
1answer
745 views

Portable Ubuntu Development Environment

I'm looking for a solution that allows me to run Ubuntu off a USB stick and have git and few other programs installed that I use regularly for development (FTP, IDE, GIMP, maybe even XAMPP). This way ...
1
vote
1answer
173 views

How to provide “reverse ssh” to a shell?

Scenario: Many embedded devices (running Linux) out in the fields, behind routers so NAT'd and we can't make connections to them. We need for a support person to be able to initiate a terminal/shell ...
1
vote
0answers
826 views

Setting reduced complexity passwords for a regular user

From root it is possible to set a single character password for any account Example: Here I created a account test3 and set the password t, and the password is accepted [root@localhost ~]# useradd ...
3
votes
3answers
2k views

Can't login as root after changing permissions of /usr/bin

I changed the folder permissions of /usr/bin to 777. Now when I login to root user it shows "incorrect password". Now I'm not able to do anything on this PC. How can I revert the permissions of /usr/...
2
votes
1answer
101 views

Hibernation mode in Linux

I am using 3.5.0-rc1-smp+ kernel. And when I close the cover of the laptop on Windows 7 the computer comes into hibernation mode with HDD and fans off. The machine stays cool. But in Linux the drive ...
0
votes
2answers
626 views

Cron job for moving directories older than 24 hours

Well, what I want to do is The cron should run every hour or so It should move the directories in a folder /disk1/data/ older than 24 hours to /disk2/data/ The directories moved should contain all ...
2
votes
3answers
13k views

Putty can't connect over SSH to hostname, IP connection works

I have a gentoo box on my homenetwork that I'm trying to SSH into via W7 client but although I can do it via IP address when I try the hostname it won't find it. Also get a DNS error socket.gaierror:...
0
votes
0answers
270 views

Boot Linux to ram-only, one time user on a second partition

I am looking to setup a laptop I use for work as follows. One partition with a Linux install (Backtrack) with tools, normal write, etc. I want to create a second partition with a one-time use setup; i....
2
votes
2answers
1k views

Accidentally erased rpm package, how to recover?

Yesterday I planned to erase all wine related package, first I queried with: rpm -qa | grep wine and it showed 6 or 7 packages, then I typed: rpm -qa | rpm -e After one or two minutes waiting, I ...
5
votes
2answers
6k views

Linux Mint - Remember window positions and sizes

Today I installed Linux Mint Mate in the default configuration and it has an annoying habit of forgetting window sizes and positions after they are closed. Everything gets reopened in the top left ...
1
vote
2answers
659 views

How to sigstop/sigcont processes based on CPU temparature?

I'm temporarily forced to work on a laptop whose fan has failed. Under light load it works fine, but as soon as I start computationally intensive jobs, the temperature raises very significantly, even ...
4
votes
4answers
420 views

What are the risks (if any) of installing an older version of Linux

My machine has limited RAM capacity. Newer Linux distributions seem to require more memory (often 1 GB or more) and seem to consume more than 500 MB on itself. Is it safe to use an older version of ...
0
votes
4answers
763 views

Command to know if my computer will shutdown or not?

I am sending a reboot and shutdown command to a Free BSD computer. However I want to check that will that computer be shutdown or reboot really (I send this command from a reboot computer and I want ...
1
vote
1answer
5k views

Batch file equivalent in Linux

I have a few basic commands that I need to run on a Red Hat Linux 5 Virtual Machine with GNOME to start a couple servers. Example cd /home/user/scripts sh runTHISthing.sh pub cd /home/user/logs ...
2
votes
5answers
14k views

List admins on Linux

How do I list all users with admin rights on Linux? I checked file /etc/passwd/, but I dont know how can I figure out which account is privileged. Can you possibly help me a little?
1
vote
1answer
274 views

How often should I upgrade Debian testing? [closed]

How often do you guys upgrade your Debian testing installation? Is it better to do it at short (i.e. every day) or long (i.e. every other week) intervals? Why?
1
vote
1answer
114 views

RAID 1 : one device reads while the other writes symmetrically. What is going on?

Take a look at the disk throughput of this two disk software RAID 1 array in a Linux 2.6.26-2-686 Debian system : As you can see, one device reads at a speed apparently close to its top throughput ...
3
votes
1answer
3k views

Mail migration: pumping mails into IMAP account

I'm having troubles migrating the email system of our company from an old provider to a new one, call this one FOO. I already created, via control panel, the email addresses and the mailboxes on FOO ...
7
votes
1answer
9k views

How to pass variables to a HEREDOC in bash?

I want to do something like this: $ NAME=John $ cat << '==end' > test My name is $NAME ==end $ cat test My name is John Any ideas?
1
vote
1answer
300 views

Did pkill -u root on working server. What should I do?

I accidentally did pkill -u root on a working Linux server. None of the root processes is working right now. What am I supposed to do?
3
votes
1answer
2k views

Override Samba directory permissions

I'm trying to understand the samba rights management, but I think I missed a bit. I have 2 kinds of users: guests and users with a login via LDAP. Now I try to override all permission settings in ...
1
vote
1answer
2k views

Find a file with certain filename and size in linux?

Is it possible to search for files with a certain filename and size in linux?
3
votes
1answer
8k views

How to add multiple IPv6 address for single host in /etc/hosts?

I want that a name should be resolved with multiple IPv6 addresses. I don't have access to a DNS server and I don't want to run a demon for that purpose. I want to add the entry in /etc/hosts and it ...