ก๊วนซอฟท์แวร์ </softganz> SoftGang (Gang Software)

Web &amp; Software Developer Gang.

Topic List

โดย Little Bear on 1 มิ.ย. 51 10:53
  • sudo lshw -short -sanitize -html : View hardware information

  • sudo lsusb : View USB device information

  • dmesg : for "diagnostic message"

  • cat /proc/cpuinfo : View CPU information

  • cat /proc/meminfo : View memory information

  • lspci : View PCI device information

  • sudo aptitude purge php mysql apache : Clean remove all LAMP

  • nm-tool : Network Manager Tool

  • คำสัง Unix linux พื้นฐาน ใช้ได้ freebsd

โดย Little Bear on 29 พ.ค. 51 20:11

My Linux's application collection lists.

  • recordMyDesktop as video from getbeb

  • VirtualBox make many OS on my computer. Download from virtualbox.org and how to install. Fixed keyboard bug on Ubuntu 8.04 by installing scim-bridge-client-qt package

  • Netspeed Applet. A little applet that displays some information on the traffic on the specified network device.

    sudo apt-get install netspeed
    Right click on Panel and Add to panel. Select Network Monitor (Netspeed Applet) then click Add.

  • Audacity for audio recorder. Require LAME encoder to export to MP3.

  • Resize photo by right click on Nautilus

    sudo apt-get install nautilus-gksu nautilus-image-converter nautilus-open-terminal

  • nrg2iso for change nrg format (Nero) to ISO format

    #sudo apt-get install nrg2iso

    use : nrg2iso [nrg-file] [iso-file]

โดย Little Bear on 22 พ.ค. 51 23:04

After I install Audacity by this command

#sudo apt-get install audacity

It cannot export my recording to MP3. It require LAME Encoder.

Require file is libmp3lame.so.0

I try to download from http://lame.sourceforge.net and try to complie. It still don't work.

This http://ubuntuforums.org/showthread.php?t=466421&page=2 told me to install LAMP and liblame0 by Administration / Synaptic Package Manager

Select package  LAMP and liblame0 and then click Apply.

It work!!!!

โดย Little Bear on 15 พ.ค. 51 20:31

My home have 3 computer. I want to share internet for all computer.

I search from internet and found Howto Share internet connection from http://ubuntuforums.org.

Following this step and it work!!!!!!

Note: Type all the following commands in a root terminal, DO NOT use sudo. Please use su or sudo su -

  1. Start by configuring the network card that interfaces to the other computers on you network:

    # ifconfig ethX ip

    where ethX is the network card and ip is your desired server ip address (Usually 192.168.0.1 is used)

    My note : My ethX was eth0 and ip was 192.168.1.1

  2. Then configure the NAT as follows:

    # iptables -t nat -A POSTROUTING -o ethX -j MASQUERADE

    where ethX is the network card that the Internet is coming from

    # echo 1 > /proc/sys/net/ipv4/ip_forward

  3. Install dnsmasq and ipmasq using apt-get:

    # apt-get install dnsmasq ipmasq

  4. Restart dnsmasq:

    # /etc/init.d/dnsmasq restart

  5. Reconfigure ipmasq to start after networking has been started:

    # dpkg-reconfigure ipmasq

  6. Repeat steps 1 and 2.

  7. Add the line "net.ipv4.ip_forward = 1" to /etc/sysctl.conf

    # gedit /etc/sysctl.conf

  8. Reboot. (Optional)

After reboot , It's work and I set Windows XP on VMware 2Beta to use this share by set DNS to my ISP.

Everything OK!!!!!

Thank for anaoum from http://ubuntuforums.org very much.

From : http://ubuntuforums.org

และมีคำแนะนำให้ใช้ firewall ชื่อ firestarter install (Its just a frontend to iptables.In its preferences, set "internet connected device" to the internet, and "local network device" to the local device. Then enable NAT and DHCP if you want...) โดย

sudo apt-get install firestarter

ที่ http://www.opentle.org บอกว่า

ไม่ต้องลงอะไรเพิ่มแค่พิมพ์ตามนี้ (แต่ต้องเป็น root ก่อน)

echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

(eth0 คือขาที่ ออกเน็ต) เครื่อง ลูกก็ ตั้งให้ ip class เดียวกับ eth0 เอา ถ้าไม่อยากแจก dhcp ถ้าอยากแจกก็ ลง package dhcp ซะ

ยังไม่ได้ลองเลย ไว้มีโอกาสค่อยลองดูนะครับ

โดย Little Bear on 12 พ.ค. 51 20:54

I try to install VMWARE 2 Beta on Ubuntu 8.04 Hardy by follow this step (from ubuntu-tutorials.com)

