3
votes
2answers
513 views

How to force a connection to a certain host to use to a specific source IP?

When using the Shoutcast2 yellowpages there is a really annoying issue that it always uses the default IP the system uses for an outgoing conection to register itself even if the server is configured ...
5
votes
3answers
3k views

Is it possible to login as root user in LXDE desktop environment?

Is it possible to configure certain settings to allow me to login as root user into the GUI on a Fedora 17 with an LXDE desktop? I know I can do it using KDE, but KDE is not an option for this ...
1
vote
2answers
705 views

I don't know how to connect preconfigured OpenWRT router to my home network

What I need to do is to connect preconfigured OpenWRT router to another network through WAN cable connection. My router assign the IP address to new router but even if I use this address it still ...
28
votes
6answers
27k views

How to get keycodes for xmodmap?

I'm trying to use xmodmap to remap Alt / Super keys on Dell L100 keyboard, and have trouble getting the keycodes. For instance, using xev doesn't give me keycode for Alt FocusOut event, serial 36, ...
1
vote
1answer
570 views

Trying to install fonts on Linux Mint Lisa, but it looks like I have a permissions or ownership problem

I downloaded the Source Code Pro family of fonts, but cannot install them via the Font Viewer. If I give myself admin powers, I can manually add them to the rest of the fonts, so I'm guessing it's a ...
5
votes
4answers
876 views

Look for English word in a file via terminal

How to find and print out English words contained in a file via linux command line?
7
votes
1answer
9k views

Cannot delete a file - permission denied - why?

