Fedora :: Linking Script To A Key?

Oct 1, 2009

I have created a Fedora 11 image with the GUI stripped out that autoboots into a mainframe terminal emulation program(c3270). I have everything working except for a print screen function. I have made a little script that will dump the screen from tty3 and send it to a printer, but I have no way for the end user to run this without giving them access to a terminal and I do not want them playing with that. So I was wondering if anyone knew a way to link the running of a script to a keybinding. That way all they have to do is hit Print Screen or some alt + key combo to get the screen capture.

View 2 Replies


ADVERTISEMENT

Programming :: Static Linking Versus Dynamic Linking

Apr 18, 2010

I have written an OpenGL based program which uses i.a. libjpeg that I want to link statically so I can send it to someone who doesn't have all the libraries needed installed to allow for a dynamically linked executable to run. As such I tried with giving the [b]-static[b] parameter to gcc.

Code:

x86_1$ make
gcc -O3 -c jpegloader.c
gcc --std=c99 -O3 -c --std=c99 -I/usr/include -L/usr/X11R6/lib main.c

[code].....

Why would gcc claim that I'm missing GLUT? This works perfectly fine when I do dynamic linking -- i.e. omitting the -static argument.

View 13 Replies View Related

Fedora :: Linking To X Development Libraries In GTK+

Oct 17, 2010

I am running Fedora 13 on a ASUS G71G Trying to install GTK+ 2.4.8; after installing all the dependencies(Pango, Glib2.0, ATK), I ran ./configure from my GTK+ directory. It configured for a while, then this happened: checking for X... no configure: error: X development libraries not found I tried linking them with PKG_CONFIG_PATH=<path to X lib directory>, but I got the same error message. How do I get GTK+ to recognize the X development libraries? Additionally, does the default build of X11 on Fedora 13 contain the appropriate libraries? Ive included the GTK+ configure scripts as an attachment.

View 1 Replies View Related

Red Hat / Fedora :: Linking Static Lib To Shared Lib?

Feb 23, 2011

I'm building a static library (openssl) and linking with a shared library. I built openssl static library with out -fPIC option and in the makefile of shared library there is an option of -fPIC. When I'm compiling shared library with static library, I'm not getting any relocatable error, since static library is not built with -fPIC and shared library is compiling with -fPIC.

GCC version : gcc 4.0.4
OS : CentOS 5.2

View 3 Replies View Related

Fedora Networking :: Linking Disks Between Machines?

Oct 26, 2009

I am setting up my first disk share between linux machines using just mount to test ( as with mounting win disks) and it doesn't mount. I get messages like "special device - does not exist" Should I be doing fstab entries from the start or what should I do?. One machine is F11 the other f10 if that makes a difference. I can link one linux to windows on the other machine.

View 8 Replies View Related

Fedora Hardware :: Linking User Folders To Ntfs Folder

Mar 28, 2010

Not sure if this i the right forum, please let me know if I need to post elsewhere. First, here are my system specs:

HP DV 2808
250 gig SATA drive
4 gig DDR
Nvidia 7150 mobile
Windows 7
Fedora 12

I have my HP DV2000 laptop configured to dual boot Win 7 and Fedora. What I would like to do is mount the Windows folders, (Documents, Music, etc.) automatically in my Fedora home folders. I have done/tried the following:

1: identified my partitions:

[Code]...

View 1 Replies View Related

Fedora :: Dual Boot System - Linking To A Directory In Windows?

Jan 22, 2011

I have a dual boot system. I previously managed to mount that drive under Fedora by specifying its label in /etc/fstab. But something changed that label, so I had to modify the entry in fstab. This time, using blkid I found the proper UUID and put that in /etc/fstab. So now I can mount the partition. But I also want to create a link on my desktop to my files under Windows.The location is /mnt/c/Documents and Settings/len/My Documents But ln -s keeps failing on that because of the spaces in the name. I know I found a workaround that previously , but I can't remember what it is.

View 1 Replies View Related

Fedora :: F11 X86_64 Eduke Compile Error: Failed Linking Executable Eduke32!

Aug 6, 2010

trying to build Eduke32 from source but I receive the following error:

Code:

