Showing posts with label asked. Show all posts
Showing posts with label asked. Show all posts

Sunday, 21 February 2016

How to Make a Java Game With NetBeansIn Feburary 2016 21,

In Feburary 2016 21,
Download and install the appropriate version of NetBeans for your system. If you are running 64-bit or 32-bit Windows, there are specific versions of the software for both of these operating systems. You will be prompted to set some defaults of the tool. It is best to accept the default values for all of the fields, since not doing so can lead to you being unable to compile your game from within the tool.
Launch NetBeans, then select 'New Java Project' from the file menu. You will be asked to select where you want to save your project. NetBeans projects can be saved anywhere on your hard drive or on a remote network drive. Give it a name that is both descriptive yet simple enough to remember.
Develop or purchase any art assets that you are going to need for your game. Popular illustration tools include Adobe Illustrator, Photoshop, and the free and open source Inkscape. When developing models for the player characters and any other characters that will be utilized in the game, save them as PNGs, since PNGs have transparent backgrounds by default.
Click on the Java file that NetBeans created for you when you created the project. NetBeans has already generated some code for you, including a main method; in Java, the compiler begins running your code starting with the main method. Since there are so many different types of games that can be written in Java, it is impossible to offer any specific code here, but there is one thing that every game is going to have: an update method. The update method checks what changes have been made in the game world periodically.
Hit F5 to compile your project. Any errors that are found in your game will be displayed in the debugging window at the bottom of your screen. These errors will need to be fixed before you can successfully compile your project.
In Feburary 2016 21,

Saturday, 20 February 2016

How to Download Files to Your Computer With an FTP ProgramIn Feburary 2016 20,

In Feburary 2016 20,
Install an FTP software program on your hard disk. Open the program.
Enter the host address in the text box provided.
Enter whatever passwords or IDs have been provided if this is an anonymous login. For example, you may have been asked to login as 'guest' and use your e-mail address as the password.
Enter whatever password and ID you have arranged with the remote administrator if it is not an anonymous login.
Click Connect to establish a connection. When the connection is established, the window on the right side of the screen represents the remote site.
Move through the remote folders until you locate the file that you want to download, and select the file.
Move through your hard disk (the window on the left side of the screen) until you have opened the folder that is to receive your new file.
Select the remote file on the right window, and drag it to the window on the left. Most FTP programs allow you to download files this way. If your software does not allow this method, consult the help file to see how to start the download. When the download is complete, you will find your new file in the location that you specified.
In Feburary 2016 20,

Tuesday, 16 February 2016

Kerberos StepIn Feburary 2016 16,

