6
votes
3answers
1k views

bash PS1 setup

I'm trying to make PS1 configured as follows. Green="\[\e[32;1m\]" Red="\e[0;31m" Purple="\e[0;35m" STARTCOLOR="\[\e[40m\]" ENDCOLOR="\[\e[0m\]" export PS1="$STARTCOLOR$Green\u@$Purple\h ...
3
votes
2answers
736 views

Debian Lenny: Want Splashy to start directly after Grub2

I'm running a GNU/Linux Debian Lenny with an 2.6.26-2-686 kernel. I installed splashy for a bootsplash an updated grub to version 2. Now I want splashy to start directly after the user has selected a ...
5
votes
2answers
470 views

Why is 8 numbers considered a “strong” password?

Just curious as to why 8 numbers are accepted as a password in linux (CentOS if it matters) and not 8 characters on a non-dictionary word. It's 10 vs 26 per digit after all. (52 counting CaSe ...
5
votes
1answer
550 views

Anyone know the meaning of yy?

Since history questions are considered on topic, I figured I'd ask one that's been bugging me for quite some time and no one I know seems to know the answer. Does anyone know what the historical ...
9
votes
2answers
3k views

When do su and sudo use different passwords?

I am able to run anything using sudo; my password is accepted. But whenever I try to do su from a shell, it fails with: su: incorrect password What can the problem be?
17
votes
5answers
2k views

Does installing and using Wine open up your Linux platform to windows virus'?

Just wondering if installing wine might open up a fairly solid linux desktop to the world of windows virus'. Any confirmed reports about that? Would you then install a windows antivirus product ...
5
votes
4answers
1k views

alternatives to wine

Is there some alternative to Wine ( the windows "emulator" ) which is more stable and more likely to work with my Windows games?
3
votes
1answer
144 views

How do I find where a port is?

If I want to find out which directory under /usr/ports contains a port like "gnome-terminal", how can I do that? Is there an easy command? At the moment I use things like echo */gnome-terminal ...
2
votes
1answer
902 views

linux static compilation issue

I am building testdisk as static and when i run make static i am getting the following error /usr/bin/ld: cannot find -luuid collect2: ld returned 1 exit status what's the problem? ...
4
votes
3answers
277 views

What call before a fork?

A long while ago I went to a job interview with a thoroughly weird company in London who claimed to be expert Unix consultants. Anyway these people were complete nutters and not surprisingly the ...
15
votes
3answers
5k views

How to fix Ctrl + arrows in Vim?

I am using Putty -> Suse box -> vim 7.2 combo for editing and want to remap Ctrl + arrows combo to a particular task. But for some reason, Vim ignores the shortcut and goes into insert mode and ...
5
votes
5answers
786 views

Bootstrapping a DSL installation onto a machine with no BIOS boot support

I have a vintage 2001 laptop (Vaio R505) which is very hardware limited. Fortunately there is much that works, but I can't figure how to make it work better. The two biggest constraints are 256MB RAM ...
7
votes
2answers
2k views

How can I set up Cygwin to automatically update and download without the GUI?

How can I set up Cygwin to automatically update itself? How can I get Cygwin to download a package without having to go via the GUI thing?
5
votes
4answers
1k views

recursively chmod

I was trying to chmod folders and files with: find . -type d -exec chmod 755 {} \; find . -type f -exec chmod 644 {} \; But I was wondering: How to do it in one line using find and excluding the ...
6
votes
1answer
3k views

How can i know which unistd.h file is loaded?

I have several unistd.h files in my Ubuntu Linux. I've one on: /usr/include/asm/unistd.h This file has this directives: # ifdef __i386__ # include "unistd_32.h" # else # include "unistd_64.h" # ...
3
votes
2answers
921 views

Capture multi-line output of a bash builtin

Normally, bash is able to assign multi-line output of a command: L=`ls` This works from both interactive shell and scripts. But it appears the output of a builtin can't be captured in a variable: ...
5
votes
3answers
1k views

