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
2answers
619 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
5k 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
654 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
418 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
757 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
4k 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
273 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
296 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
1k 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?
2
votes
1answer
7k 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 ...
1
vote
1answer
514 views

How to open a LUKS, OTFE .vol?

I feel like this is a dumb question, but I can't find the answer anywhere. I have a .vol, LUKS/OTFE. I know the password. How can I open it? This should be simple, but the closest answer I've ...
1
vote
1answer
314 views

Activate USB Speakers in KDE after login

I have some USB speakers that I use with KDE under linux. If they are plugged in when KDE starts, all works fine. If I plug them in while KDE is already started, they are recognised by the system, ...
0
votes
1answer
471 views

Run a command in a tty and send/receive data from it in bash?

I have a program that requires a tty to work. How do I run this program in a separate tty to my shell and then interact with it? (by writing to the interactive stdin, reading from stdout)?
0
votes
1answer
299 views

How to access NTFS partition and erase files on clicking hard drive (part-success)

Had a new laptop for 4 days and when turned on today, the hard drive (Hitachi) was clicking (hardware fault) and Windows won't load: "0xc00000e9 error - hardware fault". Definitely not dropped the ...
3
votes
2answers
726 views

How can I see the console output on linux like in windows?

Well, let's say we have a application that runs in a console and is for both windows and linux. On windows when you double click the application a command window opens and the application runs, you ...
1
vote
2answers
7k views

wget not working on one machine: 404 Not Found

I am trying to use wget to debug and issue I am having. I have a remote machine from one server trying to reach query.json and it works fine, connects and downloads fine. I have another remote machine ...
3
votes
1answer
2k views

Using internal SSD for Linux Install

I have a Samsung NP530 ultrabook. I am planning to dual-boot the Win7 on it with Xubuntu 12.04. The ultrabook has a 500GB Hitachi HDD and a 16GB SanDisk SSD. I can see the HDD in BIOS, but not the SSD....
1
vote
1answer
1k views

Setting permissions on /var/www is not working correctly for subdirectories and files

I followed these instructions (in the accepted answer) for setting up permissions on my /var/www/ folder. I'm using the www-data group as it says to use. jdownes and testuer1 are both memebers of the ...
3
votes
1answer
2k views

Run IE8 on Ubuntu/Linux

My preferred area is in web applications. Currently my developing OS is Windows 7. But I like to work on Linux(Ubuntu). but still I have to stay with Windows as I have to test application in Internet ...
3
votes
3answers
256 views

Auto executable permission to certain type of files

Is there a way I can configure my linux box or editor like vim/emacs to automatically give executable file permission to certain file types ? Currently if I want to write a bash script I need to ...
23
votes
3answers
2k views

Subverting the execute flag on Linux systems. Why is this possible?

Whilst reading this, I found the following exploit: % cp /usr/bin/id ~ % chmod -x ~/id % ls -al ~/id -rw-r--r-- 1 edd edd 22020 2012-08-01 15:06 /home/edd/id % ~/id zsh: permission denied: /home/edd/...
2
votes
2answers
341 views

Windows 7: Strange behavior of console commands. Windows understand Linux

Somehow, my Windows 7 started tp understand Linux commands like cp, mv, rm, ls While it has been useful I want to know, what is it and what do I need to install for this feature?
2
votes
1answer
851 views

Using local private key via putty -> shell on remote server -> github

