w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
Can I find a similar software as Pageant in Linux?
Use Seahorse for linux http://www.debianadmin.com/ssh-key-authentication-using-seahorse-gui.html Keychain works well too http://pwet.fr/man/linux/commandes/keychain

Categories : Svn

How to install Software Manager (from Linux Mint) in Xubuntu?
You will need to have the latest version of Python installed as this is what actually runs Software Manager then in Synaptic Program Manager look for Software Manager or Software Center and tick for installing an next reboot then apply then submit then reboot and when the system reboots the system should start downloading Software Manager and install it and then you should be able to find it in the start menu.

Categories : Misc

build software from source code and install it in custom folder on Linux
Assuming you want to install a software called 'test'. #!/bin/bash # Set this to where you want to install all the software PREFIX=/usr/oma/sardar/software export CC=/usr/bin/gcc export CXX=/usr/bin/g++ export QTDIR=/usr/lib/qt-4.6 export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig # Get sources mkdir -p $PREFIX/src/{BUILD,SOURCES} wget -U temp -P $PREFIX/src/SOURCES http://url/test.tar.gz wget -P $PREFIX/src/SOURCES http://url/test.patch # Unpack sources tar xvzf $PREFIX/src/SOURCES/test.tar.gz -C $PREFIX/src/BUILD # Compile Test cd $PREFIX/src/BUILD/test patch < $PREFIX/src/SOURCES/test.patch ( export CFLAGS="-I$PREFIX/include" export LDFLAGS="-L$PREFIX/lib -Wl,-R$PREFIX/lib" ./configure --prefix=$PREFIX ) make make install

Categories : Linux

is there software for jar file copy protection, or licensing software
Copy protection can't prevent your file to be copied but you can make it fail when it is run on unlicensed machines. Selection of a copy protection mechanism is a matter of budget and time. There are many companies with many products. You can go with not yet cracked technologies like iLok etc. This is applicable for very high revenue cases. But if your target audience is less than 1000 people then a simple in-house solution might work. Consequence of a complex method is typically many calls to support line and unhappy customers. Things got a lot easier after clients are all connected to internet. You can make some simple parts to run on server which a cracker would never dive into for a replacement. Or the app might download the contents from server after installation. Latter is what I d

Categories : Misc

Developing C# Winforms software using SQL Server 2012 in Visual Studio 2012 and running it on other system without installing SQL Server 2012
If you develop an application that use Sql Server 2012 as storage for your data then you need to install it in a way or another. There are numerous versions of Sql Server, like Sql Server Express and LocalDB. In every case you need the bits that supports your coding calls. This magazine article summarizes relevant infos on the various version of Sql Server I suppose that the right product for you is Sql Server LocalDB. A version of Sql Server that could be distributed easily with your application setup and doesn't require a complex installation procedure. However, if you don't foresee the need to escalate you application to a full Client-Server model and you need only a local storage for a single user, you could choose a single file database like Sql Server Compact Edition or SQLite or

Categories : C#

Ideal workflow for Git repository for software project and companion server code?
As to the first question, how to track client and server sides together in a way that the server side is still a standalone project. You could incorporate the server code as a submodule into the client project. ~/client$ git submodule add foo@bar:server.git ~/client$ git commit This inserts the server repo, accessible at SSH URL foo@bar:server.git into your client project into subdir server. An alternative of submodules are subtree merges. As to checking out the server code into nginx. Create a bare repo somewhere on the server, let's say /var/git/server.git, and set up its worktree into /var/www/server/ cd /var/git mkdir server.git && cd server.git git init --bare git config --bool core.bare false git config --path core.worktree /var/www/server/ Set up its post-receive hook

Categories : IOS

Reading CSV files located on LINUX server and updating the tables in SQL Server Database
Since you know how to proceed once the csv file is on your Windows box, it seems this question amounts to how to get the file from a Linux server to a Windows server. I suggest rcp or rsync. There are Windows versions of both.

Categories : Linux

Issue when both apache2 server and apache tomcat server installed in my linux machine
Change the default port for Tomcat to something else, for example 8181 Current versions of web browsers recognize port 8080 like 80, so that's why it's forward you to 80 or cut the port option from URL. To change Tomcat port open server config file server.xml search for "8080", which is the current port in use, and replace it with something else (make sure the new port not in use), save and restart Tomcat.

Categories : Java

how to remove catalina.out from Linux server where Apache tomcat server installed
you don't have to remove catalina.out file. You can use logrotate, to rotate logs, and remove old files. Very useful description is here: http://www.swoops.co.uk/how-to-set-up-log-rotation-for-tomcat-catalina-out-log-file/ or here: http://java.dzone.com/articles/how-rotate-tomcat-catalinaout

