차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판이전 판다음 판 | 이전 판 | ||
tech:libretto [2014/03/18 14:28] – V_L | tech:libretto [2016/07/12 00:56] (현재) – 바깥 편집 127.0.0.1 | ||
---|---|---|---|
줄 1: | 줄 1: | ||
+ | {{tag> | ||
+ | ======Libretto====== | ||
+ | |||
+ | {{http:// | ||
+ | |||
+ | |||
+ | [[http:// | ||
+ | |||
+ | https:// | ||
+ | |||
+ | |||
+ | |||
+ | https:// | ||
+ | |||
+ | =====Xubuntu with LXDE===== | ||
+ | Too slow (only 256 MB of RAM, 500 MHz processor) | ||
+ | As I stated earlier, Xubuntu will work with a 500MHz PII or PIII CPU, and just 256MB of RAM, but with the default XFCE desktop environment it is not that much faster than regular Ubuntu. | ||
+ | |||
+ | Xubuntu with LXDE is much better, but Lubuntu (which also uses LXDE) really seems to be the lightweight choice to watch right now. My suggestion: | ||
+ | |||
+ | 1) If you already have Xubuntu installed on an old machine, and want to make it faster: add the LXDE lightweight desktop environment and be done with it. | ||
+ | |||
+ | 2) If you haven' | ||
+ | |||
+ | 3) If you want to use Google developed, internet based applications for text editing, spreadsheets and e-mail (rather than a regular word processor, spreadsheet application and e-mail client), just get Peppermint - but you'll need to have an internet connection available all the time. You can still also add any application from the Ubuntu Software Center though, so you're not stuck either. Peppermint is good! | ||
+ | |||
+ | 4) If you don't want to wipe your hard drive, but still want an easy to use O.S. with all the basics you're ever likely to need, Puppy on a CD or USB drive will get the job done with flying colours: switching between one O.S. on the hard drive and another (on an external CD or USB drive) has never been so easy to do. Similarly, if you're still using Windows and aren't ready to wipe it off your hard drive, Puppy is a great way to introduce safe public browsing to your environment without touching one precious little hair on your Windows installation' | ||
+ | __________________ | ||
+ | Intrepid User of Xubuntu & LXDE on: | ||
+ | (1) Dell Latitude, CPi R400GT, PII 400 MHz, 256MB SDRAM, 66MHz. | ||
+ | (2) Toshiba Portégé 3490CT, PIII 700 MHz, 256MB SDRAM, 100MHz. | ||
+ | Both using NETGEAR MA521 Wireless PCMCIA (no issues!). | ||
+ | ====Xubuntu==== | ||
+ | Xface 사용 | ||
+ | http:// | ||
+ | http:// | ||
+ | |||
+ | ====eeebuntu==== | ||
+ | 우분투 http:// | ||
+ | 종합해 보면 이분투는 말 그대로 Eee PC를 위해 깔끔하게 정리된 리눅스라고 할 수 있다. | ||
+ | 이러한 이분투를 자신의 Eee PC에 설치하는 일은 매우 간단하다. 우선 이분투 공식 사이트(http:// | ||
+ | http:// | ||
+ | |||
+ | http:// | ||
+ | |||
+ | https:// | ||
+ | |||
+ | |||
+ | ====Ubuntu Netbook Remix==== | ||
+ | [[http:// | ||
+ | [[http:// | ||
+ | |||
+ | ====Netgear wg511v2==== | ||
+ | [[http:// | ||
+ | |||
+ | =====Debian Sarge===== | ||
+ | Toshiba Libretto L1 with Debian Sarge | ||
+ | 출처: http:// | ||
+ | Kernel 2.6.11 custom built | ||
+ | |||
+ | Here I will try to explain as best as I can how I got Debian Sarge working on my Toshiba Libretto L1 laptop. Most things are very straight forward, so I wont go into them. What I will focus on, is: | ||
+ | |||
+ | 1. Install Debian Sarge | ||
+ | 2. Kernel Update to 2.6.11 | ||
+ | 3. 1280x600 resolution, and X configuration. (Look for pointer device " | ||
+ | 4. ACPI power management | ||
+ | |||
+ | 1. Debian Sarge Install | ||
+ | |||
+ | I got Debian' | ||
+ | |||
+ | First off, this Laptop does not have a CD rom nor a Floppy Drive. I had a USB floppy drive laying around, so I gave that a shot with no luck what so ever. I grabbed the latest Boot floppies from Debian.org, and they had 2.4.27-2 kernel on them at the time of writing, 2005 April 24th. The reason this did not work is that the PCMCIA controller does not get an IRQ from the kernel, hence there is no PCMCIA card available, therefore there is no WAY ON EARTH to do an install over the Internet. You might compile your own kernel at this point, but I didnt do that because I found it easier to do a harddrive swap, and install the base on another computer. | ||
+ | |||
+ | ATTENTION | ||
+ | |||
+ | However, it was brought to my attention that taking the laptop apart might be a risky thing to do for some, and a custom kernel compile would be the way to go. So from here on what I explain about the install, please do at your OWN risk. I have taken apart many laptpos, so I did not hesitate to do it this time as well. | ||
+ | |||
+ | I have the luck of owning a great Dell 700m laptop, so I quickly (not so quickly actually) took the harddrive from the Toshiba and put it in the Dell, and did a Sarge minimal install. That left the Harddrive with a working Debian system that will pull all the rest of the Operating System over the net. I placed the HDD back to the Toshiba, and booted the beast. VOILA, the PCMCIA works fine. I was a bit freightened at first, as the Network card (Netgear MA401 wireless) did not show any lights. What I did I quickly switched out to another console (CTRL-ALT-F2) and did an " | ||
+ | |||
+ | Then I restarted the network "/ | ||
+ | |||
+ | It wasnt easy compare to an other notebook' | ||
+ | |||
+ | 2. Kernel Configuration 2.6.11 and compiling | ||
+ | |||
+ | I updated to kernel 2.6.11 as soon as I got the laptop booted for the first time. I like the latest but not bleeding edge stuff on my laptops, besides Acpi is always improving with later kernels, and that is one thing I really needed (ACPI). I did about 20 kernel compiles until I reached a point where I was satisfied with my kernel. Thankfuly as I earlier said, I own a Dell 700m with a Centrino 1.6GHz, so I did all the kernel compiles on that rather than on the Toshiba. Dell700m one kernel compile = 28 minutes, Toshiba Libretto = 3 hours. I did save a lot of time with that. After compiling I just copy (SCP) the .deb kernel to the Toshiba, install it and reboot. | ||
+ | |||
+ | Things I included in my kernel, and things I didnt. I added support for the Longrun stuff, so that the necessary /DEV/CPU devices are created. CPUID and MSR are both compiled in to the kernel. Longrun itself is also, so it can be started automatically be default. No modules needed. Sound and Video support, plus Framebuffer for Video is also compiled in. IDE controller (ALI) is also compiled in, and all others are removed even as modules, because they show an ERROR every time I boot, for example ERROR: Via IDE controlled is not found. Dooh, its not present on the motherboard, | ||
+ | |||
+ | As a note, I have a PCMCIA MA401 Netgear WiFi card, so I included HERMES-ORINOCO support. It was quite tricky as I had to enalbe a bunch of stuff. By default in Debians 2.6.11 kernel, PCMCIA controller is disabled, Wireless networking is disabled. You can imagine now why i compiled 20 times or more. But long story short everything works now (what I needed to work). So if it is satisfactory for you, please download my kernel-config file, and do any mods to it what you may need. (I assume you can compile a kernel). | ||
+ | |||
+ | Another note that this kernel requires the INITRD stuff, but debian should have it by default. If your system crashes with this kernel on boot, saying that ROOT filesystem cannot be mounted or somthing similar, then you need to look into INITRD. (not covered here) | ||
+ | |||
+ | Kernel-2.6.11 Config file HERE | ||
+ | |||
+ | 3. X Windows settings, Input device configuration and Framebuffer | ||
+ | |||
+ | This laptop has a beautiful display in my opinion. It sure is small, but that is why we got it, right? The resolution is 1280x600. This resolution is great if you do coding, as you can watch most websites in 1024 width so that your browser leaves some space for another small window for coding, or what not. Great stuff. | ||
+ | |||
+ | Below I will share my X configuration file that I got from another website, but works great, so I didnt mess with it. However, before that I will explain about framebuffer, | ||
+ | |||
+ | Framebuffer: | ||
+ | |||
+ | If you compiled the kernel with my kernel-config file, then you already have framebuffer support so no need to worry. If you havent used my kernel, you might need to recompile yours. Google for what to include in the kernel for framebuffer. Or just grab my config file, and use that. | ||
+ | |||
+ | To get framebuffer in your console, you need to pass a command in your boot loader. I use GRUB so that is what I will cover here. The command works with Lilo also, so you can google for that too, how to pass teh command with Lilo. | ||
+ | |||
+ | In grub, just add vga=0x404 and this will give you a nice 1280x600 console upon boot. I dont use it becuase the letters are so small, that it is almost unreadable, but it sure is nice, and the text actually is where it is supposed to be, right by the left side of the screen, and not in the middle of it. | ||
+ | |||
+ | Here is my Grub entry from / | ||
+ | |||
+ | title | ||
+ | root (hd0,1) | ||
+ | kernel | ||
+ | initrd | ||
+ | savedefault | ||
+ | boot | ||
+ | |||
+ | Pointer Device Problems (mouse) | ||
+ | |||
+ | The Libretto L1s pointer is a PS/2 intellimouse compatible mouse. So in your install, if you have such an option, choose ImPS/2. With the 2.6.8 and 2.6.11 kernel I had a problem, that my X wouldnt start, it kept saying that /dev/psaux (which is normally the mouse`s device) is missing. That kept me busy for a while when I realized that the module, " | ||
+ | |||
+ | psmouse | ||
+ | |||
+ | in the / | ||
+ | |||
+ | modprobe psmouse | ||
+ | |||
+ | And see if X works after its loaded. | ||
+ | |||
+ | Below is my X config file that belongs to / | ||
+ | |||
+ | # | ||
+ | |||
+ | Section " | ||
+ | Identifier | ||
+ | Screen | ||
+ | InputDevice | ||
+ | InputDevice | ||
+ | EndSection | ||
+ | |||
+ | Section " | ||
+ | FontPath | ||
+ | RgbPath | ||
+ | ModulePath | ||
+ | FontPath | ||
+ | FontPath | ||
+ | FontPath | ||
+ | FontPath | ||
+ | FontPath | ||
+ | FontPath | ||
+ | # | ||
+ | EndSection | ||
+ | |||
+ | Section " | ||
+ | Load " | ||
+ | Load " | ||
+ | Load " | ||
+ | Load " | ||
+ | Load " | ||
+ | Load " | ||
+ | Load " | ||
+ | Load " | ||
+ | Load " | ||
+ | Load " | ||
+ | # | ||
+ | Load " | ||
+ | EndSection | ||
+ | |||
+ | Section " | ||
+ | Identifier | ||
+ | Driver | ||
+ | Option | ||
+ | Option | ||
+ | Option | ||
+ | # | ||
+ | EndSectionhere | ||
+ | |||
+ | Section " | ||
+ | Identifier | ||
+ | Driver | ||
+ | Option | ||
+ | Option | ||
+ | Option | ||
+ | Option | ||
+ | EndSection | ||
+ | |||
+ | Section " | ||
+ | Identifier | ||
+ | VendorName | ||
+ | ModelName | ||
+ | EndSection | ||
+ | |||
+ | Section " | ||
+ | Identifier | ||
+ | VendorName | ||
+ | ModelName | ||
+ | |||
+ | HorizSync | ||
+ | VertRefresh | ||
+ | |||
+ | Modeline " | ||
+ | # | ||
+ | EndSection | ||
+ | |||
+ | Section " | ||
+ | ### Available Driver options are:- | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | Identifier | ||
+ | Driver | ||
+ | VendorName | ||
+ | BoardName | ||
+ | BusID " | ||
+ | EndSection | ||
+ | |||
+ | Section " | ||
+ | Identifier " | ||
+ | Device | ||
+ | Monitor | ||
+ | DefaultColorDepth 16 | ||
+ | |||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | SubSection " | ||
+ | Depth 16 | ||
+ | Modes " | ||
+ | ViewPort | ||
+ | # | ||
+ | EndSubSection | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | EndSection | ||
+ | |||
+ | Section " | ||
+ | EndSection | ||
+ | |||
+ | # | ||
+ | |||
+ | This is what I use, and what works for me. Please change it if you need any modifications. | ||
+ | |||
+ | |||
+ | 4. ACPI POWER MANAGEMENT | ||
+ | |||
+ | This was a big issue for me and took me 3 days to figure it out. The kernel that I built, and that you may build if you download the config file from above, has all required things built in to make suspend work, which was my only goal. All I need is when I close the lid it suspends to RAM and when i open it, it resumes. That isnt very hard to do, except a few things. | ||
+ | |||
+ | Sometimes: | ||
+ | |||
+ | 1. Computer doesnt wake up, and spits ERROR messages on screen regarding ALSA. | ||
+ | Alsa module needs to be removed and instered later when resuming. | ||
+ | 2. Computer wakes up, but shuts down immediately after resuming. | ||
+ | ACPI bug, it recieves a power button event, as if I had pushed the button, therefore it shuts down. Need | ||
+ | 3. Computer wakes up, but network refuses to work (PCMCIA CARD) no matter what you do until rebooted. | ||
+ | Card manager of PCMCIA is buggy and needs to be shut and restarted upon resuming. | ||
+ | |||
+ | All these problems I had to diiscover the hard way, but for your convenience I will include all the scripts and things to make your Suspend to RAM work in just minutes. | ||
+ | |||
+ | This script is / | ||
+ | |||
+ | The following script is / | ||
+ | |||
+ | #!/bin/bash | ||
+ | |||
+ | killall cardmgr | ||
+ | sleep 2 | ||
+ | cardctl eject | ||
+ | rmmod ohci_hcd | ||
+ | rmmod snd_ali5451 | ||
+ | touch / | ||
+ | |||
+ | echo " | ||
+ | sleep 2 | ||
+ | echo " | ||
+ | |||
+ | cardctl insert | ||
+ | cardmgr | ||
+ | modprobe snd_ali5451 | ||
+ | modprobe ohci_hcd | ||
+ | |||
+ | |||
+ | As you see, there is a " | ||
+ | |||
+ | # Check for hint to ignore power button. | ||
+ | # This is useful for wake from suspend to RAM, etc. | ||
+ | POWER_IGNORE=/ | ||
+ | if [ -f $POWER_IGNORE ]; then | ||
+ | rm -f $POWER_IGNORE | ||
+ | exit 0 | ||
+ | fi | ||
+ | # | ||
+ | |||
+ | |||
+ | The following scipt is / | ||
+ | |||
+ | event=button/ | ||
+ | action=/ | ||
+ | |||
+ | # | ||
+ | |||
+ | UPDATE: Please note that while suspend works 99% of the time, sometimes it just refuses to suspend anymore. When I close the lid, it wont do anything. Log files indicate that ACPID received the event, but it wont execute lidbtn.sh. Restarting ACPID does not better the situation at all. Restart required to get suspend working again. Other than suspend not working, the laptop is still functional. | ||
+ | |||
+ | LONGRUN and GKRELLM - Gkrellongrun | ||
+ | |||
+ | Since we have this great Crusoe CPU, we might just take advantage of it. There are a few things we can do. Longrun can set its operating mode to Economy and Performance. I think performance will adjust frequency in a faster way. So to go from 300-600MHz takes less time than in Economy mode. Other than this we can tell it a minimum speed, maximum speed. If we work in a hot room, we might set it to a lower speed, so it wont overheat. Dont forget that the Crusoe chip has no CPU fan. | ||
+ | You can execute longrun commands from console or you can have something to monitor it for you in a X session. I run KDE and I use GkrellM. Great tool. Settings are endless. Besides I think the 1280 screen width is great for a dockpanel on the right side, and a full size browser still fits next to it. This way we can keep an eye on our system. I know i am paranoic, but I like to see whats going on. GkrellM will monitor Port activities, Temperature, | ||
+ | |||
+ | apt-get install gkrellm | ||
+ | |||
+ | Now for the longrun plugin you need to get it from the developer`s | ||
+ | |||
+ | Go here and download the sources. The developer of the package is extremely nice, he developed this new version for my request back a year ago when I had a NEC Ultralite laptop. The older versions wont work anymore, so we needed a new one. | ||
+ | |||
+ | Download the latest one, and unzip it. Read the INSTALL file and follow the instructions. You need to install libgtk2.0-dev package if I remember correctly, but it will be in the INSTALL or README.linux file. | ||
+ | |||
+ | What to look out for is that you need to pass a special argument when you compile the module. Instead of the command | ||
+ | |||
+ | make | ||
+ | |||
+ | please use | ||
+ | |||
+ | CFLAGS=-D_FILE_OFFSET_BITS=64 make | ||
+ | |||
+ | Now, if you want to run GkrellM as user and not as root which is a good idea always, you need to give permissions to / | ||
+ | |||
+ | Now you can start GkrellM as a user (not as root) by typing | ||
+ | |||
+ | gkrellm & | ||
+ | |||
+ | Go to options, and go to plugins and select the gkrellongrun plugin. Now you should see the Crusoe activity. | ||
+ | |||
+ | What if it doesnt work? | ||
+ | |||
+ | Did you make sure you compiles your kernel with MSR and CPUID included? Do you have longrun installed? (apt-get install longrun). If MSR and CPUID are in your kernel, but only as modules, are they loaded? (lsmod | grep msr) (if not do modprobe msr and modprobe cpuid). | ||
+ | Did you make gkrellongrun with the special command detailes above and in README.linux of the package? | ||
+ | |||
+ | TOSHIBA ACPI FEATURES | ||
+ | |||
+ | There is a great tool which is included in newer kernels, called toshiba acpi. With this you can adjust screen brightness and switch to external monitor display. The later one I never tried, but the brightness works great for me. I have a script that reduces screen brightness when I unplug the AC adapter. This is a great battery saver. Here is the script I use. (/ | ||
+ | |||
+ | #!/bin/sh | ||
+ | |||
+ | # create cpuid and msr devices if they don't exist | ||
+ | # (this happens with some versions of udev) | ||
+ | #This scipt for me is at / | ||
+ | |||
+ | if [ ! -d /dev/cpu/0 ]; then | ||
+ | mkdir /dev/cpu | ||
+ | mkdir /dev/cpu/0 | ||
+ | fi | ||
+ | |||
+ | if [ ! -c / | ||
+ | mknod / | ||
+ | fi | ||
+ | |||
+ | if [ ! -c / | ||
+ | mknod / | ||
+ | fi | ||
+ | |||
+ | case " | ||
+ | 00000001) | ||
+ | echo " | ||
+ | longrun -f performance | ||
+ | longrun -s 0 100 | ||
+ | ;; | ||
+ | 00000000) | ||
+ | echo brightness: 3 > / | ||
+ | longrun -f economy | ||
+ | longrun -s 0 33 | ||
+ | ;; | ||
+ | *) | ||
+ | echo " | ||
+ | exit 1 | ||
+ | esac | ||
+ | |||
+ | exit 0 | ||
+ | |||
+ | For this to work, I have a file (/ | ||
+ | |||
+ | event=ac_adapter | ||
+ | action=/ | ||
+ | |||
+ | This is all what I have for now. As I reveal more, I publish more. Cheers, and drop me a line at linux AT celifornia com with questions. | ||
+ | |||
+ | Benedek Frank | ||
+ | |||
+ | LINKS: | ||
+ | |||
+ | http:// | ||
+ | |||
+ | I got most of my ideas from these guys, just I tailored it to my needs. If you want to check other sites, this would be the one to check. | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ^ 로긴 후 수정하실 수 있습니다. 관심있는 분들의 많은 참여 부탁드립니다. 문법은 [[wiki: | ||
+ | |||
+ | * 출처: [[|]] | ||
+ | |||
+ | |||