General :: Write Some Simple Programs In C?

Feb 21, 2010

I installed ubuntu on a spare computer that i have and i need to write some simple programs in C. Only problem is that i'm not sure how to do that. Do i need to install some sort of C compiler?

View 12 Replies


General :: Write A Simple Program C++ To Connect To Mysql Database?

Sep 5, 2010

I'm trying to write a simple program c++ to connect to Mysql database based in my server:

int main (void) {
cout << "33[2J" << "33[0;0f";
MYSQL mysql;
MYSQL *conn;


View 2 Replies View Related

General :: Write A Simple Backup Script To Backup A Single Folder Nd?

Sep 15, 2009

I am trying to create a backup script that will back up a single folder for a class i am in. I was wandering if I could get some help. If possible I would also like to know how to write a script that can encrypt that same file . I will be putting the back up in my /home/usr/Backup directory. I am not trying to back up my whole system just a single folder. I am using Fedora 11

View 2 Replies View Related

Programming :: Simple Header For Perl Programs?

Nov 5, 2010

i am trying to do something very simple like a header and a footer for my first perl programs, what iam trying to do is that when i create a file in vim: lets say , i would like that file to have already this in its header:

and this on the footer:
print "

so that i dont have to type everytime #!/usr etc i tried to do it this way but i get weird vim errors: header is a file that contains the header and footer $ vim;header > is there another way to do it as a function in bash or some other one liner command?

View 1 Replies View Related

Ubuntu Installation :: Guids To Install Simple Programs?

Jun 29, 2011

Big n00b on Ubuntu 11.04, and tried to look around on the web for guids to install simple programs but I didn't find any good ones. So of you guys have any guids how to install program like uTorrent, AIM and VLC it would be very muvh.

View 6 Replies View Related

Programming :: How To Write Simple C Program In RHEL5

Sep 17, 2010

How can i write a simple c program in my RHEL5?I am more concerned about what are toosl i need to install to get a C platfrom running in my RHEL5?

View 14 Replies View Related

Ubuntu :: Write A Simple Shell Script And Environment Variables?

Feb 8, 2010

I'm trying to write a simple shell script, its purpose is not important. The script needs to make use of the system $HOSTNAME environment variable. I had a look at this page which provides the following example.

echo "You are user $UID on $HOSTNAME"
echo "Your home directory is: $HOME"
echo "$HOSTNAME is running $OSTYPE"


View 6 Replies View Related

Programming :: Write A Simple Character Printing Program Using NASM?

Jul 27, 2010

i tried a code to accept a character and print the same ! i can accept it with following code but its not working with printing that character i use NASM version 2.07


segment .data
msg1: db 'Enter a key',10
msg1len: equ $-msg1


View 3 Replies View Related

Programming :: Simple Bash To Write Files By Year To A Log File

Jan 31, 2011

I have a folder of 2 many files that the old ls just hangs.

I am trying to write some log files such as;

I don't mind doing one at a time, but I am just playing and even getting the listing I am not getting the date stamp, I have the following;

That does create the file, but all the files look like this;

So basically it's just sticking that ls inside the log file and not actually running the ls, so how can I use the above type to get files just created per year?

View 2 Replies View Related

CentOS 5 :: Write A Simple Client That Opens A Secure Connection?

Jul 10, 2009

I am trying to write a simple client that opens a secure connection. My intent is to use the OpenSSL library.

I am following this tutorial: [URL]... The tutorial mentions that I need a trust certificate store called TrustStore.pem. However, I can't find that on my machine. Is there a way to generate it? I separately downloaded the source from the OpenSSL website. The source distribution doesn't have it either. There is a whole bunch of .pem files. Can I use any one of them?

View 2 Replies View Related

Programming :: Write Animation Programs In Using C Or C++?

Feb 16, 2011

wants to do miniproject as part of the academic curriculum using Computer graphics on Linux using C or C++. Can any one direct me to a direction how i can proceed. I know basics of C and C++

View 9 Replies View Related

Programming :: How To Write Programs In Multiple Languages?

Aug 18, 2009

Well I have been interested in programming for a while, and just found out about Linux and Unix. I started out with Java, but now I know I bunch: Flash, C++, C and others. I was working on a mac so I made a few flash games then started to work on iPhone games. I was board one day and I found out about Unix and I thought that would be something else to try.So in an attempt to learn about Unix I have been reading different articles about it, and have heard of using different languages in one program. The article I was reading didn't give any examples, and it assumed the reader has programmed Unix before.

So how do you write programs in multiple languages, which languages would you use, and why would you want to do that?

View 3 Replies View Related

Fedora :: How To Write Java Or C++ Programs As Projects In Eclipse?

Nov 18, 2010

I printed Bruce Eckel's book "Thinking in Java" and Bjarne Stroustrup's book "Programming Principles and Practice Using C++". They are just great.I installed Fedora 14 with java development features including Eclipse IDE.Now I want to be able to recreate the examples from the books and experiment over them in Eclipse.I have been working for a while with python and django merely in the terminal and gedit without Eclipse.Please, help me to get started. How can I write my Java or C++ programs as projects in Eclipse?

View 2 Replies View Related

OpenSUSE :: Write And Compile/run Programs In Different Programming Languages?

Feb 19, 2011

I was wondering about a package that can be used to write and compile/run programs in different programming languages. I was also wondering how possible it is to program in Visual Basic 2010 in openSUSE if at all.

View 9 Replies View Related

Ubuntu :: Is It Possible To Write Script For Opening Multiple Programs?

Jan 27, 2010

I'm wondering if it's possible to write some sort of script so I can have an icon on the desktop which opens a combination of programs I use together frequently.Specifically, I would like to have an icon called "keyboard practice" which does the following:

1) Open QJackCtrl and "click" on Start;
2) Open the Hexter softsynth and make the Jack connections between it and my speakers;
3) Make the Jack MIDI connection between my MIDI keyboard and Hexter.