Categories : Java

Linux server: Would a cache scheme help reduce hits to 3rd-party server?
I think memcached is a good choice. You can set timeout when you store content to memcached server, if key-value missed, retrieve data from 3rd-part server and store again. There is memcached extension for PHP, check doc here.

Categories : PHP

How to connect from a linux server with php to a database that is in a windows server?
Where the database is doesn't matter for connecting. As long as you use the correct credentials and functions, it will connect. If you see any connection method( PDO, mysqli etc ), it doesn't show the operating system anywhere. Database is running on top of the operating system. check for errors in each step. Example: $link = mysqli_connect("myhost","myuser","mypassw","mybd") or die("Error " . mysqli_error($link)); See http://www.php.net/manual/en/function.mysqli-connect.php.

Categories : PHP

Get software's information in WiX from software
The WiX.chm documents all the standard binder variables at the bottom of the topic titled Linker (light). It does not appear the those pieces of information are available. However, it might be something you could work with the WiX toolset community with to get the code added.

Categories : Wix

Best Linux server for Worklight?
For a list of supported Linux distributions, visit: Worklight 5.0.5 system requirements Worklight 5.0.6 system requirements Worklight 6.0.0 system requirements

Categories : Linux

How to run mongodb on Linux Server
Our binary builds don't work with SLES (10) and you need a specific build for this. You will need to compile your own binary. There are build instructions at: http://www.mongodb.org/about/tutorial/build-mongodb-on-linux/

Categories : Linux

TCP/UDP high-performance server under linux
Your basic approach is right. Start by studying the infamous C10K problem and how it was overcome. Once you understand the major bottlenecks in various implementations, you need to consider the following as part your design process : Minimise thread creation/deletion cycles. Always choose an "event-based" model over a blocking model. Basically the one-thread-per-request model is preferred for its simplicity of implementation. But it does NOT scale well with the number of concurrent requests. When designing systems required to support more than a few 1000 concurrent requests, one prefers the use of sockets over threads. The optimum number of "worker-threads" to instantiate depends upon : Load (number of concurrent requests) System (CPU, RAM) Since this is a very popular probl

Categories : Linux

Can't install node.js on Linux server
For a Debian install of the latest node.js, you should follow these instructions, not requiring you to add the PPA: sudo apt-get install python g++ make checkinstall mkdir ~/src && cd $_ wget -N http://nodejs.org/dist/node-latest.tar.gz tar xzvf node-latest.tar.gz && cd node-v* ./configure checkinstall #(remove the "v" in front of the version number in the dialog) sudo dpkg -i node_*

Categories : Linux

webmethods integration server on linux
The SoftwareAG WebMethods Integration Server runs within a JVM, no matter where it is installed. It doesn't matter if the JVM runs on windows or linux. What you have to ask yourself is how familiar are you with linux as an operating system vs windows as an operating system. Pick the one that you're most familiar with.

Categories : Linux

Connect to SQL Server 2005 with PHP from linux
Have you configured your these files on your Linux server? (These are taken from an Ubuntu 12.04 server) /etc/odbc.ini # Define a connection to the MSSQL server. # The Description can be whatever we want it to be. # The Driver value must match what we have defined in /etc/odbcinst.ini # The Database name must be the name of the database this connection will connect to. # The ServerName is the name we defined in /etc/freetds/freetds.conf # The TDS_Version should match what we defined in /etc/freetds/freetds.conf [mssql] Description = MSSQL Server Driver = freetds Database = MyDatabase ServerName = mssql TDS_Version = 8.0 /etc/odbcinst.ini # Define where to find the driver for the Free TDS connections. [freetds] Descr

Categories : Sql Server

Run local GCC on remote linux server
The problem with doing this is that your build process needs to see the libraries on your test server. So you probably should do one of these: Set up a virtual machine with the same configuration as your test server, and add the development tools to that. Install the development tools to a custom location your test server. Use OverlayFS to install development tools in a "virtual environment" on the test server.

Categories : Linux

Cakephp 2.3.8 cannot run on linux Server ,but on my macbookpro is run oK
Seems, it's a typo use not class nailcolor extends AppModel { but class Nailcolor extends AppModel { so, use Capital N

Categories : PHP