[priit@T16 eduke32]$ make
Build started using "gcc -fomit-frame-pointer -funswitch-loops -O2 -fno-stack-protector -W -Wall -Wimplicit -Werror-implicit-function-declaration -funsigned-char -fno-strict-aliasing -DNO_GCC_BUILTINS -Isource -Ibuild/include -Isource/jmact -Isource/jaudiolib

[code]...

View 2 Replies View Related

Programming :: Linking The Assembly And C?

Apr 29, 2010

I have a C code and assembly (nasm) code and I am not able to find how to link them each other. Here are the codes :
NASM side:

Code:

global_maxofthree
section .text
_maxofthree:

[code]....

I am using ubuntu 9.10 and my NASM version 2.05.01 compiled on Nov 5 2008.

View 4 Replies View Related

Debian :: Prevent Grub-pc From Linking To Other OSs?

Oct 25, 2010

I want to prevent grub-pc from automatically creating links to other operating systems on my laptop. Whenever there is a kernel update, grub.cfg ends with links pointing at my Windows 7 installation - I want to get rid of those links. At the moment I am doing that by manually editing the grub.cfg file and it has always worked that way. I tried to force grub-pc to avoid creating links to Windows by renaming the relevant scripts in /etc/grub.d edbarx@edbarx-pc2:/etc/grub.d$ ls 00_header  05_debian_theme  10_linux  20_linux_xen  _30_os-prober  _30_otheros  40_custom  41_custom  README As you can see I added an underscore to the files that I don't want to be executed.

I think this can be solved by changing the file permissions of the unwanted scripts making them impossible to execute.

edbarx@edbarx-pc2:/etc/grub.d$ ls -l
total 52
-rwxr-xr-x 1 root root 6433 Aug  7 18:10 00_header
-rwxr-xr-x 1 root root 1474 Jul 16 18:46 05_debian_theme
-rwxr-xr-x 1 root root 4252 Aug  7 18:10 10_linux

[Code]....

View 11 Replies View Related

Debian :: Linking Remote Servers ?

Apr 1, 2011

We have one office with a simple samba server running on Lenny; not a PDC, just simple username/password authentication. It also acts as a DHCP server, NTP server, and DNS server. All clients are windows machines (mainly XP Pro, but also starting to get Win7 show up). For remote access, most users have chrooted WinSCP; OpenVPN was setup, but too slow for most AutoCAD uses (our primary application). It is still used by a few people, though.

I need to set up a similar system in another location, and need to provide access to both servers. People mainly access files stored in their own office, but will occasionally need to access files in the other office. In intend on having both run the same version, whether I stick with Lenny or put both on Squeeze.

I was thinking of setting up both servers, and then mounting the remote file system (the "other" server) over the internet, possibly via sshfs, but do not know if it is reliable enough. Or perhaps via OpenVPN connecting the servers, but then the overhead of the VPN may become an issue, adding lag time. The remote shares would then be accessible via the samba config.

Are there other options that may be easier to set up, more reliable, or more secure? We do not want a domain set up, just simple workgroups. Since many are using their personal laptops, joining them to the domain can cause some problems. It would also require more effort to add a new computer, and with the constant stream of outside consultants we use, that could get cumbersome.

My main issue: no budget beyond the low cost box for the second file server, so it has to be an open source solution from start to finish.

I'm not quite a newbie - I have quite a bit of experience setting up and maintaining basic Samba / DHCP / ssh servers - but not much beyond those. I certainly am open to learning new things and doing the research, but my head is swimming with all the options I have come across.

View 1 Replies View Related

Ubuntu :: Linking Domain Name To Server

Mar 18, 2010

I have a domain name registered with Enom and have access to the domain settings, what I want to know is there a way I can link my domain name (sbarow.com) to my Ubuntu server. I would like to be able to type my [url] into my browser as opposed to [url] to access my server from other locations.

View 4 Replies View Related

Ubuntu :: Linking A Folder To A Harddrive?

May 13, 2010

i would like to link a folder, in my case that is 'Pictures' to a different harddrive with a folder containing pictures.So whenever i save pictures it would save by default onto the harddrive with the linked folder.How can i do that. I tried to do it with ls i think but this makes softlinks which did not let me open automatically open the other folder. omg i hope i don't make it to complicated to understand.So here a visual plan of it.the default folder/home/user/pictureslike to link it to /media/pictures/photoshotsso this is the harddrive (another internal harddrive) which contains a different folder where i store my photos in general.

