Questions specifically about Linux, as opposed to Unix-like systems in general, or to questions about a specific distribution or program.

learn more… | top users | synonyms

2
votes
1answer
927 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
1k 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
2k 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
560 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
89 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? ...
2
votes
1answer
4k 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
643 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
522 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 ...
2
votes
1answer
548 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
657 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 ...
2
votes
1answer
349 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 ...
5
votes
3answers
9k 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 ...
1
vote
0answers
61 views

How to find versions of scsi upper, middle and low level drivers

I have a SAS disk attached to the system through a SAS controller(LSI). How do I find the version of the driver of the SAS device entry. In the modinfo, I can see only vermagic and srcversion but ...
2
votes
0answers
117 views

How to find out logical interface name of tap0?

Well, the question is given. I have tap0 interface connecting to a server which provides IPv6 addresses. I would like to set my RDNSS settings in radvd config and I need the logical interface name of ...
36
votes
3answers
23k views

How to know if a disk is an SSD or an HDD

I want to know whether a disk is a solid-state drive or hard disk. lshw is not installed. I do yum install lshw and it says there is no package named lshw. I do not know which version of ...
5
votes
1answer
3k views

Is it possible to run any distro from RAM from within an .iso saved on an NTFS file system?

Running entirely from RAM been done on various distros such as Slax, DamnSmallLinux, and newer Ubuntu versions, and since I have 8GB it seems reasonable that I could run many distros entirely from RAM ...
6
votes
2answers
4k views

How to execute command on list of file names in a file?

I have listed the names of the files which are to be deleted into a file. How can I pass the file to rm command so that it should delete them one by one.
1
vote
2answers
228 views

Can I run emacs as server on Linux but attach from Windows?

I am able to run emacs as server daemon and attach back to it on Linux. Is it possible to start emacs as daemon on Linux, but attach back to it from Windows with a different client? Emacs or xemacs, ...
2
votes
1answer
73 views

Change order of Private Keys passed via SSH login

ssh -i ~/.ssh/username username@xx.xx.xx.xxx -v Server is set to accept only 3 log on tries. The ssh system is trying 3 identity files before attempting the correct identity file. debug2: key: ...
0
votes
1answer
1k views

Can't connect to my wireless network though GNOME

I am a complete Linux beginner and I managed to install Archlinux today. But I have no access to my wifi for some reason. I get internet access in my terminal with wifi-menu but gnome tells me that ...
1
vote
2answers
731 views

Heartbeat with virtual IP at Ubuntu 12.04

I have installed heartbeat package at both linux devices so that when ever clients request a service they will be arrived to this IP, and client will not know what are the back-end/actual ip addresses ...
2
votes
2answers
596 views

Is it a bad idea to not have a swap partition on an embedded linux setup?

I have a small embedded linux kernel and file system created via buildroot that is installed onto a compact flash drive running on an x86 board. I am using an initramfs (due to power loss concerns) ...
1
vote
1answer
1k views

NSLookup how to interpret output

Hi can someone help me to understand what this NSLOOKUP command's output [x]$ nslookup sample.abc.com Server: 161.43.32.162 Address: 161.43.32.162#53<-- ??? Name: sample.abc.com ...
2
votes
2answers
570 views

setuid programs don't seem to run setuid in TinyCore Linux

I want to demonstrate the vulnerability of setuid programs using the TinyCore Linux live cd. That is, I craft a special program, with special permissions, so that it runs as the owner of the file ...
0
votes
1answer
191 views

How hardlink and softlink works in background?

I am looking for an explanation of the following: what happens in Linux when we create soft link and hardlink how are they accessible why do symlinks always display 777 permissions
2
votes
2answers
869 views

Everything works except Fedora

I'm taking an Operating Systems class online for college. It requires us to have a copy of Fedora 13, provided by our instructor, running on a virtual machine. On my machine, it boots to a message ...
5
votes
1answer
603 views

update-initramfs fails with 'File exists' errors during upgrade from lenny to squeeze

I am in the process of upgrading a machine from Debian Lenny to Squeeze (I know it was about time ;-) and ran into a weird error that boils down to the update-initramfs command complaining about some ...
4
votes
4answers
4k views

Should I use `sudo` or `su` in a startup script?

