These questions are about Linux in general -- NOT specific to a particular distribution. If the question just happens to be in a Linux environment, please specify your Linux distribution in the body of your question, but do NOT use the /linux tag.

learn more… | top users | synonyms

2
votes
2answers
817 views

Getting internet to Linux VM without being detected by Network

I'm trying to get internet to a Linux VM (Backtrack 5 on VMWare Workstation). Unfortunately I was told to not "bridge" the connection from the VM because it could be detected by our companies network ...
4
votes
3answers
2k views

Prevent creating directories but allow creating files

I have a directory shared through Samba. I want users to be able to create/modify/delete files but not create/erase directories. I haven't found a way to do it. Maybe with SELinux? But how?
2
votes
0answers
324 views

Windows shared network printer keeps using rear tray as source

I am trying to set up network printing on my Linux Mint 15 (64 bit) system (dualboot with Windows 7). The printer is a Canon PIXMA MG5100 and is connected (via USB) to a computer running Windows XP. ...
5
votes
3answers
1k views

How can I background a shell script during a Kickstart?

I have a Red Hat Kickstart process which reports its progress at key points via a POST request to a status server. This is fine during %pre and %post, but when the actual build is taking place ...
1
vote
0answers
99 views

How to associate a seperate station to a Wifi AP

My Linux machine (A) is connected with some Wifi AP over my wireless device (wlan0). I want to give some other Linux machine (B), which is connected to me by ethernet (eth0), access to this network. I ...
6
votes
1answer
558 views

How to change the forgotten root password?

I am very new to Debian linux, I forgot my root password...actually I think I know what it is because it is the same password I have for pretty much everything but in the Terminal in tell me "Sorry, ...
0
votes
1answer
190 views

Gedit Click Config plugin won't open

I'm using Gedit 3.4.2 with Click Config plugin 1.4.0. When I go to Edit->Click Config->Configure the window doesn't open, basically rendering this plugin useless. I've tried reinstalling the plugin. ...
3
votes
1answer
6k views

Configuring DNS resolver failover timeout

We have all of our systems set up to do internal DNS to a local name server and a secondary name server so that in the event the local DNS server is down they should go over the WAN to the secondary ...
-1
votes
1answer
688 views

How to copy data from Linux Server to Windows Server

I need to copy from Linux server to Windows. To copy between Linux servers we can use multiple options like scp, or rsync but how to copy data if I have to copy on windows Server from Linux Server. ...
1
vote
1answer
3k views

when to use double quotes with a variable in shell script? [duplicate]

I am in a confusion with what is meant by the double quotes referring to a variable. For example following two scripts gives the same output. What is really meant by the double quotes? Script1 ...
2
votes
2answers
316 views

Detecting the device of a crypto mount

I have an external eSATA-hdd on an OpenSUSE 12.2 system. The external hdd has an LVM on a dm-crypt partition. I mount it by powering it up and then doing rescan-scsi-bus.sh cryptsetup -v luksOpen ...
3
votes
1answer
4k views

Set wi-fi power saving polling interval on Linux, is it possible?