How to install VMware Server 2.0 Beta in Ubuntu 7.10 “Gutsy Gibbon”

  1. Download VMware Server 2.0 Beta available from the VMware website. Write down the serial number it generates for you at registration.
  2. Unpack this archive to a location on your machine (perhaps /tmp).
  3. Before you configure and compile VMware Server we need to disable ipv6 support in Ubuntu as it is not currently compatible.
  4. sudo aptitude install build-essential xinetd
  5. cd /tmp/vmware-server-distrib ; sudo ./vmware-install.pl
  6. Answer the questions presented during the installation. The defaults should be safe in most cases.
  7. Because Ubuntu does not use the root user account we also need to setup access for your main user. Replace root with your username on line 10 of: /etc/vmware/hostd/authorization.xml (ACEDataUser).
  8. At this point I had to restart my machine to put the changes in place. I did try restarting the service(s) after changing the config, but it still didn’t allow access.
  9. Access your VMware Server via http://localhost:8222 or https://localhost:8333
  10. Accessing the remote console tab to view your virtual machine will also require an extension installed to Firefox. This also requires a browser restart after the extension is installed.



This instruction was work on Ubuntu 8.04 too.

Relate links : - Cant connect to VMWare server using remote console - How to install VMware Server 2.0 Beta in Ubuntu 7.10 “Gutsy Gibbon”

โดย Little Bear on 13 เม.ย. 51 15:48

softganz@softganz-desktop:~$ history|awk '{a[$2]++} END{for(i in a){printf "%5d\t%s\n",a[i],i}}'|sort -rn|head

  134  ls
  101  sudo
  62  cd
  15  wine
  15  chmod
  14  ping
  13  grep
  10  ps
  10  bin/nas200
    7  top

เอามั่ง(เหมือนกัน) ฐานที่เลิกใช้ Windows หันมาหา Ubuntu เต็มตัว

ปล. แต่ก็ยังมี wine อยู่นะ

โดย Little Bear on 18 ก.พ. 51 21:54

ติดตั้ง Ubuntu Desktop ให้เป็น Server (LAMP)

Install Apache

#sudo apt-get install apache2

Enable mod_rewrite

#sudo a2enmod rewrite

เปลี่ยน DocumentRoot ของ apache เป็น folder อื่น และเปิดใช้งาน clean url

#gksudo gedit /etc/apache2/sites-available/default
  • เปลี่ยนบรรทัด /var/www/ เป็น /my web folder/ จำนวน 2 ตำแหน่ง
  • แก้ค่า AllowOverride ของ /my web folder/ จาก None เป็น AllowOverride All

Install PHP

<a class="hashtag" href="/tags/sudo">#sudo</a> apt-get install php5 libapache2-mod-php5 php5-gd
<a class="hashtag" href="/tags/sudo">#sudo</a> /etc/init.d/apache2 restart

Install MySQL

<a class="hashtag" href="/tags/sudo">#sudo</a> apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql phpmyadmin

<a class="hashtag" href="/tags/gksudo">#gksudo</a> gedit /etc/php5/apache2/php.ini

add this line extension=mysql.so

#sudo /etc/init.d/apache2 restart

หากมีข้อมูลเก่าของ mysql ก็สามารถ copy มาไว้ที่ /var/lib/mysql แล้ว โดยใช้คำสั่ง

<a class="hashtag" href="/tags/sudo">#sudo</a> cp /media/disk/var/lib/mysql/* /var/lib/mysql/
<a class="hashtag" href="/tags/sudo">#sudo</a> chown -hR mysql /var/lib/mysql/*
<a class="hashtag" href="/tags/sudo">#sudo</a> chgrp -hR mysql /var/lib/mysql/*

ทางทีดีคือไปอ่านรายละเอียดจากเว็บต้นฉบับดีกว่าครับ ที่ Installing LAMP On Ubuntu For Newbies

Or from howtoforge.com

#sudo apt-get install apache2 apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert
<a class="hashtag" href="/tags/sudo">#sudo</a> apt-get install libapache2-mod-php5 php5 php5-common php5-curl php5-dev php5-gd php5-idn php-pear php5-imagick php5-imap php5-json php5-mcrypt php5-memcache php5-mhash php5-ming php5-mysql php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl

ติดตั้ง Tahoma font

ถึงยังไงผมก็ยังชอบฟอนท์ Tahoma ของ Windows อยู่ดี ก็เลยต้องหาวิธีติดตั้งฟอนท์ Tahoma บน Ubuntu

เจอบทความ Adding Windows fonts in Linux ทดลองดูแล้ว It's work เลยเอาลิงก์มาเก็บไว้ก่อน

วิธีที่ผมใช้ง่ายนิดเดียว คือ copy fonts Tahoma จาก Windows/Fonts มาใว้ใน folder ./fonts ของ home folder

แล้วก็ทำการติดตั้งฟอนต์ทดแทน เพื่อแก้ปัญหาสระเยื้องใน OOo

ติดตั้ง Extensions ของ Firefox ที่ใช้ประจำ คือ CollorZilla , Download Statusbar , DownThemAll , Firebug , FireGestures , NoScript , ShowIP , Xmarks

Install FileZilla

