1
vote
1answer
1k views

How to view and change kernel memory size?

How can i view the kernel's share of memory on a machine? How can I increase it? What should I consider before doing it?
232
votes
9answers
102k views

When should I not kill -9 a process?

I am always very hesitant to run kill -9, but I see other admins do it almost routinely. I figure there is probably a sensible middle ground, so: When and why should kill -9 be used? When and why ...
28
votes
3answers
3k views

Does grep use a cache to speed up the searches?

I have noticed that subsequent runs of grep on the same query (and also a different query, but on the same file) are much faster than the first run (the effect is easily noticeable when searching ...
2
votes
2answers
264 views

What is the “Online Certificate Status Protocol”?

I use privoxy. In the user.action file i have a redirect rule and a few websites: { +redirect{s@http://@https://@} } .twitter.com .facebook.com Ok! it's working great, e.g.: if i visit any ...
6
votes
1answer
5k views

Modifying a squashfs,

Obviously I don't want to actually modify a squashfs. What I would like to do though is take an existing squashfs, a set of files and create a new squashfs which is identical to the old one except ...
7
votes
2answers
6k views

Not able to ssh in to remote machine using shell script in Crontab

Below is the script which i am trying to run, which runs without any issue for i in `seq 200 2100` do usr=(`ssh -t -t -o ConnectTimeout=60 machine$1 finger | tail -1 | awk '{print$1}'`) echo ...
2
votes
3answers
6k views

Loop a list through awk

I'm sorry if this is extremely elementary, but I just can't figure out how to do this, and my research has failed me as well. I have two files: data.csv and list.txt. Here's an example of what they ...
4
votes
1answer
313 views

Trouble with grep -o regex

I'm trying to use a grep command with the --only-matching flag, but it's not behaving as I would expect it to. This command: echo "1/2/3/4/5" | grep -oE "^([^/]+/){0,2}" Gives this output: 1/2/ ...
3
votes
2answers
346 views

Recommended way to login to root?

After I found out hundreds of hacking attempts are made in a day I decided I want to disable logging in to root remotely via a password. But then I found I can't switch users in WinSCP so I can't ...
2
votes
2answers
5k views

How do I create a separate partition for my /home directory?

I was reading http://docs.fedoraproject.org/en-US/Fedora/14/html/Installation_Guide/s1-diskpartitioning-x86.html, but it's not clear to me what this means. What's an LVM Volume Group versus a Hard ...
5
votes
2answers
5k views

How do I disable remote root login via ssh?

How do I disable remote root login via ssh? I want to log into my server (I use keys on my main comp) then su into root instead of access root directly. I am using Debian. I follow guides online ...
2
votes
0answers
908 views

partitions problem with Debian Squeeze and Windows 7 (Partition 1 does not end on cylinder boundary)

I have just installed Debian Squeeze in a hard disk where also Windows 7 is installed. Now, if I run cfdisk, I get the following message: "FATAL ERROR: Bad primary partition 3: Partition ends in the ...
1
vote
1answer
1k views

Reinstall Fedora, keep files?

Is it possible to reinstall Fedora (I have the DVD that I used to install it yesterday), and keep the files in my home directory? I seem to have messed up my system while trying to get my monitor ...
2
votes
3answers
1k views

Is there any chance that some of these processes are malicious?

My significant other and I are sometimes paranoid that a foreign government usually associated with last year's Gmail security breach may be attempting to gain access to our computers. There were a ...
3
votes
2answers
1k views

What directories/file permissions should i ensure are set?

I have a similar question about default software configuration. For this question i would like to ask What directories/file permissions should i ensure are set? Aprrently Is it normal to get ...
22
votes
1answer
2k views

Why isn't a straightforward 1/5/15 minute moving average used in Linux load calculation?

Until recently i thought the load average (as shown for example in top) was a moving average on the n last values of the number of process in state "runnable" or "running". And n would have been ...
7
votes
1answer
2k views

Why can't I use arrow keys in terminal on Debian 6? (nonroot)

When I am on a non-root user I cannot use ↑/↓ to list my previous commands, and if I am typing I can't use ←/→ to say, add in a directory or to correct the ...
2
votes
2answers
1k views

Install grub on hard disk used in another system

So I have a 512MB flash chip used in an embedded system with the following partition table: p1: 32MB boot partition p2: 200MB recovery partition p3: 200MB normal partition I'm using buildroot on my ...
9
votes
1answer
456 views

Is locking the screen safe?

See USB driver bug exposed as "Linux plug&pwn", or this link Two choices [GNOME, Fedora 14]: Use the gnome-screensaver Use the "switch user" function [gnome menu -> log out -> switch user] ...
18
votes
2answers
38k views

How to recover a crashed Linux md RAID5 array?

Some time ago I had a RAID5 system at home. One of the 4 disks failed but after removing and putting it back it seemed to be OK so I started a resync. When it finished I realized, to my horror, that 3 ...
4
votes
2answers
2k views

How can I configure SELinux when the semanage command isn't found?

I'm having a very hard time configuring SELinux to allow Sending mail. Looking into selinux documentation I've found I can manage ports via the semanage command, but the command can't be found. Is ...
14
votes
6answers
9k views

Can a Gnome Terminal profile use UTF-8 by default?

I am on an Ubuntu (I think) system. I don't have root, so I can't change the locale. I want to make my default terminal profile use UTF-8 by default. There should be a way to do this, either in the ...
1
vote
1answer
418 views

How can I use my server to compile a kernel for my laptop?

My laptop, an HP pavilion with an nVidia card, has some issues with suspending. Namely firewire breaks on suspend and the nvidia drivers cause Xorg to hang on resume. I'd like to compile my own kernel ...
3
votes
1answer
3k views

How do I configure SELinux to allow outbound connections from a CGI script?

I'm migrating to a new webserver which has SELinux set up (running Centos 5.5). I've got it set up so that it can execute CGI scripts with no problem, but some of the older Perl based scripts are ...
4
votes
1answer
741 views

Is there a search utility which can binary split search a large sorted (sequential) text file?

Yes, I know it sounds odd. Sequential and Binary-splits don't mix.. That is unless the sequence is the byte offset within the file itself... I've scrambled together a binary split search in bash ...
1
vote
1answer
182 views

Python in GNOME code base

Is Python present in the Gnome code base? If so, how is it involved? Note: My question concerns the core GNOME Desktop Environment only (e.g. nautilus, gnome-session, NetworkManager) and any ...
4
votes
1answer
2k views

Obtaining Solaris 10 patches

I have a Solaris 10 server. I've been trying to find from where I can download patches/updates. The specific bug I'm running into (http://bugs.opensolaris.org/view_bug.do?bug_id=6551484) is ...
2
votes
1answer
2k views

Ideas for securing OpenVPN on an OpenWrt router

I put an OpenVPN server on port 1194 on an OpenWrt 10.03 router: echo "nameserver 8.8.8.8" > /etc/resolv.conf; opkg update; opkg install luci-app-openvpn openvpn openssl-util openssh-sftp-server ...
18
votes
4answers
18k views

last time file opened

Is it possible to get the time when file was opened last time and sort all files in a directory by those times?
3
votes
2answers
4k views

How to catch optioned and non optioned arguments correctly?

I want to write a shell script which will take some arguments with some options and print that arguments. Suppose the name of that script is abc.ksh. Usage of that script is - ./abc.ksh -[a ...
3
votes
2answers
2k views

hibernate to disk not restoring, but suspend to ram is working

I have Debian 6, I have also seen this under Ubuntu (can not remember how I fixed it). I can hibernate, but when I switch on the system cold boots (it does not restore previous session). Note ...
8
votes
4answers
931 views

Video playlists with start and end times

Is there a good GUI-application (for example an mplayer GUI or something like banshee) for linux which allows to make and edit playlists (for video files) with different starting and stopping times ...
3
votes
1answer
3k views

How to add an iso file as APT source

Say I have this line in "/etc/fstab": /iso/apt.iso /mnt/apt iso9660 loop 0 0 And I run these commands as root: mount --all apt-cdrom add --no-mount --cdrom /mnt/apt I expected the disk to be ...
2
votes
3answers
1k views

.Xresources settings in effect

Is there some way to inspect which .Xresources settings are in effect at the moment (unlike xrdb -query)? For example, I'm on a host which doesn't seem to respect *reverseVideo: true, but I don't know ...
5
votes
5answers
985 views

Consumer Level software RAID5 and LVM

Hi I am going to build a 6 drive consumer level RAID 5 (10TB) with Ubuntu10.10 and using EXT4 as filesystem, and OS on another drive. Question: Should you use LVM on top of the RAID5 or should just ...
18
votes
1answer
2k views

Should the usage message go to stderr or stdout?

Should the usage message which is printed with e.g. command -? of a Unix command go to stderr or stdout, and why? Should it go to the same place if the user makes a mistake with an option?
3
votes
1answer
1k views

Fedora won't boot. The startup progress bar goes all the way to the right and then everything just freezes

What could the problem be? How do I find out what's going on? EDIT: Hitting f2 when the progress bar is going across the screen shows that booting stops at "Starting atd: [OK]". After it reaches that ...
0
votes
2answers
787 views

Git Server Bash and SSH

I want to use Git over SSH with my Linode VPS running Ubuntu 10.04 LTS. Instructions seem pretty easy, infact given I had already setup my SSH key etc.. All I had to do was instruct my local ...
1
vote
1answer
386 views

Gtk application (Gvim) rendering troubleshooting

When I switch from gvim to another application and then after some time switch back gvim window appears blank with cursor blinking in the middle. Sometimes toolbar and tabs look like a white space. ...
2
votes
2answers
214 views

Can shared-mime-info associate a MIME type to a desktop applications?

I can add a new MIME type in shared MIME-info, but how can I associates this MIME type with an application?
3
votes
1answer
663 views

How can I find the application for a MIME type on linux?

Is there a linux API that can find the default application for a MIME type? Then I can use this application to open a file. I can not use xdg-open(url) because the file format is a wrapper format and ...
1
vote
1answer
3k views

Where is the trash directory for PCManFM and xfe?

I've got PCManFM and Xfe as graphical file managers in my Arch Linux with Openbox. When I click on the Trash link in PCManFM I get an error saying "Operation not supported". Question: Where do ...
4
votes
2answers
995 views

Installed Fedora in dual boot Windows desktop. Now I can't get full monitor resolution with my AMD Radeon HD 6450

I have a 1900x1080 resolution monitor, and after installing Fedora to create a dual boot machine, the maximum resolution Fedora 14 (previously only Windows 7 was installed) can achieve is 1280x1024. ...
3
votes
1answer
648 views

How do I install mplayer from a terminal?

I need a command to run on Linux to install mplayer. I'm not finding the command anywhere, and when I try to use the zypper command to install mplayer it tells me I am not a sudoer. What should I do?
1
vote
2answers
884 views

Is it possible to source again .bashrc and .zshrc AND remove functions once inside them without restarting?

I had a function inside .zshrc that I removed. Now, when I try to source it, it indeed sources it, but doesn't remove the function that once was inside .zshrc from memory. Is there a way to remove ...
3
votes
2answers
235 views

How to build all of Debian

Let's assume: I have a mirror of the source repository locally. I only want to build for the architecture I'm running, which is i386 in my case. I'm not interested in customisation. In fact, I want ...
2
votes
1answer
3k views

How to connect to OpenVPN with NetworkManager

I have installed an OpenVPN server on my OpenWrt 10.03 router [freshly flashed]: https://pastebin.com/raw.php?i=hRECWuf1 echo "nameserver 8.8.8.8" > /etc/resolv.conf; opkg update; opkg install ...
6
votes
3answers
539 views

What Linux distribution(s) contribute the most development to the GNOME project?

If I plan to contribute to the GNOME project, am I advised to use THAT distribution as my primary development platform or does my choice remain a simple matter of taste? EDIT: I'm a Linux user and my ...
2
votes
3answers
775 views

Filtering paths to a specific depth

I'm using rsync and the flags -nPaAXz ~/ to check which files are going to be copied. This is far too verbose to make any sense of. How could I filter the output so I view the list of files/folders ...
2
votes
2answers
1k views

Lexmark S305 scanner / printer

I have bought a Lexmar Impact S305 scanner / printer. There was the small penguin and the word "Linux" among supported systems on the box. The problem is the official drivers are only for Debian based ...

15 30 50 per page