Linux
文章平均质量分 75
老汉带你推推推
转了一圈,发现还是把笔记托管省心。。。自己搞有点儿累。。。。这就是让专业的人做专业的事儿。
就是广告TMD多了!!!
展开
-
ubuntu下简单的音乐播放器
0x0001 缘由想换个播放器0x0002 安装出处: http://wiki.ubuntu.org.cn/index.php?title=Audacious&variant=zh-cn sudo apt-get install audacious sudo apt-get install audacious-plugins audacious-plugins-extra audacious-p原创 2017-02-17 11:19:15 · 2270 阅读 · 0 评论 -
安装和使用virtualenv
安装 pip install virtualenv使用创建目录$ virtualenv show_buiding$ cd show_buiding/ start$ source bin/activatequit$ deactivate原创 2018-04-03 14:16:32 · 171 阅读 · 0 评论 -
nginx
install$sudo apt-get install nginxstart$sudo service nginx restart stop$sudo service nginx stoprestart$sudo service nginx restartConfig$ vim /etc/nginx/sites-avail...原创 2018-04-03 14:46:37 · 105 阅读 · 0 评论 -
[linux]常用命令
ln# ln [参数][源文件或目录][目标文件或目录] ln -s /Users/tomlucky/aScantrust/code/dow-rn-testing /Users/tomlucky/otherCode/iOS/react-st-consumer/android原创 2018-04-04 15:46:10 · 88 阅读 · 0 评论 -
[linux]terminal改变颜色,PS1的
格式\033[代码;前景;背景m代码 代码 意义 0 OFF 1 高亮显示 4 underline 5 闪烁 7 反白显示 8 不可见前景和背景 前景 背景 颜色 30 40 黑色 31 41 紅色 32 42 綠...原创 2018-04-17 16:34:38 · 935 阅读 · 0 评论 -
[linux]console下启用wifi
$sudo vim /etc/wpasupplicant/wpa_supplicant.conf//文件内容ctrl_interface=/var/run/wpa_supplicantap_scan=1network={ ssid="[your SSID name]" psk="[your WiFi password]" p原创 2018-09-01 14:02:09 · 1144 阅读 · 0 评论 -
[linux]删除gnome
sudo apt-get purge gnome-shellsudo apt-get purge gnome-themes*sudo apt-get remove gnome-panelsudo apt-get autoclean原创 2018-09-12 23:13:37 · 2462 阅读 · 0 评论 -
[树莓派]删除桌面,只保留命令行模式
https://raspberrypi.stackexchange.com/questions/4745/how-to-uninstall-x-server-and-desktop-manager-when-running-as-headless-serversudo apt-get remove --auto-remove --purge 'libx11-.*'sudo apt-get...原创 2018-09-12 23:22:21 · 3637 阅读 · 0 评论 -
[nmap]常用
1扫描带名字[tomlucky @ ~]# sudo nmap -sP 10.0.0.1/24Starting Nmap 7.50 ( https://nmap.org ) at 2018-09-13 23:37 CSTNmap scan report for 10.0.0.1Host is up (0.0023s latency).MAC Address: E4:F4:C6:1...原创 2018-09-14 10:35:11 · 174 阅读 · 0 评论 -
[nmap]nmap使用
1扫描当前局域网里使用的ipnmap -sP 10.0.0.1/24 #局域网内原创 2018-09-11 10:21:53 · 317 阅读 · 0 评论 -
ubuntu安装
# apt install python-pip #python 2# apt install python3-pip #python 3原创 2018-10-03 15:27:26 · 118 阅读 · 0 评论 -
[django]django+nginx+gunicorn+mysql
【代码】[django]django+nginx+gunicorn+mysql。原创 2018-04-03 14:13:38 · 199 阅读 · 0 评论 -
[mysql]ubuntu用apt-get install后,python安装mysql-python时报mysql_config: not found
症状(show_buiding) root@iZj6c3ru5234oqhlkiphcnZ:~/web/show_buiding# pip install mysql-pythonCollecting mysql-python Downloading http://mirrors.aliyun.com/pypi/packages/a5/e9/51b544da85a36a68debe7a7...原创 2018-04-03 12:33:53 · 306 阅读 · 0 评论 -
[mysql]用户管理
addinsert into user(Host,User,Password) values('%','name','password');create user 'show_building'@'localhost' identified by 'password';delupdateset password for 'show_building'@'lo...原创 2018-04-03 12:26:09 · 112 阅读 · 0 评论 -
ubuntu 查看uuid
tom@tommain:~$ sudo blkid [sudo] password for tom: /dev/sda1: LABEL="rom" UUID="42bb3891-8460-451f-b2b0-93de8b2066ba" TYPE="ext4" PARTUUID="151ba304-01" /dev/sdb1: UUID="50c32e3c-5cb1-4c31-ac6e-10c原创 2017-02-27 22:29:20 · 2957 阅读 · 0 评论 -
ubuntu创建U盘启动盘
0x0001 下载iso文件0x0002 用dd烧录0x0001 下载.iso文件0x0002 用dd烧录dd: failed to open '/dev/sdc1': Permission deniedtom@tommain:~/Downloads$ sudo dd if=./ubuntu-16.04.1-desktop-amd64.iso of=/dev/sdc1[sudo] pass原创 2017-02-10 08:26:12 · 358 阅读 · 0 评论 -
ubuntu下恢复iso之后的U盘
0x0001 起因之前用dd 直接把.iso写到了U盘。结果现在U盘装完系统后没法用了。0x0002 解决tom@tommain:~$ dd if=/dev/zero of=/dev/sdsda sda1 sdb sdb1 sdc sdc1 tom@tommain:~$ dd if=/dev/zero of=/dev/sdc bs=512 count=1dd: failed原创 2017-02-10 16:44:43 · 887 阅读 · 0 评论 -
Git库
https://bitbucket.org/tomlucky/testinit1/admin原创 2017-03-03 15:22:29 · 173 阅读 · 0 评论 -
linux命令行查找当前目录下所有文件是否包含特定string
grep// -n 带行号 (自测可用)#grep -n -r "blog_name," * wp-admin/admin-header.php:118:unset($title_class, $blog_name, $total_update_count, $update_title);wp-trackback.php:64: $blog_name = mb_conver原创 2018-01-07 12:25:58 · 1327 阅读 · 0 评论 -
[mysql]ubuntu上安装mysql
:~# sudo apt-get install mysql-server mysql-client安装的过城中会让输入root密码,记下来别忘记就ok了。成功后,登陆看一下:# mysql -uroot -p原创 2018-04-03 12:13:49 · 134 阅读 · 0 评论 -
[mysql]增加用户,数据库,以及 把两者link起来
//登陆root#mysql -uroot -p//change to user mysql databasemysql> use mysql;//add user and passwordmysql>create user 'show_building'@'localhost' identified by 'this is his password';//creat...原创 2018-04-03 12:20:48 · 223 阅读 · 0 评论 -
[mysql]数据库访问全线管理
MySQL赋予用户权限的命令的简单格式为用户在所有登陆ip的权限开放管理MySQL中所有数据库的权限开放管理MySQL中具体数据库(test)的权限开放管理MySQL中具体数据库中的表(test.table1)的权限开放管理MySQL中具体数据库的表(test.table1)的部分列的权限开放管理操作指令回收权限查看MySQL用户权限MySQL赋予用户权限的命令...原创 2018-04-03 12:23:55 · 144 阅读 · 0 评论 -
[bash]在ps1上显示当前git branch的name
#!/bin/bash## DESCRIPTION:## Set the bash prompt according to:# * the active virtualenv# * the branch/status of the current git repository# * the return value of the previous command...原创 2018-11-05 14:49:03 · 1054 阅读 · 0 评论