الجمعة، 4 مايو 2012

جميع أوامر apt-get




Introduction to APT

"In the beginning there was the .tar.gz. Users had to compile each program that they wanted to use on their GNU/Linux systems. When Debian was created, it was deemed necessary that the system include a method of managing the packages installed on the machine. The name dpkg was given to this system. Thus the famous 'package' first came into being on GNU/Linux, a while before Red Hat decided to create their own 'rpm' system.
A new dilemma quickly took hold of the minds of the makers of GNU/Linux. They needed a rapid, practical, and efficient way to install packages that would manage dependencies automatically and take care of their configuration files while upgrading. Here again, Debian led the way and gave birth to APT, the Advanced Packaging Tool, which has since been ported by Conectiva for use with rpm and has been adopted by some other distributions."
  • -- From Debian APT HOWTO

Commands

IconsPage/info.png All of these commands must be run as root or with superuser privileges, see sudo for more information. Replace <package_name> with the name of the package you are attempting to install.
  • IconsPage/example.png
    sudo apt-get install ubuntu-desktop 

Installation commands

  • apt-get install <package_name> 
    This command installs a new package.
  • apt-get build-dep <package_name> 
    This command searches the repositories and installs the build dependencies for <package_name>. If the package is not in the repositories it will return an error.
  • aptitude install <package_name>
    Aptitude is an Ncurses viewer of packages installed or available. Aptitude can be used from the command line in a similar way to apt-get. See man aptitude for more information.
  • APT and aptitude will accept multiple package names as a space delimited list. For example:
    apt-get install <package1_name> <package2_name> <package3_name>
    IconsPage/IconNote.png Use the -s flag to simulate an action."sudo apt-get -s install <package_name>" will simulate installing the package showing you what packages will be installed and configured.

auto-apt

  • auto-apt run <command_string>
    When invoked, the auto-apt command automatically installs packages upon missing file access. If a program tries to access a file known to belong in an uninstalled package, auto-apt will install that package using apt-get. This feature requires apt and sudo to work.
  • Auto-apt keeps databases which need to be kept up-to-date in order for it to be effective. This is achieved by calling the commands auto-apt update, auto-apt updatedb and auto-apt update-local.
  • Usage example
    • IconsPage/example.png You're compiling a program and, all of a sudden, there's an error because it needs a file you don't have. The program auto-apt asks you to install packages if they're needed, stopping the relevant process and continuing once the package is installed.
           # auto-apt run ./configure
      It will then ask to install the needed packages and call apt-get automatically. If you're running X, a graphical interface will replace the default text interface.

