4
votes
1answer
691 views

F4-key mysteriously reassigned

In the middle of today, my F4 key started producing the letter p, without my conscious acting and I can't seem to revert this change. Whenever I press F4, p appears instead. How can I change this ...
6
votes
0answers
550 views

'OS X-like' momentum scrolling in linux?

Is there a way to make the scrolling on a linux machine (running X11) more like OS X's natural scrolling? With 'natural scrolling' I mean the fact that you can flick trough the pages, there is ...
6
votes
1answer
422 views

vim: how do I set :match and :2match search results to different colors?

For example, I want something along the lines of: :match search /<div/ guib=Green :match search /<\/div>/ guibf=Blue only that doesn't work.
4
votes
2answers
282 views

Is it good practice to create a background job within an init script if the process can not daemonize itself?

I am fairly new to *nix, and have come across the need to drop multiple processes, that should be run 100% of the time. to background using &. I use the following line in an init.d script to do ...
33
votes
8answers
7k views

How to do nothing forever in an elegant way?

I have a program which produces useful information on stdout but also reads from stdin. I want to redirect its standard output to a file without providing anything on standard input. So far, so good: ...
9
votes
1answer
1k views

Best Practices for SSH, tmux & GnuPG Agent

I'm attempting to consolidate my encryption software to GnuPG, and I'm running into a confusing problem. My primary unit is a headless server, and I exclusively work in tmux. There is no X session, ...
10
votes
1answer
11k views

Find any lines exceeding a certain length

Is it possible to find any lines in a file that exceed 79 characters?
3
votes
1answer
1k views

What is the relationship between SLED and OpenSUSE?

I have read that OpenSUSE is to "SUSE Linux Enterprise Desktop" what Fedora is to Red Hat Enterprise Linux, but is there a document that explains this in more detail? For example, from what version of ...
2
votes
2answers
1k views

Activate WiFi on runlevel 3 startup

I am running SL6. During GNOME session, the wifi is connected as soon as I login, however the same does not happen until I login. The situation further worsens in runlevel 3 where the wifi is not ...
3
votes
1answer
371 views

Is it a good idea to use pwsafe - a password manager not updated since 2005?

I'm looking for a command-line Linux password-manager. It appears that pwsafe is the program most commonly used. However, its latest update was in 2005. Is it a good idea to use this? Has it been so ...
4
votes
3answers
2k views

Why piping find and grep returns nothing?

I'm trying to have grep search inside specified files that are returned by find: find . -type d -name 'mydir*' -exec find '{}' -name '*.java' \; | grep 'MyClass' This doesn't work. Meanwhile, ...
13
votes
2answers
2k views

Is there a way to virtually split my monitor (for maximizing windows)

My question is essentially if I can fake the behaviour one gets using usual window managers on linux if one has a dual head setup. That is, if I maximize a window it maximizes only on one part of the ...
9
votes
4answers
3k views

Preferred mount points for internal HDDs

I am relatively new to Linux and I apologise if this is a silly question. I read the Linux FS Hierarchy document but it didn't answer my question. I would like to know if there is a typical drive ...
2
votes
0answers
82 views

What are the differences between the current Linux kernel and the Unix SVR4 kernel in terms of device drivers+i/o and virtual files systems?

Yes I realize that Linux supports many more file systems and recognizes more devices than Unix SVR4. I'm interested in what the differences are in the abstraction on top of an actual file system, or ...
3
votes
1answer
717 views

Can't get past EFI to install RHEL on HP Itanium Server

When I am trying to install RHEL (6.3, 5.8, 4.8) on an HP Integrity Server rx2660 Itanium with 4GB RAM, I keep getting to the same point which is Loading file efi\boot\initrd.img...done After that ...
7
votes
4answers
943 views

Iterate over n files?

I've got something fairly simple I want to do. I want to use montage on a directory that contains thousands of images, with very few options, namely: me@home$ montage -size 256x256 DSC01*.JPG.svg ...
4
votes
1answer
189 views

Discard stdout of a command for t seconds

I am working on some batch scripts involving the following: Run some non-terminating sub-processes (asynchronously) Wait for t seconds Perform other task X for some time Terminate subprocesses ...
1
vote
2answers
2k views

