admin

非常有动感的印度歌舞

Ashok – Gola Gola 快节奏舞蹈.

How-to Install Notepad++ in Ubuntu with Wine

image

Notepad++ is a free source code editor and Notepad replacement that supports several languages. Running in the MS Windows environment, its use is governed by GPL License.

Based on the powerful editing component Scintilla, Notepad++ is written in C++ and uses pure Win32 API and STL which ensures a higher execution speed and smaller program size.

Notepad++ is no doubt one of the most preferred editor for developers. Unfortunately there isn’t a Linux version. And there is a good reason why it wasn’t ported over to Linux, since it would probably require an entire rewrite of everything to do it. This tutorial is on how to setup Notepad++ in Linux and write a script to run or edit a file from the Linux terminal directly. If you want something that is native to linux then you may want to check out gedit over here.

The steps you will need to follow can be briefly broken into two tasks:

  • Install notepad++ in Linux (I use Ubuntu) using wine
  • Write a Linux script that can invoke notepad++ from any directory in the terminal.

For reference, here is the WineHQ write-up on Notepad++ 5.xx.xx:

http://appdb.winehq.org/objectManager.php?sClass=version&iId=13036

image

How to install Notepad++ in Ubuntu

Drop this doobly-do in your Terminal to install Wine Emulator PPA

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine winetricks

Ok, now close out of terminal. And reopen terminal.

export WINEPREFIX=~/.wine/notepad++
winetricks winxp corefonts gecko gecko-dbg vcrun2005
wget http://download.tuxfamily.org/notepadplus/5.9/npp.5.9.Installer.exe
wine npp.5.9.Installer.exe

There may be other ‘winetricks’ components that you can install later that may help with functionality regarding some of the plugins for notepad++ editor. I haven’t had the time to explore all of them yet. Just a ‘heads up’ about that, in case you find a plugin that doesn’t work in Wine.

Here is where where Notepad++ was installed:

image

Create a .sh empty bash script file:

touch notepad++.sh

Open it gedit:

gedit notepad++.sh

Paste this into your newly created script file:

#!/bin/sh
wine ~/.wine/notepad++/drive_c/Program\ Files/Notepad++/notepad++.exe $1

Save it.

The $1 represents the first argument. If you run the script with a filename as the argument notepad++ will open the particular file. The file path of $1 is by default the present working directory. However you can state the full path there to edit any file which is not the same directory from where you call the script. If the file name does not exist, notepad++ will prompt you to create a new file with that name. If you don’t specify any argument, notepad++ will open normally.

Now we want to make this script file executable from any directory:

sudo chmod 755 notepad++.sh

Open terminal and type:

echo $PATH

This will display the list of common path directories. Copy notepad++.sh to any of those common path directories. (You might need root privileges to copy. So open nautilus as root user)

sudo nautilus

Or you can just try this to copy this file to a normally available common path directory instead:

sudo cp notepad++.sh  /usr/local/sbin/notepad++.sh

How to create a icon on your desktop for notepad++.sh:

Right click anywhere on the desktop, and select “Create Launcher”.

Input the notepad++.sh command and name it whatever you want.

Usage

