Nugroho's blog.: linux
Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Friday, October 30, 2015

Read HFS+ from Linux

 The OS X filesystem, HFS+, by default is in read-only mode in my ubuntu.

 So I installed hfsprogs using
sudo apt-get install hfsprogs

 (you have to enable universe package-source)

 to mount the "Macintosh HD", use this

$mkdir osx
$sudo mount -t hfsplus -o force,rw /dev/sda2 osx

 Nevertheless, it still mounted as read-only, and some folders refused to open at all.

 Here the trick. We have to have same uid as the os x.

 so, create new user

sudo useradd -d /home/newuser -m -s /bin/bash -G root newuser

sudo passwd newuser

sudo usermod --uid 501 newuser

sudo chown -R 501:newuser /home/newuser

 by default the first user on OSX has an uid 501.

 Now, as we have the same uid on linux and OS X. We could freely read the filesystem.

Saturday, October 3, 2015

HFS+ (Journaled) Flash Drive on Ubuntu

 I have no problem mount it on Centos, read and write mode.

 But, on Ubuntu, it needs some works.

 Install hfsprogs

sudo apt-get install hfsprogs

 umount the drive if it's already meunted

sudo umount /dev/sdb2

create folder to mount the drive

mkdir flash

mount again

sudo mount -t hfsplus -o force,rw /dev/sdb2 flash

It works for me, but it need sudo privilege to write to it. Maybe because it's journaled and ubuntu didn't support journaled HFS+ filesystem.

At least it works, :)

Tuesday, October 21, 2014

Keynote on Linux

No, there's no native iWork on my Debian Sid.

It has done via iCloud Drive and iCloud Keynote.

My keynote, wrote it using my old OS X Maverick (or maybe even when my MacBook is still using Lion or Snow Leopard, I forgot), can be accessed via Chrome browser.

Tuesday, October 14, 2014

Coherence on Ubuntu 14.04

When entering Coherence mode in my Ubuntu 14.04 virtual machines, using unity desktop, it asked to disable display visual effects in the virtual machine. 

After DuckDuckGo-ing, it happened that not just the visual effect that must be disabled, but entire unity desktop and have to add gnome-session flshback, :( 

Anyway, the coherence is not what I expect.

Top panel still there, bottom panel is still present

It is the same gnome with OS X background, so I back to Unity again, no coherence mode. It's okay. :)

The Safer Ubuntu

Usually, UNIX-like have weakness (at least that what I though) on password changing. Take the OS X, by default we don't have root password, but we could just $sudo su and then #passwd and tadaa..., we have super users password, we are super user.

but take a look at my ubuntu terminal

nugroho@ubuntu:~$ passwd
Changing password for nugroho.
(current) UNIX password:
Enter new UNIX password:
Retype new UNIX password:
Bad: new and old password are too similar
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
nugroho@ubuntu:~$ passwd
Changing password for nugroho.
(current) UNIX password:
Enter new UNIX password:
Retype new UNIX password:
Sorry, passwords do not match
passwd: Authentication token manipulation error
passwd: password unchanged
nugroho@ubuntu:~$ passwd
Changing password for nugroho.
(current) UNIX password:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

Monday, October 13, 2014

Finally, Ubuntu 4.10 on Parallels Desktop

Express installs make Parallels Tool installed by default.

It created some problem
Problem warning at first boot
No desktop at all, just plain background, no top bar nor side unity menu

It can be solved with this

enter commandline mode using fn-ctrl-option-f1
enter username and password
type commad below
$ cd /etc/X11
$ ls (there should be file named xorg.conf.XXXXXXXX )
$ sudo mv xorg.conf.XXXXXXXX /usr/share/X11/xorg.conf.d/xorg.conf
$ export DISPLAY=:0
$ gsettings reset org.compiz.core:/org/compiz/profiles/unity/plugins/core/ active-plugins

now reboot using $ sudo init 6

yup, the top bar is there, also side Unity bar, but

the desktop is blank, if apps launched it’ll covered with that black veil, the apps is there but there is no way we can look or access it.

go to commandline mode again using ctrl-option-fn-f1
enter username and password
on menu, "choose reinstall parallel tools”
type this command
$ cd /media/nugroho/Parallels\ Tools/
$ sudo ./install
on choice whether we want to reinstall or remove, choose remove
after it done reboot using $ sudo init 6
after login, go back to commandline mode
$ cd /media/nugroho/Parallels\ Tools/
$ sudo ./install
this time choose install (it does autmatically anyway, :) )
after done choose reboot