CentOS 6.3 (kernel 2.6.32-279) & wl-kmod won't compile

I have been trying (unsuccessfully) to compile a Broadcom driver for use on my CentOS laptop. Previously, I had used the instructions located here to compile and it worked flawlessly. Now, I cannot ...
4
votes
1answer
178 views

How do I install Ubuntu/Mint on top of Debian?

I have a basic dual setup with Linux Debian and Windows 7 (Grub is my bootloader). However, since this machine will be donated to a friend that does not know a lot about computers, I would like to ...
2
votes
2answers
464 views

Do Solaris 10 and 11 still use slab allocation for their kernel memory allocator

If not, what do they use. Please provide a source.
3
votes
1answer
1k views

How to do df only on root partition?

How can get df results only for / partition. The partition name/identification (/dev/sda2, /dev/cciss/c0d0p1) could vary on different computers.
8
votes
10answers
43k views

How to extend CentOS 5 partition on VMware?

I have a CentOS 5 virtual machine and I added 20GB more to disk size. How do I initialize and extend the available space? I'm new to Linux, so what should I do? I tried loading GParted as well, ...
21
votes
5answers
33k views

How can I convert a PNG to a PDF in high quality so it's not blurry or fuzzy?

There are a lot of questions out there about how to convert a PDF file to a PNG image, but I'm looking to take a nice sharp PNG file and just basically wrap it or embed it in a PDF file without having ...
2
votes
3answers
3k views

Automatically open a remote desktop connection upon login

I have installed Linux Mint to one of my desktop PCs. I have downloaded and installed Freerdp-x11 for me to connect into my Windows Terminal Server. I want the terminal command line to connect ...
1
vote
1answer
498 views

How to install subversion 1.6.x on SLE11?

I need specific version of subversion 1.6.x on my SLE11 (SUSE Linux Enterprise Server 11 (x86_64)) but I do not know how to install it. If I follow the instructions on ...
19
votes
3answers
7k views

Are there naming conventions for variables in shell scripts?

Most languages have naming conventions for variables, the most common style I see in shell scripts is MY_VARIABLE=foo. Is this the convention or is it only for global variables? What about variables ...
4
votes
1answer
18k views

How do I access a USB serial port without an entry in /dev?

I have a USB to serial adapter based on the SiLabs CP2101 chipset. I'm trying to use it with Debian 5.0 Lenny (armel architecture). I seem to be able to get the proper kernel module to recognize the ...
2
votes
0answers
162 views

How to find where driver.mod.c links to?

I'm trying to port the webcam composite gadget from kernel 2.6.37 to 2.6.32. I don't have a choice on this since I depend on other drivers and a SDK which only compile for this version. My train of ...
20
votes
1answer
27k views

How to skip “permission denied” errors when running find in Linux? [duplicate]

Possible Duplicate: How do I remove “permission denied” printout statements from the find program? When I run this command in Linux (SuSE): find / -name ant I get many error ...
1
vote
2answers
4k views

set up a user and its root dir in vsftpd, in Ubuntu

I want to setup a www-data user for vsftpd and set its root dir to /somepath/www-data/project. How can I do this?
11
votes
4answers
1k views

What could be causing make to hang when compiling on multiple cores?

Yesterday I was trying to compile the ROOT package from source. Since I was compiling it on a 6 core monster machine, I decided to go ahead and build using multiple cores using make -j 6. The ...
6
votes
2answers
7k views

How to write init.d script log messages to disk?

I'm running Debian wheezy. Many scripts in /etc/init.d/ use various logging functions defined in the Linux Standard Base, like log_success_msg and log_warning_msg. The LSB documentation seems a bit ...
5
votes
1answer
485 views

Is there an operator like && that ignores return status?

I've discovered the following useful trick for long-running tasks on the command line: do_some_task && make_a_noise For instance, on OSX: do_some_task && say 'done' However, ...
8
votes
1answer
2k views

Does inotify fire a notification when a write is started or when it is completed?