View 4 Replies View Related

Programming :: Write Programs That Use Electronic Signatures In Java?

Jun 1, 2010

Do you know how to write programs that use electronic signatures in JAVA (although I am not pretentious about the language in any way).

When I say e-signatures I mean those USB smart cards(security tokens) that are capable of doing encryption by themselves and store securely the private key. I am particularly interested in how authentication works with a digital signature, how to sign data, and most importantly how to check that a digital certificate is valid. What do I need to store in the Database for authentication for example -- is it the serial or the Hash?

View 2 Replies View Related

Software :: Write _ Debug _ Execute Programs Of Yacc And Flex?

Jan 2, 2011

I am using kubuntu 10.04 Linux.. How can I write and debug and execute programs of yacc and flex ?

View 3 Replies View Related

Programming :: How To Compile / Simple Tutorial For Making Simple Program

Oct 7, 2010

i'm a college student studying pc programing, and i was given today a special work and i have to program using miranda... which i've never used it >.< can anyone give me a hand to where to download, how to compile, and a simple tutorial for making a simple program or something?

View 3 Replies View Related

General :: Write A Shell Script Which Will Simultaneously Collect OS User Information And Write In An Individual Text Files?

Feb 17, 2010

I want to write a shell script which will simultaneously collect OS user information and write in an individual text files.Can anyone tell me the syntax of the script.N.B. The user name will be mentioned in an array within the shell script.

View 8 Replies View Related

General :: Recommendations For A Simple Rolling Distro?

Jun 4, 2010

Assistance in choosing a no frills rolling Linux Distro. Over the past few months have gotten my feet wet with Mepis, Linux Mint, Ubuntu and other distros. I really like these Linux distros. However, I dislike the need to frequently "reinstall" a distro as often as every 6 months just to keep it updated.

My computer:

PC with 1.4 GHz Athlon
512 RAM
320 Gig hard drive partitioned equally between Windows XP and a Linux Distro.

My computer is used primarily as a jukebox connected to my stereo system, and for email, browsing, etc. I am not a gamer.I'm tired of Windows and its problems; malware, viruses, and currently if I upgrade to Windows 7, I'll need a new computer just to meet the hardware requirements when what I have works for my needs, but the XP operating system is becoming obsolete.

View 9 Replies View Related

General :: Which Distro Has A SIMPLE Desktop Interface

May 16, 2010

I am looking for a distro with an extremely simple desktop interface. I am looking for something as simple as the iPad where you can only run 1 application and it gets maximized. You click an icon and... you get that. Also the hardware is well described as "Aging," it is not dual-core, and may be as low as 64mb of RAM.

This is because the computer will basically be used as a simple game machine, and by game I mean Minesweeper and Solitaire. For Multiplayer games maybe virtual board games on a single screen, no LAN type stuff. Also I do not want the primary users of this computer to be able to access anything besides exactly what I determine they are supposed to. Basically what we want is something that is Child-Safe and Child-Simple. There will be no internet browsing or document creation or anything complicated.

Now I am not saying however that there won't be a possible user login that does have access to a full complement of software programs, just that I need to be able to setup at least one login that meets the criteria I specified. I have used Ubuntu in a few iterations, I can use a terminal with some internet help, and consider myself "Technical." Primarily I will be managing the software.

