Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

How to share files between Windows and Xubuntu

Okay,this is a instructional tutorial,Follow the instruction step by step ,and you will make it!
1.Install samba and smbfs.
sudo apt-get install samba smbfs
2.Install fusesmb,this will make thing easier to browser network places in Thunar.
sudo apt-get install fusesmb
However, in order to use it, it is necessary to add in the fuse modules loaded at startup:
sudo sh -c "echo fuse >> /etc/modules"
If you want to enjoy it without restarting:
sudo modprobe fuse
3.Add users can use FUSE fuse in the group, for example:
sudo adduser hongjun fuse
4.Once the fuse module loaded (modprobe fuse or reset), the module is materialized by / dev / f use, but the default rights are not correct.
sudo chgrp fuse /dev/fuse
4.Create a folder that you want mount the LAN network resources to:
sudo mkdir /media/network
sudo chmod 777 /media/network
5. Use the command below,and work done!
fusesmb /media/network
cd to /media/network and you will see shared resoureces in your LAN,using
fusesmb.cache to refresh hosts.

Make SciTE Support Chinese

SciTE is the most powerful and lightweight editor I have never seen in linux before.By default,it does not support Chinese input and display,so we need to do some configuration work.
$sudo scite
This will start scite at root privilege,because we need write privilege.
Click Option menu,choose Open User Options File,add codes below to the file:
# 支持utf-8中文
code.page=65001
LC_CTYPE=zh_CN.UTF-8
output.code.page=65001

now,try typing some Chinese words,it works!

PS:I use SciTE as my C/C++ editor,of course I need the function of autocompletion,this is easy to configure,just uncomment the line:
autocompleteword.automatic=1
The only bug I had found is the Stop Executing function does not work for me.I had to turn off SciTE every time.

Mplayer error when open rmvb file

I got Mplayer worked on my Ubuntu ,but when I open an rmvb media file,it prompt an error message says:
ERROR: Could not open required DirectShow codec drvc.so
Here is a solution to this error:
$sudo apt-get install libstdc++5