فدک - دبیان - آموزش خط فرمان
آخرین تغییرات : 2017-06-14تعداد بازدید : 253

آموزش خط فرمان


  1. هارد
  2. تاچ پد
  • احتمالا برای رفع ممنوعیت امنیتی
  • تفاوت aptitude و apt-get

  • هارد

    https://askubuntu.com/questions/333287/external-hard-disk-read-only

    تاچ پد

    apt-get install xserver-xorg-input-synaptics

    اجرا برای هر بار:

    synclient TapButton1=1 TapButton2=3 TapButton3=2

    اجرای خودکار:

    [email protected]:/home/mysterious# mkdir /etc/X11/xorg.conf.d/
    [email protected]:/home/mysterious# cat > /etc/X11/xorg.conf.d/synaptics.conf

     

     

     

    /etc/X11/xorg.conf.d/synaptics.conf

    محتوای فایل:

    Section "InputClass"
            Identifier      "Touchpad"                      # required
            MatchIsTouchpad "yes"                           # required
            Driver          "synaptics"                     # required
            Option          "TapButton1"            "1"
            Option          "TapButton3"            "2"     # multitouch
            Option          "TapButton2"            "3"     # multitouch
    EndSection

     

     

     

    در صورت نیاز به جستجوی تاچ پد

    egrep -i 'synap|alps|etps|elan' /proc/bus/input/devices

     

     

     

    akonadictl start

     

    apt-get install mariadb-server mariadb-client

    apt-get install apache2 mysql-server

    apt-get install php php-pear php-mysql

     

     

     

     

     

    gnome-contacts

     

    apt-show-versions virtualbox

    apt-cache search virtualbox

     

     

    ویرچوال

    apt-get install dkms

     

    نمایش جزئیات سی پی یو

    cat /proc/cpuinfo

     

     

     

     مواردی که نیاز داریم

     

    توضیح فرمان
    برای نمایش جایگاه که هستیم  pwd
    برای خارج کردن امن یک قطعه سخت افزار  udisks --detach $drive
    برای خروج کردن یک درایو  udisks --unmount $partition
       cd
    برگشت به دایرکتوری قبل  cd ./
    برگشت به دایرکتوری روت  cd /
    تاریخچه دستورات خط فرمان اجرا شده توسط کاربرجاری  history
     

    برای نمایش محتویات یک پوشه

     ls
     

    برای نمایش محتویات یک پوشه

     dir
    ساخت فایل و ذخیره متن مورد نظر در آن فایل echo 'avatar' >> MakeFile.websvc
    ذخیره متن مورد نظر در آن فایل sed -i "15i avatar" Makefile.txt
       
       
     برای نمایش ویرایش لینوکس  lsb_release -a
    برنامه‎های پیش فرض در گنوم
    exo-preferred-applications

    بهتر است فرامین خط فرمان را به ترتیب اولویت به حافظه سپرد بنابراین آنها را اینجا بیان خواهیم داشت:

    1. برای تغییررمز
    2. passwd

      برای نمایش برنامه‎هایی که هنگام لود شدن دبیان اجرا می‌شود

      rm -r folder

     chmod -R 777 *

     apt-get -f install

     apt-get update

     apt-get upgrade

     dpkg -i *

      ls /etc/init.d/

      gpasswd -a z storage

    fdisk -l
        2  mkdir /media/f/

        44  apt-get install network-manager
       45  apt-get install network-manager-gnome

         6  cat /media/f/lxde.txt
        7  nano /etc/apt/apt.conf

    reboot

     updare-alternative --config x-session-manager

    apt-get install xfce4-goodies

     

    http://linux.itpro.ir/articles/629/%D8%A2%D9%85%D9%88%D8%B2%D8%B4-%D9%84%DB%8C%D9%86%D9%88%DA%A9%D8%B3-%D8%B3%D8%B7%D8%AD-%D9%85%D9%82%D8%AF%D9%85%D8%A7%D8%AA%DB%8C-%D9%82%D8%B3%D9%85%D8%AA-%D8%B4%D8%B4%D9%85-%E2%80%93-%D8%A2%D8%B4%D9%86%D8%A7%DB%8C%DB%8C-%D8%A8%D8%A7-%D8%B3%D8%A7%D8%AE%D8%AA%D8%A7%D8%B1-%D9%84%DB%8C%D9%86%D9%88%DA%A9%D8%B3-%D9%88-%D8%AF%D8%B3%D8%AA%D9%88%D8%B1%D8%A7%D8%AA-%D9%85%D9%82%D8%AF%D9%85%D8%A7%D8%AA%DB%8C 

     

    احتمالا برای رفع ممنوعیت امنیتی

    I still believe its related to policykit. One needs to be running. When using gdm3, its probably starting it automatically, but not when you manually start. As a test:

    ps -ef | grep polkit

    ...or:

    ps -ef | grep policykit

     

     

     

     

    تفاوت aptitude و apt-get

    The most obvious difference is that aptitude provides a terminal menu interface (much like Synaptic in a terminal), whereas apt-get does not.

    Considering only the command-line interfaces of each, they are quite similar, and for the most part, it really doesn't matter which one you use. Recent versions of both will track which packages were manually installed, and which were installed as dependencies (and therefore eligible for automatic removal). In fact, I believe that even more recently, the two tools were updated to actually share the same database of manually vs automatically installed packages, so cases where you install something with apt-get and then aptitude wants to uninstall it are mostly a thing of the past.

    There are a few minor differences:

    • aptitude will automatically remove eligible packages, whereas apt-get requires a separate command to do so
    • The commands for upgrade vs. dist-upgrade have been renamed in aptitude to the probably more accurate names safe-upgrade and full-upgrade, respectively.
    • aptitude actually performs the functions of not just apt-get, but also some of its companion tools, such as apt-cache and apt-mark.
    • aptitude has a slightly different query syntax for searching (compared to apt-cache)
    • aptitude has the why and why-not commands to tell you which manually installed packages are preventing an action that you might want to take.
    • If the actions (installing, removing, updating packages) that you want to take cause conflicts, aptitude can suggest several potential resolutions. apt-get will just say "I'm sorry Dave, I can't allow you to do that."

    There are other small differences, but those are the most important ones that I can think of.

    In short, aptitude more properly belongs in the category with Synaptic and other higher-level package manager frontends. It just happens to also have a command-line interface that resembles apt-get.


     

    2000-2016 CMS Fadak. ||| Version : 4.2-b1 ||| This page was produced in : 0.002 Seconds