My Linux Experiences

体验Linux

Wednesday, March 10, 2010

Install Slackware 13 using UNetBootin

To install Slackware 13 using UNetBootin, you need to:

1. Download slackware-13.0-install-dvd and extract it to the root area of a hard drive(e.g. E:\).

2. Insert a USB.

3. Start UNetBootin, then select 'Custom', For the kernel, select one from the extracted ISO (e.g. E:\kernels\hugesmp.s\bzImage); for the Initrd, select one accordingly too. (e.g. E:\isolinux\initrd.img). Select the USB you've just inserted and click 'OK'.

4. Follow the instructions to reboot your computer and select 'Boot from the USB Hard Drive'.

5. You should now begin your Slackware installation progress. Just remember that, after logging in as root and before entering 'setup', please mount the hard drive which has been extracted the ISO image into. (e.g. 1. mkdir /mnt/foobar, 2. mount -t ntfs /dev/sda3 /mnt/foobar)

6. Enter 'setup' and remeber to select 'Install from a pre-mounted directory".

That's it.

Kernel URL>> http://slackware.osuosl.org/slackware-13.0/kernels/hugesmp.s/bzImage
Initrd URL>> http://slackware.osuosl.org/slackware-13.0/isolinux/initrd.img

Sunday, January 24, 2010

FCITX 安装

不需要ZH Locale
参照水木帖子
http://www.newsmth.net/bbscon.php?bid=392&id=489854

修改文件:
/etc/gtk-2.0/gtk.immodules文件,把有关xim的部分改成:
"/usr/lib/gtk-2.0/2.4.0/immodules/im-xim.so"
"xim" "X Input Method" "gtk20" "/usr/share/locale" "en:ko:ja:th:zh
否则的话,右键可以看到输入法还是default

如果你升级系统了,可能你的/etc/gtk-2.0下没有东西的话就改这个:
/usr/lib/gtk-2.0/2.10.0/immodule-files.d/libgtk2.0-0.immodules
把有关xim的部分改成:
"/usr/lib/gtk-2.0/2.10.0/immodules/im-xim.so"
"xim" "X Input Method" "gtk20" "/usr/share/locale" "ko:ja:th:zh"
加上"en:"
ok,现在logout再登录
运行
im-switch -s fcitx设置fcitx为默认输入法,
现在就可以用ctrl+space调出输入法了,用鼠标点击fcitx图标“智能拼音”可以切换输入法(如五笔等),enjoy!

Saturday, January 23, 2010

打算把desktop换成linux

今夜尝试

1. Format USB Stick: to FAT (2G) or FAT32 (>2G)

2. Download syslinux. Unzip it. Run in cmd: syslinux.exe -m -a H:, where H is the USB drive. (remember to run as admin)

3. Download initrd.gz and vmlinuz to H.

4. Create file syslinux.cfg, and write to it:
default vmlinuz
append initrd=initrd.gz

5. Reboot from USB stick.

Sunday, July 6, 2008

打印机设置

开始双面打印死活不行
其实很简单
http://localhost:631/
CUPS里root登录
搞定一切设置

Thursday, July 3, 2008

debian sid 安装 kde gnome共存

其实很简单啊
apt安装kde就可以了
如果以kde作主桌面的话
把display manager选成kde
gnome还是可以用的

整vim

研究了一个晚上vim-latexsuite
大大的赞
熟了之后效率应该很高
只是不知道以后写latex的机会还多不多。。。

但是学到alt key macros的时候
发现和gnome-terminal的alt键设置冲突
没找到合适的解决办法还

所以尽管我喜欢terminal下的字体显示和颜色搭配
看来还是得习惯gvim了
争取把gvim改得和terminal下差不多

基本目标如下:
  • 找到合适的color scheme
  • 最好能透明背景
  • 保存到启动设置
在~/.gvimrc里稍微设置了一下
先将就用吧
" toggle toolbar
set guioptions-=T

" default font
set guifont=Courier\ 10\ Pitch\ 16

" default coloescheme
colorscheme dante

Tuesday, July 1, 2008

再装无线网卡

由于装了sid,内核版本现在是2.6.25.2
装完后启动时,隐约看到b43又在报错
用dmesg
果然看到详细的错误
说是需要版本4以上的fireware
顺着错误提示到了
http://linuxwireless.org/en/users/Drivers/b43#fw-b43-new
说是要011版本的b43-fwcutter
于是apt-get安装之
follow自动配置
结果还是没用(dmesg依然报错)

于是考虑自己下载编译
结果make: cc: Command not found
于是装gcc包
make /b43-fwcutter-011
其实。。其实。。。效果和apt-get是一样的

然后按照提示解压下载的新固件
重启搞定

具体命令如下:

wget http://bu3sch.de/b43/fwcutter/b43-fwcutter-011.tar.bz2
tar xjf b43-fwcutter-011.tar.bz2
cd b43-fwcutter-011
make
cd ..


export FIRMWARE_INSTALL_DIR="/lib/firmware"
wget http://mirror2.openwrt.org/sources/broadcom-wl-4.150.10.5.tar.bz2
tar xjf broadcom-wl-4.150.10.5.tar.bz2
cd broadcom-wl-4.150.10.5/driver
sudo ../../b43-fwcutter-011/b43-fwcutter -w "$FIRMWARE_INSTALL_DIR" wl_apsta_mimo.o