Logged-In As
ACCOUNT
Not Logged In
Create the FreeBSD cheat sheet #2 FreeBSD
Status: Closed Time to complete: 120 hrs Mentors: Wojciech A. Koszek, PÁLI Gábor János Tags: PDF, documentation, cheatsheet, FreeBSD, doc

Description of a task

Participant will study other cheatsheets available for popular tools: the VIM editor, the Emacs editor, the GIMP graphics program and others.

Layout for the cheat sheet is up to the participant. The idea of the layout will be coordinated with the mentor. 

Participant will install FreeBSD system in the VirtualBox virtual machine and will accomplish this from the command line. Next, FreeBSD will get configured to be able to communicate easily with the Internet. VM should have SSHD available, so that it's possible to get an access to the VM from the SSH client, from the main system (host).

The whole process will be convered in the cheatsheet. e.g.: if you modify /etc/ssh/sshd_config, sample configuration lines and its parameters must be documented in the cheatsheet.

Uploaded Work
File name/URL File size Date submitted
linux_vs_freebsd_cheatsheet.pdf 39.1 KB December 29 2011 01:37 UTC
linux freebsd comparison.ods 18.2 KB January 02 2012 02:59 UTC
linux freebsd comparison 2.ods 19.5 KB January 02 2012 04:34 UTC
FreeBSD vs linux cheatsheet 2.pdf 51.9 KB January 02 2012 05:01 UTC
FreeBSD vs linux cheatsheet 3.pdf 50.2 KB January 03 2012 20:07 UTC
FreeBSD vs linux cheatsheet 4.pdf 51.6 KB January 03 2012 21:21 UTC
FreeBSD vs linux cheatsheet 4.pdf 52.2 KB January 03 2012 21:26 UTC
FreeBSD vs linux cheatsheet 5.pdf 60.4 KB January 13 2012 08:01 UTC
FreeBSD vs linux cheatsheet 5.pdf 57.5 KB January 13 2012 08:27 UTC
Comments
Rushil Paul on December 26 2011 10:55 UTC Task Claimed

I would like to work on this task.

Benedict Reuschling on December 26 2011 11:59 UTC Task Assigned

This task has been assigned to Rushil Paul. You have 120 hours to complete this task, good luck!

Rushil Paul on December 29 2011 01:36 UTC Ready for review

I've uploaded the pdf document here http://rushilpaul-freebsd.webuda.com/linux_vs_freebsd_cheatsheet.pdf because every time I try to upload it here, I get a 500 Server error.

Rushil Paul on December 29 2011 01:41 UTC Ready for review

Okay now it worked!


Please let me know if anything more is needed.


Thanks

Rushil Paul on December 29 2011 01:52 UTC Ready for review

The work on this task is ready to be reviewed.

Wojciech A. Koszek on December 29 2011 18:01 UTC Deadline extended

The deadline of the task has been extended with 2 days and 0 hours.

Wojciech A. Koszek on December 29 2011 23:39 UTC Reply

As discussed with Rushil over IRC, this task needs more work.


Rushil's task now is to compare two sets of commads present in his cheatsheet. He will take two VMs: one with Linux system (any kind) and one with FreeBSD, and as he goes, he'll test each row of the table.


2nd suggestion was to include common usage of the most popular commands. Showing routing table was used as an example. So basically table will explain which commands are used for that and why they differ, and the 2nd row will explain how to do simple task - showing the routing table.


 


Wojciech 

Wojciech A. Koszek on December 29 2011 23:39 UTC Task Needs More Work

One of the mentors has sent this task back for more work. Talk to the mentor(s) assigned to this task to satisfy the requirements needed to complete this task, submit your work again and mark the task as complete once you re-submit your work.

Eitan Adler on January 2 2012 03:12 UTC Deadline extended

The deadline of the task has been extended with 0 days and 4 hours.

Wojciech A. Koszek on January 2 2012 04:53 UTC Deadline extended

The deadline of the task has been extended with 1 days and 0 hours.

Wojciech A. Koszek on January 2 2012 05:00 UTC Comments

I looked at .ods file. We discussed earlier that previous task #1 was to be delivered in PDF. Please try to generate PDF. If it doesn't work due to some reason, please try to export it via OpenOffice/LibreOffice .odt viewer.


If you happen to have USB mouse or USB keyboard or any other gadget, it would be worth to explain how do you want camcontrol to show it. I am not convinced you've picked the right combination of tools.


Columns need labels. I don't know which columns means what now. Cheetsheet also needs a title. I don't understand what 1st column does. I think it's unnecessary


Please don't include 2-3 commands in 1 row. Please show only 1 command in 1 row.


Please include more commands. 1 A4 sheet should be filed with commands, I think.


You've had more commands previously. Why did you remove them? Some commands where OK (chflags), but you just matched them incorrectly. Just try to find correct commands corresponsing to the same Linux functionality. 


Wojciech 

Melange on January 3 2012 16:17 UTC Task Reopened

Melange has detected that the final deadline has passed and it has reopened the task.

Rushil Paul on January 3 2012 16:17 UTC Task Claimed

I would like to work on this task.

Wojciech A. Koszek on January 3 2012 16:29 UTC Task Assigned

This task has been assigned to Rushil Paul. You have 120 hours to complete this task, good luck!

Wojciech A. Koszek on January 3 2012 16:30 UTC Questions?

Rushil,


Let us know if you have any questions regarding this task. Please let us know what's the current state of the PDF


