10
votes
2answers
1k views

coreutils that are utf aware?

When I used cut today, I found out it doesn't treat a utf-8 character as a character, but 3 characters because it's 3 bytes long. This seems to be generally true for many tools. Are there versions ...
2
votes
1answer
1k views

Pinguy 11.04 wireless not working

I just installed Pinguy OS 11.04 (a derivative of Ubuntu) and I can't seem to get the wireless to work. I've tried everything on this question and a bunch of other stuff. I even reinstalled and that ...
1
vote
1answer
1k views

Movie player for “acps” format .mov video in Linux?

I have been send and asked to review a number of video clips that came with the .mov extension. The video clips open fine in Apple's Quicktime 7 and Quicktime X movie player. However, when I tried to ...
6
votes
1answer
1k views

How to set keyboard layout used to enter password on an encrypted filesystem?

After my upgrade to Debian 6 (Squeeze), the keyboard layout used to enter the password of encrypted filesystem has been changed. How can I revert it back to previous one? My understanding is that, ...
11
votes
7answers
42k views

How to list files without directories, and filter by name (ls options)

I have a directory called uploads. It contains a bunch of files, plus a few subdirectories which in turn contain files. Is there a way I can (in one step) do the following: List ONLY the files in ...
0
votes
3answers
252 views

Building from Source on CentOS 5 or newer

I've got a few applications of which I've got to build from source files in order to make it work on CentOS (the programs do not exist in the yum repos). I may be missing something, but unlike Debian ...
4
votes
1answer
2k views

Create Ubuntu USB-Installer from Debian

I have Debian Squeeze and want to create USB flash drive for install Ubuntu 11.04. I've already tried many ways: boot.img.gz + mini.iso at drive's root + syslinux = installer "couldn't found ...
3
votes
1answer
520 views

How to launch a GTK program centered on the screen?

I'm trying to launch xcalc from the command line, in my embedded Unix, and I would like it to start centered on the screen, is there a way? By the way, I'm using WindowMaker, if it makes any ...
1
vote
4answers
4k views

Libre Office change printer language type from PDF to Postscript

I have a problem printing from Libre Office (3.4.0 build 12). OS: Arch Linux, CUPS version 1.4.6 Printer: Description: Brother HL-2040 Location: Home Driver: Brother HL-2040 ...
2
votes
0answers
285 views

Debian 6: media keys in gnome-settings-daemon don't work

I am running a minimal Debian 6 x86_64 setup with pulseaudio, alsa and gnome-settings-daemon. Whenever I press a media key, gnome-settings-daemon spits the following out to stderr: ** ...
-1
votes
1answer
664 views

How to convert dante.conf (socksify) to tsocks.conf?

from dante.conf: route { from: 0.0.0.0/0 to: 10.132.165.95/16 via: 127.0.0.1 port = 1084 proxyprotocol: socks_v5 } How can I convert these rules to work under tsocks? Purpose: socksify ...
1
vote
1answer
505 views

How to protect my anonymity and authenticity in Irc?

I use irssi for playing multiplayer/programming game with random people. Some people take the game a bit too seriously so I want to protect my identity in it. I do not want that someone misuses my ...
4
votes
2answers
49k views

How do I add a user in SVN?

UPDATE #3: I think I found it. /etc/httpd/conf.d/subversion.conf <Location /repos> DAV svn SVNPath /var/www/svn/repos AuthType Basic AuthName "Subversion repos" ...
2
votes
1answer
1k views

Upgrade to Mozilla Firefox 5.0 using terminal on CentOS?

On the screenshot below is an icon squared in red. Clicking it will launch Mozilla Firefox 3.0.18. I want to upgrade Firefox to version 5.0 so that clicking the same icon should launch the new ...
4
votes
1answer
1k views

How to run streamripper and mplayer in a split-screen X terminal, via a single script

I want to run streamripper in its own X Terminal (window), then split the terminal horizontally, and then run mplayer in the lower half. This is simple enough to do manually, but getting a script to ...
2
votes
1answer
2k views

Time/Date grep for 15 mins

I need to grep a specific type of line in a specific time of the log, do you have any ideas? Here's my working script: cat *.log |grep -E '2011-06-30 (1[0-1]:[0-1][0-5]|10:16)'| grep -ach '0110 ...
4
votes
2answers
423 views

