bachpx195 / experience

kiến thức thì vô tận.
1 stars 0 forks source link

Linux mint #8

Closed bachpx195 closed 3 years ago

bachpx195 commented 8 years ago

http://xdata.vn/Ho-tro/c58-69/Huong-dan-cai-dat-tu-dien-Stardict-tren-Ubuntu.html

bachpx195 commented 8 years ago
  1. mở terminal ra
  2. gõ vào sudo gedit /etc/resolv.conf <-- xong rồi bấm enter
  3. nhập password root vào <-- xong rồi bấm enter
  4. sửa nội dung trong cái file nó mới open ra thành: Code:

nameserver 8.8.8.8 nameserver 8.8.4.4

  1. xong save lại rồi close ;)

chưa vào được thì restart firefox :eek:

bachpx195 commented 8 years ago

702 down vote accepted

Packages are manually installed via the dpkg command (Debian Package Management System). dpkg is the backend to commands like apt-get and aptitude, which in turn are the backend for GUI install apps like the Software Center and Synaptic.

Something along the lines of:

dpkg --> apt-get, aptitude --> Synaptic, Software Center

But of course the easiest ways to install a package would be, first, the GUI apps (Synaptic, Software Center, etc..), followed by the terminal commands apt-get and aptitude that add a very nice user friendly approach to the backend dpkg, including but not limited to packaged dependencies, control over what is installed, needs update, not installed, broken packages, etc.. Lastly the dpkg command which is the base for all of them.

Since dpkg is the base, you can use it to install packaged directly from the command line.

INSTALL A PACKAGE

sudo dpkg -i DEB_PACKAGE

For example if the package file is called askubuntu_2.0.deb then you should do sudo dpkg -i askubuntu_2.0.deb. If dpkg reports an error due to dependency problems, you can run sudo apt-get install -f to download the missing dependencies and configure everything. If that reports an error, you'll have to sort out the dependencies yourself by following for example How do I resolve unmet dependencies?.

REMOVE A PACKAGE

sudo dpkg -r PACKAGE_NAME

For example if the package is called askubuntu then you should do sudo dpkg -r askubuntu.

bachpx195 commented 8 years ago

Su dụng emas

Emacs has its own terminology for these concepts:

Common Name Common Key Emacs Name Emacs Key Cut C-x Kill C-w Copy C-c Kill-ring-save M-w Paste C-v Yank C-y — — Yank next M-y

bachpx195 commented 8 years ago

Su dụng emas

Emacs has its own terminology for these concepts:

Common Name Common Key Emacs Name Emacs Key Cut C-x Kill C-w Copy C-c Kill-ring-save M-w Paste C-v Yank C-y — — Yank next M-y

bachpx195 commented 8 years ago
Open your terminal and log as SU

Type in your terminal "gedit /opt/lampp/etc/httpd.conf" to open httpd.conf in your text editor

    delete "#" in front of "Include etc/extra/httpd-vhosts.conf" line

Type in your terminal "gedit /opt/lampp/etc/extra/httpd-vhosts.conf" to edit httpd-vhosts.conf

    add lines :

    <VirtualHost *:80>

    DocumentRoot /opt/lampp/htdocs

    ServerName localhost

    ServerAlias www.localhost

    </VirtualHost>

    <VirtualHost *:80>

    DocumentRoot /home/[YourCompName]/localhost2

    #some path of your new host

    ServerName localhost2

    #the name of your new host

    ServerAlias www.localhost2

    #alias of your new host

    </VirtualHost>

Type in your terminal "gedit /etc/hosts" to edit hosts

    add line :

    127.0.0.1 localhost2

    #127.0.0.1 Your new host name

Restart lampp by execute "/opt/lampp/lampp restart"

Now you have two virtual hosts in your computer. You can access it through url http://localhost and http://localhost2. In this case, the two virtual host has its own document root. The default http://localhost has document root in /opt/lampp/htdocs, while the http://localhost2 has document root in /home/[YourCompName]/localhost2.