[db2inst1][testing ~/sqllib/db2dump] rm db2diag.log rm: cannot remove `db2diag.log': Permission denied [db2inst1][testing ~/sqllib/db2dump] id uid=1002(db2inst1) gid=107(db2iadm1) ...
4
votes
1answer
1k views

scp permission denied after 'hardening' with bastille

I recently 'hardened' two Ubuntu servers using Bastille, and now I get permission denied: scp whenever I try to scp files in. SSH login works fine. I've tried adding an /scp-dump folder with 777 ...
6
votes
1answer
1k views

How do I pipe notifications into my statusbar?

I am trying to instate a more graphically minimal notification system in Arch Linux. Specifically, I've taken interest with programs such as dzen2 or conky that allow for more text-based status bars. ...
10
votes
4answers
17k views

Purpose and typical usage of /etc/rc.local

The header looks like this: #!/bin/sh -e # # rc.local - executed at the end of each multiuser runlevel # # Make sure that the script will "exit 0" on success or any other # value on error. What is ...
3
votes
3answers
2k views

Average rows with same first column

Given a file with two columns: Id ht 510 69 510 67 510 65 5l0 62 510 59 601 29 601 26 601 21 601 20 I need a way to coalesce all rows with the same ID into one that has an average height. In this ...
19
votes
3answers
15k views

Are there any drawbacks from using mount --bind as a substitute for symbolic links?

Symlinks have limitations in how functions like ls, mv, and cp can operate on them because unlike shell initiated commands like cd, these functions do not have information about how the user accessed ...
1
vote
1answer
100 views

help installing checkinstall locally

I'm trying to install checkinstall locally in my home directory. Though, in the INSTALL file is only described how to do a system wide installation: Simple enough: make su make install checkinstall ...
5
votes
4answers
11k views

yum Damaged repomd.xml file

I'm having trouble doing anything with yum on Fedora 16. Here is the output I'm getting: [user@mycomputer yum-3.4.3]$ sudo yum update [sudo] password for user: Loaded plugins: langpacks, presto, ...
3
votes
3answers
522 views

A lot of errors on ext4, however smart doesn't show any errors

I have a Debian box with additional ( it is not a system disk ) 1.5Tb sata hdd (wd caviar green). There is only one partition on the whole disk. Disk is used for backups from remote system (with ...
6
votes
0answers
99 views

What's the size of a folder entry? [duplicate]

Possible Duplicate: What does size of a directory mean in output of 'ls -l' command? user@~ > ll /tmp/foo drwxr-xr-x 2 user user 4,0K 1 oct. 15:15 bar What are those 4,0K ? ...
2
votes
1answer
2k views

How can you tell if GStreamer plugins are installed correctly [closed]

I've installed GStreamer plugins for Fedora 14 using yum. However, when running a qt-phonon application with the GStreamer backend, I get the error Warning: You do not seem to have the base ...
6
votes
1answer
708 views

Symbolic links with ls, mv: forcing the functions to utilize “logical” addresses (remembering the original path)

It seems that for many basic functions operating on symbolic links, the physical path is used by default. However, cd works fine. When moving into a symbolic link, cd remembers where I came from so it ...
1
vote
2answers
2k views

Login fails from Windows on NTFS-3G Samba Share

I have a Raspberry Pi (though could be any Debian Linux box) connected to an external hard disk formatted as NTFS. My disk mount in fstab is: /dev/sda1 /media/disk ntfs-3g ...
5
votes
4answers
4k views

AWK - how to reduce the greed of a regular expression?

I have an example: echo "@article{gjn2010jucs, Author = {Grzegorz J. Nalepa}, " | awk '{ sub(/@.*,/,""); print }' Is it possible to write a regular expression that selects the shorter pattern? ...
2
votes
2answers
589 views

How to configure dhcpd to register ipv4 with bind while having static ipv6 addresses?

I have IPv6 configured on my local network via radvd; it advertises a routable IPv6 block, that all the machines auto-configure.s I have IPv4 assigned to a NAT'd block via dhcpd and that updates ...
1
vote
1answer
935 views

signal handling in the unix kernel

I was reading The Design Of UNIX OS and had a doubt. A signal handling function can be specified in the signal() call. The handler is supposed to execute when the process receives that particular ...
2
votes
2answers
970 views

debian apt-get dist-upgrade from squeeze to wheezy failing on vlc

I can't continue until I solve this bug, I've tried removing the dpkg so it redownloads it but it still has this error when trying to dist-upgrade, or now, apt-get -f install. root@hayek:~# apt-get ...
4
votes
1answer
2k views

How to tail/grep/awk the last N bytes of a file, rather than lines

I have an application that is logging to a plain text log file (myapp.log) but it doesn't seem to be writing new line characters at the end of each log entry. If I execute a command like tail -n 50 ...
0
votes
1answer
487 views

What timezone formats are there?

What timezone formats exists on UNIX systems? Can someone gather them in a short answer? How can I recognize them?
3
votes
4answers
2k views

Which distro to study for LPIC?

Which Linux distribution would you recommend for preparing myself for LPIC and gain some experience in configuring the system?
2
votes
1answer
239 views

No sound with the newest kernel version - is this a kernel bug or something else?

I have an external USB sound card on a Fedora 17 system (64 bit). It stopped playing sound after I updated the kernel to 3.5.4-1 (the problem persists under 3.5.4-2). As the sound card still plays ...
6
votes
2answers
3k views

Reading character by character with bash read

I've been trying to use bash to read a file character by character. After much trial and error, I have discovered that this works: exec 4<file.txt declare -i n while read -r ch <&4; ...
3
votes
1answer
8k views

What killed tty main process suddenly?

I'm doing some stress testing of a piece of software that can run shell commands. Periodically, the system logs me out during stress testing. My record of the commands that triggered this always ...
2
votes
2answers
508 views

.lit reader for Linux

Is there any reader for ebooks in .lit format for Linux? Or is there one for Windows that I can run on my Linux with Wine? Distro: openSUSE 12.2 x86_64 and Linux Mint 12 x86_64
0
votes
1answer
3k views

Unique lines based on the first field

How can you find unique lines or duplicate lines in a file based on the content of the first field, or the first n characters ? The uniq command on OS X lacks the -w switch that is available under ...
1
vote
1answer
2k views

How to get output from Nagios in a file

I have configured Nagios monitoring tool for a linux server m/c to monitor another linux host m/c(till now I am monitoring a single m/c only). I have followed the official documentation and installed ...
0
votes
0answers
343 views

How do you access internet in RHEL 5 using Android smartphone USB LAN? [duplicate]

How do you access the internet in RHEL 5 using Android smartphone USB LAN?
8
votes
1answer
3k views

Bash history with timestamps

I would like to keep timestamps on the commands logged in my Bash $HISTFILE, is it possible? I did not manage to set it up using man bash as an information source. My other options are as follows: ...
1
vote
2answers
2k views

Reserved characters in file names

I was under the impression that the only character not allowed in file names was /, but I don't seem to be able to create a file whose name contains characters such as *, \, ", :, |, < or > ...
16
votes
2answers
3k views

bash script to detect and record mouse movements?

I need to be able to record the mouse movements every so often (every .2 of a second for example) and have them in a coordinate representation instead of a diff. I found the following script: ...
2
votes
1answer
735 views

How to put the completed downloads in a directory with aria2c?

alias download='while true; do timeout -s 9 1260 aria2c *.torrent --lowest-speed-limit=1024 --disable-ipv6=true --seed-time=0 --max-connection-per-server=6 --enable-rpc=false; sleep 1; done' alias ...
13
votes
6answers
1k views

Is it a bad idea to use an SD card for home directory?

I'm planning to make an SD card (or a flash drive) my home directory so as to be able to work on different PCs without much hassle. Is this a bad idea for some reason?
6
votes
4answers
3k views

How to get the relative paths with ls?

I'd like to do something like this to move the last two downloaded files: mv ` ls -rt ~/Downloads/ | tail -2 ` . Unfortunately, ls only gives the filenames. How can I adapt the code above? (Before ...
2
votes
1answer
1k views

RHEL how to sync network settings between GUI and configuration files in /etc/sysconfig/network-scripts/?

In RHEL, we can change network settings either using GUI or editing the configuration files in /etc/sysconfig/network-scripts/. I would like to know how the network settings (e.g. IP address, ...
2
votes
2answers
820 views

Fluxbox, how to launch some applications in a specific workspace at startup

I would like to launch some applications at startup, but I want them to be in a specific workspace. I can edit the fluxbox startup-script to launch those applications, but I don't know how to specify ...
3
votes
1answer
141 views

the return built-in

According to the Open Group, [t]he return utility shall cause the shell to stop executing the current function or dot script. If the shell is not currently executing a function or dot script, ...
3
votes
2answers
2k views

MySQL 5.1 to 5.5: all UTF-8 characters lost!

I decided to upgrade my Debian installation, and after some days using MySQL 5.5, I found that mysql prints garbage to the terminal intead of UTF-8 characters. I had a look at the SQL file that was ...
1
vote
1answer
289 views

Scientific Linux 6.3 run evince in SELinux sandbox

I'm trying to run evince in the SELinux sandbox: sandbox -X /usr/bin/evince Unixforpoets.pdf but after waiting for minutes nothing happens, console doesn't outputs anything. So I collected the ...
1
vote
1answer
192 views

Is it possible to uncolor STDIN before writing it to file? [duplicate]

Possible Duplicate: Removing control chars (including console codes / colours) from script output Is there a utility which uncolors colored output? Something like the uncolor utility in the ...
3
votes
1answer
321 views

Unable to uninstall libglib2.0-0 from Software Center

I have a fresh install of Debian 6.0.5 (i386) on VMware Player. I was trying to install libglib2.0-0 using this command: sudo aptitude install libglib2.0-0 Unfortunately, I don't remember the ...
3
votes
1answer
572 views

tar: exclude gzip file, and don't try to gunzip it

I would like to skip a large gzip file when I extract a tar file, but everytime tar starts to gunzip it to look inside it seems. Even when I just try to peek inside tar seems to start gunzipping it, ...
7
votes
2answers
327 views

Search MP3/Ogg files by tags/parameters from the command line

Is there any utility to search MP3/Ogg files by tags (or other characteristics) from the command line? (e.g. finding all audio files longer than 10 minutes with genre set to 'Rock'). I found this, ...
3
votes
6answers
238 views

Extracting help message from script itself

I want that my help message be extracted from the script itself. #!/bin/bash # # foo - do things # Author: John Doe <jhon@doe> # ---------------------------------------------- # SYNOPSIS # ...
2
votes
1answer
357 views

How do I specify the keyserver with GPG?

Tutorials online say to use the option --keyserver, like this: gpg --send-keys <keyID> --keyserver 'hkp://keyserver.ubuntu.com:11371' but gpg doesn't recognise the option --keyserver. What ...

15 30 50 per page