Archive: linux

 

Want to browse your man pages but not in the console? You can of course hit the search engines but its got to be better to be looking at your own man pages so you know the instructions are for your machine, version etc. For this just PLAIN TEXT CODE: sudo apt-get install tkman And [...]



 

How many times have you edited a file in Vim, made your changes and then realised you don't have write permissions when it comes to save it. Well if you do it again, this tip is for you. You CAN save the file using this command: PLAIN TEXT CODE: :w !sudo tee % Lifesaver! This [...]



 

If you are struggling to figure out why your Sed script is failing this could well be the solution. Every example you see using sed specifies / as a delimiter. Now what if your pattern actually includes a slash in the body text? If you are using a variable you might not realise that you [...]



 

If you are finding it takes ages for a password prompt to come up when trying to connect to a CentOS server (and possibly others) this is a solution. The cause is that your IP address does not have the correct reverse DNS etc settings. You can of course try to fix all that but [...]



 

If you are frustrated with Samba and would like something a bit more solid and speedier whilst being very easy to set up, check out SSHFS. To install it you simply need to do PLAIN TEXT CODE: sudo apt-get install sshfs Once that's done you can mount a remote filesystem in a very similar way [...]



 

If you need to grep through some archived log files in gz format - don't be extracting them and then using grep to search, just use zgrep to grep them directly. Easy! PLAIN TEXT CODE: zgrep 'my_search_string' access_log.processed.1.gz> zgrep_results && less zgrep_results More Reading:



 

If you ever want to have a quick look at a html file from the command line (eg when SSHing into a server) then you will love this little app. Called w3m, its a basic text based browser that will render your html into readable formatted text right on the command line. This is great [...]



 

just run this command once you have set up your vhost /usr/local/psa/admin/bin/websrvmng -a More Reading:How To Extract Files from Plesk BackupsMagento Performance ProblemsWordpress Upgrade Bash ScriptUbuntu 10.10 is Dead… What next?TIP: SSH add a tunnel to a running sessionVirtualBox Images For Download of Various Linux and Other Open Source SystemsSpotify Controller for Android and LinuxNetbeans [...]



 

Update: if you have installed the native Linux client, just run these three commands in the terminal: PLAIN TEXT CODE: gconftool-2 -t string -s /desktop/gnome/url-handlers/spotify/command "/usr/bin/spotify -uri %s" gconftool-2 -t bool -s /desktop/gnome/url-handlers/spotify/needs_terminal false gconftool-2 -t bool -s /desktop/gnome/url-handlers/spotify/enabled true -------- To get spotify links (eg playlist links etc) to work in Linux, I found [...]



 

If you use Spotify (its awesome I'm a big fan) but don't use one of their chosen operating systems (win/mac) and use Linux instead then you might think its unavailable to you. In fact its fairly trivial to get it working. First - follow the instructions on the spotify website to install Wine and install [...]