4
votes
2answers
666 views

How can I see dumps of wholе HTTP packets?

I need to see whole HTTP packets sent and recieved by an application for debugging purposes. How can this be done in command-line?
2
votes
1answer
446 views

Removing the [ OK ] From start_udev

Under /sbin/start_udev, how can I remove the [ OK ] so it's not printed? I'm trying to change /etc/rc.sysinit to display the information I like, and I have managed to remove all the info output ...
2
votes
1answer
1k views

How can I add a line to multiple files in a directory tree structure?

Adding a line to multiple files in the same structure is not very hard, but I am stumped on how to do it over a possibly large directory tree structure. So lets say we have your project directory, ...
2
votes
2answers
2k views

Root password not working to log in to Gnome with gdm

I have a weird issue going on. I have a user account and I can login to Gnome normally. From a terminal there I can use su root and switch to root with my root password. However, when I try to login ...
8
votes
2answers
1k views

Parsing XML's , JSON's and newer data file formats in UNIX using command line utilities

Unix environment has some excellent tools for parsing text in various forms. However off late the data is not in the regular set of formats(CSV,TSV,Record based or some other delimiter based) it used ...
4
votes
2answers
842 views

rm -rf failing if deleting in parallel

rm -rf will fail if something tries to delete the same file tree (I think because rm enumerates the files first, then deletes). A simple test: # Terminal 1 for i in `seq 1 1000`; do mkdir -p ...
1
vote
1answer
371 views

Wireless in Debian Squeeze

I am trying to get wireless working a lenovo g560. I tried following the instructions on the debian site here http://wiki.debian.org/wl but it is not working. At step 7 I get an error that modprobe ...
1
vote
1answer
738 views

apache symlinks and dokuwiki

I am running a dokuwiki on an apache webserver. Usually I put media files into the directory /var/lib/dokuwiki/data/media. However, to be more flexible and to save disk space, it would be nice to use ...
6
votes
1answer
646 views

Assistance wanted in removing the “No mail.” notification in MOTD for Ubuntu 10.10

How do I remove the No mail. notification on Ubuntu 10.10 Server? This occurs when I log in, and is located underneath the message of the day I have a separate script which uses a different messaging ...
9
votes
1answer
4k views

Unable to handle kernel paging request?

