2
votes
0answers
826 views

Defining a TV on a laptop as a separate xorg screen

I'm currently using the OpenELEC embedded XBMC distro with my HP Pavilion dv6 laptop (which is based on AMD Vision, so I'm using fglrx for video). It's hooked up to my Sony 1080p telly via HDMI. ...
2
votes
0answers
380 views

Why does the following osd_cat script fail?

I'm writing a simple osd_cat-based utility to display messages received through libpurple (via Finch or Pidgin, for example). As of now, this is what I have managed to create: dbus-monitor ...
7
votes
1answer
857 views

Screen cuts off beginning of long command when accessed through bash history

I'm using the default versions of bash and screen in OS X Lion. When I'm in a screen session and I scroll back through the bash history and I come to a command that is long enough to wrap. I might ...
6
votes
2answers
332 views

Output of which command used for input to cd

I would like to take the output of a which command, and cd to the parent directory. For example, say I have the following: which someprogram With output: /home/me/somedirectory/someprogram And I ...
2
votes
4answers
4k views

Can't Install/Update packages on newly installed CentOS

I installed CentOS6 and it is the first time. I tried to install/update packages. But I coudn't. Here is the output and it doesn't stop. How can I solve this? [root@localhost suranga]# yum update ...
5
votes
3answers
1k views

I want to use a bluetooth keyboard during initram

I use encryption on my hard drive. To boot I need to type a password during initram to decrypt the root partition. I'm running Archlinux on a tablet PC without physical keyboard (only Bluetooth). For ...
4
votes
2answers
462 views

Ubuntu 11.10 with gnome shell - suspend wake up sound

I would like to be able to enable some sound file to play whenever I suspend and wake up my netbook (MSI Wind u100) but I can't found a way to do this in gnome shell. I'm using PinguyOS 11.10, which ...
3
votes
2answers
107 views

dealing with un-executable commands inside a shell-script

I am given an assignment like this: Write a Bash script that takes a *.tex file as command-line argument and checks if the file executes correctly without any errors. If it executes without any error ...
5
votes
3answers
8k views

What and how is the encoding of a raw (headerless) audio file?

I have done this: me@riverbrain:~/sgf$ echo "test" | text2wave -otype raw -F 16000 >> test.raw which produced a headerless audio file. The wonderful thing about this file is that it can be ...
8
votes
3answers
55k views

How can I know if IP Multicast is enabled

I have scripts that run IP multicast tests; however, my scripts are failing on a particular linux machine. I know that I can look at CONFIG_IP_MULTICAST in the kernel configuration file to determine ...
0
votes
2answers
5k views

clear tmpfs in my case

I am on a Ubuntu machine. I have make a directory under root directory, by: $ sudo mkdir /hello $ sudo mkdir /hello/bye Then I mount tmpfs with size 1024M to /hello/bye by: $ sudo echo "tmpfs ...
2
votes
2answers
226 views

Auto correct path when running a command from history?

I perform a recursive search to find a command I executed few days back and I want to run it. However that command should run from the path from where I ran it previously from and not where I ...
4
votes
2answers
408 views

vim horizontal line count

Using set number you can turn on vertical line count. Is there also a command to turn on horizontal line count? I hate talking my hands away from typing and would like to be able to quickly address ...
2
votes
1answer
676 views

Some keyboard shortcuts do not work in Compiz

I've bound Win-R with the Run Application dialog in Metacity. However, the shortcut doesn't work when switched to Compiz. The entry Show the panel's "Run application" dialog box even doesn't appear in ...
6
votes
1answer
259 views

Detecting computer models , e.g the vendor

How can I detect the model of a computer, like Leveno or Sony? Is there any program can do this, for both PC & Laptop? (I just want to load a specific driver when the target model is detected.) ...
1
vote
3answers
151 views

Transferring access privileges from root to regular user

