4
votes
1answer
838 views

Linux - why is kernel.shmall so low by default?

I run DB2 on Linux where I have to allocate the vast majority of memory on the machine to shared memory segments. This page is typical of the info that I've found about shmall/shmmax: ...
1
vote
2answers
207 views

Why don't Gnome or KDE produce their own distribution (or other desktop projects for that matter)?

When I think of the recent debacle where Canonical and Gnome disagreed and each went their own way in terms of producing a new desktop, I wonder: Why doesn't a desktop project like Gnome produce its ...
4
votes
1answer
504 views

Is it possible to send a keyboard event to a background script that's expecting user interaction? (Using 'read')

Ex: $read & [1] 15139 [1]+ Stopped $jobs -l [1]+ 15139 Stopped (tty input) read
7
votes
2answers
5k views

Reading from a continuously changing logfile [duplicate]

There is /location/of/thefile, which is a continuously changing logfile. The average density of refreshes is 4 per minute, the possible maximal refresh rate could be 30-40 per minute. Every refresh ...
1
vote
3answers
948 views

Connect my laptop through desktop to internet

I'm currently at work and our wifi is down. I usually connect my desktop to the internet through eth0 and my laptop connects through wifi. I have an extra port on the back of the desktop (eth1) and ...
17
votes
5answers
19k views

Shell: How to read the bytes of a binary file and print as hexadecimal?

In shell, how can I read the bytes of a binary file I have, and print the output as hexadecimal numbers?
59
votes
9answers
2k views

Remember a half-typed command while I check something

I often find myself in the following position: I've started typing a long command at the bash prompt, but half-way through I find out I need to check something with another command. This is a problem ...
12
votes
2answers
2k views

Where do my ANSI escape codes go when I pipe to another process? Can I keep them?

I sometime want to pipe the color-coded output fror a process, eg. grep... but when I pipe it to another process, eg. sed, the color codes are lost... Is the some way to keep thes codes intact ? ...
4
votes
1answer
353 views

Make a windowmanager/desktop (Gnome) use only a part of an X11 server's (Xvfb) resolution

I have the following problem: Let's say I have an X11 server (it is the Xvfb) set to run at a resolution of 1024x768. Now I want to run inside it the Gnome desktop, not at the resolution of 1024x768 ...
2
votes
1answer
3k views

Why does my Debian VMWare virtual machine lose all network connections ~15 minutes after boot?

I’m having a strange networking problem with a Debian (6) VMWare virtual machine on my Mac. Around 15 minutes after starting it up, I can no longer SSH into, view websites served from, or ping the VM. ...
1
vote
1answer
304 views

How to execute a shell command from a “starter”?

I would like to execute a command by double-clicking on a starter on my Ubuntu Lucid desktop. More specifically, I would like to start a rdesktop session. I have thus entered rdesktop -u user -d ...
2
votes
2answers
3k views

“lsmod |grep audio” doesn't return anything?

I am running Debian Squeeze. I installed and removed Gnome3 and reinstalled Gnome2.x (epic fail and stupidity) and in the process I have lost audio, lspci returns following # lspci | grep Audio ...
0
votes
1answer
155 views

“which” command difference

What is the difference between (unix-system “which [name]) and which [name] commands. For example when I use the (unix-system “which visual_elite) command I get the following result: ...
10
votes
2answers
8k views

What is the “/usr/local/src” folder meant for?

I wanted to put my work files (code) in /usr/local/src, but I think it's already a folder that has some other semantic meaning. What is that? Should I put source code there, or is there a better ...
2
votes
1answer
705 views

How to configure DHCP so that boot is completed even without a DHCP server?

I have configured /etc/network/interface like this: auto lo eth0 iface lo inet loopback iface eth0 inet dhcp But when a lease cannot be obtained, the booting is not completed. Is it possible to ...
3
votes
2answers
2k views

Module Stacking in Linux device drivers

I am trying my hand with Linux, just come across the concept of module stacking. It can be used to use symbol exported by other Modules. Means we can use something already made in some module so we do ...
11
votes
2answers
3k views

