23
votes
2answers
2k views

Why do Unix man pages use double backticks in place of double quotes?

I've noticed that man pages and other documents formatted by Unix utilities often use double backticks `` followed by double single quotes '' to wrap quoted phrases instead of the double quote ...
5
votes
2answers
5k views

Linux : Major and Minor device numbers

What types of devices fall under the major device number category and what types of devices fall under the minor device number category. What is the real difference between the two categories?
3
votes
2answers
4k views

How do I extract the filesystem image from vmlinux.bin?

jor1k ships a vmlinux.bin. I think there is an initrd inside, cause I don't know where else it would be. I am trying to extract the filesystem image so I can change it, but I don't know how to. I ...
3
votes
4answers
2k views

What distro for my PowerBook G4? [closed]

I've got an old PowerBook G4 with a 1333 MHz CPU and 1.25 GB RAM. What are some good distro to use? I tried Yellow Dog and Fedora (which didn't work), but I would prefer something more Debian-like, ...
-1
votes
2answers
95 views

Importance of knowing if a standard library function is executing a system call [closed]

Is it actually important for a programmer to know if the standard library function he/she is using is actually executing a system call? If so, why? Intuitively I'm guessing the only importance is in ...
0
votes
0answers
168 views

How do I get Linux on my sat nav?

I have a Clarion MAP680 navigation system, with some version of Windows CE on it. Is there any way I could hack it to get my beloved Linux on it? It seems to have a 1 GB flash drive or something, and ...
6
votes
3answers
20k views

using root to mkdir in another users home directory

having a bit of a difficult time trying to create a folder under another user's /home/devuser1/pubic_html folder. I'm trying to avoid using sudo and looking for an alternative. The permissions on the ...
1
vote
2answers
169 views

mount defaults and various filesystems

I read on the man page defaults Use default options: rw, suid, dev, exec, auto, nouser, async, and relatime. Do the options set depend on a mounted filesystem or not?
2
votes
1answer
276 views

Sun type 5 keyboard via serial port replicator

I'm running Ubuntu 12.04 on an HP G60 laptop with a Targus serial port replicator to USB and a custom cable between the keyboard and the replicator I ran modprobe sunkbd. Nothing works for the Type ...
5
votes
3answers
11k views

How can I use SED or AWK to replace placeholders in a template file with variable content that contains special characters?

CentOS 6.3 I'm trying to get a small script to send an email containing a copy of email headers in the body (for the purpose of internal reporting). The template file contains the following: ...
4
votes
1answer
892 views

What does the command “chattr +c /some/dir/” do?

I'm trying to keep a bunch of plain text files compressed using the extended attribute option - c on a debian ppc64 system. I ran the following commands: # mkfs.ext4 /dev/test/compressed # mount ...
4
votes
4answers
757 views

linux + how to ignore (filter) file with space

Sometimes a file name is created from a couple of names and space between each name as the following: $ touch "A B C" $ ls A B C <-- one file but has three words ! ...
2
votes
1answer
125 views

fdisk. What does the “free” partition mean?

I had two primary partitions (/dev/sda1 and /dev/sda2). Then I created an extended partition to segment it into logical partitions. After I had typed fdisk /dev/sda and n (add a new partition) the ...
2
votes
2answers
5k views

Unable to change permissions of file system root

When I write ls -la the output is : tusharmakkar08-Satellite-C660 tusharmakkar08 # ls -la total 88 drwxr-x---+ 10 root root 4096 Apr 18 19:43 . drwxr-xr-x 4 root root 4096 Mar 18 17:35 .. ...
100
votes
5answers
18k views

Why isn't Linux embraced as the official GNU kernel?

While I knew for quite some time the existence of Hurd, and its mission as the official GNU Operating System kernel, I was wondering how come Linux is not embraced as the official GNU kernel over the ...
1
vote
0answers
238 views

Choppy sound with flashpayer

After a number of updates, including upgrading to flashplayer 11 and kernel 3.8.2 sound from flashplayer and skype has become choppy. Setup In my setup I have .ascoundrc set up to use pulseaudio ...
2
votes
1answer
2k views

Ubuntu: wire network is not stable and must restart network-manager periodcally

