Far Away: Linux [PDF]

Some time ago I was looking for an open source YouTube clone when I came across something called osTube. When I recently

7 downloads 35 Views 392KB Size

Recommend Stories


From Far Away, Vol. 2
Be like the sun for grace and mercy. Be like the night to cover others' faults. Be like running water

From Far Away, Vol. 11
Don't watch the clock, do what it does. Keep Going. Sam Levenson

Over The Hills and Far Away
Never let your sense of morals prevent you from doing what is right. Isaac Asimov

The Far Away From Home Club
Ego says, "Once everything falls into place, I'll feel peace." Spirit says "Find your peace, and then

[PDF] CPA Review FAR
No matter how you feel: Get Up, Dress Up, Show Up, and Never Give Up! Anonymous

How Far Away Is a Single European Labor Market?
This being human is a guest house. Every morning is a new arrival. A joy, a depression, a meanness,

PDF Linux Administration
Knock, And He'll open the door. Vanish, And He'll make you shine like the sun. Fall, And He'll raise

Kali Linux Cookbook Pdf
At the end of your life, you will never regret not having passed one more test, not winning one more

[PdF] Linux for Beginners
This being human is a guest house. Every morning is a new arrival. A joy, a depression, a meanness,

Linux Mint Essentials Pdf
Just as there is no loss of basic energy in the universe, so no thought or action is without its effects,

Idea Transcript


Home

Tes

Skins

Layout

Contact

Feeds

Far Away

Tampilkan postingan dengan label Linux. Tampilkan semua postingan

undefined undefined.

| 0 komentar

Upgrading VIMP (Community Edition) From 2.0.6 to 2.1.1

Labels

Linux (20) Ubuntu (15) Tips n Trix (6) Mikrotik (4)

Popular Posts

ViMP (a video & social media Content Management System) recently released version 2.1.1 (which includes support for mobile devices). I had previously installed version 2.0.6 (as a virtual machine in VMware vSphere) and thought I would take a look at keeping my ViMP installation up-to-date. The first step is of course to make a backup in-case the upgrade fails – I simply took a snapshot of my virtual machine as this was the quickest and simplest solution.

Newsletter We’ll keep you informed and updated Email address...

First download ViMP version 2.1.1 from here. Upload ViMP 2.1.1 to your server using WinSCP (Windows) or SSH (Linux).

Sign me up!

Now use Putty (Windows) or SSH (Linux) to access the command line interface on your ViMP server.

Visitor

Copy vimp.framework-2.1.1-r19091-community.tar.gz to your installation folder, in my case this was /var/www/showvid/data: sudo cp vimp.framework-2.1.1-r19091-community.tar.gz /var/www/showvid/d ata Change directory and extract ViMP 2.1.1 with the following commands: cd /var/www/showvid/data sudo tar xzf vimp.framework-2.1.1-r19091-commu nity.tar.gz Issue the following commands to upgrade*:

Latest from Twitter

sudo ./symfony rebuild sudo ./symfony cc * Note that If you use languages other than English and update from a version < 2.0.7 to a version >= 2.0.7, the following symfony task must also be executed (in between the two commands above):

Linux (20)

Mikrotik (4) Tips n Trix (6)

./symfony i18n:import --clear

Ubuntu (15)

You should now be able to log in as admin and see that your ViMP installation is running the new version (under the configuration link).

Archives

After the upgrade I found that then when I try to upload video I see an Error in the Admin portal:

Archives

+ Problem executing command FFmpeg version SVN-r0.5.1-4:0.5.1-

More Next Blog»

1ubuntu1.1, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --extra-version=4:0.5.1-1ubuntu1.1 --prefix=/usr -enable-avfilter --enable-avfilter-lavf --enable-vdpau --enabl I logged in as admin and clicked on Administration then Configuration and then Player and set Enable HTML5-player to False. Then under the Media tab I clicked Restart Transcoding on the affected uploads and they converted successfully. After this I clicked on Transcode new formats and this appeared to work. I checked /var/www/showvid/data/logs/framework.convert.log and did not see any errors. So for now I have just left the HTML5 player disabled and my uploads are working without issue (even if they are not being transcoded to the new formats). Additional support is available from the ViMP Forum if required. Read more...

undefined undefined.

| 1 komentar

Ubuntu Server 10.4 Lucid – Installing VIMP (Community Edition)

Some time ago I was looking for an open source YouTube clone when I came across something called osTube. When I recently vistited the osTube site again I found that osTube development had been discontinued. Its successor is ViMP which bills itself as the solution for Social Media, Web TV and Video Communities. It has a host of features and the good news (for me) is that it handles H.264/MP4. Just to be clear though the ViMP Community edition is not open source – the code is encrypted by a PHP encoder called Source Guardian (which must be installed to use ViMP). Hopefully you are OK with that? You will need to register at the ViMP site to download it (the current version is 2.0.6). Extract the ViMP tar-ball and you will find an Installation Guide for Debian in the doc folder. Most of this guide is good for an Ubuntu installation but we will make some changes for our Ubuntu install. My starting point is a virtual machine with a minimal Ubuntu Server installation with the SSH role. So, let’s install ViMP: Fisrt update repositories: sudo apt-get update Install nano (terminal based text editor) and wget (file downloader): sudo apt-get install nano wget Install Apache2 web server: sudo apt-get install apache2 Enable mod_rewrite and then restart Apache2: sudo a2enmod rewrite sudo /etc/init.d/apache2 restart Install PHP5: sudo apt-get install libapache2-mod-php5 Install additional PHP packages: sudo apt-get install php5-cli php5-mysql php5-gd php5-xsl php5-curl Install the MySQL database server: sudo apt-get install mysql-server You will be prompted to provide a root password for MySQL. Make a note of this password for later! Add the Medibuntu repository to your server: sudo wget --output-document=/etc/apt/sources.list.d/medibuntu.list http ://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt -get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticat ed install medibuntu-keyring && sudo apt-get --quiet update Install the transcoding software: sudo apt-get install mplayer mencoder ffmpeg flvtool2 Install video codecs for popular proprietary formats: For 32 bit, sudo apt-get install w32codecs or for 64 bit, sudo apt-get install w64codecs Create directories for ViMP installation: sudo mkdir -p /var/www/showvid/data sudo mkdir -p /var/www/showvid/logs sudo chown -R www-data:www-data /var/www/showvid Create a configuration file for the Apache virtual host: cd /etc/apache2/sites-available sudo nano showvid Copy and paste the following into the /etc/apache2/sites-available/showvid file you just created: DocumentRoot "/var/www/showvid/data/web"ServerName showvid.com ServerA lias www.showvid.com AllowOverride All RewriteEngine On Options -Index es FollowSymLinks ErrorLog /var/www/showvid/logs/error.log CustomLog / var/www/showvid/logs/access.log combined LogLevel error Save the file and exit nano. Enable the showvid virtual host and restart Apache: sudo a2ensite showvid sudo /etc/init.d/apache2 reload Disable the default virtual host and restart Apache: sudo a2dissite default sudo /etc/init.d/apache2 reload Next we need to configure some PHP values. Edit both of the files listed below and change the upload_max_filesize, post_max_size and memory_limit values as per the bullet points: sudo nano /etc/php5/apache2/php.ini sudo nano /etc/php5/cli/php.ini • upload_max_filesize = 1024M • post_max_size = 1024M • memory_limit = 512M Restart Apache: sudo /etc/init.d/apache2 restart Create a MySQL database called showvid: sudo mysqladmin -p create showvid Enter your MySQL password. Enter the MySQL console as the root user: mysql -u root -p Enter your MySQL password again. You should now be at the MySQL prompt: mysql> Create a user called showvid. Change in the first command below to a strong password for the showvid user. Make a note of this password. CREATE USER showvid@localhost IDENTIFIED BY ''; GRANT ALL PRIVILEGES ON showvid.* TO showvid; FLUSH PRIVILEGES; exit Change directories to your user directory: cd /home// Upload ViMP to your server – I used WinSCP to do this. Copy the ViMP tar-ball to /var/www/showvid/data/ and then extract it: sudo cp vimp.framework-.tar.gz /var/www/showvid/data/ cd /var/www/show vid/data/ sudo tar xvzf vimp.framework-.tar.gz sudo rm vimp.framework-. tar.gz Make the symfony file in /var/www/showvid/data/ executable: sudo chmod +x symfony At this point we would normally be able to execute the symfony file but because we are using the Community edition of ViMP we must install SourceGuardian. To do this we will need to know the version of PHP that we have installed: php -v Now that we know what version of PHP we are using we can copy and extract the Source Guardian loaders that are supplied with ViMP. First create a temporary directory to work in: cd /home// mkdir temp cd temp/ Now extract the file /var/www/showvid/data/data/loader.tar.gz to the current directory: tar xfz /var/www/showvid/data/data/loader.tar.gz For the next step you will need to look in either the Linux_x86-32 folder (if your installation is 32 bit) or the Linux_x86-64 folder (for 64 bit). Assuming that you are running PHP 5.3.2 like me you will want the Source Guardian ixed.5.3.lin loader file .

Now that we have matched a loader to our version of PHP we need to make a folder in /usr/lib/php5/ that we can copy the Source Guardian loader to. The format of the folder is year, month, date +lfs. I don’t think that it really matters what date we choose, so I used the one provided in the Debian installation guide: sudo mkdir /usr/lib/php5/20060613+lfs Copy the loader file ixed.5.3.lin to the /usr/lib/php5/20060613+lfs/ folder: sudo cp Linux_x86-32/ixed.5.3.lin /usr/lib/php5/20060613+lfs/ Create a Source Guardian configuration file: sudo nano /etc/php5/conf.d/sourceguardian.ini Add the following two lines to sourceguardian.ini: [sourceguardian] zend_extension=/usr/lib/php5/20060613+lfs/ixed.5.3.lin Restart Apache: sudo /etc/init.d/apache2 restart Source Guardian installation is now complete. Change directory back to /www/showvid/data and run symfony - just make sure that you change to the password you defined for the showvid user earlier on: cd /var/www/showvid/data sudo ./symfony framework:init mysql://showvid: @localhost /showvid Finally we need to set up a cronjob that runs every minute to convert uploaded videos to the right format. Edit the crontab: sudo crontab -e Copy and paste the following line at the bottom: */1 * * * * /var/www/showvid/data/scripts/sync_new_uploads.sh > /dev/nu ll 2>&1 You can now access ViMP with a web browser. The password for the admin account is 'admin' so you might want to change that after you log in. That's it, now sit back and enjoy your own video community! Source Read more...

