3
votes
1answer
405 views

Xenomai and Ubuntu

I have installed xenomai 2.4.8 in Ubuntu 11.04 with this command: apt-get install libxenomai-dev Now I want test a simple vxWorks program, but when I compile my program, I receive this message: ...
3
votes
6answers
6k views

Python 2.7 on CentOS 5

Are there any half-official repositories for CentOS 5 with Python 2.7? EPEL provides only Python 2.6
3
votes
1answer
653 views

How to get dual booting to work when using burg and two hard drives?

I have arch linux on one 250GB hard drive and windows 7 on another. I can boot into ArchLinux just fine, and I can boot into windows if I unplug the hard drive with Arch. But when I boot with both ...
3
votes
3answers
1k views

Is there a tr for translating into longer strings?

tr is great for translating a set of characters to another set of characters. Sometimes, I want to translate a set of characters to a set of strings, e.g. all < and > to &lt; and &gt;. ...
27
votes
3answers
1k views

Should I care about unnecessary cats?

A lot of command-line utilities can take their input either from a pipe or as a filename argument. For long shell scripts, I find starting the chain off with a cat makes it more readable, especially ...
6
votes
2answers
22k views

How do I get UUENCODE to work?

I have a server that I have inherited that has an older version of Redhat installed due to software requirements and now there is a need to use UUENCODE to allow email attachments. The uuencode and ...
4
votes
1answer
567 views

Are there zero-width assertions in sed?

Is it possible to make lookahead or lookbehind zero-width assertions in sed? I want to emulate Perl's (?=) and family. My sed is not GNU sed version 4.0.
2
votes
1answer
199 views

sed one-liner to delete word-medial spaces

I have a text file that consists of some N ORMAL E NGLISH W ORDS in all-caps. Unfortunately, these words all have a space between the first and following letters, which is not acceptable. I tried ...
2
votes
1answer
65 views

RedHat Enterprise Edition Kernel Support

Is there support for Kernel versions 2.4-2.6 in RedHat Enterprise Linux versions 4 and 5?
2
votes
1answer
1k views

Cannot connect to printer hosted on a Belkin print server