I don't know why my wire network now is not stable. After a short time of using, maybe 30 minutes, 15 minutes or maybe just 2 minutes, my network is down. When my network is down, I must run this ...
4
votes
1answer
718 views

Configuring Apache to Require a Client Certificate

I want to implement mutual authentication (two - way ) with apache web server. References : 1.Failed to sign CSR with the CA root key 2.Firefox error message when adding client certificate ...
2
votes
1answer
276 views

OpenBSD 5.2 and Intel GMA X4500: How to get the X Window System to work

I've just installed OpenBSD 5.2 on my desktop computer and I can't get the X Window System to work. My graphics card is Intel GMA X4500. When I run startx, my system freezes and no keyboard ...
2
votes
1answer
136 views

Reorder items in an XFCE4 menu

In the Application menu, the "Lock Screen" item is misplaced, does anyone know how to place it just above "Log Out"? Shows "Lock Screen" somewhere in the middle but should appear near the bottom, ...
4
votes
3answers
5k views

Passing multiple directories to the -prune option in find

I am using find to locate and delete backup files but wish to exclude certain directories from the search. The backup filenames could terminate in .bck, bak, ~, or backup. The Minimal Working Example ...
2
votes
2answers
1k views

Redirecting Multiple Commands as Input

What is the correct way to redirect the output of multiple commands as input for another command? e.g. $ command < (command2 | grep pattern)
4
votes
1answer
2k views

Getting error whenever trying to add a repository

Whenever I try to add a repository I get a NoDistroTemplate Exception. I am using Linux Mint 14 Nadia. tusharmakkar08@tusharmakkar08-Satellite-C660 ~ $ sudo add-apt-repository ppa:webupd8team/java ...
2
votes
3answers
1k views

telling network manager to temporarily ignore a network device

I have a laptop with debian. Networking is configured with NetworkManager. Now occasionally I want to connect a device to its wired ethernet port and then bridge wireless to it. That all works in so ...
-2
votes
1answer
158 views

file type determine [closed]

As part of the product, there were several scripts which was provided. In one of the scripts, I've found the following line which seems not to work properly find . -name *.old -type f -mtime +7 | ...
1
vote
1answer
238 views

Reading encrypted partition with broken LVM2 inside?

I overwrote some LVM2 metadata in much the same way as Recovering overwritten LVM metadata . That is, I attempted to install Debian 6.0.7 on a system with existing encrypted volumes and LVM2 volumes. ...
8
votes
2answers
3k views

Add a file to a different path in a zip file

I have a file that placed in the following directory: folder_A/another_folder_A/file_to_add.xml Now, what I want to do is simply add the file to a folder in an existing zip archive. For example ...
3
votes
1answer
224 views

How do I install packages permanently on my Beagleboard?

I have spent some time getting my BeagleBoard XM computer up and running with the default Angstrom demo image after it has sat unopened for close to a year. I've been able to interact with it through ...
0
votes
1answer
3k views

Question About Bootloader Partition (Mint)

I have a quick question that I ran across while trying to install Linux Mint along with Windows 8 on my computer. I'm pretty new to Linux stuff so I'm sorry if this is pretty obvious. I'm mainly ...
9
votes
2answers
15k views

How to Reset/Cycle Power to a PCIe Device?

I have a PCIe device that only works correctly when the computer is fully powered off then on again. Issuing a simple reboot or reboot -p command does not appear to cycle the power to the PCIe card, ...
6
votes
2answers
729 views

Bash : command line with optional arguments

