12
votes
2answers
3k views

What happens when I close() a file descriptor?

I am trying to get the whole picture with file descriptors. Say I have process1 which initially has these file descriptors: _process1_ | | | 0 stdin | | 1 stdout | | 2 stderr | ...
3
votes
0answers
6k views

LVM2 can not wake up suspended logical volume

Read my story below. I'm using LVM2 with following information: Scan for VG: # vgs VG #PV #LV #SN Attr VSize VFree unix 1 1 0 wz--n- 115.00g 45.00g Scan for LV # lvs LV ...
5
votes
3answers
5k views

How to share files between Linux and Windows?

I am wondering, is there any way to easily share a folder between Linux and Windows?
4
votes
5answers
4k views

How to set an alias for a specific file or directory?

There are several files I work with often. For instance some configuration files or log files. Let's say the Apache log file. I often want to tail or grep it. Instead of writing: tail -50 ...
13
votes
2answers
6k views

Faster graphics in KVM guest

Is there any way to improve the graphics performance of a KVM guest? I suspect that the question is too general, so I will give my setup and requirements. My ultimate goal is to use an Ubuntu guest ...
9
votes
2answers
2k views

Bash is not fully functional for a new user

I just created a new user on my system using useradd -d /home/users/john -m john (Using Ubuntu 11.04). This worked fine, but when I changed to john, my bash is not fully functional. That is, it has no ...
2
votes
1answer
555 views

Maze screensaver on old Unix computers

I used to use unix computers in the 90's for building GIS systems. There used to be a screen saver which consited of a maze that filled the screen. Then the computer would logically solve the maze ...
2
votes
1answer
2k views

reference problem in using sed

I'm trying to use sed command to find/replace a pattern in file. It gives: sed: -e expression #1, char 27: invalid reference \1 on `s' command's RHS My command is: sed ...
2
votes
4answers
1k views

What does Arch Linux offer?

I use Macs, Ubuntu, FreeBSD, OpenBSD, and Fedora for different purposes. I'm fairly busy and trying out a new distro takes a lot of time, but I hear lots of good things about Arch Linux from people I ...
13
votes
3answers
6k views

Does Android really use the same kernel as Linux?

I read from somewhere that Android uses the Linux Kernel. Is it really true? I thought the Linux Kernel was meant for desktop operating systems.
0
votes
4answers
658 views

NMAP probing VirtualBox Client

Cannot seem to probe virtual guests from the virtual host. These guests can be probed from other devices on the same LAN/Network, but not the host. I can understand why it might be struggling, but I ...
1
vote
2answers
2k views

Can't access Apache log folder

