27
votes
8answers
11k views

List explicitly installed packages

In Gentoo there is the file /var/lib/portage/world that contains packages that I explicitly installed. By explicit I mean, packages that I choose, not including anything installed by default, or ...
17
votes
7answers
15k views

Using xargs with input from a file

Say I have a file with the following bob john sue Now these directly corrospond to (in this case) URL pattern such as http://example.com/persons/bob.tar, john.tar, sue.tar. I would like to take ...
142
votes
6answers
18k views

What do the numbers in a man page mean?

So, for example, when I type man ls I see LS(1). But if I type man apachectl I see APACHECTL(8) and if I type man cd I end up with cd(n). I'm wondering what the significance of the numbers in the ...
1
vote
1answer
512 views

How to unpack libc6 source on Hardy using debian/rules?

How do I unpack the libc6 source code on Hardy without building everything? I run apt-get source libc6 and I get $ ls -1d glibc-2.7/* glibc-2.7/debian glibc-2.7/glibc-2.7.tar.bz2 ...
5
votes
2answers
27k views

./executable: cannot execute binary file

I have a script that works well when I ssh to the server to execute it myself, but has problems when Hudson, a continuous integration server, runs it. I am automating tests on an embedded linux ...
1
vote
1answer
756 views

Example for kernel timer Implementation in Linux

Could you please give any basic example of a kernel timer (start_ktimer) implementation in Linux?
30
votes
3answers
39k views
3
votes
2answers
831 views

In new users's home directory create sub-directory with a specific group and permissions

Linux will copy the the contents of /etc/skel when a new user is created. I want to have a sub-directory in each user's home directory, MyStevedore. I want this directory to have the owner be the new ...
3
votes
1answer
309 views

Trying to set up a server/workstation SLED environment

I'm considering a number of desktop distros for use in our office. It seems like SLED matches what I want more than any other distro, especially home user focused distros. In an attempt to learn more ...
3
votes
1answer
3k views

How to have cron run a python script as root?

How can I get cron to run a python script as root? Here is my crontab file: 0 * * * * ./twitter/twitter.py Am I doing something wrong?
89
votes
4answers
342k views

How to switch between users on one terminal?

I'd like to log in as a different user without logging out of the current one (on the same terminal). How do I do that?
1
vote
2answers
201 views

Resizing a Logical Volume holding a live virt guest

I've got a Red Hat Enterprise Linux Server release 5.5 (Tikanga). That I'm running four virtual guests on. In /dev/VolGroup01 I have the following partitions xenvm01 xenvm02 xenvm03 Then I have ...
3
votes
2answers
981 views

Difference between wget versions

I have problem with wget behavior for 1.10 and later versions. I am using wget to download a report from my app. version 1.10.2: >wget-1.10.2.exe --http-user=trader --http-passwd=trader ...
8
votes
2answers
4k views

Creating a UNIX account which only executes one command

Is there a way to create a user account in Solaris which allows the users to run one command only? No login shell or anything else. I could possibly do it with /usr/bin/false in /etc/passwd and just ...
9
votes
2answers
1k views

What encryption does vim -x use?

I read man vim, :h -x and :h encryption none of this actually says what algorithm it's encrypted with.
4
votes
3answers
2k views

Make terminal text color different when in ssh session

Is there a way to make my terminal (konsole) display different text colors when I'm in an ssh session WITHOUT modifying the remote host's color configuration? Like, maybe automatically switching to a ...
2
votes
1answer
480 views

Is “export” needed when setting HISTIGNORE in bashrc files?

As I understand it, exporting an environment variable makes it available to any processes spawned from the current one. But the only processes that will be interested in the HISTIGNORE variable (and ...
7
votes
2answers
424 views

Strip // Comments From Files

What's the best way to strip all code comments in a given directory? I'd like to strip out all // ... EOL comments, and /* blah \*/ (or /** ... \*/) comments as well. This is a PHP project, and I'd ...
4
votes
2answers
2k views

Expand KDE activities concept to the shell

Sometimes, I use KDE, and one of the things that I like the most in KDE 4 is the activity concept. At work, it is very useful because I often work on several different projects during one day. ...
8
votes
4answers
6k views

/etc/rc.d vs /etc/init.d

Is ubuntu's /etc/init.d directory exactly equivalent (functionally) to what I presume to be the more standard /etc/rc.d/ (at least on arch)? Is there any particular reason canonical used init.d ...
3
votes
1answer
211 views

KDE toolbar background messed up

At one day (it has been for a while now) the background of KDE main toolbar started looking really strange: screenshot (it looks to me as the alpha channel of the background image is missing). ...
13
votes
1answer
7k views

touch: cannot touch `foo': No such file or directory

What could cause touch to fail with this error message? touch: cannot touch `foo': No such file or directory Note that an error due to incorrect permissions looks different: touch: cannot touch ...
3
votes
1answer
291 views

Migrating from tp_smapi to 'normal' ACPI support in 2.6.36

I used zen kernel patchset for a long time which included tp_smapi patch. Recently in zen-stable tp_smapi was removed as "We no longer need tp_smapi as of 2.6.36 - the in-kernel thinkpad acpi support ...
1
vote
2answers
110 views

Is there a simple flag to prevent installing X and anything that depends on it via ports?

I'm running FreeBSD in a small VMWare image and I want to keep it headless. Is there a setting someplace that will guarantee I never pull in X as a dependency, or will I have to rely solely on eternal ...
10
votes
2answers
2k views

31 Debian CDs — Why? and which do I need for a vanilla desktop install?

I've been using Linux (Ubuntu) for a couple of months now, and I want to try Debian to see how different it is. Well, I've already found a couple of differences.. The first one that Debian-Live ...
31
votes
7answers
22k views

How to grep standard error stream (stderr)?

I am using ffmpeg to get the meta info of an audio clip. But I am unable to grep it. $ ffmpeg -i 01-Daemon.mp3 |grep -i Duration FFmpeg version SVN-r15261, Copyright (c) 2000-2008 Fabrice ...
5
votes
2answers
432 views

Tracing the workings of a function in Emacs

I am learning emacs lisp. One of the things I was playing with was setting variables. So I go and set fill-column to 50 (setq fill-column 60). After this evaluating fill-column does give me 60, but ...
1
vote
5answers
404 views

Does verifying packages enhance security and/or stability of a system?

RedHat/CentOS and Ubuntu both provide packages to verify the contents of a package. CentOS uses rpm -V. Ubuntu uses debsums. I've spoken to admins who run these tools to verify the packages on their ...
22
votes
6answers
9k views

How to print only defined variables (shell and/or environment variables) in bash

The bash builtin command set, if invoked without arguments, will print all shell and environment variables, but also all defined functions. This makes the output unusable for humans and difficult to ...
19
votes
1answer
5k views

Difference between environment variables and exported environment variables in bash

Bash seems to differentiate between variables which have been exported and those which have not. example: $ FOO=BAR $ env | grep FOO $ set | grep FOO FOO=BAR set sees the variable but env does ...
2
votes
4answers
16k views

How to install Adobe Acrobat Reader in Debian?

I've got deb http://debian-multimedia.org squeeze main in "/etc/apt/sources.list", but wajig update && wajig install acroread results in: E: Package ‘acroread’ has no installation candidate ...
1
vote
1answer
270 views

VPN issues on web browsing

I'm using Ubuntu Maverick and this is the setup: Our router connects us to the company's VPN through which we can access some internal websites. I have to connect also to a customer's VPN in order to ...
2
votes
1answer
186 views

Stop cron script from destroying my mirrorlist with invalid data

I have to following cron script that runs daily. As you should be able to see from the code, it outputs the results from reflector to /etc/pacman.d/mirrorlist. $ cat /etc/cron.daily/update-mirrorlist ...
13
votes
2answers
2k views

How to change the name of a vim buffer

