35
votes
9answers
5k views

Which laptop is most compatible with Linux?

I've always been unlucky with regards to choosing a laptop that I can install Linux on. If it's not the wireless card that's not working out of the box, it's the video card. Also, I'm still not able ...
5
votes
4answers
6k views

Adding a line of text to multiple files

So, I have a bunch of files in a directory, and I need to insert a line of text into each of them. They have essentially the following format: <VirtualHost *:80> ServerAdmin ...
4
votes
1answer
2k views

multigateway routing for specific src port

I have two gateway to access internet, somehow I want to load balancing it, so far its working, but some connection or service need persistent gateway IP to be used, so the client should never change ...
7
votes
2answers
444 views

Stochastic version of seq for generating sequence of random numbers/words?

Some time ago I used a seq-like tool for printing a sequence of pseudo random generated numbers to stdout. You could specify a range, seed, and the number of samples and much more. I've just ...
3
votes
1answer
805 views

Multiple USB wireless devices?

I have a broadcom wireless card in my laptop and as far as I know, it acts as an USB device. I also have one USB stick wireless device (TL-WN422G - uses ath9k_htc driver) which I want to use at the ...
13
votes
5answers
259 views

Good website to link to for generic linux advocacy [closed]

I would like to have a link on website, both advertising the fact that I use (GNU/)linux, and pointing the curious reader to a source to learn more information. But I'm having trouble finding the ...
1
vote
3answers
512 views

Help with a find command

I have a bunch of directories. Inside these directories is a cover letter and a zip archive of work. I wanted to run a quick and easy query to open up all the cover letters so I can decide if it's ...
6
votes
2answers
271 views

Lock some accounts during some time periods

Is it possible to lock some accounts in order to be accessible only during specific time periods? For instance the account joe should only be accessible during office hours.
5
votes
4answers
226 views

is the behaviour of .* to include . and .. defined in LSB or POSIX or some other specification?

as title: is the behaviour of .* to include . and .. defined in LSB or POSIX or some other specification?
2
votes
1answer
395 views

Sometimes no sound in flash videos after boot?

Sometimes after I boot up the machine, I get no sound in flash videos. First I didn't know why it was happening, but as I read a few articles here and there, I found out it was because of my USB ...
2
votes
1answer
179 views

Which steps I have to follow to configure Ubuntu server with Mac and Windows workstations?

I've recently installed Ubuntu Server 10.04. I already have configured the basics and now I want to associate Windows and Mac OSX machines with the users created on Ubuntu so that when I login in one ...
21
votes
7answers
4k views

how to glob every hidden file except current and parent directory [duplicate]

I want to glob every hidden file and directory, but not the current (.) and parent directory (..). I am using bash. Observe current behaviour: $ ls -a . .. ...a ...aa ..a ..aa .a .aa .aaa ...
4
votes
1answer
366 views

How to add a feature to Vim if it's not compiled with that feature?

I am trying to use clewn (full gdb support in the vim editor), but the vim I have on my box doesn't have the netbeans_intg feature enabled. Is it possible to enable it without recompiling vim? I am ...
2
votes
2answers
3k views

libX11.so.6 Not found

I tried to make && make install package, but I get an error: libX11.so.6 not found Where can i get this lib?
5
votes
2answers
535 views

What are the user interface subsystems, their components and responsibilities?

I am trying to understand the different subsystems that are in charge of the user interface, the terminology to refer to them, and how they are structured; so far I know there are: At the top level: ...
8
votes
6answers
3k views

How to find information about the system/machine in Unix?

I have always found it difficult to find information about the system itself in Unix, whether it be Which OS I am using (version number and all, to compare it with the latest available builds)? ...
34
votes
10answers
15k views

Batch renaming files

I have a directory full of images: image0001.png image0002.png image0003.png ... And I would like a one-liner to rename them to (say). 0001.png 0002.png 0003.png ... How do I do this?
3
votes
3answers
186 views

Firewall change control

At the moment I'm using a Python script to generate iptables rules. Each set of changes gets committed to a git repository before deployment so there's a trace of who changed what and why. What ...
2
votes
1answer
92 views

Testing precedence of resolving addresses from commandline

There was such tool but I cannot remember its name. I needed to configure precedence of addresses by /etc/gai.conf. I finally managed to find an error, but for future, what's the name of tool which ...
4
votes
1answer
196 views

How can I make Ubuntu UI uniformly use bash keyboard shortcuts?

On my default 10.04 Ubuntu install I am consistently tripped up by the fact that some UI text areas/input boxes treat CtrlA as "select all" vs. "move my cursor to the beginning of the line." Is there ...
33
votes
9answers
51k views

How can I get a count of files in a directory using the command line?

I have a directory with a large number of files. I don't see a ls switch to provide the count. Is there some command line magic to get a count of files?
2
votes
1answer
502 views

How to update gnome keyring password?

Last weak I updated my password on my laptop. Then every time when I logged in, it would prompt for my old password to open the keyring for network manager. To fix this in a terminal I use rm ...
2
votes
4answers
143 views

SDK for Developer

Is there any SDK for developers under Linux? I mean more than man pages, it would be more like MSDN Library or Windows SDK under windows, where all documentation about programming and developer guide ...
5
votes
5answers
565 views

linux x.org alternative

