7
votes
2answers
894 views

What is a canonical way to find the actual maximum argument list length?

Following ARG_MAX, maximum length of arguments for a new process it seems like ARG_MAX is wrongly (or at least ambiguously) defined on my Mac Mini 3,1 running Ubuntu 12.04: $ getconf ARG_MAX # ...
5
votes
1answer
736 views

Avoiding duplicate entries in ~/.ssh/known_hosts

I have my DNS search path set to ".intranet", ie, /etc/resolv.conf contains: search intranet When I SSH to a host using a FQDN, like "mailserver.intranet", it adds an entry for ...
1
vote
0answers
5k views

How to change desktop enviroment in Raspbian?

I'm running Raspbian “wheezy”, a Debian based Linux distribution for the Raspberry Pi and I would like to know where I can change the desktop environment that boots with the OS. In particular, how can ...
1
vote
1answer
670 views

Nvidia 9800GT and HP w1907v resolution woes

I was happily dual-booting Windows 7 and Ubuntu 10.10 a year or two ago, with, as in the title, an Nvidia GeForce 9800 GT graphics card (on a Gigabyte GA-MA790XT-UD4P) outputting VGA to an HP w1907v ...
2
votes
0answers
542 views

VirtualBox with aMule - How to configure network, port forwarding… properly?

for security reasons I am running aMule inside VirtualBox. Guest and Host systems are Linux (to be more specific Arch 64 distro) Host system has public ip directly connected to internet (no router) ...
0
votes
1answer
642 views

Can't find a way to customize Mutter under elementary OS

I just installed elementary OS, and I would like to have some options to customize the effects like I could do with Compiz. However, I couldn't find a settings panel related to Mutter. Is there a GUI ...
5
votes
3answers
565 views

Gedit or an other non-commandline editor with the ability to spell-check two languages at the same time

I'm searching for an editor with the ability to spell-check two languages at the same time (German and English). Gedit can't do it out of the box. But I want to use Gedit. It should be possible by ...
8
votes
1answer
576 views

Display screen caption on the first line of the terminal

When I start a new terminal, the prompt is on the first line. After working for a while (or running a command which produces some output), the prompt is on the last line. There it'll stay during the ...
3
votes
1answer
3k views

How to do multiline search and replace text (delete) recursively

I want to go recursively through a directory and search for specific content in all files. The content should then be replaced if found. With a single line I would make something like this: find . ...
9
votes
1answer
2k views

How to get current buffer's filename in emacs?

One of the main features I miss about Vim, is that it always saves the filename of the current file in the % buffer (more info). That allows launching commands easily like: ;; compile current file :! ...
1
vote
1answer
542 views

Up/Downgrade iOS on Linux

Is there a way to Up/Downgrade the iOS of my iPod touch 2G under linux (especially debian)? I have already read about idevicerecovery but this project doesn't seem to be maintained anymore and ...
3
votes
1answer
148 views

How can I dynamically switch the output destination of a script or command?

I ran a shell command the other day which produced more output than expected. It was writing to a file on a filesystem with very little available space and could have filled the filesystem. The ...
14
votes
3answers
3k views

Given a git patch id, how to find out which kernel release contains it?

Assume I have some issue that was fixed by a recent patch to the official Linux git repository. I have a work around, but I’d like to undo it when a release happens that contains my the fix. I know ...
10
votes
2answers
7k views

Is it possible to change Inode count on an ext4 filesystem? [duplicate]

Possible Duplicate: How can I increase the number of inodes in an ext4 filesystem? I have a homemade NAS with Debian Wheezy 64bit. It has three disks - 2x2TB and 1.5TB, pooled together ...
4
votes
1answer
595 views

Gentoo Live CD from Hard Drive: No Mountable Filesystems on root after modules loaded

I am attempting to install Gentoo on my PowerPC Mac. I have reached the point where I can boot the Live CD (I have no functional CD Drive, so it is from a spare Hard Drive), but after the kernel is ...
2
votes
2answers
5k views

How can I switch window managers in Gnome 3?

I normally enjoy using Gnome 3 and gnome-shell in Fedora 16. However, I would like to temporarily run a non-compositing window manager such as metacity so that some wine games can have full control of ...
5
votes
1answer
15k views

