Cumartesi, Aralık 18, 2010

Rsync with SSH

I have forgot to make rsync on ssh and decided to note here:

To rsync local files at dir/ to remote server  we do this

rsync -rave ssh dir/* user@rem:/remotedir

Perşembe, Kasım 04, 2010

Ubuntu Freenx is not installed or was disabled problem

I have had such an error after I installed freenx from its ppa to Kubuntu 10.10 and tried to connect to it from another Kubuntu. I have searched the solution from web. But couldnt find a solution.Later I have realised that it is a problem with file permissions and did this

sudo chmod o+rw /var/lib/nxserver/db/running/

That solved my case.

Pazartesi, Temmuz 05, 2010

nspluginwrapper installed

Bingo!
===>  Cleaning for curl-7.20.1
===>  Cleaning for linux_base-f10-10_2
===>  Cleaning for linux-f10-atk-1.24.0
===>  Cleaning for linux-f10-cairo-1.8.0_1
===>  Cleaning for linux-f10-expat-2.0.1
===>  Cleaning for linux-f10-fontconfig-2.6.0
===>  Cleaning for linux-f10-gtk2-2.14.7_2
===>  Cleaning for linux-f10-jpeg-6b
===>  Cleaning for linux-f10-pango-1.22.3_1
===>  Cleaning for linux-f10-png-1.2.37_1
===>  Cleaning for linux-f10-tiff-3.8.2
===>  Cleaning for linux-f10-xorg-libs-7.4_1
===>  Cleaning for c-ares-config-1.7.2
===>  Cleaning for libssh2-1.2.6,2
===>  Cleaning for nspluginwrapper-1.2.2_7

Freebsd nspluginwrapper port install

It is necessary to install nspluginwrapper and some more from ports to be able to use flash plugin in freebsd. For this, one needs to get ports collection.And try to compile nspluginwrapper and its dependencies. I first get a problem when installing curl. It is a configuration problem about curl. After some search, I understood that in ftp/curl directory of ports, one must do the following
make clean && make config. And in the config screen I disabled the option which makes curl not compile. Then contiuned to install nspluginwrapper in its directory. Of course I had some other errors which I solved them by searching the web.

Cumartesi, Temmuz 03, 2010

Freebsd X11 and KDE4

Installed FreeBSD 8.0 from German ftp site because the installer didnt recognise my cdrom. Initially no x server and wm installed. Later I installed Xorg,KDE4 from packages.In order for  X server recognise mouse and keyboard I needed to put hald_enable="YES" and dbus_enable="YES"to rc.conf file. Then made Xorg -configure and done. Also added Modes "1680x1050" to Screen section of xorg.conf to enable wide screen. Now trying to install amarok,k3b and firefox...

Çarşamba, Haziran 30, 2010

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.

Çarşamba, Haziran 23, 2010

Awesome Console Posting

From the command line using command line utils for Google Data API

Perşembe, Haziran 17, 2010

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.

Pazartesi, Haziran 14, 2010

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.

Salı, Haziran 01, 2010

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.

Cuma, Mayıs 21, 2010

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.

Cuma, Mayıs 14, 2010

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.

Perşembe, Mayıs 13, 2010

Ubuntu 10.04 Ubuntu One Unable To Add Computer

Recently installed Ubuntu Lucid 10.04 to a machine and tried to use UBuntu One. It is by default installed.But couldnt make the machine connect to Ubuntu One account. Here is the solution
u1sync --authorize.

Çarşamba, Mayıs 05, 2010

Openbsd php

Recently installed php 5.2.10 to Openbsd 4.6. Tried to execute a simple script with failure. Then recognised that the script should begin with <?php not with <?. :)

Ubuntu installer wont recognise my hard disk

Yes 10.04 Lucid Lynx didnt recognise my sata hard disk.So the install failed. A quick search revealed that after starting up the live cd and getting live ubuntu system, one needs to "sudo apt-get remove dmraid" to be executed to finally make the installer recognise the hard drive.

Perşembe, Nisan 29, 2010

Mysql Backup Restore

I think it would be only possible to restore data correctly when restoring my mysql backup file, after converting it to ISO8859-1 from UTF-8 by the following command
iconv -f UTF-8 -t ISO8859-1 backup.sql.

Salı, Nisan 27, 2010

Windows 7 NFS Services

Finally Windows 7 Ultimate and/or Enterprise releases have NFS clients prebuild. To use them you must enable them by enabling windows' programs. After enabling, you can mount a nfs share using a simple mount command as you do when mapping drives   like
mount -o [options] \\ComputerNameorIP[:]\Share DriveName:\
No more looking for third party nfs clients/servers.

Perşembe, Nisan 22, 2010

Solaris 10 AMP (SAMP)

Newly installed Solaris 10 on Virtualbox. There are some ways to install AMP on it like using www.blastwave.org's packages or using CoolStack packages. I chose the latter and downloaded files from CoolTools website at sunsource.net. Following the instructions it installed files into /opt/coolstack folder. Apache and php workes like a charm without any configuration or edit. But for mysql there is some little config to do. After installation user and group mysql should be added. Because there comes no database at first, mysql_install_db script should be run. Also my.cnf file need to be added to /opt/coolstack/mysql_32bit/ folder. After those running mysql.server start command initiates the mysql daemon.

Salı, Nisan 20, 2010

Kubuntu FreeNx Sound and Network

Recently I needed to use Nx with my oildu Kubuntu machine.I struggled with many problems to succeed. First of I recognised that Kubuntu network configuration fails (unconfigured) when I dont login to my account and get an X login. I have had network configuration manually edited to files /etc/network/interfaces and /etc/resolv.conf. But I used  know that the manual settings at /etc/network/insterfaces is not considered by the network-manager rather network-manager uses its settings. Because newtwork-manager doesnt start without logging in to X, I was not able to connect to my machine in any way at network. The first major problem. To resolve this I removed network-manager and installed "wicd" instead.Put the appropiate settings to wicd configuration and rebooted the computer.Voila, my machine got connected to the network (I guess it still  uses the wicd settings not the ones at those two files under /etc, but anyway). Now the second problem. OK i installed the freenx by usind freenx-ppa team's repo.But when I  connect to  machine and try to listen to music there is no sound even I check a setting at nxclient like "Add multimedia support". I researched and saw that it needs Esd (Esound) xine plugin. I firstly installed some packages like "pulseaudio-esound-compat" but no help. Then I found a package "libxine1-all-plugins" and installed. Finally choosing this device at Amarok's settings I got the sound from my remote machine. Lots of research and try gave me the sound :))

Pazartesi, Mart 22, 2010

VirtualBox error VERR_CFGM_VALUE

When I configured Solaris guest host on virtualbox I overlooked the kind of network adapter.It was set to be an pcnet adapter. I tried to forward the port 80 to host's 8080 port and gave proper VBoxManage commands on Win7 host. And tried to start VM.But it failed and gave the error I wrote on the subject of this post. I realised later that on solaris guest host there was an AMD adapter and now trying to port forwarding with a e1000 adapter lead to this error. To resolve this I manually deleted the corresponding lines at the XML config file under my home dir. Gave the correct adapter and forwarded its ports. And now it works.

Perşembe, Mart 18, 2010

IE sucks

Here is an excerpt from a web page I came across recently: Notice the classification of browsers (normal and, so to speak abnormal)


Cuma, Mart 12, 2010

Windowsu gommek

Guvensiz ve kararsiz olan Windowsa bir iki program dolayisiyla bagimliyiz.Yani linuxta o programlari kullanamiyoruz ve onlari linuxa port etmek icin bir emek gerekiyor.Bu durumda windowsu gommek (yani linuxun icinde sanallastirmak) cok iyi bir cozum.Guclu bir bilgisayara once linux, uzerine VM olarak windows kurun.Sonra windowsa RDP ile baglanin. VM programinizda windowsa usb disk destegi vermeyin.Isterseniz cd yi de gostermeyin.Ve en onemli nokta: windowstaki interneti sinirlayin. IE7+ daki content advisorla kullanicilarin windowstan girecegi siteleri belirleyin hatta hic internet vermeyin. Peki insanlar nasil internete girecek? Onu da linux uzerinden yapsinlar.Bu sekilde guvenli bir windowsunuz olur.

ScribeFire ile tekrar merhaba

Kubuntu sistemimi  guncelledigimden beri firefoxa ScribeFire kurmamistim. Bugun kurdum. Buldugum cozumleri bloga yazmanin onemini bir kez daha kavradigimdan artik her seyi buloga yazmak gerekecek.Jpgraph icin Fedora 9 a nasil msttcorefonts yuklenecegini bloga yazdigim yazidan buldum.Yukledim fakat jpgraph onu gormemekte israrli. Bakalim ne olacak?