3
votes
2answers
197 views

Peer to peer~ish LAN storage

I have a distributed application that consists in a main CMS server where "human" users can upload videos, pictures (media content, basically) and a bunch of "players" that play those videos or ...
2
votes
2answers
5k views

Undo `mv` command? [duplicate]

Possible Duplicate: Moved bin and other folders! How to get them back? Hi I'm in desperate need of help. I'm quite new to linux so please bear with my stupidity! I entered the following ...
1
vote
3answers
1k views

Saving files to NTFS is corrupted?

I have recently started using Fedora on my laptop. I've set it up so that it sits on a roughly 20GB encrypted partition and most of the Home folders (Downloads, Documents, Pictures) are symlinked to ...
10
votes
2answers
807 views

Set Xorg to use only part of the screen

My screen has 1280 x 1024 resolution. But unfortunately, rightmost belt of 200 pixels is damaged and unable do display any image. How can I set that the Xorg will treat my screen as 1080 x 1024 ...
6
votes
1answer
2k views

Why is Cygwin not sourcing my .bashrc?

I'm switching to Cygwin from the bash shell that ships with Git for Windows, and for some strange reason the .bashrc file is not being sourced when I open a new Terminal. I have to source .bashrc ...
3
votes
2answers
442 views

Print row contain maximum and minimum value

I need to read the file (contains 16K rows)and print the entire row if any of columns and all columns contains max value (100) and all columns contain min value (0).The ouput example is given ...
19
votes
4answers
2k views

Finding command execution time in hindsight

I've just executed a long-running process from the bash prompt. In hindsight, I wish I'd run time on it, or noted down the time at which I kicked it off. Is there any way of getting this information ...
1
vote
1answer
373 views

Do I need ephemeral storage?

I was running a small instance on Amazon EC2. I'm trying to migrate it to a micro as it requires very minimal processing power. One thing I just learned though, is that micro instances do not come ...
3
votes
2answers
894 views

Is it possible for a CentOS system on EC2 to not have a bootloader?

I'm attempting to look for grub: [root /]# find / -iname "*grub*" /sbin/grubby /usr/share/man/man8/grubby.8.gz /usr/share/vim/vim70/syntax/grub.vim /usr/share/vim/vim70/ftplugin/grub.vim ...
17
votes
3answers
11k views

How do I get rid of Cygwin's /cygdrive prefix in all paths?

I'm switching to Cygwin from the bash shell that ships with Git for Windows, and encountering a strange problem. Someone thought it would be a good idea to add /cygdrive/ to all paths, while I think ...
3
votes
2answers
4k views

yum - list configure flags/options used to compile package

How can I see a list of flags/options used to configure and compile a certain package in yum, without having to install it first? Say apache, for example. $ yum list available httpd Available ...
6
votes
2answers
3k views

assign shortcut key to run a script

I've written a script to change the brightness of my screen. It's useful when I am working on text mode and shortcut keys of my keyboard to change brightness doesn't work. Is it possible to run this ...
4
votes
1answer
652 views

Conditional dependencies for a Debian package

I am creating a package that needs to depend on a package if another is installed, but needs a different dependency if no such package is installed. Is that possible using just the control file of the ...
4
votes
1answer
147 views

In crontab is it possible to specify a user from a variable?

I am trying to have the following cron executed with a certain user. U=`/usr/bin/w | grep -w :0 | awk '{ print $1 }'` */1 * * * * $U /opt/script.sh It seems the deamon doesn't know how to interpret ...
3
votes
0answers
202 views

Sleep key stops working after some time

I've got a "Sleep" key on my keyboard that I use to suspend the system when I'm away from the computer for a longer time. This works fine, at least for a while after I've turned the computer on. ...
1
vote
1answer
459 views

fedora 12 sleeping forever error

After manually restarting freeze machine due to no response. It stuck on blue screen and gives error as sleeping forever. Default partitioned with LVM. Whether I need to install fresh OS or I can get ...
2
votes
1answer
3k views

system wide SOCKS5 Proxy

