1. Modify the /etc/sudoers file to remove the password required for "sudo" command
-
[sudo] password for martin:
-
Enter new UNIX password:
-
Retype new UNIX password:
-
passwd: password updated successfully
-
martin@martin-pc:~$
-
-
to create the password for root user
-
-
martin@martin-pc:~$
-
martin@martin-pc:~$ su root
-
Password:
-
root@martin-pc:/home/martin#
-
-
using the root user to modify the /etc/sudoers
-
-
root@martin-pc:/home/martin#
-
root@martin-pc:/home/martin# vi /etc/sudoers
-
root@martin-pc:/home/martin#
-
-
Add the following settings below the "sudo ALL=..."
-
-
%martin ALL=(ALL:ALL)NOPASSWD:NOPASSWD:ALL
Then the /etc/sudoers file is like:
-
#
-
# This file MUST be edited with the 'visudo' command as root.
-
#
-
# Please consider adding local content in /etc/sudoers.d/ instead of
-
# directly modifying this file.
-
#
-
# See the man page for details on how to write a sudoers file.
-
#
-
Defaults env_reset
-
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
-
-
# Host alias specification
-
-
# User alias specification
-
-
# Cmnd alias specification
-
-
# User privilege specification
-
root ALL=(ALL:ALL) ALL
-
-
# Members of the admin group may gain root privileges
-
%admin ALL=(ALL) ALL
-
#%admin ALL=(ALL)NOPASSWD: NOPASSWD: ALL
-
-
-
# Allow members of group sudo to execute any command
-
%sudo ALL=(ALL:ALL) ALL
-
-
%martin ALL=(ALL:ALL)NOPASSWD:NOPASSWD:ALL
-
# See sudoers(5) for more information on "#include" directives:
-
-
#includedir /etc/sudoers.d
-
-
~
2. install the vim
-
martin@martin-pc:~$ sudo apt-get install vim
-
Reading package lists... Done
-
Building dependency tree
-
Reading state information... Done
-
....
3. Modify the /etc/fstab to mount the disk automatically
-
# /etc/fstab: static file system information.
-
#
-
# Use 'blkid' to print the universally unique identifier for a
-
# device; this may be used with UUID= as a more robust way to name devices
-
# that works even if disks are added and removed. See fstab(5).
-
#
-
# <file system> <mount point> <type> <options> <dump> <pass>
-
proc /proc proc nodev,noexec,nosuid 0 0
-
# / was on /dev/sda7 during installation
-
UUID=d0131bb0-1bc5-40ca-a244-be745b2a2fee / ext4 errors=remount-ro 0 1
-
-
UUID=72e1aa71-eae6-412b-9beb-6538e2eddc83 /home ext4 errors=remount-ro 0 1
-
-
UUID=1d2895cd-190c-9ce3-988e-57299f2f9937 /home/martin/linux ext4 errors=remount-ro 0 1
-
-
UUID=DCA0CA49A0CA2A3A /home/martin/linux/vm_ubuntu ntfs errors=remount-ro 0 1
-
-
# swap was on /dev/sda5 during installation
-
UUID=69de5ab7-57c3-44da-9135-dcdbe03990df none swap sw 0 0
4. Install git
-
[martin@~]$ sudo apt-get install git
-
Reading package lists... Done
-
Building dependency tree
5. Install Skype
-
[martin@REV]$ sudo add-apt-repository "deb $(lsb_release -sc) partner"
-
[martin@REV]$ sudo apt-get update && sudo apt-get install skype
-
Ign http://cn.archive.ubuntu.com precise InRelease
-
Ign http://cn.archive.ubuntu.com precise-updates InRelease
Ref:
6. Install Wireshark
-
[martin@~]$ sudo apt-get install wireshark
-
Reading package lists... Done
-
Building dependency tree
-
...
-
Processing triggers for libc-bin ...
-
ldconfig deferred processing now taking place
-
[martin@~]$
-
[martin@~]$
-
-
-
Add Right for matin to caputer using wireshark
-
-
[martin@~]$ sudo groupadd wireshark
-
[martin@~]$ sudo vim /etc/group
-
[martin@~]$ sudo chgrp wireshark /usr/bin/dumpcap
-
[martin@~]$ sudo chmod 4755 /usr/bin/dumpcap
-
[martin@~]$ sudo gpasswd -a martin wireshark
-
Adding user martin to group wireshark
-
[martin@~]$
Ref:
ubuntu wireshark 普通用户抓包
cap/pcap类文件无法用wireshark打开
7. Install minicom
-
[martin@~]$ sudo apt-get install minicom
-
Reading package lists... Done
-
Building dependency tree
-
Reading state information... Done
-
The following extra packages will
-
...
-
[martin@~]$ sudo minicom -s
-
Serial port setup:
-
+-----------------------------------------------------------------------+
-
| A - Serial Device : /dev/ttyS0 |
-
| B - Lockfile Location : /var/lock |
-
| C - Callin Program : |
-
| D - Callout Program : |
-
| E - Bps/Par/Bits : 115200 8N1 |
-
| F - Hardware Flow Control : No |
-
| G - Software Flow Control : No |
-
| |
-
| Change which setting? |
-
+-----------------------------------------------------------------------+
-
Modem and dialing
-
Remove A,B and K
-
-
Save as dl_s0. for USB Console, using "/dev/ttyUSB0" for the Serial Device, and save as dl_usb0
-
-
Using "sudo minicom -w -c on dfl_s0" to start the minicom
Ref: http://blog.chinaunix.net/uid-26527046-id-3335772.html
8. Install SunPinyin
-
[martin@~]$ sudo apt-get install ibus-table-wubi ibus-sunpinyin
-
[martin@~]$
-
[martin@~]$
Ref:
ubuntu之输入法介绍与设置
ubuntu ibus 输入法之skype不能输入中文
9. Install cscope and Taglist
-
[martin@~]$ sudo apt-get install cscope
-
Reading package lists... Done
-
Building dependency tree
Ref:
Ubuntu下创建vim+Taglist+cscope+ctags组合
10. Install vinagre for Remote Desktop Viewer
-
[martin@~]$ sudo apt-get install vinagre
-
Reading package lists... Done
-
Building dependency tree
-
Reading state information... Done
11. Install Adobe Flash Player
Download the Flash Player from
-
[martin@Downloads]$ tar -xvzf install_flash_player_11_linux.i386.tar.gz
-
libflashplayer.so
-
readme.txt
-
usr/
-
usr/bin/
-
usr/bin/flash-player-properties
-
usr/share/
-
usr/share/kde4/
-
usr/share/kde4/services/
-
usr/share/kde4/services/kcm_adobe_flash_player.desktop
-
usr/share/applications/
-
usr/share/applications/flash-player-properties.desktop
-
usr/share/icons/
-
usr/share/icons/hicolor/
-
usr/share/icons/hicolor/22x22/
-
usr/share/icons/hicolor/22x22/apps/
-
usr/share/icons/hicolor/22x22/apps/flash-player-properties.png
-
usr/share/icons/hicolor/48x48/
-
usr/share/icons/hicolor/48x48/apps/
-
usr/share/icons/hicolor/48x48/apps/flash-player-properties.png
-
usr/share/icons/hicolor/24x24/
-
usr/share/icons/hicolor/24x24/apps/
-
usr/share/icons/hicolor/24x24/apps/flash-player-properties.png
-
usr/share/icons/hicolor/32x32/
-
usr/share/icons/hicolor/32x32/apps/
-
usr/share/icons/hicolor/32x32/apps/flash-player-properties.png
-
usr/share/icons/hicolor/16x16/
-
usr/share/icons/hicolor/16x16/apps/
-
usr/share/icons/hicolor/16x16/apps/flash-player-properties.png
-
usr/share/pixmaps/
-
usr/share/pixmaps/flash-player-properties.png
-
usr/lib/
-
usr/lib/kde4/
-
usr/lib/kde4/kcm_adobe_flash_player.so
-
[martin@Downloads]$
-
[martin@Downloads]$ sudo cp -r usr/lib/ /usr/
-
[martin@Downloads]$ sudo cp -r usr/bin/ /usr/
-
[martin@Downloads]$ sudo cp -r usr/share/ /usr/
-
[martin@Downloads]$ sudo cp libflashplayer.so /usr/lib/mozilla/plugins/
-
[martin@Downloads]$
Ref:
12. Install tftp, tftpd
-
[martin@maple]$ sudo apt-get install tftp
-
Reading package lists... Done
-
Building dependency tree
-
Reading state information... Done
-
...
-
[martin@maple]$
-
[martin@maple]$ sudo apt-get install tftpd-hpa
-
Reading package lists... Done
-
Building dependency tree
-
Reading state information... Done
-
...
-
[martin@maple]$
-
[martin@maple]$ sudo vim /etc/default/tftpd-hpa
-
1 # /etc/default/tftpd-hpa
-
2
-
3 TFTP_USERNAME="tftp"
-
4 TFTP_DIRECTORY="/tftpboot"
-
5 TFTP_ADDRESS="0.0.0.0:69"
-
6 TFTP_OPTIONS="--secure"
13. Install Java JDK
如果使用OpenJDK,只需要如下步骤
-
[martin@linux]$ sudo apt-get install openjdk-7-jre
-
Reading package lists... Done
-
Building dependency tree
-
Reading state information... Done
-
The following extra packages will be installed:
-
ca-certificates-java fonts-dejavu-extra icedtea-7-jre-jamvm java-common libatk-wrapper-java libatk-wrapper-java-jni libbonobo2-0
-
libbonobo2-common libgconf2-4 libgif4 libgnome2-0 libgnome2-bin libgnome2-common libgnomevfs2-0 libgnomevfs2-common libidl-common libidl0
-
liborbit-2-0 liborbit2 openjdk-7-jre-headless tzdata tzdata-java
-
Suggested packages:
-
Processing triggers for libc-bin (2.19-0ubuntu6) ...
-
Processing triggers for ca-certificates (20130906ubuntu2) ...
-
Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done.
-
Running hooks in /etc/ca-certificates/update.d....
-
done.
-
done.
-
[martin@linux]$
-
[martin@Cable Modem]$ sudo apt-get install icedtea-7-plugin
-
Reading package lists... Done
-
Building dependency tree
-
Reading state information... Done
如果是安装 Sun JDK,则需要
-
下载 JDK软件。 Ref:
-
解压该 tar.gz
-
安装
-
[martin@Cable Modem]$ sudo cp -afr jdk1.7.0_45/ /usr/lib/jvm/
-
[martin@Cable Modem]$ sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.7.0_45/bin/javac 1
-
update-alternatives: using /usr/lib/jvm/jdk1.7.0_45/bin/javac to provide /usr/bin/javac (javac) in auto mode
-
[martin@Cable Modem]$
-
[martin@Cable Modem]$ sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7.0_45/bin/java 1
-
[martin@Cable Modem]$ sudo update-alternatives --config javac
-
There is only one alternative in link group javac (providing /usr/bin/javac): /usr/lib/jvm/jdk1.7.0_45/bin/javac
-
Nothing to configure.
-
[martin@Cable Modem]$ sudo update-alternatives --config java
-
There are 2 choices for the alternative java (providing /usr/bin/java).
-
-
Selection Path Priority Status
-
------------------------------------------------------------
-
* 0 /usr/lib/jvm/java-7-openjdk-i386/jre/bin/java 1071 auto mode
-
1 /usr/lib/jvm/java-7-openjdk-i386/jre/bin/java 1071 manual mode
-
2 /usr/lib/jvm/jdk1.7.0_45/bin/java 1 manual mode
-
-
Press enter to keep the current choice[*], or type selection number: 2
-
update-alternatives: using /usr/lib/jvm/jdk1.7.0_45/bin/java to provide /usr/bin/java (java) in manual mode
-
[martin@Cable Modem]$
-
[martin@Cable Modem]$
-
[martin@Cable Modem]$ java -version
-
java version "1.7.0_45"
-
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
-
Java HotSpot(TM) Client VM (build 24.45-b08, mixed mode)
-
[martin@Cable Modem]$
或者使用更加方便的方式
-
sudo add-apt-repository ppa:webupd8team/java
-
sudo apt-get update
-
sudo apt-get install oracle-java7-installer
Ref:
How to Install Java Runtime In Ubuntu 12.04
14. Install Clementine
-
[martin@linux]$ sudo add-apt-repository ppa:me-davidsansome/clementine
-
-
More info: https://launchpad.net/~me-davidsansome/+archive/clementine
-
Press [ENTER] to continue or ctrl-c to cancel adding it
-
-
gpg: keyring `/tmp/tmpemb6at3y/secring.gpg' created
-
gpg: keyring `/tmp/tmpemb6at3y/pubring.gpg' created
-
gpg: requesting key 044A3B98 from hkp server keyserver.ubuntu.com
-
gpg: /tmp/tmpemb6at3y/trustdb.gpg: trustdb created
-
gpg: key 044A3B98: public key "Launchpad Clementine Stable" imported
-
gpg: Total number processed: 1
-
gpg: imported: 1 (RSA: 1)
-
OK
-
[martin@linux]$ sudo apt-get update
-
Ign http://cn.archive.ubuntu.com trusty InRelease
-
Fetched 508 kB in 54s (9,301 B/s)
-
Reading package lists... Done
-
[martin@linux]$ sudo apt-get install clementine
-
Reading package lists... Done
-
Building dependency tree
-
Reading state information... Done
-
The following extra packages will be installed
如上所述,clementine可以正常运行,但是对于 Wma格式的音乐,会提示错误 “Your GStreamer installation is missing a plugin”的错误,需要安装如下的软件包后重启 Clementine
-
[martin@maple_linux]$ sudo apt-add-repository ppa:mc3man/trusty-media
-
[martin@maple_linux]$ sudo apt-get update
-
Ign http://ppa.launchpad.net trusty InRelease
-
[martin@maple_linux]$ sudo apt-get install gstreamer0.10-ffmpeg
-
Reading package lists... Done
-
Building dependency tree
15, Install WPS
-
[martin@Downloads]$ sudo dpkg -i wps-office_8.1.0.3724~b1p2_i386.deb
-
Selecting previously unselected package wps-office.
-
(Reading database ... 171118 files and directories currently installed.)
-
Preparing to unpack wps-office_8.1.0.3724~b1p2_i386.deb ...
-
Unpacking wps-office (8.1.0.3724~b1p2) ...
-
Setting up wps-office (8.1.0.3724~b1p2) ...
-
Processing triggers for hicolor-icon-theme (0.13-1) ...
-
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
-
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
-
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...
-
Rebuilding /usr/share/applications/bamf-2.index...
-
Processing triggers for mime-support (3.54ubuntu1) ...
-
Processing triggers for fontconfig (2.11.0-0ubuntu4) ...
-
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
-
[martin@Downloads]$
-
[martin@Downloads]$
-
[martin@Downloads]$
-
[martin@Downloads]$ sudo dpkg -i symbol-fonts_1.1_all\ .deb
-
Selecting previously unselected package symbol-fonts.
-
(Reading database ... 172086 files and directories currently installed.)
-
Preparing to unpack symbol-fonts_1.1_all .deb ...
-
Unpacking symbol-fonts (1.1) ...
-
Setting up symbol-fonts (1.1) ...
Ref: Ubuntu 安装WPS
16. Install kchmviewer
-
[martin@Cable Modem]$ sudo apt-get install kchmviewer
-
Reading package lists... Done
-
Building dependency tree
-
Reading state information... Done
-
The following extra packages will be installed:
阅读(892) | 评论(0) | 转发(0) |