0
votes
3answers
3k views

Console CPU utilisation chart

I need to monitor CPU and network utilisation from a terminal. For network traffic, I have found the perfect tool: slurm. It gives me a moving chart. It gives me an nCurses-like UI I can use from a ...
4
votes
2answers
809 views

Dell battery performs worse under Linux

I have recently bought a Dell XPS Touch. I'm dual booting Windows 7 with Fedora 16 (Verne). Right out of the box, Fedora reports 1 hour 26 minutes of battery life at full charge, while Windows reports ...
3
votes
3answers
815 views

How to make data-recovery very-very hard or impossible for Unix -computer before reselling?

I resell my Thinkpad and I want to make sure its old content in the harddrive is not readable. The Thinkpad has now Debian -installed but I sell it as-is so no OS needed. How can I can rewrite the ...
0
votes
0answers
121 views

Some GUI programs hung up

Today I decided to migrate to systemd. Everything work quite good, but I have problem with few GUI programs - they hung up after draw window (see img at the end of msg). Program in which I discovered ...
2
votes
1answer
1k views

Can't access to miniDLNA

I wanted to install a dlna server on my asus eeepc, and tried minidlna. My eeepc runs Wheezy, so I just had to run apt-get install to install minidlna on it. The first time I ran it, everything worked ...
3
votes
3answers
128 views

monitor and watch multiple systems continuously

As part of my work and collaborations and universities I've attended, I have access to many machines, about 13 or so. These are all Linux machines and I could ssh using my key-pair. There are a bunch ...
0
votes
3answers
346 views

yum install failing with strange output

I am using below command to install gcc on my laptop running fedora 17. yum install gcc But I am getting strange output. Loaded plugins: langpacks, presto, refresh-packagekit Resolving ...
8
votes
10answers
2k views

What's a good way to filter a text file to remove empty lines?

I have a .csv file (on a mac) that has a bunch of empty lines, e.g.: "1", "2", "lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum ...
29
votes
3answers
134k views

Zip all files in directory?

Is there a way to zip all files in a given directory with the zip command? I've heard of using *.*, but I want it to work for extensionless files, too.
4
votes
1answer
565 views

Coloring shell command and output differrently [duplicate]

Possible Duplicate: Customizing bash shell: Bold/color the command bash $ cat what-i-want "I want the output be in a different color." I'd like my commands stand out among the output, ...
4
votes
1answer
3k views

awk high precision arithmetic

I am looking for a way to tell awk to do high-precision arithmetic in a substitution operation. This involves, reading a field from a file and substituting it with a 1% increment on that value. ...
1
vote
2answers
859 views

How do I stop Gthumb from opening when I plug in my camera?

I'm using Linux Mint 13. Whenever I plug my camera into the USB port, Gthumb opens and a directory window opens. I can't find config files, autoplay options or an option in the preferences of Gthumb ...
1
vote
2answers
981 views

bash scripting - Any function to escape character?

I am trying to automate some of my stuff and facing a issue, the problem boils down to escaping the value that is being passed as a argument to the script. myScript.sh #!/bin/bash loadPatch -name ...
1
vote
3answers
1k views

open a already running process

I have 64-bit RHEL 2.6.18-238.el5 running. I access the machine through vpn. I started an application via terminal and while application was running there was disconnection in vpn which closed my ...
1
vote
0answers
326 views

How do restore printer settings from a backup

I recently re-installed my system from Mint 12 to Mint 14. Pretty much everything is set as before but I had apparently forgotten about the printers. In order to avoid resetting all the small ...
1
vote
1answer
388 views

Firewall/routing rule in Centos for this setup

I have two ethernet interfaces, namely eth0 and eth1. I want to implement an advanced routing rule but I am totally new to firewall/routing rules in CentOS. Here is what I am trying to do: Both my ...
13
votes
4answers
3k views

How can I find which process sends data to a specific port?

I have a service, keeping a certain port open. I'm getting data to it, that I neither expect nor want to get, and I'm trying to pin-point the source of this data. So how can I find which process that ...
4
votes
2answers
2k views

Set MAC address to default

