Ana içeriğe atla

Kayıtlar

Bash String Split

I was looking for ways of splitting strings in bash and found and awesome one. If you have a delimited string lets say by an _ you do this first set IFS="_" then ar=($string_delimited_by__) You got an array ar with elements coming from this string.

Debian Multimedia

As described in http://wiki.debian.org/MultimediaCodecs when you need multimedia codecs for debian you must add this repo for lenny deb http://debian-multimedia.org/ lenny main non-free.

Debian Lenny Freenx and Pidgin

Recently installed debian lenny on two machines. after using ubuntu much time, debian comes a bit stranger. Correct repos need to be enabled. Everything not as easy as in ubuntu. But debian does its job better.Anyway, the first problem is with pidgin.Pidgin doesnt have MSN support if you install it from the standart repos. After some search I understood that one needs to install it from debian-backports repo by this apt-get -t lenny-backports install pidgin. The second one is about freenx. There is some info about this at net. Some non-official repos gives freenx binaries which I didnt want to try. Instead I used ubuntu freenx ppa team's official repo for this. Here is the repos for freenx deb http://ppa.launchpad.net/freenx-team/ppa/ubuntu intrepid main deb-src http://ppa.launchpad.net/freenx-team/ppa/ubuntu intrepid main. Easily installed freenx from these and voila.

OpenBSD AMP install

I continue to work with mysql and php install on openbsd. I made some progress. After installing mysql and php one must install php5-mysql package too. Then making some soft links, mysql extension is made readable by php.Inside /var/www directory there must exist a /tmp directory writable by others for storing session info etc. Adding required directives to apache's,php's config files it began working. I have some minor problems to be solved.

Ubuntu Socks Proxy

I realised that Ubuntu (mine is 10.04) has a system wide Socks Proxy setting while kubuntu dont. It is a simple setting from Proxy Server menu. Write your proxy host and port number and apply it to system-wide. In my case because I do a dynamic ssh port forwarding to my localhost at some port, I wrote at Socks server part "localhost" and my forwarded port number.

Vista To Access a Samba Share

To be able to access a samba share or printer from Windows Vista, it is not enough just share it on the linux side. One needs to make sudo smbpasswd -a username where username is the username on the vista side. And give him the password of his Vista account.