2
votes
2answers
3k views

Swap two columns in a CSV using SED

I have a CSV file that contains 10 different fields (, is the deliminator). Example data: student-id,last,first,hwk1,hwk2,hwk3,exam1,hwk4,hwk5,exam2 pts-avail,,,100,150,100,200,150,100,300 ...
5
votes
4answers
3k views

Light GUI user interfaces

I have some older machines that cannot run new versions of Debian/Ubuntu/SUSE/etc on KDE and GNOME GUI, they just crash. It's probably because of the graphics card driver or unsupported graphic cards ...
13
votes
6answers
17k views

Eject USB drives / eject command

I know that the eject command can be used to eject almost any hardware component attached, but can it be used to eject USB drives? Is it possible to eject USB drives and external HDD's with the eject ...
2
votes
4answers
1k views

What is a good X terminal not from a major window environment?

I'm looking for a terminal program I can use with a minimal fluxbox environment I am setting up. Ideally, I am looking for a terminal program that supports tabs and true transparency. So far it ...
6
votes
2answers
872 views

Making Fluxbox look pretty

I'm trying to setup Fluxbox to look nice on my machine as I familiar with it and find it functional. One thing stoping me from moving to it fulltime, while seemingly trivial, is that it looks ugly. I ...
0
votes
1answer
530 views

Is it possible to run vlc as root? [duplicate]

I installed VLC player using this old video. I don't know how to access other users, but root itself only, so I don't know if the video is outdated or works at all, anyway can I install VLC on root ...
2
votes
1answer
154 views

dag.repo overwritten

I accidentally overwrote dag.repo by trying to add this [dag] name=DAG RPM Repository baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag gpgcheck=1 enabled=1 does anyone have the ...
3
votes
2answers
1k views

ext4 used space (not -m option, not deleted files)

I'm a bit puzzled about the way ext4 reports used space. On a new Debian wheezy (testing) installation, I consistently got about 1GB extra space used with a 60GB SSD, when compared to du. I then ...
1
vote
0answers
229 views

i386 libtool conflicting with x86_64 libtool when installing Handbrake

I've been trying to install Handbrake on centos 5.8 with the help of some different guides. I'm running x86_64, and whenever I try to install packages necessary to build the binary, the arch ends up ...
1
vote
1answer
1k views

IPTABLES to block all outgoing connections except selected networks

There is a firewall/gateway machine with eth0 Public and eth1 Private network (192.168.1.0). I would like to block all OUTPUT connections for private users (eth1) except couple of networks like: ...
2
votes
2answers
2k views

Can't Get Synaptics Touchpad Disabled

The touchpad comes back to life after a few seconds. The Windows driver had a disable-entirely option. I do not want to use the touchpad at all, so anything up to and including a hardware fix is now ...
1
vote
1answer
1k views

Linker errors when compiling against glib…?

I'm having trouble compiling a simple, sample program against glib on Ubunutu. I get these errors. I can get it to compile but not link with the -c flag. Which I believe means I have the glib ...
5
votes
1answer
982 views

How to check if an application is running with a bash script

I have the gnome-run application in my home folder. I have now added the application to run when I press Meta+R (i added it in in ccsm). The problem is that if I have the gnome-run program open and I ...
2
votes
4answers
901 views

Editing a file without overwrite permission

Is it possible to set permissions for file to keep it editable but without permission to overwrite? I mean possibility to edit the file with text editor, but denying any attempt to replace the file ...
0
votes
1answer
183 views

Battery management - are there differences between distros?

I have heard that Linux, in general, has poor notebook battery management: the battery lifetime is reduced significantly (I have noticed it on my MacBook 2.1 with Ferdora installed) Are there any ...
2
votes
1answer
1k views

how to specify the forwarding port when using multiple tsocks services?