Is it possible to change the name of a buffer in vim? Specifically, I'm using Conque Shell to open shells in vim (each shell is in a buffer) and with multiple shells, I see: 10: bash - 1 11: bash - ...
4
votes
2answers
2k views

How can I have activity in a Dropbox folder logged?

I have a folder shared with others through Dropbox. When a file is added to this folder, I get a system tray notification in KDE --- but of course if I'm not at my computer, I wouldn't see the ...
0
votes
2answers
2k views

how to get IP from DHCP in network in redhat which is installed on VMware

I'm running Red Hat inside a VMware image (on a Windows XP machine). I want to connect the Red Hat VM to our network; do I need to configure something inside VMware or inside Red Hat? I don't have any ...
23
votes
3answers
18k views

How can I record the sound output with gtk-recordmydesktop?

I am using gtk-recordmydesktop to record the video output to my desktop. However, the videos have no sound. All the tutorials I found regarding this involved getting sound recorded from a microphone, ...
9
votes
1answer
2k views

Hard disk labels

How do I add a label to a partition on a disk, and how do I then mount it by label (manually and via fstab)? note: this is an external hard drive
2
votes
1answer
114 views

How can I create a file that just contains a binary number?

I would like to create a file that just contains a binary number. I think that touch can be used to create an empty file, but is there any way I can fill it with a binary number e.g. 10 (ten)? And how ...
2
votes
1answer
1k views

How can I check the Base64 value for an integer?

I would like to check the Base64 value for an integer. There is a base64 linux command but I don't understand how I can apply it on integers. I have tried with base64 10 but then I get the error ...
5
votes
4answers
3k views

Can I work with Sql Server, Office and C# using Linux?

I want to start working with linux, and I know I should work in that regularly to improve myself. I work with sql server, office, c# at the company. can I install and do my tasks in linux (i.e. red ...
2
votes
2answers
826 views

How do I make KDE open mail links to a webmail client in a browser?

I use webmail,specifically gmail. How do I make it so that when I click a mailto: link it opens gmail, in a browser (chromium) with the email address, in KDE? bonus points for listing other browsers ...
103
votes
3answers
16k views

What does “rc” in .bashrc stand for?

Is it "resource configuration", by any chance?
4
votes
2answers
183 views

How can I display the time when a command was executed in my bash prompt?

Currently my bash prompt looks like this $ echo $PS1 # \[\e[34m\][\t]\[\e[0m\] \[\e]0;\w\a\]\[\e[34m\]\u@\h: \[\e[34m\]\w\[\e[0m\]\n$ $ The problem is that \t will only display the time when the ...
5
votes
4answers
232 views

How could I simplify this command to only use awk?

awk '/user/ {print $1 }' /etc/userdomains | sed 's/://' the format of /etc/userdomains is domain.tld: user otherdomain.tld: otheruser
8
votes
3answers
1k views

How do I take a list and remove it from a file?

I have a long list of domain names that I need to remove from /etc/remotedomains. They're probably not in any particular order in the file. Each domain is on one line. How could I iterate through the ...
12
votes
3answers
19k views

Grabbing the first [x] characters for a string from a pipe

If I have really long output from a command (single line) but I know I only want the first [x] (let's say 8) characters of the output, what's the easiest way to get that? There aren't any delimiters.
2
votes
2answers
335 views

Shomehow the rx/tx-counters on the interface resets

When doing ifconfig from hour to hour I notice that the counters for RX/TX bytes transfers resets: RX bytes:921640934 (921.6 MB) TX bytes:4001470884 (4.0 GB) How come? I would like to keep track ...
1
vote
1answer
808 views

Optimal Linux Distro to Install to SD card to use as USB-Bootloader for PC? [closed]

(Copied from andoid stackexchange) Many people install Linux-based distros on USB drives to use for, largely, basic PC troubleshooting. Has anyone tried installing such a thing on their Android ...
8
votes
6answers
503 views

what jobs are out there for NIX geeks? [closed]

What kind of job opportunities are out there for people that have extensive experience with *NIX?

15 30 50 per page