Ubuntu 12.04 configuration records

Source: Internet
Author: User

Ubuntu 12.04 configuration record 1. Network Connection during installation, but do not select "Download Update". Select Chinese as the language and Shanghai as the region. 2. Click the gear icon in the upper right corner of the page to update the system and restart the system. 3. Change the name to Chinese in the user account: Chinese characters cannot be entered during installation. We are looking forward to improvement! 4. Install the additional driver and select "ATI/AMD proprietary FGLRX graphics driver" to activate and restart the driver. 5. configure dual-display: run the AMD Catalyst Control Center (management). On the "Display Manager" Page, select the external display icon and select "Multi-display desktop with display 1" from the drop-down menu. OK, restart. 6. Use the "display" item set by the system to switch between different monitors and dual monitors. 7. Open the "language" set by the system: Install the complete language support! 8. unmount unnecessary: sudo apt-get purge landscape-client-ui-install-y # remote sudo apt-get purge deja-dup-y # Back up sudo apt-get purge ubuntuone *-y # Ubuntu onesudo apt-get purge indicator-messages-y # sudo apt-get purge empathy * telepathy *-y # chat sudo apt-get purge gwibber *-y # Weibo sudo apt -get purge thunderbird-y # mail sudo apt-get purge transmission-*-y # BTsudo apt-get purge xul-ext-ubufox-y # Firefox Ubuntu extension s Udo apt-get purge gnome-orca-y # sudo apt-get purge onboard-y # sudo apt-get purge simple-scan-y # scan sudo apt-get purge totem-y # sudo apt-get purge pitivi-y # Video Editing sudo apt-get purge bluez-y # Bluetooth sudo apt-get purge emacs23-y # text editing 9. required installation: sudo apt-get install ubuntu-restricted-extras-y # important additional program sudo apt-get install p7zip-full p7zip-rar unrar-y # compress unzip sudo apt-get install build-essential G ++-multilib mingw-w64 g ++-mingw-w64 clang cmake valgrind meld autoconf astyle-y # develop sudo apt-get install "^ libxcb. * "libx11-xcb-dev libglu1-mesa-dev libxrender-dev libedit-dev libfontconfig1-dev-y # Qt5sudo apt-get install git gitk git-gui git-svn-y # version management sudo apt-get install goldendict-y # sudo apt-get install nautilus-open-terminal-y # Right-click the terminal sudo apt-get install mplayer vlc smplayer-y # movie play su Do apt-get install libav-tools-y # Video conversion sudo apt-get install openshot-y # Video Editing sudo apt-get install audacity-y # audio editing sudo apt-get install filezilla -y # FTP client sudo apt-get install mldonkey-server-y # download sudo apt-get install furiusisomount-y # sudo apt-get install tuxpaint tuxmath gcompris-y # preschool education sudo apt-get install indicator-cpufreq-y # CPU frequency adjustment sudo apt-get install indicator-weather-y # weather sudo ap T-get install exfalso-y # ID3 modify sudo apt-get install lm-sensors-y # Temperature Detection sudo apt-get install aptitude-y # install and delete sudo apt-get install lo -menubar-y # LibreOffice global menu sudo apt-get install gtkorphan-y # Clear the orphan package sudo apt-get install system-config-samba-y # sudo apt-get install for LAN sharing ia32-libs-y #64-bit system run 32-bit program sudo apt-get install ppa-purge-y # PPA clear configuration Temperature Detection sudo sensors-detect Manual start: sudo modprobe coretemp searches for files of the specified type Find. -name '*. c' | awk '{print "grep-I-nH keyword" $1}' |/bin/bashfind. -name '*. c'-exec grep-I-nH "keyword" {}\\; better search method: grep-I "search_string ". -r -- include = *. txtgrep "search_string ". -r -- include = *. txt -- include = *. cpp -- include = *. h. Create the initiator gedit XXX. desktop, add content :#! /Usr/bin/env xdg-open [Desktop Entry] Type = ApplicationVersion = 1.0 Name = glGoExec = schroot-c 32-p glGoTerminal = falseIcon = goa-panel where, you can search for icons in/usr/share/icons/hicolor. You can modify the parameters as needed. Install: sudo desktop-file-install XXX. desktop fixed IBUS icon loss gconftool -- type boolean-s/desktop/ibus/panel/show_icon_on_javasray truegconftool -- type boolean-s/desktop/ibus/panel/show truegsettings set com. canonical. unity. panel mirror Ray-whitelist "['all']" Or: ibus-daemon-drx see: https://code.google.com/p/ibus/wiki/Ubuntu to install JRE to run cgoban go online unzip to sudo. /jre-6u31-linux-x64.bin copy: sudo mv jre1.6.0 _ 31 // opt/jre1.6.0 Installation: sudo update-alternatives -- install/usr/bin/java/opt/jre1.6.0/bin/java 0 -- slave/usr/share/man/man1/java.1.gz java.1.gz/opt/jre1.6.0/ man/man1/java.1 Configuration: sudo update-alternatives -- config java query: update-alternatives -- display java version: java-version Plugin: mkdir-p ~ /. Mozilla/plugins/& ln-s/opt/jre1.6.0/lib/amd64/libnpjp2.so ~ /. Mozilla/plugins/run: padsp java-jar/opt/cgoban. jar only displays the directory name ls-l | grep ^ d or ls-d */only displays the file ls-l | grep ^-sets the subdirectories and different file permissions to find. -type d-exec chmod 755 {}\\; find. -type f-exec chmod 644 {}\\; set the executable permission for the specified file find. -name 'commit-msg '-type f-exec chmod + x {}\; find. -name '*. sh '-type f-exec chmod + x {}\; weight loss VBOX Disk File sdelete-c-z C: \ VBoxManage modifyhd -- compact WINXP. set buffer_wri for the vdi MlDonkey Option Tes_delay %10240buffer_writes trueclient_buffer_size %trueED2K-force_high_id trueED2K-max_connected_servers 10enable_kademlia %0max_hard_upload_rate 20max_opened_connections 600%_scan_interval 300 Options> Web infos, Remove all items, clear ~ /. Add the following three items after the mldonkey/web_infos Directory: server. met http://ed2k.im/server.met 24guarding. p2p http://ed2k.im/ipfilter.dat 96kad http://ed2k.im/nodes.dat 24 use apt-fast to accelerate APT download sudo add-apt-repository ppa: apt-fast/stablesudo apt-get updatesudo apt-get install apt-fast process related pgrep XXX # query pkill XXX # killall XXX # Kill all programs to prevent a software package from upgrading sudo echo "XXX hold "| sudo dpkg -- set-selections configuration Wine pure Edition 1. dash-> Search for wine and run Configure Wine Setup 2. activate the zookeeper repository page. Enter "“winemenubuilder.exe" in the top menu of the newly added zookeeper, add, edit, and disable the service. 3. activate the zookeeper repository page. Enter “winemine.exe in the top-down menu of the newly added zookeeper, add, edit, and disable the function. If int main () {return 0; has been compiled into main.exe, run cp-f main.exe $ HOME /. wine/drive_c/windows/system32/winemenubuilder.exe cp-f main.exe $ HOME /. wine/drive_c/windows/system32/winemine.exe, and then change the deactivation steps 2nd and 3 to the original one. 4. on the drive page, add the D partition and specify the path as $ HOME/qpSOFT/Wine. At the same time, change the Z partition path to $ HOME5. "about" Page and enter the Windows Registration Information. Name: loaden, unit: qpsoft6. run the Winetricks program, install the font: corefonts, and then copy simhei from the XP system. ttf simsun. ttc to Fonts directory 7. install DLL or components as needed: winetricks cmd vcrun6 vcrun2003 download: http://www.winehq.org/download/ubuntu/https://launchpad.net /~ Ubuntu-wine/+ archive/ppa thoroughly clear Wine and delete $ HOME /. local/share/applications/mimeapps. the list contains wine entries to delete $ HOME /. find $ HOME /. config-name '* wine *'-exec rm {}\\; find $ HOME /. local-name '* wine *'-exec rm {}\\; find $ HOME /. local-name '* wine *'-exec rm-r {}\\; rm-rf $ HOME /. local/share/icons/hicolorrm-f $ HOME /. local/share/applications/mimeinfo. cache Wine font error handling when calling batch processing err: wineconsole: WCUSER_SetFont wrong fon Terr: wineconsole: WINECON_Fatal Couldn't find a decent font, aborting solution: $ LANG = C $ wineconsole cmd or $ wineconsole XXX. another bat solution: $ wine cmd $ XXX. in this way, the Chinese font cannot be found, but Chinese characters must be supported: 1. batch file encoding must be GBK2. line end must be in Windows style 64-bit system Wine missing gnome-keyring-pkcs11.so error handling see: http://askubuntu.com/questions/127848/wine-cant-find-gnome-keyring-pkcs11-so1) Install getlibs: wget https://launchpad.net /~ Jcollins/+ archiv... a2_all.debsudo dpkg-I getlibs_2.06-0ubuntu1 ~ Ppa2_all.deb2) Install the 32bit library: sudo getlibs-p gnome-keyring: i3863) Make the symbolic link: sudo mkdir/usr/lib/i386-linux-gnu/pkcs11sudo ln-s/usr/lib32/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so/usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so 64-bit Ubuntu system, use Wine to simulate a 32-bit Windows terminal. The default environment variable is export WINEARCH = win32export WINEPREFIX = $ HOME /. wine32/winecfgwinetricks ie6 can solve the problem of W 32-bit IE installation error. However, every time you run a 32-bit Windows program, such as IE6, You need to export the environment variable. The bash script can simplify the operation: wine32.sh #! /Bin/bashexport WINEARCH = win32export WINEPREFIX = $ HOME/. wine32/winefile double-click Install or run in the File Manager. 64-bit system installation 32-bit glGO1) download the glGo-1.4.1.deb, double-click to use the software center installation, will prompt the software package quality poor: Don't worry about it, OK. 2) install getlibs to get and install any 32-bit library wget https://launchpad.net /~ Jcollins/+ archiv... a2_all.debsudo dpkg-I getlibs_2.06-0ubuntu1 ~ Install the 32-bit library sudo getlibs-p libpython2.7: i386 appmenu-gtk: I ?sudo apt-get install ia32-libs lib1_62: i3864) Soft link sudo ln-s/usr/lib32/libpython2.7.so. 1.0/usr/lib/libpython2.5.so. 1.05) and GNUGO to a disk sudo apt-get install gnugo MinGW-w64 static link-static-libgcc-static-libstdc ++ or-static correction dpkg-I *. after deb is installed, you cannot trust sudo apt-get install-f to obtain the path of the script file. The path contains the file: $0, as long as the path is: 'dirname "$0" 'ol batch text replacement grep "old"-rl. /| xarg S sed-I "s/old/new/g" grep "Objbase. h "-rl. -- include = *. cpp -- include = *. h | xargs sed-I "s/Objbase. h/objbase. h/g "Or: sed-I" s/original string/New String/g "'grep original string-rl directory 64-bit system build 32-bit environment 1 through chroot. installation Tool: sudo apt-get install debootstrap schroot2. edit configuration: sudo editor/etc/schroot/chroot. d/32. conf, add the following content: [32] description = Ubuntu 32 Bittype = directorydirectory =/32 users = loaden, okayengroups = usersroot-groups = rootpersonality = li Nux323. installation system: sudo debootstrap -- arch i386 -- variant = buildd precise/32 http://mirrors.163.com/ubuntu/4. configuration System: sudo schroot-c 32 # access system a as an administrator. update source # echo "deb http://mirrors.163.com/ubuntu precise main universe">/etc/apt/sources. list # apt-get updateb. language Support # locale-gen en_US.UTF-8 zh_CN.UTF-8c. time zone # dpkg-reconfigure tzdatad. required tool # apt-get install bash-completion nano sudoe. font # apt-get install ttf-w Qy-* f. graphical interface # apt-get install libgtk2.0-0 libgtk-3-0 appmenu-gtk appmenu-gtk3 # echo "export DISPLAY =: 0.0">/etc/profile. d/gui_support.shg. support PPA source add # apt-get install python-software-properties4. software Installation. install FoxReader $ sudo dpkg-I FoxitReader_1.1.0_i386.deb $ sudo apt-get install libcanberra-gtk-module $ schroot-c 32-p FoxReader # Run B. install glGo $ sudo dpkg-I glGo-1.4.1.deb $ sudo apt-get install libsm6 li B000062 libsdl-image1.2 libsdl-ttf2.0-0 libsdl-mixer1.2 libglu1-mesa libpython2.7 gnugo $ sudo ln-s/usr/lib/libpython2.7.so. 1.0/usr/lib/libpython2.5.so. 1.0 $ schroot-c 32-p glGo # Run 5. build a 32-bit Qt5 compiling environment sudo apt-get install "^ libxcb. * "libx11-xcb-dev libglu1-mesa-dev libxrender-dev libedit-dev libfontconfig1-dev-y6. install GCC4.7sudo add-apt-repository ppa: ubuntu-toolchain-r/testsudo apt-get updatesudo ap T-get install gcc-4.7 g ++-4.7 uninstall excess kernel query all kernels: dpkg -- get-selections | the kernel in use in grep linux cannot be deleted: uname-r Delete unnecessary kernel: sudo apt-get remove XXX screen brightness query maximum brightness: cat/sys/class/backlight/acpi_video0/max_brightnesssudo gedit/usr/bin/bright Add :#! /Bin/bashpkexec/usr/lib/gnome-settings-daemon/gsd-backlight-helper -- set-brightness 15 among them -- the value of set-brightness 15 depends on the 1/2 and between 3/4. Add the executable permission: chmod + x/usr/bin/bright setting: gsettings set org. gnome. settings-daemon.peripherals.input-devices hotplug-command "/usr/bin/bright" View: cat/sys/class/backlight/acpi_video0/* brightness Ubuntu the following signature is invalid: BADSIG 40976EAF437D05B5sudo rm-r/var/lib/apt/listssudo apt-get update: update the software package through source code compilation. public Key installation: sudo apt-get install debian-keyring # developer Public Key 1. install dependency: sudo apt-get build-dep XXX2. download source code: apt-get source XXX3. replace source code Or modify the source code 4. re-compile: cd source code directory & dpkg-buildpackage-rfakeroot-uc-b5. overwrite and install sudo dpkg-I *. deb install GCC-4.7 compiler sudo add-apt-repository ppa: ubuntu-toolchain-r/testsudo apt-fast install gcc-4.7 gcc-4.7-multilib g ++-4.7g ++-4.7-multilib update mplayer and smplayersudo add-apt-repository ppa: motumedia/mplayer-dailysudo add-apt-repository ppa: smplayer2/dailysudo apt-fast install mplayer2 smplayer2 command line decompress to the specified directory sudo tar xvf XX X.tar. xz-C/opt does not need to add the J option. tar recognizes the compressed package format based on the compressed package name. Therefore, xvf can be used as a universal parameter.
 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.