View 12 Replies View Related

General :: Graphics Library And Building A Simple GUI?

Aug 10, 2010

how (or what to use) to build a simple GUI on an embedded Linux system? I am using the Linux distribution Angstrom with a gcc compiler, and need to draw graphics on the screen. Preferably NOT in X11, but in a console only image. Are there simple graphics commands in C that will draw circles, boxes, and lines?

View 1 Replies View Related

General :: Most Simple+stable Distro For Desktop?

Mar 5, 2011

I'm a low-demand home desktop user concerned mainly with OS stability and simplicity. Current setup is dual-boot PC with Ubuntu10.04+Mint9. I use my PC mainly to write, using Word on Wine. Even more boring: I connect to net via external dialup modem. Both Ubuntu10.04+Mint9 seem excellent but have tons of features I don't need.

Is there a distro that will trade off advanced features in exchange for stability and reliability? I've read that Mepis is among the most rock-stable distros, with no attempts to be cutting-edge. Is this the case? Is there another distro emphasizing stability and simplicity? Must be a simple install, like Ubuntu+Mint. Must work well with Wine and dialup.

View 11 Replies View Related

General :: Simple Script To Delete Files

Apr 22, 2010

I have written this simple script to delete files and keep a log i have put this script in crond job

The script check the test directory in /home/francis if it encounters a file which is a 30 days old it must delete that file and place the file deleted in mylogs as a log report the script works fine i manually i have two problems:

First when the script ram the first time it generated the log of the files it deleted but the next day when i came it deleted the file but no log was generated

Secondly i run the script every day at 9 am this is the entry made in crond file * 9 * * * ~path to file but it seems to run every minute i even triedseperating the fields by tabs still the same

View 7 Replies View Related

General :: Simple Pipe Email To Curl?

Apr 1, 2010

I would like to pipe a raw email from cPanel to curl, using curl to send the raw email via a post variable.wever, I am unsure of the command line syntax that would receive the piped email and post using curl.Ideally, the email would pipe to the curl command "curl -d 'emailvar=RAWEMAILHERE'

View 2 Replies View Related

General :: Simple Way To Umount NFS Mount In System?

Oct 25, 2010

I've mounted a share using standard nomenclature for the NFS mount command with the following command line:

mount -t nfs -o rw {IP address1}:/ /mnt_for_70 / {IP address2}(rw)

mnt_for_70 is a mount point I created on {IP address2}

I'm confuse and want to be sure I use the correct command on the correct host to correctly umount the nfs share.

Would I execute umount /mnt_for_70 on {IP address2}

Not sure if such a simple command will work. As this is a semi-production host pair, I hesitate to just umount so simply & I have no test systems to try this on...

View 2 Replies View Related

General :: Downloading Simple NNTP Client For Ubuntu?

Jan 5, 2011

I need to download a particular NNTP group. I do not need to setup any crons, put group contents in /opt and other stuff. Just run <fetch-nntp> <server> <group-name> <output-dir> and be done with it without putting a lot of garbage in the system.

If that <fetch-nntp> would not fetch the same messages on the second run fine. But I can live without it. All NNTP clients that I've looked at are trying to be a NNTP server as well. Is there something simpler that is suitable for my needs?

View 1 Replies View Related

General :: Build A Simple HTPC Based On Boxee

Mar 8, 2011

I am looking to build a simple HTPC based on boxee, it is a very low power machine (2ghz P4, 1gb RAM, 1gb video card).

At present it has Win7 on it, but I want to run boxee as my media centre software (I love the watch later facility) and I was wondering what it would run best on?

If linux, what distro and why?

View 2 Replies View Related

General :: Ubuntu 9.04 - Error In Simple Copy Paste

Jun 23, 2010

I am having a strange problem whenever I copy something from a webpage I see content more than required copied and I then have to manually go and delete all the content. This has been quite frustrating. I am using Ubuntu 9.04 and Dell Inspiron 1440 laptop. What should I check?

View 4 Replies View Related

General :: Simple Way To Turn Ubuntu Into A Thin-client?

Mar 22, 2011

I'm attempting to take Ubuntu 10 down to an image as small as possible to support Citrix Receiver. We currently log them into a browser interface using Firefox where they authenticate against a Citrix DDC and then launch the plug-in. I'm wondering if there is a simple way to determine what services I can shutoff to limit the footprint of the OS. Some of the machines have only 256MB of RAM. They run the plug-in just fine, but there's a lot background activity affecting the machines...

View 4 Replies View Related

Copyrights 2005-15, All rights reserved