Is this scenario possible: Using putty/pageant to connect via SSH to a remote linux server (ubuntu)? In the shell on the remote linux server doing "git push origin master" to github (url = git@...
6
votes
2answers
18k views

mount cifs through fstab non readable/writable

I have FreeNAS server and domain-controller with Windows Server 2008. I use OpenSuse 11.4 and my Windows account have full access to FreeNAS CIFS share. I can connect through any filemanager with smb ...
4
votes
0answers
204 views

Read and parse perf.data

I am recording a performance counters frm linux using the command perf record. I want to use the result perf.data as an input to other programming apps. Do you know how shall I read and parse the ...
0
votes
1answer
957 views

linux: check if file is being accessed by other process? [duplicate]

Possible Duplicate: How can I determine what process has a file open in Linux? I have a file in a Linux system that says has been last accessed by the process that created it a couple of hours ...
3
votes
1answer
916 views

Partitioning Scheme on HDD+SSD system

I have a fresh Samsung ultrabook with 500GB HDD and a 16 GB SSD. It came with Windows 7 installed. I am going to dual boot with Xubuntu 12.04. The following is the layout as seen from GParted. /dev/...
1
vote
3answers
873 views

resetting the root password in linux

How do I reset the root password in fedora ? Is there any way out ? I have googled a lot but couldn't find any useful result.
8
votes
2answers
5k views

What exactly does the dd command do?

A few days ago I was delighted to find out that it's not all that difficult to write an iso image to a USB without the help of a third-party program explicitly designed to do so. But the command (or ...
1
vote
2answers
1k views

Permissions errors when connecting from Windows7 to a SAMBA server

I've got a Win7 system that connects to my Ubuntu server, where I keep my music and other media. I can access my media files from the Win7 machine, but I often get permissions errors, for example when ...
1
vote
1answer
837 views

Changing system date

I want to change the system date in Ubuntu 12.04. I tried: $ date -s "2 OCT 2006 18:00:00" Mon Oct 2 18:00:00 IST 2006 date changed. But after some time, or when I reboot the system, the current ...
2
votes
1answer
1k views

how to avoid undefinedfilename error when piping a2ps output to ps2pdf

I am trying to write a bash function to convert a text file to PDF using a combination of a2ps and ps2pdf. To convert exc.cpp I have the following command: a2ps -M a4 -B -1 -o - exc.cpp | ps2pdf -...
6
votes
1answer
13k views

Static IP for Ubuntu server in VirtualBox using Bridged Adapter

How can I allocate a fixed IP address for an Ubuntu Server 12.04 guest OS running in Virtual Box? I've seen this question but it doesn’t address using a “Bridged Adapter.” The virtual machine is ...
-3
votes
2answers
51 views

What is the point of installing applications in default paths without consolidating the user? [closed]

I've been installing MySQL on a server recently and I had to edit many files and change ownerships only move the data files from their default location to some other partition. Why is it different ...
1
vote
2answers
447 views

Proper date -d “next monday”

I'm trying to write a quick script that figures out the date of the next Monday that isn't today. Although the date command accepts this expression, it appears to interpret it as equivalent to "this ...
2
votes
1answer
164 views

mysqld won't start on another system (nor on the old) - no log files available

I just installed archlinux x64, previously I used a 32-bit Debian. The old operating system still exists (nearly) unmodified, as I bought new disks. On Arch, but also on Debian, I tried to start ...
1
vote
1answer
1k views

Does Linux save the history of executed commands

I know we can do a "history" command or use control+R to find the command history in a particular shell session. But is there a way to find out the command history of my last ssh session for example? ...
6
votes
5answers
31k views

How to get the number of physical disks in Linux?

What is the command line command to get the number of physical disks in Linux Server and how much space is used on each?
1
vote
0answers
300 views

eth0 always has 192.168.1.1 and ignored a network with a DHCP server

Rarely my network interface (eth0) always has: $ ifconfig eth0 eth0 Link encap:Ethernet HWaddr aa:00:04:00:0a:04 inet addr:10.100.1.198 Bcast:10.100.1.255 Mask:255.255....
1
vote
3answers
2k views

Recovering data from RAID1 drive

I have recently received one of the two 1TB drives I had on a dedicated server. The drives were mirrored and the server was running CentOS 5.6. I've installed it in an USB enclosure and tried ...
1
vote
2answers
284 views

Is it secure: Storing an unencrypted keyfile in a volatile location?

I have multiple hard drives that should all be encrypted with the same keyfile or passphrase. Here's what I planned as an approach: I encrypt every hard disk with LUKS / cryptsetup and choose a ...
8
votes
1answer
10k views

Why is “nc -l xxxx” not opening a port?

I'm trying to get netcat to listen on port 4444, but it doesn't seem to be working. I am checking to see if the port is open using nmap, but it doesn't pick it up and I can't figure out why. I have ...