Fedora Configuration tips (wireless network settings, input method selection, and gvim auto maximum)

Source: Internet
Author: User
Tags filezilla gstreamer
This article describes how to use fedora configurations, including setting wireless networks, selecting input methods, and automatically maximizing gvim. For more information, see Fedorafedora 16 wireless network settings.

Fodera16 is the 3.x kernel, and the driver of the wireless Nic is a bit different. You can install the SDK using the following method. you need to install several packages using a wired network. The steps are as follows:

Run this command to check the network card

Lspci | grep Network

If Broadcom Corporation is the vendor, there should be no problem. we will continue to execute the following operations under root.

Execute these two rpm packages and it will add the source we need for your yum

Rpm-Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpmrpm-Uvh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

Then you can consider upgrading the following systems. if you do not have time, you can continue the upgrade.

Yum search kmod-wl

This step is mainly because fedora is a Linux kernel of 3.x. if yum install kmod-wl directly, it won't work.

Next, let's look at our system version.

Uname-r

Then, select the package containing the system number in the search name to install the package.

Wait a moment after the installation is successful.

You can manually load the driver

modprobe wl

Wait until you can see that there is a wireless network in the network of the taskbar.

Fedora 16 Gvim automatic maximization

Install wmctrl

yum install wmctrl

In ~ /. Append the following code to vimrc:

function Maximize_Window()  silent !wmctrl -r :ACTIVE: -b add,maximized_vert,maximized_horzendfunction

In ~ /. Append the following code to bashrc:

alias gvim='gvim -c "call Maximize_Window()"'
Interoperability between fedora 16 Gvim and the system clipboard

Copy the content in gvim to the system clipboard "+ y

Copy the system clipboard content to gvim "+ p

Fedora 16 Gvim select input method

Activities-> Applications-> Other-> Input Method Selector. click the Input Method Selector.

Click the Preferences link after Use IBus to bring up IBus Preferences. select the Tab of the Input Method.

Select + Show all input method from the drop-down menu and select Chinese from the drop-down list. then, you can see the Chinese input method in the sub-menu of Chinese.

Select "Pinyin" and click "Add" on the right to Add the Pinyin input method to the input method. in this case, you can switch the input method as in Windows, the default value is Alt + Shift for the next input method. the switch between the two commonly used input methods is the same as that in Windows with Ctrl + space. of course, you can change the shortcut key for the input method switch, you can change the two shortcut keys in the General section of the IBus Preferences.

If you cannot select an input method, install the IBus input method and use yum to install it under the root account.

yum install ibusyum install ibus-sunpinyin
Fedora 16 yum uninstalls the packages associated with the installation.

Yum list yum * list yum plug-ins

Find the yum-plugin-remove-with-leaves.noarch plug-in the listed plug-ins

Installing this plug-in yum install yum-plugin-remove-with-leaves.noarch

Then, in yum-h, we can find that an option is added.

-- Remove-leaves remove dependencies no longer needed by any other packages

With this option, you can delete the packages associated with the installation.

Run chrome under fedora 16 root user

Run/opt/google/chrome/google-chrome? User-data-dir = ""

Fedora 16 deletes redundant kernels

In linux, you may need to delete the old kernel or accidentally upgrade the kernel when you upgrade the kernel.

Simple deletion method:

Rpm deletion method:

Rpm-qa | grep kernel * (search for all Linux kernel versions) rpm-e kernel-(version to be deleted)

Yum deletion method

Yum remove kernel-(version to be deleted)

Manually delete unnecessary kernel library files in the/lib/modules/directory delete unnecessary kernel source code in the/usr/src/kernel/directory delete core files started in the/boot directory kernel image to change grub configuration, delete unnecessary kernel boot list

Fedora 16 Gvim uses the tags file

The tags file generated by ctags-R allows you to jump to any function location in Gvim. Generation and import of tags files:

After the ctags-R command is executed, the tags file generated in the current directory cannot change the directory. If you want to generate a tags file in your own directory, first cd into your directory, and then specify the location of the code in ctags. For example: ctags-R/***/mycode

There are two methods to import the ctags File: specify the tags file when gvim is started. after gvim-t/path/tagsgvim is started, enter the import command: set tags =/path/tags

