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

4
votes
1answer
13k views

error handling in expect?

I am just improving my quetion becasue i have acieved so far upto this: set username [lindex $argv 0] set password [lindex $argv 1] set hostname [lindex $argv 2] if {[llength $argv] == 0} { ...
1
vote
0answers
657 views

running matlab command line in screen — can't type after reattaching

I'm logging in via ssh to a more powerful computer, on this I start a screen session with screen -S mine and then open a matlab command line via matlab -nodesktop -nodplash and then run within matlab ...
2
votes
1answer
424 views

core dump help— linux

I'm trying to understand the core dump generation. Is the core dump generated separately for a user space application process crash and the kernel level crash? Is the ulimit -c for both kinds? Can you ...
0
votes
3answers
1k views

swap partition and its laws

I remember for choice of swap partition, we should use (swap > 2xRAM) at least.Of course it deprecated , because max of computer's ram is very high. kernel support it. My question: i remember each ...
2
votes
0answers
429 views

Periodicaly dropping packets [closed]

I'm here on an Ubuntu 12.10 Dell machine. Every 8.5 minutes packets get dropped, I don't lose the connection completely but for some seconds, no connections are successful. I had this problem before ...
5
votes
4answers
10k views

Why are my application.desktop files not showing up in Linux application menu?

I've written quite a few open source programs over the years, but not very recently, and I've never had this problem before. The menu items for my new project simply refuse to show up in menus on ...
2
votes
0answers
112 views

Compare two cdroms

I would like to verified if two CD-ROMs (UDF) identical or not. One cdrom will be read at Windows and the other CD-ROM at Linux, where the CD-ROMs can be with different burning programs. This means ...
6
votes
3answers
726 views

Linux workstation monitoring tools

I am currently working in a company that runs Linux (openSUSE 12.1) on the workstations (about 200 computers). I am looking for a tool or methods that could allow me to monitor them remotely, upgrade ...
1
vote
2answers
382 views

find total ram memory and swap memory

I need to write a script to find total memory and total swap of several linux server (2000+). I have one trusted server from where I can login to all these 2000 servers without a password. When I run ...
0
votes
0answers
798 views

Unable to open EPS files

I am unable to open eps files in my machine. I have attached the screenshots of what happens when try to view a eps file with default pdf viewer and ghost script viewer (gv). The condition is same ...
0
votes
3answers
568 views

Is shebang always the same as the interpreter's installation directory?

Must the shebang header always match the interpreter's installation directory? If so, then why do both #!/usr/bin/python and #!/usr/local/bin/python work for me?
4
votes
1answer
127 views

Is it possible to lock bad bits in RAM on Linux?

Recently I bought 8 GB of RAM and it has bad bits. Is it possible to lock the bad bits to make Linux avoid them?
46
votes
5answers
51k views

Creating a ram disk on Linux

I have a machine with 62GB of RAM, and a trunk that's only 7GB, so I thought I would create a RAM disk and compile there. I am not a Linux expert. I found instructions on the internet to create the ...
3
votes
1answer
827 views

parted not recognizing my current partition on external disk. How to fix without losing data?

I have an external (USB) disk, which has been working OK for some time and shows no errors whatsoever in /var/log/$relevantfiles (no errors on reading/writing, for example). Here's the thing: if I ...
6
votes
1answer
6k views

learning about general logging/logrotation on linux?

Assume, that beside the Apache web server logs I never had any contact with any kind of (professional) logs on any operation system. So Logging, although I understand some basics, is all together a ...
4
votes
2answers
500 views

Digging through huge gziped log files

From time to time I need to dig through huge log files (several GB unpacked) to debug a specific error. Now, vim is OK for browsing through the file, but when I need to find something in the file it'...
2
votes
2answers
762 views

changing pattern by removing spaces?

file : hi hello,new york, , ,brazil site ,brazil january,month is feb , , ,indiana jones task: delete all horizontal space (spaces and tab) between any two comas (like , ,) if ...
0
votes
0answers
24 views

Best way of updating Openssl on Linux machine [duplicate]

I have a confusion to choose the best way for upgrading the OpenSSL on my Linux machine. 1*Through the yum Update.* # yum update I know this will update the entire packages. But If I want to ...
2
votes
1answer
522 views

Do I need to install LIRC separately in Fedora 18?

I just finished installing Fedora 18 and out of the box I noticed that it recognizes my IMON/MCE Remote control. I have had to make some changes to the rc_keymaps/imon_mce file to remap some of the ...
25
votes
2answers
91k views

How to display open file descriptors but not using lsof command

Hi I have read Here that lsof is not an accurate way of getting the number of File Descriptors that are currently open. He recommended to use this command instead cat /proc/sys/fs/file-nr While ...
2
votes
1answer
4k views

How do I mount an NTFS partition in /etc/fstab and prevent files/directories from receiving exec permissions when they're created?

I have an NTFS partition that I want to mount using /etc/fstab. I don't want any files to have executable permissions on this drive, so I wrote the following rule: /dev/sda2 /media/sharedfolder ntfs ...
1
vote
0answers
173 views

wvdial connection always shows status disconnected

I use wvdial to connect my usb modem. However, the system always shows "disconnected" as the status. As a result, I cannot use applications which are connectivity-aware. How do I go about correcting ...
5
votes
1answer
250 views

Why Nmap fragmented scan on Linux is only working from virtual environment?

OLD QUESTION AND TITLE (Look further down for the updated question): Why Nmap fragmented scan is only working on Backtrack? I spent quite a few hours today trying to capture and study some ...
0
votes
2answers
2k views

Failed dependencies trying to install package 'libxml2'

I am trying to install libxml2, but my system complains about dependencies. The dependent packages exist on system. The ultimate goal is to install xml_grep2, I have been trying various methods (cpan,...
2
votes
0answers
728 views

Disable RAID auto detect at runtime

In Linux, I'm partitioning two disks for RAID1 with fdisk. The first disk partitioning succedes, but the second fail because the raid starts automatically and occupy also the second disk (why? it ...
0
votes
1answer
207 views

upgrade OpenSSL from 0.9.8w to 1.0.0i or 1.0.1a on Linux server [duplicate]

I want to upgrade OpenSSL from 0.9.8w to 1.0.0I or 1.0.1a. I am using os.name Linux os.version 2.6.18-164.9.1.el5 Any pointers or links would be very helpful. Thanks in Advance.
1
vote
0answers
1k views

file_mode and dir_mode do not work when sharing ext3 drive via cifs

I have a ext3 drive connected to my router and shared via CIFS protocol. I wan't to mount it with certain permissions for each file/directory. Permissions are 2770 for both. Here's my /etc/fstab ...
1
vote
2answers
234 views

Can Linux PC serve as network router?

I was wondering if it is possible for Linux PC to substitute router in small networks. I'm not expert in networking so this question may be stupid, but I don't see why one should not use Linux ...
3
votes
2answers
18k views

Changing root password does not change sudo password

I'm trying to change the password that get's asked when doing sudo. I'm in Ubuntu. Doing 'sudo passwd' or 'sudo passwd root' does give me the two new password questions, and it successfully changes ...
0
votes
1answer
51 views

User policy for a *nix system

I would like to create a document that specifies the policies that rule the use of a *nix system from the user perspective, something like TOS (Terms Of Service) / Privacy Policy you find these days ...
0
votes
1answer
276 views

Fresh installation of debian and raid10 array with SSD and HDD

I have one 120Gb SDD and four 2Tb HDD at disposal. I would like to install Debian Squeeze on the SSD and create a software RAID10 array with the four HDD. According to your experience, how to "...
2
votes
1answer
363 views

shell variable in awk is not being passed to all the lines but just for the very first line of input?

inputfile:is2.txt 10.39.5.41,A1,B1 10.39.5.41,A2,B2 10.39.5.41,A3,B3 10.39.5.41,A4,B4 10.39.5.41,A5,B5 10.39.5.41,A6,B6 script : #!/bin/bash second_column="OOOOOOO" # OOOOOOO will be added to ...
2
votes
1answer
99 views

How to list all present optical drivers?

How can I list all the installed optical drivers with udev or any other core-based tool (perl is also very good) ? P.S.: I know about the wodim --devices command, but it's an undesirable dependence....
1
vote
1answer
2k views

Help to understand Iptables Forward chain with DNAT

I have one server where iptables configured with all chains DROP in filter table eth0 :- 10.0.0.2 [ Intranet assume as LAN ] eth2 :- 172.16.0.2 [ External clients assume as WAN ] Now What I am ...
1
vote
1answer
1k views

Having owner access on files upon mounted NFS directory

I have a Linux RedHat server and a Solaris 10 client. I have mounted a directory which locates on the RedHat server, in the Solaris system with RW(read/write) option. I already have some directories ...
1
vote
1answer
68 views

Why grp:lctrl_lshift_toggle still keeps right keys as switch triggers?

I ran the following command in my terminal: setxkbmap -layout us,ru -option "grp:lctrl_lshift_toggle,ctrl:nocaps" but for some reason, the effect is the same if I specified "grp:ctrl_shift_toggle" -...
1
vote
1answer
164 views

Linux - Shell Script and Colorized Text

From my most recent post: (http://stackoverflow.com/questions/15046851/linux-colorizing-text-in-files) I can now colorize text, in my terminal window. (using echo) Now I'm to the point that I'd like ...
2
votes
1answer
2k views

ping receives no packets, but tcpdump can see them coming in

I'm migrating an old Ubuntu OpenVZ instance (Jaunty) to a new CentOS 6.3 host (using vzdump/vzrestore). Now networking does not work properly. Facts: It works just fine if a setup a new OpenVZ ...
1
vote
1answer
2k views

Deleting Non-empty Directory with smbclient

How can I remove a non-empty directory with smbclient? I have tried the following: 1) rm Result: NT_STATUS_NO_SUCH_FILE listing [dir_path] 2) recurse;rm Result: No Error but also nothing ...
3
votes
1answer
3k views

Confused about Debian error message from su

On Raspbian, the Debian distro aimed at RPi, I end up getting the following error: $ sudo su -l root -c /bin/bash bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no ...
0
votes
1answer
1k views

How to use one distro's live CD to install another distro?

I'm trying to install Mint Linux to a USB stick, but the Mint live CD doesn't fit on a normal CD and I don't have any DVDs available. The Ubuntu live CD does fit on a CD, so I want to use the Ubuntu ...
1
vote
2answers
835 views

How to find 32-bit libraries in 64-bit Linux and delete them?

I am running 64-bit OpenSUSE. My partition is filling up and running out of space.I need to delete some programs and librarires. How can I find all 32-bit libraries and delete them? Can I use yast to ...
1
vote
0answers
114 views

how long use of linux? [duplicate]

/proc/uptime shows how long the system has been running since the last time I turned it on. Is there a way to determine the total amount of time the system has ever been on since I first installed it? ...
5
votes
1answer
8k views

How to execute a shellscript when I plug-in a USB-device

I want to execute a script when I plug in a device in my Linux machine. For example, run xinput on mouse or a backupscript on a certain drive. I have seen a lot of articles on this, most recently ...
1
vote
2answers
913 views

Command/scripts to check the Reverse DNS Lookup time

I am working on a project in which one master communicates with numbers of slaves. For that it has to make connection with hosts in network. But sometimes it hangs. I think that the reason behind is ...
3
votes
1answer
696 views

GDM will not start on boot, unable to login into graphical interface

I am running RHEL 5.8 . SELinux is enabled but in permissive mode. Here are some snippets from /var/log/messages on boot. kernel: type=1400 audit(1360613500.551:6): avc: denied { write } for pid=...
2
votes
1answer
891 views

Equivalent command line call for airplane mode

Can someone suggest how to turn on airplane mode from command line instead of using the GUI? Also can someone list what all are turned off by enabling airplane mode or how to turn off all radios ...
0
votes
2answers
1k views

What is sources.list?

I know sources.list is a file that contains a list of HTTP links pointing to some software downloads. I would like to know more detailed explanations and various conventions followed in the sources....
2
votes
1answer
406 views

Kernel headers for VMware tools

I tried to compile VMware tools on my server. I compiled the kernel myself, I didn't use RPM. As VMware tools needs the kernel header files, I executed the following command in my kernel folder source:...
6
votes
4answers
16k views

Bash script wait for processes and get return code

I am trying to create a script which will start many background command. For each background command I need to get the return code. I have been trying the following script : #!/bin/bash set -x pid=(...