I log in to Ubuntu with the username student. There are some directories only the root user is allowed to access, for example /var/lib/mysql, (I know I can use sudo to access it but it is not what I ...
1
vote
1answer
195 views

Can today Linux/X/Mesa/whatever versions use OpenGL with nVidia GeForce 4 Go 420?

I don't know exactly all the libraries responsible for graphics rendering and acceleration in a common Linux PC of today but I wonder if I can install an up-to-date Linux (like XUbuntu 11.10 or Arch) ...
0
votes
1answer
786 views

source .bashrc command doesn't work

I installed TinyOS on RedHat for academic purposes. Now I can't log in to the system. I logged in in single user mode. Then I tried to log in. I couldn't login as any user. I couldn't start the X ...
3
votes
3answers
1k views

Skype missing GPG key

I wanted to install Skype on Scientific Linux 6.1: yum install alsa-lib.i686 dbus-libs.i686 e2fsprogs-libs.i686 expat.i686 fontconfig.i686 freetype.i686 glib2.i686 glibc.i686 keyutils-libs.i686 ...
2
votes
1answer
952 views

Auto-update on Scientific-linux 6.1 64bit

yum remove PackageKit* what's next? I tried: yum install yum-autoupdate but I can't see any config file for it. How can I set the auto-update function* on Scientific-linux 6.1/GNOME? *want to ...
4
votes
2answers
16k views

How to find HDs associated with a mount point

I am running on Sun Solaris system. I would like to know the following How to find the HDs associated with a mountpoint? How to find all available HDs (those which are used as well as unused for ...
0
votes
1answer
1k views

Zram does not start at start-up

I am using pinguyos 11.10. Pinguyos is a variant of Ubuntu 11.10. I have installed zram like this: sudo add-apt-repository ppa:shnatsel/zram sudo apt-get update sudo apt-get install zramswap-enabler ...
0
votes
1answer
9k views

Different ways of using expr command [closed]

I'm trying to learn the bash expr command inside and out. What are some of the most basic to the most creative/tricky/unexpected ways to use the expr command? Small, manageable examples are great.
3
votes
2answers
856 views

Compressed filesystem inside a file in Linux

I have a flash drive which is FAT32 formatted. I want to put a linux filesystem on the drive inside a file. I know I can do this by creating a file and formatting is with ext3 (or any other file ...
2
votes
1answer
895 views

Debian + Nginx/Unicorn permissions

Is there a security risk in running a web server like Unicorn as root? The Nginx master process runs as root, the Nginx worker runs as the limited www-data user, but I can't set another user like ...
12
votes
4answers
20k views

Grep: how to add an “OR” condition?

I am a total regex newbie. I find it confusing and I avoid it like the plague (wanna take some guesses as to why I'm not good at it?). But I suspect it might be the solution to my question. Which ...
2
votes
0answers
3k views

Debian Wheezy netinstall can't configure DHCP

I am reinstalling my Debian system with the Wheezy netinstall image on a USB drive. I have a wireless router that also comes with ethernet ports, so I could either connect to my LAN via wifi OR ...
3
votes
3answers
338 views

Track daily directory changes (and email them)

I have a Debian powered NAS server (ReadyNAS) with a deep file hierarchy. I'd like to get notified daily about what has changed in some of its directories and their subdirectories. So if someone ...
3
votes
1answer
871 views

List ports tunnelled on OpenSSH server

Is there any way to list the tunnels that SSH clients connected to my OpenSSH server have set up? I can use e.g. lsof -i to show connections that are being actively tunnelled, but I'd like to be able ...
2
votes
0answers
966 views

USB keyboard won't work with usbhid driver

I have an HP thin client (model t5325) which runs Debian Linux (kernel 2.6.22.18-1-armel). We are testing some kiosk keyboards from Operator Interface Technology which are presenting themselves to ...
3
votes
3answers
1k views

Implementing rollback in bash

I have a script that is composed of staged operations which work mostly in a start/stop/status manner. The issue I have is that when starting, each of the operations can fail and I need to do a safe ...
3
votes
0answers
732 views

tunneling FON traffic via Tor

I would like to tunnel the traffic of my FON router through Tor. For that I added a second network card to a local server and connected the FON router to it. Then I set up a DHCP server and configured ...
1
vote
3answers
2k views

How to make a src.rpm unpack the source to whatever directory I want?

I'm trying to make an rpm that will unpack the source to a custom directory, such as /asdf. When I run it, it always errors out saying "cannot create %sourcedir /usr/src/redhat/SOURCES". Is there ...
3
votes
2answers
580 views

Syncing two computers with unison and ssh

I have two machines, one is a laptop and the other is a desktop computer located in my room at the university behind a firewall. Is there a way I can use unison to synchronize folders between these ...
0
votes
1answer
765 views

Gracenote database

I use GRIP to convert compact discs to a format that can be copied to an IPOD using AMAROK. By default, GRIP connects to freedb to get disc and track information. I've been told that the Gracenote ...
1
vote
3answers
482 views

Is there a way to beep when tail -F stops to fetch new results?

A few days ago I asked Is there a way to make tail -F beep? Now I want to know if there is any way to use *nix utilities, to beep when a tail -F stops returning new lines for a while! I know, I ...
1
vote
3answers
1k views

Error dropping database in MySQL 5.1 on Ubuntu

I am using MySQL v5.1 on Ubuntu machine. I have a database named my_db which I would like to drop it, so I execute command: mysql> drop database my_db; ERROR 1010 (HY000): Error dropping ...
0
votes
2answers
985 views

Best Distro For Artificial Intelligence Research? [closed]

Is there a definite best distro for AI research? I want to build a AI that can be used to help me manage all my emails intelligently.
6
votes
3answers
2k views

Logged on via ssh-key, can I reset my account password?

I am logged in on a server via sshkey (ssh -i /home/me/.ssh/ssh-key me@server). I got sudo rights on that server from the admin, but I can't exercise them, since I forgot my actual Unix password (or ...
1
vote
4answers
2k views

Restart MySQL server

I am using MySQL v5.1 on Ubuntu machine. MySQL on my machine used to work. (Running mysql -u root gave me the MySQL command line.) This afternoon, I did the following thing: 1. check active process ...
12
votes
4answers
6k views

Detecting headphone connection/disconnection in Linux

I am trying to detect a signal when a headphone is connected or disconnected from the system. What is the best way to do this? If there is a special board with drivers, that will be my preferred ...
6
votes
2answers
3k views

How to reinstall apt on Debian?

I accidently removed apt-get from my Debian system by issuing: dpkg --force-depends --purge apt How can I reinstall it?
1
vote
1answer
445 views

NetworkManager on Fedora 15 can't find frequently used wireless network

NetworkManager has refused to find the wireless network I always connect to. It sees other wireless networks except the one which I need. In recent past occasions, I've had to delete the wireless ...
6
votes
2answers
2k views

Pasting from clipboard to vi-enabled zsh or bash shell

I'd like to be able to paste from the system clipboard (or text selection) into my "vi-like" shell prompt using the keyboard. I normally use zsh and sometimes bash. In both cases, I have the shell set ...
4
votes
2answers
3k views

'mysql' user and group creation, ownership settings

I know what the linux command chown does, I used it to change the ownership or group of a file. If there is a MySQL installation on a Ubuntu machine, I saw some people doing the following thing: ...
6
votes
3answers
2k views

Faster alternatives to lsof

I want to extract the process id of a certain process in order to shut it down. The process is a local web server using a certain port (localhost:3000), and I am currently doing it like this to ...
2
votes
2answers
2k views

Linking issues with libjpeg

I have a game I'm writing which recently required libjpeg. I wrote some code using libjpeg on some-other-machine and it worked as expected. I pulled the code to this machine and tried compiling and ...
4
votes
5answers
459 views

volcopy for Linux?

Reading one of the editions of the Nemeth's book (Nemeth et al), have read about volcopy -- an utility that copies a filesystem from one device to another, making "a literal copy" (here's a man page, ...
4
votes
4answers
893 views

where should I put the sudo in this command? [duplicate]

Possible Duplicate: Redirecting stdout to a file you don't have write permission on echo "some words" >> /etc/apt/source.list permission denied sudo echo "some words" >> ...
6
votes
3answers
4k views

How store in a variable a file list that includes the backslash when needed?

Main question: I am writing a script to perform a backup. I make a list of files in the following way: LISTOFFILES=$(find ~ \( -name '*.[pP][dD][fF]' -o -name '*.[oO][dD][tT]' \)) The variable ...

15 30 50 per page