Running a successful website
Posted: July 3rd, 2010
You know as a user of a low profile website, such as this, you could be anywhere at anytime within the server and it's guaranteed that someone is watching what you do. Not like a stalker, more like a creationist overseeing what he or she has created, maintaining balance by being the law, and creating to please on accountability of the user-base. Dazik during any moment of the day could have anywhere from 20 to 800 people browsing, how do we do it? Everything in life can be simplified into the dream of 1 person, an "idea's man" so to think, Google is one of those and so is Microsoft.
The most important thing about being a web-developer of any sort is the ability to care about your users, most websites really don't care who you are or what you want, just the money you bring them, a good web admin will take the time to read every email and reply to every user that sends one. The first idea to a leading website is to know your user base, know the age and agenda of the general area of its users by watching what they use on your site, and what they like. You take this knowledge from watching to add to the sites content, if somebody really likes movies then you give them a search function to find more, they like it so much they tell their friends and net you even more users, this process repeats over and over and will end with a large user base.
The "carry yourself" rule, one of the biggest roles of every web admin is to interact with their users, if your running a forum you need to be active in it otherwise people will have no idea who you are and just see the site as a little void of the internet, so get in those discussions and talk with people, let them know about some aspects of your life, maybe even your real name, I've gotten feedback on many of my creations about how much of a team player I am from simply replying to people, helping them with their own problems and being an ear to talk to. A good example of an interactive social network where you can speak to owners and employee's is FunAdvice, the owner himself will answer your question if you ask him and he's running a 200,000 user website! So keep yourself in the loop with what your users are talking about, and be a part of the discussion.
At this point your probably wondering where you could possibly get the first users of your site from, well that's easy, tell your friends! Advertising really is not all that necessary as long as you have the content people are looking for, something addictive or something of major use, Dazik fits into the usage category by offering its members something you generally cannot find anywhere else, that alone is all the advertising Dazik needs to live on. To get started find other websites with some sort of tie to your own, a common factor. If your website is all about a video game, or a gaming console, then you want to find gamers to tell about how awesome your site is, tell them what they can do on your site that they probably cant anywhere else to drag them in, get them addicted and they will have friends coming in no time.
Now, on top of all that you also need to be prepared for Search Engine Optimization, SEO for short. The one thing you need to make sure of is that each page has its own meta such as description and keywords, even title. That way when search engines like Google or Yahoo come crawling your site everything will be organized and ready for them to index, Google is your friend use it to your advantage!
Torrent Downloading
Posted: May 29th, 2010NOTE: This tutorial is not meant for piracy use, if you came here to figure out how to download new movies quickly, I suggest you back away. This tutorial, while it may encounter piracy files, is ONLY meant for purposes of legal downloading.
So lets say you want to download the redhat OS off of a torrent, but you have no idea how to download a torrent. In this tutorial I am going to teach you how to use torrents to download files, as well as an easy alternative to the mess of port forwarding.
- First find a BitTorrent app to use, I suggest uTorrent as its the best in my opinion.
- For this tutorial I am going to assume you are using uTorrent, great! I like you, Your like smart and stuff! So download uTorrent and install it, your ready to go.
- Next open up uTorrent and go to Options > Speed Guide, follow the little helper they have there and set things up.
- Now go to Options > Preferences > Directories and set where on your computer that you want downloads to save to, usually "My Documents" -both fields can be the same.
- Now all you need is a good Torrent Tracker to search for files on, at the risk of sounding blatantly like advertisement I suggest Dazik Advanced Torrent Search
I'm assuming you decided to use Dazik for this tutorial, yeah? You really are smart!
Go to Dazik, here you can search for basically anything you could possibly think of, like movies, music, tv shows, applications, and of course the dreaded porn.
Now I bet your wondering what you do from here, right? Easy, one thing to remember is the more seeders the better, seeders are people you download from, the more of them available means the faster you download, so say your being a naughty pirate and you want to download Redhat what you want to look for is the highest amount of seeders along with good ratings, good ratings mean the file is not a scam, and as stated above, more seeders means faster download. The first one should do, its got almost 400 seeders right now and a great rating so you would definitely want that one, click on the name and then check the comments to be sure its good quality and not a fake, so it all looks good huh? Great! Now pick a torrent tracker to download from, Monova is my personal favorite, you will be directed to a page to download a .torrent, download it and open it in uTorrent, now sit back, relax, and wait for Redhat to download.
Port Forwarding
This is not for the computer illiterate user, if this is you, stay away.
Port Forwarding will open connections to your Bit Torrent client and speed up your download speed immensely, the average computer junkie already knows enough networking to do this, open up your client and set the port you want forwarded, then pop open your router and set the port to your IP, easy in most cases but a nightmare with some routers, including my own. So here's a good website on port forwarding.
If your like me, then you don't feel too much like playing with your network to open 1 single port, right? Yeah you bet I'm right.
In my case my modem has a built in DHCP router, with just 1 ethernet port, and I also have a router that does the same, so 2 routers to play with... aka: a nightmare.
I had to bridge my modem to my Linksys WRT110 wireless router, then activate DHCP on the Linksys as well as NAT routing, this took me about 5 hours to get working and is still being a pain to keep working, so if you have the same problem as me, with 2 routers, I suggest not to bother trying to forward points, its really not worth it.
Now here's a tool to use, you select your router from a dropdown list and then select your Torrent Client, select the port you want forwarded and click "Configure router" bam your done and your ports are forwarded, have fun downloading at max speed and enjoy.
Check the DOWNLOADS section for "Simple Port Forward (Portable)"
Source Server with DreamHost PS
Posted: May 22nd, 2010View the DreamHost Forum Discussion on this.
@Readers: Please post results in a comment here if you try this
By now most people know I am using Dreamhost Private Servers to run Team Fortress 2 game servers, so I decided it's time to share the secret to running a 32 slot TF2 server for $11 a month (bundled) or $15 a month (single).
First off, you pay for a Dreamhost PS per how much ram you need, after careful testing with some trial and error, I found out that on Linux a basic 32 slot TF2 server, when completely filled will only use about 250mb of ram, thus the minimum @ Dreamhost for a PS (300mb) is perfect for any basic server, now if your going to be running a ton of plugins, you may want to drag that resource allocation bar up to around 450mb just to be safe.
Anarchy99 currently has 3 servers running off of the Dreamhost PS shells, each one its own PS, and bundled they are anywhere from $8/mo to $15/mo each.
Lets get started then, shall we?
To start, your gonna need Dreamhost hosting, they are an excellent company to use, and I highly recommend them to anyone in the market for web hosting, at the moment you can get amazing hosting for $2/mo, same hosting I have for my personal things, in fact. Upon registration enter the email "les@dazik.com" as a referral email, earn me a good name!
Now that you have the hosting
You should have gotten a free domain upon registration (I told you they were awesome!), anyways go in your Dreamhost panel and scroll down to "Private Servers" on the left menu, then click "Enable DreamHost PS", go through the little setup and wait for the email that says its ready, once you get that go back in your panel and click "Manage Resources" to be sure its up, the first week of PS is free, thus they give you an absurd amount of ram to use for the first week (2300mb default), when that week is up, the slider is automatically moved to whatever you use, I out of habit just set it at 300 or 350 once I enable a new server (you can have as many PS's at a time as you want).
Add new user for the ps and subdomain
This first thing to do after your PS is ready is to create a new user for that server. On the left menu, click "Manage Users" and then click "Add a New User", setup the user any way you wish, just make sure it has "SHELL" ticked as its access, and the server on the dropbox set to your PS.
Example:
Now that you have a user, set a sub domain to it.
In order to use your FTP to upload/edit files on the server you need to set a sub domain on the user, click the "Manage Domains" link in your DreamHost panel and click "Add New Domain / Sub Domain", fill out the information as I have it in my example image, make sure it is on the user you just made for the PS, and remember the "Web Directory" you set!
Example:
Alright the hard parts done, now lets hop on putty!
Now you need to use an ssh tool, I use PuTTY, which you can find in the Downloads section of this site
Connect to your subdomain you just set and use the user we setup earlier, in the hostname, simply enter your sub. Once you click "Open" the connection will start, enter the username you made earlier, then it will ask you for your password, enter that as well.
Example:
When done you will see a command prompt, type "ls" from there you should see a few folders, we want the one you made with the subdomain, so type "cd FOLDERNAMEHERE" to make it your current directory. From here, we install SRCDS (the engine that runs source servers), you can find the SRCDS tutorial on how to install here, for this tutorial I will also paste the instructions here.
First of all download hldsupdatetool from the VALVe webserver. Make a dir called srcds_l, and save hldsupdatetool in that dir and run it. (Check this out when you have an uncompress error.)
Command(s):
| mkdir srcds_l cd srcds_l wget http://www.steampowered.com/download/hldsupdatetool.bin chmod +x hldsupdatetool.bin ./hldsupdatetool.bin ./steam |
The new version of HLDSUpdateTool will be downloaded now. You will be returned to the console after its done.
| 2) Downloading the files |
We can start downloading the files. This can take a few hours depending on the connection the server uses.
Command(s):
| ./steam -command update -game "Counter-Strike Source" -dir . |
If you want to install a Half-Life 2 Deathmatch server, use "hl2mp" for the game switch. For Team Fortress 2, use "tf".
Go get yourself a cup of coffee.
| 3) Starting srcds |
First edit (or create) srcds_l/cstrike/cfg/server.cfg like you want it to be. Now we are ready to run the srcds.
./srcds_run -console -game cstrike +map de_dust -maxplayers 16 -autoupdate
and press enter. (-game hl2mp if it's a HL2DM server ofcourse)
Your srcds is now up and running.
Now installing SRCDS is done! Lets make a auto-start script.
Without modifying or installing certain packages for nix, we cant use the screen script valve recommends in the install tutorial, for a stand-in I simply edited their use. Create a file either with command in shell or upload with FTP to your /srcds_1/orangebox directory, the file contents will be as follows:
screen -A -m -d -S server ./srcds_run -console -game tf +map ctf_2fort +maxplayers 32 -autoupdate -tickrate 100 +fps_max 500
Change this command line to your own needs, save as "start" and upload to the directory listed above.
Now in shell go to your orangebox directory
Commands
cd FOLDER (This represents the name you made in the subdomain, btw)
cd srcds_1
cd orangebox
After that type ls to make sure the file "start" is there, if so enter the command
chmod +x start
then proceed to run the script with
./start
Now that you have run the startup script, the server will start running.
NOTE: The best way to restart a server, or even stop it, is through the DreamHost control panel to restart your private server. (DH Only)
To find your server's IP, in shell type the command
/sbin/ifconfig | less
You will then see your server's IP listed next to "inet"
Congratulations, your successfully running a bare bones server off of a DreamHost PS!
If your server ever crashes, or doesn't show up on server list, you can restart it by going into ssh (putty), from the root of your user make FOLDER/srcds_1/orangebox your current directory (As I explained above) and then type ./start for the server to restart.
This method has no logging for the server errors other than what is logged in files, you cannot see the actual command window. Its a very primitive way to run a server, but its much cheaper and works sometimes just as well, keep in mind that DreamHost is located in LA, Cali. Thus any server you host, while on a gigabit line, is a west coast server.
Working FTP with your server
Connect to your subdomain as the ftp address, aka for our training server:
ftp.train.anarchy-99.net
User and password are same as the one for ssh (this is why we gave the user shell access!), from here have a ball. I will not explain how to install plugins and addons and all that, use google. The hard part is done, you can do the rest.
Conclusion
Thats really all you need for a basic server, recompiling kernels, plugins/addons, and other such things such as running a Control Panel for your server, you will have to figure out on your own, be prepared for some serious work in this adventure, if you so choose to go for it. Look out in the future for a basic Control Panel I am currently developing to run RCON in php for console, and to run scripts for restarting/editing server files. This panel will work on ANY web server running php 5. Again, not quite done with it, in the process of developing it for Anarchy 99.
















