All Questions

Filter by
Sorted by
Tagged with
16
votes
10answers
2k 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
7k 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 ...
174
votes
6answers
152k 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
1k 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 unreadable....
6
votes
3answers
1k 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 ...
9
votes
1answer
7k views

How to change font-size, number of rows / columns in the console

I'm running a Linux server without X11 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 in my console, how ...
5
votes
5answers
724 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 ...
1
vote
2answers
3k 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.
5
votes
2answers
9k 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 had ...
21
votes
2answers
3k 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
909 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 ...
3
votes
2answers
15k 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?
52
votes
7answers
41k 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 ...
51
votes
8answers
179k 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?
6
votes
2answers
1k views

zsh: trouble batch-renaming files with zmv

I'm trying to mass rename the files from one extension to another (background: use haml instead of erb in my rails app). I get following output when issuing rename command: % zmv '**/*.erb' $1.haml ...
13
votes
4answers
752 views

Books/Guides for Securing a Server [closed]

I have a website idea I want to build and launch, and I'm thinking of getting a small VPS to host it (I like Linode for their price, and they seem to be widely recommended). I'm pretty broke so I can'...
371
votes
15answers
302k views

What are the pros and cons of Vim and Emacs?

How would you compare these editors? What are the pros and cons of each? [note] This is not meant to be answered by those who "hate one and love another" or those who haven't used both.
62
votes
6answers
8k views

What features are in zsh and missing from bash, or vice versa?

As a Linux user, I've always just used bash because it was the default on every distro I used. People using other Unix systems such as BSD seem to use other shells far more frequently. In the ...
4
votes
3answers
3k views

OpenSuse custom keyboard shortcuts not working

Note: This question is specifically on a clean install of OpenSuse 11.3 with gnome as the display/desktop manager I can't get custom keyboard shortcuts to work, default shortcuts are working properly,...
6
votes
2answers
5k views

How to associate the Fedora Start menu with the Windows keyboard?

I would like to associate the Start menu with the Windows key on the keyboard?
28
votes
7answers
75k views

Which shell should I use - tcsh vs bash? [closed]

I have been using tcsh for a long time now. But whenever I am searching for something, I often find that the methods specified are bash specific. Even the syntax for the shell scripts is different for ...
11
votes
2answers
639 views

Is is possible to use KDE as well as Gnome on a machine?

Is it possible to install KDE and Gnome on your machine (using Fedora) in such a way that when you boot, you can specify whether you want to use KDE or Gnome. Even better would be if you can switch ...
5
votes
1answer
5k views

What commands can I use to enable / disable Apache2 modules?

What are the terminal commands used to enable and disable Apache2 modules? Update: Since the commands appear to differ based on distribution, I have made this question a community wiki where ...
32
votes
1answer
41k views

How to verify if hardware acceleration is enabled?

How can I verify whether hardware acceleration is available and whether it is enabled for my video card.
4
votes
3answers
20k views

How to Fix Choppy Video Playback in Ubuntu?

On Ubuntu 10.04 I experience choppy video playback. I am running Mplayer and have an Nvidia GeForce 9800 GTX+ video card. I have already installed the libvdpau1 library. I don't know if hardware ...
6
votes
1answer
2k views

Automatically mount network drive when available

I have a NAT drive, that is accessible via SMB. I have an entry in fstab to mount it at boot. But if the drive is not switched on it is not mounted during boot and I have to manually mount later. (The ...
17
votes
3answers
14k views

How does keyboard mapping work in Linux? [duplicate]

I have always had trouble with understanding the way keyboard mapping and related things are put together in Linux. When things break, it makes my blood boil if I have to sift through endless ...
3
votes
1answer
1k views

How do I prevent gnome to mount my usb device when I'm using KDE?

in KDE, when I plug a USB storage device, I see a nautilus window automatically open, and I'm obliged to use nautilus if I want to umount it properly Dolphin gives the following error: org....
10
votes
4answers
207 views

Where to search for more info if I don't have Internet?

For example, I was reading setuid man page today. It says: If the effective UID of the caller is root, the real UID and saved set-user-ID are also set. I don't know what set-user-ID is. How can I ...
16
votes
3answers
14k views

Full disk encryption with password-less authentication in Linux

I have a fairly standard disk encryption setup in Debian 5.0.5: unencrypted /boot partition, and encrypted sdaX_crypt that contains all other partitions. Now, this is a headless server installation ...
7
votes
1answer
519 views

Linux kernel 2.6 on ARM

I have compiled and installed the 2.6 kernel on an ARM board. I am using the ARM mini2440 board. I would like to know if there is already a way to access the General Purpose I/O port pins? Or will ...
58
votes
7answers
82k views

How can I get a formatted date for a UNIX timestamp from the command line

I have a UNIX timestamp and I'd like to get a formatted date (like the output of date) corresponding to that timestamp. My attempts so far: $ date +%s 1282367908 $ date -d 1282367908 date: invalid ...
6
votes
2answers
418 views

What files in /var need to have specific owners?

I accidentally wreaked unknown amounts of havoc on my web server by running sudo chown -R myuser:mygroup * .* in /var/www, not remembering that .* would include the parent directory (as ..). I ...
4
votes
3answers
1k views

How do major package managers differ?

It appears that the major package managers are (in no particular order) apt, yum, and pacman. But when it comes down to it, what is the difference? My understanding is that you can use any of them on ...
10
votes
1answer
326 views

What are you going to do with your OpenSolaris machines?

I have a file server running OpenSolaris (mainly for ZFS, which I really love), but since Oracle has abandoned it, I'm starting to think about what I'm going to do with the OS on that machine. ...
72
votes
4answers
39k views

Can't pipe into diff?

I wanted to be clever and compare a remote file to a local file without first manually downloading it. I can get the contents of the remote file by ssh user@remote-host "cat path/file.name" However,...
4
votes
3answers
420 views

Persist clipboard contents in vi

If I want to copy text from a file in vi to another file, I have to highlight the text, Control-Shift-C it, quit the first file, open the second, and then paste it via Control-Shift-V. It feels like ...
6
votes
2answers
2k views

Number of running processes show in top

The usual maximum number that I have seen in the "running" field displayed in top(1) is the number of logical CPUs installed in the system. However, I have observed that under Ubuntu 10.04 (not ...
100
votes
13answers
30k views

What is the benefit of compiling your own linux kernel?

What benefit could I see by compiling a Linux kernel myself? Is there some efficiency you could create by customizing it to your hardware?
15
votes
2answers
6k views

Is there a way to intercept interprocess communication in Unix/Linux?

For intercepting/analyzing network traffic, we have a utility called Wireshark. Do we have a similar utility for intercepting all the interprocess communication between any two processes in Unix/...
95
votes
9answers
347k views

Is there a way to see details of all the threads that a process has in Linux?

For Windows, I think Process Explorer shows you all the threads under a process. Is there a similar command line utility for Linux that can show me details about all the threads a particular process ...
22
votes
9answers
42k views

Ensure a process is always running

I started hosting sites a while back using Cherokee. For external sources (FastCGI, etc) it has an option to launch the process if it can't find one running on the designated socket or port. This is ...
15
votes
3answers
2k views

Can I limit a user (and their apps) to one network interface?

I've actually got two scenarios to apply this: Multiseat Desktop: two network connections both with internet gateways and two accounts doing bandwidth-intensive tasks on each. I want to split them up ...
4
votes
3answers
679 views

Something like pwgen-win for linux?

Is there some kind of pwd generator for Linux that has a nice GUI and options like this one for Windows? I know that there is pwgen, but as far as I know it does not support mouse/keyboard entropy and ...
11
votes
2answers
4k views

the slash (/) after a directory name on shell commands

I have a little question here. If I have two files, say filea and fileb, mv filea fileb would delete fileb rename filea to fileb Then if I have two directories, say dira and dirb, mv dira dirb ...
8
votes
4answers
4k views

How to best encrypt and decrypt a directory via the command line or script?

I have a directory of text files under bazaar version control and keep a copy (a branch, actually) on each of my machines. I want to encrypt and unencrypt the directory via the command line. Ideally, ...
7
votes
2answers
10k views

How do I add PC BSD / FreeBSD to Grub 2 boot loader?

I have Ubuntu 10.04 installed as my primary operating system, and I installed PC BSD in a different partition: /dev/sda4 without installing it's boot loader. I figured out that I need to edit /etc/...
2
votes
1answer
278 views

How can I figure out why gnome-panel is frequently misbehaving?

On my system (Debian Lenny AMD64), gnome-panel seems to act up now and again. I've not found a way to force it to happen, but it seems to be related to launching processes. Basically, I launch some ...
16
votes
4answers
1k views

Linux adoption path for a .NET developer [closed]

I am a .NET C# programmer, I love the .NET stack. I have tried Linux several times but every time I got put off as I could not do anything on it .. (like program for it or on it). Ever since Mono was ...
2
votes
3answers
518 views

Weekly cron job to save list of installed packages

I am having trouble figuring out how to set up my first cron job. I simply want to run this command once every week: dpkg -l > ~/Dropbox/installed_packages My /etc/crontab file contains the line ...

15 30 50 per page