Blog Navigation
Partners
Latest Activity
Phil explains how to use the old telephone tones to wane off telemarketers!
Posted on: January 21st, 2012 by Famous Phil
Phil’s Introduction to the post: This will be the last guest post that I accept indefinitely that doesn’t deal with a difficult problem that the poster hasn’t directly solved (basically, the same things I blog about). I feel that these posts are deteriorating the quality of my site, and guest posters are simply looking for high page rank back links to their sites, instead of writing unique, original content that creates better rankings. In a few days, I’ll be releasing some python source code for MySQL connectivity, Nginx for high traffic sites, and other tricky problems that I’m currently dealing with in attempt to re-rail my site back onto topic. Anyways, Rebecca Jones has written about Listening to Spotify on Linux (without WINE which is a Windows Execution Emulator for Linux), I hope that you enjoy her guest post.
Listen To Your Music In Spotify For Free Without Wine
Music aficionados who delight in listening to millions of tracks through Spotify’s free version but feel petered out of needing Wine at the same time have just got some good news to enjoy. The DRM-based music streaming service now announces a new free version specifically for Linux users. Spotify for free will now enable listeners to indulge in gripping tunes without calling out for Wine.
Integrated with a host of great user –friendly features, the music streaming application allows users to listen to millions of songs, any time they like. One can simply rifle through Spotify for a particular song and start playing in unprecedented clarity. For those unaware, Spotify is music based software which provides users with an intuitive medium to search download and play their favorite songs.
Almost like a new music collection, Spotify brings forth convenient access to unlimited tracks and features compatibility with home audio systems and smartphones. The app also lends support to users’ desktop and Mac for tunes that should follow everywhere. At the same time, the app allows users to discover and share music with their closed ones. In fact, users can even hear what their friends are listening to – just by hitting ‘play’ on any music post.
However, Spotify distinguishes from Last FM and Pandora in a couple of significant ways. To state, the app lets music buffs listen to entire albums on demand. But, be careful as there are certain obnoxiously genre-defying advertisements contained. Irrespective of the pros and cons that it comes with, the app still emerges to be an ideal pick. With this one around, people can seamlessly search up and down for songs and share them with amigos.
Although Spotify was extended to several platforms, the software did arch shoulders for those who would always need Wine just to listen to the music. Previously, the Linux version for Spotify used to function merely with paid accounts. Nevertheless, the free version of Spotify for Linux is now anticipated to make things simpler for enthusiasts by large.
The native Linux adaptation starts up pretty quickly and does not gulp down much of a listener’s time while delivering a better experience than Wine. As far as the enrollment is concerned, users will be required to register for an account at Spotify’s official website before kicking off their musical journey. But, a bit to dismay, registering feels a dearth of a Facebook account since the company has made it mandatory to have an account on the stated social networking site.
Besides Spotify for free without Wine, the music streaming service can be downloaded either in Premium which makes users shell our £9.99 per month or in Unlimited which costs just about £4.99 per month. Those who do not wish to fork their pennies out can simply download the free version. However, irrespective of which subscription has been settled upon, the software ensures a thorough, rich music experience. So, what are you waiting for? Just head towards Spotify and we believe the rest you know!
About the author: Rebecca is a blogger by profession. She loves writing on environment and technology. Beside this she is fond of books. She recently bought a AGP Graphics Card. These days she is busy in writing an article on Magnetic Earrings.
Tags: Linux, Spotify, Wine
Posted in Technology
|| No Comments »
Posted on: July 1st, 2011 by Famous Phil
Often times, I find myself working in a remote Linux terminal window. The other day, I had the need to share what I was doing with a friend, but I didn’t want to share my entire local desktop because sharing a full desktop is slow and laggy. So I quickly looked into sharing a screen session with him so he’d only see the command line window that I was in, and I know I will need it again, so its going up here. For those of you who have a Mac or Linux, you might know that you can have multiple desktops and go through them by some key combination (usually ctrl-alt-arrow). In a very simplified nutshell, screen basically allows for the user to exploit multiple desktops.
Here is how you share a screen session:
#User 1, initiator of the screen session screen -R sessionName #User 2, connecting to an existing session screen -x -R sessionName
The -R flag means try to reattach to an existing session, if the existing session does not exist, create a new session and attach to that. The -x flag means to connect to an already attached session, which allows for session sharing.
I ran into a problem as a non-root user (that I normally run as) when I first started using shared screen sessions. The error is as follows:
Cannot open your terminal '/dev/pts/0' - please check.
There are several terminal devices that screen can use under the /dev/pts directory, starting with 0. Only root can traditionally access these terminal devices, therefore, we need to modify each necessary device to allow normal users access. I didn’t research the security implications that the following fix has, so use this at your own risk. The server that I was using has only trusted users on it, so I was not concerned about possible risks.
#run this as root, or as sudo #this gives others read and write access to the device chmod o+rw /dev/pts/0
Finally, up until last week, I could never get myself out of a screen session safely without completely closing my putty terminal window. Here is the proper key sequence to detach from a screen session.
ctrl-A followed by ctrl-D
To terminate a session in screen, simply type exit.
Tags: Linux, screen, shared session, unix
Posted in Hosting / Server Administration, Programming, Technology
|| 1 Comment »
Posted on: January 11th, 2011 by Famous Phil
There is a new blog with additional information on this topic at http://famousphil.com/blog/2011/07/revisiting-exchange-2010-sp1-pst-backups-improved-script/
About a week ago, I finally got around to reviewing and upgrading my existing backup routine for my exchange server. My previous backup scheme involved pushing a full server backup image to a remote server on a weekly basis. If the server failed during a backup, I would have no viable way of recovering from a complete disaster. Obviously, this required some changes.
With the release of SP1 for Exchange 2010, a few new power shell commandlets came out that provide functionality to back up Exchange accounts directly on the server (no needing second computer with outlook and exchange management tools anymore!). This meant that I decided to utilize some backup scripts that backup each mailbox nightly. I also modified the weekly system backup.
There are scripts attached to this post. With any kind of solution that I provide, I always provide it on an as is basis with no warranty provided that it will work for your situation, although I try my best to cover as many scenarios as I can.
So what was decided upon? Read the rest of this entry »
Tags: backup, exchange 2010, Firewall, Linux, powershell, scp, server
Posted in Hosting / Server Administration
|| 3 Comments »
Posted on: October 31st, 2010 by Famous Phil
Sorry for such a long wait. It isn’t often that I have time during the college semester to write posts for my blog, especially ones that fulfill my expectations (long, boring, informative, etc)… You get the idea
. As you can probably tell by the title, I ran into a very strange problem. Being a decent system administrator, I tend to come up with much more advanced problems that I cannot solve easily. This problem took me a few weeks so I thought I’d post it to the web so that it might help someone else.
About 2 months ago now, I finally got back to school and I got back to work on my Masters project, which is basically building a condor flock and programming on it. For those of you who don’t know what that means, I’m building a variant of a super computer. Last year, I spent hours putting together everything and making it all work, but there were tiny things here and there that I finally got time to address. With 35 computers that do the same thing, generally, performing the same tasks to the machines is acceptable (for example, monthly updates).
Cron Jobs in Linux will run a script (or program) at a specified time (and date). The description of a Linux cron job fits the bill perfectly for running updates automatically on the 35 machines that I’m tasked with keeping updated and running smoothly. I am also aware that in Linux, NFS (Network File System) can share files between Linux enabled computers. Using NFS, I can put a file in a central location and grab it from each computer automatically, run it, then move on. Read the rest of this entry »
Tags: cron, cron job, crontab, Linux, scp, supercomputer
Posted in Hosting / Server Administration
|| 24 Comments »
Posted on: August 6th, 2010 by Famous Phil
Often times, I’m asked the question: Should I get Windows hosting or Linux hosting for my new website. This is a topic that comes up time and time again in my field of expertise and sadly, newbies often choose based on perception, not based on fact. This blog will cover some of the facts about both hosting platforms and hopefully help you make an informed decision about how you want your website hosted.
Read the rest of this entry »
Tags: choice, hosting, Linux, windows
Posted in Hosting / Server Administration, Programming, Technology
|| 19 Comments »
Posted on: February 2nd, 2010 by Famous Phil
This post is going to be short, sweet, and to the point
It seems that every time I build a new server, I’m constantly at a loss for memorizing the commands that generate public keys in SSH (Secure Shell). SSH for the computer illiterate is the Linux equivalent to Windows Telnet Services. This basically gives you a command prompt that is running on a remote computer.
SSH is the heart and soul of linux based computers because *everything* can be done through the command line simply. Unfortunately, Windows is just starting to catch up with Telnet using a new application called powershell. Powershell is very unlike the linux command line though since it is more a scripting language than a command based language. This is why I always scratch my head when working with Microsoft Exchange Server’s Powershell commands and end up reverting to the famous Microsoft graphical administration interface which gives me the option of “next next next finish”. I really do appreciate the Microsoft wizards that make software so easy to administer. Anyways, Linux never started with a graphical desktop (Unlike Windows and Macintosh), therefore, the command line in linux is far easier to use when administering a system.
To get back to my original topic, I am a fan of passwordless entry into my own systems. With linux and SSH, there are a few authentication methods, 1 being password entry, and 2 being public key authentication. With a password login, you basically enter a username and password and you are logged into a command prompt on linux.
With public key authentication, you generate 2 keys at your local computer, one being a private key and the other being a public key. Basically, you give the server you wish to connect to the public key, and only you hold onto the private key. When you connect to the server, it will first give you the public key so that you can verify that the server is actually the server that you want to connect to. This will be ignored on the first connect, but in the future, if this key changes, you will be notified that the server was possibly compromised. Upon allowing the connection, you will give the server your private key and it will run some calculations on the key you provided. If the result matches that of the server’s public key, you will be granted access. Since keys are generally 256 hexadecimal characters long, these are much more secure than normal passwords, and they are generally much easier to use (unless your laptop is stolen).
So now onto how to actually use these keys:
1. Generate the key on your local machine (not the remote machine).
A. ssh-keygen -t rsa
2. Verify that your remote server has an ~/.ssh directory. ~ in linux is the home directory.
3. Copy the local public key to the server
A. This can be done with: scp ~/.ssh/id_rsa.pub user@remote_server:~/.ssh/authorized_keys2
B. Notice I specified authorized_keys2… this is actually for SSH Protocol 2 which is a more secure SSH protocol than the original.
C. scp is secure copy in linux and it copies files between computers using SSH tunnels.
4. Attempt to ssh into your remote machine. It should not need a password anymore.
A. ssh user@remote_server
Hopefully this helps make sense of SSH keys.
Afterthought on 2/4/10:
when using the scp command as a copy / paste above, this will overwrite your authorized_keys2 file on the remote computer. To prevent this from happening, append to the file using this command (thanks Cris for pointing this out to me):
cat ~/.ssh/id_rsa.pub | user@remote_server “cat >> ~/.ssh/authorized_keys2“
Tags: key, keygen, Linux, ssh
Posted in Hosting / Server Administration
|| 6 Comments »
Posted on: July 10th, 2009 by Famous Phil
As you probably know by now, I have a Microsoft Exchange 2007 server. With any kind of server, a backup and disaster recovery plan is a vital part of any kind of professional hosting. Hosting email can be quite tricky as it is, but taking network backups was a new road that I’ve never covered in Windows.
First, I have a fairly simple environment set up for my backup. I have a Linux backup server running samba sitting in Seattle (mthsweb2). This server has the Windows IP white listed so that only my Windows server can connect to it to map a network share. For those of you who don’t know what samba is, samba is a daemon in Linux that will allow Windows to naively connect to a Linux server for file sharing. Samba is a very simple solution for mapping a network drive to Linux in Windows without needing any specialized software such as sftpdrive (not called something else).
Tags: backup, batch, Linux, mapped network drive, network, ntbackup, samba, script, server 2003, windows
Posted in Hosting / Server Administration
|| 3 Comments »
Posted on: April 28th, 2009 by Famous Phil
A good place to introduce this topic is by stating that I consider myself a “good” system administrator. I consider myself above average when it comes to Windows Server administration, and “average” when it comes to Linux server administration. Normally, regardless of platform (Linux or Windows), I usually know enough not to get myself into trouble, yet rectify the problem that is presented to me.
Prior to last October (2008), I have solved a wide array of problems consisting of Apache malfunctions and complete Server Hard Drive failures requiring data recovery, to simply having to unblock a person’s ip address from the firewall because they tried to login to the server incorrectly too many times. I never really messed a server up so badly that I couldn’t undo what I attempted to fix in the first place.
Tags: administration, blunder, delete, disk space, hosting, Linux, mysql, var, var/lib/mysql, windows
Posted in Hosting / Server Administration, Personal
|| 2 Comments »
Posted on: February 18th, 2009 by Famous Phil
As the owner of a hosting company, I have made several decisions regarding which server to use, what kind of control panel should I provide, should I add features to my hosting, how many resources should I include, etc. In my opinion, one of the most important decisions in hosting is choosing how your users will use the service, meaning what control panel should I use? There are many options for Linux including, Plesk, LXAdmin, and the most popular: CPanel.
CPanel is the control panel that I choose to use for Matthouse hosting accounts, but why did I choose CPanel, what are its advantages and disadvantages?
I suppose I should first begin with a small description of what CPanel is. CPanel allows the hosting client to modify all aspects of their site from an easy to use web-based interface such as FTP accounts, Email accounts, statistics, subdomains, additional domains to host, etc. CPanel makes it very easy for the hosting company to give the client total control of their website without the requirement of providing full server access.
Here are the advantages of using CPanel:
So, what are the disadvantages of hosting with CPanel?
So when would I recommend a CPanel installation? Thats simple, I’d recommend it for hosting companies that host many sites on a single server. It reduces stress on the hosting company, and generally these servers have plentiful resources to handle CPanel in its entirety. Also sites that are generally on shared CPanel hosting are not big enough to have a good probability of being hacked.
When would I not recommend installing CPanel. I would personally say never install CPanel on a large site that gets over 5000 unique hits a day or more. CPanel may make administering the site easier, however most sites that are this big bring in a lot of revenue and paying for CPanel could be just slightly cheaper than hiring an experienced server administrator or a friend to run the server without CPanel. Installing the core components and configuring them manually will also ensure that you have minimal code that can be hacked (Yes, web servers are software). I’ve always been taught that the less code you use, the less likely there will be problems with it.
Thats all the time I have. I might follow up on this depending on how many comments I receive.
Tags: CPanel, Host, hosting, Linux, Manager, Web, WHM
Posted in Hosting / Server Administration
|| 24 Comments »
Posted on: January 31st, 2009 by Famous Phil
As expected, I completed moving all of the websites hosted on the former mthsweb1 (Matthouse Web Server 1) server over to the new mthsweb4 server. I haven’t heard any complaints so far about the new server so far and don’t expect to hear of any problems. Tonight I will be doing some testing on the old matthouse web 1 server before it expires later in February. I hope to learn some new knowledge from my testing later tonight regarding apache optimization.
Earlier today, I helped a friend in the hosting business move a massive website (http://clevelandleader.com) from his server to a virtual server that will just host that website. This website is ranked ~76,000 on the alexa scale which means that it gets an insane amount of traffic. My best guess would be 300 to 1500 loads per second. The site itself has a huge mysql database that is over 2GB and the sql move alone almost crashed a dedicated server with a quadcore processor (it did have a lot of other websites on it though). Regardless, after the move, my friend didn’t realize that a default whm (cpanel, inc) installation doesn’t optimize the server nearly enough for a large website like this. Heck, I don’t even know if whm was made for such a large website. I did optimize the server and compile apache correctly just to handle the needs of clevelandleader.com. I also did a lot to prevent apache from crashing with the high load.
Traditionally, with such a large website such as cleveland leader, the web server hosting the site would only run a web server, no overhead like cpanel. I feel that cpanel has made the hosting process much easier, but I just don’t think it was made to handle such a large website. Also, the fact that cpanel uses the root password directly means that if there is a security vulnerability and the user obtains that root password through hacking or whatever, the server could be compromised not only from cpanel’s whm but also from the terminal through ssh (or a rare occasion of console access, meaning sitting in front of the server physically). This could present a major problem. Most smart hosting companies use cpanel’s wheel group to give su access to certain cpanel uesrs that can then login to the terminal via ssh and then su root with the root password to gain root. This provides a 2 password layer and adds an additional layer of security to the server.
Another pitfall that large websites face is the need for a dedicated mysql server, that is if mysql can even handle the load. Mysql was made for small to medium sites and it was made for maybe 100 to 200 queries per second, but much more than that and it undergoes a massive strain. Many large websites find themselves moving to more powerful database servers such as Microsoft SQL or Oracle which are much more powerful solutions that were made for high loads.
So why am I even talking about this! I felt that this would be the best way to introduce a new idea that I’m going to begin working on within the next couple of weeks. I have purchased the domain (http://adminreference.com) and will begin a forum where users can share their administration experience and knowledge to the world. I am a seasoned Windows administrator and a somewhat experienced Linux admin. I find myself knowledgable about both server operating systems and I post tutorials on multiple websites that don’t really aim for administration concepts. I also hope that some day this can help me when I am stuck on a massive problem.
I encourage you to stay informed as I begin this new journey. I will likely be ready to release the site sometime in the next couple of weeks. I am not sure how to market such a website, however I’m sure as people begin coming, someone will have knowledge about that as well.
Tags: admin, administration, facebook, help, hosting, Linux, Microsoft, Personal, reference, server, Server Hosting
Posted in Hosting / Server Administration
|| 6 Comments »