How to setup pngquant to Linux server?
You should connect to your server via SSH, then download the sources (using wget) : wget https://github.com/pornel/pngquant/tarball/master Then extract the downloaded tarball : tar xzf master Then cd to whatever directory that created : cd ... According to their documentation, you just need to make it : make If that doesn't output any errors, you can install it system-wide by running make install as superuser (root) : sudo make install Or, if sudo isn't available in your distribution : su root make install exit And there you have it.

Categories : PHP

block urls on linux dns server?
Try squid, very powerfull, you can do yours personalized filters by ip or url or even site content... and do CACHE!!! For a gui [grafic user interface], install webmin... what distribuition do you have? Webmin: http://www.webmin.com/rpm.html Squid: http://www.davychiu.com/blog/installing-squid-3-1-on-centos-5-6-with-selinux-and-cachemgr-via-yum.html Good luck & have fun! PS: In alternative use this dns manger 4free: http://www.opendns.com/ is a also a proxy as squid!

Categories : Linux

Installing scipy with pip on a linux server
After a lot of trying, I did a clean install of Python in a new virtual environment. And since I was doing a clean install I went with Python 2.7.5. Then activated the virtual environment. Then used pip install to install numpy and scipy, which did not work! (Have no idea why. It would be great to know if someone has a clue). However, tried easy_install and both numpy and scipy worked. Happy that it worked, but am not going to sleep peacefully because have no clue what was the actual problem. Following are the complete codes: 1) Install python wget http://www.python.org/ftp/python/2.7.5/Python-2.7.5.tgz tar -zxvf Python-2.7.5.tgz mkdir ~/Python-2.7 cd Python-2.7.5 make clean ./configure --help #get to know the options in configure ./configure --help | grep -i ucs $get to know the UCS op

Categories : Python

