71.putty 无法粘贴
可以通过 shift+Insert
2.在ubuntu 上建立快捷方式 ,press Shift and Ctrl + drag
3.查询linux版本
cat /etc/*-release
4.安装 apt-get RHEL4
http://dbanotes.net/Oracle/How_To_Maintain_RHEL_with_APT.htm
http://anilinux.blogspot.com/2007/09/apt-get-install-for-rhel4.html
1. download http://apt.sw.be/redhat/el4/en/i386/dag/RPMS/apt-0.5.15lorg3.1-4.el4.rf.i386.rpm
2. rpm -ivvh ....rpm
3.#vi /etc/apt/sorces.list.d/os.list (add following mirror )
repomd http://apt.sw.be redhat/el4/en/x86_64/dag/
4.set proxy, sudo export http_proxy=http://ip:8080/ http://不能忘, 我就是没有加这个搞了半天
5. 查看那个端口被那个进程打开
netstat -anp : grep 852
6. 观察内存使用情况
方法1
top -d 1
然后shift + m(Sort by memory usage), 其中RES就是内容使用值
方法二
ps -av
7.重启Xwidnow
sudo /etc/init.d/gdm stop
sudo /etc/init.d/gdm start
8. grub file error unknown filesystem
http://www.dedoimedo.com/computers/grub-2.html#mozTocId842078
9. startdict 字典
http://reciteword.cosoft.org.cn/stardict-iso/stardict-dic/zh_CN/
http://wiki.ubuntu.org.cn/index.php?title=Stardict&variant=zh-cn
10. 挂载onda
sudo mount -t vfat /dev/sdb onda -o uid=1000,gid=100
sudo umount /media/onda
11. change current work dir
currentDir=$(cd `dirname $0` && pwd)
cd $currentDir;
12 ffmpeg Unknown encoder ‘libmp3lame’
when i try to convert avi to mp3 via ffmpeg, the above error occur.
http://lembra.wordpress.com/2009/12/04/ffmpeg-unknown-encoder-libmp3lame/
http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz; tar -xvf lame-3.97.tar.gz; cd lame-3.97;./configure; sudo make && make install
13. ubuntu 32bit 支持 4G内存
sudo apt-get install linux-image-server linux-headers-server linux-server
14. uninstall VMplayer
sudo vmware-installer -u vmware-player
sudo chmod+x ****.bundle
sudo ./****.bundle
15, install yum on RHEL 4
I got this tip from Babar Haq’s Blog with a little modification since I am using RHEL 4.
1. Download yum by using wget
# wget http://linux.duke.edu/projects/yum/download/2.0/yum-2.0.8-1.noarch.rpm
2. Install the rpm
# rpm -ivh yum-2.0.8-1.noarch.rpm
3. Configure /etc/yum.conf to use compatible repository
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
[base]
name=CentOS-$releasever – Base
baseurl=http://mirror.centos.org/centos/4/os/i386/
gpgcheck=1
[updates]
name=Red Hat Linux $releasever – Updates
baseurl=http://mirror.centos.org/centos/4/updates/i386/
gpgcheck=1
4. Download and install the CentOS GPG Key
# wget http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-4
# rpm –import RPM-GPG-KEY-CentOS-4
5. Test yum to see if it works (I tested by running full update on my machine)
# yum update
I got this tip from Babar Haq’s Blog with a little modification since I am using RHEL 4.
1. Download yum by using wget
# wget http://linux.duke.edu/projects/yum/download/2.0/yum-2.0.8-1.noarch.rpm
2. Install the rpm
# rpm -ivh yum-2.0.8-1.noarch.rpm
3. Configure /etc/yum.conf to use compatible repository
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
[base]
name=CentOS-$releasever – Base
baseurl=http://mirror.centos.org/centos/4/os/i386/
gpgcheck=1
[updates]
name=Red Hat Linux $releasever – Updates
baseurl=http://mirror.centos.org/centos/4/updates/i386/
gpgcheck=1
4. Download and install the CentOS GPG Key
# wget http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-4
# rpm –import RPM-GPG-KEY-CentOS-4
5. Test yum to see if it works (I tested by running full update on my machine)
# yum update
http://www.pinoytux.com/linux/howto-install-yum-on-rhel-4
16. when installing websphere 7. the installation precess is always blocked, importconfigarchive
Because Ubuntu uses dash as its default shell instead of bash, this breaks WAS’ installation routine when it comes to setting up the domain profile. (It hangs for ages at 31% when executing the importConfigArchive script, and the fails silently, which is nice.) To fix this you need to relink back to bash (according to Graham, this actually fixes a number of third-party software installation issues):
|
|
|
|
|