June 2012 Archives

openssl编译问题

| No Comments | No TrackBacks

编译的时候务必要设定enable-shared

eg:

./config -fPIC enable-shared threads --prefix=/home/work/local/

尼玛我厂product.scm上不是坑爹的build.sh嘛! 还专门写了no-shared, 我TMD就奇了怪了, 明明-fPIC了肿么mysql编译的时候还提示(against `OPENSSL_cpuid_setup' can not be used when making a shared object; recompile with -fPIC)openssl要加上-fPIC...

archlinux notes

| No Comments | No TrackBacks

 

不打算启用wired network的话不要在/etc/rc.conf中设置eth0和wlan0
 
pacman key init先
 
pacman -Sc清除缓存
pacman -Syu 系统升级到最新
pacman -S遇到error with file conflicts的时候加上--force即可
 
pacman的base-devel等同于(equivalent)ubuntu的build-essential
 
安装openssh
pacman -Sy openssh
启动sshd
/etc/rc.d/sshd start
修改/etc/rc.conf
在DAEMONS array中添加sshd
 
 
启用fvwm和xfce4前记得安装xorg
 
chromium提示无法以root身份运行的两种解决方法, 建议前者:
vim /etc/chromium/default
 
CHROMIUM_FLAGS=""
改为
CHROMIUM_FLAGS="--user-data-dir"
 
或者
vim /usr/bin/chromium
xhost + #关闭Xorg access control, 允许其他用户连接当前display
sudo -i -u suchasplus /opt/google/chrome/chrome
xhost - #开启Xorg access ctrl
 
----
sigh, root敢死队路过