Sabtu, 29 Juni 2013

rsync dari sever dengan ssh

sedikit tips dan trik dari saya.

 

bagai mana rsync ke server melalui ssh, baik lah tanpa basa basi ini caranya.
rsync -avhP -e "ssh -p port_number" root@ipaddress_or_host:/source/location_file /Destination/on_your_computer

yang perlu di tekankan dalah -e untuk memilih mode protokol yang di gunakan dan -p port number yang digunakan karena ssh server saya tidak mengunakan port 22.

rsync from sever through ssh

well this little bit tips and tricky, handy for me may for another people. ;)

this case I used because, in my computer have bad connection directly to server but so good on local intranet, honestly it little bit nasty because it was use for download torrent then sync complete download to my computer. LOL

okay go head. this command I run on my computer which is use Lubuntu.
rsync -avhP -e "ssh -p port_number" root@ipaddress or host:/source/location_file /Destination/on_your_computer

 

most important things is -e which use to choice protocol to ssh and use option -p because that my ssh server port doesn't use port number 22.

reference

http://oreilly.com/pub/h/38

Senin, 25 Maret 2013

web based skype application

well, this stories while I search web based on skype, and in skype forum that skype officially doesn't made a web based application for skype chat. that sure sometime that make I in trouble when in another computer want to use a skype but the skype application doesn't exist.

 

so I am not mean to be promoted and I doesn't work in this company which provide this application, just share what I know and if you know another web based application then informed to me that would be cool and great for me.

ok, chek it out for try https://imo.im with that web based application I made success with voice call and not sure with video call, but it's help me a lot when in another computer. ;)

 

 

 

skype berbasis web

oke, ini cerita berasal ketika saya sudah lama ingin mencari skype berbasis web untuk chating dan berharap dapat video dan voice chat seperti google talk. dan pencarian udah lama sih tapi belum beruntung atau memang nasib belum ketemu waktu itu.

 

dan akhirnya saya menemukan https://imo.im/ dan setelah saya coba oh wow ternyata lewat sini voice call :D jadi kesimpulannya saya tidak perlu report istall skype lagi kalau mau chat lewat komputer lain ;)

Sabtu, 23 Maret 2013

a nice quote from cheap notebook

suddenly today I got an inspired from a cheap notebook (it's not about computer :D ) with a price about Rp.5k that qoute really cheers me up. and I agree at all with this sentences, I wish could be exist within.

"You'll never know till you have tried"


"Experience is the best teacher"


"Never put off till tomorrow what you can do today"


"Practice makes perfect"


Rabu, 20 Maret 2013

accidentally deleted /var/lib/dpkg

this problem I got was tried to installed a packet and the my ubuntu system shows following error message :
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/)

yeah that pretty easy exactly to fix that just run on terminal like these :
 
sudo fuser -cuk /var/lib/dpkg/lock; sudo rm -f /var/lib/dpkg/lock

sudo dpkg --configure -a

sudo aptitude update

or another option that just reboot/restart your computer :D but it doesn't have technical experience IMO.

that was I should run sudo rm -f /var/lib/dpkg/lock instead of sudo rm -f /var/lib/dpkg :(

then that action show following error :
E: Could not open lock file /var/lib/dpkg/lock - open (2 No such file or directory)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

so, how solution for that trouble, here some of step to resolve that :
mkdir -p /var/lib/dpkg/  /var/lib/dpkg/alternatives/  /var/lib/dpkg/info/  /var/lib/dpkg/methods/  /var/lib/dpkg/parts/  /var/lib/dpkg/triggers/  /var/lib/dpkg/updates/

get a file "dpkg.status.0" that our automatic backup it.
sudo cp /var/backups/dpkg.status.0 /var/lib/dpkg/

then changing the name to status
sudo mv dpkg.status.0 status

create a file which name available
touch /var/lib/dpkg/available

the last do update.
sudo aptitude update

afterwards you try to installing a packet that you want, I wish that work fine and well.

good luck then ;)

reference :

http://ubuntuforums.org/showthread.php?t=1260872&page=2

http://ubuntuforums.org/showthread.php?t=2009399

http://ubuntuforums.org/showthread.php?t=1449160

tidak sengaja menghapus /var/lib/dpkg

oke langsung to the poin aja. jadi cerita ini ketika saya mendapatkan masalah ingin menambah packet di ubuntu. dan tiba2 si packet manager memberikan warning dpkg lock.


E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/)


seharusnya saya melakukan langkah-langkah sederhana berikut.

 
sudo fuser -cuk /var/lib/dpkg/lock; sudo rm -f /var/lib/dpkg/lock



sudo dpkg --configure -a



sudo aptitude update


atau lebih mudahnya lagi tinggal reboot/restart komputer anda :D tapi itu tidak ada nilai pengalaman teknisnya.

seharusnya saya melakukan sudo rm -f /var/lib/dpkg/lock bukannya sudo rm -f /var/lib/dpkg :(

dan ketika ingin menginstal paket aplikasi muncul pesan seperti ini.


E: Could not open lock file /var/lib/dpkg/lock - open (2 No such file or directory)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?


jadi bagaimana donk solusinya, setelah saya cari dan coba - coba ketemu deh solusinya kurang lebih begini.


mkdir -p /var/lib/dpkg/ /var/lib/dpkg/alternatives/ /var/lib/dpkg/info/ /var/lib/dpkg/methods/ /var/lib/dpkg/parts/ /var/lib/dpkg/triggers/ /var/lib/dpkg/updates/


ambil file "dpkg.status.0" dpkg yang di backup sistem


sudo cp /var/backups/dpkg.status.0 /var/lib/dpkg/



Ubah namanya menjadi status

sudo mv dpkg.status.0 status


buat file bernama available

touch /var/lib/dpkg/available


lakukan update

sudo aptitude update


kemudian coba install packet yang anda inginkan. semoga sukses dan selamat mencoba