4
votes
2answers
1k views

Parsing XML from a shell script

I have a datafile like this: <Key name="com.ahsay.afc.cpf.UserGroup" content="" allowMultiple="Y"> <Value name="rsv-id" inheritParentAttribute="Y" type="string" data="1328200856753" ...
10
votes
4answers
9k views

find -exec in bash script with variable expansion

I'm trying to run a command similar to the one below in a bash script. It should search through all subfolders of $sourcedir and copy all files of a certain type to the root level of $targetdir. ...
2
votes
2answers
2k views

Block Internet Access for 1 User [duplicate]

Possible Duplicate: How to restrict internet access for a particular user on the lan using iptables in Linux I have 4 accounts on my computer (I have root access). I want to block off ALL ...
6
votes
4answers
8k views

How do I create web pages in my home directory and have the web server serve them in my web browser?

I have recently installed the Apache web browser in my Debian Squeeze (using command tasksel and selecting [ ] Web server). Now I get it to start via sudo /etc/init.d/apache2 start and then I go to my ...
6
votes
1answer
2k views

EFI boot to Linux on a MacBook Pro

8,3 MacBook Pro 2011, running Ubuntu 11.10 amd64. Here's the situation. Screen backlight and a few other things only work if booting in EFI, so I need to boot Ubuntu in EFI to get things working. ...
9
votes
2answers
913 views

What is the point of ls -f (or, why is this hanging?)

I've got a directory with about 100,000 files in it. ls -f hangs for over a minute. I ran strace, and immediately started seeing getdents, so ls is clearly reading the directory. I also see a lot ...
3
votes
1answer
210 views

Configuring Touchpad/Trackball for X

I have just installed my gentoo with X11/Gnome. It works fine with the USB-Mouse, but neither the touchpad nor the trackpoint works. The docs I found seemed to be outdated and were not mentioning the ...
1
vote
0answers
2k views

GRUB2 and EFI - File not found?

I'm running Linux on a 8,3 2011 MacBook Pro. It uses EFI/rEFIt to boot. I was able to install GRUB2 EFI support, and it shows up just fine in the rEFIt boot menu. Everything seems to be working ...
8
votes
1answer
1k views

gvim -p limit of opened tabs?

When I run : gvim -p *.xyz I find that not all files are opened in tabs. It feels, like a kind of tab limit? But ! When I try to open unopened with : :tabnew it is opened next to previous ...
2
votes
0answers
969 views

Using Image Magick Convert to Change Channel Depth?

I want to change an image depth of bitmap for testing purposes. Right now I am trying to get a 2 bit palette image, and a 4444 Hicolor image. I have a true color bitmap. I used the below command ...
2
votes
1answer
2k views

Gtk2 Themes under Gentoo's Gnome 3

I have made it to get a nice gnome shell environment running under my new gentoo. It's all fine, except there are a whole bunch of programs built against gtk2 (Chromium, Pidgin, Thunderbird, Firefox), ...
1
vote
3answers
459 views

antispam techniques in postfix on linux

We have an issue of incoming spam on the server hosting several domains. Its running postfix on CentOS 5.x. Please suggest the techniques that can be enabled on the server to prevent incoming spam.
0
votes
3answers
233 views

help with script; if status is this do that if not do something else

