7
votes
3answers
7k views

vi/vim, how can I write out a number of lines to a new file

I have a bunch of lines that I want to write out to a different file. How can I do that?
5
votes
2answers
233 views

High-level command to request several branches of snmp in one tcp-session?

We are trying to monitor our servers mainly with SNMP. Due to performance reasons we are changing this from single requests to snmp-bulk-requests (as allowed in SNMP v2c). In theory (at least to my ...
3
votes
1answer
3k views

How to Install BASH in FreeBSD

I really find that using bash helps a lot, when you need to retrieve strings of text that you used previously. But how can I install it on FreeBSD? I have tried typing bash into the terminal, but ...
2
votes
1answer
613 views

Bond slave link up is too slow

On one of my servers I set up a bond-device consisting of an onboard network-card and an PCIe network card. (eth1 and eth5) I set up the configugration according to man ifcfg-bonding - i.e. eth1 and ...
1
vote
3answers
645 views

Why is it better to use a 64bit OS?

Speed/Security? Why should we choose to use 64 bit instead of 32 bit?
0
votes
2answers
472 views

Why my Http Proxy doesn't reply [SYN,ACK] after received a [SYN] packet from the client?

I have a http proxy running on Linux (RHEL 5.5), intermittently it doesn't reply [SYN,ACK] packet after received a [SYN] packet from the client. This issue can be recovered by restarting the proxy. I ...
6
votes
2answers
2k views

yum require an older version of a package as dependency

I have installed TexLive 2012 via the official site and want to install epydoc which depends on an older version. However, when I try to install epydoc which depends on texlive, I get the below ...
5
votes
2answers
3k views

How to know which firmware is loaded by kernel?

I have an Intel wireless card driven by iwlwifi, and I can see the following message in dmesg: iwlwifi 0000:03:00.0: loaded firmware version 17.168.5.3 build 42301 But how do I know which firmware ...
-1
votes
1answer
342 views

Installing a .ko module on an embedded Linux system that does not support modules

From the answers to this question I have discovered that the embedded Linux distribution provided to me, by my hardware supplier, was not built with kernel support. If I am to use this distribution I ...
6
votes
3answers
4k views

What's the default order of Linux sort?

For a long period I thought the default behavior of the sort program was using ASCII order. However, when I input the following lines into sort without any arguments: # @ I got: @ # But ...
5
votes
1answer
2k views

Difference between poll_s and ep_poll WCHAN in ps output

When I issue ps -elf|grep python for example on my system, I see these: 1 S 1000 6020 6008 0 80 0 - 9914 poll_s Jul12 ? 00:00:01 python manage.py run_gunicorn -t 3600 -w 8 -b ...
3
votes
5answers
625 views

Linking Intel RAID 5 partitions to boot disk

I have a 5-disk Intel RAID 5 along with a 6th boot disk with /, /boot, and swap. What I was planning to do was mount the Intel RAID partitions (which I've added with fdisk) so that the 6th disk ...
3
votes
1answer
515 views

Followed SSD-optimization advice, now root partition won't mount rw

Tonight I decided I wanted to tweak the configuration of my Debian install on my netbook (Ideapad S10-2) to work better with the SSD I put in it. I have done this before and never had any issues but ...
7
votes
2answers
2k views

TrackPoint hard to control after Debian update

I'm on debian testing, and after rebooting (after an uptime of 3 weeks or so, that included a bunch of package updates, I believe including the kernel) the other day, the fine-adjustment - what a ...
2
votes
1answer
115 views

Make 'CTRL-/' behave the same in vtty and xterm

When I press Ctrl+/ in a graphical terminal (e.g. xterm) I get "undo". However, in a virtual terminal (e.g. Ctrl+Alt+F1) I get "backspace". In practice I run into this when I'm using emacs in a ...
3
votes
1answer
2k views

Maximum Number of Entries in Crontab

If it exists, what is the maximum number of cron jobs (entries?) that can be added to a server's crontab? How do I tell? I'm on RHEL 6. I googled around, but did not see a conclusive answer -- some ...
3
votes
1answer
2k views

How to salvage a lvm/luks install from custom install

I was battling with setting up a Mint install on an encrypted hard-drive, and I think I partially succeeded. But I cannot boot the system because some configuration is not correct, and since I'm a ...
2
votes
3answers
2k views

Can't mount EXT4 hard drive after mounting it in windows

I have a 2TB Western external HDD. Its original filesystem was NTFS but I formatted it to EXT4. I had no problem in Linux; But today after I mounted it using ext2fsd in a windows box, I cant mount it ...
2
votes
1answer
750 views

git tab-completion does not work on Debian Wheezy but works on Squeeze

My question is about git command tab-completion, i.e. when I type git stat and hit Tab, it completes the command line to git status. (Where applicable, this also works with remote names and branch ...
7
votes
2answers
14k views

Join two files with matching columns

File1.txt id No gi|371443199|gb|JH556661.1| 7907290 gi|371443198|gb|JH556662.1| 7573913 gi|371443197|gb|JH556663.1| 7384412 gi|371440577|gb|JH559283.1| ...
11
votes
2answers
4k views

Unlimited history in tmux

In your .tmux.conf file you can set the window history with something like: set -g history-limit 4096 Is there a way to set an unlimited history for each window?
29
votes
3answers
26k views

How can I safely remove a SATA disk from a running system?

I sometimes need to plug a disk into a disk bay. At other times, I have the very weird setup of connecting a SSD using a SATA-eSATA cable on my laptop while pulling power from a desktop. How can I ...
13
votes
4answers
24k views

printing colored text using echo

I know that for printing a colored text using echo, for example red color, the code is: echo -e "\e[1;31m This is red text \e[0m" and I know that in this example, 31 is code of red color and the ...
4
votes
2answers
421 views

How do I boot Linux if boot partition was deleted?

At first, Windows 7 was the only OS in the drive. Then I installed MINT. Accidentally, I formated the sda1 partition (where the windows 7 bootloader was stored) as ext4, being the mount point of ...
1
vote
1answer
1k views

How can I force LXDE to have a transparent background when connecting with X/X11?

Just got my Raspberry Pi in the mail and I've started playing around with it. After getting LXDE up and working working in desktop mode (i.e. monitor and keyboard plugged in) I decided I wanted to ...
1
vote
0answers
220 views

Where are the logs for the serial port (power save modes, specifically)

I'm running a system with Ubuntu 10.10 (pretty old, I know, but it has to be that one), with all its packages updated to the latest version supported (the distribution is not supported anymore so, to ...
3
votes
4answers
3k views

Openbox keybindings not taking effect after --reconfigure or restarting X

273 <keybind key="W-Return"> 274 <action name="Execute"> 275 <command>lxterminal</command> 276 </action> 277 </keybind> 278 ...
3
votes
1answer
606 views

Installing DRBD on Redhat 5

I am trying to install DRBD on Redhat 5. Everything i find is out of date, and all the files are not hosted anymore. From what I understand I need to install the Cent OS repositories to install DRBD ...
1
vote
1answer
3k views

Is it possible to keep a vnc server alive after log out?

I am using OpenSUSE and I have created a script that launches at startup the x11vnc server. But when the user logs out x11vnc is killed. I want it to start again automatically. Here the script I ...
2
votes
4answers
2k views

Terminal with “repeat last” button

I'm often compiling stuff and therefore repeating the same command over and over, so I'd like to benefit from my "visual memory" and have a sort of "repeat last command" button attached to a terminal. ...
1
vote
2answers
363 views

Desktop environment for my grandma

I've an old laptop sitting around and I'm moving abroad. My grandma is kinda sad about that so I was thinking of installing some Linux distro on the old laptop and tailor it to her needs. What would ...
2
votes
2answers
2k views

Python script to shutdown system doesn't work in cron

A python script to shutdown system works fine from the terminal but doesn't work when included in crontab. The script is called by cron but ends with an error 'shutdown command not found'or 'init 0 ...
1
vote
1answer
1k views

Path issues with a source install

I hope my title isn't confusing. I've got a CentOS 5 machine and I had Ruby 1.8.7 installed on here. So in order to upgrade my Ruby installation and gems/rails I Uninstalled Ruby: sudo yum remove ...
15
votes
1answer
7k views

what do you mean by interactive shell?

UNIX: The Complete Reference, Second Edition by Kenneth H. Rosen et al. You can start another shell after you log in by using the name of the shell as a command; for example, to start the ...
3
votes
3answers
3k views

localization of man pages on Linux (Ubuntu)

Is there an option to output a manual page in a different language? I don't want to change the computer language completely, but only specific manual pages. For example $ man -English man Man is a ...
0
votes
2answers
1k views

.profile in SCO

Where can I find the .profile in my user's logon in SCO? I am needing to edit it, so I can add a PATH to it, so that my PATH loads up in start up. I have to add: echo $PATH ... as I have already ...
11
votes
1answer
3k views

Select lines using ranges in Vim?

I would like to select lines visually. Usually I'd SHIFT-V and select with j and k to highlight the lines. How do I do it using a colon-range command? e.g. :10,12<?> to select lines 10 - 12 ...
2
votes
1answer
901 views

Time validation with regex

I'd like to make validation about time stamp of one of my log file. But it seems I have problem on my expression in case statement. TIME value might be something like 11:49 or 2011. And I just want ...
5
votes
2answers
1k views

Disable mail check on login?

When I login to console, e.g tty1, I usually see a message No mail, I know there's some program checking email on login, but I don't use that, how can I disable that command ? I tried to grep from ...
4
votes
1answer
581 views

Is it safe to use customized CFLAGS for linux kernel, e.g mmx sse instructions

Is it safe to use customized CFLAGS while compiling linux kernel, e.g enable SSE, MMX instructions, is that a problem ?
2
votes
3answers
109 views

Single machine with two disks

I have two disks on my local computer, so when you write to these disks simultaneously, are changes writting to them serially or in parallel?
3
votes
1answer
5k views

How to handle network interfaces on Crunchbang Linux desktop?

I have installed Crunchbang 10 (Statler) which is based on Debian 6 (Squeeze). By default there is network-manager-gnome 0.8.1 (/usr/bin/nm-applet I believe) running with an icon near the clock/tray ...
6
votes
2answers
775 views

Does the position of partition on disk affect speed?

If I put /var as first partition, then /home and /, will the partition for /var have better performance than if I put other partitions close to head of the disk? Will the disk sector position matter? ...
3
votes
2answers
631 views

Progress bar in updatedb

Is it possible to get a reliable progress bar (or just a reliable information how long it will take) when doing updatedb?
1
vote
3answers
318 views

Print folders names character count

I am trying to use find . -type d -print | wc -m where -m or --chars would print the character counts of the folder names. Take following screen shot as example, the character count for tempFolder + ...
0
votes
1answer
92 views

CentOs Unable to load pages that are on server

I am having a little difficulty accessing pages that are on my server. Under /var/www/html/ I have an index.html page, and when I try to access it from chrome, it times out. The permissions on html/ ...
4
votes
1answer
1k views

What's the right way to display system sound volume in conky?

What's the right way of displaying system sound volume in conky ? I don't have /dev/mixer file, and without an external command, is it possible ? Conky 1.9.0
18
votes
5answers
30k views

How to introduce timeout for shell scripting?

I want to run a shell script that got a loop in it and it can go for ever which I do not want to happen. So I need to introduce a timeout for the whole script. How can I introduce a timeout for the ...
7
votes
4answers
7k views

Renaming a bunch of files with date modified timestamp at the end of the filename?

So, say, I have a directory with a bunch of files like g.txt, where g.txt was last modified on, say, June 20, 2012. How would I batch-rename all of the files (like g.txt) with the last modified date ...
3
votes
4answers
101 views

What are some quick ways of making N copies of a particular file?

Say, if I wanted to make N copies of a.txt, and wanted them to be numbered a1.txt, a2.txt, a3.txt, etc... How would I do such a thing succinctly?

15 30 50 per page