Find a file in lots of zip files (like find command for directories) [duplicate]

Possible Duplicate: Find recursively all archive files of diverse archive formats and search them for file name patterns I need to search for a file in all zip files in a directory. Is ...
2
votes
2answers
939 views

How can I create a bash script which runs irb, then some ruby code?

I'm trying to do this to make unit testing a breeze for myself. The contents of an example script in question are as follows: irb require 'random_utils.rb' a = SuccessChecker.new Right now this ...
6
votes
1answer
527 views

Emacs mode for man pages

I'm translating man pages, and have run in to a few problems with Emacs. How do you specify language? (With man, it looks like this man -Lsv shutdown for the Swedish "sv" subdirectory, if ...
7
votes
3answers
3k views

Shutdown from login prompt in tty

Suppose I boot a Linux machine without GUI. When it displays a tty login prompt, can I shutdown the machine with a keyboard sequence? Of course I could type in my username and password and then sudo ...
4
votes
1answer
1k views

Validate AIX Password for root from script

Looking for a way in a shell script to validate the password for for root on an (AIX) matches a standardized plain text password. This query is similar to another one on this site. I have access to ...
2
votes
2answers
161 views

Which graphics board my OS is using?

Is there any way to specify which graphics chipset our OS should use? on machines with discrete GPU, when graphics driver installed linux will by default use GPU for UI but I want OS to use on-board ...
0
votes
1answer
6k views

How can I install the Epel repository on 64-bit Fedora 17 machine?

How can I install the Epel repository on 64-bit Fedora 17 machine? I tried: sudo rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm and sudo rpm -Uvh ...
2
votes
2answers
2k views

Mixing 4k/512 drives with ZFS (FreeNAS)

I have the following drives: Seagate Barracuda ST3200054AS WDC WD20EADS-00S2B0 Samsung HD204UI As far as I understand, the first are ordinary 512 drives while the last is 4096 (Advanced format). ...
1
vote
1answer
734 views

Colors not rendered correctly in oh-my-zsh themes

I'm trying to use colors in oh-my-zsh themes. It works fine on my home computer (ubuntu), but in a work computer (Scientific Linux i.e. Enterprise linux) the prompt colors are actually spelled out. ...
1
vote
1answer
354 views

mount failed to process probably corrupted CD

I wanted to check a CD from my drawer. I inserted it into my drive and issued mount. I got mount: block device /dev/sr0 is write-protected, mounting read-only mount command did not exit. I checked ...
2
votes
2answers
291 views

Interesting Secure Copy Behavior

I'm not entirely sure where to ask this question, so if this is not the right place just let me know and I'll move it. Today I was trying to using recursive scp to copy a directory between two Linux ...
2
votes
1answer
1k views

rsync server and client issue

I am new to rsync server so please bear with me. I just configured an rsync server that is hosting the files I would like to replicate to a remote machine. Here is the rsyncd.conf file: max ...
7
votes
2answers
1k views

Replace require statements by autoload in .emacs file to improve performance

According to these posts: How can I make emacs start-up faster a-nickels-worth.blogspot.de/effective emacs one can somehow replace require and load statements in the .emacs file to speed up the ...
0
votes
3answers
1k views

Windows-like visual style for Gnome/Cinnamon?

I'm secretly trying to replace a windows machine with Linux for a girl and make it look like Windows the way it is actually possible to. I was unable to find appropriate apps like panel and menu ...
6
votes
2answers
10k views

Format external hard drive to linux compatible file system

How do I format my external hard drive to a very Linux compatible file system?
1
vote
1answer
534 views

External drive chmod does nothing

Why is it that I can do chmod on my files when they are on my laptops hard drive, but when i make files on my external drive, i can't change their access rights. I do: chmod 755 somefile, and on my ...
4
votes
2answers
2k views

bash myscript.sh runs in bash, but the first line is #!/usr/bin/sh

I have a script similar following one: #!/usr/bin/sh var="ABC" if [ $var == "ABC" ] then echo True else echo False fi Above code does not work in Solaris Sparc and Solaris X64. It is showing ...
6
votes
2answers
26k views

Server does not accept public key for ssh login without password [duplicate]