How to change previous/next word shortcut in bash?

How do I configure Ctrl-Left and Ctrl-Right as previous/next word shortcuts for bash (currently alt-b and alt-f)?
8
votes
4answers
17k views

How to use bash script to read binary file content?

I want to read a character and then a fixed length of string (the string is not null terminated in the file, and its length is given by the preceding character). How can I do this in a bash script? ...
3
votes
1answer
111 views

sources for doing profiling of kernel portions?

Related to my previous post. I did not find any specific driver for which I can do profiling and benchmarking. However there is a one driver jffs2 filesystem for flash devices but I didn't know about ...
4
votes
2answers
939 views

substrings and regexps

I have a string contained in a variable, and I want to extract substrings based on position relative to another substring. My solution seems to work unless the string is sent to a function as an arg. ...
3
votes
1answer
372 views

Why does the rc.status file set the LC_ALL locale

I am currently creating a daemon service and in order to leverage existing service functionality, the startup script sources from /etc/status. This causes a problem with our service because within ...
7
votes
3answers
644 views

Can I highlight the current prompt line in zsh?

Is it possible to highlight (set a background colour) for the whole line of the prompt in zsh? In my emacs config I have the line on which the cursor sits a slightly different colour to the window ...
1
vote
0answers
163 views

Arch Linux not functional after kernel upate [duplicate]

Possible Duplicate: Arch Linux not booting after system update After running a system update, in which the kernel was updated, when I try to boot Arch (in single user, not quiet), I get the ...
3
votes
2answers
635 views

ANDed conditional using regexp and variables

I want to test whether a line, read in from a file, has a specific beginning AND an ending containing a word held in a variable. Here's some code: The input file is: line one #; line two #; line ...
5
votes
1answer
370 views

Problem on Linux NAND Root Filesystem

I'm have a JFFS2 root filesystem running on a large NAND device. Every once in a while, when I restart the computer, I get error messages about invalid ELF headers when /sbin/init or /bin/login try ...
4
votes
4answers
5k views

Why are partion size and df output different?

I have a partition /dev/sda1. Disk utility shows, it has capacity of 154 GB. df -h shows Filesystem Size Used Avail Use% Mounted on /dev/sda1 123G 104G 14G 89% / devtmpfs ...
8
votes
6answers
9k views

Find biggest files or directories

Which command will print the sizes of all files and directories in the tmp directory (including hidden ones) and sort them by sizes from largest to smallest in human readable format (e.g. 2 GB)? The ...
3
votes
2answers
511 views

Change the time format for the touch command in BSD

I am wondering how to change the time format when I am modifying a time with the touch command in the c shell. For example I need to use touch -a -t 051512002015 file.txt This will change the ...
3
votes
3answers
16k views

How to remove GNOME 3 and restore GNOME 2