Fedora 16 yum only downloads the installation package but does not install

Yum has a plug-in to ensure that you only download the corresponding rpm, but not install it.

yum install yum-plugin-downloadonly.noarch

After installing this plug-in, yum will add two parameters:

-- Downloadonly -- downloaddir =/path/to/direx: yum install ***** -- downloadonly -- downloaddir =/home/wangyb

Installation of the Ora 18 little penguin input method (fcitx)

First uninstall the ibus input method and install fcitx

yum remove ibusyum remove imsettings imsettings-libs im-chooseryum install fcitxyum install fcitx-pinyin -yyum install fcitx-sunpinyin

Then modify ~ /. Bashrc, add the following code:

Export GTK_IM_MODULE = ximexport XMODIFIERS = "@ im = fcitx" export QT_IM_MODULE = xim

In imsetting, select the default input method fcitx.

imsettings-listimsettings-switch FCITX

Note: Fcitx configuration file :~ /. Config/fcitx/configsunpinyin configuration file :~ /. Config/fcitx/conf/fcitx-sunpinyin.config

Install fcitx-configtool to configure fcitx

yum install fcitx-configtool.x86_64
Fedora 18 switching Caps Lock and Control

In the xfce desktop environment ~ /. Add the following sentence to bashprofile:

/usr/bin/setxkbmap -option "ctrl:swapcaps"
Install the Video Decoder on fedora 18
yum install gstreamer-plugins-bad gstreamer-ffmpeg gstreamer-plugins-ugly
Fedora 18 boot Filezilla automatically

For a while, Filezilla is always set to start after each boot and cannot find the cause. After the session is cleared, it is recommended that Filezilla be shut down if it is not properly closed. For xfce scenarios, follow these steps to clear the session [Settings]-> [Session and Startup]-> Tab [Session]-> Button [clear saved sessions]

The Numlock key is automatically enabled when fedora 18 is started.

Install numlockx: yum install numlockx

Append the following content to. bashprofile:

Set numlock onif [-x/usr/bin/numlockx]; then/usr/bin/numlockx onfi

Fedora 18 input Default keyring

For a while, when google-chrome is started for the first time after the startup, the system always prompts you to Enter the Password [Enter Password for Default Keyring to Unlock], which may be the cause of your initial Password change. The solution is as follows:

Delete ~ /. Gnome2/keyrings/Default. keyring

If you are prompted to enter the password next time you log on, enter a blank password.

Fedora 18 sets the default JDK

Download JDK from the official Oracle website (for example, jdk1.7.015)

Decompress jdk1.7.015 and copy the decompressed folder to/usr/lib/jvm.

Alternatives? Config java can only see the default openjdk of fedora

Install oracle jdk

alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7.0_15/bin/java 500alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk1.7.0_15/bin/jar 500alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.7.0_15/bin/javac 500

Alternatives? You can see two jdk types in config java, and then select the second jdk that is just installed, as shown below:

[Root @ localhost jvm] # alternatives -- config java

There are 2 programs which provide 'java '.

Selection Command1/usr/lib/jvm/jre-1.7.0-openjdk.x86. 64/bin/java2/usr/lib/jvm/jdk1.7.015/bin/java

Enter to keep the current selection [+], or type selection number: 2

If there are two types of javac and jar, set them as in step 1.

Verify whether the default jdk has changed by java-version.

[Root @ localhost jvm] # java-versionjava version "1.7.015 "Java (TM) SE Runtime Environment (build 1.7.015-b03) Java HotSpot (TM) 64-Bit Server VM (build 23.7-b01, mixed mode)

After upgrading to fedora20, there is a problem with emacs startup.

Problem: Symbol's function definition is void: semantic-mrub-update

Solution: delete the legacy *. elc file.

cd ~/.emacs.d/emacs-pluginsfind . -name '*.elc' -delete
Eclipse produces C [libsoup-2.4.so.1 + 0x6d9c1] error

Solution: Add-Dorg. eclipse. swt. browser. DefaultType = mozilla to the eclipse configuration file.

If the problem persists, try to add:-Dorg. eclipse. swt. browser. XULRunnerPath =/usr/lib64/xulrunner/

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.