I tried to tap into Belkin Home Base (model #F5L049au) print server. I want to access a printer hosted by it. I set it up as a CUPs printer with the below specifications: Description: Via Belkin ...
5
votes
2answers
403 views

How to control the page parameters (margins, brochurisation) of `man -t` PostScript output?

I want to print several man pages as several booklets. I need to tweak the output of the man -t command so the resulting PostScript file will have the brochurised page numbering, pages must be ...
8
votes
2answers
5k views

How can I change what's displayed at a login shell?

I'm getting more familiar with tweaking the way things look in a shell via the prompt (.bashrc), but I'm now trying to change the initial stuff displayed when I first log in. On my EC2 instance, this ...
2
votes
2answers
4k views

Use testdisk and gpart information to mount ext4 partition

I am trying to recover the ext4 partition table of a 2TB disk, where I have 900.000 files. I have cloned the original HD and now I am working on the cloned HD. And I am running Parted Magic Live CD. ...
12
votes
6answers
712 views

Which linux distro's package repositories are secure and which are not?

Most distro's I know have some kind of repository functionality where new packages could be downloaded after installation. Which distros do this in a secure way and which doesn't do this in a secure ...
5
votes
2answers
1k views

is there a way to set coloring for cd tab complete?

I use ubuntu 11.04. Is there a way to set coloring for output after tab completion listing of a cd, ls, or etc. ? i.e. myshell@root$ cd ~/user/files/ I hit tab... myfile myfoo mybar <-- this ...
4
votes
2answers
3k views

Problem with $PATH and executable file

I am a complete unix noob so please forgive my simple question. I have a unix executable file located in a directory I generated. I believe I need to get this directory in my $PATH so that the unix ...
1
vote
1answer
1k views

Debugging Java program for changing timezone configuration file on Ubuntu

Here is a ruby script I wrote to change the timezone configuration on Ubuntu. I run it with jruby (a Ruby interpreter running in a JVM). require 'java' if ARGV.length == 0 puts "Usage: jruby ...
2
votes
2answers
170 views

Completely Backing Up Linux Installation

I come from Windows, and I've been getting into Linux a little bit lately. Trying to make that my default OS for now. I've wanted to try out a couple different flavors of Linux. I spent probably a ...
2
votes
2answers
320 views

Simple LiveCD running only Xorg Server

I have a netbook without HDD, I think it could be useful for monitoring logs. Do someone know about a light LiveCD, running only a Xserver?
6
votes
3answers
389 views

Why might tmux only be capable of attaching once per shell session?

I'm using tmux on a Fedora 8 server (workplace restriction) to monitor several boxes on a stress rack. I noticed that I can only attach to my detached tmux session once per shell session. In order ...
3
votes
2answers
151 views

Installing drivers in ubuntu

I just installed Ubuntu 10.4LTS on my machine and I'm having trouble following the driver install directions. I am told to execute this command in the 'linux source tree': make ...
7
votes
2answers
17k views

How can I verify SSL certificates on the command line?

I'm trying to validate/verify that the rsa key, ca-bundle, and certificate stored here are ok. They are not being served by a webserver. How can I verify them?
3
votes
1answer
159 views

Add <script> to the bottom of a html file?

I have a bunch of HTML files, and I need to add <script src="ga.js"></script> before each search instance of "</body></html>". How would I add that to the bottom of all these ...
5
votes
2answers
7k views

How do I check how much free space left on a device to create a partition

Let's say I have this virtual machine running: [root@centos ~]# fdisk -ul Disk /dev/sda: 8589 MB, 8589934592 bytes 255 heads, 63 sectors/track, 1044 cylinders, total 16777216 sectors Units = sectors ...
7
votes
1answer
2k views

Virtual box machine, Created in windows run on linux?

Can a virtual box machine that was created in Virtual Box for windows run on Virtual box for linux? And if so do I just need to transfer the hdd files?
2
votes
1answer
903 views

sulog with openSUSE 11.2 (x86_64)

I need to log as much as possible when users a doing su *... Best would be to log all commands especially for the case root does something as a user. We can assume root would not change this logging ...
5
votes
1answer
189 views

How do I know which files will be included in a linux kernel before I build it?

I am working on a project that includes building an old kernel version of linux. This is fine, but I still need to patch the kernel of all previously found security vulnerabilities based on CVEs. I ...
4
votes
2answers
2k views

Copy files from remote server to local, ignoring existing files (rsync not available)

I would like to copy a directory of files from a remote server to my local machine. As it is a large number of files, the option of ignoring existing files is desirable. Unfortunately, rsync is not ...
5
votes
6answers
24k views

How to transfer files from Windows to Ubuntu on Virtualbox?

How should I transfer files from Windows to Ubuntu installed on Virtualbox? When I plugged in a USB, it only pops up in Windows. How can I see it in Ubuntu?
0
votes
2answers
252 views

Linux (Debian) web server advice

I'm at the start of a new company in which the main activity is building internet web apps. I was very familiar with linux 8-9 years ago, but since then, I've lost a lot of touch with it (couldn't ...
7
votes
3answers
8k views

What is IFS in context of for looping?

I'm learning bash scripting right now. I was reading this thread: How to loop over the lines of a file? What is IFS? With for and IFS:
4
votes
4answers
5k views

How to make an Ubuntu time zone change stick?

I'd like to reset the timezone through editing /etc/timezone. However, after I am done editing and save the file, the system time would not change accordingly. On the other hand, when I take ...
3
votes
1answer
123 views

Colour problem when capturing a png of the top panel of the screen

I want to capture a window as a png from within a bash script, using the window's ID. In this case, the window is the top panel.  Using gnome-screenshot the colours are true, as per this image... ...
9
votes
2answers
345 views

Vim, context-sensitive comment/uncomment behavior

I edit a lot of PHP code with Vim, and I've run into a snag with some macros in my .vimrc. I currently use these two macros to comment/uncomment in C-style "c-style (//) comment (press the [.] key) ...
4
votes
4answers
152 views

Make mistakenly thinks rule succeeded because of 0-sized file generated by output redirect

In a makefile, I have several rules that look like this: out.txt: foo.sh input.txt ./foo.sh -i input.txt > out.txt If foo.sh fails, then out.txt will be created as a 0-sized file. If I run ...
0
votes
3answers
1k views

How to transfer Windows application to Ubuntu on Virtualbox?

I have Matlab on Windows 7 and I need to use it in my Ubuntu system installed on Virtualbox because I am working on files only compatible in Linux. How can I transfer Matlab into my Ubuntu system?
3
votes
3answers
2k views

How secure is Ubuntu in Virtualbox on Windows host?

I have the most recent version of Ubuntu in Virtualbox on Windows 7 host. How secure will that be? I mean if I get malware on windows how will that affect the Ubuntu system I am working on?
5
votes
1answer
13k views

How to change bash console font to display UTF-8 characters

I'm having some trouble with displaying UTF-8 characters correctly on bash. I was trying to extract some zipped files that contained accented characters in their names, and I was getting the invalid ...
6
votes
1answer
6k views

How can I create users with only remote ftp access on Linux server?

I'm running a Ubuntu 10.04 LTS server and I want to create users who can only access the server from ftp. What I did so far is: Install vsftpd Create new user with default login shell set to ...
3
votes
2answers
94 views

Forbid a given user to use a given range of port

I would like to forbid a user account on linux to use a a given port. So far, without root privileges, a user can't use ports under 1024. Is there a way to limit a user to a given range of ports, let ...
2
votes
2answers
583 views

How should I install Fedora or any other Linux in USB hard disk and configure booting?

I want to install Fedora or any other Linux in USB hard disk. I have Windows XP installed in internal HDD. When USB HDD is attached to my PC, it should ask me to boot from Win XP or Linux. ...
2
votes
2answers
4k views

Suse filesystem turns read-only

I've installed openSUSE 11.2 (64bit) a while ago, and am mainly using it as a dedicated Apache hosting machine. Everything has been working properly for a while (~1 month), but as of a few days back, ...
6
votes
3answers
1k views

How to check if /proc/ is mounted

How can I check if /proc/ is mounted? Using /etc/mtab is discouraged as it might be inconsistent. Using /proc/mounts is also not an option as might not exist if /proc/ is not mounted (although ...
2
votes
2answers
360 views

Security support time for OpenBSD?

If I install OpenBSD 4.9, when will I have to upgrade to 5.0? When will the 4.9 release no longer be supported by the OBSD teams?
2
votes
2answers
126 views

SED misbehaving with input file

Simply put I have a small sed command that is supposed to trim " and wrap the input between the <id> tag. It goes well single line and multiple line input, but badly misbehaves on an input file ...
3
votes
1answer
143 views

Sample a few lines from an strace printout

I've got a process that I want to inspect with strace, but since it's printing out a lot of stuff, I would like to sample only a few lines every X seconds from it. Is there any way of doing that with ...
-2
votes
1answer
628 views

“Clean” Filesystem Hierarchy

The Linux filesystem hierarchy is full of unused folders that only exist for historical reasons. Do any distros install with only the directories that are actually used?
24
votes
3answers
28k views

How to search text throughout entire file system?

Assuming that the grep tool should be used, I'd like to search for the text string "800x600" throughout the entire file system. I tried: grep -r 800x600 / but it doesn't work. What I believe my ...
1
vote
2answers
3k views

Encountering this error /usr/bin/ld: final link failed: No space left on device

/usr/bin/ld: final link failed: No space left on device is the error coming when I'm trying to complie Open Source code project I have about 7GB free space over the Disk so I think that cannot be the ...
4
votes
1answer
1k views

How to switch between GPU's

How can I switch between two GPU's on-the-fly using Ubuntu 11.04? I have an Asus EEE1015PN intel N550 with two GPU's: GMA3150 and Nvidia ION2. For example Windows 7 will switch to the bigger CPU when ...

15 30 50 per page