undefined undefined.

| 0 komentar

Howto: Upgrade Linux Kernel

H

ow do I upgrade my Linux kernel? I would like to upgrade kernel without compiling from source code i.e. binary upgrade. How do I perform the actual upgrade of the

kernel in Linux? You need to compile kernel only if: => You need custom made kernel for specific task such as embedded kernel. => Apply third party security patches. => You need to apply specific patch to Linux

Upgrade of the kernel in Red Hat enterprise Linux version Please refer official Gentoo Linux Kernel Upgrade Guide Read more...

undefined undefined.

| 0 komentar

instalasi ispcp pada debian instalasi ispcp pada debian alternatif pengganti cPanel sebagai control panel untuk domain anda :D Jalanin command berikut : #apt-get install aptitude apt-get sama dengan aptitude BAB 1 : Installation 1. Update your packages list: # aptitude update 2. Install needed repository key: # aptitude install debian-backports-keyring 3. Install the new Apache fcgid module version: # aptitude -t etch-backports install libapache2-mod-fcgid

1.1 – Download & Extract # aptitude update && aptitude safe-upgrade # aptitude install tar bzip2 wget lsb-release # mkdir -p /usr/local/src/ispcp # cd /usr/local/src/ispcp Download file ispCP dari SourceForge.net dengan wget, cari mirror nya yang satu kota sama server nya, Pilih file .zip aja yang agak gampang sebelum unzip File, jalanin command berikut #aptitude install zip #aptitude install unzip bis itu baru unzip file (ganti .X.X sama file downloaded Version) #unzip ispcp-omega-1.X.X.zip

1. 2 -Mengubah folder ispcp Ganti .X.X sama file downloaded Version #cd ispcp-omega-1.X.X

1.3 – Install required packages # aptitude update # aptitude safe-upgrade # aptitude install $(cat ./docs/Debian/debian-packages-`lsb_release -cs`) ntar tiba-tiba muncul “courier screen” warna biru terus pilih no untuk web directories. selanjut nya pas “postfix screen” pilih internet site bis itu masukin nama domain tanpa www setelah itu “proftpd screen”, pilih standalone

1. 4 – Build the system # make install

STEP 5 – Copy Folder ke system # cp -R /tmp/ispcp/* /

STEP 6 – Konfigurasi MySQL server # mysql_secure_installation NOTE: JANGAN GUNAKAN @ or $ or % Pada Password!!!

STEP 7 – Setup the system #cd /var/www/ispcp/engine/setup # perl ./ispcp-setup selama proses berjalan, nanti ada beberapa form isian yang harus di sesuaikan dengan kebutuhan server. Setelah selesai rm -fR /tmp/ispcp Read more...

undefined undefined.

| 0 komentar

Perintah dasar FreeBSD Bagi yang masih pemula, pasti bingung untuk mejalankan FreeBSD pada waktu setelah di innstall. Disini saya akan memberikan perintah dasar FreeBSD sebagai dasar untuk mengoperasikan FreeBSD. Setelah anda menginstall FreeBSD dan menjalankan FreeBSD, yang akan muncul adalah permintaan login dari mesin. Login yang biasa pertama kali dipakai itu adalah login dengan user : root. Dan passwordnya adalah sesuai dengan yang anda masukkan pada waktu penginstallan. Jika anda mempunyai user/account yang baru anda buat maka anda dapat masuk ke mesin itu lewat account tersebut. Setelah itu anda dapat mengoperasikan mesin FreeBSD anda dengan perintah-perintah berikut: # ‘cd’ = change directory (pindah ke directory …) # ‘ls’ = list (me-list semua directory dan file yang ada disuatu directory) # ‘rm’ = remove (menghapus suatu file) # ‘mkdir’ = make directory (membuat directory/folder) # ‘clear’ = menghapus semua layar dari perintah-perintah yang pernah kita buat # ‘ps’ = processing status (melihat proses yang sedang bekerja di mesin) # ‘kill’ = menghentikan suatu proses # ‘cp’ = copy (untuk mengcopy suatu file) # ‘whoami’ = untuk mengetahui sebagai apa kita menjalan mesin tersebut # ‘pwd’ = untuk mengetahui kalo kita sedang berada di directory … # ‘tar’ = untuk mengekstrak file compress (file nya harus bertipe .tar.gz) # ‘compress’ = untuk mengkompress suatu file atau directory # ‘whereis’ = untuk mengetahui terletak di directory mana suatu file itu berada # ‘mv’ = memindahkan suatu file ke directory lain atau merubah nama suatu file # ‘passwd’ = untuk merubah password account yang sedang dipakai # ‘ee’ = easy editor (suatu program editor text seperti notepad jika di Windows) Read more...

undefined undefined.

| 0 komentar

Percantik Grub Dengan Burg Salam ubuntuers... kali ini saya akan membahas tentang BURG, apa itu BURG? BURG merupakan singkatan dari Brand-new Universal loadeR from GRUB. yah sebuah fitur yang cantik untuk mempercantik GRUB anda dan untuk menghilangkan kejenuhan karena tampilan default BURG yang berwarna hitam.

Sebelum mencobanya anda perlu memperhatikan kalau BURG ini merupakan fitur yang rentan sekali terhadap system jika pada langkah-langkahnya ada kesalahan, jadi pikirkan terlebih dahulu sebelum anda mencobanya. oke sekarang kita lanjutkan ke tahap penginstallan. Pertama-tama buka konsol/terminal anda lalu eksekusi perintah berikut. # sudo apt-add-repositori ppa: bean123ch/burg # sudo apt-get update && sudo apt-get install burg burg-themes Lalu install burg ke MBR (Master Boot Record) dengan perintah berikut. # sudo burg-install "(hd0)" Kalau Ubuntu yang anda gunakan Versi Jaunty, karmic atau hasil upgrade versi Ubuntu sebelumnya ke lucid, harap periksa dulu isi file "burg" sudo gedit /etc/default/burgUbah baris berikut jadi begini : GRUB_THEME=saved GRUB_FOLD=saved Simpan file dan keluar

Kemudian Update BRUG-nya

# sudo update-burg Untuk mengecek berhasil atau tidak BURG yang barusan di install silahkan cek (simulasi) lewat terminal menggunakan perintah berikut. # sudo burg-emu Bila sukses silahkan tekan huruf t di keyboard anda untuk memilih Theme BURG yang anda inginkan. Silahkan restart Kompi/Laptop anda kemudian tekan tombol t untuk memilih theme yang anda inginkan pada saat tampilan BootLoader. Contoh Screenshootnya>>> Theme Radiance

Theme Coffee

Akhir kata selesai sudah tutor kali ini, semoga apa yang diberikan bisa menjadi manfaat untuk orang banyak, terima kasih telah membaca dan berkunjung ke Blog ini. Salam. Sumber: Disini Read more...

undefined undefined.

| 0 komentar

Cara Install GnoMenu di Ubuntu 10.04 Lucid Lynx Hai para ubuntuers, udah pada tau belum tentang Gnomenu? kalo yang udah tau maaf yah kalo hal ini bikin basi, oke buat yang belum tau saya akan share cara installnya di ubuntu 10.04 LTS. Sebelumnya saya akan sedikit menerangkan apa itu gnomenu, Gnomenu adalah sebuah aplikasi yang diperuntukan untuk panel yang sangat eyecandy untuk menggantikan menu gnome default ubuntu, dan gnomenu ini juga punya theme yang sama persis sama themenya OS Windows. Gnomenu juga saat ini bisa diimplementasikan kedalam AWN, Cairo-dock, XfApplet, Kde Plasma dan di system tray. Untuk cara penginstallannya sangat mudah sekali, pastikan komputer/Laptop anda terhubung ke komputer, buka terminal atau konsol anda lalu eksekusi perintah-perintah berikut. sudo add-apt-repository ppa:gnomenu-team/ppa sudo apt-get update sudo apt-get install gnomenu Cara menambahkan Gnomenu ke panel. Klik kanan pada panel ubuntu anda >> lalu pilih GnoMenu >> lalu melanjutkan dengan klik Add GnoMenu sudah bisa digunakan, bila anda ingin memodifikasinya silahkan klik kanan pada icon GnoMenu lalu pilih Properties.

Selamat berkreasi dengan panel GnoMenu baru anda yang sangat eyecandy semoga bermanfaat. Sumber : Disini Read more...

undefined undefined.

| 0 komentar

First Look at the Ubuntu Unity Desktop Environment Today was a big day for Ubuntu, with Canonical announcing the Unity desktop environment, Ubuntu Light, and more details about Ubuntu 10.10 “Maverick Meerkat”. Unity is a new desktop environment designed for netbooks and touch-screen devices. It includes a new panel as well as a new vertical launcher. Unity is build using technologies from GNOME 3, including the Clutter library and the Mutter window manager. Ubuntu Light is a version of Ubuntu designed to dual-boot with another operating system, and focused on getting on the web fast. It’s a stripped down Ubuntu (no file management) and uses the simpler Unity desktop. Canonical is offering Ubuntu Light to computer manufacturers only, because it’s intended to be customized for specific computers in order to boot fast. Here’s a few other bits of information about the next version of Ubuntu: Ubuntu Netbook Edition will drop Network Manager for Intel’s Connection Manager because Network Manager does not support indicators. This change will probably be included in the Ubuntu 11.04 desktop. GNOME Shell is for desktops (it will be available in Ubuntu 10.10, but not as the default environment), and Unity is for netbooks. Client-side window decorations and RGBA (alpha channel) will be added to Ubuntu 10.10 early in development. More category indicators (like the messaging indicator) will reduce the number of indicators. A sound indicator will hold indicators for media applications and allow interactions like manipulating playlists. Canonical has a professional font foundry working on a new interface font. When it’s ready, there will be a beta program. A new icon theme is being worked on, but it will take a while to complete and may not be finished in time for the next Ubuntu. Ubuntu 10.10 will be released on October 10, 2010 (that’s 10.10.10). You can get all the details by watching Mark Shuttleworth’s UDS keynote (thanks to Alan Pope for posting the video). There’s an official PPA software source from Canonical with a test version of Unity. Here’s how to install it: 1. 2. 3. 4.

Open Ubuntu Software Center. Select Edit->Software Sources->Other Software. Click Add, enter ppa:canonical-dx-team/une, and click Add Source. Search for Unity in the Software Center and install it.

To start Unity, log out to return to the login screen. Select your user, select Ubuntu Unity Netbook Edition in the Sessions box, and log in.

At first glance, it looks like you have the normal netbook edition GNOME panel at the top of the screen, but with a Google search box instead of a window list. There’s also a colourful stack of icons on the left hand edge of the screen. The launcher

The Unity application launcher is a dock. There are some default applications which always appear. Any application that is running will also appear, along with a small indicator that it is running on the left of the icon. The currently focused application also get a indicator on the right side. Selecting an icon in the launcher causes it to glow while the application loads. Dragging up and down scrolls the list of applications, and dragging an icon out allows it to be repositioned. Right clicking on an icon initiates a scale effect which lets you select from all the windows for that application. There’s no support for minimizing windows. It’s not easy to access applications which are not in the launcher because there’s no main menu. One item in the launcher is a folder which will show all the installed applications. The window manager Unity uses the Mutter window manager from GNOME 3. It’s a compositing window manager and supports some basic animations. At this time the integration between window title bars and the panel has not been implemented. The panel and launcher are run by Mutter, so it won’t be possible to use another window manager like Compiz with Unity. [update] A Compiz developer has Compiz working inside Unity, so this may not be true after all. The panel

Clicking the Ubuntu logo scales all the windows and lets you select one to switch to it. The search box goes to Google for now, but later it should be used to search your computer. Everything else on the panel is an indicator, which the current exception of the network manager applet. Despite it’s appearance, the panel is not based on GNOME panel, but is drawn by Mutter. I’m pretty excited about Unity. While the current version is not complete, it does seem to be in a usable state on my netbook so I’ll continue testing it there. Read more...

undefined undefined.

| 0 komentar

Compiz Keyboard Shortcuts in Ubuntu 10.04 Compiz Keyboard Shortcuts in Ubuntu 10.04 Published in May 5th, 2010 Posted by Tom in tips

I couldn’t find much information about keyboard shortcuts for Compiz effects in Ubuntu 10.04. I poked through the default Compiz configuration and found some I didn’t know about, and some that have changed from previous versions of Ubuntu. Some of the following keyboard shortcuts will not work at all if Compiz (visual effects) if turned off. Workspaces Ctrl + Alt + Left/Right/Up/Down arrow – move to the workspace in the given direction Ctrl + Alt + Shift + Left/Right arrow – move the current window to the workspace in the given direction Super + E - “expo” effect, shows all workspaces (move windows with left mouse button, zoom to a workspace with right mouse button) Window Management Super + W – “scale” effect, shows all windows in current workspace (left click selects window, middle click closes window, right click zooms window) Super + A – “scale” effect, shows all windows Alt + F10 – toggle maximize current window Alt + F9 – minimize current window Ctrl + Alt + D – toggle show desktop Alt + Middle mouse button – resize window Alt + Left mouse button – move window Alt + Right mouse button – window menu Alt + F7 – move current window (without holding down mouse button) Alt + F8 – resize current window (without holding down mouse button) Alt + Tab – switch windows on current workspace Ctrl + Alt + Tab – switch windows on all workspaces Accessibility Super + Mouse wheel scroll – zoom screen Super + Middle mouse button – draw rectangle to zoom to Super + N – invert colours of current window Super + M – invert colours of screen (Compiz is configured for this shortcut, but the messaging indicator seems to have taken it over so it doesn’t work) Ubuntu Community Documentation has more on keyboard shortcuts (although some of it is outdated now for Ubuntu 10.04). You can view and change some shortcuts using Read more...

undefined undefined.

| 0 komentar

Mounting Otomatis Partisi NTFS Jika sistem komputer Anda di buat dual booting Windows dan Ubuntu, secara default partisi NTFS tidak dapat di mount secara otomatis saat Anda ingin mengaksesnya dari desktop Ubuntu. Untuk masuk ke dalam partisi NTFS, yang harus Anda lakukan adalah dengan membuka Nautilus (File Manager) dan klik pada partisi NTFS tersebut, lalu masukkan password untuk mengaksesnya. Cara terbaik untuk bekerja di lingkungan desktop Ubuntu adalah dengan membuat partisi NTFS di mount secara otomatis pada waktu Ubuntu di boot. Untuk melakukan itu, yang perlu kita lakukan adalah mengedit file fstab yang terletak di direktori /etc/. Let's start 1. Buka Terminal melalui menu: Applications Õ Accessories Õ Terminal 2. Cari tahu letak partisi NTFS root@playboy:/home/hendra# fdisk -l |grep NTFS /dev/sda2 * 1531 16730 122094000 7 HPFS/NTFS /dev/sda5 16731 28442 94076608+ 7 HPFS/NTFS yang tampil di atas terlihat bahwa letak partisi NTFS saya berada di partisi /dev/sda2,/dev/sda5 3. Buat direktori untuk tujuan mounting partisi NTFS tersebut misalnya: root@playboy:/home/hendra# mkdir /media/win7 root@playboy:/home/hendra# mkdir /media/data

4. Edit file /etc/fstab root@playboy:/home/hendra# vim /etc/fstab Tambahkan baris berikut ini: /dev/sda2 /media/win7 ntfs-3g defaults,force 0 0 /dev/sda5 /media/data ntfs-3g defaults,force 0 0 Keluar dan save dengan menekan :wq lalu restart komputer NB : ntfs-3g adalah driver untuk membaca partisi NTFS Read more...

undefined undefined.

| 0 komentar

Mengembalikan GRUB Loader Ubuntu 9.4 Yang Hilang Setelah Install Windows Biasanya jika memiliki dual boot OS misalkan: Linux dan Windows, dan kebetulan windowsnya error atau sering hang dan ada niat untuk install ulang OS windowsnya, jika kita ingin meng-install ulang kemungkinan GRUB Loader Linux-nya akan hilang karena saat install windows akan menulis ulang/menghapus MBR (Master Boot Record) yang ada dan akan menghapus GRUB Loader Linux, bagaimana cara untuk mengembalikan GRUB Loader Linux yaitu salah satunya dengan cara menggunakan CD Live Linux, misalkan ubuntu jaunty versi desktop, knoppix, dll. Setelah linux live cd sudah running, selanjutnya buka terminal, sebagai root ketik command grub; untuk mengetahui partisi apa saja yang ada; grub> geometry (hd0); drive 0x80: C/H/S = 9729/255/63, The number of sectors = 156301488, /dev/sda Partition num: 0, Filesystem type is ext2fs, partition type 0x83 Partition num: 1, Filesystem type unknown, partition type 0x7 Partition num: 4, Filesystem type unknown, partition type 0x7 Partition num: 5, Filesystem type unknown, partition type 0x82 Pada partisi diatas terlihat bahwa partisi nomor 0 yang digunakan linux, lalu ketik: grub> root (hd0,0); untuk menjadikan GRUB Loader-nya berada di MBR, ketik; grub> setup (hd0); Checking if "/boot/grub/stage1" exists... yes Checking if "/boot/grub/stage2" exists... yes Checking if "/boot/grub/e2fs_stage1_5" exists... yes Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 17 sectors are embedded. succeeded Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,0)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded Done. Jreng .......jangan lupa reboot linux anda, lihat hasil kerja anda :) good luck Read more...

undefined undefined.

| 0 komentar

Installing Firefox 3.5 in Ubuntu - The Easy Way Firefox 3.5 is now officially released. And everyone is so desperately looking for a way to upgrade. I was too. After googling for sometime i found that as of now there is no apt-get upgrade kind of stuff to upgrade to this newer version. But instead i tried ubuntuzilla, a python script. And it worked like a charm.

While using Ubuntuzilla you could obtain the latest updates of not just Firefox, but also Seamonkey and Thunderbird as well, before anyone else. I think that gives you enough reasons to try out this python script. Go on :-) Ubuntuzilla Features * Automatically detects and downloads the newest Firefox, Thunderbird, SeaMonkey release from the Mozilla servers. * Allows you to make a choice of language for Firefox or Thunderbird. * Automatically integrates Firefox plugins that you have installed from the Ubuntu repositories. * Installs an update checker job that periodically performs automatic checks for new versions of Firefox, Thunderbird, or Seamonkey. * New installed version of firefox will become the default. * It even has a 'remove' action to remove the official Mozilla build and restore system to preinstallation state. That is AWESOME ! Installing Ubuntuzilla * Install the following dependencies. sudo apt-get install libstdc++5 libnotify-bin * Download ubuntuzilla .deb package or Visit the download page to confirm if it is the latest version. * Simply double click on the just downloaded deb package to install ubuntuzilla. Installing Firefox 3.5 * Run ubuntuzilla.py in command line by simply typing the same in Terminal. * Then it will show up the latest version of firefox, that is Firefox 3.5. Just follow the instructions afterwards.Nothing hard. Just y/n questions. * When you are prompted to choose the language of choice, if you dont know the one you want, just type 14 there(which is the default en - US). * Thats it. Goto Applications > Internet > Firefox , and you will have your latest frefox 3.5 up and running, and will even prompt you with latest updates(you can disable this feature anytime). Removing Firefox you just Installed * Goto Applications > Accessories > Terminal and do the following. ubuntuzilla.py -a remove -p firefox * And when you remove, only the mozilla build version of firefox that you just installed will be lost. And your old Firefox 3.0.11 will be restored. That is great news. Simply put, you wont loose anything by trying out this small script. I am really impressed with this python script. It gives you so much flexibility. If you want more options or want to know more about ubuntuzilla project visit the official page of ubuntuzilla project at sourcefrge.net. Know more about new features in firefox 3.5 here. Read more...

undefined undefined.

| 0 komentar

Implementasi vlan pada Linux APA ITU VLAN Sebuah Local Area Network (LAN) pada dasarnya diartikan sebagai sebuat network dari kumpulan computer yang berada pada lokasi yang sama. Sebuah LAN diartikan sebagai single broadcast domain, artinya ada sebuah broadcast informasi dari seorang user dalam LAN, broadcast akan diterima oleh setiap user lain dalam LAN tersebut.Broadcast yang keluar dari LAN bisa difilter dengan router. Susunan dari broadcast domain tergantung juga dari jenis koneksi fisik perangkat networknya. Virtual Local Area Network (VLAN) dikembangkan sebagai pilihan alternatif untuk mengurangi broadcast traffic.

Sebuah Virtual LAN merupakan fungsi logik dari sebuah switch. Fungsi logik ini mampu membagi jaringan LAN ke dalam beberapa jaringan virtual. Jaringan virtual ini tersambung ke dalam perangkat fisik yang sama. Implementasi VLAN dalam jaringan memudahkan seorang administrator dalam membagi secara logik group-group workstation secara fungsional dan tidak dibatasi oleh lokasi. Dalam tradisioanl LAN, workstation masing-masing terhubung dengan workstation yang lain dalam sebuah hub. Perangkat ini akan menyebarkan semua lalu lintas data di seluruh network. Jika ada dua user yang mencoba mengirim informasi pada waktu yang sama, sebuah tabrakan (collision) akan terjadi dan semua pengiriman data akan hilang. Jika tabrakan (collision) telah terjadi, pengiriman data akan dilanjutkan disebar di seluruh network oleh hub. Informasi data asal akan terus mengirim sampai dengan collision hilang. Dengan demikian akan banyak membuang waktu dan resource (sumber daya). Untuk mengatasi collision di sebuah network, maka digunakanlah sebuah bridge atau sebuah switch. Perangkat ini tidak akan mem-forward collision, tapi bisa melewatkan broadcast (ke setiap user di network) dan multicast. Dan sebuah router digunakan untuk mencegah broadcast dan multicast dari lalulintas data network. BUAT APA VLAN Menurut IEEE standard 802.1Q, Virtual LANs menawarkan sebuah metode untuk membagi satu fisik network ke banyak broadcast domains. dalam network besar, broadcast domain ini biasanya sama dengan batas IP subnet, yang masing-masing subnet mempunyai satu VLAN. Sebuah VLAN membolehkan banyak Virtual LANs berdampingan dalam sebuah fisik LAN (switch). Artinya jika ada dua mesin yang terhubung dalam switch yang sama tidak dapat mengirim Ethernet frames ke mesin lain meskipun dalam satu kabel yang sama. Jika dibutuhkan untuk komunikasi, maka sebuah router harus ditempatkan di antara dua VLAN tersebut untuk memforward paket, seperti jika ada dua LAN yang secara fisik terpisah. Untuk mengenali traffic dari VLAN yang berbeda, 802.1Q standard mendefinisikan sebuah metode yang disebut VLAN TAGGING. dengan tagging, switches memasukkan 4-bit VLAN tag ke dalam header dari masing-masing frame. sebuah tag mengandung 12-bit. VLAN ID. pengenal frame anggota VLAN. BAGAIMANA VLAN BEKERJA Di banyak distro linux semuanya sudah menyertakan vlan-tool di dalam distribusinya. seperti : Debian : ~]#apt-get install vlan Redhat/Fedora : ~]#rpm -ivh vconfig.i386.rpm Jika distro anda tidak mempunyai program itu silahkan download dengan versi terbarunya di : http://scry.wanfear.com/~greear/vlan.html. Situasi yang dihadapi : * Kernel sudah dicompile dengan dukungan 802.1Q (built-in/module) dan vlan-tool. * Vlan utilities, seperti vconfig, ifenslave, iproute2. * sebuah pc linux * cisco switch * swith AT-8024 (alied telesyn) * cisco router (kalo bisa) SETTING VLAN sebagai root : ~]#modprobe 8021q # lewati baris ini jika kernel anda sudah dicompile built-in 802.1q dan tidak sebagai module. #Silahkan tambahkan tiga vlan interface di eth1 (sebagai contoh) dengan vlan id 5, 6, 7 dan 8 : ~]# vconfig add eth1 5 ~]# vconfig add eth1 6 ~]# vconfig add eth1 7 ~]# vconfig add eth1 8 perhatian: jangan menggunakan vlan 1. karena di banyak device digunakan sebagai management vlan internal (seperti cisco, AT) untuk melihat interface yang telah dibuat : ~]# ifconfig eth1.5 ~]# ifconfig eth1.6 ~]# ifconfig eth1.7 ~]# ifconfig eth1.8 atau ~]#ifconfig -a untuk menghapus vlan interface: ~]# vconfig rem eth1.5 ~]# vconfig rem eth1.6 ~]# vconfig rem eth1.7 ~]# vconfig rem eth1.8 dan banyak informasi dan statistik yang dapat dilihat di /proc/net/vlan/ folder : [root@masterpop3 root~]# cat /proc/net/vlan/eth1.2 eth1.2 VID: 2 REORDER_HDR: 1 dev->priv_flags: 1 total frames received: 53973265 total bytes received: 1075877000 Broadcast/Multicast Rcvd: 397878 total frames transmitted: 41904604 total bytes transmitted: 2333267429 total headroom inc: 0 total encap on xmit: 41904604 Device: eth1 INGRESS priority mappings: 0:0 1:0 2:0 3:0 4:0 5:0 6:0 7:0 EGRESSS priority Mappings: dan sekarang, anda dapat meng-konfigurasi vlan interface anda seperti interface biasa. Untuk meningkatkan kapasitas bandwidth traffic dan load-balancing bisa digunakan bonding interface (silahkan baca dibawah). CONTOH APLIKASI VLAN : * DI LINUX ===================================================== Buat file config untuk startup interface vlan, misal buat /etc/rc.vlan

#!/bin/bash modprobe 8021q ifconfig eth1 down ifconfig eth1 up vconfig add eth1 5 vconfig add eth1 6 vconfig add eth1 7 vconfig add eth1 8 ifconfig eth1.5 10.10.1.1 netmask 255.255.255.0 broadcast 10.10.1.255 up ifconfig eth1.6 10.10.2.1 netmask 255.255.255.0 broadcast 10.10.2.255 up ifconfig eth1.7 10.10.3.1 netmask 255.255.255.0 broadcast 10.10.3.255 up ifconfig eth1.8 10.10.4.1 netmask 255.255.255.0 broadcast 10.10.4.255 up ===================================================== untuk melihat interface yang telah dibuat ketik : /sbin/ifconfig -a * Di Fedora / Redhat Linux (RPM Based) [root@linux aa]# cd /etc/sysconfig/network-scripts/ [root@linux network-scripts]# cat ifcfg-eth1.5 DEVICE=eth1.5 BOOTPROTO=static IPADDR=10.10.1.1 NETMASK=255.255.255.0 ONBOOT=yes VLAN=yes [root@linux network-scripts]# cat ifcfg-eth1.6 DEVICE=eth1.6 BOOTPROTO=static IPADDR=10.10.2.1 NETMASK=255.255.255.0 ONBOOT=yes VLAN=yes [root@linux network-scripts]# cat ifcfg-eth1.7 DEVICE=eth1.7 BOOTPROTO=static IPADDR=10.10.3.1 NETMASK=255.255.255.0 ONBOOT=yes VLAN=yes [root@linux network-scripts]# cat ifcfg-eth1.8 DEVICE=eth1.8 BOOTPROTO=static IPADDR=10.10.4.1 NETMASK=255.255.255.0 ONBOOT=yes VLAN=yes ======================================================== SWITCH MANAGABLE ALIED-TELESYN AT-8024 (24 port) main menu -> VLAN menu (2) -> Configure VLANs (5) 1 Default_VLAN U: 23-24 T: 5 vlan5 U: 1-6 T: 23-24 6 vlan6 U: 7-12 T: 23-24 7 vlan7 U: 13-18 T: 23-24 8 vlan8 U: 19-22 T: 23-24 Port 23,24 sebagai port tagging atau port trunking (yang bisa dihubungkan ke port trunking linux atau router cisco). ======================================================================= CISCO switch && router A. Switch Cisco Configuration Konfigurasikan port yang digunakan untuk tujuan vlan : conf t interface FastEthernet0/1 (#sampai dengan Fe0/6) switchport access vlan 5 ! interface FastEthernet0/7 (#sampai dengan Fe0/12) switchport access vlan 6 ! interface FastEthernet0/13 (#sampai dengan Fe0/18) switchport access vlan 7 ! interface FastEthernet0/19 (#sampai dengan Fe0/22) switchport access vlan 8 end

Sekarang, membuat port trunking (23, 24) di switch cisco. conf t interface FastEthernet0/23 (#port 23 dan port 24 sbg trunking) switchport trunk encapsulation dot1q switchport trunk allowed vlan 5-8 switchport mode trunk B. Router Cisco Configuration ro-cisco>Enable ro-cisco#Configure terminal ro-cisco#Interface FastEthernet0/0.1 ro-cisco#Encapsulation dot1q 5 ro-cisco#IP address 10.10.1.1 255.255.255.0 ro-cisco#Exit ro-cisco#Interface FastEthernet0/0.2 ro-cisco#Encapsulation dot1q 6 ro-cisco#IP address 10.10.2.1 255.255.255.0 ro-cisco#Exit ro-cisco#Interface FastEthernet0/0.3 ro-cisco#Encapsulation dot1q 7 ro-cisco#IP address 10.10.3.1 255.255.255.0 ro-cisco#Exit ro-cisco#Interface FastEthernet0/0.4 ro-cisco#Encapsulation dot1q 8 ro-cisco#IP address 10.10.4.1 255.255.255.0 ro-cisco#Exit ro-cisco#Exit ro-cisco#Write memory =============================================================== Bonding (Port Trunking) Apa itu bonding ? Bonding adalah sama dengan port trunking. Bonding membolehkan anda untuk mengumpulkan banyak port ke single group. kombinasi efektif bandwidth ke dalam single koneksi. Bonding juga membolehkan anda untuk membuat jalur multi-gigabit traffic lalu lintas data ke dalam traffic area tertinggi di dalam network anda. sebagai contoh, anda dapat mengumpulkan tiga megabits port ke dalam sebuah tiga-megabits trunk port. Ini sama artinya dengan punya satu interface dengan kecepatan tiga megabit. Sangat disarankan dalam penggunaan vlan dengan bonding karena dapat meningkatkan ke bandwidth yang tersedia. Dibawah ini contoh script penggunaan vlan dan bonding. #!/bin/bash modprobe 8021q modprobe bonding mode=0 miimon=100 ifconfig eth0 down ifconfig eth1 down ifconfig eth2 down ifconfig bond0 0.0.0.0 ifconfig eth1 0.0.0.0 ifconfig eth2 0.0.0.0 ifconfig bond0 hw ether 00:11:22:33:44:55 ifconfig bond0 10.1.1.3 up ifenslave bond0 eth1 ifenslave bond0 eth2 vconfig add bond0 2 vconfig add bond0 3 vconfig add bond0 4 vconfig add bond0 5 vconfig add bond0 6 ifconfig bond0.2 192.168.2.1 netmask 255.255.255.0 broadcast 192.168.2.255 up ifconfig bond0.3 192.168.3.1 netmask 255.255.255.0 broadcast 192.168.3.255 up ifconfig bond0.4 192.168.4.1 netmask 255.255.255.0 broadcast 192.168.4.255 up ifconfig bond0.5 192.168.5.1 netmask 255.255.255.0 broadcast 192.168.5.255 up ifconfig bond0.6 192.168.6.1 netmask 255.255.255.0 broadcast 192.168.6.255 up echo 1 > /proc/sys/net/ipv4/ip_forward Reference : http://scry.wanfear.com/~greear/vlan/howto.html http://www.linuxhorizon.ro/vlans.html http://www.lanarchitect.net/Articles/VLANTrunking/Implementation/ Read more...

undefined undefined.

| 0 komentar

Install or Upgrade to Pidgin 2.6.1 in Ubuntu(Jaunty, Intrepid, Hardy) the easy way Pidgin 2.6.1 is released. Pidgin is the default IM Client for Ubuntu for a pretty long time now. And Pidgin went through a number of upgrades. But this time it is different. Pidgin brings in the much awaited Voice and Video support for XMPP and are hoping to get these killer features to other protocols as well. In layman's terms, what it means is that now you can use voice chat and video chat in gmail. Though it seems latest pidgin is still a lil buggy. Voice and Video chat may not work as smoothly as it should possibly due to some dependecy issue. But really, hats off to to those who are behind this exponential improvement of our beloved Pidgin. Feature List * Video and Voice chat support for XMPP. * Service discovery browser plugin. * Idle time reporting. * Attention ("buzzing") support. * In-band bytestreams file transfer as a last-resort transfer method. * Updated support for buddy icons. * Full changelog here Now let's see how upgradation (or installation) to Pidgin 2.6.1 can be done. You will have to add GPG key and new repo before you start with upgradation. Adding GPG Key * Simply Copy-Paste the following in terminal. sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A1F196A8 * Done Adding New PPA Repo * Now Goto System > Administration > Software Sources and select Third-Party Software tab and click ADD. And Simply Copy-Paste the following Repo(depending on the version of Ubuntu you use) For Ubuntu Jaunty deb http://ppa.launchpad.net/pidgin-developers/ppa/ubuntu jaunty main deb-src http://ppa.launchpad.net/pidgin-developers/ppa/ubuntu jaunty main For Ubuntu Intrepid deb http://ppa.launchpad.net/pidgin-developers/ppa/ubuntu intrepid main deb-src http://ppa.launchpad.net/pidgin-developers/ppa/ubuntu intrepid main For Ubuntu Hardy deb http://ppa.launchpad.net/pidgin-developers/ppa/ubuntu hardy main deb-src http://ppa.launchpad.net/pidgin-developers/ppa/ubuntu hardy main * Afterwards close the window and Reload when prompted to. * Done Upgrading Existing Pidgin to Pidgin 2.6.1 * Simply do the following in Terminal. sudo apt-get update sudo apt-get upgrade * Done! You have the latest Pidgin 2.6.1 in your Ubuntu. Installing Pidgin 2.6.1 * Again, do the following in Terminal. sudo apt-get update sudo apt-get install pidgin * Done and Pidgin 2.6.1 is ready to go. Pidgin sudah siap dipakai hehehe silahkan di test :) Read more...

undefined undefined.

| 0 komentar

Mount Manager – User-friendly management of disks and partitions The basic functionalities of MountManager are: - Mount and unmount partitions (ext3/2, ntfs, swap, fat, reiserfs, iso9660, udf, …) - Show all logical and physical disks - Change config file /etc/fstab - Descriptions of options and other settings of mounting - Restoration system - Images mounting and unmounting (Nrg, Mdf , Ccd, Bin , etc) - Udev rules creation - Disk wizard - Etc… Plugins are supported and there is good English and Russian documentations to help develop new plugins. . Install mountmanager in ubuntu sudo apt-get install mountmanager This will complete the installation. Using mount manager You can open mount manager from System—>Administration—>MountManager Enter your password and click ok When it opens first time you should see similar to the following welcome screen click close Mount manager screen with available partitions Media device settings screen Tools Menu Plugins menu (Images mounting,shares mounting) Partitions menu Mount manager version details Read more...

undefined undefined.

| 0 komentar

Install Moovida in Ubuntu Jaunty First you need to edit /etc/apt/sources.list file sudo gedit /etc/apt/sources.list Add the following lines deb http://ppa.launchpad.net/moovida-packagers/ppa/ubuntu jaunty main deb-src http://ppa.launchpad.net/moovida-packagers/ppa/ubuntu jaunty main Save and exit Add the GPG key using the following command sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com e478bb3b6bcd9f67c5137df13135cd5c26c2e075 Update the source list sudo apt-get update Install moovida using the the following command sudo apt-get install moovida This will complete the installation Using Moovida Open Moovida from Applications—>Sound & Video—>Moovida Media Center Moovida Media Center is loading in progress Moovida Media Center main Menu Music screen Movie Screen Picture Screen TV Shows screen Plugins Screen Devices & Screen You can download plugins from here Read more...

undefined undefined.

| 0 komentar

Daftar Mirror Repository Ubuntu 9.04 Jaunty Jackalope mirror.cbn.net.id (OpenIXP) 1. deb http://ubuntu.cbn.net.id/Ubuntu jaunty main restricted universe multiverse

2. deb http://ubuntu.cbn.net.id/Ubuntu jaunty-updates main restricted universe multiverse 3. deb http://ubuntu.cbn.net.id/Ubuntu jaunty-security main restricted universe multiverse 4. deb http://ubuntu.cbn.net.id/Ubuntu jaunty-backports main restricted universe multiverse 5. deb http://ubuntu.cbn.net.id/Ubuntu jaunty-proposed main restricted universe multiverse kambing.ui.edu (UI, Telkom, Indosat, OpenIXP, INHERENT) 1. deb http://kambing.ui.edu/ubuntu jaunty main restricted universe multiverse 2. deb http://kambing.ui.edu/ubuntu jaunty-updates main restricted universe multiverse 3. deb http://kambing.ui.edu/ubuntu jaunty-security main restricted universe multiverse 4. deb http://kambing.ui.edu/ubuntu jaunty-backports main restricted universe multiverse 5. deb http://kambing.ui.edu/ubuntu jaunty-proposed main restricted universe multiverse www.foss-id.web.id (Telkom) 1. deb http://dl2.foss-id.web.id/ubuntu jaunty main restricted universe multiverse 2. deb http://dl2.foss-id.web.id/ubuntu jaunty-updates main restricted universe multiverse 3. deb http://dl2.foss-id.web.id/ubuntu jaunty-security main restricted universe multiverse 4. deb http://dl2.foss-id.web.id/ubuntu jaunty-backports main restricted universe multiverse 5. deb http://dl2.foss-id.web.id/ubuntu jaunty-proposed main restricted universe multiverse ftp.itb.ac.id (ITB, INHERENT) 1. deb ftp://ftp.itb.ac.id/pub/ubuntu jaunty main restricted universe multiverse 2. deb ftp://ftp.itb.ac.id/pub/ubuntu jaunty-updates main restricted universe multiverse 3. deb ftp://ftp.itb.ac.id/pub/ubuntu jaunty-security main restricted universe multiverse 4. deb ftp://ftp.itb.ac.id/pub/ubuntu jaunty-backports main restricted universe multiverse 5. deb ftp://ftp.itb.ac.id/pub/ubuntu jaunty-proposed main restricted universe multiverse indika.net.id (OpenIXP) 1. deb http://ubuntu.indika.net.id/ jaunty main restricted universe multiverse 2. deb http://ubuntu.indika.net.id/ jaunty-updates main restricted universe multiverse 3. deb http://ubuntu.indika.net.id/ jaunty-security main restricted universe multiverse 4. deb http://ubuntu.indika.net.id/ jaunty-backports main restricted universe multiverse 5. deb http://ubuntu.indika.net.id/ jaunty-proposed main restricted universe multiverse komo.vlsm.org 1. deb http://komo.vlsm.org/ubuntu jaunty main restricted universe multiverse 2. deb http://komo.vlsm.org/ubuntu jaunty-updates main restricted universe multiverse 3. deb http://komo.vlsm.org/ubuntu jaunty-security main restricted universe multiverse 4. deb http://komo.vlsm.org/ubuntu jaunty-backports main restricted universe multiverse 5. deb http://komo.vlsm.org/ubuntu jaunty-proposed main restricted universe multiverse mirror.cbn.net.id (OpenIXP) 1. deb http://ubuntu.cbn.net.id/Ubuntu jaunty main restricted universe multiverse 2. deb http://ubuntu.cbn.net.id/Ubuntu jaunty-updates main restricted universe multiverse 3. deb http://ubuntu.cbn.net.id/Ubuntu jaunty-security main restricted universe multiverse 4. deb http://ubuntu.cbn.net.id/Ubuntu jaunty-backports main restricted universe multiverse 5. deb http://ubuntu.cbn.net.id/Ubuntu jaunty-proposed main restricted universe multiverse mirror UNEJ 1. deb http://mirror.unej.ac.id/ubuntu jaunty main restricted multiverse universe Cara Pemakaian :D : 1. buka terminal Applications>>Accessories>>Terminal $sudo nano /etc/apt/sources.list 2. masukan mirror repository yang ingin anda gunakan kedalam file sources.list, save and exit 3. index repository dengan mengetikkan perintah $sudo apt-get update Read more...

undefined undefined.

| 0 komentar

How to install Virtualbox 2.2.0 in Ubuntu 9.04 (Jaunty) VirtualBox is a general-purpose full virtualizer for x86 hardware. Targeted at server, desktop and embedded use, it is now the only professional-quality virtualization solution that is also Open Source Software. Install irtualbox 2.2.0 in Ubuntu 9.04 Preparing your system

First you need to install the following package.Dynamic Kernel Module Support Framework.This package contains the framework for the Dynamic Kernel Module Support (DKMS) method for installing and updating kernel modules. sudo apt-get install dkms First you need to download .deb package for ubuntu jaunty from here Now you need to open the .deb package using GDebi click ok File download in progress Virtualbox .deb extract in progress Now you need to click on “Install Package” Enter your password click ok Downloading additional package files in progress Installing dependencies Installing virtualbox 2.2 in progress In the installation process Creating vboxusers group click Forward Compiling vboxdrv module be compiled now click Forward Virtualbox-2.2 completed Now go to Applications—>System Tools—>Sun VirtualBox Now agree license by clicking on “I Agree” Virtualbox main screen Virtualbox version details Install Virtualbox opensource edition in Ubuntu Jaunty If you want to install Virtualbox opensource edition in Ubuntu Jaunty using the following command sudo apt-get install virtualbox-ose virtualbox-ose-guest-source virtualbox-ose-guest-utils dkms Read more...

undefined undefined.

| 0 komentar

INSTALL SQUID 2.7 DEBIAN ETCH Langkah-langkah : • #apt-get update • #apt-get install kernel-package libncurses5-dev fakeroot wget bzip2 build-essential libselinux1 libselinux1-dev debhelper linuxdoc-tools libcap-dev AMBIL SOURCE CODE Squid (Squid 2.7 stable-4) • #cd /usr/src • #wget -c http://www.squid-cache.org/Versions/v2/2.7/squid-2.7.STABLE4.tar.gz • #tar zxvf squid-2.7.STABLE4.tar.gz • #cd • #./configure –prefix=/usr –exec_prefix=/usr –bindir=/usr/sbin –sbindir=/usr/sbin – libexecdir=/usr/lib/squid –sysconfdir=/etc/squid –localstatedir=/var/spool/squid – datadir=/usr/share/squid –enable-linux-netfilter –enable-storeio=ufs,aufs,diskd,null –enable-arp-acl –enable-removal-policies=lru,heap –enable-snmp –enable-delay-pools –enable-htcp –enable-poll – enable-cache-digests –enable-underscores –enable-referer-log –enable-useragent-log –enableauth=”basic,digest,ntlm” –enable-carp –enable-large-files • #make all • #make install Setelah proses compile selesai kita bisa melakukan konfigurasi squid yang berada di /etc/squid/squid.conf. Sebelum mengedit pastikan anda melakukan hal-hal sebagai berikut ini. • #mkdir /var/log/squid • #chown -R proxy.proxy /var/log/squid • #chown -R proxy.proxy / • ganti http_port 10.10.1.2:8080 transparent >> sesuai dengan IP Linux kearah client Contoh file Squid.Conf ##SQUID 2.7 Debian Etch # ##HANDRI AGUSTIAN # ##Using Squid 2.7 With Zph # ## # ##PORT http_port 8080 transparent icp_port 3130 icp_query_timeout 0 mcast_icp_query_timeout 2000 dead_peer_timeout 10 seconds #============================================================$ #hierarchy_stoplist cgi-bin ? #acl QUERY urlpath_regex cgi-bin \? #cache deny QUERY #============================================================$ #============================================================$ # LOGFILE PATHNAMES AND CACHE DIRECTORIES #============================================================$ cache_dir aufs /cache1/ 40000 16 256 cache_dir aufs /cache2/ 40000 16 256 cache_dir aufs /cache3/ 40000 16 256 cache_access_log /var/log/squid/access.log cache_log /var/log/squid/cache.log cache_store_log /var/log/squid/store.log mime_table /etc/squid/mime.conf pid_filename /var/run/squid.pid log_fqdn off log_mime_hdrs off log_ip_on_direct off logfile_rotate 7 debug_options ALL,1 buffered_logs off emulate_httpd_log off #============================================================$ # FTP section #============================================================$ ftp_user anonymous@ ftp_list_width 32 ftp_passive on ftp_sanitycheck on #============================================================$ # DNS resolution section #============================================================$ #cache_dns_program /squid/libexec/dnsserver #dns_children 24 dns_nameservers 202.134.1.10 202.134.2.5 202.134.0.155 #============================================================$ quick_abort_min 0 KB quick_abort_max 0 KB quick_abort_pct 98 negative_ttl 3 minutes positive_dns_ttl 53 seconds negative_dns_ttl 29 seconds forward_timeout 4 minutes connect_timeout 2 minutes peer_connect_timeout 1 minutes pconn_timeout 120 seconds shutdown_lifetime 10 seconds read_timeout 15 minutes request_timeout 5 minutes persistent_request_timeout 1 minute client_lifetime 60 minutes half_closed_clients off ##ACL LIST NETWORK #=================================================================$ #DIRECT IP/DOMAIN LOKAL #==================================================================$ #acl local-dst dst semuaalamatlokal semuaalamatipygdekat #acl local-domain dstdomain localhost domain-anda.com isp-anda.com domainku.web.id #always_direct allow localhost local-dst local-domain #always_direct deny all #===================================================================$ #DEFAULT ACL #===================================================================$ acl all src 0.0.0.0/0.0.0.0 acl manager proto cache_object acl localhost src 127.0.0.1/255.255.255.255 acl to_localhost dst 127.0.0.0/8 acl SSL_ports port 443 563 # https, snews acl SSL_ports port 873 # rsync acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 563 # https, snews acl Safe_ports port 70 # gopher acl Safe_ports port 210 # wais acl Safe_ports port 1025-65535 # unregistered ports acl Safe_ports port 280 # http-mgmt acl Safe_ports port 488 # gss-http acl Safe_ports port 591 # filemaker acl Safe_ports port 777 # multiling http acl Safe_ports port 631 # cups acl Safe_ports port 873 # rsync acl Safe_ports port 901 # SWAT acl purge method PURGE acl CONNECT method CONNECT http_access allow manager localhost http_access deny manager http_access allow purge localhost http_access deny purge http_access deny !Safe_ports http_access deny CONNECT !SSL_ports http_access allow localhost http_access deny all http_reply_access allow all icp_access allow all #===================================================================$ #To Mikrotik #===================================================================$ acl mikrotik src 10.10.1.0/30 http_access allow mikrotik #=============================================================$ ##YOURTUBE + PhotoBucket CACHE #=============================================================$ acl store_rewrite_list url_regex ^http://(.*?)/get_video\? acl store_rewrite_list url_regex ^http://(.*?)/videodownload\? acl store_rewrite_list url_regex ^http://i(.*?).photobucket.com/albums/(.*?)/(.*?)/(.*?)\? acl store_rewrite_list url_regex ^http://vid(.*?).photobucket.com/albums/(.*?)/(.*?)\? cache allow store_rewrite_list cache allow all storeurl_access allow store_rewrite_list storeurl_access deny all storeurl_rewrite_program /usr/local/bin/store_url_rewrite #============================================================$ # Parameter Administratif $ #============================================================$ cache_mgr [email protected] cache_effective_user proxy cache_effective_group proxy visible_hostname proxy.provider.net unique_hostname [email protected] #=============================================================$ #TRANSPARENT PROXY MODE 4 Ver 2.6 #=============================================================$ http_port 10.10.1.2:8080 transparent httpd_accel_no_pmtu_disc on half_closed_clients off header_access From deny all header_access Referer deny all header_access Server deny all header_access WWW-Authenticate deny all header_access Link deny all header_access Via deny all header_access X-Forwarded-For deny all header_access Accept-Encoding deny all header_access User-Agent deny all header_replace User-Agent Mozilla/5.0 (compatible; MSIE 6.0) header_access Accept deny all header_replace Accept */* header_access Accept-Language deny all header_replace Accept-Language id, en #============================================================$ # ACCELERATOR #============================================================$ memory_pools off forwarded_for off log_icp_queries off icp_hit_stale on minimum_direct_hops 4 minimum_direct_rtt 400 store_avg_object_size 13 KB store_objects_per_bucket 20 client_db on netdb_low 9900 netdb_high 10000 netdb_ping_period 30 seconds query_icmp off pipeline_prefetch on reload_into_ims on vary_ignore_expire on max_open_disk_fds 100 nonhierarchical_direct on prefer_direct off #============================================================$ # OPTIONS WHICH AFFECT THE CACHE SIZE #============================================================$ cache_mem 6 MB maximum_object_size 250 MB maximum_object_size_in_memory 32 KB cache_swap_low 98% cache_swap_high 99% store_dir_select_algorithm round-robin ipcache_size 2048 ipcache_low 98 ipcache_high 99 fqdncache_size 2048 cache_replacement_policy heap LFUDA memory_replacement_policy heap GDSF #============================================================$ # SNMP #============================================================$ acl snmpcommunity snmp_community public snmp_port 3401 snmp_access allow snmpcommunity localhost snmp_access deny all #=============================================================$ #Block Iklan menggunakan Adzapper #=============================================================$ #url_rewrite_program /usr/bin/adzapper #============================================================$ #ZPH #============================================================$ #tcp_outgoing_tos 0×30 localnet zph_mode tos zph_local 0×30 zph_parent 0 zph_option 136 #============================================================$ # Refresh Rate #============================================================$ #Youtube refresh_pattern ^http://(.*?)/get_video\? 10080 90% 999999 override-expire ignore-no-cache ignoreprivate refresh_pattern ^http://(.*?)/videodownload\? 10080 90% 999999 override-expire ignore-no-cache ignore-private #Photo Bucket refresh_pattern ^http://i(.*?).photobucket.com/albums/(.*?)/(.*?)/(.*?)\? 43200 90% 999999 override-expire ignore-no-cache ignore-private refresh_pattern ^http://vid(.*?).photobucket.com/albums/(.*?)/(.*?)\? 43200 90% 999999 overrideexpire ignore-no-cache ignore-private #=============================================================$ #image #=============================================================$ refresh_pattern -i \.(swf|png|jpg|jpeg|bmp|tiff|png|gif) 43200 75% 129600 override-expire overridelastmod ignore-reload reload-into-ims #=============================================================$ #dokumen #=============================================================$ refresh_pattern -i \.(doc|xls|ppt|ods|odt|odp|pdf) 43200 75% 129600 override-expire overridelastmod ignore-reload reload-into-ims #=============================================================$ #multimedia #=============================================================$ refresh_pattern -i \.(mov|mpg|mpeg|flv|avi|mp3|3gp|sis|wma|3gp|mp4) 43200 75% 129600 overrideexpire override-lastmod ignore-reload reload-into-ims #=============================================================$ #compression #=============================================================$ refresh_pattern -i \.(zip|rar|ace|bz|bz2|tar|gz|exe|rpm|deb|bin|cab) 43200 75% 129600 overrideexpire override-lastmod ignore-reload reload-into-ims #=============================================================$ #web default eks #=============================================================$ refresh_pattern -i (.*html$|.*htm|.*shtml|.*aspx|.*asp|.*php) 180 35% 4320 override-expire overridelastmod ignore-reload reload-into-ims #=============================================================$ #situs internet validasi 24 jam – lama penyimpanan 7 hari #=============================================================$ refresh_pattern ^http://*.google.*/.* 180 100% 4320 override-expire override-lastmod ignore-reload reload-into-ims refresh_pattern ^http://*.google.co.id/.* 180 100% 4320 override-expire override-lastmod ignorereload reload-into-ims refresh_pattern ^http://*.wordpress.com/.* 180 35% 4320 override-expire override-lastmod ignorereload reload-into-ims refresh_pattern ^http://*.youtube.com/.* 180 100% 4320 override-expire override-lastmod ignorereload reload-into-ims refresh_pattern ^http://*.blogger.com/.* 180 35% 4320 override-expire override-lastmod ignorereload reload-into-ims refresh_pattern ^http://*.wikipedia.*/.* 180 35% 4320 override-expire override-lastmod ignore-reload reload-into-ims refresh_pattern ^http://*.facebook.*/.* 180 35% 4320 override-expire override-lastmod ignore-reload reload-into-ims refresh_pattern ^http://*.wikimapia.*/.* 180 100% 4320 override-expire override-lastmod ignorereload reload-into-ims refresh_pattern ^http://*.astaga.*/.* 180 35% 4320 override-expire override-lastmod ignore-reload reload-into-ims refresh_pattern ^http://*korea.*/.* 180 35% 4320 override-expire override-lastmod ignore-reload reload-into-ims refresh_pattern ^http://*.akamai.*/.* 180 100% 4320 override-expire override-lastmod ignore-reload reload-into-ims refresh_pattern ^http://*.windowsmedia.*/.* 180 100% 4320 override-expire override-lastmod ignore-reload reload-into-ims refresh_pattern ^http://*.googlesyndication.*/.* 180 100% 4320 override-expire override-lastmod ignore-reload reload-into-ims refresh_pattern ^http://*.plasa.*/.* 180 100% 4320 override-expire override-lastmod ignore-reload reload-into-ims refresh_pattern ^http://*.telkom.*/.* 180 100% 4320 override-expire override-lastmod ignore-reload reload-into-ims refresh_pattern ^http://www.friendster.com/.* 180 100% 4320 override-expire override-lastmod ignore-reload reload-into-ims refresh_pattern ^http://www.detiksport.com/.* 180 35% 4320 override-expire override-lastmod ignore-reload reload-into-ims refresh_pattern ^http://www.kompas.com/.* 180 35% 4320 override-expire override-lastmod ignorereload reload-into-ims refresh_pattern ^http://www.detiknews.com/.* 180 35% 4320 override-expire override-lastmod ignore-reload reload-into-ims refresh_pattern ^http://www.photobucket.com/.* 180 100% 4320 override-expire override-lastmod ignore-reload reload-into-ims refresh_pattern ^http://www.detikhot.com/.* 180 35% 4320 override-expire override-lastmod ignorereload reload-into-ims refresh_pattern ^http://www.kapanlagi.com/.* 180 35% 4320 override-expire override-lastmod ignore-reload reload-into-ims refresh_pattern ^http://www.okezone.com/.* 180 35% 4320 override-expire override-lastmod ignore-reload reload-into-ims refresh_pattern ^http://www.indowebster.com/.* 180 100% 4320 override-expire override-lastmod ignore-reload reload-into-ims refresh_pattern ^http://www.telkomspeedy.com/.* 180 100% 4320 override-expire override-lastmod ignore-reload reload-into-ims refresh_pattern ^http://www.imagevenue.com/.* 180 100% 4320 override-expire override-lastmod ignore-reload reload-into-ims refresh_pattern ^http://www.flickr.com/.* 180 100% 4320 override-expire override-lastmod ignorereload reload-into-ims refresh_pattern ^http://www.imageshack.us/.* 180 100% 4320 override-expire override-lastmod ignore-reload reload-into-ims refresh_pattern ^http://www.usercash.com/.* 180 100% 4320 override-expire override-lastmod ignore-reload reload-into-ims refresh_pattern ^http://www.googlesyndication.com/.* 180 100% 4320 override-expire overridelastmod ignore-reload reload-into-ims refresh_pattern ^http://www.co.cc/.* 180 35% 4320 override-expire override-lastmod ignore-reload reload-into-ims refresh_pattern ^http://www.21cineplex.com/.* 180 35% 4320 override-expire override-lastmod ignore-reload reload-into-ims refresh_pattern ^http://www.saatchi-gallery.co.uk/.* 180 100% 4320 override-expire overridelastmod ignore-reload reload-into-ims refresh_pattern ^http://www.onemanga.com/.* 180 100% 4320 override-expire override-lastmod ignore-reload reload-into-ims refresh_pattern ^http://www.jobsdb.com/.* 180 35% 4320 override-expire override-lastmod ignorereload reload-into-ims refresh_pattern ^http://www.imeem.com/.* 180 100% 4320 override-expire override-lastmod ignorereload reload-into-ims refresh_pattern ^http://www.download.com/.* 180 100% 4320 override-expire override-lastmod ignore-reload reload-into-ims refresh_pattern ^http://www.amazon.com/.* 180 35% 4320 override-expire override-lastmod ignorereload reload-into-ims refresh_pattern ^http://www.friendster-layouts.com/.* 180 100% 4320 override-expire overridelastmod ignore-reload reload-into-ims refresh_pattern ^http://www.geocities.com/.* 180 100% 4320 override-expire override-lastmod ignore-reload reload-into-ims refresh_pattern ^http://www.redtube.com/.* 180 100% 4320 override-expire override-lastmod ignore-reload reload-into-ims refresh_pattern ^http://www.files.wordpress.com/.* 180 100% 4320 override-expire overridelastmod ignore-reload reload-into-ims refresh_pattern ^http://indonetwork.co.id/.* 180 35% 4320 override-expire override-lastmod ignorereload reload-into-ims refresh_pattern ^http://gudanglagu.com/.* 180 100% 4320 override-expire override-lastmod ignorereload reload-into-ims refresh_pattern ^http://megaupload.com/.* 180 100% 4320 override-expire override-lastmod ignorereload reload-into-ims refresh_pattern ^http://www.karir.com/.* 180 35% 4320 override-expire override-lastmod ignorereload reload-into-ims refresh_pattern ^http://www.myspace.com/.* 180 100% 4320 override-expire override-lastmod ignore-reload reload-into-ims refresh_pattern ^http://www.multiply.com/.* 180 100% 4320 override-expire override-lastmod ignore-reload reload-into-ims refresh_pattern ^http://www.rapidshare.com/.* 180 100% 4320 override-expire override-lastmod ignore-reload reload-into-ims refresh_pattern ^http://www.4shared.com/.* 180 100% 4320 override-expire override-lastmod ignore-reload reload-into-ims refresh_pattern ^http://www.ziddu.com/.* 180 100% 4320 override-expire override-lastmod ignorereload reload-into-ims refresh_pattern ^http://www.kaskus.com/.* 180 35% 4320 override-expire override-lastmod ignorereload reload-into-ims refresh_pattern ^http://www.kaskus.us/.* 180 35% 4320 override-expire override-lastmod ignorereload reload-into-ims refresh_pattern ^http://www.friendster.com/.* 180 100% 4320 override-expire override-lastmod ignore-reload reload-into-ims refresh_pattern ^http://mail.yahoo.com/.* 180 100% 4320 override-expire override-lastmod ignorereload reload-into-ims refresh_pattern ^http://login.yahoo.com/.* 180 100% 4320 override-expire override-lastmod ignorereload reload-into-ims refresh_pattern ^http://mail.yahoo.co.id/.* 180 100% 4320 override-expire override-lastmod ignorereload reload-into-ims refresh_pattern ^http://mail.google.com/.* 180 100% 4320 override-expire override-lastmod ignorereload reload-into-ims refresh_pattern ^http://*.yahoo.*/.* 180 100% 4320 override-expire override-lastmod ignore-reload reload-into-ims refresh_pattern ^http://*.yahoo.com/.* 180 100% 4320 override-expire override-lastmod ignorereload reload-into-ims refresh_pattern ^http://*.yahoo.co.id/.* 180 100% 4320 override-expire override-lastmod ignorereload reload-into-ims refresh_pattern ^http://*.akamai.net/.* 180 100% 4320 override-expire override-lastmod ignorereload reload-into-ims refresh_pattern ^http://*.yimg.*/.* 180 100% 4320 override-expire override-lastmod ignore-reload reload-into-ims refresh_pattern ^http://*.gmail.*/.* 180 100% 4320 override-expire override-lastmod ignore-reload reload-into-ims refresh_pattern ^http://*.detik.*/.* 180 35% 4320 override-expire override-lastmod ignore-reload reload-into-ims refresh_pattern cgi-bin 0 0% 0 refresh_pattern \? 0 0% 0 refresh_pattern . 0 20% 4320 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern ^ftp: 129600 90% 259200 reload-into-ims override-expire —–LanjUt—– Buat Startup Scripts : • #touch /etc/init.d/squid • #chmod +x /etc/init.d/squid Contoh : #! /bin/sh # # squid Startup script for the SQUID HTTP proxy-cache. # # Version: @(#)squid.rc 2.20 01-Oct-2001 [email protected] # ### BEGIN INIT INFO # Provides: squid # Required-Start: $local_fs $network # Required-Stop: $local_fs $network # Should-Start: $named # Should-Stop: $named # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Squid HTTP Proxy ### END INIT INFO # suffield: jhealy: All local modifications commented with “suffield” NAME=squid DAEMON=/usr/sbin/squid LIB=/usr/lib/squid PIDFILE=/var/run/$NAME.pid # suffield: jhealy: added -F to wait for full rebuild before serving requests SQUID_ARGS=”-D -sYCF” [ ! -f /etc/default/squid ] || . /etc/default/squid . /lib/lsb/init-functions PATH=/bin:/usr/bin:/sbin:/usr/sbin [ -x $DAEMON ] || exit 0 grepconf () { w=” ” # space tab sq=/etc/squid/squid.conf # sed is cool. res=`sed -ne ‘ s/^’$1¢['"$w"']\+\([^'"$w"']\+\).*$/\1/p; t end; d; :end q’ < $sq` [ -n "$res" ] || res=$2 echo “$res” } grepconf2 () { w=” ” # space tab sq=/etc/squid/$NAME.conf # sed is cool. res=`sed -ne ‘ s/^’$1¢['"$w"']\+[^'"$w"']\+['"$w"']\+\ ([^'"$w"']\+\).*$/\1/p; t end; d; :end q’ < $sq` [ -n "$res" ] || res=$2 echo “$res” } # # Try to increase the # of filedescriptors we can open. # maxfds () { [ -n "$SQUID_MAXFD" ] || return [ -f /proc/sys/fs/file-max ] || return 0 [ $SQUID_MAXFD -le 4096 ] || SQUID_MAXFD=4096 global_file_max=`cat /proc/sys/fs/file-max` minimal_file_max=$(($SQUID_MAXFD + 4096)) if [ "$global_file_max" -lt $minimal_file_max ] then echo $minimal_file_max > /proc/sys/fs/file-max fi ulimit -n $SQUID_MAXFD } start () { cdr=`grepconf2 cache_dir /var/spool/$NAME` case “$cdr” in [0-9]*) log_failure_msg “squid: squid.conf contains 2.2.5 syntax – not starting!” log_end_msg 1 exit 1 ;; esac # # Create spool dirs if they don’t exist. # if [ -d "$cdr" -a ! -d "$cdr/00" ] then log_warning_msg “Creating squid spool directory structure” $DAEMON -z fi if [ "$CHUID" = "" ]; then CHUID=root fi maxfds umask 027 cd $cdr start-stop-daemon –quiet –start \ –pidfile $PIDFILE \ –chuid $CHUID \ –exec $DAEMON — $SQUID_ARGS < /dev/null return $? } stop () { PID=`cat $PIDFILE 2>/dev/null` start-stop-daemon –stop –quiet –pidfile $PIDFILE –name squid # # Now we have to wait until squid has _really_ stopped. # sleep 2 if test -n “$PID” && kill -0 $PID 2>/dev/null then log_action_begin_msg ” Waiting” cnt=0 while kill -0 $PID 2>/dev/null do cnt=`expr $cnt + 1` if [ $cnt -gt 24 ] then log_action_end_msg 1 return 1 fi sleep 5 log_action_cont_msg “” done log_action_end_msg 0 return 0 else return 0 fi } case “$1² in start) log_daemon_msg “Starting Squid HTTP proxy” “squid” if start ; then log_end_msg $? # suffield: jhealy: enable interception via tproxy #/usr/local/bin/squid-watcher start else log_end_msg $? fi ;; stop) log_daemon_msg “Stopping Squid HTTP proxy” “squid” # suffield: jhealy: disable interception via tproxy #/usr/local/bin/squid-watcher stop if stop ; then log_end_msg $? else log_end_msg $? fi ;; reload|force-reload) log_action_msg “Reloading Squid configuration files” start-stop-daemon –stop –signal 1 \ –pidfile $PIDFILE –quiet –exec $DAEMON log_action_end_msg 0 ;; restart) log_daemon_msg “Restarting Squid HTTP proxy” “squid” stop if start ; then log_end_msg $? # suffield: jhealy: enable interception via tproxy #/usr/local/bin/squid-watcher start else log_end_msg $? fi ;; *) echo “Usage: /etc/init.d/$NAME {start|stop|reload|force-reload|restart}” exit 3 ;; esac exit 0 —–LanjUt—– Untuk mencache youtube dab photobucket • #touch /usr/local/bin/store_url_rewrite • #vim /usr/local/bin/store_url_rewrite #!/usr/bin/perl $|=1; while () { @X = split; $url = $X[0]; $url =~s@^http://(.*?)/get_video\?(.*)video_id= (.*?)&.*@squid://videos.youtube.INTERNAL/ID=$3@; $url =~s@^http://(.*?)/get_video\?(.*)video_id=(.*?)$@squid://videos.youtube.INTERNAL/ID=$3@; $url =~s@^http://(.*?)/videodownload\?(.*)docid= (.*?)$@squid://videos.google.INTERNAL/ID=$3@; $url =~s@^http://(.*?)/videodownload\?(.*)docid= (.*?)&.*@squid://videos.google.INTERNAL/ID=$3@; $url =~s@^http://(.*?)/albums\?&.*@squid://images.photobucket.INTERNAL/ID=$3@; $url =~s@^http://(.*?)/albums\?$@squid://images.photobucket.INTERNAL/ID=$3@; $url =~s@^http://(.*?)/albums\?&.*@squid://videos.photobucket.INTERNAL/ID=$3@; $url =~s@^http://(.*?)/albums\?$@squid://videos.photobucket.INTERNAL/ID=$3@; print “$url\n”; } • #chmod 755 /usr/local/bin/store_url_rewrite —–LanjUt—– • #update-rc.d squid defaults Source : klik sini Read more...

Beranda

Postingan Lama

Langganan: Postingan (Atom)

Latest News Debian (2) Download Script (3) FreeBSD (1) HandPhone (1) Linux (20) Mikrotik (4) Multimedia (3) Proxy (1) Tips n Trix (6) Ubuntu (15) Vimp (2)

Copyright © 2012 Far Away. Blogger Template by SoraTemplates

Latest Media Debian (2) Download Script (3) FreeBSD (1) HandPhone (1) Linux (20) Mikrotik (4) Multimedia (3) Proxy (1) Tips n Trix (6) Ubuntu (15) Vimp (2)

About LeetPress

Create Blog Sign In

Smile Life

When life gives you a hundred reasons to cry, show life that you have a thousand reasons to smile

Get in touch

© Copyright 2015 - 2024 PDFFOX.COM - All rights reserved.