ruby - copy a jar from linux to windows server
If you are already using SSH in your build script I would think the easiest thing to do would be to install an SSH server on the Windows box. You can use sshd via Cygwin or opt for a commercial product like WinSSHD (I'm sure there are numerous other free or paid products out there). Once you have that running you can more than likely reuse most of the existing script relating to moving files around and use a gem like Win32Utils to do any windows specific tasks.

Categories : Ruby

Connect:Direct From Linux server to Unix
mount the target server shared folder in the source server folder (or vice versa) and copy the files there using cp command. For filesystem mount : http://linux.about.com/od/commands/l/blcmdl8_mount.htm Remote mounting

Categories : Linux

Send file from Server to Client on Linux in C
The problem I see is that your Recv() function breaks when either it receives a ' ' or there is no more data or maxlen is reached. None of these conditions match after your client received the last byte of the file length so it reads on and the file data is lost. I would suggest you fill the file length to a fixed number of digits( e.g. 10) by using sprintf( file_size, "%010s", size ); and use a modified Recv() function like this: int Recv (int s, char *ptr, size_t nbytes ){ size_t n; ssize_t nread; while( nbytes > 0 ) { if( (nread = recv( s, ptr, nbytes, 0 )) <= 0 ) return -1; /* Error */ ptr += nread; nbytes -= nread; } +ptr = ''; return 0; /* OK */ } Then your client can first read the file size using Recv(

Categories : C

Remove file present on Linux server
the compiler is indeed correct. you reference a variable called pass which you probably meant to be the string "pass" string remove_config_file_express = "echo " + "'" + pass + "'" + "| sudo -S -u wtsnqa rm " + "/apps/instances/express_13000/configuration/standalone-full.xml";

Categories : C#

Best Ways to reduce Disk IO On Linux Server
Your servers shouldn't crash due to disk IO. They stop, but don't crash, everything gets real slow, but crash?? Seems extreme. What time do they crash at? 8am? What happens if you reboot them? Did you say webapp? hmmm.. Dru You could reduce IO by using smaller drives, hehe I've got some, definitely reduced IO!!

Categories : Mysql

Linux TCP Server - listen on multiple ports in C++
Roughly here are the steps: You can have multiple TCP servers (aka server sockets) listen for each port. Next, you can use a select() and pass file descriptors for each of these server sockets. If you get a connection on any of these, then select would return a read event and mark the fd of the server socket that has the connection. YOu would need to call accept() on that server fd. YOu cannot make a single TCP socket listen on multiple ports.

Categories : C++

Which directories should in put in new volume in Linux server Amazon EC2
The idea of being stateless is that the instance stores no persistent data (database, user files, etc). That way you could duplicate the instance, put it behind a load balancer and scale horizontally to more traffic without duplicating persistent data. Using multiple volumes on a stateless machine is optional. It can help if you need to increase io throughput, but outside of that it doesn't provide many advantages. It can make it more difficult if you are trying to build stateless instances since an AMI will only include the root volume.

Categories : Linux

C 3G File Transfer Client/Server Linux
I think your main problem is here in your code labeled server but which really looks to be the client. You assume that the recv is going to get all 512 bytes on each recv but that's not true - you can and will get short reads. A little below you break out of the read loop if you haven't read exactly LENGTH (i.e. 512). That explains why your pgm quits after a couple of thousand bytes. while ((fr_block_sz = recv(sd, revbuf, LENGTH, 0)) > 0) //LENGTH == 512 { int write_sz = fwrite(revbuf, sizeof(char), fr_block_sz, fr); if (write_sz < fr_block_sz) { error("File write failed. "); } bzero(revbuf, LENGTH); if (fr_block_sz == 0 || fr_block_sz != 512) { break; } } You want something

Categories : C

PHP script to move a directory from one Linux server to another?
there are many ways to do this but the easiest seems to be to send your cmd with php's exec or passthru function. http://php.net/manual/en/function.exec.php http://www.php.net/manual/en/function.passthru.php Warning When allowing user-supplied data to be passed to this function, use escapeshellarg() or escapeshellcmd() to ensure that users cannot trick the system into executing arbitrary commands.

Categories : PHP

How to setup GIT server on Linux Container in Debian
You may want to read this HowTo of setting up GIT server on Debian

Categories : GIT

How to set max file size in Linux CeNTOS to server.log
You can use logrotate to deal with log files. It allows automatic rotation, compression, removal, and mailing of log files. Each log file may be handled daily, weekly, monthly, or when it grows too large. It has a size option, so you can configure it to stay under 500MB for your "server.log"

Categories : Linux

Permission of the webpage folder /var/www on a Linux server
Every number of permisson is composed as follows 4: read 2: write 1: execute So if you add them you get the permission. By example 7 means all the permisons and 6 means read and write. The first number of 755 is for the owner, the second for the group's users and the third for other users. Then 755 means rwxr-xr-x it is the owner can read wirte and execute, but the group member can't write. If you want to solve this you can change the privileges to 775 then it will be change to rwxrwr-x

Categories : Linux

How to start node.js on port 80 on a linux server?
To take over port 80 when another process is listening on it, you must kill the process (or somehow tell it to stop listening). To ensure that Apache doesn't try to listen on port 80 again the next time it starts, you need to edit its configuration or prevent it from starting up. To see which process is listening on port 80, run sudo netstat -ntap and look for the row with Local Address ending in port :80. The PID of the process (and the name) is in the far right column.

Categories : Linux

Connect to MSSQL Server 2008 on linux
Do you have all the software you need? This is what you need for Ubuntu 12.04: sudo apt-get install php5-odbc php5-sybase tdsodbc Have you configured your these files on your Linux server? (These are taken from an Ubuntu 12.04 server) /etc/odbc.ini # Define a connection to the MSSQL server. # The Description can be whatever we want it to be. # The Driver value must match what we have defined in /etc/odbcinst.ini # The Database name must be the name of the database this connection will connect to. # The ServerName is the name we defined in /etc/freetds/freetds.conf # The TDS_Version should match what we defined in /etc/freetds/freetds.conf [mssql] Description = MSSQL Server Driver = freetds Database = MyDatabase ServerName = mssq

Categories : Python

MySQL Errors, Setting up first db (phpmyadmin, linux server)
priveleges is spelt incorrectly (it should be privileges). UPDATE Also, I think you're trying to do two things at once? create user 'kai'@'%' identified by password 'mypass' grant all priveleges on eve.* to 'kai'@'%' with grant option; is at least two commands.. there should probably be a delimiter after password 'mypass'?

Categories : PHP

Running Flash Player on Headless Linux Server
Try this xvfb-run +extension RANDR ./flashplayerdebugger screenapp.swf Also, I found that its very useful that in Linux you can just copy-paste any console error or message by ctrl+shift+c (various for different consoles) and just google about it possible solutions.

Categories : Linux

transfer files server/client linux C with socket
I see nothing wrong with the main structure. You're listening on several ports, spawning a process for each port. Each process (should) spawn a new thread for each client. You do have a race condition in the server with thread_args.address (could get overwritten if two clients connect in quick succession), but it's easy to avoid. Don't use recvfrom on TCP sockets -- it doesn't really make sense. Use read(), or even better fread(), which avoids EINTR issues. Read one byte at a time in the beginning until you encounter the 1st delimiter (though it would be better to change the protocol to send a 32-bit word instead of an ascii representation). But the main problem is that you have a large program and you simply say "it doesn't work". How about posting some diagnostics so long as you want u

Categories : C



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.