Imagine two processes, a reader and a writer, communicating via a regular file on an ext3 fs. Reader has an inotify IN_MODIFY watch on the file. Writer writes 1000 bytes to the file, in a single ...
1
vote
1answer
426 views

How to configure ADSL connection using bash?

I know it's possible to configure the modem to automatically connect the internet using a browser, but I want to do it using bash. I would like the network to automatically connect when the system ...
8
votes
4answers
1k views

Why does my desktop lock up when I copy lots of files to a USB drive?

My desktop is usually very responsive, even under heavy load. But when I copy files to a USB drive, it always locks up after some time. By "lock up", I mean: Moving focus from one window to another ...
2
votes
2answers
8k views

Remove Linux Mint and restore windows's bootloader

I have an old laptop that is setup with dual boot, running Windows Vista and Linux Mint 12. I want to remove the Mint and reclaim the space to Windows. This is a simple task but I've been on it for ...
3
votes
1answer
431 views

How to disable timeout of password prompt for partition decryption during boot?

I have a computer running OpenSUSE 12.1, 64-bit, default install. How it works currently: I turn on the computer It goes through the boot process At some point during boot, I am asked for password ...
7
votes
2answers
1k views

Does Linux kernel 3.x use the CFS process scheduler?

Does the latest version of the Linux kernel (3.x) still use the Completely Fair Scheduler (CFS) for process scheduling which was introduced in 2.6.x ? If it doesn't, which one does it use, and how ...
8
votes
2answers
1k views

How do I append text to a write protected file [duplicate]

Possible Duplicate: Redirecting stdout to a file you don't have write permission on I am trying to append a line of text to a write protected file. I tried to accomplish this with sudo ...
5
votes
5answers
496 views

Which tasks to learn and which books to read to become more skilled at Unix/Linux internals? [closed]

I recently interviewed at a major company and did well on programming questions such as: "What is the time complexity of quicksort? What is the opposite in C of malloc? What is the opposite in ...
2
votes
2answers
155 views

need explainations on this network route

I'd like to get some insight as to how I can possibly access network devices that are on a different IP range (obviously not mine) compared to what is configured on my wifi router? setup home wifi ...
11
votes
2answers
1k views

Can git configuration be set across multiple repositories?

Git seems to support configuration values at three levels: Per-system global settings (stored in /etc/git-core) Per-user global settings (stored in ~/.gitconfig) Per-repository local settings ...
3
votes
1answer
104 views

ed: set first line as the default current line

I am trying to use ed to edit the first line of a large file, but I have to wait for ed to read all lines. Is there any way I could stop ed from reading the whole file and start editing immediately, ...
9
votes
4answers
9k views

Safely uninstall a package in Gentoo

I wanted to uninstall a specific package in Gentoo and browsed through the emerge man page. I found the --unmerge option: WARNING: This action can remove important packages! Removes all ...
3
votes
2answers
9k views

How to install/upgrade svn on SLE?

My SUSE (SUSE Linux Enterprise Server 11 (x86_64)) got installed old svn. I want to upgrade it but if I download package for Packages for SLE 11 and try to install it via zypper install ...
2
votes
1answer
2k views

Change font color and shadow from titlebar in window manager

I'm trying Linux Mint Debian Edition XFCE, and want to use a specific theme; only drawback - the font color and font shadow are unreadable, how can I change them? Also the active/inactive color window ...
4
votes
1answer
819 views

How to run this in sudo?

I have this line that I execute from php sudo -u db2inst1 -s -- "/opt/ibm/db2/current/bin/db2 connect to PLC; /opt/ibm/db2/current/bin/db2 \"update EDU.contact set MOBILE_PHONE = '123'\"" it works ...
2
votes
1answer
579 views

Can't add swap file on solaris

I'm trying to add a swap file on Solaris 10. I have already created a 2GB file swap.file. Then, I add a swap file with the command: swap -a /swap.file which shows an error: /swap.file: size is ...
2
votes
2answers
2k views

Makefile compiles unchanged files

Made an effort to get the object files in another directory, but that directory would otherwise reflect the source directory tree. Got that to work, but there is a missing piece at the $(OBJ): line ...

15 30 50 per page