Wojciech 

Rushil Paul on January 3 2012 16:47 UTC WIP

I just need help finding linux equivalent commands for some FreeBSD commands, like recoverdisk.


and I've put commands for IP Forwarding, assigning processors to processes.

Wojciech A. Koszek on January 4 2012 06:34 UTC Comments 2

Rushil,


Can you sort the commands somehow? Alphabetic order will be good enough. Now you have 'pw' mentioned in two different places without a reason. mdconfigs could also go together.


I don't know if listing camcontrol as an equivalent of the lsusb is a good idea. Why do you think it's a good idea? What camcontrol shows what usbconfig can't?


I don't know what mii-tool is. I think it's almost ethtool, but not quite (more below). So maybe it's worth to show 2 rows: ifconfig + ifconfig and ifconfig + ethtool. 


You didn't follow the 'one row, one command and it's corresponding variant on Linux' suggestion. > 1 firewalls are listed in one row and module load/unload is listed in one row too.


Suggestions for commands: acpidump, acpiconf, adduser, boot0cfg (in LILO case and in GRUB case),  bsdinstall (show multiple lines, if more than one exist - pick the distribution of your choice), burncd, cdcontrol, mixer, config (show config <file> and 'make menuconfig' on Linux or 'make config' with the config's file path), devinfo (not sure if it exists on Linux), diskinfo,dtrace (probably list Kprobes and others - they have multiple variants for that). I see you mention package managment. It would be worth to mention all:


pkg_add
pkg_create
pkg_delete
pkg_info
pkg_updating
pkg_version


Commands. Maybe for your favourite distribution. If you're an advanced Linux user, maybe list commands for Ubuntu, Red Hat and Suse. 


FreeBSD's 'setfib' can be sustitiuted with Linux's 'ip' command, but mention it only if you've done Linux routing in the past.


Address my commands and submit your work once again. If you address each paragraph in the next round, I'll just accept your task. If you don't, just please briefly explain why not (so you have 7 paragraphs: let me know what couldn't be done / was hard to do), so we can keep more detailed track on this task.


Below is an output of mii-tool without Ethernet cable. It gets an error for some reason. ethtool seems to work just fine.


root@wkoszek-ThinkPad-T410:~# mii-tool
SIOCGMIIREG on eth0 failed: Input/output error
SIOCGMIIREG on eth0 failed: Input/output error
eth0: no link
root@wkoszek-ThinkPad-T410:~# ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: Unknown!
Duplex: Unknown! (255)
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
MDI-X: Unknown
Supports Wake-on: pumbag
Wake-on: g
Current message level: 0x00000001 (1)
drv
Link detected: no
 


Wojciech 

Wojciech A. Koszek on January 4 2012 06:36 UTC Please click 'Submit' next time

One more suggestion:


Next time you upload stuff to Melange, mark your work as submission (however it's called on your side), so that I can mark 'Task needs more work'. Otherwise, we loose a track on tasks which needs more work and Melange doesn't show that your tasks needs our attention.


Wojciech 

Rushil Paul on January 4 2012 07:38 UTC Clarifications

1) I had all the commands sorted according to FreeBSD commands. But gavin suggested that the commands be sorted according to Linux commands (e.g. I know how to do this in linux, so how do I do it in FreeBSD? **searches for linux command**.. sort of thing, which was a good idea), so the commands are already sorted.


2) `camcontrol devlist` has the same effect as `lsusb`. Both print the same output (USB devices). And as gavin had suggested, I have also put `usbconfig` since that is a much frequently used variant.


3) mii-tool was also suggested by gavin. And I'll add the ethtool too. (and if your ethernet cable isn't connected or ethernet NIC isn't up, mii-tool won't work, I'd checked that)


4) I followed the one row, one command you had told me. I just forget to erase ", kldunload" from that row. Overlooked it. I'll be careful from now :-) And when I have: 1 FreeBSD command -> 2 Linux commands, or 2 FreeBSD -> 1 Linux, then I've simply inserted another row, and put the extra command and its usage in the appropriate column. (if you don't want it that way, I'll think of something else)


5) Thanks for all those commands you've suggested. I'll add them too. And if I have a problem searching for an equivalent linux command, I'll send you an email at the end. You don't seem to be around in IRC much nowadays.


6) If you want, I can remove mii-tool, but I guess there's nothing wrong with keeping that. Just in case the reader is comfortable with that command, as was gavin)


 

Melange on January 8 2012 16:29 UTC Initial Deadline passed

Melange has detected that the initial deadline has passed and it has set the task status to ActionNeeded. The student has 24 hours to submit the work before the task is reopened and sent back to the pool for other students to claim.

Melange on January 9 2012 16:29 UTC Task Reopened

Melange has detected that the final deadline has passed and it has reopened the task.

Rushil Paul on January 10 2012 06:33 UTC Task Claimed

I would like to work on this task.

Wojciech A. Koszek on January 10 2012 07:00 UTC Task Assigned

This task has been assigned to Rushil Paul. You have 120 hours to complete this task, good luck!

Rushil Paul on January 13 2012 08:03 UTC Ready for review

The work on this task is ready to be reviewed.

Rushil Paul on January 13 2012 08:27 UTC Work

http://www.google-melange.com/gci/work/download/google/gci2011/7173223?id=22002

Wojciech A. Koszek on January 13 2012 15:24 UTC Task Closed

Congratulations, this task has been completed successfully.