![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
大狗2017
爱生活,爱大狗。
展开
-
RPM usage
1. I want to install the xx.rpm. rpm -ivh xx.rpm i means intall, v means verbose, h means hash marks. 2. I want to upate the xx.rpm. rpm -Uvh xx.rpm U means update. 3. I want to query原创 2010-03-10 09:42:00 · 287 阅读 · 0 评论 -
vim for php
Put .vimrc into $HOME. The content of .vimrc is like this: set expandtab set shiftwidth=2 set softtabstop=2 set autoindent原创 2016-03-31 19:37:17 · 286 阅读 · 0 评论 -
Synchronise time with ntp server in Linux
sudo ntpdate -u time.nist.gov原创 2015-09-15 14:39:37 · 218 阅读 · 0 评论 -
install Apache on CentOS 7
sudo yum install httpdsudo systemctl start httpd.servicesudo systemctl enable httpd.servicefirewall-cmd --permanent --add-service http systemctl restart firewalld.service原创 2016-02-25 15:22:06 · 402 阅读 · 0 评论 -
How to create a new user and grant permissions on MySql
1.Login in: mysql -u root -p 2.create user: CREATE USER 'newuser' @ 'localhost' IDENTIFIED BY 'password'; 3.Grant GRANT ALL PRIVILEGES ON *.* TO 'newuser'@'localhost' 4.FLUSH PRIVILEGES;原创 2016-03-07 14:52:42 · 395 阅读 · 0 评论 -
how to view svn log recursively
svn log -r 1:HEAD svn log -r HEAD:1 svn log -r 13:BASE原创 2016-07-04 19:39:53 · 256 阅读 · 0 评论 -
how to import github Oauth token
composer config --global github-oauth.github.com原创 2016-08-10 16:59:16 · 827 阅读 · 0 评论 -
config a writable directory on apache
chcon -Rv --type httpd_sys_rw_content_t /var/www/html/mismatch/images/原创 2016-04-07 20:00:10 · 1041 阅读 · 0 评论 -
install composer for php 7 on CentOS 7
1. sudo yum install php70u-php-json 2. sudo yum install php70u-json 3.sudo curl -sS https://getcomposer.org/installer | php 4.sudo mv composer.phar /usr/local/bin/composer 5. sudo chmod a+x /usr/l原创 2016-08-09 16:30:28 · 1998 阅读 · 0 评论 -
The special grammar for PHP
1.variable variables $recipe = "spaghetti"; $$recipe = "& meatballs"; echo $recipe $spaghetti; echo $recipe ${$recipe}; The result of both is the string spaghetti & meat转载 2016-08-26 10:50:32 · 203 阅读 · 0 评论 -
install yii2 for php 5.4 on CentOS 7
1. curl -sS https://getcomposer.org/installer | php 2. sudo mv composer.phar /usr/local/bin/composer 3. check if php_mbstring installed using "php -m |grep mbstring", if not, install the module us原创 2016-08-12 20:25:30 · 917 阅读 · 0 评论 -
How to run arduino uno blink demo on Fedora 24?
1. Download the IDE from www.arduino.cc. 2. Extract the tar.gz file into a folder, and run ./install.sh 3. connect arduino board with USB cable. 3.1. run sudo ./arduino 4. Open原创 2016-12-21 12:26:32 · 333 阅读 · 0 评论 -
How to add network openconnect editor to fedora 25?
sudo dnf install NetworkManager-openconnect-gnome原创 2017-01-20 12:27:07 · 236 阅读 · 0 评论 -
How to remove unused kernel from fedora 25
1.0 rpm -qa kernel 1.1 sudo dnf remove kernel-4.9.3-200.fc25.x86_64 2.sudo rm -f /boot/vmlinuz-4.9.3-200.fc25.x86_64 /boot/initramfs-4.9.3-200.fc25.x86_64.img 3. sudo grub2-mkconfig -o /boot原创 2017-01-20 12:32:40 · 355 阅读 · 0 评论 -
How to install tftp-server on Fedora 25 workstation
1. sudo dnf install tftp-server 2.sudo systemctl start tftp.socket 3.sudo systemctl enable tftp.socket 4.sudo firewall-cmd --permanent --add-service=tftp 5.sudo firewall-cmd --reload原创 2017-02-20 18:03:02 · 348 阅读 · 0 评论 -
installing crosstool-ng on fedora25 , kernel 4.8.6, crosstool-ng 1.22.0
1. cd crosstool-ng ./configure --enable-local make make install 2. ./ct-ng menuconfig 3. ./ct-ng build replace the four files in crosstool-ng/.build/src/gcc-5.2.0/gcc/cp/, Make-la原创 2017-01-24 18:23:10 · 325 阅读 · 0 评论 -
install php
sudo yum install php php-mysql sudo systemctl restart httpd.service sudo firewall-cmd --permanent --zone=public --add-service=http sudo firewall-cmd --permanent --zone=public --add-servi原创 2016-02-25 20:00:20 · 294 阅读 · 0 评论 -
install mariedb
sudo yum install mariadb-server mariadb sudo systemctl start mariadb sudo mysql_secure_installation sudo systemctl enable mariadb.service原创 2016-02-25 17:20:16 · 335 阅读 · 0 评论 -
Linux kernel in a nutshell
1. config kernelmake configmake defconfig 2. config kernel by graphical modemake menuconfigmake gconfigmake xconfig 3. update kernelmake oldconfigmake silentoldconfig 4.back原创 2010-03-10 09:44:00 · 522 阅读 · 0 评论 -
Vim Key
1.Cursur movement: h j k l left down up right 0 $ 0 the start of line $ the end of line G the end of file gg the start of file2.search and replace /word downward search ?word f原创 2010-03-10 09:28:00 · 469 阅读 · 0 评论 -
tar usage
1 . compress $tar -czvf hello.tar.gz hello.c makefile 2.decompress $tar -xzvf hello.tar.gz 3. list $tar -tzvf hello.tar.gz原创 2010-03-16 13:32:00 · 315 阅读 · 0 评论 -
Bash-Beginnners-Guide chapter3
1.shell initilization files system wide configuration files /et/profile /etc/bashrc individual user configuration files ~/.bash_pro原创 2010-03-16 14:07:00 · 329 阅读 · 0 评论 -
cscope & ctags
#!/bin/shkernel_directory=/home/franky/linux/linux-2.6.25.14find $kernel_directory -name "*.c" -o -name "*.h" > cscope.filescscope -bkq ctags -L cscope.files原创 2010-03-16 20:34:00 · 379 阅读 · 0 评论 -
intro-linux chapter 2
1. execute the script with current shell progress$source example.sh or$. example.sh 2. execute the script with debug option$ bash -x example.sh or $set -x $./example.sh$set原创 2010-03-15 14:27:00 · 197 阅读 · 0 评论 -
fedora 12 yum config
1.install rpm fusion$su -c rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rp原创 2010-03-17 13:57:00 · 337 阅读 · 0 评论 -
fedora 12 keyboard shortcuts
1. lock the desktop ctrl+alt+l l means lock. 2. toggle hide/show the desktop ctrl+alt+d d means desktop原创 2010-03-18 11:30:00 · 248 阅读 · 0 评论 -
C editing with Vim HOWTO
2 moving around 2.1 w, e, b keystrokes 2.2 {, }, [[, ]] keystrokes 2.3 % keystroke 3 jumping to random positions in C files 3.1 ctags ctrl-] ct原创 2010-03-18 16:11:00 · 263 阅读 · 0 评论 -
yum usage
1. search package$yum search package2. install package$yum install package 3.update package$yum update package3.remove package$yum remove package原创 2010-03-17 14:19:00 · 250 阅读 · 0 评论 -
df
df stands for disk full or disk free.原创 2010-03-28 23:09:00 · 193 阅读 · 0 评论 -
Linus says: C++ is a horrible language.
From: Linus Torvalds linux-foundation.org> Subject: Re: [RFC] Convert builin-mailinfo.c to use The Better String Library. Newsgroups: gmane.comp.version-control.git Date: 2007-09-06 17:50:28 GMT转载 2015-02-13 18:11:39 · 588 阅读 · 0 评论 -
adt can not found in eclipse
In linux64 android environment, Eclipse prompted that adt could not be found. solution: sudo yum install libstdc++.i686 ncurses-libs.i686 zlib.i686原创 2015-07-14 17:21:37 · 311 阅读 · 0 评论 -
Root Privileges
gpasswd -a demo wheel原创 2016-03-02 18:03:51 · 670 阅读 · 0 评论 -
php can't connect to mysql with error 13
setsebool -P httpd_can_network_connect=1 will also be a helpful CLI command to many people visiting this question, as to allow mysql_connet() connections from within HTTP (Apache) requests to a rem转载 2016-03-07 14:57:54 · 274 阅读 · 0 评论 -
Things to do after install Fedora 25 workstation
1. Do system update sudo dnf update 2. added rpm-fusion repo sudo rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-25.noarch.rpm 3.Install VLC Media Player原创 2017-03-02 18:00:14 · 329 阅读 · 0 评论