Archive for the ‘q&a’ Category

Does ‘mac os x sshfs’ exist?

Thursday, September 28th, 2006

Answer
YES!!!!
Thanks for letting me know!
The project is called MacFuse and its hosted by google code.
For PPC users, there’s a binary, but there are also instructions to build it yourself.

Installation instructions:

$ wget http://macfuse.googlecode.com/files/fuse-binaries-0.1.0b006.tar.bz2
$ sudo tar xjf fuse-binaries-0.1.0b006.tar.bz2 -C /
$ echo "export PATH=$PATH:/usr/local/bin" >> /etc/profile

Mounting goes as follows, make sure that you first create a mount point (empty directory):

$ mkdir -p ~/mnt/host
$ sshfs host:remote_directory ~/mnt/host -oping_diskarb,volname=hostname

The first time you do this, the sshfs command will report something like:

fusefs.kext loaded successfully

That’s it, have fun!
Unfortunately not!
If it does, please let me know!
Until then, maybe nfs tunneling over ssh would be an alternative?

Hoe doe je ‘alt print screen in mac’?

Wednesday, July 19th, 2006

Antwoord: Zie de nerd note over screen shots.

What is the ‘ubuntu live cd root password’?

Saturday, July 15th, 2006

Answer 1: It is not set but you can set it:

ubuntu@ubuntu:~$ sudo passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
ubuntu@ubuntu:~$
[/courcecode]
<b>Answer 2:</b> It is not set but you don't need it:
[sourcecode lang="css"]
ubuntu@ubuntu:~$ sudo cat /etc/shadow

Relevant nerd notes: Sudo and sshfs demo.

Need a ‘unit converter’ ?

Wednesday, June 21st, 2006

Answer: Try units. This is an example of a terminal session using units:


$ units
2084 units, 71 prefixes, 32 nonlinear units
You have: 2 inch
You want: mm
* 50.8
/ 0.019685039
You have:

Type help for some help, press ^D to quit units.
Example of usage in a shell script:


# determine installed RAM
kbram=`cat /proc/meminfo | awk '/MemTotal/ { print $2 }'`
gbram=`units "${kbram} kilobytes" 'gigabytes' |sed --silent -e '1p' | awk '{print $2}'`
echo This computer has $gbram Gb of RAM installed!

More info: www.gnu.org/software/units/manual/units.html

Related nerd note: Eenheden toevoegen aan de ‘Unit Converter’ widget.

Can I ’ssh into ubuntu live cd’ ?

Friday, May 26th, 2006

Answer: Yes you can! But you first need to install the ssh daemon:

ubuntu@ubuntu:~$ sudo apt-get install openssh-server

The server is started automatically after installing. To login remotely, you’ll need to set the password for ubuntu:

ubuntu@ubuntu:~$ sudo passwd ubuntu
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
ubuntu@ubuntu:~$

…or create another user on the system:

ubuntu@ubuntu:~$ sudo adduser brammeleman
Adding user `brammeleman‘…
Adding new group `brammeleman’ (1000).
Adding new user `brammeleman‘ (1000) with group `brammeleman’.
Creating home directory `/home/brammeleman‘.
Copying files from `/etc/skel’
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for brammeleman
Enter the new value, or press ENTER for the default
Full Name []: Brammeleman
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [y/N] y
ubuntu@ubuntu:~$

From another box, you can now login to the system running the live cd. Use the ubuntu username with the password you set or use the newly created account.

Relevant nerdnotes: sshfs demo and Kickstart for Ubuntu Live CD?.