View 9 Replies View Related

Ubuntu :: Linking SH Back To Bash?

Jan 4, 2011

What issues will I create for myself if I link /bin/sh back to bash?

View 3 Replies View Related

General :: Linking GPL Apps To Non-GPL Libraries

Jan 20, 2010

I have a library that I have ported from Windows, and is not a derivative work of Linux. The library is subject to copyright law, and I can't disclose the source. I would like to link a GPL application to this library, and want to know if the linking would cause the library to be GPL. If the library becomes GPL, is there some other way (kernel loadable module?) that I can keep my library from becoming a work of GPL?

View 2 Replies View Related

Networking :: Linking DNS From Multiple Servers?

Jul 14, 2009

I have a wide area network with 7 CentOS servers running Bind and 1 Windows 2003 server. All 8 of these servers handle DHCP and DNS at their respective locations. At each site I can ping computer.site.company I'd like to be able to resolve the dns names from site to site. So from site1 I would like to be able to ping computer.site2.company and get a response.

View 4 Replies View Related

Programming :: C++Linking Classes/.cpp Files To Run One After Other?

Apr 11, 2010

This is probably a really stupid thing to ask considering the development I'm doing (effectivly creating a virus scanner), but how do I link classes/cpp files?I have 3 applications/sections that I can compile/combine with a makefile, that's fine, but I need them to run 1, 2, 3 once the output from the makefile is done.Currently the only section to actually run is whichever I have "main" in and obviously if I put that into all three, they won't compile as one.I've been looking all over the place at all sorts, header files and such, but there is no mention of how toually do this although I'm sure it must be possible. I'm used to being able to do this in Java and I'm sure I've seen C++ applications do it, but not worked out how.I have 3x .cpp files which are combined into one using a makefile:

Code:
# Virus Scanner
scanner.out : ProgramList.o MD5Hash.o HazardCheck.o

[code]...

View 2 Replies View Related

Programming :: GCC Static Linking Error ?

Jun 10, 2010

There's a problem with static linking (and no problems with dynamic linking).

Here's my code:

Quote:

And makefile rule:

Quote:

That's dynamic linking. And it works perfectly. If i use static linking

Quote:

There is an undefined reference error:

Quote:

As nm shows there's a symbol named BuzzerInit in static library.

View 2 Replies View Related

Programming :: Linking Options For Python?

Dec 11, 2010

I am trying to build an application that must link with python so as to load a python module during runtime.I have this makefile :

Code:
[alex@iskandhar src]$ cat Makefile
CFLAGS = -Wall -O3 -I ../../../SPOOLES.2.2 -DARCH="Linux" -DSPOOLES -DARPACK

[code]....

View 4 Replies View Related

Programming :: Linking To XInput2.h Fails?

Oct 5, 2010

I have a really simple program trying to use XInput2.h, which fails on linking