I need to write a script that checks on the status of something. If the status "Copying" then exit (or retry in 60 minutes if we want to get fancy.) If all there is nothing returned (based on my ...
2
votes
1answer
432 views

How to do dosbox autoexecutable like dosemu on Opensuse

I was trying to migrate an DOS aplication on a dos emulator, I was pretty sure that dosemu was the answer ... but a couple of errors ocurred on the program. So I tryied dosbox. The thing is, under ...
2
votes
4answers
378 views

How to make Firefox 9 read stdin?

An earlier question got several nice answers involving stdin, none of which work in Firefox 9.0.1 (Edit: because I didn't read that you had to start a new Firefox process to make them work (thanks ...
1
vote
2answers
364 views

Match neither regex

I have a Bash script which installs a customised JBoss. The name of the JBoss instance is checked against a regular expression to make sure that the name is valid: if [[ ! $1 =~ $instanceNameRegex ...
1
vote
1answer
61 views

Highlight Files in X and get some function executed, how?

Suppose I want to execute pdftk input FilesHighlightedInX out specifiedByUserInX in the following way: User highlights files in X User clicks some button, shortcut, right-mouse-button-select, to ...
2
votes
1answer
487 views

How to create a book signature from text?

How can you transform a text file (plain text or HTML) or print-format file (PS or PDF) to bind it as a book using shell commands? That is, how do you create a print-format file which orders pages ...
6
votes
2answers
26k views

mount error “is not a block device”

I am trying to make olddir accessible from newdir with the mount command: mount olddir newdir Why do I get the following error? mount: olddir is not a block device
3
votes
1answer
308 views

Can I copy text from one file by shell?

Can I copy text to the clipboard from one file by shell? and I want to paste it to Browser later.
6
votes
2answers
942 views

How to develop a small linux distro?

Since Linux uses open-source packages, I was wondering if I could develop my own Linux distro by compiling these packages. I tried to read the Linux From Scratch book but it's quite big and uses lots ...
0
votes
1answer
2k views

Execute command for x seconds? [duplicate]

Possible Duplicate: Run a command for a specified time and then abort if time exceeds Is there a command which allows me to execute another command for at most x seconds? Imagined example: ...
1
vote
1answer
3k views

What's the difference between 'no caching page mode present' and 'assuming drive cache. write through.'

Post-POST, post-BIOS screen, post-GRUB; when I boot Debian with a SD card or USB stick plugged in, one of the first things to pop up on the screen (so quickly that usually I don't even notice) looks a ...
1
vote
2answers
4k views

Can't start mysqld

I've installed mysql through $ sudo apt-get install mysql-server-core-5.1 $ sudo apt-get install mysql-client-core-5.1 This is my current conf file And the service won't start, at first the ...
5
votes
3answers
9k views

Setting headers using the /bin/mail command

I have a bash script that I use with nagios that sends notifications by email. The key part of it looks like this: # $1 (FROM) | $2 (TO) | $3 (SUBJECT) | $4 (BODY) /usr/bin/printf "%b" "$4" | ...
8
votes
2answers
598 views

Any relatively new binary distro causes kernel panics

I'm having trouble using any relatively new binary distro on this machine. The last binary distro to work without issue was Ubuntu 8.04. I'm currently using Gentoo with the latest 3.2.1 kernel and ...
1
vote
2answers
382 views

Apache server doesn't start when mod_sm.so is loaded

I have an Apache 1.3 on a Sun machine (SunOS 5.10 Generic_138888-01 sun4u sparc SUNW,Sun-Fire-15000). If I keep the following two lines in httpd.conf, the server will not start: LoadModule sm_module ...
3
votes
1answer
1k views

git grep colors differ from grep custom colors

I've setup grep colors in my ~/.bashrc : export GREP_COLORS='ms=01;34:mc=01;34:sl=:cx=:fn=35:ln=32:bn=32:se=36' They work for grep --color=auto grep --color=always Unfortunately, those custom ...
5
votes
5answers
675 views

I messed up my zshrc on a remote server and now I can't run any commands!

On a remote machine I changed my zsh settings and it is now broken, for every keypress it says: "url-quote-magic:1: url-quote-magic: function definition file not found " I don't have another ...
3
votes
3answers
1k views

Trying to update php on CentOS 5.7

Apologies in advance - I'm not a good Linux user by any stretch of the imagination. I have a CentOS 5.7 dedicated server on which I host a few websites. I currently have php 5.2.10 installed, but ...
12
votes
4answers
2k views

Why do we need a firewall if no programs are running on your ports?

When I try to telnet to a port on a server, and if there is no program listening on that port telnet dies with a "Unable to connect ... " error. I understand that. But, why do we need a firewall if ...
11
votes
3answers
4k views

Why does Linux heat up my computer?

I have been using Linux on my Acer 5740 for a couple of years now. Lately, I noticed that my computer starts heating up and steadies at around 70 degrees. If I fire up Eclipse or ffmpeg or something, ...
3
votes
7answers
19k views

Black screen at boot with Mint and Ubuntu live CDs

I just bought an HP pavillion g6 laptop, with the hope of installing Linux on it. I have now tried both Linux Mint (my first choice) and Ubuntu, and both simply give me a black screen from the moment ...
9
votes
1answer
7k views

What's the {} in find /path/ -exec command '{}' do?

I'm curious as to what the {} in the following command is actually for? Example Command: find /foo/ -name "*.txt" -exec rm -v {} \; The Man page provided a small blurb but it confused me a little ...
2
votes
2answers
1k views

Per Socket network Buffer queues utilization

Is there a way to get a per-socket send and receive Queues utilization on Solaris similar to the way that Linux' netstat displays it? Example on Linux: Proto Recv-Q Send-Q Local Address ...
3
votes
1answer
1k views

How do I add a local user to a box that uses LDAP authenticaiton?

I'm working with a box that uses LDAP for user authentication. However, I need to add a local user to run some services and I don't want non-person users junking up the LDAP directory. Does anyone ...
3
votes
2answers
1k views

How to check and block processes connecting to internet directly?

Is there a way to find which processes in my system are getting connected to net automatically. Is there a way to select and block net access of some processes permanently? I use mint 11. I use a USB ...
3
votes
1answer
986 views

24 hour crash course in ZFS… some final questions

Due to various circumstances I've given myself a crash course on the ZFS file sytem. I need some help getting comfortable with the unknowns. Whatever those are. Data: Running www.zfsonlinux.org on ...
1
vote
2answers
533 views

Autodetect modem in Linux?

Is there a way to autodetect modem devices in Linux and then symlink them to /dev/modem using a udev rule? Currently, I wrote a program that probes each serial port, sending AT and waiting for OK. I ...
4
votes
3answers
10k views

vsftpd does not list content of a directory

I have set up a FTP server using vsftpd and enabled anonymous upload and download. The problem I have is that when I upload a directory it will be uploaded successfully (I can see it in server), but ...
2
votes
1answer
714 views

Software installation with GUI package installer using sudo permission

I have the sudo permission, and I can install any software using the CLI. But I want to know that whether sudo works with package installers in GUI mode. For example I have a .chm file and I want to ...
7
votes
3answers
668 views

Is it possible to execute scripts in BIND based on lookup

Is it possible, to set up BIND as DNS server on my local network, and make execute scripts when it gets a lookup? I would like to execute a Python or Bash script, based on the incoming DNS lookup, ...
3
votes
1answer
2k views

With Synaptics “clickpad,” AreaBottomEdge prevents right-clicking

I have a new Sony Vaio Z with what I believe they're calling a "Clickpad". That is, it's a touchpad with a single physical button beneath, and the detected location of the click is used, in software, ...
8
votes
5answers
2k views

Is there an equivalent to Arch Linux's NETCFG for Debian?

I have installed Debian Squeeze (minimal -- no DE) and I would like to connect to my network (via wireless) via command line. I have used Arch Linux before and I really liked the simplicity of netcfg ...
5
votes
1answer
4k views

mv file without write permission to the source file

I just realised that I can move a file that I do not own and don't have write permissions on. I have write permissions to the directory, so I am guessing that is why I could move it, but in this ...
2
votes
1answer
804 views

Is there a config file for telnet that's similar to .ssh/config?

I constantly need to type some hostnames / IPs to telnet, and sadly they don't support ssh. Is there a config file for telnet similar to ssh? I don't have admin access to change the /etc/hosts file. ...
2
votes
2answers
3k views

Undefined reference to symbol 'acs_map' when running makeconfig

I get a linker error when I try to configure the Linux kernel with menuconfig: # make menuconfig HOSTLD scripts/kconfig/mconf /usr/local/bin/ld: scripts/kconfig/lxdialog/checklist.o: undefined ...
1
vote
2answers
196 views

Having xwin start by default on system boot

My system boots into a console, from which I can launch my gnome desktop by issuing the command startx. How can X be instructed to start by default upon boot? The commands /etc/init.d/gdm3 start and ...
3
votes
1answer
2k views

What's the difference between a screen being attached and detached?

[blah]$ screen -ls There are screens on: 16517.pts-0.blah (01/28/2012 01:55:32 PM) (Detached) 4345.pts-1.blah (01/27/2012 11:22:48 AM) (Attached) 2 Sockets in ...
0
votes
2answers
739 views

Vi for Cygwin syntax

How can I make vi in Cygwin highlight the syntax when I open a file by default? I know that I can type in the command "syntax on" but I would prefer to not do this all the time.

15 30 50 per page