I have a personal program, that has a server/client design. The server daemon part of it, should be run as its own limited user, and the program was not designed to drop its root privileges (if ...
1
vote
2answers
58 views

What command I should execute to accomplish this:

Open connections: COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME php 3075 lemorpa 3u IPv4 1111738938 0t0 TCP 174.120.62.130:60602->98.139.169.19:80 (ESTABLISHED) Recent Site Requests: ...
1
vote
3answers
586 views

Recursively edit files based on parent directory's name

I'm facing an issue I'm not quite sure how to overcome. I have a large directory with hundreds of folders, all following the naming scheme "a_b_x", with x being a random word. In every one of these ...
1
vote
0answers
471 views

Ubuntu 10.04 kvm Virtual Machine guest network speed slow

i have the following situation, i have a kvm host ubuntu 10.04 LTS 64-bit network host speed is perfectly run , as i am testing network speed using iperf , the speed between any network device and the ...
3
votes
1answer
905 views

Httpd : no space left on device

I am using Fedora 17 and over the last few days I am having an issue with my system. Whenever I try to start httpd it shows me: Error: No space left on device When I execute systemctl status ...
1
vote
1answer
1k views

SSH to machines in new subnet - connection timeout

I'm using RHEL4 and RHEL5. A new group of Linux machines are setup recently using 172.16.32.0/24. The existing RHEL machines are running on 172.16.1.0/22 and 172.16.4.0/22. When I try to ssh from ...
0
votes
0answers
40 views

Frozen Linux Recovery Without SysReq

RHEL system has run out of memory and is now frozen. The SysReq commands are not working, so I am not even sure that /proc/sys/kernel/sysrq is set to 1. Is there any other "safe" way I can reboot ...
0
votes
1answer
710 views

'ss' command for checking sockets not found

I get an error when I try to execute this command on Red Hat Linux. $ ss -s -bash: ss: command not found It is supposed to be for checking socket statistics. How do I execute this?
1
vote
1answer
212 views

Regex to Cisco Interface

I would like to know if have some sed, grep or awk regex to parse Cisco interface section and exclude if interface is down (shutdown), like example below. Example: ! interface FastEthernet0/1 ip ...
1
vote
2answers
161 views

2 ip ranges / 1 nic OR why does one ip range follow default route before local routes

Updated at the bottom I'm using Centos as a router, and just replaced the routing system at work. I've got 2 routers to send data around. For the most part it's working. On one router I have 2 ...
1
vote
0answers
516 views

Lowering kernel timer interrupt frequency

When I run my Virtual Machine with Gentoo as guest, I have found that there is considerable overhead coming from tick_periodic function.( this is the function which runs on every timer interrupt).This ...
0
votes
0answers
36 views

Video Gibberish (once every week or two)

Trying to track down an odd video problem. I was running Ubuntu (Precise Penguin) before and running Lucid before that. In both cases the video was running fine (over the last two years). However ...
1
vote
1answer
3k views

LFS System not booting or GRUB cannot access /bood/grub on boot

The closest question I could find is this one, however it is still quite a bit different from what I am needing: GRUB fails to install My specific setup and the steps I followed to produce this I am ...
1
vote
2answers
115 views

Third cron field doesn't seem to work (job runs when I don't want it to)

I scheduled a job like this: * * 6-8 * 1-5 echo "test" >>/tmp/test.log 2>&1 I expect this job to run only on 6th,7th,8th, these 3 days. but today is 18th, it still runs. What ...
1
vote
2answers
4k views

“Network unreachable” outside of LAN

I have a Linux server which runs several services (namely Minecraft :)). Recently, I've been having trouble getting it to connect to the Internet. For example: root@fcwtech:~# ping google.com ping: ...
1
vote
0answers
172 views

Cannot change brightness after standby or logout

Laptop: Toshiba R630 http://www.linlap.com/toshiba_portege_r700-r705 OS: Mint 14, Cinnamon $ lspci | grep -i vGA 00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated ...
2
votes
2answers
4k views

Endless data loop from dev/ttyUSB while sending AT commands

I have problem sending AT commands to my USB modem. At first I tried php-serial class, but when i was reading data, I got endless loop with strange data. Then I tried to debug problem and opened putty ...
2
votes
0answers
430 views

Multiple Linux or Unix Distributions, Same Home Partition or Data?

To avoid conflicts I have always installed multiple Linux and Unix distributions each with it's own home partion or directory, and in the era of 3TB hard drives this is often very practical; I also do ...
1
vote
1answer
114 views

view history of opened programs Manjaro Linux

Is there a way to view a log, or history of all programs opened in Manjaro Linux?
0
votes
1answer
190 views

Altered fstab - no longer able to SSH or access http

I might have done something stupid on my person debian server - I altered the fstab file. I changed udev to dev to try to fix a mounting issue in /dev/sda1 but after I restarted the server, I cannot ...
2
votes
1answer
373 views

bash scripting add arguments

I have created a script which takes parameters and arguments. I want to insert the --help argument. I already know how to parse normal arguments with -, but I don't know how to parse the -- ones. to ...
37
votes
7answers
7k views

Why does mount require root privileges?

Why does Linux require that a user be root/using sudo/specifically authorized per mount in order to mount something? It seems like the decision as to whether to allow a user to mount something should ...