Difference between Linux Mint LXDE 11 RC(28 June) and Linux Mint 11 (released 28 May)

What is the difference between Linux Mint LXDE 11 RC(28 June) and Linux Mint Katya 11 (released 26 May)? The release notes seems exactly the same.
1
vote
1answer
195 views

What's the standard used by yum prompt “Is this ok [y/N]:”?

I can see that uppercase letter means default here. Is there a standard for this? I'd like to read the full standards.
2
votes
1answer
493 views

Preparing a Linux image in a virtual machine

I am trying to set up a system to prepare a Linux system on a virtual machine and then deploy it onto an SD card. The target system has an Atom processor, so there aren't architecture compatibility ...
2
votes
1answer
1k views

Bonding wireless and 3g on Fedora 15

I have access to the internet through either wireless or a 3G CDMA card. Is it possible to bond both connections and join the bandiwdth and have a failover?
4
votes
2answers
3k views

Can gdb debug suid root programs?

I wrote a program that calls setuid(0) and execve("/bin/bash",NULL,NULL). Then I did chown root:root a.out && chmod +s a.out When I execute ./a.out I get a root shell. However when I do gdb ...
7
votes
2answers
325 views

Can I get infected in this case if I run a live cd?

I recently got rid of a nasty trojan on Windows and want to migrate to Linux(Ubuntu). I want to run a Live CD so that I can format an SD card to put my brand new firmware on my router and format the ...
3
votes
2answers
1k views

How to find if hyperthreading is enabled on FreeBSD

Is it possible to find out if hyperthreading is enabled within the BSD kernel of a given machine without watching the boot up sequence?
4
votes
2answers
203 views

Why first set a variable and then export it instead of setting and exporting in one command?

If gpg-agent is executed, it outputs data that can be processed by a shell directly, e.g.: SSH_AUTH_SOCK=/tmp/ssh-apeOFqMF3292/agent.3292; export SSH_AUTH_SOCK; SSH_AGENT_PID=3293; export ...
2
votes
2answers
106 views

Drudging through email logs

I am in charge of maintaining a linux e-mail server running qmail on Red Hat Linux. Fairly often, I have to trace the path of some email through syslog and to be frank, this is rather tedious. ...
5
votes
3answers
2k views

What does the -e do in a bash shebang?

I have a bash script with the following: #!/bin/bash -e egrep "^username" /etc/passwd >/dev/null if[ $? -eq 0 ] then echo "doesn't exist" fi This script will not run without the -e. What ...
7
votes
3answers
8k views

How do I check busybox version (from busybox)?

I'm using busybox in a embedded system, and I would like to check its version. How do I check the busybox version from within busybox?
6
votes
1answer
1k views

Mplayer in fullscreen in xmonad

Is it possible to run mplayer in fullscreen in xmonad? When I use the -fullscreen switch or f command it does nothing.
2
votes
2answers
480 views

Run ssh as a command of another ssh command

I want to run a program on a machine that I have ssh access to from a gateway machine that I can access with ssh too. When I want to run an mpi program on the target machine T, I access to the ...
1
vote
2answers
1k views

Can I install Paint.Net on linux using mono?

I tried downloading and running the Paint.NET installer under mono and got: Cannot open assembly 'Paint.NET.3.5.8.Install.exe': File does not contain a valid CIL image. Can this be installed ...
6
votes
3answers
3k views

how to execute lines coming from a grep result?

I've got a text file with certain installation instructions, and I know I can grep for a unique occurrence in the file. For example, the text file has something like: MYDIR=`find /home/user -name ...
6
votes
2answers
4k views

Howto create a permanent client connection with netcat?

I'm writing a bash script that constantly read a folder in a loop to send data to a server at a defined time interval. I'm using netcat as the tool to connect to the server and send the data. My ...
5
votes
2answers
5k views

iptables port-mirroring

I need to be able to get a copy of packets received on port 8001 to port 8002. I have tried the following but I get an error that --tee is undefined. sudo iptables -t nat -A PREROUTING -p TCP -s ...
1
vote
1answer
1k views

