7
votes
1answer
4k views

Webcam on Angström

I am running Angström on my BeagleBoard-xm. I want to use a webcam (I have Microsoft LifeCam Cinema and Logitech C310). I installed v4l-utils, libv4l-dev and kernel-module-uvcvideo with opkg. But the ...
3
votes
1answer
1k views

Lock file from being edited or deleted

I have CentOS and cPanel installed. I want to lock certain files (e.g. .ftpquota) from being deleted through FTP. I tried to change the ownership to root:root or root:lock but it didn't work; neither ...
3
votes
5answers
3k views

How do I “fix” Flash?

I’m brand new to linux and, coming from Windows, I sometimes find it quite daunting. I managed to install openSUSE and after much trial and error I discovered how to install some software, and ...
42
votes
2answers
19k views

Awesome symbols and characters in a bash prompt

I just ran across a screenshot of someone's terminal: Is there a list of all of the characters which can be used in a Bash prompt, or can someone get me the character for the star and the right ...
3
votes
2answers
7k views

What does this hard disk error message mean: “Current Pending Sector Count …”?

I grabbed this information from Disk Utillity on Linux Mint: Current Pending Sector Count: Normalized: 200 Worst: 200 Threshold: 0 Value: 22 sectors What does it mean? Is it possible to ...
1
vote
0answers
191 views

configuration for my wireless connection

I had connection issues so I changed some wireless configuration. I think I solved the problem, but I still have minor issues. First thing I had my Internet connection freeze badly, Then after doing ...
11
votes
3answers
3k views

How can I pipe output to another process, but retain the error state of the first process? [duplicate]

Possible Duplicate: Get exit code of process that's piped to another I am using the following command line (in a makefile) to pipe the verbose error messages from my compiler through a ...
1
vote
0answers
796 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
345 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
764 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
260 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 ...
4
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
451 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
105 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 ...
4
votes
3answers
7k 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 ...
6
votes
3answers
44k 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
4k 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
211 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
372 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 ...
1
vote
1answer
631 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
250 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
149 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
185 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
687 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
857 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
13k 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
999 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
8k 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
775 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
865 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 ...
10
votes
4answers
16k 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
290 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 ...
2
votes
1answer
798 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
881 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
717 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
1k 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
542 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
668 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
442 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
839 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
1k 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 ...
11
votes
4answers
5k 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 ...
5
votes
1answer
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?
0
votes
1answer
427 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 ...

15 30 50 per page