ubuntu 使用手记!






#check software version
apt-cache policy
#search software
sudo apt-cache search vlc
#install software
sudo apt-get install vlc
#remove software
sudo apt-get remove llvm-3.5





 gedit .bashrc


leosu__bak$ cp -fr trunk ~/
leosu__bak$ cp -fr my_bin ~/

#change host name;
gedit /etc/hosts  /etc/hostname


sudo apt-get update
sudo apt-get upgrade

sudo apt-get install vlc
sudo apt-get install  -y eclipse   eclipse-cdt eclipse-cdt-autotools  eclipse-cdt-launch-remote  eclipse-cdt-perf  eclipse-cdt-pkg-config  eclipse-cdt-qt   eclipse-cdt-valgrind  eclipse-mylyn-context-cdt   eclipse-subclipse  eclipse-subclipse-graph  eclipse-wtp eclipse-wtp-webtools eclipse-wtp-ws  eclipse-wtp-xmltools  eclipse-wtp-xsl  eclipse-xsd  eclipse-xsd-sdk   

sudo apt-get install openjdk-8-jdk


sudo apt-get install vim  sshfs   aptitude  gnote
sudo apt-get install meld  kompare  krusader  dconf-tools nemo  nemo-fileroller


virtualbox install:
sudo sh -c "echo 'deb http://download.virtualbox.org/virtualbox/debian '$(lsb_release -cs)' contrib non-free' > /etc/apt/sources.list.d/virtualbox.list" && wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add - && sudo apt-get update && sudo apt-get install virtualbox-4.3 dkms






#安装输入法的第一步,是安装语言包。我们选择System Settings-->Language Support-->Install/Remove Languages,将弹出以下窗口:  select chinese;
#第二步,安装IBus框架,在终端输入以下命令:
sudo apt-get install ibus ibus-clutter ibus-gtk ibus-gtk3 ibus-qt4  im-switch
启动IBus框架,在终端输入:
im-switch -s ibus
安装完IBus框架后注销系统,保证更改立即生效。
第三步:安装拼音引擎
有下面几种常用选择:
IBus拼音:sudo apt-get install ibus-pinyin
IBUS五笔:sudo apt-get install ibus-table-wubi
谷歌拼音输入法:sudo apt-get install ibus-googlepinyin
Sun拼音输入法:sudo apt-get install ibus-sunpinyin
第四步:设置IBus框架  www.2cto.com  
ibus-setup
此时,IBus Preference设置被打开。我们在Input Method选项卡中,选择自己喜欢的输入方式,并配置自己喜欢的快捷键即可。
#audo start ibus;  You need to add ibus-daemon to your startup applications:    Open startup applications from the power cog
#1, search startup ; 2, add ibus-daemon into startup applications







 ##pidgin for lync(microsoft lync)
 leosu@leosu:/opt/nfs/rootdisk_29x2$ sudo apt-cache search  lync
pidgin-sipe - Pidgin plugin for MS Office Communicator and MS Lync
For Ubuntu user, you can update to pidgin 2.10.11, through download the Pidgin PPA package.
To setup the PPA, follow these steps:
  1. Click to download the Pidgin PPA package.
  2. Select Open with: and GDebi Package Installer. Click OK.
  3. Click Install Package.
  4. Click Close. Then close GDebi.
After doing this, check for and apply updates:
  1. Click System, point to Administration, and click Update Manager.
  2. Click Check.
  3. Click Install Updates.
Future Pidgin updates will show up in Update Manager along with the usual Ubuntu updates.
#download cert and install through double click cert file. http://intranet.arrisi.com/depts/it/lync/Certificate/
sudo add-apt-repository -y ppa:pidgin-developers/ppa
sudo apt-get update
sudo apt-get -y install pidgin  libpurple-bin  libpurple0  pidgin-ppa





digram and uml, and xmind
//dia can drad UML, SDL, and DB etc digram.
# sudo apt-get install dia-shapes dia2code
//xmind can draw mind map!!!!!!!!!!!!
# /media/leosu/95d272f0-caa0-4ec9-bd23-f518382c14f1/PM__project_mindjet_xmind_etc$ sudo dpkg -i  xmind-linux-3.5.1.201411201906_i386.deb
#Install XMind with:
   #for error of "Unknown media type in type 'all/all'"
   sudo mv  /usr/share/mime/packages/kde.xml    /usr/share/mime/packages/kde.xml___bak
   sudo update-mime-database /usr/share/mime
sudo dpkg -i xmind-linux-3.4.1.201401221918_amd64.deb
#After this install all needed depend packages with:
sudo apt-get -f install
 













apt-cache search subversion
sudo apt-get install subversion  subversion-tools  git gitk    git-svn git-sh


