mp3-Bazar A another multimedia engine
 Persian Community Media Persia Media Blog

Archive for the 'Linux' Category

Mercurial

Install on Ubuntu and Debian apt-get install mercurial

The actual version information: hg version
Create a new repository in the given directory: hg help init
hg init [-e CMD] [--remotecmd CMD] [DEST]

Making a local copy of a repository: hg clone <directory>

Through history: hg log or glog
Viewing specific revisions use the -r (or --rev) option
hg log -r 024584ws345
hg log -r q272e0d5w32 -r 0272e0d5w324

More detailed information add -v (or --verbose) option
To see content of a change add the -p (or --patch) option

To display the change set: hg tip -vp
pull the changes: hg in, hg pull
update the working copy: hg up

merging the changes

incoming change: hg in -v
outgoing change: hg out -v
hg merge -r default (tip)

Clean up the Ubuntu

 

Install the Debian menu to make all installed applications

Missing Icons & Fix Broken Icons

sudo apt-get update
sudo apt-get install menu menu-xdg
update-menus

 

Keeping Ubuntu clean

Install deborphan with command:
sudo apt-get install deborphan

To delete unnecessary libraries just execute:
sudo deborphan | xargs sudo apt-get -y remove --purge

To delete unnecessary data

packages use command:
sudo deborphan --guess-data | xargs sudo apt-get -y remove --purge

To see all

packages which aren’t required by any others use command
deborphan --guess-all

There is another tool to delete orphaned

packages, it’s  GtkOrpha:
sudo apt-get install gtkorphan

Once it’s installed go to System –> Administration –> Remove Orphaned

Packages, enter your password and proceed with cleaning up.

Another nice tip is to clean partial and orphaned

packages by commands:
sudo apt-get autoclean
sudo apt-get autoremove

increase the screen resolutions


Enter in root terminal:
$ sudo dpkg-reconfigure -phigh xserver-xorg

Select your video card by scroll up or down keys on your keyboard) and then hit enter.
the next select the resolutions that you would like to be available for Ubuntu by using the arrow keys to scroll up and down, and the Space Bar to select them.

Restart X by clicking Control+Alt+Delete (backspace). to set up new resolutions.

This starts the Xorg config process.

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup
sudo dpkg-reconfigure xserver-xorg
sudo xinit — :2

Look for errors:

tail -f /var/log/Xorg.0.log

Restart all servers by bouncing XDM (or gdm or kdm):

sudo /etc/init.d/xdm start

This starts a new X server — usually on tty8 or tty9 (CTRL-ALT-F8). You can go back to the original X server by pressing CTRL-ALT-F7.

Domain and Whois lookup

 

We can save your money, time, and effort on getting your website up and running.
We work mainly with small sized businesses who would like to use
their website to effectively market their products and services.

Domain and Whois lookup
Domain name:
all
.ir
.com
.net
.org
.info

 

Find who owns a host. WHOIS lookup:

.

 

Find the host of a chosen IP address



With our high level of experience with developing PHP/MySQL applications
we can develop any type of web based application that you can think of.


We can do also develop any of the following types of websites:


E-Commerce Secure Shopping Cart
CUSTOMER SUPPORT:
Support Ticket Systems
Product Catalogues


PORTAL SYSTEMS
IMAGE GALLERIES
Discussion/Message Boards & Blogs


CONTENT MANAGEMENT:
Joomla Installations
Wordpress Installations and more…


Do contact us for a discussion of your requirements.

 

Content Management
Image Galleries
Joomla
Mambo
php-Nuke
Drupal
PHP-Fusion
e107
phpWebsite
Gallery2
Coppermine
SimpleViewer
Plogger
ZenPhoto
Singapore
IPG
Weblogs
Discussion Boards
WordPress
b2evolution
php-BB
SMF
Phorum

E-Commerce
Chat
ZenCart
osCommerce
CubeCart
phpOpenChat
phpMyChat
Phorum
Groupware
 
RoundCube
IlohaMail

nmsGuestbook
Gbook

WebCalendar
dotProject
ExtCalendar
netOffice
php-Projekt

هر کجای دنیا نصب هرگونه برنامه آماده روی سایت شما از قبيل:
تالار گفتگو PHPBBوبلاگ Word Press
سیستم مدیریت (CMS) فارسی جمله Joomlaسیستم مدیریت (CMS) فارسی مامبو Mambo Oscommerce, ZenCart ارائه كاملترين فروشگاه اينترنتي
Nukeطراحي و توسعه سيستمهاي مخصوص مديريت ارتباط با مشتريان (Customer Relationship Management System)
طراحي و توسعه برنامه هاي كاربردي تحت ويندوز مبتني بر بانك اطلاعاتي Ms SQL
خدمات طراحي آرم ، لوگو ، بروشور ، كارتالوگ
ارائه راهكارهاي تجارت الكترونيك (E-Commerce)
ارائه راهكارهاي مولتي مديا (Multi Media Soltions)
طراحي و توسعه بانكهاي اطلاعاتي تحت وب
ثبت وب سایت در موتورهای جستجو گوگل، یاهو

برای کسب اطلاعات بیشترمی توانید با ای میل host@forgani.com تماس حاصل نمایید.
سرویس مناسب برای اشخاص و موسسات کوچک
وب سايت حرفه اي همراه با آخرين تكنولوژي طراحي صفحات وب
مناسب برای شرکتهای کوچک و متوسط
طراحي وثبت سايت از ما-پيشنهاد قيمت ازشما

Linux Tips




The best ways to run all files from a folder in SqlPLus
Create a file and store all of the file names from the folder:
ls -l > list.sql
Edit and set @ before each file name
vi list.sql
1,$s/^/@/

sqlpus ich/foo@mydb
@list.sql

Convert latin1 to UTF-8 in MySQL
$ mysqldump -h localhost –user=myName -p –default-character-set=latin1 -c \
–insert-ignore –skip-set-charset dbname > dump.sql
$ iconv -f ISO-8859-1 -t UTF-8 dump.sql > dump_utf8.sql

Find out which charset is my file

$ iconv -f 8859-1 -t utf-8 FILE1> FILE2
$ iconv -f utf-8 -t 8859-1 FILE2 > FILE3
$ diff FILE1 FILE3

apt-get –purge remove NameOfPackage
apt-get install –reinstall NameOfPackage
z.B:
apt-get –purge –reinstall install apache2.2-common apache2
apt-get install –reinstall libapache2-mod-php5 php5-cli php5-common php5-cgi

dpkg-reconfigure xserver-xorg
update-alternative -config x-session-manager

lpstat -t
cancel
lpadmin -p lj -E

PSI=’\u@\h:\n$’

wget -c –user=user –password=passwd http://hostname…

find -name ‘*.[ch]‘ | xargs grep -E ‘expr’
find -type f -print0 | xargs -r0 grep -F ‘example’

find . -exec grep “use GD” ‘{}’ /dev/null \; -print
find . -name “*.pl” -type f -exec grep “use GD” ‘{}’ /dev/null \; -print

Only get diffs. Do multiple times for troublesome downloads:
rsync -P rsync://rsync.server.com/path/to/file file

Next Page »