Possible Duplicate: Why am I still getting a password prompt with ssh with public key authentication? I have ssh access to two sever. One old one and one new one. For the old one I use the ...
5
votes
3answers
12k views

Why isn't there a server edition for Fedora like Ubuntu? [duplicate]

I was looking for a server edition of Fedora to download, and just found that they don't have one. It's very strange to me. If Ubuntu has both desktop and server editions, why doesn't Fedora follow ...
2
votes
3answers
448 views

Can I substitute partition number with UUID?

Here is my grub.cfg: menuentry 'Debian 6.0 on hard disk' { set isofile="(hd0,6)/home/toinstall/debian.iso" loopback loop $isofile search --no-floppy --fs-uuid --set=root ...
2
votes
1answer
696 views

Which version of unix from a shell?

I recently started a new job, and was told that I need to log on (Via shell) to a particular unix system. I'm trying to figure out a few peculiarities with the system, but first I need to know what ...
4
votes
0answers
517 views

No access to symlink folder on NTFS partition

I am using an NTFS parition for storing data I like to access both from Ubuntu and Windows 7. On my Ubuntu HOME partition, I like to link the folder Assets in order to access it from an application ...
42
votes
4answers
73k views

How to suspend and bring a background process to foreground

I have a process originally running in the foreground. I suspended by Ctrl+Z, and then resume its running in the background by bg <jobid>. I wonder how to suspend a process running in the ...
3
votes
1answer
377 views

RPM package naming convention

I'm a little confused with RPM package naming. When I do: vickey@tb:/usr/include$ rpm -qf event.h libevent-devel-2.0.10-2.fc15.i686 And: vickey@tb:/usr/include$ repoquery --list ...
2
votes
2answers
3k views

How to mount ext3,ext4 sitting on VDI VirtualBox HDD?

How to mount ext3, ext4 partition sitting on "Fixed-Size VDI" VirtualBox HardDisk ? To be more specific, I ma interested in case when VM is not running.
4
votes
1answer
5k views

netcat in shell script giving invalid connection

I have a shell script that uses netcat to listen to localhost on port 1111 for web requests. Every time I try accessing localhost:1111/index.html for example I get: invalid connection to [127.0.0.1] ...
1
vote
1answer
523 views

rename files maching specific mtime value within directory

I use simple set of shell commands to in order to create mysqldumps daily. The script is called by cron daemon. It looks like: presentdate="`date +%d-%m-%Y_%H:%M.%S`" basedir="/var/db_my_backup" ...
4
votes
4answers
411 views

How to send all output to a pager by default?

git has a very nice feature for many of its commands: The output on an interactive terminal is passed to a pager by default, in such a way that it only keeps the pager open if there's more than one ...
1
vote
1answer
515 views

What's the most appropriate way of parsing values from this output?

I have some netstat output I'm scripting and want to parse. What's the most efficient way of parsing values from the output below? It's important to point out that I'm using the old /bin/sh shell ...
1
vote
2answers
3k views

Acroread Firefox plugin Ubuntu 12.04 issues

Since I upgraded to Ubuntu 12.04, every time I try to open a PDF through Firefox (which I like to do quite often as I read a lot of PDF documents and downloading each then deleting is tiresome) I get ...
2
votes
2answers
939 views

Setxkbmap turns off NumLock LED - but not NumLock.

Whenever I use setxkbmap in a terminal (or my .bashrc), the next time I press any modifier keys (ctrl, shift, alt) the NumLock LED on my keyboard goes off, but NumLock itself is still active so it's ...
5
votes
1answer
399 views

gajim blinking trayicon notification

Gajim has a (nasty) trayicon notification option that blinks the Gajim icon when you have new messages. You can cancel this behaviour via the ACE's trayicon_notification_on_events option. But what I ...
1
vote
1answer
9k views

What is the command to find a jar file in a particular folder?

What is the command to find a jar file in a particular folder? Say I want to find log4j.jar in the /dev directory, what command should I use?
2
votes
0answers
739 views

Finding/Mounting USB Device in Mac OS X 10.8

I've looked all over and found similar questions and answers and none seem to work for me or match what I see. I should add I'm new to UNIX and the OS X command line but have got a basic overview to ...

15 30 50 per page