How to Install
There are different packages to be installed to acquire Kubuntu from an Ubuntu installation depending on which packages you want. Below are the three possible choices, or "routes", to go down; the packages below are metapackages -- they depend upon other, "real", packages, and with their installation they pull them in. For details on package installation methods, see the wiki page InstallingSoftware. The options are as follows:
(i) kubuntu-desktop -- This is the recommended metapackage to install; the full Kubuntu installation, with all the Kubuntu recommended packages. This includes LibreOffice, Kontact, Konversation, Amarok, K3B, and others.
(ii) kde-full -- This will install the following KDE packages: kdegames, kdeaccessibility, kdeplasma-addons, kdeadmin, kdeartwork, kdegraphics, kdemultimedia, kdenetwork, kdepim, kdesdk, kdeutils, kdewebdev, and the kde-plasma-desktop metapackage (see details below).
(iii) kde-plasma-desktop --- This will install the core -- the bare-minimum required-- of KDE. That is, kdebase-apps, kdebase-runtime, kdebase-workspace and kdm.
If you choose to not install kubuntu-desktop, then you can still get all the Kubuntu-specific tweaks by installing the kubuntu-default-settings package. For users with GTK applications, you will need the kde-config-gtk-style and/or gtk3-engines-oxygen package(s) installed, if they aren't already, for proper integration.












#ubuntu tftp install:  tftp-hpa是客户端,tftpd-hpa是服务器端
sudo aptitude install tftp-hpa tftpd-hpa
#配置TFTP服务器
sudo gedit /etc/default/tftpd-hpa
chmod 777 -R /opt/tftp/
#runnig tftp
sudo service tftpd-hpa restart


#install nfs; /etc/exports  /opt/nfs/  *(rw,no_root_squash,insecure,no_subtree_check,sync)
#sudo apt-get install -y nfs-kernel-server

#install httpd ; /etc/httpd/conf/httpd.conf  DocumentRoot "/var/www/html/trunk"
/etc/apache2/
|-- apache2.conf
|       `--  ports.conf
|-- mods-enabled
|       |-- *.load
|       `-- *.conf
|-- conf-enabled
|       `-- *.conf
|-- sites-enabled
|       `-- *.conf
#use apache, it is good;
#sudo a2enmod rewrite
#.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
sudo a2enmod rewrite && sudo service apache2 restart
sudo apt-get install -y php5
sudo apt-get install -y apache2
sudo /etc/init.d/apache2 restart





#to build iptv:
sudo apt-get install ccache;
mkdir -p /extra/ccache;  chmod a+rwx /extra/ccache; CCACHE_DIR=/extra/ccache /usr/bin/ccache -M 50G
sudo apt-get install quilt
sudo mkdir --mode=777 --parents /usr/local/iptv
sudo chmod  777 /usr/local/iptv/
# install using rpm..............
sudo apt-get install -y  alien
sudo alien  iptv-logtools-1.39-1.x86_64.rpm
sudo dpkg -i iptv-logtools_1.39-2_amd64.deb


sudo apt-get  install  -y subversion g++ patch bison automake texinfo  libexpat1-dev libxext-dev libxkbfile-dev  liborbit2-dev libjpeg-dev gawk libpng3 libjpeg62 libpng12-0 graphviz php5-cli libfreetype6-dev rpm alien intltool gettext  quilt icecc graphviz libtool  libpng12-dev   indent  curl  gperf libstdc++5 dos2unix flex-old automake gawk  libxt-dev  libunittest++-dev  libgtest-dev   google-mock

sudo apt-get install  libxml-sax-expatxs-perl  libblkid-dev   python-cheetah libsdl1.2-dev   libc6-dev g++-multilib   flex

cd /bin && sudo ln -fs bash sh
sudo apt-get install   libxml-xql-perl   jsdoc-toolkit   libsdl-dev  python-cheetah  libc6-dev  g++-multilib  flex   libtool texinfo  curl bison gperf dos2unix automake gawk
#jscop
ln /usr/bin/evn /bin/env








compile safira webkit600:


sudo apt-get install -y libgail-3-0  libgail-3-0-dbg  libgtk-3-0  libgtk-3-0-dbg  libgtk-3-bin  libgtk-3-common  libgtk-3-dev  libgtk-3-doc  
#error info:   gallivm/lp_bld_debug.cpp:61:32: fatal error: llvm/ADT/OwningPtr.h: No such file or directory
sudo apt-get remove llvm-3.5
sudo apt-get install llvm-3.4

sudo add-apt-repository ppa:webkit-team
sudo apt-get update
sudo apt-get install subversion gtk-doc-tools autoconf automake libtool libgtk2.0-dev libpango1.0-dev libicu-dev libxslt-dev libsoup2.4-dev libsqlite3-dev gperf bison flex libjpeg62-dev libpng12-dev libxt-dev autotools-dev libgstreamer-plugins-base0.10-dev libenchant-dev libgail-dev
 sudo /etc/init.d/iceccd restart
##ld gold:   You may want to check that the default ld binary in the system is the one provided by gold:
$ ls -l /usr/bin/ld
lrwxrwxrwx 1 root root 7 Sep 25  2012 /usr/bin/ld -> ld.gold
Or you can configure update-alternatives:
$ update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.gold" 20
$ update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.bfd" 10
Then choose the preferred one with the following command:
$ update-alternatives --config ld




#printer; ubuntu 14.10,  didn't need us to config it;
KyoceraKM-3060KX
(ubuntu)divice URI:  ipp://192.168.16.171:631/printers/KyoceraKM  -->>> socket://10.202.4.196:9100
(windows)因为上周服务器有所变动,茶水间的大的那台打印机IP地址有冲突,现在需要大家手动来调整打印机的地址,具体操作如下:
1.       开始-打印机
2.       找到Kyocera KM-3060 KX 右击 - Printer Properties
3.       Prots -Configure Port
4.       修改蓝色区域IP 地址为:10.202.4.196, 点OK。























  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值