notepad++.sh
  • notepad++.sh -> open notepad++ normally
  • notepad++.sh document.php -> opens document.php to edit.
  • image

    Special Notes: Test to make sure everything works, and after testing it out please feel free to leave a comment below to relate with other users your personal experience running Notepad++ and its overall functionality emulated in Wine. It should be able to handle most work, but probably not everything it did under native Windows. If you do receive errors or problems using Notepad++ in Wine make sure you read the WineHQ write-up and “Known Bugs” from other users first.

     

    原链接:http://cinderbox.net/2011/05/18/how-to-install-notepad-in-ubuntu-with-wine/

    印度电影《Dhoom》中的精彩片段,高清,宽屏。泡妞必杀技。

    印度地方语电影都非常注意保持自己的地域特点,很多程式轻易不肯改变,而且他们也始终不太愿意放弃对传统歌舞的继承,各个语种都愿意发展一些属于自己的舞种,这就是他们的电影观赏性更强于故事性。请欣赏一段深情款款,摇曳动人的恋曲。

    每次看视频的时候都很烦鸟,以前是在视频里插播广告,后来干脆在广告里插播电视剧了,再后来就是悲剧的直接在广告里插播广告了。 :sad:

    如果你平时经常访问视频网站,又受不鸟这些广告,那么下面告诉你怎么把这些讨厌的广告屏蔽掉。 :lol:

    适用于:优酷网、百度、奇艺、新浪视频、CNTV、乐视、搜狐高清、我乐网、6间房、土豆网、激动网等。 :mrgreen:

    windows XP:

    用记事本打开C:\Windows\System32\drivers\etc\hosts把秘密代码添加到该文件最后一行。

    Win7 & Vista:C:\Windows\System32\drivers\etc 目录下,将hosts文件复制到别的地方,添加秘密代码,修改完了再覆盖掉原来的。如果提示目标文件夹拒绝访问,需要提供管理员权限,点击 继续 即可。

    Linux:/etc/hosts文件,插入秘密代码

    那么什么是秘密代码呢,如下:

    ?Download hosts
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    
    #土豆网
     
    127.0.0.1 adextensioncontrol.tudou.com
     
    127.0.0.1 iwstat.tudou.com
     
    127.0.0.1 nstat.tudou.com
     
    127.0.0.1 stats.tudou.com
     
    127.0.0.1 *.p2v.tudou.com*
     
    127.0.0.1 at-img1.tdimg.com
     
    127.0.0.1 at-img2.tdimg.com
     
    127.0.0.1 at-img3.tdimg.com
     
    127.0.0.1 adplay.tudou.com
     
    127.0.0.1 adcontroL.tudou.com
     
    127.0.0.1 stat.tudou.com
     
    #优酷
     
    127.0.0.1 atm.youku.com
     
    127.0.0.1 fvid.atm.youku.com
     
    127.0.0.1 html.atm.youku.com
     
    127.0.0.1 valb.atm.youku.com
     
    127.0.0.1 valf.atm.youku.com
     
    127.0.0.1 valo.atm.youku.com
     
    127.0.0.1 valp.atm.youku.com
     
    127.0.0.1 Lstat.youku.com
     
    127.0.0.1 speed.lstat.youku.com
     
    127.0.0.1 urchin.lstat.youku.com
     
    127.0.0.1 stat.youku.com
     
    127.0.0.1 static.lstat.youku.com
     
    127.0.0.1 valc.atm.youku.com
     
    127.0.0.1 vid.atm.youku.com
     
    127.0.0.1 walp.atm.youku.com
     
    #酷6网
     
    127.0.0.1 1.allyes.cOm.cn
     
    127.0.0.1 analytics.ku6.com
     
    127.0.0.1 gug.ku6cdn.com
     
    127.0.0.1 ku6.allyes.com
     
    127.0.0.1 ku6afp.allyes.com
     
    127.0.0.1 pq.stat.ku6.com
     
    127.0.0.1 st.vq.ku6.cn
     
    127.0.0.1 stat0.888.ku6.com
     
    127.0.0.1 stat1.888.ku6.com
     
    127.0.0.1 stat2.888.ku6.com
     
    127.0.0.1 stat3.888.ku6.com
     
    127.0.0.1 static.ku6.com
     
    127.0.0.1 v0.stat.ku6.com
     
    127.0.0.1 v1.stat.ku6.com
     
    127.0.0.1 v2.stat.ku6.com
     
    127.0.0.1 v3.stat.ku6.com
     
    #激动网
     
    127.0.0.1 86file.megajoy.com
     
    127.0.0.1 86Get.joy.cn
     
    127.0.0.1 86log.joy.cn
     
    #奇艺
     
    127.0.0.1 afp.qiyi.com
     
    127.0.0.1 focusbaiduafp.allyes.com
     
    #CNTV
     
    127.0.0.1 a.cctv.com
     
    127.0.0.1 a.cntv.cn
     
    127.0.0.1 ad.cctv.com
     
    127.0.0.1 d.cNtv.cn
     
    127.0.0.1 adguanggao.eee114.com
     
    127.0.0.1 cctv.adsunion.com
     
    #新浪视频
     
    127.0.0.1 dcads.sina.com.cn
     
    #pptv
     
    127.0.0.1 pp2.pptv.com
     
    #百度:
     
    127.0.0.1 a.baidu.cOm
     
    127.0.0.1 baidutv.baidu.com
     
    127.0.0.1 bar.baidu.com
     
    127.0.0.1 c.baidu.com
     
    127.0.0.1 cjhq.baidu.com
     
    127.0.0.1 cpro.baidu.com
     
    127.0.0.1 drmcmm.baidu.com
     
    127.0.0.1 e.baidu.com
     
    127.0.0.1 eiv.baidu.com
     
    127.0.0.1 hc.baidu.com
     
    127.0.0.1 hm.baidu.com
     
    127.0.0.1 ma.baidu.com
     
    127.0.0.1 nsclick.baidu.com
     
    127.0.0.1 spcode.baidu.com
     
    127.0.0.1 tk.baidu.com
     
    127.0.0.1 union.baidu.com
     
    127.0.0.1 ucstat.baidu.com
     
    127.0.0.1 utility.baidu.com
     
    127.0.0.1 utk.baidu.com
     
    127.0.0.1 focusbaiduafp.allyes.com
     
    #乐视
     
    127.0.0.1 pro.letv.com
     
    #搜狐高清
     
    127.0.0.1 imagEs.sohu.com
     
    #From LoneBlog.com
     
    #我乐网
     
    127.0.0.1 acs.56.com
     
    127.0.0.1 acs.agent.56.com
     
    127.0.0.1 acs.agent.v-56.com
     
    127.0.0.1 Bill.agent.56.com
     
    127.0.0.1 bill.agent.v-56.com
     
    127.0.0.1 stat.56.com
     
    127.0.0.1 stat2.corp.56.com
     
    127.0.0.1 union.56.com
     
    127.0.0.1 uvimage.56.com
     
    127.0.0.1 v16.56.com
     
    #6间房
     
    127.0.0.1 pole.6rooms.com
     
    127.0.0.1 shrek.6.cn
     
    127.0.0.1 simba.6.cn
     
    127.0.0.1 union.6.cn
     
    #天线视频
     
    127.0.0.1 casting.openv.com
     
    127.0.0.1 m.openv.tv
     
    127.0.0.1 uniclick.openv.com

    涉猎开始歌舞片段

    Ubuntu10.10测试通过
    文章来源于:http://blog.csdn.net/sabalol/archive/2009/07/10/4339032.aspx
    fedora 11的输入法默认使用了ibus,在使用了1个月后,个人觉得它是一个非常不错的输入法,感觉很爽。但唯一美中不足的是,五笔98输入法由于版权的问题,从ibus中移出了。(现在才知道wb98居然有这种问题,让人很不是滋味)其它的就不说了,还是让我们来看看怎么自己添加上吧。

    首先得下载包含wb98的源码包:

    http://ibus.googlecode.com/files/ibus-table-wubi-1.1.0.20090219.tar.gz

    tar zxf ibus-table-wubi-1.1.0.20090219.tar.gz

    cd ibus-table-wubi-1.1.0.20090219

    ./configure –prefix=/usr –enable-wubi98 –disable-wubi86 (安装到ibus的系统目录下,生成wb98的码表,不生成wb86的码表,因为系统已经自带了,且比我们的新)

    sudo make install

    OK了,现在重启一下ibus,在输入法列表中就有我们期待的wb98的输入法了。

    印度电影Thank You 歌舞

    印度电影爱情时光机舞蹈

    © 2011 进化... Suffusion theme by Sayontan Sinha