I connect to my Server on the internet using ssh -D 3128 user@rootserver.com. If I am right I thereby open a SOCKS v5 Proxy to my Server. Using firefox and FoxyProxy I can now add this to my proxys ...
0
votes
1answer
329 views

Scribus crashes with .ICEauthority

I've been trying to get scribus to work on my new gentoo 12.1 (amd64, XFCE, qt 4.8.2) installation, but when running as a regular user the program won't start up. Thanks to suggestions and extra tests ...
11
votes
2answers
16k views

Xfce 4: Change global keyboard shortcuts

I use Alt+Space in Emacs, but in Xfce it pops up window manager menu at the upper left corner of a window. How do i disable Alt+Space for Xfce and change global keyboard shortcuts in general?
4
votes
3answers
738 views

from a sparse file to a block device over the network

If I have a sparse file representing a block device, then how can I efficiently restore the file over a network? Ideally, I'd use rsync -S host:file /dev/sdb, but rsync won't write to block devices. ...
7
votes
4answers
1k views

Managing unofficial repositories on a Debian system

A few years ago I added this repository to my sources.list: http://www.deb-multimedia.org/ because it contained packages like acroread or flash player, which were either missing or out of date in ...
5
votes
1answer
1k views

Make thunar mount drives into /media rather than /run/media/username?

It's pretty annoying that thunar mounts a drive to /run/media/user_name/XX instead of /media/XX, can I change that behavior ? I'm running latest arch linux
18
votes
1answer
7k views

Tmux, change window pane by mouse click

Is it possible to use the mouse to navigate between different window panes which are split vertically or horizontally?
12
votes
5answers
5k views

Is there a way for linux to pick up the phone?

I know that there is a way to make Linux dial out using a modem. Is there a way to program Linux (using a library/device) to pick up the modem (record phone calls) etc? see caller id?
5
votes
1answer
4k views

Why is vim creating files with DOS line endings?

I have set fileformat=unix in my .vimrc, and yet if I create a file in vim (running in Cygwin) it persists in creating DOS files, and I have to run the little cotton-pickers through dos2unix to ...
3
votes
2answers
4k views

AWK-Find maximum value in a row & print with header