I'm running this kind of code: #!/usr/bin/env bash set -u exclude1='--exclude=/path/*' exclude2='--exclude=/path with spaces/*' exclude3='' # any 'exclude' can be empty tar -czf backup.tgz ...
0
votes
1answer
4k views

How do I mount a CloneCD .img file?

CloneCD is proprietary. I have a bunch of images that were created with in. Inside of the .CCD file it says. [CloneCD] Version=3 How do I mount this?
4
votes
1answer
1k views

How do I mount a Windows folder with cifs on Raspbian

I'd like to access the music library from my desktop with my Raspberry Pi, and I'd like to do this via Samba/cifs. I did the following: Set the folder Q:\musik as a shared folder on my Windows ...
1
vote
1answer
69 views

Custom access/launcher

I'm not sure what to call what I want, so I'll just describe what I want to do. What I'm doing is setting up an old laptop, with gentoo, for my kids. I want to have some program on there that, with a ...
3
votes
3answers
3k views

Colorize Bash Console Color

I need to be able to set my CentOS 6.4 bash prompt color to yellow. I've managed to find where to set this (.bashrc) and the ANSI color for yellow (\e[0;33m). I've setup my prompt as follows: ...
0
votes
1answer
134 views

Apache won't read file which are being actively written

I want to show a log via a webpage. Every 0.5 seconds a script replaces the data in the log with the newest measurements. When this script is running and updating the file I cannot see the file in the ...
2
votes
0answers
1k views

Ubuntu : after upgrade, wire network is unstable

Yesterday I have upgraded to Ubuntu 13.04. After I upgrade, I have a serious problem with network (I use wire network): my network is unstable. After a short time using it, it often disconnects. It ...
0
votes
2answers
94 views

Why is my Yellow Dog keyboard layout wrong? [closed]

I just installed Yellow Dog on my PowerBook G4, and it worked, and noticed my mac keyboard. Then, suddenly, the layout went wrong. Most keys don't do anything, and I have letters instead of arrow ...
17
votes
5answers
1k views

In what situations would a user not let the shell record his command into history?

If I add export HISTCONTROL=ignorespace in .bashrc, bash won't record any commands which have whitespace before them into history. But I do not understand under what situations it will be useful. ...
5
votes
2answers
993 views

Do I need acpid in a virtual machine?

I'm always wondering if power management facilities in a virtual machine is necessary? i.e acpid. And I'm not sure if they still function in a virtual machine.
3
votes
1answer
2k views

Firefox error message when adding client certificate signed by CA

I'm getting this message when I'm trying to add a certificate to Firefox's "your certificate tab". I generated and signed it before by a server which also is a CA. Failed to decode the file. ...
1
vote
1answer
580 views

Virtualbox kernel modules not loading at boot

I have been running virtualbox on an Ubuntu 12.04 laptop for a while and it has all worked smooth, but suddenly, probably after a kernel upgrade, the vbox* modules are not loading at boot, if I ...
0
votes
1answer
435 views

Understanding a XINU system call - getstk.c [closed]

I am having trouble conceptually understanding what is going on towards the end of this system call, and why. I understand the getstk.c method returns the highest memory address of available space, ...
2
votes
3answers
13k views

Installation problem with python-software-properties

I need to install the last version of node.js but my system has in repository older version. I need to add new ppa source. I followed this tutorial Question - when I install ...
2
votes
2answers
284 views

Script for opening emacs in two different ways

I've attempted to write a small script that will by default open emacs with emacs -nw foo by simply typing emacs foo and when I want a window typing emacs foo & The script I attempted to ...
0
votes
1answer
62 views

Where to put generated certicate for user [duplicate]

I was following this tutorial and I want to implement mutual authentication between server and client, where server and CA (certificate authority) is the same thing. I reached the last step and I ...
1
vote
1answer
1k views

How to clone a read-only portion of /proc file system

The problem with reading /proc file system is that it is not atomic. I tried using a library (procfs in Python) that wishes to read it, but it has glitches about 5% of the time because the process ...
4
votes
4answers
34k views

`cp` permission denied when copy a file owned by `root`

I have a folder udp_folder2 d------r-T 41 root root 4096 Apr 26 21:17 udp_folder2 when I'm with user other than root, I can't cp -r it into a new folder it says: Permission denied ...
0
votes
1answer
135 views

can someone fix my PS1 for bash

I seem to have too many colour escapes so it only works in some prompts - can someone please correct for me ? PS1='\[\e[0:35m[\u@\e[0:33m\h\e[m \e[0:35m\w]\e[m \e[0:33m`git branch 2> /dev/null | ...
1
vote
1answer
2k views

Failed to sign CSR with the CA root key

I'm trying to implement Mutual Certificate Authentication , I have to be the CA and server at the same time , generate certificates and sign them for users. and I'm following this tutorial which is a ...

15 30 50 per page