The desktop is normal again, as normal a particular 14.10 as to be :)

The fact is, I write this post using firefox on Ubuntu 14.10, pasting it from note on my Macbook Air running OS X Mavericks.

The image too, using shared files between host and guess


Saturday, October 11, 2014

Chaotic OS WeekEnd

It happened because of parallel desktop,  

on my Macbook Air with OS XMavericks. 

We know, it have good relationship with Windows, so installing 7 or even 8.1 is breeze. 

But, how about linux? well, not so 

First I used the traditional established method, at least by Parallels. Ubuntu we go, download its compressed pre-cooked package about 1.6GB. 

It works, flawless, but it 13.04, an unsupported distro, no update, in fact the source list have to be modified to oldrelease to be able to got 'update'. 

And the user name is Parallels, :(

(no problem actually, just do this:

$sudo adduser aravir
$sudo usermod -aG sudo aravir
$sudo init 6
login with aravir
$sudo userdel parallels 

and all was well)

The problem arise after ‘update’ using oldrelease repo, suddenly the display went blank, oh my…

So, without think further, delete it. 

Download the 14.04, install it, hey, Parallels recognise it, help the process using express install.

And, after installation finished, restat to boot for first time, the display went blank. Or it doesn’t ‘went’ blank, but it’s blank from the start, who know.

Tired with ubuntu, Install Debian, because it’s way more stable than ubuntu (at least that’s what I thought about the distro) my main desktop on my room’s installed with it. Still have the iso, so go with it.

Install it with no problem. And the first boot is promising. But the Gnome won’t all out. It keep using fallback mode (even ) so I suspect there’s something wrong about it. 

Check the setting, tadaa…, that’s it, video memory only at 64, the official-from-parallels-ubuntu have 256. So I change the setting and restart it. No change. So, move this VM image to trash.

Curious, I didn’t configure my 14.04 video memory, maybe that’s culprit of my blank display.

Reinstall 14.04, this time I configured the hardware so it has 256 video memory. 
firstboot, and…
blank screen, duh…

OK, maybe it’s tinme to use new distro. So I downloaded the top rank distro according to, linux mint, the cinnamon flavor.

install it,

no luck, jeez…

Hm, maybe I have to use the last package to be able to boot graphically. So i went to another route, net install. This time using Debian.

my average 512kbps connection help a lot, :)

after a hour instalation, it finally come to the first boot, and it’s gnome-fallback, ckckck…

another route, net install, but using ubuntu mini.iso.

a hour and half, and then the first boot serving me with the unity like desktop, horay…

but wait, when it go fullscreen, the VM still using its not-widesreen resolution, leaving two black stripe at both edge.

The solution for it’s easy, install parallels tools
$cd /media/{cdroom}
$sudo ./install



and problem solved, :) 

Wednesday, August 27, 2014

TL-WN823N on My Debian Sid

 This mini wireless usb adapter is work out of the box in my debian computer, yeah...

Thursday, January 16, 2014

Ubuntu 13.10 Saucy Salamander

On my mid 2009 13 inch macbook pro running Mavericks 
Installed it in 10 minutes on VirtualBox, tinkering it in almost 5 hours to get compiz 3D acceleration works just right since it's running way too laggy, and finally success... It's the first time I didn't replace unity with gnome or kde (or even xfce, :) ) like the last distro version.

(by add vboxvideo module on /etc/modules)

So far so good, no new problem arise ... yet.

Saturday, December 24, 2011

Tiny Core Linux

Just wandering around and landed in ibiblio, glaring at my mac screen the tiny core linux, just 10 Mb linux distro with GUI, wow… and I thought damnsmalllinux is small enough.

This distribution is based on nothing, I mean it didn't based on large or old distro like ubuntu, debian or slackware like other mini distros that usually is stripped down version of its big distro.

