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
1answer
1k views

Is there a config file for telnet that's similar to .ssh/config?

I constantly need to type some hostnames / IPs to telnet, and sadly they don't support ssh. Is there a config file for telnet similar to ssh? I don't have admin access to change the /etc/hosts file. ...
3
votes
1answer
3k views

What's the difference between a screen being attached and detached?

[blah]$ screen -ls There are screens on: 16517.pts-0.blah (01/28/2012 01:55:32 PM) (Detached) 4345.pts-1.blah (01/27/2012 11:22:48 AM) (Attached) 2 Sockets in ...
6
votes
3answers
6k views

What is the formula to determine how much memory a socket consumes under Linux?

I'm doing some capacity planning and I was wondering if there is a formula that I could use to predict (from a memory standpoint) how many TCP connections I could handle on my server. At the moment, ...
6
votes
3answers
2k views

Is there a way to speed up boot time by loading things into RAM immediately?

I'm looking to lower my boot time by whatever means possible. I have about 8GB of RAM in my laptop, and if there's any way I could leverage that into faster boot time, that'd be awesome. Is there a ...
2
votes
2answers
1k views

Determining if GPU switching works?

I have a 8,3 MacBook Pro with an onboard Radeon 6700M GPU alongside the integrated Intel Sandy Bridge GPU. I recently upgraded to FGLRX 8.930/12.1, and Catalyst Control Center seemed to look the same, ...
8
votes
2answers
2k views

What can make passing init=/path/to/program to the kernel not start program as init?

I'm trying to debug an init script on a Linux system; I'm trying to pass init=/bin/sh to the kernel to make it start sh without starting init so I can run through the init sequence manually. What ...
2
votes
2answers
195 views

Determining longest time taken in boot process

I'd like to find out what takes the most time in my boot process from GRUB to the Ubuntu login screen. How can I profile my boot process to find out what's taking so long?
8
votes
2answers
14k views

Where is the struct task_struct definition in the 2.6.30.5 Linux Kernel?