Linux-compatible 56k modem

I have a client who wants to set up a fax server in their office. I'd like to use HylaFAX under Ubuntu, but I'm a little shy to spend money on hardware for Linux, particularly a modem given the whole ...
10
votes
2answers
2k views

games directory?

On a standard filesystem, we have: /usr/games /usr/lib/games /usr/local/games /usr/share/games /var/games /var/lib/games Is this a joke, or is there some history behind this? What is it for? Why do ...
4
votes
4answers
2k views

Connecting to a network via another pc

What's a simplistic recipe to connect my PC to my WLAN through my laptop? I have one wireless network, one desktop that (for practical reasons) has no connection to the WLAN, and one laptop with ...
6
votes
2answers
1k views

Invoke Syscalls from Java

Is there a way to invoke syscalls directly from Java, or is it necessary to first call a native method?
2
votes
2answers
4k views

using cross-compiled Valgrind

I have downloaded the sources from the Valgrind trunk and built it for using on an embedded Linux system(Montavista Linux) powered by an ARM926(ARMv5t architecture). Everything went well until I tried ...
6
votes
3answers
2k views

Why won't my xmodmap command run on startup/login?

I want to run this command every time I log in (or every time I start up, if that doesn't work): xmodmap -e 'keysym Delete = Menu' -e 'keysym Menu = Delete' I've tried many things. I put the command ...
1
vote
2answers
742 views

How to reduce ncurses terminfo size

I notice that ncurses's terminfo database on /usr/share/terminfo is about 7MB (I compiled it myself). This is too large if I want to deploy it on an embedded Linux of 64MB disk space. Is there a way ...
16
votes
4answers
19k views

How can I use ffmpeg to split MPEG video into 10 minute chunks?

There is often a need in the open source or active developer community to publish large video segments online. (Meet-up videos, campouts, tech talks...) Being that I am a developer and not a ...
6
votes
2answers
391 views

Defragging an ext partition?

Why don't ext2/3/4 need to be defragmented? Is there no fragmentation at all?
6
votes
1answer
625 views

Patching Linux kernel on-line (i.e. without rebooting)

Sorry - I don't remember the exact name. I know there is mechanism to patch the kernel at runtime by loading modules without need of the reboot as long as the structures involved are not affected. It ...
16
votes
3answers
808 views

What is a “kernel panic”?

What does it mean when your computer has a "kernel panic"? Does it equate to the windows BsoD? Also, what methods, tips, tricks are available to the user when a kernel panic strikes?
6
votes
2answers
492 views

Directory shortcuts in emacs buffer

So I asked this question about directory shortcuts in a shell. The idea is I'd like to be able to open a file in /home/Documents/foo, say, by typing C-x C-f ~foo/file. So, is there a way to emulate ...
2
votes
1answer
419 views

How can I suppress unneeded output from emacsclient?

I use emacs fairly regularly and am trying to configure my system to use emacsclient when possible. To do this I have done the following: In .bashrc: EDITOR='emacsclient -ca emacs' ...
6
votes
1answer
6k views

+ or @ mark after running 'ls -al'

In Mac OS X, run 'ls -al' gives me something like this. drwxrwxrwx+ 4 smcho staff 136 May 5 09:18 Public drwxr-xr-x+ 6 smcho staff 204 Feb 1 2010 Sites drwxrwxrwx 9 smcho staff ...
27
votes
5answers
8k views

Is there any option with 'ls' command that I see only the directories?

Sometimes, I need to check only the directories not files. Is there any option with the command ls? Or is there any utility for doing that? EDIT: I'm using Mac OS X, and ls -d gives me . even though ...
1
vote
1answer
3k views

How to change background color of side pane of Kate and Kile?

I am trying to customize the color scheme of Kile/Kate. I could do it, except I could not find any way to change the color of the side pane such as files, etc. I prefer dark background, and having ...
11
votes
4answers
5k views

How do I bind the tmux prefix to a Super?

I find even Ctrl+b to be very emacs like but I understand the point. I'm wondering if I could bind it to a single keypress of a key I don't other wise use? namely Super_L (also known as the left ...
7
votes
3answers
5k views

Redirect stdout over ssh

I would like to run something > file on a remote system through ssh, but if I run ssh host something > file the redirection is executed locally as ssh etc > file I've tried it with ' ...
7
votes
3answers
194 views

Setting up a unix powered network

I want to set up several computers on a LAN, all connecting to one unix server. The primary goal being that the user accounts should only exist on the server. So that any user could access his normal ...
7
votes
4answers
1k views

Keeping config files synced across multiple pc's

I have a few different linux machines and a lot of config files (and folders) on each. For example: ~/.ssh/config ~/.config/openbox/rc.xml ~/.config/openbox/autostart.sh ~/.scripts/ ( folder ) ...
4
votes
6answers
541 views

Attempts to unify Linux and other free Unix?

It's such a pain when you don't know what distribution to choose. It's such a waste of time and effort for developers to port stuff from one distribution to another. It makes Linux/Unix more ...
3
votes
2answers
780 views

Does the Linux PreemptRT patch benefit desktop users?

Does the PREEMPT_RT patch (real-time kernel) have any benefit for regular desktop users?
4
votes
2answers
966 views

dash compatibility to bash

Wikipedia says that dash executes faster than bash. My question is, if I set /bin/sh to dash, will all scripts that use /bin/sh in their shebang line that was intended for bash work under dash?
9
votes
5answers
3k views

Benefit of kernel module compiled inside kernel?

What's the benefit of compiling kernel modules into the kernel (instead of as loadable modules)?
2
votes
1answer
312 views

Kernel memory allocator patch

Is there any patch for Linux kernel to use different memory allocators, such as ned allocator or TLSF allocator?
10
votes
6answers
6k views

Compiling GNU/Linux with -O3 optimization

It's said that compiling GNU tools and Linux kernel with -O3 gcc optimization option will produce weird and funky bugs. Is it true? Has anyone tried it or is it just a hoax?
20
votes
4answers
5k views

Can I launch a graphical program on another user's desktop as root?

Following are other questions which I think I need to know: From a non X Session? (meaning root isn't logged into X) If multiple people were logged in on X, could I auto-detect who was on which ...
5
votes
2answers
752 views

Good tutorial for setting up a KVM/Xen box and advice on which would be better

I've got a dual xeon, 2GB, 75GB hd server that I'd like to turn into my dedicated virtual environment. Currently I'm using VirtualBox locally to run a mock cluster for Cassandra and Nginx/Haproxy, ...
5
votes
2answers
559 views

modify path globally

Is there a standard for $PATH and the order of things that are supposed to be in there? out of the box Arch Linux doesn't have /usr/local/bin in the $PATH. I want to add it but I'm not sure if there's ...
13
votes
2answers
6k views

Break a large file into smaller pieces

How do I break a large, +4GB file into smaller files of about 500MB each. And how do I re-assemble them again to get the original file?
9
votes
2answers
394 views

Screen doesn't always shut off on its own

It seems like when I have certain web pages focused, my screensaver will kick in, but the screen won't turn itself off. Does anyone have any ideas why this might be? Is there a way to disable whatever ...
2
votes
1answer
2k views

Can't reach DNS through wireless router

I've got a Ubuntu 10.04 laptop, and recently it's had some odd networking problems. It's on the home wireless router, supplied by the phone company, and has no problem talking to anything on the ...
2
votes
3answers
920 views

Editing grub menu

I'd like to edit the Grub menu that comes up, to move one line and remove others. I have an Inspiron 1420 that came with Ubuntu 7.10. When it needed a new drive, I installed Windows 7, the original ...
0
votes
1answer
412 views

Vlc Media Problem in Fedora!

I am using Fedora 13 and my VLC media player is showing this problem for the past one week. How do i rectify this error. Summary: SELinux is preventing /usr/bin/vlc from loading ...

15 30 50 per page