6
votes
1answer
6k views

Why does drive not enter standby mode when using hdparm -S

When reading the hdparm manual pages, it says that the -S value is used by the drive to determine how long to wait (with no disk activity) before turning off the spindle motor to save power ...
0
votes
2answers
1k views

Fedora in Oracle VM VirtualBox: installing guest additions

What are the pros and conses of two method of installing VirtualBox guest additions: via the Devices -> Install Guest Additions...; via su -c 'yum install VirtualBox-guest' from rpmfusion ...
1
vote
1answer
1k views

Need to change the mount Point of LVM /u001/app/oracle to /u001/

This is the situation.I installed the RHEL 5.5 on client's system and created LVM mount point at /u001/app/oracle and now he has installed DB on /u001/app/oracle. He is asked me to change the mount ...
3
votes
1answer
390 views

Detect if it's lilo boot loader or grub?

Without rebooting, is it possible to tell if the boot loader currently present was LILO. GRUB 0.97 or GRUB 1.9X? I was thinking about reading MBR, but not sure about it. Just by checking the files ...
2
votes
2answers
88 views

'tie' [nonexisting] files to programs

Recently, I just had an idea which turned out to be pretty useful under certain circumstances. But first some simple explanation: In Perl, you have the option to tie variables to some functions ...
3
votes
1answer
351 views

How to reference a script-local dictionary in a Vim mapping?

Somehow I'm not able to execute the following mapping: function! s:MySurroundingFunctionIWantToKeep() let s:Foobar={'foo': 'bar'} map \42 :echo <sid>Foobar.foo<cr> endfunction call ...
2
votes
2answers
579 views

“Waiting for network configuration” upon boot

When I boot, I get the error message waiting for network configuration, then waiting an additional 60 seconds for network configuration. I had edited /etc/network/interfaces file before the above ...
0
votes
1answer
331 views

gparted partition master boot record corrupt

I was trying to Linux Mint from live-usb and made a stupid mistake. I created master boot record and my HDD partition become unallocated. After rebooting from live OS, I'm unable to get to boot menu. ...
7
votes
1answer
2k views

Kill a tmux session and select another tmux session