According to the answer of this question, I have my /etc/tsocks.conf containing these lines: path { server = localhost server_port = 1081 reaches = <ip-address-of-server-b>/32 } path { server = ...
12
votes
4answers
4k views

Free Matlab equivalent for Linux

My collaborators are using Matlab to do some simulations. Is there an open source alternative I could use on Linux to run these scripts? It would need to be fairly closely compatible with the (1) ...
12
votes
2answers
4k views

Why does ls sorting ignore non-alphanumeric characters?

When sorting file names, ls ignores characters like -,_. I expected it to use those characters in sorting as well. An example: touch a1 a2 a-1 a-2 a_1 a_2 a.1 a.2 a,1 a,2 Now display these files ...
3
votes
2answers
677 views

how to perform git push using crontab

I'm using crontab for synchronizing git repositories. I was able to do operations like git add and commit, but can't perform git push to origin, since every git push asks for a password. How can I ...
0
votes
2answers
2k views

Mouse cursor 'frame rate' is slow, but only when logged into my main account

When I'm logged into my account on my laptop (A Thinkpad t420 running Linux Mint 12 with Gnome 3), the mouse has a noticeably lower frame rate than when I'm at the log in screen, or even in another ...
4
votes
1answer
3k views

Does `make install` overwrite files?

I've taken some time to install a newer version of Apache2.x on my Mac Os X 10.6.8. When configuring apache through ./configure I specified the Darwin layout. This layout assumes the path setup of ...
1
vote
1answer
246 views

My Firefox shortens names of the files I download [closed]

My Firefox automatically shortens the names of the files I download. For example, 231546798_20110608.pdf becomes 2315.pdf. I later realized that it may relate to the long name of the path into which ...
0
votes
2answers
450 views

Building a custom xbmc distro with ubuntu

How could you use Ubuntu to create your own distro of XBMC (ex. Boxee Plex)? Is there a site (I checked XBMC's wiki and found nothing) that tells you how to do this?
4
votes
2answers
916 views

VM benchmark tools?

I would like to benchmark of few XEN-constallations: PV DomU HVM DomU with PV network and disk drivers HVM DomU with emulated IDE and PV network The base will be the same VM with the same ...
2
votes
2answers
1k views

How to make a mirror of Linux Mint package repository with debmirror?

I'm using Linux Mint 12 Lisa and for some reason want to have local packages repository. I've done local copies before on Ubuntu and it was easy. But unlike Ubuntu's archive.ubuntu.com, ...
2
votes
2answers
2k views

Is my USB hard disk dead?

My USB hard disk started to make some beep type of sound and then stopped working. I have to replug the hard disk to make it work again. After some time same sound is heard and again it stops ...
2
votes
2answers
616 views

Installing afpfs-ng from source

I want to install afpfs-ng to get access to an AFP share from my Mac. I am running Debian and am following instructions from http://unix.stackexchange.com/a/175/17242, and I get checking for a ...
3
votes
3answers
3k views

Black screen when installing Fedora 16

I have read many other threads here and elsewhere but found no solution... I'm trying to install Fedora 16 x86-64. At random points during installation I get black screens that do not go away. I ...
1
vote
0answers
1k views

Installation Error: Kernel Panic - not syncing

I have a machine with the following spec: CPU: Intel i7-2600S 2nd Gen Core 2.8GHz Low Voltage CPU 65W TDP RAM: 8GB DDR3 - 2 of these so I got 16GB of RAM. I want to install a Linux distribution and ...
4
votes
1answer
251 views

Mutt: can I define my own rules for quoted message detection?

I recently started using mutt with my gmail IMAP mail address. Because I loved it so much, I also set it up with my college email address. This, sadly, is hosted by the college ICT team under ...
1
vote
1answer
2k views

Activating Audio System in Arch Linux

I wanted to get the audio system going on Arch Linux, and I followed the very concise instruction I found on Archlinux.org, but it didn't help. Has anyone done this personally, therefore knowing the ...
18
votes
4answers
7k views

Four tasks in parallel… how do I do that?

I have a bunch of PNG images on a directory. I have an application called pngout that I run to compress these images. This application is called by a script I did. The problem is that this script does ...
1
vote
1answer
841 views

confusing about PSS in /proc/pid/maps

I found one great explanation about smaps from info about smaps To my understanding, I thought that shared_clean + shared_dirty + private_clean + private_dirty = rss I wrote a program to ...
2
votes
2answers
437 views

Regular expressions with ExpectJ

I've been used the ExpectJ Java library to automate some jobs on a Linux server, however now I need to automate a job that sends a different text response for each execution. Here is the output: Last ...
2
votes
2answers
739 views

PXE boot chaining to hardcoded TFTP server?

My existing network environment provides the following: DHCP server that sends PXE clients to a particular TFTP server TFTP server with SYSLINUX "pxelinux.0" file for booting The SYSLINUX ...
6
votes
1answer
316 views

ZSH host name completion behaviour change?

I have been using ZSH to do host name completion, and want to change the default behaviour. When I have multiple hosts with similar names, the completion does stuff that I don't care for. An example ...
3
votes
0answers
383 views

How do I change the icon size and padding in the Gnome 3 upper panel on Linux Mint 12?

I'm trying to personalize the desktop interface in Linux Mint 12 running Gnome 3. I just disabled the bottom panel and I changed the font in the upper panel. How do I change the upper panel's icon ...
2
votes
1answer
243 views

How to handle custom debian packages version numbers?

Let's take mplayer for example. I want to compile a new version and create a deb package to roll out to my developers. The version number is 2:1.0~rc3+svn20090426-1ubuntu16.1. I'm not making any ...
4
votes
3answers
647 views

Why is there a type for process ids (pid_t), but not for file descriptors (fd)?

I see that pid_t is typedef'd in unistd.h, and file descriptors are defined to be int in fcntl.h. But since they are used in similar ways, wouldn't it make sense to have a typedef for file ...
1
vote
2answers
589 views

Script that uses MySQL query to automatically remove output

I have this query that outputs updates older than 7 days from a database. How would I make a script that takes the MySQL statement and puts it into a script to be executed by cron. echo "select name, ...
11
votes
2answers
3k views

How can I manage puppet.conf with Puppet?

I use puppet to manage linux servers and various services. It works well, except for the puppet service itself. My puppet class is like this : class puppet { file { "/etc/puppet/puppet.conf": ...
3
votes
2answers
690 views

Lost window title bars and everything after selecting bad window theme in Linux Mint

I've selected a window theme from the "Advanced Settings" in Linux Mint 12 which seems to be corrupted and I've lost everything on my desktop. I can't start any applications but I can open the ...
0
votes
3answers
263 views

Am I in the right direction for a linux os?

I compiled the linux kernel by downloading it from kernel.org, put it on my desktop, and opened up terminal. I changed to the linux-3.2.13 folder, typed mr proper. Then I use "make menuconfig" to ...
2
votes
2answers
4k views

curl several files and save output in one file

I am using curl to grab the HTML of a website. I want to only grab the first 20 lines, and save this in an external file. I need to grab about 10 URLs, and want to save all of them in the same file. ...
3
votes
1answer
53 views

Compiling software with the same options as a previous install

I want to compile and install a software on a new VM. The software was installed successfully on a different VM by a different admin, but I want to duplicate the exact command with the options that he ...
3
votes
1answer
882 views

/sys/class/drm directory structure

Who is responsible for creating the "/sys/class/drm" directory structure, more specifically the "/sys/class/drm/card0-LVDS-1" directory? I am using kernel-2.6.38 and an nVidia card.
4
votes
2answers
382 views

Is there a way to lock terminal's title?

Sometimes there're lots of different sessions opened in own terminal's tabs and it's rather desirable to have theirs initial titles (named by session name) locked since local title tweaks make those ...
4
votes
1answer
688 views

Home key acting strange in bash (tty and X) on long input strings

When I hit Home if my current input is short enough (say, <36 characters), it works fine. However, when I've typed a longer command and then want to go back to the beginning, it seems like it does ...
3
votes
3answers
3k views

Cannot execute command at GNU screen startup

I want to do something similar to what's written here without using zsh (I use bash), but if I try to start screen with screen 'cd /home/cataldo/Programs' I get the following error: Cannot exec ...
30
votes
4answers
42k views

How to cut by tab character

I want to use cut command to break input into fields and get the second field. cut -f2 -d' ' <--- How can I tell it to use tab instead of space

15 30 50 per page