man iwconfig states: power Used to manipulate power management scheme parameters and mode. To set the period between wake ups, enter period `value'. [...] Examples : ...
4
votes
2answers
3k views

How to increase the size of rootfs?

So I got this error today and decided to investigate: /etc/init.d/mysql: ERROR: The partition with /var/lib/mysql is too full! ... failed! I'm not sure how... but I've filled up my rootfs ...
-2
votes
2answers
88 views

How to see Current users on the system

I need a script to identify only and only users ( current users ) on the system and what actions they are performing. I use w , but don't show user's actions that are currently performing ... and PS ...
-1
votes
1answer
152 views

can't view `split` output files with cat [closed]

File a.txt contains: 1 one 2 two 3 three 4 four 5 five 6 six Then the command: split -2 a.txt output_ yields as output three new files output_aa, output_ab, output_ac When I type: cat output_aa I ...
10
votes
1answer
2k views

Turning off swapping for only one process with cgroups?

I would like to turn off swapping for only one process. Swap should work as usual for the other processes. How I can implement this with cgroups?
2
votes
1answer
1k views

How to keep track of which files are currently growing in directory

I have a local filesystem which is exported rw with nfs (very big xfs partition). Somewhere (I cannot determine who or what remote process) files are being written, created new or updated appending ...
0
votes
1answer
719 views

How to make /dev/sdf?

On a server I have 5 disks (boot-disks + 4 disks in RAID, sda-sde). Now I need to connect a new disk using a PATA/USB-adapter. I do not have a /dev/sdf, so the USB-device is not found at all and ...
3
votes
1answer
123 views

Internet disappears regularly

About a month ago I installed the newest version of Linux Mint (14). I use Linux the whole day on my laptop but every 1-2 hours my internet connection (Wi-Fi) magically disappears for about 10 ...
1
vote
2answers
1k views

How to restrict rm -rf / in CentOS machine? [closed]

I would like to know how we can restrict rm -rf /on CentOS machines?
2
votes
2answers
802 views

Why is my tar file bigger than its contents?

I have a tar file that I have recreated from two files - xaa, xab (the results of using the split command). The tar file is the size I expect it to be but when I extract it the folder I get is a ...
6
votes
2answers
2k views

Can I stop Linux from listening to a USB input device as a keyboard, but still capture events with a program?

I have a USB barcode scanner at /dev/input/event0 (/dev/input/by-id/usb-Metrologic_Metrologic_Scanner-event-kbd), and scanning a barcode causes it to send keypress events. I'm capturing these ...
6
votes
3answers
445 views

Externaly limiting number of CPU cores used

I need to externally limit a process/session to a certain number of cores. Are there any other possibilities than CPU affinity (I don't like the need to specify the actual cores) and cgroups (hard to ...
12
votes
4answers
8k views

32-bit, 64-bit CPU op-mode on Linux

I'm confused. Running Fedora Linux, lscpu yields: Architecture: i686 CPU op-mode(s): 32-bit, 64-bit ... But when I try to install a 64-bit program (Chrome) I get error like: ...
3
votes
3answers
697 views

Transfer a TCP connection from one Linux box to another behind NAT?

While experiencing an extremely slow download rate on one of my HTTP connections, I thought it'd be nice if I could just transfer the connection from my PC to an energy-saving home server that shares ...
1
vote
1answer
1k views

Creating a terminal device for interprocess communication

I'd like to know how to create a terminal device to simulate a piece of hardware connected through a serial port. Basically, tty device with a certain baud rate that can be read from and written to ...
1
vote
2answers
1k views

Show “last login” information when “su”

I'm trying to configure the PAM modules working with su command. I want to su shows the "last login" information, as ssh or login do. I find, on /etc/pam.d/login a PAM module called pam_lastlog that ...
1
vote
0answers
170 views

add audio from playing file to microphone stream

I need to add a sound to what the microphone is capturing, is it possible? I started with man aplay and found that I can do aplay -D PCMdevice filepath.wav so then I listed the PCM devices with ...
1
vote
1answer
234 views

How to prevent the termination of Anacron jobs after battery mode commences?

I have a backup script which is run daily by Anacron. It can take around 3 hours to complete. I'm happy for Anacron not to commence the script if the laptop is running on batteries, but once started, ...
2
votes
3answers
2k views

How to setup transparent firewall using ArchLinux

I am trying to setup a Transparent Firewall using ArchLinux. My setup looks like this: (ISP, IP: 10.90.10.254) \ \ \ (eth0-> ip: 10.90.10.1 gateway: 10.90.10.254) +-----------+ | ...
5
votes
4answers
9k views

How to remove any string from a file via shell scripts?

I try to remove string from .bash_profile. String is added when my shell script run: My string at bash_profile as follows: # for Myapllication export MYAPP_HOME=/opt/myapp I want to remove the ...
2
votes
1answer
112 views

Hardware Ethernet IP Limitation

In Linux Environment How many number of IP address I can assign to a Hardware ethernet interface ? Is there any limitation ? what is the maximum no. of virtual ethernet interface I can assign to a ...
10
votes
5answers
4k views

Special File that causes I/O error

I want to automatically test if a piece of software reacts as expected if an essential SQLite DB file fails to be read (causing an I/O error). Exactly that happened some days ago at a client. We ...
1
vote
0answers
235 views

Raspberry PI wifi network setup: switch adhoc mode if a wired/wifi network is unavailable

I'm using raspbian (debian) and I want the system would be able to always be reachable through the network, without the user needs to manually interact with the system. I'm looking for a solution that ...
5
votes
1answer
280 views

can initramfs be paged out to swap disk?

I am using initramfs to boot Centos via PXE. The initramfs used memory is listed within the "cached" value in /proc/meminfo or via free. Since I need to calculate performance data, I need to know ...
1
vote
1answer
104 views

Is NetworkManager itself capable of creating a new Wifi connection?

Manual pages of NetworkManager mentions that it "manages Wifi network interfaces", however it does not say whether it can create new Wifi connections. NetworkManager applet appears to be able to ...
2
votes
1answer
162 views

Udev rule- change group

I would like to change group of /dev/nvidia0. I was write udev rule: KERNEL="nvidia[0-9]", GROUP="video", MODE="0666" But it does't change group, after reboot file is in rootgroup. How do this?
1
vote
1answer
210 views

How to stop CACHE instance from Shell Script

I want to restart CACHE(database that I am using) Instance from shell script. What I did is created a function in the shell script named resatrt_cache. restart_cache() { ccontrol stop instancename ...
4
votes
2answers
5k views

How to measure on Linux the peak memory of an application after has ended

How do I measure the peak memory of an application running on Linux? I run this app in batch so I cannot use RSS since, it reports the current memory. I need the peak memory that the application has ...
1
vote
2answers
1k views

RAM size and SWAP size

I want to know why the swap partition have to more double size the RAM Size ? for example if the ram installed in machine 64 G.B , the swap have to be 128 G.B ?
0
votes
2answers
455 views

Safe Linux dual-boot partitioning?

I'm about to get a Linux laptop with Ubuntu preinstalled. Among my first tasks will be a dual-boot installation of Linux Mint. From what I can tell, the following seems like an okay partition ...
7
votes
4answers
554 views

Protecting Devices from dd and fdisk Commands

I'm wondering if there is some way to prevent certain certain devices from becoming the output file of the dd command and the target of the fdisk command. I'm currently using the two operations to set ...
1
vote
1answer
57 views

Is it a good practice to use svn for two different applications but on the same server?

Is it a good practice to use SVN for two different applications but on the same server ? I'm asking this because, whenever I update one of the application with svn it does not ask for password ...
2
votes
4answers
167 views

How to make sure, that certain functionality (like Alt+Ctrl+F1 switching into tty) is available in havily swapping system?

At the moment, when I accidentally launch application that eats a lot of memory (that causes system to heavily swap), the system become so unresponsive (waiting hours just to see the mouse move/or ...
2
votes
0answers
140 views

Understanding getlogin spoofing

My question is in three (or so) related parts: 1) My understanding is that getlogin() will effectively return the auid associated with the process and so isn't actually changable by the user. Is that ...
0
votes
1answer
1k views

notify-send command with -u critical and -t option

I sometimes see the command : notify-send -u critical -t 3000 "Example" However, with -u critical, it seems like the notification doesn't time out. What is the purpose of adding a timeout option ...
5
votes
1answer
1k views

Backporting OpenSSL-1.0.1e to Debian Lenny (armv4l)

I have an old embedded board that supports only Debian Lenny. I need to install OpenSSL-1.0.1e on it. If I download the source code then try to compile the source code, I get this error ...
3
votes
3answers
3k views

Encrypting loopback images without using a loopback device

I'm trying to design a firmware update system for an embedded Linux system. My plan is to send an image that can be mounted on the target system, so I don't need to unpack the entire file. I also want ...
3
votes
2answers
4k views

How to bind v4l2 USB cameras to the same device names even after reboot?

I have 3 USB cameras on single PC, one camera will be unused and can be ignored. I need to force two identical cameras to be mapped to constant device names (like /dev/video1 and /dev/video2 ). The ...
0
votes
1answer
2k views

The VM with Kali Linux hangs

I have downloaded the newest Back Track version "Kali Linux" as a VM image. I run it using my VM Workstation latest build. First time I visited Youtube to play some videos it asked me to download ...