I am trying to bind X to do the following: prompt the user whether the session should be killed if y is entered, kill the session after the session is killed select another session (last, previous, ...
0
votes
1answer
631 views

difficalty to save traceroute output in shell variable?

I need to filter and store traceroute output in shell variable (array). But I am getting some unusual output. As I try to explain in following lines. My present directory is temp, having some ...
8
votes
7answers
359 views

Review changes in .tex files

I have two files paper.tex and paper_suggested_changes.tex the latter is a modified version of the former with corrections. I need to go through the two files and choose which changes to accept or ...
1
vote
1answer
465 views

Reassigning Ctrl + Arrow keys in Vim [duplicate]

Possible Duplicate: How to fix Ctrl + arrows in Vim? Through the several tutorials and tips and tricks site about Vim, I think I happened to read that one can reassign a combination of keys ...
1
vote
1answer
943 views

How to add a GUI to a minimal install of CentOS?

I did a minimal install of CentOS 6.3 and now want to add a GUI. I tried using yum to install a GUI, but it is unable to resolve the CentOS repository server mirror.centos.org. I tried to install ...
1
vote
2answers
577 views

zsh doesn't work correctly in Mint

I successfully installed zsh, change config on my old, but it's not working properly. I don't know how this feature calls. When i write something - sudo for instance, and press ↑ (arrow up) it ...
3
votes
5answers
632 views

Search among the content of a large number of plain text files?

I have a directory with 1,242,276 plain text files on my external hard drive. They are totally unorganized with meaningless numbers as their file names. The reason for that is because they were ...
0
votes
1answer
3k views

Problems installing Arch Linux: cannot mount the installation media [duplicate]

Possible Duplicate: mounting problem during installation of archlinux on dell xps one I am trying to install Arch Linux on my Acer Aspire 4830tg, but I keep running into problems. I am ...
1
vote
1answer
193 views

What are the possible ways a Debian Linux system may write data to HDD and how to avoid them?

The background: Here I have a spare x86 board which has a low energe costing AMD CPU built on it. I am planning to DIY a home use file server with it running a Debian base system and some common ...
2
votes
0answers
62 views

Recover text files and directory structure from the database created by Recoll?

A while ago, I ran Recoll which created a database on a partition, so that I could quickly search among all the text information in the contents of all files (text file, pdf, djvu, html, etc) in that ...
4
votes
1answer
1k views

How to change a keycode using setkeycodes

I have a Thinkpad Edge E130 running Sabayon (a Gentoo-based distro), and I'm fighting the well-know bug Xorg 255 keycodes limit. My laptop has the Fn+F4 hotkey for Mic Mute/Unmute. This is the ...
2
votes
0answers
83 views

Unable to use aa-genprof without compatibility patch

I run 3.6.10 kernel, It seems like apparmor compatibility patch were dropped in latest kernel, so aa-genprof won't work anymore, any suggestions? Looks like aa-status or other aa- commands were ...
2
votes
0answers
133 views

Can I limit the number of inotify watches available to a process or cgroup?

I am consistently running out of inotify resources, leading to errors along the lines of: # tail -f /some/files tail: inotify resources exhausted tail: inotify cannot be used, reverting to polling ...
6
votes
4answers
30k views

How to clear memory cache in Linux

Is there any command that by using I can clean the cache in RHEL? I used this command: sync; echo 3 > /proc/sys/vm/drop_caches but it didn't work.
1
vote
1answer
421 views

Writing a service in C: How to pass and process arguments to running service?

I want to write a service in C. While this service is running in background and processing some information I need to grab the results from this service from other applications or from command line. ...
19
votes
4answers
26k views

How to view the output of a running process in another bash session?

I have left a script running on a remote machine from when I was locally working at it. I can connect over SSH to the machine as the same user and see the script running in ps. $ ps aux | grep ...
2
votes
2answers
224 views

Allow 1 hour only in day with PAM

How to allow user to access system only 1 hour in day using PAM? For example I wish to give access to a user only for 1hr on a workstation in 24hrs. First the 24hr time period needs to be defined, as ...
17
votes
2answers
23k views

Top and ps not showing the same cpu result

This is linked to this question. When I run top I get the following result: pid 3038 is using 18% cpu, however when running the result is 5.5%. And this number does not appear to be changing ...
1
vote
5answers
1k views

How to debug whether restarts are caused by software or hardware?

A newly build Linux debian 2.6.32-5-amd64 #1 SMP Sun Sep 23 10:07:46 UTC 2012 x86_64 GNU/Linux server suffers numerous restarts. 'last -x' output shows: root pts/0 192.168.254.11 Sat ...
2
votes
2answers
1k views

Get list of top 10 memory consuming processes with graph using Cacti in Centos 6.3

I'm using Cacti in Centos 6.3 and I would like to get the list of the top 10 memory consuming processes, with a memory graph, so that if server fails I can easily find the processes behind that. It ...
2
votes
2answers
1k views

print a file in hex using awk

I have a file name x $ cat x 1A34532112345 I wants to print in hex using awk I written a script (with help from web) fold -1 /home/cscape/Desktop/x | gawk '{ printf("%s , %X\n",$0, int($0) )}' ...
3
votes
1answer
568 views

Split file based on a pattern with leading zeros

I have a book in text format. I would like to split the book into several files where each file contains a single chapter. Therefore I'm using the following command: awk '/Chapter/{i++}{print > ...
1
vote
2answers
2k views

Broken package system in Linux Mint - Firefox looks like the culprit

Synaptic and the likes are giving me this error: You have 1 broken package on your system. I have tried to use the fix broken packages option but Synaptic simply crashes. It seems that Firefox ...
2
votes
3answers
1k views

How to reverse-match a string in the Vim programming language?

I want to find the last index of any character in the [abc] set in the abcabc string but the search should start from the end of the string: " Returns the 0th index but I want the 5th. let ...
7
votes
2answers
6k views

Trouble getting VLC to record from the webcam via command line

my ~/.bashrc contains the following function webcamrecord () { vlc v4l2:// :v4l-vdev="/dev/video0" :v4l-adev="/dev/audio2" :v4l-norm=3 :v4l-frequency=-1 :v4l-caching=300 :v4l-chroma="" ...
0
votes
1answer
397 views

globbing, sed, or awk html files

I wanted to create a script that I could check .xhtml files for images and add alt tags if needed. While searching I found regular expressions and did man on glob but I'm unsure on where or what to ...
3
votes
1answer
532 views

GTK 3 apps text backdrop looks wrong, on any theme

I am having a problem with GTK 3 applications (GTK 2 apps work correctly): no matter which theme I choose, there are many places where colors are off. E.g. in the screenshot you can see that the ...
2
votes
0answers
105 views

SafeCopy worked but I have a few problems

I had a 60G NTFS drive that had 28 physically bad blocks as reported by GParted. I used SafeCopy to recover to the root of an empty 500G drive using SafeCopy defaults. Everything worked as expected ...
2
votes
2answers
780 views

Huawei E303 internet key with Linux CentOS?

Are there any programmes, downloads, patches, drivers available to use a Huawei E303 Internet Key in CentOS?
2
votes
1answer
95 views

Is there a way to find out when an OS instance was installed on a host?

I am currently using RHEL 5.8 and SunOS 5.10 at work and Fedora 16 at home. Is there any way to find out the date when any or all of those OS instances were installed on a host? The reason I want it ...
0
votes
1answer
1k views

Networking with Linux and Windows 7 using Samba

I've installed Samba on my Arch Linux, and I wanted to share files with Windows 7 on other PC via local network. I want it to work both ways, i.e. Windows can read and write freely without any ...
2
votes
2answers
3k views

What is the difference between '.' and 'source' in shells? [duplicate]

Possible Duplicate: running script with “. ” and with “source ” I have used both the dot command '.' and 'source' to reload a given rc file (typically to update my environment variables) ...
4
votes
2answers
533 views

Is there a way to put comments in an rsync --files-from file?

I have a file that rsync uses as --files-from: dir1 dir2 dir3 I want to be able to put comments above each dir entry like that: # my dir1 comment dir1 #dir2 comment dir2 #yet another comment ...
4
votes
2answers
2k views

Xresources color settings

I'm using Gentoo with XMonad and set all the colors in .Xresources file. The problem is that for some apps setting *.background and *.foreground is not enough since they override the settings for some ...
8
votes
2answers
3k views

How to set Bluetooth transmit power?

I am trying to set the (inquiry) transmit power of Bluetooth dongles with both Broadcom and CSR chipsets using hciconfig, e.g.: hciconfig hci0 inqtpl 3 But whatever valid parameter I pass, reading ...
1
vote
1answer
1k views

Sender based redirection on Postfix

I'm running postfix on Debian, receiving email for my.com, and I would like all incoming emails from sender.com to be delivered to jack@my.com, regardless of the original recipient. Emails from other ...
2
votes
1answer
3k views

libssl1.0.0 doesn't satisfy libssl0.9.8 dependency?

In Debian Wheezy, I'm trying to install the vmware-view-client package from the Ubuntu Software Center (because the open client won't work for my situation), but dpkg can't handle it. Synaptic says I ...
4
votes
2answers
2k views

How is ssh-agent being autostarted?

I am currently running Crunchbang Linux with Openbox, and as soon as I log in I have an ssh-agent process running and I can't for the life of me figure why it is being autostarted. Here is the ...
5
votes
3answers
246 views

Coloring output of forked processes

I have a runscript that starts some processes and sends them to the background mongod & pid_mongo=$! redis-server & pid_redis=$! # etc. All these processes then output concurrently to ...
3
votes
1answer
251 views

Escaping quotes for scp

I needed to write a that behaves correctly with nasty (spaces, braces, etc..) filenames. scp -rv "$1" shiny:/Volumes/Seagate3To/\"$1\" This function works, but I don't understand why the quotes ...
1
vote
1answer
98 views

keeping keys on an auxiliary removable drive

It seems that servers are only as secure as the machine that holds the keys and that in turn means the desktop/screensaver password is the line of defence for not only the desktop itself but any ...
1
vote
0answers
718 views

Using Metasploit with 3G USB modem

I have a computer with Linux BackTrack 5 as host and Windows XP as guest on virtual box. I am using Host-Only-Adapter to create virtual LAN and to share USB modem internet as well so that both host ...

15 30 50 per page