#sudo apt-get install filezilla

Install thunderbird

#sudo apt-get install thunderbird

Install Geany editor

#sudo apt-get install geany

Upgrade OOo.org 2.3.0

#sudo gedit /etc/apt/sources.list

add 2 lines

deb http://download.thaigrid.or.th/pub/ubuntu/contrib gutsy openoffice.org deb-src http://download.thaigrid.or.th/pub/ubuntu/contrib gutsy openoffice.org

<a class="hashtag" href="/tags/sudo">#sudo</a> apt-get update
<a class="hashtag" href="/tags/sudo">#sudo</a> apt-get install openoffice.org

NAS200

Mounting SMB Shares Network share permanently mount samba share

Add this line to file /etc/init.d/module-init-tools

#for Aircard 580
modprobe usbserial vendor=0x1199 product=0x0122
mknod /dev/ttyUSB5 c 188 0

# mount NAS200
modprobe smbfs
mkdir /media/nas200

Manual mount nas200 to /media/nas200 is

#sudo mount -t smbfs //192.168.1.2/ /media/nas200 -o username=myusername,password=mypassword,uid=1000,mask=000,iocharset=utf8



Make AirCard button on panel

  • Right click on panel -> Add to panel
  • Select Custom Application Launcher
  • Command : xterm -T "Connect to CDMA" -e pppd call cdma
โดย Little Bear on 11 ก.พ. 51 12:59

มีรายชื่อโปรแกรม OpenSource ที่สามารถใช้งานทดแทนในงานที่เป็นอยู่ ผมไปได้รายชื่อนี้มาจาก linux.sothorn.org จึงขออนุญาตเก็บเอามาเผยแพร่ต่อนะครับ

  1. Windows      Vista OS to Ubuntu
  2. Internet      Explorer Browser to Firefox      Browser
  3. Microsoft      Office to OpenOffice
  4. Mactopia      to NeoOffice
  5. MathWorks MATLAB      to Scilab
  6. Microsoft      Access to Kexi
  7. Microsoft      Word to OpenOffice      Writer
  8. Microsoft      Excel to OpenOffice      Calc
  9. Microsoft      Visio to Dia
  10. Blackboard      to Moodle
  11. Box      to Cabos
  12. Microsoft      Project to Open Workbench
  13. Mindjet to FreeMind
  14. Adobe      Illustrator to Inkscape
  15. Adobe      PhotoShop to GIMP
  16. Adobe Premiere      to Avidemux
  17. AutoCAD      to Archimedes
  18. Microsoft      PowerPoint to OpenOffice      Impress
  19. Microsoft      Paint to Tux Paint
  20. TruSpace      to Blender
  21. Adobe      GoLive CS2 to Mozilla SeaMonkey
  22. Adobe Dreamweaver      to NVU
  23. Macromedia Flash      Professional to OpenLaszlo
  24. Microsoft      Frontpage to Bluefish
  25. Windows Notepad      to ConTEXT
  26. Altova      XMLSpy to      XML Copy Editor
  27. Adobe Acrobat to PDFCreator
  28. Adobe      Framemaker to DocBook
  29. Microsoft      Publisher to Scribus
  30. AIM to Pidgin
  31. FeedDemon      to RSS Bandit
  32. Microsoft MSN Messenger      to aMSN
  33. Microsoft      Outlook to Thunderbird
  34. Skype to Wengophone
  35. iTunes to Songbird
  36. Nero      Burning Rom to K3b
  37. Quicktime      to Darwin      Streaming Server
  38. TiVo Desktop to Galleon.tv
  39. Windows      Media Player to Miro
  40. CuteFTP to Filezilla
  41. iBackup to ZManda
  42. Norton      Ghost to Partition      Image
  43. Rational      Purify to Valgrind
  44. WinZip to 7-Zip
  45. Kaspersky Anti-Virus      Personal to Winpooch
  46. McAfee VirusScan      to ClamWin
  47. Norton      Personal Firewall to WIPFW
  48. Authorize.net      to OpenSSL
  49. Microsoft      Money (Plus) to TurboCash
  50. Quickbooks to Compiere



ที่มา : linux.sothorn.org | whdb.com

โดย Little Bear on 2 ม.ค. 51 00:50

วันนี้พยายามติดตั้ง Ubuntu บนโน๊ตบุค Compaq NX9040 พยายามตั้งแต่เช้าแล้ว ป่านนี้ก็ยังไม่สำเร็จ

Compaq NX9040 specification - Intel Celeron M 1.6 GHz - Ram 256 MB - Harddisk 40 GB / Linux partition 10 GB - Display adapter Intel(R) 82852/82855 GM/GME - Sound Conexant AC-Link audio

ลอง

  • Boot ด้วย Ubuntu 7.10 Live CD ปรากฎว่าไม่ผ่าน พอได้ยินเสียงตอนเปิดเครื่อง เสียงขาดกระตุก แล้วเครื่องก็ค้างไปเลย