Friday, June 12, 2009
Migrating linux server
It's running 24 hours, 7 days in my closet. ;-)
The server is operated in ubuntu linux.
Main purposes of this are sharing files through ftp, running small board, downloading from torrent, remote access from the office through secret ssh port, sharing files through samba.
Yes, It is doing a lot of work as small home server.
but hardwares running linux are not so powerful.
celeron 1GHz, 512 Mb memory, and harddisks of 10Gb, 80 Gb, and 80 Gb.
(VIA 694 chipset)
One of my collegue gave me a old computer.
It has Celeron 2.6 GHz (!), 256 Mb memory, and 40 Gb harddisk.
(Intel i845G chipset)
So I decide to migrate my old server to new -actually it is not a new one - machine.
This is my personal recording of migration process.
1. Intall Ubuntu linux from 8.10 CD.
2. Upgrade ubuntu linux from 8.10 to 9.04 through dist-upgrade.
3. Configure APM (Apache2, PHP5, MySQL5 )
4. Install additional softwares
(proftpd, openssh, telnetd, webalizer, phpmyadmin, mc, squid)
5.
Tuesday, May 19, 2009
Remote access to linux machine through firewalled network
this morning I left my PC in power-on condition because some backup work should be done. But i will still be in power-on condition after the backup work done, that is the waste of energy. but I can turn it off because I'm working in my office.
So I tried to connect to my windows machine via linux computer which runs 24 hours a day. It is possible to use remote desktop service runs on Vista.
Only remaining problem is a running X windows program in my office PC.
It need some trick called ssh tunneling.
I installed Xming to run X server in my office PC.
to run the X application, i use plink.exe which installed with putty ssh client.
Method is very simple.
First, start the Xming server in my office PC.
And start command console in same machine.
move to the folder putty is installed.
and type plink and some connection info.
here's my case.
C:\PROGRA~1\iPuTTY>plink -ssh -X -P 27 -pw aaa user@mylinuxpc.com xterm
(note: -P 27 is option for non-regular port number.
this option is required because my company block official ssh port(22) so I changed ssh port to 27 in my linux machine.)
then I can use any linux X application through this xterm.
I started tsclient program and tried to connect to my vista machine.
Saturday, April 04, 2009
Boot with grub, Vista, Ubuntu, OS X
it seems kind of complicate concept such as efi_boot, vanilla kernel, guid, pc_bcd..
But i just downloaded 'boot_v9' and copy it into /boot directory in my ubuntu partition.
and added following paragraph in the /boot/grub/menu.lst
title Mac OSX Leopard
#root drive should be the partion which grub is installed. It's not where OSX intalled partition!!!!
root (hd1,2)
kernel /boot/boot_v9
boot
o
then It just work!!
http://www.insanelymac.com/forum/index.php?showtopic=85508
Now that boot_v9 supports sleep, I have revived this method.
Get boot_v9 from here:
http://www.mediafire.com/?rdonkiqyzlz
Rename it from boot to boot_v9
Follow the PC_EFI method below, except say boot_v9 everwhere it says boot_v8
[Important Edit regarding depreciation -- While the PC_EFI method works, and was necessary for those of us who used grub at one time, with the advent of Chameleon I consider it depreciated.]
CHAMELEON METHOD
To use Chameleon with Grub, do the following:
1) Download Chameleon (current version) from chameleon.osx86.hu
2) dd boot1h to the partition you have OS X installed onto.
3) copy boot to the root directory of your OS X partion
4) ignore the boot0 file -- it overwrites grub in your MBR and you don't need it with grub.
5) edit your grub menu.lst file to chainload in the usual manner, I.E.-- my OS X entry now reads:
title Mac OSX Leopard
rootnoverify (hd?,?) (replace ? with the values Grub uses for OSX partition -- differs from pc_efi method)
chainloader (hd?,?)+1 (same values)
This is much easier and more standardized, hence I consider the following pc_efi method depreciated.
PC_EFI METHOD
[EDIT -- this is intended for MBR partitioning. If you used GUID, see keso7's post below also
http://forum.insanelymac.com/index.php?s=&...st&p=859014
Linux lives nicely in the extended partition of an MBR system. FreeBSD will put its own slices in an MBR primary partition.]
Get boot_v8 (The pc_efi bootloader)
(Google "pc_efi v8.0 download")
Copy it to /boot inside linux [EDIT -- or FreeBSD]
Then edit /boot/grub/menu.lst
title Mac OSX Leopard
root (hd?,?) (replace with same values grub uses for Linux partition, not ones for OSX partition)
kernel /boot/boot_v8
boot
[EDIT -- Repetition because so many people miss this point -- use root(hd?,?) to match your LINUX entry. DO NOT point to your OS X partition. If you screw this up you will get grub error 17.]
[EDIT -- a few people report kernel /boot_v8 works for them rather than above. Possibly a difference between SUSE (which I use) and Ubuntu on the reports. In any event, if you put boot_v8 into the same location as the Linux kernel (for me /boot) the the path should be the same as the path to the Linux kernel in the Linux entry.]
[EDIT -- for FreeBSD, the root line would be root(hd?,?,a) -- the a refers to the first (boot) slice in the FreeBSD partition]
If OS X resides on a different HDD than Linux, you will have to enter a hex code for the appropriate drive during the boot process. [For simplicity, I advise you have Linux and OS X share a hard disk.]
80 -- 1st HDD
81 -- 2nd HDD
82 -- 3rd HDD
Alternately, so you don't have to enter code during boot process, make a tiny ext3 partition on the OS X HDD
copy boot_v8 there in a directory /boot
and replace (hd?,?) with the values of that partition
[EDIT -- At least theoretically, you should be able to do the same approach with Grub hosted on a Solaris system. However Solaris does not support my disk controller (ICH8R) so I cannot test this myself.]
=====================================
thanks to jesse wilkinson
http://linagra.com/2009/03/osx86-triple-boot-vista-ubuntu-grub-working-efi/
http://www.jessewilkinson.com/2008/02/14/triple-boot-vista-ubuntu-710-osx86-1051/
Triple Boot: Vista, Ubuntu 7.10, OSX86 10.5.1
February 14th, 2008
Filed under: Development, Hardware, High Technology
This is a step-by-step how-to of how exactly I set up my triple booting system on a PC. I used two hard drives for this configuration, one 400GB for my Vista + Ubuntu, and another 120GB for my OSX86 partition. This cleans up a lot of problems with getting the EFI bios to work.
Gateway GM5442
My hardware configuration:
-Intel Core 2 Duo E4400 (2.0 GHz)
-2GB DDR2 533MHz
-500GB + 120 GB SATA HD’s
-Board: Intel D945GCF
-Chipset: 82945G
-Intel GMA 950 Graphics
-10/100 Mbps Lan (Works on Vista + Ubuntu, not osx86)
-Integrated 8-Channel Sigmatel Audio (Works on Vista + Ubuntu, not on osx86)
-USB 2.0 Bluetooth Adapter (Works on Ubuntu + osx86, not on Vista)
-USB 2.0 Ethernet Adapter (Works on osx86, not on Vista + Ubuntu)
-USB 2.0 Audio Adapter (Works on osx86 + Vista, not on Ubuntu)
1. You will need:
* A PC with the same board/chipset/graphics for this install to work. A lot of computers come standard with this configuration.
* A copy of the Kalyway patched 10.5.1 OSX86 Install DVD.
* A copy of Ubuntu 7.10 (http://www.ubuntu.com)
* Any copy of Windows Vista (or xp really)
* Two (2) Hard drives! HIGHLY RECOMMENDED, makes life much easier and you don’t risk destroying your other partitions when installing OSX86.
2. Make sure both drives are attached by sata, configure your prefered vista drive as primary in your BIOS and go ahead and install it on your primary drive if you haven’t already.
3. When you’re done, use Vistas “disk management” tool under “computer management” in the “administrative tools” section of the control panel to free up some space in an additional partition for an Ubuntu install on your Vista Drive.
4. Insert your Kalyway disc and restart your computer, before the install starts jump into your BIOS.
5. Configure your hard drives so that your OSX hard drive will be primary instead of your vista drive. Exit + Save
6. Kalyway disc will start, allow the disk to load, it may take a few minutes. Patience is a virtue!
7. STOP, do not continue your installation yet, you need to partition!
9. Go to tools > disk utility and select your OSX hard drive from the left hand list.
10. Click the partition tab, and select 1 partition. Name your partition something simple, I used “osx”. DON’T USE SPACES. Choose MacOS Extended (Journaled) Filesystem. Do not click “apply” yet.
11. Choose “options” > this screen will appear:
MBR
12. For this hardware configuration only MBR will work with the EFI bios for this chipset. I’ve tried GUID, as it works better on intel processors, but nevertheless, no luck.
13. Click apply and complete the partitioning, close disk utility.
14. Continue the installer, agree to the terms + conditions. You will see a customize button before you click on “Install.” Click this option.
15. Check both the vanilla kernals and the EFI bootloader(MBR not GUID) at the bottom. I couldn’t get any of the sound drivers to work on my onboard sound, but i resolved the issue with a USB sound card (see bottom).
16. Click “done” and continue with the install.
17. When it’s all said and done, you should be able to restart and boot into OSX86 without the disc in the drive.
18. Eject the disc, and insert your Ubuntu 7.10 disc.
19. Restart the computer, and head into BIOS.
20. Reset your Vista drive as your primary hard drive. Save + Quit
21. When prompted to start ubuntu live cd, do so.
22. Once on the Ubuntu desktop, click install and follow the basic instructions. Use “largest continuous free space” for the space to install, and it will install to the empty partition on your vista drive you created in step 3. MAKE SURE YOU INSTALL GRUB BOOTLOADER!
23. Complete the install, eject Ubuntu disc, and restart.
24. When prompted with the Grub bootloader, choose Ubuntu 7.10 and boot into your linux partition.
25. Open up a new terminal and type in: “sudo fdisk -l” (confirm with password)
26. It should display a list of hard drives and their partitions, this will give you an idea of how you’ll need to configure GRUB, to boot into your OSX and Vista partitions. Keep this terminal open!
27. Open another terminal and type: “sudo gedit /boot/grub/menu.lst” (confirm with password)
28. In front of you a gedit window will appear with the current Grub configuration. You’re going to have to add some new entries to this setup.
29. This is what my menu.lst file looks like, yours should look very similar, however you’re partitions may be labeled differently. Replace “root (hdX,Y)” as needed to make it match what you have displayed in the terminal you opened in step 25 + 26.
default 0
timeout 5
title Mac OS X86
root (hd1,0)
chainloader +1
makeactive
title Windows Vista
root (hd0,1)
chainloader +1
makeactive
title Ubuntu 7.10, kernel 2.6.22-14-generic
root (hd0,2)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=c50989a9-f628-48e8-90f7-d8b3836d6bc2 ro quiet splash
initrd /boot/initrd.img-2.6.22-14-generic
quiet
title Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=c50989a9-f628-48e8-90f7-d8b3836d6bc2 ro single
initrd /boot/initrd.img-2.6.22-14-generic
title Ubuntu 7.10, memtest86+
root (hd0,2)
kernel /boot/memtest86+.bin
quiet
30. Once you’re sure you’re good, save and restart. The configuration I put in above should work beautifully with OSX being primary, Vista/XP secondary, and Ubuntu tertiary. ENJOY!
Extras I had to buy later:
- USB audio adapter (works out of the box) http://www.newegg.com/Product/Product.aspx?Item=N82E16829128002
- USB ethernet adapter (works with drivers on this page) http://www.newegg.com/Product/Product.aspx?Item=N82E16833114017
- USB bluetooth adapter(works out of the box) http://www.newegg.com/Product/Product.aspx?Item=N82E16833156069
Photos:
About the macStacks!StatsDesktop (Artifacts too…)hardware acceleration!All three os’s
Videos:
- Youtube video of my setup: http://www.youtube.com/watch?v=y1VD2lXpcZ0 (sorry it’s so quiet!)
Share:
* Digg
* del.icio.us
* Slashdot
* StumbleUpon
2 Responses to “ Triple Boot: Vista, Ubuntu 7.10, OSX86 10.5.1 ”
1.
Andres
March 17th, 2009 at 1:06 pm
I see you made this a year ago. I just won a very powerful PC on a contest for video editing but I want to experiment running OSX on it. Here are my PC specs:
# Ram: 12GB
# CPU: Intel Core i7 Processor i7-920 2.66GHz
# Case: Antec 900 Series
# DVD Drive: CD - DVD Drive
# Power Supply: Trio 650 Watt TruePower
# Operating System: Vista Ultimate 64 Bit
# Video Card: Radeon HD 4870 512MB 256-bit GDDR5
# Firewire Card: 32/64-Bit 3 Ports 1394
# System Drive: 250 GB SATA 7200 RPM
# A/V Storage: 2 TB SATA 7200 RPM
I’d like to use a firewire external hard drive to install it. On your blog you mentioned using “Kalyway patched 10.5.1 OSX86 Install DVD.” Is there any upgrades ever since you did this? Do you think it’ll work on an external HD? I could also install it on a external eSata HD, what I don’t whant is to mess with the original configuration the system came with.(other than the BIOS).
Thanks beforehand for any advise you can offer.
2.
Jesse Wilkinson
March 19th, 2009 at 1:05 pm
Wow, I wish I could win a computer that rediculous… You should try the iPC distribution, it may work out of the box, although I’m not sure if OSX even supports core i7 chipsets yet.
http://pcwizcomputer.com/ipcosx86/
You’ll have to search “the bay” to find the download, it’s a dvd.
Also you should do your research on insanelymac.com. The easiest way to search that site is to use google with the site:insanelymac.com parameter.
You can use this link for that:
http://www.google.com/search?q=core+i7+site%3Ainsanelymac.com
Good luck man
Thursday, December 11, 2008
Sky HDTV in ubuntu 8.10
but it's runs only on Windows.
Even Windows Media Center does not capture the QAM channel in korea.
If you are using a linux, you can see the digital TV for free.
1. Set the driver
Someone saying that following configuration option shold be added in /etc/modprobe.d/options
options cx88xx card=31 tuner=64
options snd_hda_intel index=0
options cx88-alsa index=1
----------------
That someone also saying that /etc/modprobe.d/aliases should add these;
alias char-major-116 snd
alias char-major-14 soundcore
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
alias /dev/dsp snd-pcm-oss
alias snd-card-0 snd_hda_intel
alias sound-slot-0 snd_hda_intel
alias sound-service-1-0 snd-mixer-oss
alias sound-service-1-3 snd-pcm-oss
alias sound-service-1-12 snd-pcm-oss
alias /dev/dsp1 snd-pcm-oss
alias snd-card-1 cx88-alsa
alias sound-slot-1 cx88-alsa
BUT, another one saying that only followings are needed for it.
/etc/modprobe.d/options
options cx88xx card=31 tuner=64
/etc/modprobe.preload
cx8800
cx88xx
cx88_dvb
2. install kaffeine
sudo apt-get install kaffeine
or you can enjoy the HDTV by using mplayer or xine.
Choose as you want.
3. Setup the channel
You need the programs scandvb, tzap and szap to scan transponders and to tune the cards. These are packaged in Fedora as 'dvb-apps' in Fedora Extras and 'dvb-utils' in Ubuntu (and thus probably Debian)
In ubuntu 8.10 you can install dvd-utils by
#apt-get install dvb-utils
then you can use the scan command.
config files for dvb-utils are stored in /usr/share/doc/dvb-utils
Korea use a ATSC like US, so don't confuse with several DVB options.
(there are 4 options ; ATSC, dvb-s for satellite, dvb-c for cable, dvb-t for terrestrial)
so use scan command for atsc.
scan /usr/share/doc/dvb-utils/examples/scan/atsc/us-Cable-Standard-center-frequencies-QAM256 > channels.conf <= cable
scan /usr/share/doc/dvb-utils/examples/scan/atsc/us-ATSC-center-frequencies-8VSB > channels.conf <= air TV
* if you using another linux distribution, you may need to use dvbscan instead of scan.
here is the format of channels.conf
ChannelName:Frequency:Modulation:VID:AID:PID
MBC:755028615:8VSB:17:20:1
KBS1:761028615:8VSB:33:36:1
KBS2:767028615:8VSB:33:36:1
EBS:773028615:8VSB:33:36:1
SBS:797028615:8VSB:17:20:1
check the channel with azap
# azap -r MBC
Copy the channel file to TV application directory.
for kaffeine : ~/.kde/share/apps/kaffeine/channels.dvb
for Mplayer : ~/.mplayer/channels.conf
for Xine : ~/.xine/channels.conf
especially for using in kaffeine, you need to compile atsc-convert.
download source from http://websvn.kde.org/branches/work/~pfister
atsc-converter channels.conf > channels.dvb
Monday, September 15, 2008
split MKV
Recently I got an .MKV HDTV file with MPEG-4 AVC (h264) video and two AC3 audio tracks. The bad thing was that the .MKV file was 10MB larger than a single layer DVD disc, i.e. it was 4,38 GB instead of 4,37GB I could fit into the DVD disc.
The problem was that many applications still didn't support files larger than 4,37. Also MPEG-4 AVC (h264) is not always supported even with a single audio track.
I didn't want to re-compress the video. Splitting MKV was the only option. Luckily the video had a dozen of useless seconds at the end.
I tried freeware avidemux (Windows) first. It was slow, didn't seem to support 2 audio tracks, besides I got several dialog windows asking me about indexing and other stuff that I didn't really want to see.
Then I tried freeware mkvtoolnix (Windows, Unix). It did the job perfectly!
mkvmerge GUI from mkvtoolnix has some disadvantages:
you can split after a given amount of time, but you can't split after several given amounts of time;
you can't preview the video in the mkvmerge, so you need to launch a player and remember the time when you need to split.
But it is fast. It support MPEG-4 AVC even with two audio tracks, so I recommend it!
Friday, August 29, 2008
SKY-HDTV on Ubuntu
but It doesn't have tuner information.
so, let ubuntu know which tuner is used.
sudo vi /etc/modprobe.d/options
add following
# set sky HDTV
options cx88xx card=31 tuner=64
reboot and now you can use your tv card.
sudo modprobe cx88-dvb
sudo apt-get install dvb-utils
scan /usr/share/doc/dvb-utils/examples/scan/atsc/us-Cable-Standard-center-frequencies-QAM256 > channels.conf
if you want to use kaffeine as tv viewer
sudo apt-get install kaffeine
and convert channels.conf file in your home directory into kaffeine's channels.dvb file.
http://websvn.kde.org/branches/work/~pfister
download all the files in this url.
and compile it using make
you can get atsc-converter .
in your home directory atsc-converter channels.conf channels.dvb
you now can have channels.dvb
cp ./channels.dvb .kde/share/apps/kaffeine/channels.dvb
Wednesday, August 20, 2008
Get Information About Your BIOS in linux
Get Information About Your BIOS / Server Hardware From a Shell Without Opening Chassis ( BIOS Decoder )
Posted by Vivek Gite [Last updated: July 24, 2008]
biosdecode is a command line utility to parses the BIOS memory and prints information about all structures (or entry points) it knows of. You can find out more information about your hardware such as:
=> IPMI Device
=> Type of memory and speed
=> Chassis Information
=> Temperature Probe
=> Cooling Device
=> Electrical Current Probe
=> Processor and Memory Information
=> Serial numbers
=> BIOS version
=> PCI / PCIe Slots and Speed
=> Much more
biosdecode parses the BIOS memory and prints the following information about all structures :
=> SMBIOS (System Management BIOS)
=> DMI (Desktop Management Interface, a legacy version of SMBIOS)
=> SYSID
=> PNP (Plug and Play)
=> ACPI (Advanced Configuration and Power Interface)
=> BIOS32 (BIOS32 Service Directory)
=> PIR (PCI IRQ Routing)
=> 32OS (BIOS32 Extension, Compaq-specific)
=> VPD (Vital Product Data, IBM-specific)
=> FJKEYINF (Application Panel, Fujitsu-specific)
In this tip you will learn about decoding BIOS data (dumping a computer's DMI ) and getting all information about computer hardware without rebooting the server.
More about the DMI tables
The DMI table doesn’t only describe what the system is currently made of, it also can report the possible evolutions such as the fastest supported CPU or the maximal amount of memory supported.
dmidecode - Read biosdecode data in a human-readable format
Data provided by biosdecode is not in a human-readable format. You need to use dmidecode command for dumping a computer’s DMI (SMBIOS) table contents on screen. This table contains a description of the system’s hardware components, as well as other useful pieces of information such as serial numbers and BIOS revision. Thanks to this table, you can retrieve this information without having to probe for the actual hardware.
Task: Display information about IPMI Device
# dmidecode --type 38
Output:
# dmidecode 2.7
SMBIOS 2.4 present.
Handle 0x0029, DMI type 38, 18 bytes.
IPMI Device Information
Interface Type: KCS (Keyboard Control Style)
Specification Version: 2.0
I2C Slave Address: 0x10
NV Storage Device: Not Present
Base Address: 0x0000000000000CA2 (I/O)
Register Spacing: Successive Byte Boundaries
Task: Display information about PCI / PCIe Slots
# dmidecode --type 9
# dmidecode 2.7
SMBIOS 2.4 present.
Handle 0x000E, DMI type 9, 13 bytes.
System Slot Information
Designation: PCIX#1-133MHz
Type: 64-bit PCI-X
Current Usage: Available
Length: Long
ID: 1
Characteristics:
3.3 V is provided
Handle 0x000F, DMI type 9, 13 bytes.
System Slot Information
Designation: PCIX#2-100MHz
Type: 64-bit PCI-X
Current Usage: Available
Length: Long
ID: 2
Characteristics:
3.3 V is provided
Handle 0x0010, DMI type 9, 13 bytes.
System Slot Information
Designation: PCIE#3-x8
Type: Other
Current Usage: Available
Length: Other
Characteristics:
3.3 V is provided
Handle 0x0011, DMI type 9, 13 bytes.
System Slot Information
Designation: PCIE#4-x8
Type: Other
Current Usage: Available
Length: Other
Characteristics:
3.3 V is provided
Handle 0x0012, DMI type 9, 13 bytes.
System Slot Information
Designation: PCIE#5-x8
Type: Other
Current Usage: Available
Length: Other
Characteristics:
3.3 V is provided
Task: Find out Information about BIOS
# dmidecode --type 0
Output:
# dmidecode 2.7
SMBIOS 2.4 present.
Handle 0x0000, DMI type 0, 24 bytes.
BIOS Information
Vendor: Phoenix Technologies LTD
Version: 6.00
Release Date: 01/26/2007
Address: 0xE56C0
Runtime Size: 108864 bytes
ROM Size: 1024 kB
Characteristics:
PCI is supported
PNP is supported
BIOS is upgradeable
BIOS shadowing is allowed
ESCD support is available
Boot from CD is supported
Selectable boot is supported
EDD is supported
3.5"/2.88 MB floppy services are supported (int 13h)
ACPI is supported
USB legacy is supported
LS-120 boot is supported
ATAPI Zip drive boot is supported
BIOS boot specification is supported
Targeted content distribution is supported
Understanding BIOS keywords
dmidecode --type {KEYWORD / Number }You need to pass dmidecode following keywords:
- bios
- system
- baseboard
- chassis
- processor
- memory
- cache
- connector
- slot
All DMI types you need to use with dmidecode --type {Number}:
| # Type | Short Description |
| 0 | BIOS |
| 1 | System |
| 2 | Base Board |
| 3 | Chassis |
| 4 | Processor |
| 5 | Memory Controller |
| 6 | Memory Module |
| 7 | Cache |
| 8 | Port Connector |
| 9 | System Slots |
| 10 | On Board Devices |
| 11 | OEM Strings |
| 12 | System Configuration Options |
| 13 | BIOS Language |
| 14 | Group Associations |
| 15 | System Event Log |
| 16 | Physical Memory Array |
| 17 | Memory Device |
| 18 | 32-bit Memory Error |
| 19 | Memory Array Mapped Address |
| 20 | Memory Device Mapped Address |
| 21 | Built-in Pointing Device |
| 22 | Portable Battery |
| 23 | System Reset |
| 24 | Hardware Security |
| 25 | System Power Controls |
| 26 | Voltage Probe |
| 27 | Cooling Device |
| 28 | Temperature Probe |
| 29 | Electrical Current Probe |
| 30 | Out-of-band Remote Access |
| 31 | Boot Integrity Services |
| 32 | System Boot |
| 33 | 64-bit Memory Error |
| 34 | Management Device |
| 35 | Management Device Component |
| 36 | Management Device Threshold Data |
| 37 | Memory Channel |
| 38 | IPMI Device |
| 39 | Power Supply |
Display Power supply information, enter:# dmidecode --type 39
Display CPU information, enter:# dmidecode --type processor
Read man page for more information:$ man dmidecode
Other tools and commands to gather hardware information
- Linux list hardware information with lshw command
- dconf - Linux command to gather hardware and software snapshot for troubleshooting
- Linux display system hardware status information gathered from /proc filesystem in easy format
- Linux display information about installed hardware
- Linux command to gathers up information about a Linux system
Updated for accuracy.
Thursday, February 28, 2008
Tuesday, February 12, 2008
psychology term
내용출처 : 엠파스
Monday, January 28, 2008
recover GRUB
1. Using a dual boot with other OS
2. Your boot loader was installed in MBR of hard disk.
If you installed windows OS on dual boot environment, you will not be boot into linux.
Windows was made for the case only one windows OS is installed in your computer.
Here goes the recovery procedure.
1. Boot with Ubuntu live CD.
2. in the gnome, check that your linux partition is shown in the Places - computer.
3. Open the terminal.
4. ubuntu@ubuntu:~$ mount
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /lib/modules/2.6.22-14-generic/volatile type tmpfs (rw,mode=0755)
tmpfs on /lib/modules/2.6.22-14-generic/volatile type tmpfs (rw,mode=0755)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
/ dev/sda4 on /media/disk type ext3 (rw,nosuid,nodev)
/dev/sda1 on /media/vista type fuseblk (rw,nosuid,nodev,noatime,allow_other,blksize=4096)
5. ubuntu@ubuntu:~$ sudo fdisk /dev/sda
Command (m for help): p
Device Boot Start End Blocks Id System
/dev/sda1 * 1 5624 45174748+ 7 HPFS/NTFS
/dev/sda2 5625 8046 19454715 7 HPFS/NTFS
/dev/sda3 8047 8173 1020127+ 82 Linux swap / Solaris
/dev/sda4 8174 9598 11446312+ 83 Linux
Command (m for help): q
6. ubuntu@ubuntu:~$ sudo grub
grub>root (hd0,3)
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,3)/boot/grub/stage2
/boot/grub/menu.lst"... succeeded
Done.
grub>quit
Tuesday, January 01, 2008
Thursday, November 29, 2007
two way to resize multiple images in linux
but most of them are too heavy and even a commercial one.
In linux, anyone can resize multiple images at one command line.
If I have 200 JPG pictures of 3872x2592 (10 Mega pixel) in 'photo' directory and want to resize all the images into 50% size (1936x1296), Choose one of the following methods.
each method use a convert command provided as a part of imagemagick package.
so you have to install imagemagick first.
sudo apt-get install imagemagick.
1. Using shell script.
photo$ for k in $(ls *.JPG); do convert $k -resize 1936x1296 -quality 100 re_$k; done
2. Using find command
photo$find . -name “*.JPG” -exec convert '{}' -resize 1936x1296 -quality 100 re_'{}'\;
Wednesday, November 28, 2007
Gutsy gibbon IM setting

I installed gutsy gibbon by upgrade.
at feisty,first changed /etc/apt/sources.list file.
replace all "feisty" into "gutsy" using ":%s/feisty/gutsy/g" command in vi.
and "sudo apt-get update"
and "sudo apt-get dist-upgrade".
that's all and it will takes about 40 minutes in my pc.
I installed english and korean language.
but log-in as english setting in GDM does not accept me to use korean input.
so I googled about solution.
Here's my soulution.
$ sudo apt-get install scim-hangul im-switch ttf-unfonts ttf-alee
$ sudo im-switch -z en_US -s scim-hangul
this command make you use korean input in en_US locale.
Friday, November 09, 2007
How to Hook Up
http://www.wildondallas.com/forums/showthread.php?t=1206
Guy 101: How to Hook Up
What every guy needs to know to master the modern art of quick and casual sex. By Sarah Preston at Playboy.com
Dating is dead. At least that's what the 25-year-old authors of The Hookup Handbook, Andrea Lavinthal and Jessica Rozler, are convinced of after years of casually hooking up in college and beyond. Gal pal table talk à la Sex and the City has turned from "I hope he asks me out" to "I hope he calls me late-night." Don't be fooled, guys: You're not the only ones bragging about last night's booty call.
"The key to hooking up is the networking thing," Lavinthal says. "And alcohol has a lot to do with it -- people don't really hook up at Starbucks. There's the group that's getting married and the group that's hooking up -- it's what everyone's doing now."
Lavinthal and Rozler discuss the joys of casual sex with Playboy.com, from the rules of drunk dialing to friends with benefits.
THE APPROACH
"In a bar, a guy shouldn't approach a girl he flat-out doesn't know," Lavinthal advises. When girls are out having fun, they might want to meet a guy, but they don't necessarily want to be cornered by a stranger. "There should be some kind of connection to that person," she adds, "so it makes the girl feel like this isn't some random guy she's about to go home with." It's like networking for a job, but more fun. Make sure you have references -- someone who can vouch for you.
NOT ALWAYS SEX IN THE CITY
Guys should not assume they're going to get laid. "Sex isn't always going to come into play when you're hooking up. Hooking up means a wide variety of things," Rozler explains. "There's the hookup in the bar, when you're sucking face," Lavinthal adds, "and when you leave, you say, 'I hooked up with him.'" A hookup that lasts a few weeks or more will usually end up in a sexual relationship, but girls still make some kind of rule about that. Hooking up is not all about sex.
MY PLACE OR YOURS?
"A girl feels more comfortable at her place. It's the 'stuff' factor -- we need our stuff," Lavinthal says. "You're likely to get more ass if you're at her place. Girls are uncomfortable with the whole bathroom situation at a guy's place, as well as the walk of shame home from his place. If you're at her place, she'll feel more in control and safer."
THE EX FACTOR
Hooking up with an ex can be fun and effortless. "This is playing so dirty, but it's very easy to get yourself back in there," says Lavinthal. "You have to say things like, 'We clearly didn't work out as a couple but we always had so much chemistry.' Since you're already 'in,' the 2 a.m. drunk phone call usually works." If you do hook up with a recent squeeze, the authors counsel that you nix talking about friends and the future, and that you try to avoid spending the night.
TEXT SEX
"Text messaging is an integral part of hooking up," says Rozler. These days, it's okay to make plans via text message when you're meeting out at a bar, but if you want the hookup to have longevity, pick up the phone and put in some calls. Or even send an e-mail. Lavinthal adds that, "Girls just by nature get a little annoyed when it's just text messaging. A phone call shows that, while you might not be boyfriend and girlfriend, you'll actually take the time to dial her friggin' number to talk to her."
KEEP HER AT BAY
If you don't want her to have expectations that the hookup is going to turn into a real relationship, Lavinthal has this advice: "Keep your sober activities limited. Don't invite her to the movies on a Tuesday night and buy her Gummi Bears and popcorn. Don't talk about your family a lot. Don't talk about the future."
THE RULES OF DRUNK DIALING
"Don't leave a voice mail message if you're really drunk, because you're gonna sound like a jackass," Lavinthal warns. "The girl's gonna see your missed call anyway." And be sure when you call to make it sound like you're not ready to end the night. Tell her you're headed to another bar, because, according to Lavinthal, "He shouldn't make it seem like she's the last stop on the booty train."
LET THE CIRCLE BE UNBROKEN
What do the authors think is the biggest hookup faux pas? "Our biggest no-no," Lavinthal warns, "is don't invade her group of friends and secretly hit on all of them." If you do, you stand to lose them all, and it will create a whole lot of unwanted drama in the process.
WHAT ARE YOUR OPIONS ON THIS INFORMATION?
__________________
WildonDallas.com
Wednesday, November 07, 2007
vista home
4C78T-3HQ3X-98WHB-446Y7-FGTPR
ACTIVATION NUMBER FROM MICROSOFT
A: 022160
B: 635383
C: 018944
D: 706550
E: 460382
F: 859273
G: 513890
H: 910522
Saturday, September 15, 2007
9/15
(dodge city - cargill)
(garden city - cow slain like fast food nation)
greenvill, tx : 12:05
oklahoma city, ok : 2:20
ponka city, ok : 4:20
