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

1
vote
1answer
652 views

Improving small-file-performance for ZFS On Linux

I used mdadm (RAID 5) and ext4 before, I switched to ZFS On Linux (raidz) because of many reason. But when I working with small files, the performance is terrible. Only 7 MiB/s!? How do I improved ...
0
votes
0answers
272 views

wget -0 creating empty file in the file is not present

I am using wget command with the if like this: if (wget -O file) If the file is not present it creates and empty file, how can stop this from happening? What are the alternatives to remove this?
1
vote
1answer
337 views

Linux Remote Server Workspace is too busy and nonresponsive?

I have access to a remote server linux workspace, which is currently overloaded with jobs from many users and thus is not responding to any ssh request, currently we do not have any IT personnel to ...
1
vote
1answer
910 views

How can I hardreset a modem or the port under Linux?

I have a device (a modem) connected to a USB port (/dev/ttyACM0, Ubuntu 12.04) to dial a phone number, which only works if I perform the ultimate reset (taking device out of USB port, waiting some ...
3
votes
2answers
579 views

How to start a program explicitly specifying it's capabilities?

su user_name program starts some program with other uid; chroot path program starts some program with other /; ( ulimit -v 80000; program) limits program memory... How to limit program's ...
0
votes
3answers
554 views

Grant root privileges only for one directory

What is the best way to grant sudo privileges to a user only for the /opt/myapp directory as if the user were root in CentOS? The idea is to allow developers to do whatever they want only on the ...
4
votes
1answer
2k views

rsync between two local directories

I am trying to do rsync between two directories I have in two filesystems connected to the same computer. I want to do it without deleting the extra files in b. I though a simple rsync -a a/dir b/dir ...
3
votes
2answers
3k views

How to use iptables to connect proxy server

In my company, all http and https must connect to a proxy server, which means we must set proxy in our web browser. Our department has an internal network (192.168.0.xxx). I use a Linux server as ...
1
vote
1answer
6k views

How to non-interactively provide password to SCP, rsync FTP, SFTP?

How can I supply a password on the command line or in a script rather than on an interactive prompt? I need to copy files in a script and lets say public key is not copied yet to the target. OS is ...
1
vote
1answer
2k views

How to disable USB devices based on vendor ID in Linux?

I want to disable USB devices based on vendor ID in Linux, and allow only specific devices to be used. How can I do that?
2
votes
1answer
478 views

How to configure tripwire to ignore certain files?

I run tripwire daily, I wish to make tripwire --check ignore certain files and directories. How can I do it?
2
votes
2answers
1k views

Freeware alternative for Chanalyzer? [closed]

I need to analyze the channel my wifi card is operating on. I have found a program called Chanalyzer Pro, offered by metageek. However, it is not really worth it for me to buy the software if I will ...
1
vote
2answers
156 views

Linux boot parameters and hacking

Bear with me since I'm a linux noob... I had an assignment for a security class in which I was supposed to gain access to a file in on an administrator's desktop. I modified the boot settings by ...
2
votes
1answer
301 views

How to NAT a Windows PC through a Linux server?

I have to NAT a Windows PC with IP 10.10.10.10 through a Linux server with two network cards. The IP addresses of the NICs are 20.20.20.50 (connected to an external network) and 10.10.10.9. The second ...
1
vote
1answer
407 views

Passwordless connection to GitHub without EVER needing to enter a password

I cannot figure out how to connect to GitHub from my server (e.g., git pull) without ever needing to enter my password. I have followed all the passwordless setup steps as mentioned in this superuser ...
7
votes
2answers
981 views

Can I steal a vim session from another terminal?

I forgot to start screen before I started working, and now I've SSH'd into my machine from my laptop. ps -a gives me the process ID of the vim process. Can I steal the vim session from my other ...
2
votes
1answer
38 views

Medium for long-term virtualization

I purchased a Macbook Pro Retina 15in (with all the upgrades) and it is very common for me to fire up a virtual machine on it. I may need an application only designed for Windows, or I may need ...
2
votes
1answer
2k views

grub-install gives an error message I don't understand

I'm new to Linux, am using CentOS 6.3, and am attempting to install CentOS 5.8 ISO to a pen drive following instructions from here. My pen drive is /dev/sda and partition 1 is vfat. It's mounted on ...
3
votes
4answers
66 views

How to find out what files will be installed in the filesystem when installing a package with aptitude?

In my case I want to do aptitude install wireless-tools but want to know which files will be installed and where in the filesystem before I install the package.
0
votes
1answer
184 views

grub-install gives error message I don't understand [duplicate]

Possible Duplicate: grub-install gives an error message I don’t understand I'm new to Linux, am using CentOS 6.3, and am attempting to install CentOS 5.8 ISO to a pen-drive following ...
1
vote
1answer
2k views

ejabberd runs on command, but not via service / ejabberdctl

I have ejabberd set up, and if I run ejabberd via command line, it executes fine, I can connect, chat with other people, etc. When I run service ejabberd start everything executes properly, but ...
0
votes
1answer
603 views

KMS, linux kernel 3.7 and ati mobility radeon x1350

I got problem with booting new kernel. If I on bootloader pass nomodeset flag to the kernel linux boots up successfully but it doesnt load radeon module to kernel which is really frustrating cause I ...
5
votes
1answer
599 views

Linux server broken packages

So, I'm trying to install the PHP5 cURL package on a Ubuntu Lucid 10.04.3 server. My concern is that there are broken packages on this server and if I install this package with the broken packages ...
1
vote
1answer
114 views

Is my Linux machine running low of RAM? [closed]

Here a output of "free -m" from my machine, I don't know if this means that RAM is low: root@mymachine:~# free -m total used free shared buffers cached Mem: ...
1
vote
0answers
579 views

Linux Mint Mate - Make the terminal icon on the Start Menu launch gnome-terminal rather than Mate terminal

I was having some issues with the Mate terminal in Linux Mint (see How to reset system colors) so have started using gnome-terminal instead. I'd like the change the "Terminal" icon which is on the ...
2
votes
2answers
276 views

WinSCP like Sync on linux

I'm trying to sync files to an FTP like WinSCP does on linux (continually checking for changes and uploading changed files). Is there such a thing? I know of rsync but I don't think that triggering ...
2
votes
3answers
3k views

What's a reliable technique for killing background processes on script termination?

I use shell scripts to react to system events and update status displays in my window manager. For example, one script determines the current wifi status by listenining to multiple sources: ...
5
votes
1answer
2k views

What are commands to find shell keywords, built in functions and user defined functions?

I was discussing with my friend on how the commands are parsed in the shell, and he told me that bash searches the command in following order List of aliases List of shell keywords List of user ...
0
votes
2answers
2k views

Finding the memory bandwidth of each core of my processor

Hi I am learning PETSc (a software for solving PDES' numerically in parallel) and I came this passage in the FAQ High per-CPU memory performance is required. Each CPU (core in multi-core systems) ...
0
votes
1answer
185 views

What is the difference between the special permission and execution permission

I'm new to unix , i have tried to find the difference between permissions of execute permission and special permissions . For instance , the "su" command has the permissions -rws-r-xr-x Under that ...
1
vote
2answers
3k views

Turning off unused hard drives

I have a PC running Ubuntu 12.10 server as my custom home server. There are a number of hard drives connected to it via USB. The server runs 24-7 and I was wondering if there is any way or any ...
2
votes
1answer
211 views

Encrypting a Dual-Boot Hard Drive

I have a computer dual-booting Windows 7 and Arch Linux. The Arch installation has already been encrypted with LUKS and LVM, as follows: sda Computer's Hard Drive, GRUB2 in MBR | sda1 ...
5
votes
2answers
9k views

POSTing a file's contents with CURL

(The following is backstory, you can jump down to "Question:" if you'd like) There's a webpage for one of my courses that accepts input text (expected to be Python code) and then gives some tokenized ...
1
vote
1answer
173 views

How to debug timeouts to certain URL from Ubuntu server?

I have a dedicated server running Ubuntu 10.04. Trying to access a certain URL (HTTP-based API service) results in timeouts. I tried curl, wget and others. It was working OK until recently. I can ...
0
votes
1answer
80 views

Monitor doesn't properly display the supported resolution

So, bit of background. I am using the FLATRON L192WS monitor on a system running Debian Squeeze. Essentially what happened is that when I set the resolustion to the max supported (1440x900), I keep ...
1
vote
3answers
9k views

Boot Loader Failed to install. How to proceed

I have windows 7 on one partition and was installing LinuxMint on another partition (I also have a 3rd data partition) and towards the end of the installation it said this message: executing ...
20
votes
2answers
2k views

Linux Mint doesn't boot after creating a swap partition

When I was creating my Linux hard drive, I skipped creating a swap partition, thinking that 4GB would be enough RAM. Now, I think I do need a swap partition. I asked some people on IRC how to do this, ...
1
vote
1answer
215 views

flaky proxy on virtual machine

I have been battling this for several hours and coming stuck. I use windows XP and a VM box with ubuntu. I have to use the proxy to connect to the internet at work. However I use ubunutu to check ...
2
votes
4answers
456 views

The opposite of mount -o loop: can I read a block device as a regular file?

I'm trying to back up an LVM volume using Duplicity (note: not just the file contents of the volume, but the actual volume itself, byte-for-byte). The best way I've so far found is to dd all the data ...
2
votes
1answer
2k views

Can't open Acrobat Reader in 64-bit Mint / Ubuntu

After installing Adobe Reader 9, I receive the following error message when trying to run Adobe Reader. /opt/Adobe/Reader9/Reader/intellinux/bin/acroread error while loading shared libraries: ...
3
votes
1answer
466 views

Linux Server: online resize root partition

I have an Ubuntu Server hosted at Aruba Cloud and I want to resize the root partition... The current partition scheme is (roughly): sda1 /boot 300MB sda2 swap ? MB sda3 / 10GB <FREE ...
3
votes
1answer
2k views

rsync cannot delete non-empty directory

When syncing my remote backup I get the error rsync cannot delete non-empty directory. I know the cause: I have excluded some files and when rsync tries to delete a remote directory because it ...
3
votes
2answers
5k views

How would I check the version of vncserver on Redhat?

I want to check which version of vncserver I am using in my linux box. What is the command for that? When I run which vncserver I get /usr/bin/vncserver P.S: I am running Red Hat Enterprise ...
2
votes
2answers
1k views

quick way to adduser and userdel in multiple machines

Currently I just go to each of our servers to type adduser <username> --firstuid 1101 --gid 1001 --disabled-password to add a user. Is there a quicker way to do so on all servers at the ...
0
votes
1answer
348 views

Error reading package lists

I have been trying to get updates on my Quantal Desktop and apt-get update gives me the following: Reading package lists... Error! E: Encountered a section with no Package: header E: Problem with ...
0
votes
3answers
2k views

Samba Server Configured in Fedora 13 ,but unable to access from windows

Configuration file :/etc/samba/smb.conf as follows [global] workgroup = workgroup server string = SambaServer security = user name resolve order = hosts lmhosts ; ...
2
votes
0answers
555 views

Can you run a program using a custom glibc? [closed]

I installed Mathematica 9 on an old Red Hat Enterprise Linux AS release 4 system. After the installation, I tried to start Mathematica, but following message came out: ...
0
votes
1answer
210 views

Passing User's aliases to root while doing “sudo su”

Is it possible? I could make an alias to sudo su -;source .bashrc but it seems like source .bashrc is executed in the earlier shell and not in root's sheel (Why?)
1
vote
2answers
264 views

How to restart a remote x11 program using ssh

Ok I have 2 linux machines, machine A and machine B. Machine A is a server running icecast audio server. Machine B is a desktop in the studio running BUTT(Broadcast Using This Tool) an x11 app that ...
4
votes
2answers
1k views

How do I disable terminal control escape sequences in Linux?

I am writing software that interacts with an embedded device running a version of busybox Linux. Basically, I am just sending commands to the device and parsing the output from the commands . The ...