Programming :: Ncurses Based Program Had To Be Recompiled On A Different PC Same OS
Oct 18, 2010
On an Ubuntu Server I am running, I wrote a small Ncurses program in GCC. It worked just fine.
Then, I copied the executable over to my Ubuntu 10.10 desktop edition with sftp. No matter what I did, it kept giving the error:
error opening terminal: xterm.
I had copied other non-curses programs and they all ran just fine.
Finally, I copied over the source, recompiled with GCC and voila, the executable now runs fine.
View 6 Replies
ADVERTISEMENT
May 13, 2010
im looking for a slackware based distro that is basically recompiled and easy to install.
View 6 Replies
View Related
Feb 15, 2011
I will have to code this. However I am lacking of time since I have too much to do. make a short code bash/dash to prompt the country with Zenity, then, get the PLS or m3u url and prompt with another zenity which radio to play. http://www.listenlive.eu/index.html
My code to get url's radio country.htm is:
Code:
View 2 Replies
View Related
Feb 10, 2010
I need to launch programs in my program and the program can be a script, a Linux executable or even a Windows executable. The first thing i tried is to use xdg-open from my program, but i can't pass arguments to it, otherwise it would have worked perfectly. Is there maybe a way to determine which program is set as default according to the mime-type of the program i want to launch? I also tried kfmclient and gnome-open, they don't allow arguments either.
View 2 Replies
View Related
Jan 6, 2010
I've modified a program to show * instead of letters when typing a password. I'm trying to make it so that when pressing backspace a * will be removed.Here's a rough example. The problem is that when trying to do this in the real program,' is not recognized as backspace.
View 6 Replies
View Related
Apr 6, 2010
I have some ideas about writing a small game in terminal ( just for fun ) using ncurses library. I want to use some kind of menus (in Midnight Commander's style), but there are some problems with rendering windows, that I don't understand. I create a window with newwin(), assign a color pair to it calling wattron() (for example, I want to fill a window with blue background), and then I call my own function wnd_fill() :
Code: void wnd_fill (WINDOW* wnd)
{
int i;
[code]...
View 9 Replies
View Related
Feb 9, 2011
I actually have two reasons for posting this. One is to see if there's an actual name for characters like this:Hopefully that will show up correctly for you. If not, it's a little box with four numbers in it, one in each corner. I don't know their name or their reason for showing up, so it's hard to look for help.
My main problem, though, is that I wrote a program that prints some output to a console using ncurses as it runs. These characters show up on the console, seemingly at random, and disturb the whole thing. Sometimes I'll also get sets of characters like "[13;" I'm not printing anything bizarre on there, just strings and floating-point numbers.
View 6 Replies
View Related
May 3, 2010
I want to read a pressed key or a combination of pressed keys from the keyboard and perform some action afterwords.
e.g.
Ctrl-Alt-F1
Out of ncurses lib. and the termios struct which can be used best for the above purpose and why ?I tried to search on Google, the differences between these two but couldn't get much !
View 6 Replies
View Related
May 2, 2010
I have a question, I was using ncurses in my program and made a user interface, that uses the menus. It is fine, but I wanted to execute another program when one item is selected. And after its exiting, I come back to the main one. I think that it can be done via window, but I wanted to separate them. Can you suggest me what to do? As I do it in Ubuntu Linux using fork & execl, that seems everything is mixed with the shell & if I don't do the closing of the objects, the keyboard & terminal attributes are the same as the one for the main, I used the system function, but not very different. I used atexit and when I use (probably) system (stdlib) function it calls the function registered with atexit. Please tell me the solution..
View 1 Replies
View Related
Jan 10, 2011
1. Fedora 14 has a user friendly disk encryption setup.However, there doesn't seem to be an option to change the encryption parameters during setup. Since I can handle the overhead, I would like to change the encryption algorithm and the key length for the default install.
2. I have created an additional encrypted drive (the entire HD) which claims to have its own encryption functionality (Seagate Constellation 1TB). Does Fedora use the built-in encryption mechanism by default? Is there any way to tell?
3. I can't seem to find any utility to tell me what the actual key size is for different HD's I have encrypted. "cryptsetup --help" seems to print out only the information for the default encrypted O/S which is the default 256 bit.
My problem is whether the -s option work when set to a 2,048 bit key length? Or, does it fall back to a 256 bit key length if it fails to do so? Or, does it automatically use the built-in encryption of the hardware? If the -s option doesn't work with a 2,048 bit key setting, can the kernel be recompiled to do so?
View 8 Replies
View Related
Apr 30, 2011
I was wondering if the AMD64 bit release of ubuntu is just a recompiled kernel with amd64 optimizations or if it is ALL 64 bit? I understand that an amd64 kernel doesnt have to come with a 64 bit system.
View 1 Replies
View Related
Aug 21, 2010
I have recently been programming with Qt and slowly getting my head around it.I want to have a pet project to learn some more and then I got to thinking how should I go about this.My question is what is the proper way to program for Linux based GUIs? One of the things I would like to write is a small front end for newspost. I want to include extra stuff like rar and creating pars on the fly. So how should I go about integrating other CLI programs to make my GUI feature rich? I thought of three ways to approach this.
1. Take all source code and throw it into one self containing project. (think this is evil)
2. The GUI will basically assemble CLI commands and call them. This is nice but can very fragile.
3. The GUI will compile against rar-libs and other libs?
I am originally an MS programmer and don't think I should apply same practices toward Linux. So let me know what your opinions are and how you roll out GUIs.
View 3 Replies
View Related
May 4, 2011
I've been given one of these ubiquitous usb-sleep buttons which is basically a supersimple usb-keyboard. It's a big button that sends a SLEEP keypress to the computer when you slam it. But that is pretty boring. I'd love to remap it to do something more fun but I can't figure out how to bind to only the sleep press from the button and not from my ordinary keyboard.
The button identifies as
Bus 001 Device 035: ID 1130:600d Tenx Technology, Inc.
I'd like to know if there's either
a way of mapping a key from a specific keyboard to an action OR a way of remapping the sleep key from a specific keyboard to a new key-code or something like that.
View 1 Replies
View Related
Feb 9, 2010
I currently doing a network emulator program and the features must includes the web-based interface for user configuration. I able to run my program through command line. But I would like to ask how to associate my program to web-based interface for user configuration?
View 8 Replies
View Related
Sep 4, 2011
Could you suggest feature-rich disk-based personal backup program for Linux (and I've seen a few)?
I want to do nightly backups of the whole system and be able to rollback to any of last 7 days. And, it must be incremental backups. What tool should I use? The tutorials I've read about rsync tell only how to store latest incremental backup and I need last 7.
View 3 Replies
View Related
Feb 19, 2010
I used MusicBrainz Picard to tag FLAC and Mp3 files, fixed any necessary genre tags in Rhythmbox, and used EasyTag to rename the actual files.But now I'm interested in using those genre tags as folder names...is there any program that will sort my music into folders based on their genre tags?
View 5 Replies
View Related
May 31, 2011
I like the convenience of having a music player that manages the placement of my music files based on the tags of the files, sorting into a root music folder with Artist/Album/01 - Track Title.mp3 sort of hierarchy. Previously, I was using Banshee for this feature, as even most of the other gui music players don't have this library management feature. Now, I've been trying to use console-based applications, and I have been using mpd + ncmpcpp fairly successfully. When I download new music, it is downloaded to a specific folder, and that's not part of my music collection. My previous workflow would be to open a gui filemanager at the downloaded folder, and drag and drop those songs onto banshee, which would then make a copy of those files in my library hierarchy. Currently, I'm doing the same thing, using Banshee only as a sort of import program, then closing it and updating my mpd database, and there we go.
If at all possible, I'd like to automate this to something where I can define a watch folder, and when some magical program sees new music in said watch folder, it identifies the correct place for the files to be copied into my heirarchy, renaming folders and files to the correct format. I know I've written a lot describing, but I don't actually think this too uncommon a task, and I'm wondering if anyone has a solution for my problem.
View 3 Replies
View Related
Jan 15, 2010
Ok so Basically i have 2 questions
1. i know how to create a file with c++ using but is there a way to save it to a specific location on your computer with windows and linux
Code:
2. i need to know how to run/execute/open a file in a c++ program im using and its not working
Code:
View 4 Replies
View Related
Nov 13, 2010
Is there any way to filter the output of a command based on the values on the output columns. For example i execute du -h on directory with many files. Now I want to filter the output based on the size (i.e. M or G or K ). The filtered o/p should contain only M(megabytes) or G(gigabytes) and also all columns.
20K ./fload/temp/20000101/Pam
15K ./fload/temp/20000101/NAVEX
29K ./fload/temp/20000101/Avenge
[code]....
View 3 Replies
View Related
Jul 29, 2010
I'm looking for a version of Getopts for Java that isn't licensed under the GPL and accepts long options (i.e. both -h and --help). My code is licensed under BSD and I don't really want to change that just because a module uses the GPL...
View 1 Replies
View Related
Apr 1, 2011
I have a folder named Pictures that contains a bunch of .jpg files. My problem is that they all have randomly numbered names, then there is a duplicate of the file that is random numbers then the letter a right before the .jpg.for example, there would be 123.jpg and 123a.jpg, where 123a.jpg is just a resized version of 123. What i'd like to do but have NO clue how to, is to have a script or something go through my Pictures folder, then copy the ones that end in a.jpg to a folder called Resized, and ones that dont have that to a folder called Originals. That way my Pictures folder will be in tact, and i'll have copies of them all separated out.I have to do this all through the CLI on a machine, maybe I dont even need a script and can just do it with a slick command?
View 14 Replies
View Related
May 3, 2010
I'm running headless server, and need to sort all packages in YAST by size. I can't see the option in YaST anywhere.
View 5 Replies
View Related
Jun 6, 2010
Where can I get ncurses developemnt libraries for Debian Squeeze. I am using the Sheeva Plug hardware platform.
Doing a make on source code that needs the ncurses dev libraries.
View 2 Replies
View Related
Sep 23, 2010
My system is mostly slack 11.0 (Absolute Linux 11.0 actually) I have been trying to build stfl from SlackBuilds.org. I think I'm missing some ncurses wide stuff but don't know how to compile for ncursesw.
I have stock ncurses5.5 on my system.
Compiler output is:
I have /usr/include/ncurses on my system but not /usr/include/ncursesw/ncurses.h
My goal is to compile newsbeuter but this dependency is in the way.
View 4 Replies
View Related
Jul 19, 2011
Is there any API to get partition name based on file path in C on Linux OS?
View 1 Replies
View Related
Apr 4, 2010
i have a question in my mind.sorry if its irrelevant to this topic.Can i run bash script (which i currently run on cygwin) in linux based web hosting?
View 2 Replies
View Related
Jun 7, 2010
I have a LAMP based web hosting account (BlueHost). I have an existing simple MS Excel application which I would like to make it web based. However I am not sure what tools or features of PHP are out there that will aid me with this task. Here are some details:
1. I don't want to create an entire Excel program online. For that there are plenty of existing applications like Google Docs, MS's own online version of Excel, etc.
2. My current excel file uses some of the following excel functions:
a) SUM
b) Product Sum
c) Conditional Formatting (like changing font color if an amount is below a threshold, etc.)
d) Sorting (Date, Amount)
e) Drop Down Box to select pre-defined values
3. Ability to add/delete/modify a entry (row)
4. I don't care whether the application has the same look-n-feel as MS Excel.
As you can see it is a very simple home grown excel application with few basic mathematical functions. Here are some few thoughts that I have currently in my mind:
i) Just start coding intuitively as you would develop a normal web based application.
ii) Do (i) but use some of the PHP's excel oriented helper functions (COMs?) if there are any
iii) Use completely a different set of tools permitting that they run on LAMP environment.
I could have started with (i) but before making a costly mistake I thought I would get some opinion from the community to see if this is the right approach.
View 1 Replies
View Related
May 23, 2011
I want to select the branch based on the INPUT. Here is the program segment which uses the case statement.
case $INPUT in
1)branch="Computer Science";;
2)branch ="Electrical";;
3)branch = "Mechanical";;
4)branch= "Aerospace";;
esac
When I run this script, I am getting an error, Electrical command not found?
View 2 Replies
View Related
Jun 17, 2010
Since I'm not building a specific piece of software but a shell script, I hope this is in the right forum. At work, we use RHEL for the basic system but have Windows clients attached as well. On the Win side, there's a program that I'm trying to duplicate on the Linux side. Because of established procedures, I can't change the way files are named so please don't suggest I do that (my boss would not be happy). We have files stored on an NFS share we manipulate on either side.
The program is used to copy files from one directory to another, based on the filenames. The first two characters of the filename are ignored (they're for human-readable sorting purposes only), the next four characters are the time, and then all characters after that are ignored. The time is read and the file gets copied at that time. (This was all done in VC++ many years ago, and nobody knows where the source code is.) For example, a file named 2d0730abcd.txt would be copied from the source directory to the destination directory at 7:30am.
It seems to me that it should be fairly straightforward to build a shell script on the Linux side to do the same thing, but darned if I can figure out which magical combination of commands to use. Would the shell script end up creating a giant pile of AT commands?
View 10 Replies
View Related
Jan 18, 2011
Make menuconfig doesn't find ncurses headers on my system, howerver ncurses-devel package is installed. I get the following error message:
Code:
make menuconfig
*** Unable to find the ncurses libraries or the
[code]...
View 3 Replies
View Related