I need to read a file, find the maximum value in each row, and print the ID of the row, the column the maximum value came from (sno#), and the value from the associated lc# column. If the maximum ...
2
votes
1answer
783 views

Sound not working in Debian except in google chrome and test utilities [closed]

Yesterday, I had Archlinux on my Dell Latitude E6520 and the sound was working perfectly fine (I even had the loud beep I couldn't get rid of). Today, I installed Debian and alsa. The first surprise ...
5
votes
2answers
22k views

How to display xclock on another computer?

I want to display xclock on another computer. On my computer (111) I am able to ping the other computer (222) inside my home network: $ ifconfig wlan0 wlan0 Link encap:Ethernet HWaddr ...
3
votes
0answers
255 views

Emacs complains: font 'serif 10' is not defined

I am running Linux Mint 12 and trying to start emacs but keep getting this error: font 'serif 10' is not defined It seems obvious to me that I don't have the correct font. However, I cannot for ...
3
votes
1answer
543 views

Templates for startup script?

I need to write a couple of Linux (Debian) startup scripts. Are there any accurate templates available?
6
votes
2answers
4k views

Configure MC and aptitude color schemes

I'm using Ubuntu, and I'm having trouble reading text in MC and Aptitude because of the color scheme. Is there any way to change it?
3
votes
1answer
1k views

How to check will my computer is going to reboot(or shutting down)?

When I send a reboot command(or shutdown) command to a Linux machine does it keeps that messages at somewhere and can I query it. I.e. I will send a reboot command and after that I will run another ...
6
votes
3answers
13k views

What prevents a machine from responding to pings?

I have a CentOS release 5.4 linux box on Amazon EC2 that I'm trying to set up to be monitored via Nagios. The machine is in the same security group as the nagios server, but it seems to be ...
5
votes
2answers
1k views

emacs - paste text from clipboard without formatting

I am using Emacs 24 for MacOSX and having some problem with pasting code from clipboard to Emacs. The code that I selected usually already nicely formatted (with tab, ident, ...). However, when I ...
0
votes
1answer
112 views

Automate checking user submitted files

Since last few days, I'm facing some problem. It's about response to 100 users. Situation goes like this. On one end there are 100 user, each user has unique ID. User is supposed to submit one file to ...
2
votes
0answers
985 views

SOCKS proxy configuration on KDE 4.4.5 / Debian 6.0.5

I've been trying to use a SOCKS Proxy which I have been using with success from an Ubuntu 11.4 box with GNOME on my Debian box with KDE.The socks server is bound to the local port 1080 through the ...
1
vote
0answers
414 views

Mono spits out too many errors after update, try to reinstall, more errors

I had errors with apt-get update && apt-get dist-upgrade, from mono mono, so I tried this instead: sudo apt-get install --reinstall banshee banshee-extension-soundmenu ...
1
vote
1answer
272 views

Issue with degraded raid5 after power outage

I have a raid5 that consists of 8 disks. After a power outage mdadm tells me that the raid is degraded. Here is the output: /dev/md0: Version : 0.90 Creation Time : Sat Jul 10 09:08:28 2010 ...
1
vote
1answer
242 views

Monitoring interface changes with udev, especially if a route is set

Is there a way to monitor interface up/downs, especially to check if a route is setup or removed, with udev?
1
vote
2answers
3k views

Communicate between Ubuntu VM and Windows host

I'm running an Ubuntu VM on a Windows 7 host. I have two questions: I think that on Windows, localhost is a loopback address, and sending packets to it doesn't actually transmit any data on the ...
4
votes
2answers
1k views

Map IDE drive to /dev/hda

I run a small home server with one IDE drive (for the system) and a few SATA drives (for a software RAID). The IDE drive used to be at /dev/hda and the SATA drives at /dev/sd*. After a power outage ...
4
votes
4answers
14k views

How to get CPU info on a vmware guest

This is a server that is running on Vmware ESXi: SERVER:/root # cat /etc/SuSE\-release SUSE Linux Enterprise Server 11 (x86_64) VERSION = 11 PATCHLEVEL = 2 ...
2
votes
2answers
3k views

filter file for specific date

My OS is Solaris 10 (64 bit) and I have many files in a logs directory where we receive 40-50 logs every day. I have last 20 days file present in this directory and I want to move each day file to a ...
7
votes
4answers
18k views

How to restrict to run commands in specific directory through SUDOERS?

I can configure sudo (via the sudoers file) to allow a user to run the chown and chmod commands on any file or directory in the system. However, I only want to grant a user permission to run these ...
1
vote
1answer
1k views

tcpdump and https

Why following command doesnt grab the packets to faceebook site sudo tcpdump host facebook.com and dst port 443 but next grabs sudo tcpdump host java.com
1
vote
1answer
3k views

Looping over directory entries in bash and saving to an array

(See update at the foot of the question). This is a followup question to "Make directory copies using find". This question involved manipulating a bunch of directories, This got too complicated to ...
1
vote
3answers
14k views

Changing the IP Address in Solaris 11

I am trying to change the IP address in Solaris, but am failing to do so. The IP address needs to be a fixed number, like 10.0.11.10 I have tried changing the IP address in /etc/hosts which I ...
3
votes
3answers
5k views

Shell Script to Execute Shell Script to All Subdirectories

I am making a script to simplify my daily tasks. Everyday, I have to grep for a few things inside a company server. It was okay, however, now, they have segregated each object into sub directories. I ...
2
votes
1answer
393 views

/dev/mapper and vicious IO widget

I have dio vicious widget for monitoring IO within an awesome widget. It is defined like so: diowidget = widget({ type = "textbox" }) vicious.register(diowidget, vicious.widgets.dio, '<span ...
0
votes
1answer
79 views

xmms2 widget for awesome

I am trying to use the xmms2 widget. As it is, the widget does not conforms to awesome 3.X specifications -- or at least, I may have misunderstood how widgets should work. I certainly cannot get it ...

15 30 50 per page