remove carriage return character from large binary file

I have a large binary file ( nearly binary file ! ) which has many \r\n in it [ gets Generated in windows env and doesnt have controle over generating application ]. I want to remove \r from this ...
8
votes
5answers
2k views

How to dump a man page?

How can I 'cat' a man page like I would 'cat' a file to get just a dump of the contents?
11
votes
2answers
12k views

How to use keyboard instead of mouse middle-click for copy/paste? [duplicate]

Possible Duplicate: Pasting X selection (not clipboard contents) with keyboard Is there a shortcut for copy-paste under X? I'd like to use the keyboard for pasting.
2
votes
2answers
304 views

Software (SciTe) runs differently when opened from Terminal Vs GUI

When I open SciTe from the terminal everything works fine. When I open it via Ubuntu 10.04 GUI drop down boxes I get this error every time I try to run a ruby program: sh: ruby: not found At this ...
0
votes
1answer
295 views

which and find not working to locate ruby.exe path

From the home directory which ruby.exe & find ruby.exe return "no such file or directory" However, I'm able to execute .rb programs in rubymine.
3
votes
1answer
459 views

Writing a bash script for apache conf files

I'm trying to automate creating vhosts on my computer. This is merely a learning experience for bash scripting. I'm currently novice. I'm trying to learn more about awk, sed. No, this isn't homework. ...
7
votes
3answers
745 views

How to prevent user from changing files using linux permission

Is it possible, using linux permission scheme, to allow users create files but not edit or delete them at a later time? I mean, we have a delivery folder where users put artifacts there and we do not ...
4
votes
1answer
781 views

Choppy animations in desktop using fglrx driver in openSUSE 11.4

I downloaded and installed the ATI driver, but my desktop effects were not working. Moving windows creates choppy animations. I changed the rendering backend in kwin from openGL to xrender and the ...
3
votes
3answers
3k views

Pass the background flag (&) through expect and ssh

My command line/bash fu is extremely weak, but I'm trying to hone my abilities. Hopefully someone can help. I wrote a super simple expect script so that I can SSH in to a headless box we're using at ...
6
votes
1answer
491 views

How can I get irssi-proxy to send me missed mentions when I connect?

I have an irssi session running in my VPS. I connect to it via irssi-proxy using Xchat on my laptop or Andchat on my Android phone. Is there any way I can make it send all messages containing my nick ...
3
votes
1answer
406 views

can't view images stored on mounted network drive on linux webserver

I have a network drive mounted at /home/lv_admin/uslonsnas001 where I have stored images. The mount point and all sub folders have rwx mod 775 privileges. My PHP script moves the images to this ...
8
votes
5answers
658 views

IO redirection and the head command

I was trying to quickly edit an .hgignore file from the Cygwin bash shell today, and I added a line that was a mistake. I'm not sure if this was the best way to do it, but I quickly thought of using ...
3
votes
0answers
131 views

How can I prevent Control+Alt+D from logging me out (of Gnome 2.22 on Debian 5)?

I was using Emacs, and typed Control+Alt+D in order to run Emacs' "down-list" command. I was dismayed to see, however, that I was instantly logged out; I assume this is some Gnome keyboard shortcut. ...
5
votes
2answers
470 views

Run mpirun and ssh-add remotely on the same session

I am developing a program that is running on multiple machines using MPI. I have machines on Amazon EC2 where I can start mpirun from one of them (the master). Everything works as I expect if I ssh ...
3
votes
2answers
3k views

How to fake the source-port of a TCP packet?

Is there an easy way (or is it possible at all) to rewrite a TCP packet as it leaves the machine? For example if I run telnet binfalse.de 22 it will search for an unused port to leave the machine. ...
2
votes
1answer
2k views

Disable Address space layout randomization (ASLR) for my processes

I want to run some programs in Linux where I want to disable Address Space Layout Randomization (ASLR). I know to disable it at system level, which is by setting /proc/sys/kernel/randomize_va_space to ...
3
votes
1answer
3k views

copy+paste between linux desktop and vmware player?

How can I copy+paste text between my linux desktop (GNOME Ubuntu 11.04) and the open vmplayer window running an ubuntu 64bit server terminal?

15 30 50 per page