Code:
#include <X11/extensions/XInput2.h>
int main(){
Display *XSession = XOpenDisplay(NULL);
int OriginScreen = 0;
int pID = 7;

[Code]....

I'm at a loss about what to do. Replacing XIWarpPointer by XWarpPointer and removing the pID argument solves it, but is not an option (no input ID).

View 5 Replies View Related

OpenSUSE Install :: Linking Of A Folder To A Harddrive?

May 13, 2010

i would like to link a folder, in my case that is 'Pictures' to a different harddrive with a folder containing pictures. So whenever i save pictures it would save by default onto the harddrive with the linked folder. How can i do that. I tried to do it with ls i think but this makes softlinks which did not let me open automatically open the other folder. omg i hope i don't make it to complicated to understand.

So here a visual plan of it.

the default folder
/
/home/user/pictures

like to link it to

/media/pictures/photoshots

so this is the harddrive (another internal harddrive) which contains a different folder where i store my photos in general.

View 4 Replies View Related

General :: Ubuntu 10.04 - Linking To Lua Libraries With Codeblocks

Jun 18, 2010

After I downloaded the source for lua, I followed the install instructions, doing...

make linux install
make generic install

I've also done the make test and it passes, printing out Hello World, from Lua 5.1. However, I can't link to the lua libraries in CodeBlocks. I know where lualib.a is (usr/local/lib) which I set in my Search Directories for the linker. I still get error messages like...

undefined reference to lua_isstring

P.S. I had this running on Windows via Visual Studio.

View 1 Replies View Related

Ubuntu :: Linking To External URLs In Tomboy?

Jul 18, 2010

Is there any way to embed a URL to an external web page in the text of a tomboy note, in the same way that other notes are linked to? I know I can just pates the URL into the note and have it link out, but when the link is over a hundred characters long (not kidding) then that stops being an option.

View 1 Replies View Related

Ubuntu :: Linking External Hard Drives ?

Feb 23, 2011

So me and my friend our on my network and we have done a bit of hacking and have managed to get music off of pandora and have it sort it by forlder /media/...../artist/album/song and it won't redownload a song that we have already downloaded (this is done by our code that we stripped from pithos and modified a bit) also we wrote a bash script that renames all of our files correctly and tags them with .mp3

I was wondering if I could link our two hard drives to make sure that we aren't both downloading the same songs. I am also having issues getting my external accessible on the network i have it formatted to use a FAT32 file system.

View 1 Replies View Related

Ubuntu :: RHEL GCC Libraries - Versions - Linking ?

Aug 1, 2011

My principle machine is Ubuntu 10.10 (x86_64) with gcc version 4.4.5, but I'd like to run the compiled/linked code from it on a RHEL server release 5.4 with gcc version 4.1.2.

Now, the error at runtime is "version 'GLIBCXX_3.4.9' is not found (required by ./executable)". The server has /usr/lib64/libstdc++.so.6.0.8, but seems to need at least .so.6.0.9. However, the admin of the server will not allow the libraries to be updated as "the entire system is tied to an older version of glibc and forcing an upgrade could break the entire system especially when making the jump across major revisions."

He recommended that I build the newer version of glibc in my home directory and link against the libraries, but didn't offer direction on how.

View 1 Replies View Related

Programming :: Undefined Reference To Function While Linking

May 27, 2010

I am trying to add some function to the c++ project (calling function) and the called function are in C. And i am getting error "undefined reference to "Hello(int,int)" " while linking. It is compiling correctly. It is linking to header file mention in the calling function. This header file has definition to the c - called function. Do you thinking having c files into C++ project will be a problem? Should I remove <stdio.h> in c files?

View 2 Replies View Related

Programming :: Shared Objects - Mapping And Linking?

Oct 28, 2010

I have a question about shared objects and when mapping and linking is established in the following code...Well more of a verification.

getsetx.c - shared object source code Code: unsigned long x = 0;

unsigned long getx(void)
{
return x;
}
[Code].....

Now its my understanding when I execute ./testit, getsetx.so will get mapped into its address space at start up and testit will link any functions as they are needed..

View 3 Replies View Related

General :: Undefined References And Linking In WordNet

Jan 19, 2011

I'm writing a C program using WordNet, just a very basic one to test out if everything was working fine, but I'm getting undefined references. I linked to the library and compile with

Code:
gcc prog.c -L/usr/local/WordNet-3.0/lib/libWN.a -I/usr/local/WordNet-3.0/include/
This seems to be the only wordnet library to link to, but I'm still getting the error

Code:
/tmp/cc4C3I3S.o: In function 'main':
prog.c:(.text+0x21): undefined reference to 'is_defined'
prog.c:(.text+0x48): undefined reference to 'findtheinfo'
collect2: ld returned 1 exit status

I feel it must be an error with the way I'm going about trying to link the files.

View 4 Replies View Related

Programming :: Compiling And Linking Multiple Files Using Gcc?

Mar 13, 2011

compiling and linking using gcc: What does a file name with a suffix '.a' represent? If I have multiple .c and .h files, how can I link them together? How can I create the .a file?

View 6 Replies View Related

Programming :: G++ Linking Error With Multiple Libs

Jan 9, 2011

I tried to link my executable program with 2 static libraries using g++. The 2 static libraries have the same function name. I'm expecting a "multiple definition" linking error from the linker, but I did not received.

Code:

//staticLibA.h
#ifndef _STATIC_LIBA_HEADER
#define _STATIC_LIBA_HEADER
int hello(void);

[code]....

View 4 Replies View Related







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