Category Archives: SYSTEM

Getting a Python script to run in the background (as a service) on boot

For some of my projects I write a simple service in Python and need it to start running in the background when the Raspberry Pi boots. Different Linux distributions use different ways of starting and stopping services (some now use Upstart, some systemd). I am using the “Wheezy” Debian distribution on my Raspberry Pi, and in this case the proper way to do this is using an “init script”. These are stored in the /etc/init.d folder. In there you can find scripts that for instance, start the networking system or a print server. Debian Wheezy uses the old Sys V init system which means that these scripts are run according to symbolic links in the /etc/rc.x directories. The Debian documentationexplains this. Continue reading Getting a Python script to run in the background (as a service) on boot

Django部署至Apache的步骤 Ubuntu12.04

0x00 前言

在这里先说一点人生的经验 之前买了腾讯云的服务器(有学生认证的话只要1块钱) 我明明在自己电脑上ubuntu虚拟机用了一年多了 却作死选了个Centos 还是最新版的(7.2) 于是出现了各种问题 网上的解决方案都很少 最后因为一些很扯的问题放弃了 重装了一个ubuntu12.04的系统 感觉舒服 简单 多了 Continue reading Django部署至Apache的步骤 Ubuntu12.04

已达到计算机的连接数最大值

一:右击我的电脑–管理,打开系统工具–共享文件夹–会话,手动删除里面的会话;
二:在开始-运行栏里输入gpedit.msc,回车后,选择计算机配置–管理模板–windows组件–远程桌面服务–远程桌面会话主机–连接,打开右边显示框中的‘限制连接的数量’

How to Change Your Default Applications on Ubuntu

File Associations

To set the default application for a specific file type, locate a file of that type in the file manager, right-click it, and select Properties.
Click the Open With tab and select the application you want to use for that file type. Use the Set as default button to make the application the default application.

Ubuntu MATE for the Raspberry Pi 2 and Raspberry Pi 3

Martin Wimpress and Rohith Madhavan have made an Ubuntu MATE image for the Raspberry Pi 2 and Raspberry Pi 3 which you can download or build yourself.
The image is based on the regular Ubuntu armhf base, not the new Snappy Core, which means that the installation procedure for applications is the same as that for the regular desktop version, ie using apt-get. However, since Ubuntu MATE 16.04 snap packages can be installed alongside classic deb packages. Continue reading Ubuntu MATE for the Raspberry Pi 2 and Raspberry Pi 3

find 命令

Linux中find常见用法示例

·find   path   -option   [   -print ]   [ -exec   -ok   command ]   {} \;

find命令的参数;
pathname: find命令所查找的目录路径。例如用.来表示当前目录,用/来表示系统根目录。
-print: find命令将匹配的文件输出到标准输出。
-exec: find命令对匹配的文件执行该参数所给出的shell命令。相应命令的形式为’command’ { } \;,注意{ }和\;之间的空格。
-ok: 和-exec的作用相同,只不过以一种更为安全的模式来执行该参数所给出的shell命令,在执行每一个命令之前,都会给出提示,让用户来确定是否执行。 Continue reading find 命令