Sometimes I need to spoof MAC address, I'm doing so with this command: ip link set dev eth0 address XX:XX:XX:XX:XX:XX Is there a way how to set MAC address back to default without reboot?
3
votes
0answers
5k views

Which driver for Intel HD Graphics should I install?

Recently, I have replaced my old motherboard Giga G41M + Pentium 5500 CPU with the new Giga B75M + Celeron G540 CPU. The old motherboard has an on-board GPU, Intel GMA X4500. The new motherboard has ...
-1
votes
1answer
56 views

I have installed linux on my system and I wanted to install git. Can anyone help me? [closed]

How to install git in linux and how to work with git?
2
votes
2answers
1k views

BackTrack USB Wireless adapter drivers issue

I purchased USB Wireless adapter which runs smoothly on Windows and Ubuntu, but in BackTrack it's showing me a Bad password issue. From my reading I guess it's driver issue which BackTrack Kernel ...
6
votes
1answer
5k views

What's the command to “prepend” a line to a file? [duplicate]

Possible Duplicate: How can I prepend a tag to the beginning of several files? Other than create a temporarily file with a line at the heading, and move it back when finished, is there a ...
1
vote
3answers
135 views

Script to insert line into files in sub-dirs

I have a sub-dir tree with varying number of branches and most of the branches contain .cpp files (many of them). I have a header-file at the root of the tree that I want to have as a #include ...
2
votes
1answer
515 views

Is there a way of color-highlighting paired brackets in shell (bash)?

Does anyone know if there is a way reproducing the same behaviour many text editors provide for colour-highlighting the syntax operators such as brackets or curly brackets. It would be very useful for ...
4
votes
1answer
1k views

How does udev create /dev/sr*? (Or: Which rule does create /dev/sr*?)

udev is responsible for populating /dev. It adds and removes device nodes to /dev dynamically based on rules/configs/scripts under /lib/udev and /etc/udev/. If I have a CDROM device node /dev/sr0 I ...
1
vote
0answers
341 views

Copy live CD to RAM on boot

OK, so I've put together a live CD which uses isolinux as the bootloader. Any idea what magical option or switch I need to use to make it copy the compressed filesystem to RAM before mounting it? (Not ...
1
vote
1answer
728 views

Login other bash ttys after logging in to one

Is there a way to login certain (or all) ttys after logging into one? I don't want auto-login because I still want to login once (for security). I've looked into things like "screen" but they are ...
4
votes
1answer
116 views

Getting a website's ip with 'host'?

Why is it that when I run the command host examplewebsite.com it gives me website's ip, but for some websites, when I type that IP address into the address bar and hit enter, it shows me a 404 page? ...
3
votes
2answers
8k views

How to start an application automatically on boot

I am new to Linux & looking forward to start application (which toggles a led every 10 sec). I have written the application program & it is working fine but now I want to start it ...
5
votes
1answer
720 views

SquashFS image as rootfs in LXC

Is it possible to use a SquashFS filesystem as an LXC rootfs? I can mount an ext3 image as a rootfs just by setting lxc.rootfs to the filename, but if it's any other type of image, lxc-start just says ...
5
votes
1answer
169 views

Wrong emblem used for PDFs created by LibreOffice

If I create a test pdf file in a directory, by using something like ls -al > testpdf.pdf the file is shown in Caja 1.4.0 with an understandable emblem that is 'acrobat-like'. If I create a ...
4
votes
1answer
3k views

Why do I have to restart NetworkManager.service all the time?

After switching to systemd, I started to use NetworkManager.service, I got connected to WIFI automatically at boot, but I got the following message when I run nmcli con: ** (process:4433): WARNING ...
39
votes
4answers
33k views

What is the point of sshd “UseDNS” option?

I know what it does, but i don't know why. What attack(s) does it prevent ? Is it relevant for all kind of authentication methods ? (hostbased, password, publickey, keyboard-interactive ...)
12
votes
4answers
11k views

How to trace a java-program?

As a sysadmin I sometimes face situations, where a program behaves abnormally, while not creating errors at all or creating nonsense error-messages. In the past - before java came in - there were two ...
3
votes
1answer
166 views

Turn on PC speaker after resume

