God, Windows is sloooooow
I am assisting a colleague today check out a rather large feature branch. I showed him the branch address and he started checking it out using Tortoise SVN on Windows 7. Upon returning to my desk (Ubuntu 11.10), I decided to merge the branch with the major trunk. I checked out a brand new copy [...]
Keeping 2 drives sync’ed with rsync on Linux
I have an external USB HDD and I like to keep it synchronised with my desktop for backup reasons. I find the easiest way to do this, is to use rsync: > sudo apt-get install rsync > rsync -avu /source/ /dest/ For example: > rysnc -avu /media/externaldisk/ /home/chris/diskbackup/ Will increment copy everything (ignoring older files) from [...]
HOWTO: Rotate a video in Linux
I videoed something at the weekend on my iphone, but must’ve had the phone upside-down so the video came out that way. Fortunately there is a little program that will rotate a video for you. > sudo apt-get install mencoder Then, to rotate my video clockwise by 90 degrees: > mencoder -ovc lavc -vf rotate=1 [...]
iPhone iOS 4.2+ no longer automounting in Ubuntu
I had this problem, which meant my iPhone no longer automatically mounted in Ubuntu 10.10. I had recently upgraded the iOS to 4.3.1 and this turned out to be the cause of the issue. So, to fix it: Click on the System menu, then Administration and Software Sources. You’ll have to enter you administrator password. The [...]
How to use Nano on Unix-like systems
Nano is a basic text only text editor in Unix. It has no real GUI as such, and there is very little mouse interaction. But this makes it very useful, especially when SSHing to your web server. Here are some basic commands for you. Opening Nano to edit a file is as simple as Nano [...]
Accessing /var/www/ as normal user
Some useful linux commands to help with editing web pages on a server: To give access to others to my www folder (so I don’t have to login as sudo): chmod 2775 . -R To show the groups for the selected user: groups <username> groups www-data To add the www-data user to the local user’s [...]
Linux – CHMOD 777
Just a note, when you update the permissions of a file: chmod +777 somefile.txt This change will only last as long as the session is logged in, i.e. once you reboot, it will revert back to what the permissions were.
Linux – Viewing Processes and Process Threads
If you need to know about viewing processes on Linux, then there is an excellent page here: http://www.cyberciti.biz/faq/show-all-running-processes-in-linux/ I shan’t steal all the information as its very nicely laid out already.
Help in using Ubuntu Terminal Console
Help in using Ubuntu Terminal Console Remote connection To ssh to another Lunix terminal, use this command: ssh username@host -p port The default SSH port is 21, but you could change it to anything, i.e. 9100 Remote teminal will prompt for your password, and job done. File/Folder functions cp – Copy file cp /usr/bin/file /tmp/location [...]