In Feburary 2016 16,
Before you begin setting up Kerberos on your system, you should know the name of your Kerberos, the hostname of the master and slave Key Distribution Centers (KDC) and how you are going to map your hostnames in the Kerberos realm. You will need to determine the ports that the KDCs and the database access (kadmin) services will use. You will also have to know how frequently the master and slave KDCs will fill the database.You will use the above information to configure the master KDC. The master KDC configuration files will be found at '/etc/krb5.conf' and '/usr/local/var/krb5kdc/kdc.conf' and can be edited in any text editor. The 'krb5.conf' file contains information about where to locate the KDCs and admin servers, as well as the host name mapping information. The 'kdc.conf' file contains the default information used when issuing Kerberos tickets. Open the '/etc/krb5.conf' and edit the 'login,' 'realms' and 'domain_realm' values so that they are correct for your system. Change the '/usr/local/var/krb5kdc/kdc.conf' so that it reflects the correct information for your KDC server.The next step is to create the database. Open a terminal and type the command 'kdb5_util.' You will be asked to provide a master key. This should be a string of letters, numbers and special characters similar to a password. This key will be stored in a stash file on the KDC's hard drive. If you would rather be prompted for the key whenever Kerberos starts, you can choose to not create the stash file.Finally, you will create the Access Control List (ACL) and add at least one administrator to it. The ACL is a user created text file that is called '/usr/local/var/krb5kdc/kadm5.acl.' This file should have the administrator listed in the form:
Kerberos_principal permissions [target_principal] [restrictions]
Once the ACL list is created, issue the command 'kadmin.local' and add each principal to the database. Start the Kerberos daemons with the command '/usr/local/sbin/krb5kdc; /usr/local/sbin/kadmin.'
Creating the Keytab File
The keytab file is used to decrypt the Kerberos tickets and determine whether the user should have access to the database. In order to create this file, type the command 'kadmin.local' again. This will provide you with a prompt where you will type the command: 'ktadd -k /usr/local/var/krb5kdc/kadm5.keytab kadmin/admin kadmin/changepw' to create the keytab file. Replace the section '/usr/local/var/krb5kdc/kadm5.keytab' with the keytab location that was specified in the '/usr/local/var/krb5kdc/kdc.conf' file. Type 'quit' to exit the 'kadmin' utility.
Configuring the Slave KDCs
To create the slave KDCs, you will issue the 'kadmin.local' command a third time. At the prompt, issue the command 'addprinc-randkey host/example.com' for the Master and each slave. Use the host name of each KDC in place of 'example.conf.' This will create host keys for each of the KDCs. Next, extract the keys on each of the slave KDCs by starting the 'kadmin' utility on each of the slaves and issuing the command 'ktadd host/MasterKDC.com.' Replace 'MasterKDC.com' with the host name of the master KDC.For the database to be propagated from the master KDC to the slave KDCs you will have to create a file called '/usr/local/var/krb5kdc/kpropd.acl.' This file must contain the principals for each of the KDCs in the form 'host/example.com.' Each principal should be placed on its own line. Next, edit the '/etc/inetd.conf' file on each of the KDCS and add the following lines:
krb5_prop stream tcp nowait root /usr/local/sbin/kpropd kpropd
eklogin stream tcp nowait root /usr/local/sbin/klogind klogind -k -c -eEdit the '/etc/services' file on each of the KDCs and add the following lines:
kerberos 88/udp kdc # Kerberos authentication (udp)
kerberos 88/tcp kdc # Kerberos authentication (tcp)
krb5_prop 754/tcp # Kerberos slave propagation
kerberos-adm 749/tcp # Kerberos 5 admin/changepw (tcp)
kerberos-adm 749/udp # Kerberos 5 admin/changepw (udp)
eklogin 2105/tcp # Kerberos encrypted rlogin
Propagating the Database
Propagating the database is done from the Master KDC. Issue the command '/usr/local/sbin/kdb5_util dump /usr/local/var/krb5kdc/slave_datatrans' to create a dump of the database. Next, issue the command ' /usr/local/sbin/kprop -f /usr/local/var/krb5kdc/slave_datatrans Slave-1.example.com' to manually propagate the database on each of the slaves. These steps will need to be completed on a regular basis. The easiest way to do this is to create as script and run the script as a cron job. The script should look like:!/bin/sh
kdclist = 'slave-1.example.com slave-2.example.com'/usr/local/sbin/kdb5_util 'dump
=> /usr/local/var/krb5kdc/slave_datatrans'for kdc in $kdclist
do
/usr/local/sbin/kprop -f /usr/local/var/krb5kdc/slave_datatrans $kdc
done
Of course, change the host names to reflect the values for your system.
Create Stash Files on the Slaves
The final step to setting up Kerberos is to create stash files on the slave KDCs. On each of the slave KDCs issue the command 'kdb5_util stash' and provide the master key when prompted. Once that is completed, you can start the 'krb5kdc' daemon on each slave with the command '/usr/local/sbin/krb5kdc/.'
In Feburary 2016 16,

How to Make a User Hidden in LinuxIn Feburary 2016 16,

In Feburary 2016 16,
Open up the 'Users and Groups' controls under 'System' > 'Administration.'
Create a new user by clicking 'Add' under the list of present users. You will be asked to authenticate your administrative privileges by providing an administrative password.
Type in the new user's name and password. You will be returned to the Users and Groups controls window.
Select the user and click 'Advanced Settings.' Click the 'Advanced' tab on the top right.
Change the User ID at the bottom of the page to any number less than 1000. Changing this number makes the user hidden on the splash screen and on the 'Switch User' menu. No other user will be able to find the new username.
In Feburary 2016 16,

Tuesday, 9 February 2016

How to Share Images Using PicasaIn Feburary 2016 09,

In Feburary 2016 09,
Download the Picasa photo-sharing application. It is available on the Picasa website.
Upload pictures from your computer to Picasa. Click on the 'Upload' button on the upper right-hand side of the page. You will be asked to select if you want to upload to an existing album or if you want to create a new album. When creating a new album, you will choose the title and date. You can select if you would like your album to be public or unlisted.
Share album. Click on the album you would like to show others. You can email the link of where these pictures are stored by clicking on the 'Share Album' button at the upper right-hand side of the layout. You will be instructed to enter in the email addresses of the people with whom you want to share your images. After entering in the email addresses, click on the 'Send Invitation' button in the lower left corner.
In Feburary 2016 09,