After resuming from suspend my PC speaker becomes silent. I need to run alsamixer and arbitrarily adjust its volume either up or down for it to come back again. But if I suspend and then resume a ...
2
votes
3answers
206 views

Wubi limitations

Hi there I am quite new to Linux. Initially I decided to use Linux on VM but now I want to have full fledged experience. But I don't want to partition my PC. Will Wubi work since Ubuntu is ok for me. ...
7
votes
4answers
892 views

Linking /proc/mnt to /proc/mounts

I understand that /proc filesystem reflects the output of various processes. Unfortunately, I have a propietary (romdump) binary that expects the mount table to appear as /proc/mtd, while my Android ...
2
votes
1answer
1k views

How to split a ddrescue disk image and how to use it again?

I have a 500GB external HDD that I need to rescue the contents of. Unfortunately I only have two 400GB partitions to save the contents to. Can I split the disk image as: ~$ cd /mnt/part1/Recovery/ ...
3
votes
1answer
510 views

How to set up SSH on Ubuntu desktop and bind sub-domain to it for remote access outside network?

I am pretty to new to SSH and I have a question regarding access to my machine outside network. I have a Linux machine sitting in my apartment running almost all the time and connect to the network ...
2
votes
1answer
3k views

Which drive had a “journal commit I/O error”?

I received a message: kernel:[123456.789012] journal commit I/O error Which disk drive had the journal error?
0
votes
0answers
441 views

Is there something similar to SUSE Studio but geared toward Debian-based distros?

I am playing around with SUSE Studio and am finding it quite amazing, though (I imagine for sentimental reasons) I prefer Debian and the deb package manager. Is there something like SUSE Studio that ...
2
votes
2answers
657 views

How can I find matches with sed (or similar) for configuration parameters?

I'm pretty good at using php's preg_match (and similar) commands, and I'm also pretty good with regular expressions, but I don't do very well with sed. I have two shell scripts I'm working on and I'd ...
0
votes
2answers
1k views

Mouse problems in OpenSuse

I just installed the latest version of opensuse on virtualbox just to learn some stuff and I'm having some strange problems with my mouse. Sometimes while I'm just moving my mouse around not clicking ...
3
votes
3answers
425 views

Mac Terminal - moving files

I am trying to use Mac Terminal command to move files to a new location. I have a list of almost 2000 filenames with full paths in a text file. (All of them are in one parent directory, but ...
4
votes
0answers
23 views

Forward Autocorrect to a script [duplicate]

Possible Duplicate: How do I get bash completion for command aliases? I wrote a series of scripts to make package management a little more intuitive for me. However, I can no longer tab ...
2
votes
3answers
23k views

Grep command to find files containing text string and move them

I am able to locate files in a folder containing a specific text string using this command: grep -lir 'string' ~/directory/* How do I move the files that appear in the above result to another ...
2
votes
2answers
232 views

How do I rename multiple files [duplicate]

Possible Duplicate: How can I rename a lot of files using a regex? I've got some files named abc-10.5.3.1-1.x86_64.rpm abc-compiler-10.5.3.1-1.x86_64.rpm abc-10.5.3.1-6.x86_64.rpm ...
0
votes
1answer
63 views

how does this work in awk even without print?

bash-3.00# cat > b1.txt AAA,Apples,123 BBB,Bananas,124 CCC,Carrot,125 bash-3.00# cat > b2.txt Store1|AAA|123|11 Store2|BBB|124|23 Store3|CCC|125|57 Store4|DDD|126|38 bash-3.00# awk -F"[,|]" ...
2
votes
1answer
3k views

Gnome 3 “broken” after upgrades, kind of looks like gnome 2 . . .?

I'm running debian wheezy ( testing ) and after some upgrades my gnome 3 is broken. It's not exactly broken, but it's completey different. Almost like it's no longer actually gnome 3; most of the UI ...
2
votes
1answer
445 views

Display 'PRI' and 'NI' via 'top -stats'

I'm trying to create a script that prints top stat for some specific fields (e.g. pid, command, priority, nice value). I can print most of them by using -stats option, but there is no arg for ni and ...

15 30 50 per page