I want to see apache log file. This is what I tried: I granted most all permissions to apache2 folder. hieund@hieund:/var/log$ sudo chmod a+rw apache2/* But I can't cd to it. So I add my user to ...
2
votes
1answer
663 views

Kernel can not boot after upgrade on Fedora OS 15

I am using Fedora 15, and want to upgrade to version 16. I followed the official link Upgrading Fedora using yum - FedoraProject to upgrade my OS by the following command: yum update kernel* ...
1
vote
1answer
76 views

dump out some tables of the database

I am using MySQL v5.1 on Ubuntu machine. I have a database named db_test which contain tables like cars, customers, departments, prices , and so on. I know I can use the following commands to dump ...
7
votes
3answers
3k views

Why does initramfs mount the root filesystem read-only

What is the reason for the root filesystem being mounted ro in the initramfs (and in initrd). For example the Gentoo initramfs guide mounts the root filesystem with: mount -o ro /dev/sda1 /mnt/root ...
2
votes
2answers
6k views

Can I copy a MySQL database by copying the files? What do the files contain exactly?

I am using MySQL database and using an Ubuntu Linux machine. My database named db_test , I notice that under path /var/lib/mysql/db_test ,there are files suffix with .frm, .MYD, .MYI like following: ...
7
votes
5answers
993 views

Can I prevent a file from being created?

We have a machine that runs VMware Server. It constantly creates a file called not_configured in /etc/vmware/, which somehow makes our virtual machines not able to be started. I wondered if there was ...
5
votes
2answers
2k views

What's the next step in troubleshooting this wireless connection failure?

I just installed Ubuntu 10.04.3 to dual-boot with Windows. I can connect to the Internet using a wired connection, but not through wireless. The first time I booted, the wireless notification bar ...
2
votes
2answers
4k views

huge .sujournal file on FreeBSD

I am running out of space and when I checked, I found that I have # pwd /usr # ls -l .sujournal -r-------- 1 root wheel 33554432 Dec 31 1969 .sujournal I wanted to ask should/can I remove it? ...
1
vote
0answers
442 views

Install key 3G Huawei E1752 in Debian

I have a PC without a CD ROM drive. I have a connection with Orange 3G, using a Huawei E1752 device. I want to install Debian on my hard drive from a 15BG USB Disk. I tried with Debian Live but that ...
8
votes
3answers
3k views

What does : ${param:=value} mean?

I read the following in A User's Guide to the Z-Shell: A synonym for ‘true’ is ‘:’; it’s often used in this form to give arguments which have side effects but which shouldn’t be used — ...
3
votes
2answers
3k views

How to reinstall /bin/sh

I have accidentally deleted /bin/sh, and I am trying to to re-install it. If I type sh in the terminal, It says The program 'sh' can be found in the following packages: * bash * dash If I try to ...
3
votes
2answers
4k views

How much strip(1)-ing is okay for kernel modules?

I regularly create packages for Slackware Linux and part of the process is stripping binaries so that they take up less space. I find that if I strip --strip-all (or strip with no options) kernel ...
1
vote
2answers
4k views

installed `default-jdk` but there is no `javac`

I have a Debian Unstable VM which I used to package a Java project before. Today, the javac was gone somehow, so I installed default-jdk again. But still, there is no javac. What could I do?
3
votes
2answers
1k views

Restricting memory area for linux kernel

I am running ltib Linux on P1022RDK (P1022 Core) platform. I have 512 MB = 0x20000000 memory. I want my Linux kernel to use the second half of the board memory (i.e from 256 MB to 512 MB) and want the ...
5
votes
1answer
2k views

How can I match the page break character in a regular expression?

Nano calls it ^L, but of course, typing something like $ grep -v "^\^L" file doesn't work. Its unicode codepoint is 000C. How can I match it in a regular expression?
2
votes
2answers
929 views

Xvfb does not release memory

We want to create screenshots of websites for our software, and we are doing this by using CutyCapt with Xvfb. Unfortunatly every time CutyCapt takes a screenshot, the memory of Xvfb increases .. ...
2
votes
2answers
631 views

Windows Recovery from Grub messed up my computer?

Ok so I'm a noob when it comes to Operating Systems and I think I really messed up this time. So I have a laptop that dual boots Windows 7 and Linux Mint 11. I was trying to boot into Windows 7 but it ...
0
votes
1answer
476 views

Linux based tools for multiple TV channels (cable TV) digitization

I'm planning to start a service which archives TV video content (at low quality). I'm exploring what software and server setup will be needed. The TV channels in the geography I'm looking at are ...
1
vote
1answer
461 views

Where can I find configuration file for uw-imapd on debian?

Where can I find configuration file for uw-imapd on debian? Is there even one?
2
votes
1answer
381 views

Is there a difference between Linux and Unix? [duplicate]

Possible Duplicate: Is Linux a Unix? Kind of confused by the two terms. Is there any difference between the two terms?
5
votes
4answers
28k views

How to create a bootable USB stick with Debian Squeeze

Using Ubuntu, I want to install Debian Squeeze on my PC with a bootable USB stick. I found this tutorial: Plug the usb key in order to find the device location: $ df -k /dev/sdb ...
1
vote
2answers
1k views

Running any kind of login script when sh is linked to bash

My problem: My web host offers ssh to their shared server. I want to set up a couple of aliases and such, so I'm trying to get a login script of any flavor to run. If my shell was plain bash, I would ...
4
votes
1answer
6k views

CentOS doesn't know what the internet is

So I've done my share of investigating this problem... I just recently created a CentOS 6 VM on my LinuxMint box using VirtualBox. I left all the recommended values the same upon creation (8GB HDD, ...
1
vote
0answers
361 views

Cannot install Debian on QEmu-arm

I'm trying to run Debian 6 network install with this command: sudo qemu-system-arm -M versatilepb -kernel ./vmlinuz-2.6.32-5-versatile -initrd ./initrd.gz -hda ./debianlxde.img -m 256 -append ...
3
votes
1answer
658 views

Only one CPU core is active on Fedora 16

I've upgraded from F15 to F16 and noticed that I have a problems with hardware detection. Upon loading I can see message like ... CPU#1 not responding ... on the screen. It disappears and I can ...
0
votes
1answer
557 views

Enter process running in background/bring to foreground [duplicate]

Possible Duplicate: How can I disown it a running process and associate it to a new screen shell? I started a java client using nohup to get it to run in the background (needed to log out ...
8
votes
3answers
3k views

Make changes to /sys persistent between boots

I want to make "echo 1 > /sys/kernel/mm/ksm/run" persistent between boots. I know that I can edit /etc/sysctl.conf to make /proc filesystem changes persist, but this doesn't seem to work for /sys. ...
1
vote
1answer
3k views

Install FFMPEG on RHEL/CentOS

I've been searching for hours now and trying various methods of installing FFMPEG on my CentOS server. This is what I have currently installed on my Ubuntu desktop: FFmpeg version ...
3
votes
1answer
1k views

What are my options for integrating audacity into shell scripts?

Just generally, I mean. Ideally I want to be able to script the nyquist plugins directly from the Linux command line by means of one-liners. A cursory glance at scripting audacity shows that it's ...
1
vote
1answer
450 views

I wiped my /etc/yum.repos.d

I think I seriously messed things up on my EC2 instance which I'm currently hacking on. I tried to install some rpmfusion repository from which to install FFMPEG, but it broke things and I wasn't able ...
4
votes
1answer
642 views

Is it possible to have X parse a per-user configuration file?

I am thinking that many of the options that one has to write in the traditional system Xorg.conf file, have to do with user preferences and thus should not IMHO be set by system administrators. In ...
6
votes
3answers
17k views

How to play RTSP stream under Linux for the BOSCH AutoDome Junior HD IVA camera?

I have a AutoDome Junior HD IVA camera. How do I play RTSP stream in my Linux distro? I tried VLC but it fails. Is there any other reliable tool? Follow up: Try 1: fail $ mplayer ...
5
votes
4answers
30k views

How do I add a logon GUI to Backtrack 5 R1 with GNOME?

I'm running Backtrack 5 R1 with GNOME in Virtualbox on a Windows 7 x64 host. In the default install, Backtrack boots to a command-line login prompt and then requires you to run startx to load the ...
6
votes
2answers
2k views

Why does Unix store timestamps in a signed integer?

Why is a signed integer used to represent timestamps? There is a clearly defined start at 1970 that's represented as 0, so why would we need numbers before that? Are negative timestamps used anywhere? ...
1
vote
1answer
1k views

Boot device /dev/sda1 does not exist on Debian in QEmu

I have an image of Debian/LXDE assembled for ARM and I trying to run it in Qemu. I am using this command: sudo qemu-system-arm -M versatilepb \ -kernel ./vmlinuz-2.6.32-5-versatile \ ...
6
votes
2answers
2k views

working with filenames in a different encoding over ssh

I'm ssh'ing to a remote system where a different encoding for the filenames (and for the users' locales) has been used. And this causes some problems. Problems solved by matching the locale settings ...
3
votes
2answers
1k views

Problem at boot-time: “Loading user-defined modules [FAIL]”

After I updated my Kernel to version 3.0, i always get this line when my Arch-Linux system is booting up: Loading User-specified Modules [BUSY] [FAIL] I have no idea what could cause this to ...
3
votes
2answers
712 views

How to implement a rotation scheme with rsync

I have an ever growing remote directory of files that I'd like to sort and filter before I rsync them, with the goal of always keeping only the latest N files in my destination directory (i.e. a ...
5
votes
2answers
4k views

Running a bash script as a less privileged user with upstart

This is the script, /home/jack/myscript.sh, which I want to run: export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.26/ /home/jack/myapp/apache-tomcat-6.0.32/bin/./catalina.sh run The upstart file, ...

15 30 50 per page