We have so many options for window managers, shells, desktop environments, distros, and kernel architectures under Linux, but why after (maybe) 20 years do we only have X.org server (including its ...
6
votes
2answers
4k views

proxifier-like software on Unix?

Having some pleasant time with Proxifier, I just wonder if that kind of software is feasible under Unix/Linux? Is it easy to start a project like that, or are there existing projects available? Are ...
8
votes
4answers
11k views

grep — removing text after delimiter token

I have a file in which I need to eliminate everything after the first ; on every line. So a file like this: sdfsdsdf; fsdfsddf;sdfsd; Will result in this: sdfsdsdf fsdfsddf I have looked into ...
3
votes
4answers
248 views

How do you work with old servers?

I've recently fallen into doing more work on LAMP servers, which is pretty new to me. At first it wasn't a problem migrating my preference files, but as I've grown and learned more, my preferences ...
7
votes
2answers
26k views

su options - running command as another user

I was wondering how to run a command as another user from a script. I have the script's owner set as root. I also have the following command being run within the script to run the command as the ...
9
votes
5answers
12k views

Output the common lines (similarities) of two text files (the opposite of diff)?

Diff is a great tool to display the changes between two files. But how to display the similarities of two text files (while ignoring the differences)? I.e. sample input: a: Foo Bar X Hello World 42 ...
4
votes
2answers
450 views

Is a journaling filesystem a good idea with a dm-crypt encrypted drive?

I was looking at dm-crypt and have seen that you can use whatever filesystem you like on top of the encrypted drive. So I was wondering if a journaled filesystem is a good idea as opposed to a ...
2
votes
1answer
484 views

Is PXE in a 802.1x network for LTSP possible?

I have an LTSP server in a network that requires 802.1x authentication. Is it possible to boot the terminals through PXE without disabling the 802.1x authentication? If not, are there alternatives to ...
16
votes
11answers
4k views

Need advice in choosing a tiling WM

I've used GNOME's default window manager for some years, but now I want to try a tiling window manager. I want it to satisfy these two criteria: WM must be lightweight WM should not be complicated ...
11
votes
4answers
5k views

What directories do I need to back up?

What are the directories one should back up, in order to have a backup of all user-generated files? From a vanilla debian install, I can do enough apt to get the packages that I want. So if I don't ...
11
votes
4answers
21k views

How can I kill a particular thread of a process?

$ ps -e -T | grep myp | grep -v grep 797 797 ? 00:00:00 myp 797 798 ? 00:00:00 myp 797 799 ? 00:00:00 myp 797 800 ? 00:00:00 myp This shows the process ...
2
votes
8answers
899 views

Oldest Linux machine you still run [closed]

What is your oldest machine you ever installed Linux on and currently still run? What are the specs, kernel version or distro, and for what purpose?
3
votes
2answers
670 views

Block specific IP from accessing gateway

Suppose you are on linux internet gateway/router. What would you do to block a client with specific IP using bash script. I prefer something like ./block_client.sh 192.168.1.123 to block and ...
13
votes
11answers
1k views

Concern about logging in as root overrated?

For personal linux on my personal notebooks, I've usually set my environment to autologin as root even under X or lower runlevels. I've found my workflow is very pleasant and fast, without any ...
2
votes
8answers
3k views

How to give a normal user permission to change root password

Please do not ask why, but is it possible to do it? p/s: I know it's not a good thing, let's just say someone from the top management who is computer illiterate want some sort of control over the ...
76
votes
2answers
48k views

Getting 256 colors to work in tmux

I have 256 colors working just fine in konsole,. I thought I'd give tmux a try because, unlike screen, it seems to support vi mode. However I find that the colors of my prompt show up and this is ...
3
votes
3answers
902 views

Is there a way to make the prompt definition multiline?

This is my current prompt definition: PS1=$'%F{063}%1~%f %(1v.%F{099}%1v %f.)%F{063}%%%f ' RPROMPT='$VIMODE %m' and I'm working on integrating this. Basically I'm starting to find it very ...
6
votes
3answers
778 views

Running continuous jobs remotely

I'm new to Linux, and I'm probably asking a fairly basic question. How do I run a continuous program on Linux? Basically, I have a program that will continuously check for content on a website. This ...
5
votes
1answer
3k views

How to change font-size, number of rows / columns on a terminal

I am running a Linux server (without xwindows or any kind of GUI), with a modern 22" LCD monitor. Given the huge size of my monitor, I would like to increase the number of rows and columns on my ...
5
votes
5answers
447 views

Setting up a family server

I'm very new to Unix, but after having become comfortable with bash over the past year and after having played with Ubuntu recently, I've decided to make my next computer run Ubuntu, and I think my ...
2
votes
1answer
1k views

What encoding does my Konsole support?

How can I check what encoding (ASCII, UTF-8, UTF-16 etc) my Terminal uses? It shouldn't matter, but I am using Konsole on KDE3.5.
4
votes
2answers
2k views

How to interpret traceroute information?

For example in this pic taken from Wikipedia [Bigger Version] What are all these 12 server names that are listed? I know they are servers that are supposed to be the path that the network packet ...
18
votes
2answers
2k views

Display stuff below the prompt at a shell prompt?

Lets's say my prompt looks like this (the _ represents my cursor) ~ % _ Is there any way I could make it look like this ~ % _ [some status] The question was originally about zsh, but now has ...
3
votes
2answers
602 views

How can I apply caret-substitution to my nth-last command?

I regularly find myself having to execute a lengthy command on a file, then process the results with other commands. To process the next file, I usually rerun the same command by hitting the Up key ...
1
vote
2answers
8k views

Delete files in a directory that match a regexp, using a Mac terminal

How do I delete files in a directory that match a given regexp, or a similar solution, using a Mac terminal?
32
votes
7answers
22k views

Linux Kernel: Good beginners' tutorial [closed]

I'm interested in modifying the kernel internals, applying patches, handling device drivers and modules, for my own personal fun. Is there a comprehensive resource for kernel hacking, intended for ...
25
votes
7answers
46k views

Do we have an undo in Linux?

I renamed a few files in one batch script. Is there a way to undo the changes without having to rename them back? Does Linux provide some native way of undoing?

15 30 50 per page