pkg: PACKAGESITE in pkg.conf is deprecated.

Note for the pkg changes.

pkg version>1.1.4 and Im currently using 1.2.7

after moving onto pkgng, pkg update  shall report following warning:

It’s just a trick and would like people to migrating onto repo files asap.

Please refer
Availability of binary pkgs for Download
Quote:

  1. Ensure your pkg(8) is up-to-date. ‘pkg -v’ should say at least 1.1.4. If it does not, first upgrade from ports.
  2. Remove any repository-specific configuration from /usr/local/etc/pkg.conf, such as PACKAGESITE, MIRROR_TYPE, PUBKEY. If this leaves your pkg.conf empty, just remove it.
  3. mkdir -p /usr/local/etc/pkg/repos
  4. Create the file /usr/local/etc/pkg/repos/FreeBSD.conf with:

FreeBSD move onto PKGNG

I just upgrade my FreeBSD and using PKGNG instead, as old pkg_add is currently marked obsolete.

Ref
pkgng – best thing since sliced bread!

pkgng: First look at FreeBSD’s new package manager

After these steps, run pkg update.

Report following packages conflicts with newers.

after that, pkg update should work.

Reboot.
following 2 libs reported missing:
libgcrypt.so.18 and libpcre.so.1

New system fonts display seems not good,  anti-sawtooth font’s option cannot be enabled.
it should be owned by the auto dependency installed wqy fonts.
problem is involved by a wrong-configured fonts.conf, which applied to all fonts size<17

W/R:
Edit: /usr/local/etc/fonts/conf.avail/85-wqy.conf

replace 16 with 8, or just remove the 85-wqy.conf file.

解决FreeBSD/DragonFlyBSD字体抗锯齿设置无效的问题
X下antialias设置对所有字号小于17的字体均不生效

xarchiver shows empty on zipfile

It’s a stranger issue on my box fc15.

##xarchiver-0.5.2-13.fc15.i686

Xarchiver to show zip/bz2/tar/rar… files correctly but not function for long time on zip.

when Xarchiver opens zipfile, it showed empty window, but it can correctly extract files.

I tried re-install Xarchiver rpm or re-compile from src. it still not working.

[Root cause]
it’s the problem of zip version

[suse@suse ~]$which zip
/u01/app/oracle/product/11.2.0/db_1/bin/zip

well I installed 11.2 db on this box that’s why zip directs to a wrong path. xarchiver only choose binary from $PATH, not hard coding..

## PATH=$ORACLE_HOME/bin:$PATH; export PATH

to solve, put /usr/bin/zip before the $ORACLE_HOME/bin

it’s not always a good practice to put $ORACLE_HOME/bin in $PATH……

Opensuse 13.1 installation on Thinkpad T430

[Installation:]
1. using opensuse 13.1 image from http://www.opensuse.org
openSUSE-13.1-DVD-x86_64.iso

2. format iso to bootable, ignore the warnings.

# isohybrid openSUSE-13.1-DVD-x86_64.iso
Warning: more than 1024 cylinders (4361).
Not all BIOSes will be able to boot this device.

3. write image to the flash-disk.

# cat openSUSE-13.1-DVD-x86_64.iso > /dev/sdb

4. using the flashdisk to boot T430, cleanup current partition tab, taking up full disk.

Done.

Recovery from “rm -rf /bin”

Just hit such a case, mis drop the folder “/bin”.

Enterprise Linux Enterprise Linux Server release 5.7 (Carthage)
Linux 2.6.32-100.37.1.el5uek

os still work. just /bin/ tools no longer functioning, no new access as “/bin/bash” not available.

#Solution.

Now what can be used: scp, vim .. and others in /usr/bin/

Lucky, to find a similar configured box, which should be the same packages version level or lower.

Im using :coreutils-5.97-23.el5
tried to find a box using :coreutils-5.97-23.el5_4.2

##
[root@box09 bin]# scp -r ractest@box06:/bin/ /

##
the bins with a bit lower version works fine within current os, as current platform libs provide a compatible runtime.
to solve the problem completely, run #yum update/reinstall to replace all binaries.

Regards,
-suse