Category Archives: Linux

Xubuntu – Initial Installation

apt-get update apt-get install libqt4-core apt-get -f install Skype: Download the deb package from the site Opera: apt-get install libqt3-mt & download it from the website Flash: Download the .deb from the official site apt-get install gThumb – to import … Continue reading

Posted in Checklist, Debian / Ubuntu / Kubuntu | Leave a comment

Add An Entry In Fstab to Mount a Common Data Partition

Add this row into your /etc/fstab: /dev/hda6 /mnt/data auto rw,uid=1000,utf8 0 0

Posted in Linux, Linux Command Line | Tagged , | Leave a comment

Installing an SVN System On CentOS

yum install httpd subversion mod_dav_svn You need also SSH To run the server: svn serve –daemon –root /home/mike/svn-repos It will be bound to the port 3690 Networking with svn+ssh If you specify a svn+ssh schema to access the repo, every … Continue reading

Posted in Redhat / CentOS, Web Development | Leave a comment

Linux – How To Split a Big File Into Several Small Files

split –bytes=1m /path/to/large/file /path/to/output/file/prefix You can change the output file size by changing the –bytes=1m to your preference. You can use b, k, or m. b represent bytes, k represent kilobytes, m represent megabytes. To restore the original file: cat … Continue reading

Posted in Linux Command Line | Tagged | Leave a comment

Rsync – Deploy And Increment Backup

It’s good for deploy as well. It can be used locally (like this: rsync -aHvzO –progress staging/ www/). Very useful to move big amount of data over the Internet because of its incremental feature. By default it uses SSH for … Continue reading

Posted in Linux Command Line, System Administration | Leave a comment

Linux Command Line – Bash Scripting – Some tricks

wc – print newline, word, and byte counts for each file (program for count statistics from a file) dt = $(date) ls -l > files.txt 2>error.txt Redirects standard error to a file ls -l > files.txt 2>&1 Redirects standard error … Continue reading

Posted in Linux Command Line | Leave a comment

CentOS – Useful Programs (also for SVN)

Admin List of installed packages and available packages (to check whether an update is available): php list ‘php*’ Upgrade a package yum upgrade php Install a package yum install php RapidSVN Install RapidSVN (find an rpm) yum install meld [this … Continue reading

Posted in Redhat / CentOS | Tagged | Leave a comment

Linux Bash – Find Out Info About Your CPU

less /proc/cpuinfo uname -a x86_64 GNU/Linux indicates I have 64bit kernel running. If you use see i386/i486/i586/i686 it is a 32 bit kernel. grep flags /proc/cpuinfo * lm means Long mode – 64 bit CPU * Real mode 16 bit … Continue reading

Posted in Linux Command Line | Leave a comment

Linux Bash – Change The Prompt

To print your current prompt: echo $PS1 To set a new prompt: PS1=”[\u@\h \w]\$” That’s very useful as it display the absolute working directory path If you want to keep this change append the previous line to this file (using … Continue reading

Posted in Linux Command Line | Leave a comment

Linux Bash – Colour the Name of Directory and Files

alias ls=’ls –color’ If you want to make this changes permanent, append the line to the file: /home/username/.bashrc

Posted in Linux Command Line | Leave a comment