[Disclaimer: I was initially a little nervous about posting this here, so I asked on Meta if discussing homebrew / modding was acceptable. Based on the response I've gotten from several veteran ...
2
votes
1answer
1k views

All my superblocks are corrupt!

I am having a problem with my ubuntu ext3 filesystem. I can't boot from it or mount the volume when running live CD. When I try e2fsck I get: "Bad magic number in super-block while trying to open ...
8
votes
2answers
4k views

Forcing sudo to prompt for a password

If I do the following: sudo su - //enter password exit exit //login again straight away sudo su - The second invocation of sudo does not request a password because even though I have logged out ...
2
votes
2answers
943 views

How do I prevent expansion when I use a pattern as argument to a script?

I need a very simple script which does this: mogrify -resize $1x$2^ -gravity center -crop $1x$2+0+0 $3 so that I can call it in this way: cropresize.sh 110 110 *.png the problem is that the ...
4
votes
4answers
915 views

How to get the network status (online/offline) and attribute it to a variable in shell script?

How to get the network status (online/offline) and attribute it to a variable in shell script?
17
votes
7answers
16k views

How to get my own IP address and save it to a variable in a shell script?

How can I get my own IP address and save it to a variable in a shell script?
4
votes
2answers
5k views

Converting text into ASCII/ISO-8859-1

I'm looking for some tool that can convert text, ideally from UTF-8 (but ISO-8859-2 and WINDOWS-1250 would be fine) into ASCII/ISO-8859-1? I have seen some online transliteration tools but I need ...
3
votes
1answer
286 views

Sharing Linux Printer to windows

I want to share the printer connected to Linux with Windows machine, so that windows-user can print to this Linux printer. How can I do this ? P.S. I followed the ...
7
votes
1answer
3k views

mdadm Raid5 gives spares missing events

I succesfully builded up a raid5 array on debian testing (Wheezy). As the manpages and further tell, the array would be created as an out of sync array with just a new spare injected to be repaired. ...
13
votes
4answers
5k views

Is it possible to find the path of a running program?

I have a xmms2d process running, but two possible executable files (in different directories, both in the executable path) that could have spawned it. I suspect that one of those is corrupted, because ...
3
votes
2answers
705 views

How is the octal 2-byte output calculated from od

I'm struggling to work out what the octal 2-byte output from the od command is. I understand the octal output (-b flag) but the octal 2-byte is a mystery to me (-o) Can someone shed some light on how ...
1
vote
0answers
112 views

How do I determine the make & model of my storage devices? [duplicate]

Possible Duplicate: How do I find out what hard disks are in the system? I'm running a CentOS 5.5 system. This system has 4 disks and a 3ware RAID controller. How can I determine the make ...
1
vote
2answers
1k views

exim4 on debian: why does this ACL work when testing with -bh but not in actual use?

I've got local_acl_check_data to reject the typical spammer tactic of using the same address as From: and To:, but since some less-spammy sources, such as Yahoo Groups, do this, I'm using a whitelist ...
6
votes
1answer
5k views

I can't remove a directory tree with rm -rf

This seems very strange to me. I'm running kernel 2.6.37.2 and ran: ~]$ cp -r /proc/ here ~]$ rm -rf here I get some permission denies when copying as expected and I eventually hit Control-C. I get ...
2
votes
2answers
2k views

backup MSSQL database to a client's local disk over network

I'm trying to backup a MSSQL server from linux. I'm able to connect to the server using tsql (from the freetds project), and I'm even able to backup the database on the server using the backup ...
10
votes
5answers
6k views

How to cache or otherwise speed up `du` summaries?

We have a large file system on which a full du (disk usage) summary takes over two minutes. I'd like to find a way to speed up a disk usage summary for arbitrary directories on that file system. For ...
1
vote
2answers
800 views

Alias in cygwin bash doesn't seem to run in the right order

I am trying to create an alias to use in my Cygwin shell to determine if the Mercurial-managed directory I'm currently in has outstanding changes. The command "hg st -m" lists all modified files. ...
5
votes
2answers
489 views

Is there an analog of apt-pinning in Fedora?

Apt pinning is a feature that allows to set install priority for a group of packages, determined by a number of attributes, such as package version, repository, distro version, etc. See man ...
2
votes
2answers
636 views

mv failed halfway through - is source directory intact

I ran mv a-folder /home/me on a machine and half way through the move the destination device filled up. a-folder was made up of folders and files in various subdirectories. Does mv leave the source ...
16
votes
5answers
9k views

How can I close a terminal without killing its children (without running `screen` first)?

sometimes I run an app in the gnome-terminal, but then I suddenly have to restart gnome or something. I guess the answer to the question is also useful then I want to disconnect from SSH where ...
4
votes
3answers
2k views

russian letters in gentoo console as '?'

I managed to get russian language working in my Gnome apps, but neither in the console (Alt-Shift-F2 and such) nor in the Gnome Terminal valyagentoo va1en0k # locale LANG=ru_RU.UTF-8 ...
1
vote
1answer
974 views

Can't connect to internet in Ubuntu 10.10

I'm having trouble getting Ubuntu connected to the internet in vmware fusion. Every other Linux distro has no trouble... ifconfig shows that eth0 is up and running, has been assigned an ipv4 address ...
4
votes
1answer
87 views

Remove alias from current session

How to remove a alias from current session without closing that session?
2
votes
2answers
2k views

Fixing debian installer

I have a VPS with Debian GNU/Linux on it. I'm trying to install a PHP file manager so that people could access it and download stuff into a directory. I don't have anything in my /bin about PHP so ...
3
votes
3answers
4k views

Reading an Microsoft Excel File

How to read an XLS File (Microsoft Excel) using unix Bash / Corn shell script?
4
votes
2answers
4k views

How to send mail?

I'm trying to send mail from shell(GNU bash, version 3.2.25(1)-release (x86_64-redhat-linux-gnu)) using; mail foo@bar.com After I complete the command, the mail won't show up in the mailbox. What ...
1
vote
2answers
697 views

squid (reverse proxy) configuration

I would like to configure squid in such way, so that only specific (public) ip (reverse proxy), could connect to the server, but I don't know how... can someone tell me how to do this?
13
votes
4answers
10k views

How do you rename root?

Not that it's a very good idea to change it, but for fun. According to this post, there are still some problems even after changing entries in /etc/passwd, /etc/shadow, and /etc/sudoers. Any ...
2
votes
1answer
708 views

Using KDE in Debian Squeeze

I just installed Debian Squeeze and it defaulted to the gnome desktop environment. I have installed KDE via the package manager but do not know how to set it as the default environment. Any help would ...
6
votes
4answers
6k views

Is it possible in bash, to start reading a file from an arbitary byte count offset?

I want to locate a date which is somewhere in an 8 GB log (text). Can I somewhat bypass a full sequential read, and first do binary splits of the file (size), or somehow navigating the filesystem ...
6
votes
3answers
6k views

Can I make scripts use aliases instead of commands?

I have an alias for a command (I'm setting up a Python development environment) alias python=~/virtualenv/bin/python so that I can run ~/virtualenv/bin/python by just typing python. Now in my ...
4
votes
1answer
956 views

GNU Screen makes Vim ESC key slow

Screen makes my ESC key wait for more commands I beleive, and if it does not get those commands, it sends it to my terminal Session (which I am running VIM in). ESC is used alot in VIM and currently ...
1
vote
1answer
135 views

svn command to see a tally of my changes

Is there an SVN command that I can run to see a tally of all of my contributions? Something like: added 1800 deleted 15
25
votes
3answers
6k views

How to remove all empty directories in a subtree?

How can I remove all empty directories in a subtree? I used something like find . -type d -exec rmdir {} 2>/dev/null \; but I needs to be run multiple times in order to remove directories ...
7
votes
1answer
2k views

Converting html table into ncurses-like ascii table?

I have some documentation in an html table. I want to convert the table to an ascii table, like you see when you get a mysql command line result back, like this: +------------+------------+ | header ...
6
votes
2answers
758 views

emacs does not see my fonts in gentoo

I copied my ~/.emacs file from ubuntu linux; I've installed Consolas font (and it works in gnome terminal, and as a default Monospace font); but Emacs does not see it (custom-set-faces '(default ((t ...
102
votes
14answers
46k views

How to have tail -f show colored output

I'd like to be able to tail the output of a server log file that has messages like: INFO SEVERE etc, and if it's SEVERE, show the line in red; if it's INFO, in green. What kind of alias can I ...
9
votes
2answers
4k views

Advantages of using a RTOS such as QNX or VxWorks instead of Linux?

When developing a solution that requires a real-time operating system, what advantages would an operating system such an QNX or VxWorks have over Linux? Or to put it another way, since these ...
0
votes
2answers
1k views

Why curl -O -C on mac fails to download

The following script works on Ubuntu, but not on Mac. Why? How to edit it so that it would work there too? #!/bin/sh v=1.1 test_file="Test10.java" jar_file="dp4j-$v-jar-with-dependencies.jar" curl ...
13
votes
4answers
8k views

How can I avoid “Run fsck manually” messages while allowing experimenting with system time changes?

I'm working with a system where we want to allow users to play around with the date and time if they want, and where reboots may happen arbitrarily. This is fine, except for one thing: if there's a ...
2
votes
2answers
1k views

dhclient exits with status 0 but still no address

I've been trying to find out with the man page and some other sources if the exit status doesn't necessarily mean you achieved an address but I'm thinking I maybe didn't read it correctly. Does anyone ...

15 30 50 per page