Maintenance commands

  • apt-get update
    Run this command after changing /etc/apt/sources.list or /etc/apt/preferences . For information regarding /etc/apt/preferences, see PinningHowto. Run this command periodically to make sure your source list is up-to-date. This is the equivalent of "Reload" in Synaptic or "Fetch updates" in Adept.
  • apt-get upgrade
    This command upgrades all installed packages. This is the equivalent of "Mark all upgrades" in Synaptic.
  • apt-get dist-upgrade
    The same as the above, except add the "smart upgrade" checkbox. It tells APT to use "smart" conflict resolution system, and it will attempt to upgrade the most important packages at the expense of less important ones if necessary.
    IconsPage/IconNote.png "apt-get dist-upgrade" does not perform distribution upgrade. See [http://www.ubuntu.com/getubuntu/upgrading upgrading] for more information.
  • apt-get check
    This command is a diagnostic tool. It does an update of the package lists and checks for broken dependencies.
  • apt-get -f install
    This command does the same thing as Edit->Fix Broken Packages in Synaptic. Do this if you get complaints about packages with "unmet dependences".
  • apt-get autoclean
    This command removes .deb files for packages that are no longer installed on your system. Depending on your installation habits, removing these files from /var/cache/apt/archives may regain a significant amount of diskspace.
  • apt-get clean
    The same as above, except it removes all packages from the package cache. This may not be desirable if you have a slow internet connection, since it will cause you to redownload any packages you need to install a program.
    • The package cache is in /var/cache/apt/archives . The command
      du -sh /var/cache/apt/archives
      will tell you how much space cached packages are consuming.
  • dpkg-reconfigure <package_name>
    Reconfigure the named package. With many packages, you’ll be prompted with some configuration questions you may not have known were there.
    • IconsPage/example.png For example:
      dpkg-reconfigure fontconfig-config
      will present you with a "wizard" on configuring fonts in Ubuntu.
  • echo "<package_name> hold" | dpkg --set-selections
    This command places the desired package on hold. This is the same as Synaptic's Package->Lock Version.
    • IconsPage/info.png This command may have the unintended side effect of preventing upgrades to packages that depend on updated versions of the pinned package. apt-get dist-upgrade will override this, but will warn you first. If you want to use this command with sudo, you need to use echo "<package_name> hold" | sudo dpkg --set-selections not sudo echo "<package_name> hold" | dpkg --set-selections.
  • echo "<package_name> install" | dpkg --set-selections
    This command removes the "hold" or "locked package" state set by the above command. The note above about sudo usage applies to this command.

Removal commands

  • apt-get remove <package_name>
    This command removes an installed package, leaving configuration files intact.
  • apt-get purge <package_name>
    This command completely removes a package and the associated configuration files. Configuration files residing in ~ are not usually affected by this command.
    • + operator
      • IconsPage/example.png If you want to remove package1 and install package2 in one step:
        apt-get purge remove <package1> <package2>+
        .
  • apt-get autoremove
    This command removes packages that were installed by other packages and are no longer needed.
    • apt-get autoremove <package_name>
      This command removes an installed package and dependencies.
  • While there is no built in way to remove all of your configuration information from your removed packages you can remove all configuration data from every removed package with the following command.
    dpkg -l | grep '^rc' | awk '{print $2}' | xargs dpkg --purge

Search commands

  • apt-cache search <search_term>
    This command will find packages that include <search_term>.
  • dpkg -l *<search_term>*
    This will find packages whose names contain <search_term>. Similar to apt-cache search, but also shows whether a package is installed on your system by marking it with ii (installed) and un (not installed).
  • apt-cache show <package_name>
    This command shows the description of package <package_name> and other relevant information including version, size, dependencies and conflicts.
  • dpkg --print-avail <package_name>
    This command is similar to "apt-cache show".
  • dpkg -L <package_name>
    This command will list files in package <package_name>.
  • dpkg -c foo.deb
    This command lists files in the package "foo.deb". Note that foo.deb is a pathname. Use this command on .deb packages that you have manually downloaded.
  • dlocate <package_name>
    This command determines which installed package owns <package_name>. It shows files from installed packages that match <package_name>, with the name of the package they came from. Consider this to be a "reverse lookup" utility.
    IconsPage/info.png In order to use this command, the package dlocate must be installed on your system.
  • dpkg -S <package_name>
    This command does the same as dlocate, but does not require the installation of any additional packages. It is slower than dlocate but has the advantage of being installed by default on all Debian and Ubuntu systems.
  • apt-file search <package_name>
    This command acts like dlocate and dpkg -S, but searches all available packages. It answers the question, "what package provides this file?".
    • apt-file needs to be updated regularly like apt-get. Use the command:
      apt-file update
    IconsPage/info.png In order to use this command, the package apt-file must be installed on your system.
  • apt-cache pkgnames
    This command provides a listing of every package in the system
  • A general note on searching: If searching for a generates a list that is too long, you can filter your results by piping them through the command grep. Examples:
    • apt-cache search filename | grep -w filename
      will show only the files that contain filename as a whole word
    • dpkg -L package | grep /usr/bin 
      will list files located in the directory /usr/bin, useful if you're looking for a particular executable.
For more information on apt-get, apt-cache and dpkg consult their manual pages by using the man command. These manuals will provide a wider scope of information in addition to all of the options that you can use with each program.
  • IconsPage/example.png Example:
    man apt-get
    .

Typical usage example

I want to feel the wind in my hair, I want the adrenaline of speed. So lets install a racing game. But what racing games are available?
apt-cache search racing game
It gives me a lot of answers. I see a game named "torcs". Lets get some more information on this game.
apt-cache show torcs
Hmmm... it seems interesting. But is this game not already installed on my computer? And what is the available version? Is it from Universe or main?
apt-cache policy torcs
Ok, so now, let's install it!
apt-get install torcs
What is the command I must type in the console to launch this game? In this example, it's straightforward ("torcs"), but that's not always the case. One way of finding the name of the binary is to look at what files the package has installed in "/usr/bin". For games, the binary will be in "/usr/games". For administrative programs, it's in "/usr/sbin".
dpkg -L torcs | grep /usr/games/
The first part of the command display all files installed by the package "torcs" (try it). With the second part, we ask to only display lines containing "/usr/games/".
Hmmm, that game is cool. Maybe there are some extra tracks?
apt-cache search torcs
But I'm running out of space. I will delete the apt cache!
apt-get clean
Oh no, my mother asked me to remove all games from this computer. But I want to keep the configuration files so I can simply re-install it later.
apt-get remove torcs
If I want to also remove config files :
apt-get purge torcs

Setting up apt-get to use a http-proxy

These are three methods of using apt-get with a http-proxy.

Temporary proxy session

This is a temporary method that you can manually use each time you want to use apt-get through a http-proxy. This method is useful if you only want to temporarily use a http-proxy.
Enter this line in the terminal prior to using apt-get (substitute your details for yourproxyaddress and proxyport).
export http_proxy=http://yourproxyaddress:proxyport
If you normally use sudo to run apt-get you will need to login as root first for this to work unless you also add some explicit environment settings to /etc/sudoers, e.g.
Defaults env_keep = "http_proxy https_proxy ftp_proxy"

APT configuration file method

This method uses the apt.conf file which is found in your /etc/apt/ directory. This method is useful if you only want apt-get (and not other applications) to use a http-proxy permanently.
IconsPage/info.png On some installations there will be no apt-conf file set up. This procedure will either edit an existing apt-conf file or create a new apt-conf file.
gksudo gedit /etc/apt/apt.conf
Add this line to your /etc/apt/apt.conf file (substitute your details for yourproxyaddress and proxyport).
Acquire::http::Proxy "http://yourproxyaddress:proxyport";
Save the apt.conf file.

BASH rc method

This method adds a two lines to your .bashrc file in your $HOME directory. This method is useful if you would like apt-get and other applications for instance wget, to use a http-proxy.
gedit ~/.bashrc
Add these lines to the bottom of your ~/.bashrc file (substitute your details for yourproxyaddress and proxyport)
http_proxy=http://yourproxyaddress:proxyport
export http_proxy
Save the file. Close your terminal window and then open another terminal window or source the ~/.bashrc file:
source ~/.bashrc
Test your proxy with sudo apt-get update and whatever networking tool you desire. You can use firestarter or conky to see active connections.
If you make a mistake and go back to edit the file again, you can close the terminal and reopen it or you can source ~/.bashrc as shown above.
source ~/.bashrc

How to login a proxy user

If you need to login to the Proxy server this can be achieved in most cases by using the following layout in specifying the proxy address in http-proxy. (substitute your details for username, password, yourproxyaddress and proxyport)
 
http_proxy=http://username:password@yourproxyaddress:proxyport
 
 
المصدر موقع

http://www.ubuntu.com/

الثلاثاء، 24 أبريل 2012

جميع الخطوط العربيه للآيفون بدون برامج

بسم الله الرحمن الرحيم

أحبتي في الله .. اقدم لكم جميع الخطوط العربيه

وبدون برامج الخط اللي تنزلها من السيديا باذن الله

فقط يلزمك تحمل الخطوط من هنا


مع الخطوط تجد مستند نص كاتب فيه وين تنقل الخطوط

ولتحميل برنامج i-FunBox لتصفح الايفون من الكمبيوتر
إضغط هنا 

بالتوفيق للجميع ودعواتكم لي 


Twitter@Faisal_4_Cydia

الأربعاء، 18 أبريل 2012

تعريب الوآتسآب WhatsApp

السلام عليكم ورحمة الله وبركاته

اقدم لكم هذا التعريب الجميل للواتساب


بعد فك الضغط راح تحصل مجلد باسم Arabic.lproj

انقله لهالامتداد

var/mobile/Applications/WhatsApp
وخش مجلد WhatsApp.app والصقه

وبكذا تم تعريبه بكل سهوله 



الثلاثاء، 17 أبريل 2012

برنامج Dock : باتش التفعيل+التعريب

بسم الله الرحمن الرحيم

السلام عليكم ورحمة الله وبركاته

أحب اقدم لكم هذا البرنامج المميز جدا مع باتش التفعيل
لأنه بكل السورسات مستحيل تحصله أكثر من ثلاث أيام
وايضا سويت له تعريب رغم انه سهل جدا ولكن علشان تزيد حلاوته

Dock


أولا يتم تحميل برنامج Dock من السورس التالي :
repo.insanelyi.com/

ثم قم بتحميل الباتش (الكيجن) والتعريب


طريقة التفعيل بسيطه جدا افتح البرنامج بالأيفون راح تجيك ثلاث خيارات
اختار منها Activation

 راح يعطيك سريال للجهاز
افتح الكيجن وحط السريال تبع جهازك وراح يعطيك رقم التفعيل
سجله بالأيفون ويتم التفعيل للأبد

طبعا اذا حفظت الرقم ماراح تحتاج للباتش مره ثانيه لأنه خاص بجهازك فقط


بعد كذا انسخ التعريب للامتداد

 var/stash/Applications/Dock.app

وبكذا تم تعريب البرنامج


صورة البرنامج


انتهى




لمتابعتي على تويتر

Twitter@Faisal_4_Cydia






السبت، 14 أبريل 2012

تعريب احترافي للسيديا

السلام عليكم ورحمة الله وبركاته

أحب اقدم لكم هذا التعريب الإحترافي للسيديا وبإمكانك تضيفه يدويا بدون اضافة أي شي من السيديا

أولا تحميل ملف التعريب


ثانيا بعد فك الضغط عن الملف راح تحصل مجلدين
لك الحريه بالإختيار
المجلد الأول بإسم :
Arabic.lproj

ماعليك الا انك تنقله لهالامتداد
var/stash/Cydia.app
وتلصقه

المجلد الثاني بإسم :
English.lproj
هذا تحصل داخله ملفين انسخهن وروح لنفس الإمتداد
var/stash/Cydia.app
 وخش المجلد اللي بنفس الاسم English.lproj
ولصق ثم استبدال ... والطريقه هذي اللي انا مسويها

وهذي اترككم مع صور التعريب















تابعن على تويتر

Twitter@Faisal_4_Cydia

نغمة البلاك بيري للواتس أب بدون برامج



بسم الله الرحمن الرحيم

السلام عليكم ورحمة الله وبركاته

احب اقدم لكم طريقة وضع نغمة البلاك بيري للواتس أب الأساسي

أولا تحميل النغمه




















بعد كذا نروح لإمتداد البرامج
var/mobile/Applications

وندور مجلد الواتس أب ونخش عليه .. بعد كذا تخش المجلد التالي WhatsApp.app كما بالصورة




بعد مانخش المجلد الموضخ بالصوره السابقه نضغط تحرير ثم لصق

راح يقول لك انه النغمه موجوده اضغط استبدال كما بالصوره التاليه



انتهى
ملاحظه / بامكانك تحميلها من السيديا
من السورس
cydia.myrepospace.com/alshmmri
وتفعلها من الوينتربورد
كأنك تفعل ثيم

تابعن على تويتر

الجمعة، 13 أبريل 2012

السورسات المتوافقة مع iOS 5 - 2012

1 Hackulo Cydia Source/Repo Hackulo Source / Repo
http://cydia.hackulo.us
- First source to install after // 
- Main Apps: Installous and AppSync []. You will need to install Installous ONLY; AppSync will be automatically installed.
2 Insanelyi Cydia Source/Repo Insanelyi
http://repo.insanelyi.com
- Best source for cracked Cydia apps and Cydia (Cydia Store apps).
- Main Apps: Action Menu Plus Pack, AndriodLock XT, Barrel, biteSMS, frash, Graviboard, Gridlock, iAcces, , Infiniboard, Infinidock, Infinifolders, Lockinfo, Masks, , My Wi, SleepFX, YourTube 2 and many more.
- Excellent source for cracked Cydia themes
- Good source for games DLC and cheats
3 HackYouriPhone Cydia Source/Repo HackYouriPhone Source
http://repo.hackyouriphone.org
- Best source for cracked and (Cydia Store themes)
- Main Themes: Amplified HD, , Boxor HD – Ceramic White, blAze HD/iPad, , Glass Orb, iFlat, iFlat4 HD iPad, iNitsua Z SD/HD/iPad, , inPulse HD/SD, Kryptonite, LiveOS, , Prestige-HD/SD, , Revolve HD/SD, SBHD, and many more
- Good source for games DLC and cheats.
- Excellent source for cydia apps/tweaks as well.
4 SinfuliPhone Cydia Source/Repo SinfuliPhone Source
http://sinfuliphonerepo.com
- Excellent source for free Cydia apps/themes: e.g. AndroidLock, Attachment Saver, FaceBreak, GameBoy emulator, iBlueNova, iRealSMS, My3G, MyWi, and NES emulator.
- May cause Cydia loading errors
5 xSellize Cydia Source/Repo xSellize Source / Repo
http://cydia.xsellize.com
- Excellent source for cracked Cydia Store apps/themes: e.g. Cycorder, Cyntact, CLASSified HD, FBUploader, , , Speed Intensifier and many more.
- May cause Cydia loading errors
6 iAP Cracker Cydia Source/Repo Official Repo/Source
http://cydia.myrepospace.com/urus
iAP Cracker: Great app cracks inApp Purchases and make it Free.
Examples for free inApp Purchases: Angry Birds (Mighty Eagle), Asphalt 6: Adrenaline, Jetpack Joyride, Line Birds, Plants vs Zombies and Tiny Tower.. .
7 BiteYourApple Cydia Source/Repo BYA (BiteYourApple)
http://repo.biteyourapple.net
- Excellent Italian source for Cydia apps/themes, e.g. Full Screen for Safari, GroupSMS,Home Page in Safari and Wifi Sync.
8 51iPA Cydia Source/Repo 51iPA Source
http://cydia.51ipa.com
- Chinese source, known as the best games DLC/Cheats worldwide.
9 iHackstore Cydia Source/Repo iHackstore Repo/Source
http://ihackstore.com/repo
- Good source for cracked apps/themes
10 TheiPhoneSpot Cydia Source/Repo TheiPhoneSpot Repo/Source
http://apt.theiphonespotrepo.net
- New source: Cydia apps and Cydia themes.

الأربعاء، 11 أبريل 2012

البرنامج البديل للايتونز 91手机助手

السلام عليكم ورحمة الله وبركاته

أحب اقدم هالبرنامج الأكثر من رائع

برنامج صيني لقيته بالصدفه

91手机助手

وتنزيله يكون عن طريق برنامج معروف اسمه

iPhone PC Suite

او عن طريق برنامج

91assistant

ولتحميله على هالرابط من موقعه الرسمي


وبعد بحث طويل حصلت موضوع واحد شارح هالبرنامج ولكن للاسف انه قديم
وطريقة الاتصال متغيره واستفدت منه تعريب البرنامج اللي تثبيته بالكمبيوتر
ومن هنا تحمل التعريب


فك الضغط عن التعريب وانقل الملف لهذا المسار بالكمبيوتر

C:\Program Files\NetDragon\91 Mobile\iPhone\LangPack


بعد كذا قفل البرنامج وارجع افتحه




راح يعيد التشغيل من نفسه ويتحول عربي

المهم له طريقتين للاتصال والافضل كبدايه انك توصله باليو اس بي

علشان ينزل لك برنامج بالايفون اسمه بالصيني  91手机助手 

وطبعا حاولت تعريب البرنامج وجلست يومين وبالاخير طلع لي حقوق الملف ماتسمح

عموما القوائم الاساسيه بالبرنامج الخاص بالايفون صارت بالانجليزي وهذا شي حلو

بامكانكم تستمتعون بخصائصه الكثييييره جدا والتي لايسع شرحها

اذكر منها

1- (الصور) : نقل الصور من الايفون الى الكمبيوتر والعكس
2- (ايبود) : نقل ملفات الفيديو والصوت من الايفون الى الكمبيوتر والعكس مع امكانية تعديل معلوماتها واضافة صوره واجهه لملفات الصوت والفيديو
3- (التقويم) اضافة مواعيد او تعديلها او حذفها ومزامنتها مع الايفون وامكانية الجلب او التصدير من والى الاوتلوك و v.calandar
4- ( الارقام) : اضافة ارقام اتصال او تعديلها او حذفها ومزامنتها مع الايفون وامكانية الجلب او التصدير من والى الاوتلوك و v.card
5- ( إس إم إس) : عرض الرسائل او الرد او حذفها ومزامنتها مع الايفون وامكانية تصدير الرسائل الى ملف اكسيل
6- (ملاحظات) : عرض الملاحظات او اضافة ملاحظه او حذفها ومزامنتها مع الايفون وامكانية تصدير الملاحظات الى ملف اكسيل
7- ( الكتاب الالكتروني) تحويل ملفات txt, htm, umd الى كتب الكترونيه حيث تستطيع عرضها بالايفون ببرنامج Ebook
8- (المكالمات) : عرض سجل المكالمات الصادره والوارده والتي لم يتم الرد عليها ومدتها بالدقائق مع امكانية تصديرها الى ملف اكسيل او مستند نصي
9- (إس إم إس شات) استقبال وارسال رسائل على شكل شات
10- (سفاري) : عرض مفضلة متصفح سفاري الايفون مع امكانية اضافه او تعديل او الترتيب او النقل من الايفون الى مفضلة IE والعكس
11- (البرامج) : اضافة او ازالة برامج بصيغة pxl
12- (ادارة الملفات) : يمكنك من تصفح ملفات ومجلدات الايفون او اضافة مجلد او حذفه
**والجميل (My Mobile Disk) حيث يجعل من الايفون USB flash لتحميل ملفات ومجلداتك
**والرائع تعديل التصاريح للمفات (يغنيك عن استخدام برنامج WinSCP)
13- (النظام) : وفيه عمل باكب لبيانات الايفون واستعادتها (يمكن اضافة مجلدات وملفات حسب الحاجه)
14- (نغمه . ثيم) :
a- (الصوت) يمكنك من تبديل النغمات الاساسيه للايفون
b- (النغمات) يمكنك من اضافة نغمات او تعديل اسمها او خذفها
c- (الثيمات) يمكنك من اضافة ثيمات سمربورد او تعديل اسمها او خذفها مع امكانية اختيار الثيم الحالي على الايفون
d- (خلفيات) يمكنك من اضافة خلفيات الايفون او تعديل اسمها او خذفها
e- (المنبه) يمكنك من اضافة منبه او تعديله او حذفه مع مزامنته مع الايفون
f- (نغمتي او تكوين نغمه) يمكنك من تكوين نغمه من اي ملف صوتي
15- (إغلاق الايفون) : يمكنك من عمل اعادة تشغيل للايفون او اغلاقه

مقتبسه طبعا

أما بالنسبه للاتصال مابين البرنامج بالايفون والبرنامج باللاب توب بالطريقه الجديده هي كالتالي
 بالنسبه لليو اس بي راح يتصل تلقائي لكن هنا بشرح الاتصال بدون توصيل اليو اس بي
بل عن طريق الواي فاي
افتح البرنامج بالكمبيوتر شيل وصلة اليو اس بي واختار الاتصال عن طريق الواي فاي



 


الان افتح البرنامج اللي بالايفون وطبق التالي





مثل ماتلاحظ اعطاك رقم .. الرقم اكتبه بنفس البرنامج بالكمبيوتر




بعد كذا راح يقول لك انه تم الاتصال



ولقطع الاتصال بالواي فاي من البرنامج اللي بالايفون نروح لنفس اللي شرحته فوق
ونضغط على Close link


الى هنا اختم الشرح البسيط عنه
وان شاء الله اشوف له شروحات افضل قريبا بما انه رأى النور ههههه

تحياتي ولمتابعتي بتويتر

Twitter@Faisal_4_Cydia