I am on Debian Squeeze. In over-enthusiasm I added an experimental repo and installed GNOME 3 (here is the evil discussion on installing GNOME 3 http://forums.debian.net/viewtopic.php?f=6&t=60481) ...
1
vote
1answer
610 views

Getting “Protocol not supported” from setkey: why?

I'm trying to setup an IPsec connection between two Linux systems. I've enabled the kernel options mentioned on the IPsec Howto. I've setup a setkey script like this: #! /usr/sbin/setkey -vf add ...
2
votes
1answer
196 views

imaging/cloning with DHCP network rebuilding/recovery of solaris 9 and 10 sparc servers [closed]

I have a number of Solaris 9 and 10 sparc servers (no RAID) that are custom DVD jumpstarts provided by SONUS Networks for their softswitch VOIP products. The normal install process would be to use the ...
5
votes
1answer
894 views

How to determine if disk is compact flash or standard hard drive

I need to determine in a shell script if a given block device (e.g. /dev/sda) is a compact flash disk or a regular hard drive. Google did not help me out for once, and while udevadm info --query=all ...
9
votes
3answers
5k views

Is there a “Open terminal here” from File Browser?

Something equivalent to Windows' "cmd prompt here", that will open a gnome-terminal on a specific folder?
25
votes
6answers
36k views

How can I remove Orphan Packages in Fedora?

I just switched from Ubuntu to Fedora14. In Ubuntu we had the apt-get autoremove thing to remove orphan/unused packages. What is the counterpart in Fedora?
1
vote
1answer
2k views

Cron: My crontabs don't seem to be doing anything at all

I think I'm missing something. I've set up some crontabs to handle rsyncs over ssh in my office to handle some backups, but they don't seem to be running OR logging, for that matter. Am I missing ...
17
votes
4answers
26k views

Why is Debian's root shell colorless?

Are there any security concerns? What is the best way to enable it?
4
votes
2answers
3k views

How do I time a specific command?

(The linux equivalent of TimeThis.exe) Something like: timethis wget foo.com Receiving foo.com ... wget foo.com took 3 seconds.
4
votes
3answers
6k views

What to do to run GUI Java app in chrooted environment?

In my case Java app is JDownloader. I prepared chroot environment as explained here: http://www.0x61.com/forum/post5240333.html#p5240333 and here: http://interreality.org/~reed/java-chroot.html ...
2
votes
2answers
4k views

Samba reporting not enough free space

After having some problems with my NAS, I switched to Debian/Lenny. I've managed to install and configure most of the software I need, but I've hit a brick wall with Samba. I can access the shares ...
18
votes
6answers
22k views

Linux: allowing an user to listen to a port below 1024

I need to allow an user (different from root) to run a server listening on port 80. Is there any way to do this?
3
votes
6answers
1k views

Common multiple SSH connections file handling issue

often I have to download a file that isn't directly accessable via the first SSH connection. For example I'm on a Windows machine and I want to access another machine that is only accessable from lan. ...
1
vote
0answers
249 views

How can I make scripts run when a file/directory changes in Linux (like Mac OS X’s launchd)? [duplicate]

Possible Duplicate: Can a bash script be hooked to a file? On Mac OS X, there’s a handy daemon called launchd which (amongst other things) allows you to have scripts run when files or ...
1
vote
1answer
176 views

Aliases for programs in /sbin/

I have a weird problem, unfortuantely I don't know what I did to cause this, since I tried out lots of stuff on my Linux (Archlinux, 2.6.38 kernel). The problem is: My shell is not finding programs in ...
27
votes
4answers
20k views

What is the mknod command used for?

I just started using Ubuntu as my main OS and I wanted to learn about things I should not do, and learn by the bad things people have done in the past. I came across these email about horror stories ...
3
votes
3answers
6k views

Copy-pasting in gnome-terminal

Can I configure it to allow: select right-click to copy right-click or ctrl-v to paste?
5
votes
1answer
462 views

How do I get back to X?

I pressed some key combination and got a big full screen black terminal screen with a login prompt. After logging in, I tried startx to get the UI back, but got a message Fatal server error: Server ...
3
votes
4answers
1k views

How to get size of a block special file? [duplicate]

I need to be able to determine the size of a block special file. For example, given /dev/sda, I need a command that will provide the size of the device. (By size I mean capacity, since this is a ...
2
votes
3answers
904 views

Overriding the shade of color displayed

I have to work on systems which display some colors that are hard to read. I ssh into these systems, but don't have management permission to change the colors they display. Is there any way I can ...
2
votes
3answers
3k views

Trouble RDPing to Windows 7 Service Pack 1 from Remmina Remote Desktop

After adding Service Pack 1 to my work computer, I get permissions errors when trying to RDP to work. I have no issues if I'm using the Microsoft Remote Desktop client. I'm using Ubuntu 10.10 with ...
2
votes
2answers
1k views

setting up ssh public key

Okay, so I'm trying to setup a login for logging in with ssh, using a public key. First, I am using puttygen to generate a rsa-ssh2 public key using a passphrase. I followed the directions and ...

15 30 50 per page