here some excerpt from (
Tiny Core is:

  • Very Small. At 10 megabytes, Tiny Core is 1/400 to 1/100 the size of the most widely used operating systems in the world (even compared to most Linux distros). That makes Tiny Core flexible enough to be stored and run from usb sticks, a just-about-full CD, or even embedded devices. hardware.

  • Linux. Tiny Core uses the Linux Kernel and a set of command-line (text interface) tools including busybox.

  • A GUI Desktop. Tiny Core has a flexible and fully-customizable Graphical User Interface Desktop. Mouse, keyboard, and screen support basically works out-of-the-box thanks to FLWM, the FLTK Desktop. You can also quickly install and try out a variety of other desktops and interfaces including Fluxbox, XFCE, OpenBox, IceWM, Joe's WM, LXDE, and others.

  • Minimal. Tiny Core does not 'ship' with most end-user software. Instead, Tiny Core lets you quickly and easily compare, select, download, and install your preferred web browser, word processor, music player, and other software.

  • Unusually Stable. Every time Tiny Core loads, it is brand-spanking new. That means Tiny Core just doesn't get a blue screen. Instead of installing programs into the system file space and risking damage to the system files, Tiny Core uses program 'extensions' that are re-prepared at each reboot ... and they are prepared fast.

  • Unusually Fast. Unlike most operating systems, the Tiny Core can run completely from RAM. Individuals with RAM to spare can even use Tiny Core to load and run their programs from RAM (you didn't know your computer could run Open Office and Firefox so quick). Experienced users can still install Tiny Core to disk, but Tiny Core can run in 48 megabytes of RAM ... or less.

  • Internet ready. Tiny Core almost always finds your network card right right away. You'll be adding applications and tools after an unusually quick boot. You can even come back here and ransack the forums if you find you need help.

  • Available even smaller. Linophiles that get things done without a GUI can get the MicroCore, a version of Tiny Core without X that is under 7 MB.

  • An open source community. Tiny Core is under active community development, led by a team of really dedicated people. You can find answers and ask questions in the forum, add your own experiences to the wiki, help add extensions (programs) to the Tiny Core Repository, and read enough Tiny Core to make your head spin.

What are the minimum requirements?
An absolute minimum of RAM is 46mb. TC won't boot with anything less, no matter how many terabytes of swap you have.
Microcore runs with 28mb of ram.
The minimum cpu is i486DX (486 with a math processor).

A recommended configuration:
Pentium 2 or better, 128mb of ram + some swap

Is Tiny Core for me?
If Linux and distributions are confusing to you, then Tiny Core might not be for you. To help you decide, you need to know a few things about Tiny Core.

To get started, Tiny Core is:

  • Not a duplicate of another really common operating system. Tiny Core doesn't have a pretty boot screen, or stock wallpaper, and Tiny Core certainly doesn't have its own advertising campaigns.

  • Not a 'turnkey' operating system. Tiny Core can help you do what you need to do, but Tiny Core stays tiny by not including tools like a browser or word processor (but Tiny Core can help you download and install those really quickly).

  • Not for everyone. Tiny Core is fast, powerful, and flexible. You can use Tiny Core without much technical knowledge, but, like any strong tool, Tiny Core becomes really useful if you know how to use it. Great starter skills could include command line usage, simple shell scripting, and Linux file and permission management, and some reasonably fast typing skills.

If you aren't scared off yet, you need to know that there are some characteristics that make Tiny Core a really unique Linux distribution.

SSH Tunnelling Firefox on Oneiric Ocelot behind Virtual Box's NAT

I have Ubuntu 11.10 guest installation on my VBox on OS X Lion host. What the point of it? Yeah, first I want to create isolated environment that won't bring the headache if it destroyed. Second, I want to break that isolated environment so it can reach the world wide.

For start, I begin with ssh tunneling. I used ssh connection to tunnel firefox's data. It look like firefox isn't connect through NAT but through my ssh server instead.

To be able to do this. I have to have access to some server outside via ssh. Fortunately, now free shell access is widely available, just google for it and subscribe.

To make connection through ssh for tunneling use this command

ssh -ND 7777 

It will bring a prompt ask for password and then nothing, that N means, it will not bring interactive shell

On firefox side, open edit, preferences, advanced, network, setting
Choose manual configuration and type on SOCKS host: localhost port 7777

Now firefox's connection have been tunnelled.

Friday, December 23, 2011

Automounting Shared Folder on Ubuntu 11.10 Oneiric Ocelot as Guest in OS X Lion VirtualBox

My Ubuntu 11.10 Oneiric Ocelot on virtual box have shared folder with host OS X Lion named 'vbox'. I used to typing command after login to mount that folder to my home directory. I mount it to falder named 'vbox' too using this command

$sudo mount -t vboxsf vbox vbox.  

However, at old time, I used to auto mount other partition that refused to automount (usually ntfs or other linux distros partition) at login by editing /etc/fstab

(using vi, press k to scrolldown and press i or a to edit the last line)
aravir@aravir-VirtualBox:~$ sudo vi /etc/fstab

# /etc/fstab: static file system information.
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation
UUID=3c8759e3-314b-4e42-a39e-efe9c18a130c / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=1b64eb34-42af-4ada-8bf1-0273d572cdb6 none swap sw 0 0
#virtualbox shared folder
vbox /home/aravir/vbox vboxsf auto 0 0

press :wq! to save and quit vi session

Restart the machine. 

After the machine is back, well, there is no sign that my tweak above worked. Curious, I want to take a peek of what kind and what are already mounted by system.

aravir@aravir-VirtualBox:~$ mount
/dev/sda1 on / type ext4 (rw,errors=remount-ro,commit=0)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
vbox on /home/aravir/vbox type vboxsf (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
vbox on /media/sf_vbox type vboxsf (rw,gid=1001)
gvfs-fuse-daemon on /home/aravir/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=aravir)
It's like the vbox is successfully mounted TWO times, however:
  • vbox did mount on /home/aravir/vbox but it's no file at all 
  • vbox mounted on /media/sf_vbox but only root have access to it 
So the last resort is playing with rc.local
aravir@aravir-VirtualBox:~$ sudo vi /etc/rc.local 

add this line before exit 0 

mount -t vboxsf vbox /home/aravir/vbox 

so the /etc/rc.local become like this
#!/bin/sh -e
# rc.local
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
# In order to enable or disable this script just change the execution
# bits.
# By default this script does nothing.
mount -t vboxsf vbox /home/aravir/vbox
exit 0
Restart the machine and voila, its success

Friday, December 16, 2011

Ubuntu 11.10 Oneiric Ocelot On OS X Lion's VBox (NAT and Host-Guest Sharing Folder)

After installing Ubuntu 11.10 on Mac OS X Lion using VirtualBox, here first impression of Oneiric Ocelot

There is dock at left, like on Mac.

Network is works flawlessy, I can surf internet using firefox, its NAT configuration come by default while installing it.
From Oneiric Ocelot

Firefox run at fullscreen(I mean ubuntu screen), just like Lion's or iPad's Safari (Lion's version of firefox didn't auto fullscreen yet). We can windowed-mode-ed it by hovering mouse at top edge of screen, it'll show menu-bar too

Hover mouse at top
From Oneiric Ocelot
It's windowed firefox

From Oneiric Ocelot
 If we click dash home, we'll got launchpad like (just like iPad or Lion's launchpad). At second tab, there's apps available to download.

From Oneiric Ocelot

 To access shared folder on Lion named vbox, I opened terminal by clicking Dash home and type terminal on search box
From Oneiric Ocelot

 First create directory
aravir@aravir-VirtualBox:~$mkdir vbox

mount shared vbox on lion using this command
aravir@aravir-VirtualBox:~$sudo mount -t vboxsf vbox vbox 

at screenshot you know it generate error because ubuntu did'nt recognize vboxsf filesystem. To introduce it, guest addition must be installed.
From Oneiric Ocelot
From Oneiric Ocelot
From Oneiric Ocelot
From Oneiric Ocelot
Failed. Guest addition need root privilege.
aravir@aravir-VirtualBox:~$cd /Media/VBOXADDITIONS_4.1.6_74713
$sudo ./

After guest addition installed and the system restarted (it's support full screen on my Macbook monitor now), retype the command above, and done

 Vbox directory before mounted
From Oneiric Ocelot
After mounted
From Oneiric Ocelot

Thursday, December 15, 2011

Ubuntu 11.10 Oneiric Ocelot on OS X Lion via Virtual Box

It's long time since my MacBook Pro had ubuntu installed. Curious about new release of ubuntu, I decided to download .iso file via torrent network and installed it on my Mac via VirtualBox as I don't want to dual booting my Mac again (the way I did several years ago).

 I downloaded 64-bit version of Oneiric Ocelot and it's installed without problem.

 From screenshot below, we know ubuntu team has improved their installation method. While the system is busy copying file, we're prompted to fill our detail of instalation; keyboard, time zone, username. Such an efficient method.
From Blogsy Photos
From Blogsy Photos
From Blogsy Photos
From Blogsy Photos
From Blogsy Photos
From Blogsy Photos
From Blogsy Photos
From Blogsy Photos
From Blogsy Photos
From Blogsy Photos
From Blogsy Photos
From Blogsy Photos
From Blogsy Photos

Saturday, November 28, 2009

Ubuntu 9.10 Karmic Koala in Tablet PC HP TX2500

After having OpenSuSE 11.1 installed on my Tablet PC for about a year, I want to try installing Ubuntu 9.10 on my TX2500. I used Karmic Koala iso image for AMD64 architecture and start with liveCD choice first.

Using LiveCD, everything is seem work without problem. When a familar exotic GNOME welcome sound is heard, I suddenly jump and think ”hooray, this cool Tablet PC is finally supported by ubuntu...”. Ridiculous, yeah, but the big problem prevent me for installing ubuntu on TX2500 is that no sound support (hey..., how we can life without music...), so, realizing that it wasn’t problem anymore (as well as my pen and eraser on touchscreen), I decided to override my SuSE 11.1 with this Koala.

Oh yeah another pleasure is a popup offers me if I want to install Broadcom, SLModem and ATI propietary driver but, planned to install that after install to harddisk, I close that windows (uh, what the poin install something in live system?).

After install Koala and boot into its system, I wait for popup offerring propietary driver installation but it never showed up, but everything is OK:
  1. Sound is work, that’s good
  2. Digitizer is work, I can use my pen and eraser as pointer and primary click eventhough finger-touch isn’t work.
I, after a couple minute, finally found how to install propietary driver, using menu Hardware Driver, I installed Broadcom Wifi, SLModem and fglrx ATI propietary driver. I also want my system always updated and use newest soft- ware, so, using synaptic, I updated software and even upgraded kernel. Here the problem arise.

After updating softwares and upgrading kernel of Karmic Koala, sound refuse to sounding (aaaaaargh..), no sound hardware detected, volume icon represent dummy hardware. I think it’s ALSA problem (like other said when i googling for solution) so I download alsa-driver, alsa-utils and alsa-... and com- piled them form source (uh). Still no sound after restarting.

I do deep search at google again and found realy simple but powerful solution: deactivate slmodem driver from hardware driver and voilaaa...., my sound is back

Here some note from Karmic Koala on my TabletPC tx2500 series
  1. Sound is work
  2. Pen digitizer is work out of the box
  3. Broadcom Wifi is work (propietary driver)
  4. Remote is work out of the box. It can raise volume (master volume), play next/previous song on mp3-player
  5. Webcam could be accessed through cheese
  6. My Sierra HSDPA modem was detected automagically (no need wvdial command line, heheh)
  7. Compiz-fusion run smoothly, so I can use compiz 3D effect and emerald in my desktop

(for Oneiric Ocelot, see here)

From Ubuntu Karmic Koala

From Ubuntu Karmic Koala

323f (5) amp (1) android (12) apple (7) arduino (18) art (1) assembler (21) astina (4) ATTiny (23) blackberry (4) camera (3) canon (2) cerita (2) computer (106) crazyness (11) debian (1) delphi (39) diary (286) flash (8) fortran (6) freebsd (6) google apps script (8) guitar (2) HTML5 (10) IFTTT (7) Instagram (7) internet (12) iOS (5) iPad (6) iPhone (5) java (1) javascript (1) keynote (2) LaTeX (6) lazarus (1) linux (29) lion (15) mac (28) macbook air (8) macbook pro (3) macOS (1) Math (3) mathematica (1) maverick (6) mazda (4) microcontroler (35) mountain lion (2) music (37) netbook (1) nugnux (6) os x (36) php (1) Physicist (29) Picture (3) programming (189) Python (109) S2 (13) software (7) Soliloquy (125) Ubuntu (5) unix (4) Video (8) wayang (3) yosemite (3)