In the version 2.6.15 kernel, I got that I can rewrite the task_struct in the file (include/linux/sched.h),like: struct task_struct { unsigned did_exec:1; pid_t pid; pid_t tgid; ...
5
votes
4answers
835 views

How can I move the entire OS to a different server?

I want to install RhodeCode on a test server at work. However, the internet access is restricted for that server, and RhodeCode has a lot of dependencies (I don't even have Python on that server). So ...
7
votes
1answer
6k views

Why does Linux show both more and less memory than I physically have installed?

I know about swap - this question isn't about that. In dmesg, the Linux (x86-64) kernel tells me this about how much memory I have: [ 0.000000] Memory: 3890880k/4915200k available (6073k kernel ...
16
votes
4answers
55k views

How do I partition a USB drive so that it's bootable and has a Windows-compatible data storage partition?

split from here I have a 16gb flash drive, which I want a live ISO to boot from (via unetbootin or something similar). It'll be some 32bit distro that I can plug-in and boot on whatever computer I ...
64
votes
5answers
46k views

Can I configure my Linux system for more aggressive file system caching?

I am neither concerned about RAM usage (as I've got enough) nor about losing data in case of an accidental shut-down (as my power is backed, the system is reliable and the data are not critical). But ...
1
vote
3answers
2k views

How do I cp the folder, not just the folder content?

Let's say I have folder structure like this: /parentFolder/ folder1/ folder1.1/ file1 folder2/ file2 How do I copy folder2 inside folder1.1 so that file2 is also in ...
3
votes
2answers
3k views

How to permamently disable SELinux?

We run a site with big traffic surges and, because of that, SELinux usually thinks that the traffic is a SYN flood attack. We have this same problem on many different CentOS servers. Despite ...
1
vote
1answer
240 views

nohup sends eof (or some other data) info my app when running recursively. How to make it stop or not send at all?

I have a simple small app that suports cin/cout interaction. But there are times (lots of them) when I do not care about that interaction and just want to run my app in background. So I start it with ...
6
votes
1answer
995 views

SysBench highlighting abysmal disk write performance on white box vs Tier1 server

Have been testing white box system with SuperMicro X8DTL motherboard with various SATA hard disks such as 7,200RPM Seagate Constellation ES and 10,000 RPM Western Digital VelociRaptor. Have tested ...
1
vote
1answer
1k views

How to identify the wireless network card on my laptop?

bash-4.1# lspci 00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 0c) 00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated ...
2
votes
1answer
174 views

What are the difficulties in importing features of Android, like Unity3D Player, to Linux in general?

We know that Android is an open source Linux-based distro. And we know some features developed for Android are required for the Linux community for many years, and are denied (like Unity3D Player). ...
17
votes
3answers
1k views

How much does the Linux kernel change in one year?

How can I get statistics about how much (in percents) the Linux kernel source code changes in one year?
2
votes
1answer
729 views

Compiling a distribution unspecific kernel on two different distributions

I downloaded kernel 3.2.1 from the kernel.org. Compiled it "successfully" on OpenSuse 11.3 64 bit. When I tried to compile the same kernel source on Ubuntu 11.10, I got: ERROR: ...
17
votes
8answers
34k views

What's the quickest way to add text to a file from the command line?

Occasionally I have a thought that I want to write into a file while I am at the terminal. I would want these notes all in the same file, just listed one after the other. I would also like a date / ...
1
vote
2answers
3k views

ssh root@localhost error; help me hack this box :)

I need to gain a root shell on a linux vm for a security class. I have a user account on the system and a means to write to any file (i.e. /etc...) and want to escalate my privileges with: ssh ...
8
votes
4answers
10k views

How do I get “top” command to wrap its output?

The "command" column gets truncated by the width of the screen and I am unable to see the last part of it. I have tried to reduce the font size so I can see a longer part of the command line but it ...
7
votes
3answers
3k views

How can I check which terminal definitions are available?

The bulk of the question is in title, but to elaborate a little: On most Linuxes I can find /usr/share/terminfo -type f. But on Solaris machine I have nearby - this directory doesn't even exist. I ...
15
votes
3answers
14k views

is there an open source tool to measure cpu performance?

I have used many times ab for measuring web performance, hdparm for measuring hard disk performance and netperf for measuring network performance. But I didn't find any tools to measure cpu ...
2
votes
2answers
4k views

how to re-enable input on a serial console

I have an old router which runs Linux and I'd like to have a serial console on. This used to work fine, but after a firmware update, I can now only get output on the console and cannot give any input ...
1
vote
1answer
110 views

Back up particular package and its dependencies

My question is: can we take a backup of a particular package and its dependencies? For example, if we install VLC it requires dependencies like kde filesystem,libcaca.so.0 etc.. can we take a backup ...
5
votes
1answer
13k views

How to get a list of installed external kernel modules?

From the documentation of Linux kernel 3.2 (Documentation/kbuild/modules.txt) === 5. Module Installation Modules which are included in the kernel are installed in the directory: ...
1
vote
2answers
454 views

How do I find the relevant command for something in linux?

For example, say I'm trying to find the command that displays the routing table (like route) or to run a traceroute, but I don't actually know the commands that accomplish this. My understanding is ...
1
vote
1answer
546 views

Linksys WAG200 DSL/Router combo with cable modem? [closed]

I have a Linksys DSL/Router combo. It was previously used for my DSL connection. I switched to a cable connection now, using Motorola cable modem. Is it possible to create have the cable connection ...
1
vote
1answer
2k views

__modver_version_show undefined error during make

Platform: Ubuntu 11.10 64bit Kernel to be compiled: 3.2.1 Error after make: ERROR: "__modver_version_show" [drivers/staging/rts5139/rts5139.ko] undefined! To solve this I copied the .config file of ...
3
votes
3answers
166 views

Detecting whether a server is loaded

I have to start some performance test on a Rhel 6 box, but before starting the test, i have to make sure there are no other java processes running. The manual way of doing it would be to use "ps -ef ...
8
votes
2answers
730 views

Is it true that the first version of Linux was based on parts of Unix?

Me and a friend had a discussion about Linux and Unix today and my friend kept saying that the first version of the Linux kernel was based on [parts] of the Unix kernel. This really surprised me ...
6
votes
3answers
3k views

Command to measure TLB misses on LINUX?

Could some one direct me to a command to measure TLB misses on LINUX, please? Is it okay to consider (or approximate) minor page faults as TLB misses?
16
votes
5answers
9k views

Shell Script mktemp, what's the best method to create temporary named pipe?

I'm aware its best to create temporary files with mktemp, but what about named pipes? I have an idea, I'm sure it would work, but I would really like an expert opinion. I prefer things to be as ...
1
vote
1answer
150 views

Installing software as user

I need to install some software as user on a machine where I don't have root access. So far I've been using gentoo-prefix, but ain't really fine with it: I need GCC 4.6 and gentoo only ships 4.5, I ...
4
votes
1answer
258 views

Unity: Stop Dock Repopulation at Restart

Unity is currently the default window manager on my system, a window manager that's available for many Linux distributions, meaning this question isn't Ubuntu-specific. I have disabled the dock's ...
6
votes
1answer
1k views

How to make a system lock when the USB pendrive with authentication key is removed?

Say, I have USB drive authentication up and working. So far, so hoopy. But now I want to take the next step, which is locking the machine when I eject the medium. I know there is udev I can script, ...
1
vote
1answer
2k views

OpenBox autostart in OpenSUSE?

How can I use autostart with OpenBox (in OpenSUSE)? Previously xfce was installed to run in the first place. I have added xfce4-panel & to autostart in /etc/xdg/openbox/ and autostart ...
1
vote
2answers
488 views

Formating hdd to ext3 fails?

maybe i'm too stupid, but what's the command to format my external 2.5tb usb hdd to ext3? using mkfs.ext3 /dev/sdc1 works, but only gives me 300gb of space allocated... where am i failing? thanks in ...
3
votes
1answer
3k views

ssh tunnel on ssh tunnel between Windows and two Linux machines

I have the following configuration and want to establish a tunnel on a tunnel. I read already the following topic: How to put a tunnel in a tunnel? My configuration: Notebook --> Linux Server A ...
1
vote
2answers
2k views

modprobe: Module ext4 not found. WARNING: no dependencies for kernel module 'ext4' found

I rebooted a compiled kernel 3.1.0, and those are the errors that I am getting: linux-dopx:/usr/src/linux-3.1.0-1.2 # make install sh /usr/src/linux-3.1.0-1.2/arch/x86/boot/install.sh 3.1.0 ...
1
vote
4answers
433 views

What does sdptool do in this script?

Here I want to know about this sdptool command does in the following script snippet: if [ `sdptool browse $BD_ADDR | wc -l` -lt 5 ] I understand sdptool browse $BD_ADDR as well as wc -l -- it's ...
9
votes
3answers
15k views

Reset a PCI Device in Linux

Is there a generic way to reset a PCI device in Linux from the command line? That is, cause the PCI bus to issue a reset command.
5
votes
2answers
2k views

Overwrote Windows with Linux, how can I recover data?

While installing Ubuntu 11.10 (ext4) I accidentally chose a wrong partition and it overwrote my Windows 2003 installation (ntfs). How can I recover files? So far I tried photoRec and it recovered ...
10
votes
5answers
7k views

Randomly draw a certain number of lines from a data file

I have a data list, like 12345 23456 67891 -20000 200 600 20 ... Assume the size of this data set (i.e. lines of file) is N. I want to randomly draw m lines from this data file. Therefore, the ...
7
votes
4answers
2k views

Linux distro that supports touchpads and acpi on Macbook Pros

I've had a Macbook pro for 1 year running OSX, but I really miss Linux. I read plenty of docs but I never got a useful answer to the following questions: How's the autonomy with ...
4
votes
2answers
9k views

Make daemon start up with Linux

I'm writing a simple daemon application using C/C++ and I want it to start when Linux starts up. I am a beginner on Linux systems. I have tried to modify /etc/init.d/skeleton to add a script into ...
2
votes
1answer
940 views

How can I manage jobs after I disconnect from my tty/ssh session?

If I ssh to a box and start a task that will take some time to complete I usually press control+z to pause the process, and then immediately type bg 1 to put run it in the background. I can then type ...
3
votes
2answers
6k views

Issues of using sort and comm

I was trying to find the intersection of two plain data files, and found from a previous post that it can be done through comm -12 <(sort test1.list) < (sort test2.list) It seems to me that ...