http://typingchinese.com/main.htm
https://www.inputking.com/ime/ime_new.php
1.备份环境变量:
set >E:\MyDocuments\env.txt
(还不晓得如何按用户备份,帖子在这里http://topic.csdn.net/u/20100612/11/a31e0da6-5ba7-418e-81e7-5ce16de7430c.html)
2.批处理
set ZIP="D:\Program Files\7-Zip\7z.exe"
rem ---------------------------soruce-----------------------------------------------
set MYPLUGIN_ROOT=E:\dev\autodesk\maya\myplugin\project
set COMMON_ROOT=%MYPLUGIN_ROOT%\common
set UUX_STRING_ROOT=%MYPLUGIN_ROOT%\xxu_String
set TOOLS_ROOT=E:\dev\tools
set MMGR_ROOT=%TOOLS_ROOT%\mmgr
rem ---------------------------destination------------------------------------------
set DESTINITY_ROOT=Z:\Temp\TD\yaoyansi\ToInternalDev
set DESTINITY_CODE_ROOT=%DESTINITY_ROOT%\root
set DESTINITY_PLUGIN_ROOT=%DESTINITY_CODE_ROOT%\myplugin\project
set DESTINITY_TOOLS_ROOT=%DESTINITY_CODE_ROOT%\tools
rem ---------------------------xcopy------------------------------------------------
xcopy/s /h /d /y %COMMON_ROOT%\*.* %DESTINITY_PLUGIN_ROOT%\common\
xcopy/s /h /d /c /y /EXCLUDE:exclude.txt %UUX_STRING_ROOT%\*.* %DESTINITY_PLUGIN_ROOT%\xxu_String\
xcopy/s /h /d /y %MMGR_ROOT%\*.* %DESTINITY_TOOLS_ROOT%\mmgr\
%ZIP% u %DESTINITY_ROOT%\all.rar %DESTINITY_CODE_ROOT%\
rem ------------------------- delete files and dirs --------------------------------
del/f /s /q %DESTINITY_CODE_ROOT%\
RD/S /Q %DESTINITY_CODE_ROOT%
pause
exclude.txt:
.obj
.ncb
.tmp
.bak
.exp
.ilk
.lib
.pdb
.suo
.user
Debug\
Debug2008\
Release\
Release2008\
3.7zip批处理
set ZIP="D:\Program Files\7-Zip\7z.exe"
rem ---------------------------soruce-----------------------------------------------
set MYPLUGIN_ROOT=E:\dev\autodesk\maya\myplugin\project
set COMMON_ROOT=%MYPLUGIN_ROOT%\common
set UUX_STRING_ROOT=%MYPLUGIN_ROOT%\xxu_String
set TOOLS_ROOT=E:\dev\tools
set MMGR_ROOT=%TOOLS_ROOT%\mmgr
rem ---------------------------destination------------------------------------------
set DESTINITY_ROOT=Z:\Temp\TD\yaoyansi\ToInternalDev
set DESTINITY_PLUGIN_ROOT=%DESTINITY_ROOT%\myplugin\project
set DESTINITY_TOOLS_ROOT=%DESTINITY_ROOT%\tools
rem ---------------------------xcopy------------------------------------------------
%ZIP% u -xr@ZipExclude.txt %DESTINITY_ROOT%\all.7z %COMMON_ROOT%\
%ZIP% u -xr!*.bak %DESTINITY_ROOT%\all.7z %DESTINITY_TOOLS_ROOT%\mmgr\
%ZIP% u -xr@ZipExclude.txt %DESTINITY_ROOT%\all.7z %DESTINITY_PLUGIN_ROOT%\xxu_String\
pause
ZipExclude.txt
*.obj *.ncb *.tmp *.bak *.exp *.ilk *.lib *.pdb *.suo *.user Debug\ Debug2008\ Release\ Release2008\
3.svn backup
on windows http://www.cnitblog.com/201/archive/2010/01/11/63671.html
on *nux http://www.cnitblog.com/201/archive/2010/01/11/63670.html
http://www.google.com.hk/search?hl=en&safe=active&client=firefox-a&rls=org.mozilla%3Azh-CN%3Aofficial&q=linux+svn%E5%A4%87%E4%BB%BD%E6%96%B9%E6%A1%88&aq=f&aqi=&aql=&oq=&gs_rfai=
http://www.svn8.com/svnpz/20090428/5032.html
4.driver升级
http://www.laptopvideo2go.com/
5,视频网站下载方法
http://www.ixconverter.com/
http://www.convertfiles.com/
http://ytconv.com/
6.网页代理,出国代理
http://tieba.baidu.com/f?kw=%CD%F8%D2%B3%B4%FA%C0%ED
SoSoH-代理
不用网页代理,你懂的:http://54outbbs.com/forum.php
7. bt seed
http://kickass.to/
8.FTP
download movie/music
【配机】如何配CG电脑更“正确”? http://www.neroblack.org/2014_pc/
- Firewall
start:
systemctl enable firewalld.service
systemctl start firewalld.service
stop:
systemctl stop firewalld.service
systemctl disable firewalld.service
check status:
systemctl status firewalld.service
- network
#systemctl status network.service
#systemctl restart network.service
#systemctl stop network.service
- YUM
yum whatprovides *stubs-32.h
http://www.tecmint.com/20-linux-yum-yellowdog-updater-modified-commands-for-package-mangement/
# yum install firefox
# yum -y install firefox
# yum remove firefox
# yum -y remove firefox
# yum update mysql
# yum list openssh
# yum list openssh-4.3p2
# yum search vsftpd
# yum info firefox
# yum list | less
# yum list installed | less
# yum provides /etc/httpd/conf/httpd.conf
# yum check-update
# yum update
# yum grouplist
# yum groupinstall 'MySQL Database'
# yum groupupdate 'DNS Name Server'
# yum groupremove 'DNS Name Server'
# yum repolist
# yum repolist all
# yum --enablerepo=epel install phpmyadmin
# yum shell
# yum clean all
# yum history
- elrepo vs repoforge http://unix.stackexchange.com/questions/50657/is-it-stable-to-use-epel-and-rpmforge-in-the-same-time
- how to use repoforge: http://repoforge.org/use/, how to use elpo: http://elrepo.org/tiki/tiki-index.php
- centos7 packages : http://pkgs.org/
- Find RPM package: http://rpm.pbone.net
- Repos
$ ls /etc/yum.repos.d/
adobe-linux-x86_64.repo_bak elrepo.repo_bak
CentOS-Base.repo epel.repo
CentOS-Base.repo.rpmnew epel-testing.repo_bak
CentOS-Debuginfo.repo livna.repo_bak
CentOS-Debuginfo.repo.rpmnew mirrors-rpmforge
CentOS-fasttrack.repo mirrors-rpmforge-extras
centos-jenslody.de.repo_bak mirrors-rpmforge-testing
CentOS-Sources.repo nux-dextop.repo_bak
CentOS-Vault.repo remi.repo_bak
download.mono-project.com_repo_centos_.repo_bak rpmforge.repo_bak
mv adobe-linux-x86_64.repo adobe-linux-x86_64.repo_bak mv centos-jenslody.de.repo centos-jenslody.de.repo_bak mv download.mono-project.com_repo_centos_.repo download.mono-project.com_repo_centos_.repo_bak mv elrepo.repo elrepo.repo_bak mv epel.repo epel.repo_bak mv epel-testing.repo epel-testing.repo_bak mv livna.repo livna.repo_bak mv nux-dextop.repo nux-dextop.repo_bak mv remi.repo remi.repo_bak mv rpmforge.repo rpmforge.repo_bak
mv adobe-linux-x86_64.repo_bak adobe-linux-x86_64.repo mv centos-jenslody.de.repo_bak centos-jenslody.de.repo mv download.mono-project.com_repo_centos_.repo_bak download.mono-project.com_repo_centos_.repo mv elrepo.repo_bak elrepo.repo mv epel.repo_bak epel.repo mv epel-testing.repo_bak epel-testing.repo mv livna.repo_bak livna.repo mv nux-dextop.repo_bak nux-dextop.repo mv remi.repo_bak remi.repo mv rpmforge.repo_bak rpmforge.repo
chmod +x __backup_repos.sh
chmod +x __restore_repos.sh
- install
- yum install ntfs-3g,
- Internet
- Teamviewer (http://www.teamviewer.com/en/help/363-How-do-I-install-TeamViewer-on-my-Linux-distribution.aspx)
- skype: http://wiki.centos.org/HowTos/Skype
- Maya, houdini, nuke, delight, arnold sdk,
- Katana 1.6v2
$/usr/local/katana/1.6v2/katana时提示:
[INFO LicenseCheck]: Interactive License OK
Traceback (most recent call last):
File "python/Main/Main.py", line 19, in <module>
ImportError: libexpat.so.0: cannot open shared object file: No such file or directory
查以一下发现有/usr/lib64/libexpat.so, 然后可以做个软链接:
ln -s /usr/lib64/libexpat.so /usr/lib64/libexpat.so.0
然后就可以启动katana了
- cmake, codeblocks, smartGit/Hg,
- pip from EPEL
ipython: #pip install ipython
- VLC
- VMware
Install:
chmod +x VMware-Workstation-Full-*.bundle
./VMware-Workstation-Full-*.bundle
uninstall:
/usr/bin/vmware-installer --uninstall-product vmware-workstation
Workstation 10.0.3 will not install in Centos 7,
How to Install VMware Workstation 11 on CentOS 7 (key:1F04Z-6D111-7Z029-AV0Q4-3AEH8)
https://communities.vmware.com/thread/484273
Win7: 51VPN,
- Wine : http://tecadmin.net/steps-install-wine-centos-rhel-fedora-systems/
- alembic: ilmbase, hdf5(epel)
- ffmpeg(yum install ffmpeg ffmpeg-devel
), it needs nux-dextop repos
-Chrome
http://chrome.richardlloyd.org.uk/
yum update
wget http://chrome.richardlloyd.org.uk/install_chrome.sh
chmod u+x install_chrome.sh
./install_chrome.sh
- 加固
- 禁止root远程登陆
cp /etc/ssh/sshd_config /etc/ssh/sshd_config_bak
vi /etc/ssh/sshd_config
#PermitRootLogin yes
改为: PermitRootLogin no
重启sshd服务: service sshd restart
-限制某些用户登录(注意,不是远程登陆)
vi /etc/passwd,帐号信息的shell为/sbin/nologin的为禁止远程登录,如要允许,则改成可以登录的shell即可,如/bin/bash
- 禁止某个用户远程登陆(比如用户usr0)(http://www.shangxueba.com/jingyan/2199103.html)
vi /etc/pam.d/sshd
在第一行加入 auth required pam_listfile.so item=user sense=deny file=/etc/sshdusers nerr=succeed,注意一定要在第一行,因为pam中执行顺序是上面优先
vi /etc/sshdusers
在文件中加入root usr0 ,root 和usr0是两个本地用户
service sshd restart
(在另一个终端测试: ssh <your IP>)
-linux上下载, 你懂的:
迅雷: sed -n '/^thunder/p' test | sed '/^thunder/s/thunder\:\/\///' | base64 -d | sed 's/AA//' | sed 's/ZZ//' 快车: sed -n '/^flashget/p' test | sed '/^flashget/s/flashget\:\/\///' | base64 -d | sed 's/\[FLASHGET\]//' | sed 's/\[FLASHGET\]//' 旋风: sed -n '/^qqdl/p' test | sed '/^qqdl/s/qqdl\:\/\///' | base64 -d 迅雷: echo test | sed '/^thunder/s/thunder\:\/\///' | base64 -d | sed 's/AA//' | sed 's/ZZ//' 快车: echo test | sed '/^flashget/s/flashget\:\/\///' | base64 -d | sed 's/\[FLASHGET\]//' | sed 's/\[FLASHGET\]//' 旋风: echo test | sed '/^qqdl/s/qqdl\:\/\///' | base64 -d
- ffmpeg
ffmpeg -r 30 -i "/maya/projects/default/images/test_%04d.png" -c:v libx264 -qscale 1 -pix_fmt yuv420p /maya/projects/default/images/test_320x240_fps30.mp4
Offline Dictionary on Ubuntu source: http://askubuntu.com/questions/170775/offline-dictionary-with-pronunciation-and-usages 1. First of all, You have to install dictioanry server on your local machine sudo apt-get install dict sudo apt-get install dictd sudo apt-get install dict-gcide sudo apt-get install dict-wn sudo apt-get install dict-devil sudo apt-get install dict-moby-thesaurus Then you can lookup a word like this: dict -d gcide "dictionary" dict -d wn "dictionary" dict -d devil "dictionary" dict -d moby-thesaurus "dictionary" dict "dictionary" 2. How to speak a word sudo apt-get install espeak then, append the following script to ~/.bashrc function mylookup { # espeak for the pronunciation audible output and phonetic alphabet string echo "Phoneme mnemonics: $(espeak -ven-uk-rp -x -s 120 "$1" 2> /dev/null)" # dict - the client for the dictionary server dict -d wn "$1" } then, source ~/.bashrc how to speak and lookup a word now: mylookup hello 3. Install a GUI dictionary (e.g. GoldenDict) sudo apt-get install goldendict Then, you have to connect GoldenDict to your local dict server, like this: GoldenDict>Edit>Dictionaries>DICTServers> add a new line with Name(dictd) and Address(127.0.0.1) You may restart GoldenDict or ubuntu
Tor:
install:
sudo add-apt-repository ppa:webupd8team/tor-browser
sudo apt-get update
sudo apt-get install tor-browser
remove:
sudo apt-get remove tor-browser
rm -r ~/.tor-browser-en
Install Development Tools
sudo apt-get update sudo apt-get install build-essential
JDK
https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04
http://bbs.chinaunix.net/forum.php?mod=viewthread&tid=4222209&page=1#pid24512919
https://www.centos.org/forums/viewtopic.php?f=51&t=55637&p=235259#p235259
http://www.linuxdiyf.com/bbs/my.php?item=threads
http://www.cn-centos.com/forum.php?mod=viewthread&tid=5254&page=1&extra=#pid92694
https://linux.cn/thread-14602-1-1.html
http://bbs.51cto.com/viewthread.php?tid=1315019&extra=page%3D1&frombbs=1
http://forum.linuxfans.org/viewthread.php?tid=200286&pid=4974774&page=1&extra=page%3D1#pid4974774
- Problem "The volume "boot" has only 0 bytes disk space remaining" on Ubuntu
Solution: sudo apt autoremove --purge
Ubuntu Pinyin Input
1. Install Fctix(http://www.pinyinjoe.com/linux/ubuntu-12-chinese-setup.htm)
2. add Pinyin input method (http://www.pinyinjoe.com/linux/ubuntu-10-chinese-input-pinyin-chewing.htm)
1). '+'--> "Add Input method"-->select 'Pinyin' or 'Sunpinyin'
2).为了符合google输入法的使用习惯,作如下设置:
select tab "Global Config"
in 'Trigger input method', set 'Ctrl+Space' to 'Lshift' (否则必须按下“Ctrl+Space”才能启动输入法)
set 'Prev Page' to ','
set 'Next Page' to '.'
----------------
http://ie.q1qq2.com/ime/py.html