Programming :: How To Create Own Virtual Device

Mar 12, 2011

I want to try to create my own virtual device in Linux. Something simple, for example, a /dev/fortune virtual device that returns a line from fortune() each time you read from it.

I am willing to do my own research and study, I just need to know where to start. E.g., what to read or what to google, in order to get me where I want to go the fastest. I have some C/C++ and Ruby background.

View 2 Replies


ADVERTISEMENT

Software :: Create A Virtual Video Device (v4l2)?

Sep 3, 2010

I am trying desperately to create a virtual video device (v4l2), meaning something like /dev/video0 that when accessing it (say, with xawtv or whatever) I get a certain video file played.

I am trying to do this with vloopback. After doing modprobe vloopback, the vloopback input device declared is /dev/video0 and the output device is /dev/video1.

I am trying to do this:

Code:
mencoder vid.avi -nosound -vf scale=320:240 -ovc raw -of rawvideo -o /dev/video0
and then to view the movie with this:
Code:
xawtv -c /dev/video1

[Code].....

View 1 Replies View Related

Programming :: How To Create Virtual Driver For Parport?

May 20, 2010

How can I create virtual driver for parport?My notebook doesn't have LPT and I would like to write virtual driver for LPT (USB to LPT).I wrote driver for USB to microcontroller.I don't know how can I register "static const struct parport_operations" or function like this?static void write_parport(/*data*/){/* send data to USB */

View 3 Replies View Related

Programming :: Create A Device Driver For User Applications?

Feb 7, 2010

I have a user Application for transferring the data from one PC to the other PC using Ethernet Port, can we create a device driver for that ?? that means it should act like a virtual device, if we write data into /dev/some file, it should go the other PC

View 3 Replies View Related

Hardware :: Lm-sensors Acpitz-virtual-0 Adapter - Virtual Device Temp1 ?

Aug 23, 2009

I have spent considerable hours searching forums and googling. I have yet to find out what "lm-sensors acpitz-virtual-0 Adapter: Virtual device temp1:" is actually looking at. I have an Abit IP35 motherboard with Ubuntu 9.04 installed.

Here is the output from sensors:

Virtual Device Temp 1 keeps going up to 121 degrees and the computer shuts down. None of the others overheat. Also, my bios does not show my voltages to be set like it lists above. The bios in the motherboard is the latest from Abit.

View 9 Replies View Related

General :: Create And Configure A Virtual SAN Disk And Work On It With Virtual Machines?

Jun 29, 2010

I would like to configure and SAN disk. But I do not have a physical SAN disk. Is it possible to create and configure a Virtual SAN disk and work on it with virtual machines?I have around 400GB of space in my Laptop.

View 7 Replies View Related

Server :: Create A Virtual Host And Virtual Ip In Proftpd Centos?

Nov 22, 2010

I want to create a virtual host and virtual ip in proftpd linux centos. can anyone please help me on this,I'm new in linux.

View 8 Replies View Related

Ubuntu :: USB-device Not Visible In Virtual Box?

Jun 29, 2010

I'm trying to format a Micro-SD card using Windows XP in Virtual Box. My problem is that nothing happens when I plug in the card. I've tried a card reader and my Android phone which should just mount it self as an SD-card. I can use my USB mouse, so I'm a bit confused. I'm using a Packard Bell Easynote Easynote MV35-Z.

View 2 Replies View Related

Networking :: How To Write A Device Driver For Virtual Modem

Nov 25, 2009

i have some basic knowledge about device drivers.can any one tell how to write drivers for virtual modem, Actually my project is to implement communication between the two PCs by using two virtual modems. so for that i need to write the code for the virtual modem which it should understand all the AT commands exactly as physical modem and it should send/receive call and SMS.

View 1 Replies View Related

OpenSUSE :: Cannot Create A New Virtual Machine In Xen

Jan 5, 2010

I have been unable to create any type of Windows VM in Xen. Every time it tells me that the processor(s) in the machine do not support full virtualization. After some research, I found several articles regarding the vmx setting in /proc/cpuinfo not showing up when the xen kernel is booted versus it showing up in the default kernel. Of course, I am not seeing the vmx extension in /proc/cpuinfo after I boot to the xen kernel. In the other posts where other people are in the same situation, the only resolution is to upgrade to the 2.6.16 xen kernel. I am already past that:

linux-vxke:~ # uname -r
2.6.31.8-0.1-xen

yet I am still unable to create any form of Windows VM. I have even seen that some people are able to create a partially virtualized Windows VM, and they report that the message is only a warning. However, I am unable to get past this message. I am running a Dell Optiplex 760 with an Intel Core 2 Duo E7300, and I have the VT-x setting enabled in the BIOS. Has anyone else seen this situation or have any thoughts on why this is happening?

View 6 Replies View Related

Ubuntu :: Create A Virtual Display?

Sep 11, 2010

I'm trying to add another virtual display for X (eg. :1) so I can use VNC on it instead of :0 I have x11vnc installed for that.

View 9 Replies View Related

Server :: Create A Virtual NIC For PPTPd?

Jan 4, 2011

I'm trying to setup PPTPd on my dedicated server and the IP ranges i put the in the config have to exist in one of the network interfaces otherwise the connection wont work,I currently only have eth0 with the direct internet IP which i can't use for this purpose,I need a new NIC with a LAN IP for this and I have no clue.

View 1 Replies View Related

CentOS 5 Networking :: How To Create Virtual IP's

Mar 29, 2011

I have one static IP, how can i turn it into multiple IPs so i can run multiple games on one machine.

View 2 Replies View Related

Ubuntu :: Virtual Network Device - Unable To Start Services

Jun 15, 2010

Just upgraded fro 9.10 to 10.04, and went to start VMware player. It needed to load and compile some modules.

All of them got a nice green tick except the Virtual Network Device

Unable to start services. See log file /tmp/vmware-root/setup-2986.log for details.

I cant access that log file. Set the folder to read only, and any contents, but theres no file in there.

How do I solve this so I can run WMware?

View 3 Replies View Related

Fedora Servers :: Can't Create Virtual Machine

Jan 6, 2009

I used qemu sucesfully on F9 but I can't find it on F10. I can't create a virtual machine. I tried installing qemu from rpms that I found on their site without any luck. How can I create a virtual machine on F10?

View 2 Replies View Related

Fedora :: Can't Create Virtual Machine With QEMU/KVM

Nov 8, 2010

I just install QEMU and virtual machine manager to use virtualization, but virt-manager cannot run properly. I can create a VM, then mount CDROM ISO, startup. With Windows installation, it runs well until format partition step, after that it is disconected and exit with error related to VNC. I dont know why have this problem cause the packages that I installed is from Fedora repo and I think they have been tested.

Here are some infos:

Fedora 14 - kernel 2.6.35.6-45.fc14.i686.PAE
qemu-2:0.13.0-0.7.rc1.fc14.i686
libvirt-0.8.3-2.fc14.i686
virt-manager-0.8.5-1.fc14.noarch

View 1 Replies View Related

General :: Create A Virtual Serial / COM Port?

Mar 25, 2010

I'm currently working on a project for university that requires communication, via an RS232 link between a piece of hardware (I have designed and am currently testing) and some software(which need testing).

I was hoping to have my hardware finished by now so I could get on with testing the software over Easter.

The hardware does not work yet but I would still like to test the software.

Does any one know if there a way to make a virtual serial port that I could put data on and read data off while my program accesses it as a regular serial port so I can check my code?

I am using Ubuntu 9.10 and am happy to give any more information on request.

View 10 Replies View Related

General :: Create Virtual Lan Using Ubuntu 10.10 For Some Hypervisor?

Jul 14, 2011

I want to create virtual lan using ubuntu 10.10 for some hypervisor ,
I searched for docs but I couldn't get the required one ..

View 2 Replies View Related

Fedora :: Create Virtual Hosts For Each User On Server?

Nov 11, 2009

I am trying to create virtual hosts for each user on my server using Name-based virtual hosts and then make a symbolic link to /home/userdir/html

Here is what I have for my virtual hosts:

NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin tasha@ttu.edu
DocumentRoot /home/httpd
ServerName 128.118.118.7
ErrorLog logs/error_log
CustomLog logs/common
</VirtualHost>

What do I need to add to make it follow symbolic links in /home/userdir/html?

View 4 Replies View Related

Fedora Networking :: How To Create Virtual Network Adapter

Nov 11, 2010

I m facing problem in creating virtual network adpater. I want to have multiple mac address for a single NIC.

View 2 Replies View Related

OpenSUSE :: Error - Could Not Create The Java Virtual Machine

Dec 17, 2010

I am trying to run a .jar file, and I have both JDK and JRE installed. This is the error I keep getting.

Code:

jonathan@linux-d0g9:~> cd Downloads
jonathan@linux-d0g9:~/Downloads> java -jar RSBot2.jar
jonathan@linux-d0g9:~/Downloads>

[code].....

View 5 Replies View Related

General :: How To Create Virtual Folders From Saved Search

Jan 14, 2011

I would like to have on unix-like platforms, the same functionality as to Windows 7 Library folders (aka virtual folders) you see in Windows Explorer.Gnome Nautilus do that kind of virtual folders through saved search. But I want a system-wide solution, not a gnome-wide solution.Is there a tool that creates virtual folders from the concatenation of multiple search queries (the result of multiple find commands ?). The solution should index files for better performances and you should be able to define the default folder for copy operations.

View 1 Replies View Related

Ubuntu Multimedia :: Create Virtual Drive From Cd Folders ?

Apr 11, 2010

I have one cd program, but the cd is corrupted (tried to make backup copy in windows xp with alcohol 52%, but got error at about 95%, and i can not use this cd any more in xp - only for few minutes, then it stops...)

I made few days ago one .iso image, but without cd drive i can not run it (has copyright protection).

The only thing i can do now is to copy cd data. But can i make from this cd folder some virtual cd image in ubuntu, which i could transform into .iso image (using alcohol 52% in xp to avoid copy protection and enable to use it without cd drive)?

View 1 Replies View Related

Ubuntu Servers :: Create A Virtual Host For A Php Project?

Apr 28, 2011

I needed to create a virtual host for a php project I'm working on. Rather than using command line and text editors, I installed webmin to accomplish this and hopefully perform other server configuration in the future. When I created the virtual host and tried applying the changes Apache wouldn't re-start, and still doesn't restart after complete re-boot. It's getting hung up at the end of apache2.conf, which is trying to include /etc/apache2/sites-enabled/000-default.

When I look at 000-default from a File Browser, it's a linked file to etc/apache2/sites-available/default I can open both the linked file and actual file in a text editor, and it looks fine. When I view the directory, /etc/apache2/sites-available from shell, the default file isn't visible. It seems this "invisibility" is probably related to the error, which is preventing start-up. Can anyone explain why the file would be visible from the Ubuntu File Browser GUI but not from the terminal, and how I can fix so apache can recognize this on start-up?

View 3 Replies View Related

Ubuntu :: Error - Could Not Create The Java Virtual Machine

Jan 17, 2010

im trying to install a .sh file for a online game but i get this error Unrecognized option: -XstartOnFirstThread Could not create the Java virtual machine.

View 1 Replies View Related

Networking :: Create Multiple Virtual Adapter For VLAN'S

Jul 3, 2010

I need to set a NAC (PacketFence) system , i would like to set in my case eth0 to work with several different VLAN'S i created ifcfg-eth0.2 copied from orginal ifcfg-eth0 and changed the ip and append VLAN=yes but when i am triyng to load ifcfg-eth0.2 i get error

I must missed something

My ifcfg-eth0 goes as follow

Code:

My ifcfg-eth0.2 goes as follow

Code:

View 2 Replies View Related

Server :: Create Postfix Virtual Users Without Dovecot

May 28, 2010

I just want to create virtual postfix users using static external file, without using dovecot as MDA or mysql db.

View 1 Replies View Related

Server :: Create A Virtual User System With Mysql?

May 27, 2011

I'm using dovecot pop3 server in my website. I tried to create a virtual user system with mysql. But it didn't work. Next I tried to debug my work with reading of dovecot log. I enabled logging in it by changing this values in /etc/dovecot/conf.d/10-logging.conf:

Code:
log_path=/var/log/dov
auth_verbose = yes
auth_debug = yes
auth_debug_passwords = yes

After that I tried to login to the pop3 via telnet and it failed as usual. After I checked the log file (/var/log/dov), but it does not contain any information about that failed login. Only there was some information about starting up of dovecot! Does any body know that what is the problem and why dovecot doesn't log that?

View 8 Replies View Related

Software :: Apache 2 Redirect - Create Virtual Servers?

Feb 25, 2009

I believe I finally have a very secure config for apache2 that will only use SSL or port443.

Problem is how do I redirect all my users who dont type in https:// to the proper SSL port 443?

Do I have to create Virtual Servers? If so how?

Or is there a Redirect command?

Code:

View 4 Replies View Related

Software :: Create Aliases And Virtual Table In Postfix?

May 26, 2010

I'm using rhel5 i configured postfix on it. need is to create virtual table and virtual.db. How can i create these

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved