Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

Wednesday, October 08, 2014

Error Saat Suspend Linux/Ubuntu Sebagai Guest VMWare

Sumber : https://gist.github.com/drakkhen/5473067

Kemudahan dalam menggunakan Ubuntu tanpa instalasi langsung di hardware menjadikan solusi virtual machine (vm) sering digunakan.

Untuk kecepatan 'boot' dari vm Ubuntu, saat kita ingin mematikan vm-nya, vm Ubuntu tidak perlu di-shutdown namun cukup dengan suspend.

Namun fungsi ini kadang menjadi masalah. Saat kita mau men-suspend vm Ubuntu, muncul pesan Error dan vm tidak dapat ter-suspend.

Dengan asumsi bahwa VMWare-tools telah ter-instal di dalam vm Ubuntu-nya.

Kemungkinan solusi berikut dapat mengatasinya :


  • 1. Edit berkas /etc/vmware-tools/scripts/vmware/network
  • 2. Menuju ke baris nomor 81. Tambahkan tanda # di awal baris sampai baris ke 87, kecuali baris no 86.
  • 3. Kira-kira menjadi seperti dibawah ini.


 #service=`which service 2>/dev/null`
 #if [ $? = 0 -a -n "$service" ]; then
 #   serviceName=`basename "$script"`
 #   "$service" "$serviceName" "$1"
 #else
    "$script" "$1"
 #fi


  • 4. Simpan berkas tersebut.
  • 5. Cobalah untuk men-suspend vm-nya, seharusnya vm akan ter-suspend dengan baik

Dalam kasus ini penulis menggunakan VMWare Player 10, Ubuntu 12.04 Server di sebagai vm-nya.

Tambahan :
Solusi lain adalah membuat berkas /etc/init.d/network

dengan isinya sebagi berikut :


##############
#!/bin/sh
# Hack for /etc/vmware-tools/scripts/vmware/network which
# otherwise runs deprecated "service networking stop|start"

case "$1" in
stop)
    ifdown -a
    ;;
start)
    ifup -a
    ;;
restart)
    ifdown -a
    ifup -a
    ;;
esac
############### 

Jangan lupa merubah permission berkasnya sehingga berkas ini dapat di-eksekusi.

Tampaknya solusi ini lebih baik dari solusi yang pertama karena jika VMWare-tools di-update, suspend tetap berfungsi.

Wednesday, January 29, 2014

Menyalin Berkas dari dan ke Android 4.0 atau lebih di Ubuntu

Jika menggunakan Windows, setelah driver HP terpasang maka tinggal colok kabel USB maka otomatis Windows akan mengenali SD-Card dan Internal memory di HP.

Untuk pengguna Ubuntu memang tidak semudah itu namun tidak sulit juga.

Masalahnya mungkin dulu mudah tapi kenapa sekarang jadi agak repot ? Karena paket mtpfs saat ini dianggap tidak stabil sehingga tidak ter-install secara otomatis dari Ubuntu.

Beruntung pegawai Google membuat alternatif yang dapat berfungsi dengan baik. Paketnya bernama Go-mtpfs.
Cara instalasinya mudah :

sudo add-apt-repository ppa:webupd8team/unstable
sudo apt-get update
sudo apt-get install go-mtpfs


Jika Anda menggunakan Unity (opsional)  :

sudo apt-get install go-mtpfs-unity

Setelah instalasi paket-paket tersebut kita siap menyambungkan kabel USB ke HP.
Sudah tersambung kabel dari HP ke komputer ? Kembali ke terminal.


go-mtpfs /media/MyAndroid


Perintah ini akan me-mount HP ke komputer di folder /media/MyAndroid. Anda bisa membuka folder ini untuk menyalin (copy) , memindahkan (move) atau menghapus (delete) berkas dari dan ke HP.

Jika telah selesai, Anda bisa un-mount dengan cara :


fusermount -u /media/MyAndroid



Catatan :
  • Tidak bisa un-mounting dari Nautilus 
  • Jika HP terkunci mungkin akan menimbulkan kegagalan. Sebaiknya un-lock HP sebelum mount.
  • Jika kabel USB dipasang ke HP kadang Ubuntu akan mencoba untuk mount secara otomatis. Sebaiknya lakukan un-mount dari Nautilus


Wednesday, December 18, 2013

Masalah Wireless Keyboard dan Mouse setelah instalasi Ubuntu di iMac

Setelah proses instalasi Ubuntu di iMac, masalah utama adalah tidak berfungsinya  keyboard dan mouse bluetooth (wireless) bawaan iMac. Bahkan Anda akan kesulitan untuk memilih OS yang mana yang akan boot setelah re-start ke refind .

Jadi lebih baik menggunakan keyboard dan mouse dengan USB (baik kabel atau nirkabel) jika ingin memakai iMac dengan beberapa OS.


Thursday, October 10, 2013

Instalasi driver Andromax C dan Aktivasi USB Debugging



Untuk Windows Anda perlu meng-instal driver Andromax C yang telah tersedia di dalam handphone.
Untuk Linux, Anda bisa loncat ke bagian mengubah berkas  ADB_USB.INI .

Instalasi driver di Windows.
- Pasang kabel USB ke handphone dan ke komputer.
- Pilih notifikasi "Connected to a USB accessory"
- Pilih "Driver Setup"
- Tunggu sampai AutoPlay / Autorun jalan
- Klik "run Setup.exe"
atau jika AutoPlay / Autorun tidak jalan :
- Buka File Explorer
- Buka CD-Drive (?:) Smartfren AD686G
- Dobel klik "Setup.exe"

- Ikuti petunjuk instalasi sampai selesai
- Cabut kabel USB
- Pasang kembali kabel USB
- Perhatikan Windows akan meng-instal driver yang telah tersedia di komputer

Ubah berkas ADB_USB.INI.
- Di Windows : Buka file ADB_USB.INI di  C:\Users\nama_user_anda\.android, tambahkan baris baru;
- DI Linux : Buka file adb_usb.ini di  $HOME/.android, tambahkan baris baru :

0x109b

- Simpan file ADB_USB.INI

Lihat juga :
Connecting your Android device to Ubuntu

- Dari direktori android-sdk anda di bawah direktori "platform-tools", jalankan
> adb kill-server
> adb start-server
> adb devices

Seharusnya akan terlihat output :
List of devices attached
AD686G  device


Agar dapat melakukan debugging / log-cat Anda perlu men-setting "USB Debugging"

- Dari handphone dengan kabel USB terpasang di komputer, pilih menu "System Setting".
- Pilih (di bagian bawah/akhir) "Developer options". Jika "Developer Options" tidak muncul di menu Settings lihat cara Mengaktifkan Developer Option.
- Centang di bagian  "USB Debugging"
- Akan muncul dialog  untuk memasukkan password
- passwordnya : Cobaaja08x



Sunday, February 13, 2011

Single User / Recovery Mode without root password for maintenance

Original article at :  http://www.noah.org/wiki/Single_User_Mode

This method will get you pass the "Give root password for maintenance" message, the environment will be much more primitive but this should be enough for you to issue a 'passwd' command to change the password for root. If you want to do more than that then you may have to mount filesystems and manually start the network.
  1. Reboot your machine; press 'Esc' to get to the GRUB menu; select your image; press 'e' to edit; select the Kernel line.
  2. Press 'e' to edit the kernel line. Edit the line to get rid of quiet and splash; change 'ro' to 'rw'; and add 'init=/bin/bash'. The line should look something like this (kernel version might be different) :
    kernel /vmlinuz-2.6.15-27-386 root=/dev/mapper/Ubuntu-root rw init=/bin/bash
  3. Press 'enter' then 'b' to boot with these new settings. 
Update :
For GRUB2, if you don't get the GRUB menu while booting, you need to press "SHIFT" key after BIOS shown up until GRUB menu displayed.
Also to boot after editing the entry, you need to press "CONTROL-X" .

    Friday, January 16, 2009

    IBM Lotus Symphony

    One more alternative for free Office Suite on Ubuntu Linux is IBM Lotus Symphony.
    We can get it on http://symphony.lotus.com/ .

    Wednesday, March 05, 2008

    Oracle Environment shell script on Ubuntu

    I install Oracle 10g Express edition in my Ubuntu machine from oracle-xe_10.2.0.1-1.0_i386.deb
    Before that you need to install a library : libaio1 .

    To run sqlplus you need to run a shell script first to update your environment variables. The script is at /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh .
    But I got this error line twice each time I run the script.

    /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/nls_lang.sh: 114: [[: not found


    You need to edit the /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/nls_lang.sh
    at these lines :

    if [[ -n "$LC_ALL" ]]; then
    locale=$LC_ALL
    elif [[ -n "$LANG" ]]; then

    Edit [[ to [ and ]] to ] , so it will be like these :

    if [ -n "$LC_ALL" ]; then
    locale=$LC_ALL
    elif [ -n "$LANG" ]; then


    Actually I don't know is there any side effect but as long as I use it there is no problem with my revised nls_lang.sh .
    So, if you have any better solusion please comment this post. Thank you.

    Blank Netbeans 5.5 on Ubuntu

    Did your netbeans 5.5 can not start ?
    After I installed netbeans5.5 and netbeans5.5-platform in my Ubuntu machine. I started the netbeans from menu but only shown a blank window.
    I found the solution for this issue from ubuntu forum article .
    It's due to the Swing is not compatible with Beryl. You need to set your desktop visual effect to "None".
    You do that from the Desktop menu "System" >> "Preferences" >> "Appearence" >> "Visual Effects" tab , and select "None" .
    Other choices will activate Beryl, so Netbeans can not display anything inside the window.

    Blogged with Flock