RSS

TP-Link TL-WR1043ND – Openwrt – Ch02_DDNS

0) Briefing

  • Up until now
    • OpenWrt installed, password set = ssh enable, Wifi enable
    • 4.785MB memory left (4900B) from fresh
  • What next
    • First time login router with SSH
    • Install software from Command-line-interface
    • Install DDNS client
    • Link freedns.afraid.org account to router

——————————————————————————–

1) Login router with SSH

  • In Microsoft Windows, use PuTTY (Download here)
    The rest of the instruction will be using Linux. Seriously, if you do not know how to use Linux command-line, you will have not hope working with the router. OpenWrt is just another version of Linux.
  • In Linux, open up your favorite terminal.
  • Type in the following command
    ssh root@192.168.1.1

——————————————————————————–

2) Install DDNS client

  • Update the local software database, so you will know what are available to you.
    The database is stored in RAM and will lost at each reboot.

    opkg update
  • To read the software list
    opkg list
  • Try to pin point the DDNS software
    opkg list | grep -a ddns
  • Install the DDNS software, this is for CLI settings only
    opkg install ddns-scripts
  • If you want to set DDNS through web page ( they call the web page software “LuCI”), you install this instead
    opkg install luci-app-ddns

——————————————————————————–

3) Setup DDNS client with freedns.afraid.org

  • The DDNS client is kind of working with freedns.adraid.org, just beware how I use the update code as password.
  • “vi” is a text editor in Linux. It is a bit tricky to understand how it works. However, it is a very powerful editor. ( Click here to learn how to use )
  • Edit the following config file
    vi /etc/config/ddns
  • Edit the followings
    • option enabled          “1”
    • option service_name     “freedns.afraid.org”
      you must use the above name for service_name for FreeDNS
    • option domain           “abcd.mooo.com”
    • option username         “abcd”
    • option password         “use_your_update_code_as_password”
      you can find this from their web page: For Members -> Dynamic DNS -> Direct URL
      freedns.afraid.org/dynamic/update.php?your_update_code
    • option ip_source        “web”
    • option ip_url           “http://checkip.dyndns.com

     

  • To kick off the service, trigger the WAN interface
    ACTION=ifup INTERFACE=wan /sbin/hotplug-call iface
  • To confirm, use this command
    ps

    Look for the following : {dynamic_dns_upd} /bin/sh /usr/lib/ddns/dynamic_dns_updater.sh myddns 0

——————————————————————————–

Appendix : References

Advertisements
 
2 Comments

Posted by on April 13, 2013 in Networking, Router

 

Tags: , , , , , , , , , , ,

TP-Link TL-WR1043ND – Openwrt – Ch01_Installation

1) Flashing your Router

The router I have is a TP-Link TL-WR1043ND v1.10 (Version one point ten). Special attention is required.

  1. Downgrade your original TP-Link firmware, to get around the “WAN disabled at startup” bug
  2. Install the openwrt-…..-squashfs-factory.bin firmware, to convert firmware from factory to OpenWrt
  3. Install the openwrt-…..-squashfs-sysupgrade.bin firmware, to complete the OpenWrt installation

Here are the files, flash your router firmware in the following order:

  1. Downgrade firmware, which is the German stock firmware (v3.9.17) – (Click here)
  2. Install factory-to-openwrt firmware, it is attitude_adjustment 12.09 – (Click Here)
  3. Install sysupgrade firmware, it is it is attitude_adjustment 12.09 – (Click Here)

Procedures:

  1. Login to the router default webpage: http://192.168.1.1
  2. a) For factory firmware, user_name/password = admin
    b) For OpenWrt firmware, user_name = root , password is not required
  3. Go to System -> Firmware -> Update Firmware
  • Repeat the above procedures 3 times, until you have flash all 3 firmwares.

——————————————————————————–

2) Setup password for the first time

  1. Go to the router default webpage: http://192.168.1.1
  2. Login without password for the first time
  3. There will be a red box alert you to change your password, click that link to access that webpage
  4. Input your new password
  5. Scroll down to the bottom of that page and click “Save & Apply” button

——————————————————————————–

3) Enable Wireless Connection

  • WiFi is disable with default settings
  • Go to : Network -> Wifi -> Wifi Overview -> Generic MAC80211 802.11bgn (radio0) -> Edit
  • Device Configuration
    • Advanced Settings :: Mode = 802.11g+n
    • Advanced Settings :: HT Mode = 20MHz
    • Advanced Settings :: Country Code = AU
  • Interface Configuration
    • General Setup :: ESSID = name_you_like
    • General Setup :: Mode = Access Point
    • General Setup :: Network = lan
    • Wireless Security :: Encryption = WPA2-PSK
    • Wireless Security :: Cipher = Force TKIP and CCMP (ASE)
    • Wireless Security :: Key = password_you_like
  • Scroll down to the bottom of the page and click “Save & Apply”

——————————————————————————–

Appendix : References

 
Leave a comment

Posted by on April 12, 2013 in Networking, Router

 

Tags: , , , , , , , , ,

TP-Link TL-WR1043ND – Openwrt – Ch00_Introduction

Today, routers are very powerful electronics equipments, they are not just only routing data packages, giving out IPs or blocking unwanted connections anymore. Now they also can act as File Server or Printer server as well.

Of course, manufactures will not put every single function into one router, otherwise, how can they earn some big cash from you. That’s why there are third-party firmwares. These third-party firmwares are base on Linux, which able to provide endless choice of software for you to use. Dropbear for SSH. FTP, SFTP, Samba or NFS for file server. CUPS for print server. SANE for scanner. Asterisk for VoIP. And sound server, webcam server….. The only limitation is on the hardware itself.

There are 3 large camp on third-party firmwares: DD-WRT, OpenWRT and Tomato. Personally, I have never use Tomato, so I could not make any comment on that.

My experience with DD-WRT is with my TP-Link TL-WR741ND. Which I have one in Hong Kong as my pptp VPN server. 741ND + DD-WRT is a bullet prove combination. I use it many hours everyday with huge data flow for 2 years now.

However, there are limitations. 1) 741ND don’t have USB port, which I can’t use it for file and printer/scanner server. 2) 741ND only have 4MB ROM memory, which left no space for anyone to install extra softwares. 3) The difficulty of setting up a DD-WRT.

Performance wise, I would not say DD-WRT will have to much different compare to OpenWRT, since they are both just Linux base, the different would not be huge. However, the simplicity of setup procedure with OpenWRT, definitely makes it a winner.

As I said before, 741ND lack a USB port, which is not going to be my next new toy. However, if you don’t need to use USB. I would say 741ND is the only choice you should have. And it is dirt cheap as well, less than USD$20 in Hong Kong.

My new toy would be TP-Link TL-WR1043ND. It cost just over USD$55, which cost much more than 741ND. But it come with big guns: Giga-byte LAN ports, 3 antennae, a much faster processor and a USB port.

My new setup, will be a PPTP+OpenVPN VPN servers, printer server, scanner server and a Samba file server.

 
Leave a comment

Posted by on April 11, 2013 in Networking, Router

 

Tags: , , , , , , , , , , , , , ,

Obihai OBi110 – Setup guide

Some background story here

  1. This OBi110 is located in Sydney. I have another ATA (Linksys SPA3000) in Hong Kong which I need to connect to.
  2. In ITSP profile A, Callcentric is the free SIP service provider for me to connect the ATA in SYD and HK.
  3. In Voice Gateway 1, WorldDialPoint is the paid SIP service provider for me to make most local and all international calls, since my land line provider charge much more on these.
  4. In LINE Service, TPG is the land line service provider, I only use this for 1300, 1800 and emergency calls (000).
  5. OBiTALK is optional for me at the moment, however, I am planning to change my SPA3000 to OBi110 as well. So I can make one stage dialing in the future. I will show an example of how to make one stage dialing call from the Android app to the land line through OBi110.
  6. To read all my settings in one go, scroll to the bottom of this post.

————————————————————————————————

Something about “Dial Plan” vs “Digit Map & Outbound Call Route”

  1. “Dial Plan” in SPA3000″
    “Dial plan” does everything itself: check numbers against rules. if not fit, drop the number. If fit, then check if it required to manipulate. When done, check which interface to go.
  2. “Digit map in OBi110”
    “Digit map” does everything the same as “Dial Plan”, except decide which interface to go.
  3. “Outbound Call Route” is the one who decide which route a phone number should go.
  4. SPA3000 “Dial Plan” allow you to control all interface in one centralize location. It is very good, if your rules are very simple. However, it will be very messy when you have more rules or want micro control on one interface.
    One the other hand, OBi110 provide “Digit Map & Outbound Call Route” on each interface so you can have very precise control. When you are done, it allow you to combine them in the Phone interface. The down side is it required more time to understand how it works. And because a phone number will go through multiple layer of rules, it is very hard to debug if problem occurred.

————————————————————————————————

Something about “Digit Map & Outbound Call Route” itself

  1. AA, SPx, LI, VGx all has its own Digit Map & Outbound Call Route.
  2. I see Phone Interface’s “Digit Map & Outbound Call Route” as combination of “Digit Map & Outbound Call Route” from all other interfaces.
    So if you have good rules on those interface. Phone Interface will be very easy to setup.

————————————————————————————————

Daylight Saving

  • Daylight saving in Sydney start on the first Sunday of October at 2am.
  • Daylight saving in Sydney end on the first Sunday of April at 3am on the following year.
  • “System Management – Network Settings – Time Service Settings”
    :: LocalTimeZone = GMT+10:00
    :: DaylightSavingTimeStart = 10/1/7/2
    :: DaylightSavingTimeEnd = 4/1/7/3

————————————————————————————————

Password

  • Remember to change your password
  • “System Management – Device Admin – Web Server
    :: AdminPassword = your_new_pwd
    :: UserPassword = your_new_pwd

————————————————————————————————

The SIP service provider – Callcentric

  • I have recently (4 April 2013) dropped iptel.org for Callcentric. I found SIP service from iptel.org will fall into “Error 500” randomly. Which I couldn’t find out is the problem from the caller device, the receiver device or the problem from iptel.org.
  • I use Callcentric free service to make calls between Obi110 in Sydney, Linksys SPA3000 in Hong Kong, my Sister’s iphone and my Andriod phone.
  • “Service Providers – ITSP Profile A – General”
    – General :: Name = Callcentric
    – Service Provider Info :: Name = Callcentric
    – Service Provider Info :: URL = http://www.callcentric.com
  • “Service Providers – ITSP Profile A – SIP – SIP”
    :: ProxyServer = callcentric.com
    :: RegistrarServer = callcentric.com
    :: UserAgentDomain = callcentric.com
    :: OutboundProxy = callcentric.com
  • “Voice Services – SP1 Service”
    – SP1 Service :: X_inboundCallRoute = {(17779999999):aa},{ph}

    Call from 17779999999 will route to aa (AutoAttendant), all other calls will ring the phone.

    – SIP Credentials :: AuthUserName = 17771111111
    – SIP Credentials :: AuthPassword = your_pwd

————————————————————————————————

The OBiTALK Service

  • If you don’t know what OBiTALK is, here is the deal. Obihai manufacture OBi110 and other ATAs, which are able to use normal SIP service. On top of that, Obihai also provide their own version of internet voice service called OBiTALK.
    I think OBiTALK is 99% base on SIP protocol. The main different is you MUST use Obi apps or device to connect to OBiTALK.There is one advantage of using OBiTALK is the simplicity of “One stage dialing”. So what is “one stage dialing”? Or may be you should ask what is “two stage dialing first”.
    Let say, I am in UK, I would like to call my friend in Sydney. What I have to do is make an Internet call to my ATA device in Sydney. Then key in my password. Then wait for the dial tone. Then I can make my Sydney local call. This is called “Two stage dialing”, since I have to dial to my ATA first before I dial to my friend.In one stage dialing, I just need to key in “Magic number + my friend phone number” in the OBiTALK app. That’s it!!!………. Of course you need to make some settings first. However compare to Linksys SPA3000, it is much easier. Since I still couldn’t find out how to make one stage dialing in SPA3000.
  • Part A : Client side – Setup your OBiTALK app, it also work if you have another OBi110
    • In my OBiTALK app, save my Sydney OBi110 number to the app’s “Speed Dial”
    • eg :: Speed Dial 2 = **9200111222
    • You CANNOT edit OBiTALK app Speed Dial inside the app, you have to do it in their website
    • In OBi110, just save it to the Speed Dial page
    • To make a call, in the OBiTALK app key in : 2#0288889999
      • 2# = speed dial 2 which contain Sydney OBi110 number
      • 0288889999 = my friend’s Sydney local phone number
      • The combination is call Obi110 and forward that phone number
  • Part B : Server side – “Voice Services – OBiTALK Service – OBiTALK Service Settings”
    :: InboundCallRoute = {(290888999)>(xx.):li},{(290888999):aa},{ph}

    • {(290888999)>(xx.):li} = call from 290888999, if contain a forwarded phone number, then connect that number on LINE
    • {(290888999):aa} = call from 290888999, if doesn’t have any special message, then route it to aa (AutoAtendant).
    • {ph} = all other number, route to the phone

————————————————————————————————

The Voice Gateway

  • SPx is a two way street. It can make outbound calls. It also will standby all the time for inbound calls.
  • Voice gateway, on the other hand, is a one way street. It can make outbound calls ONLY.
  • WorldDialPoint is a paid VoIP service base in Australia. I make most of my paid calls through this company.
  • “Voice Services – Gateways and Trunk Groups – Voice Gateway1”
    :: Name = WorldDialPoint
    :: AccessNumber = sp1(sip.evoice.net.au)
    :: DigitMap = ( <:02>[2-9]xxxxxxx | 0[2-9]xxxxxxxx | 0011xx. )

    <:02>[2-9]xxxxxxx = any eight digit number started with 2,3,4,5,6,7,8 or 9, then add 02 in front.
    ~~ this is a local phone number, 02 is the code for the state of NSW
    0[2-9]xxxxxxxx = any ten digit number started with 0 and the second digit is 2,3,4,5,6,7,8 or 9.
    ~~ this is a complete Australian land line or mobile number
    0011xx. = a phone number started with 0011 and followed by 2 or more digits
    ~~ this is any international calls

    :: AuthUserID = your_user_id
    :: AuthPassword = your_pwd

————————————————————————————————

Phone Port

  • “Physical Interfaces – PHONE Port – PHONE Port”
    :: DigitMap = ( (Memer)S0 | (Msp1) | (Mvg1) | [1-9]x?*(Mpli)|[1-9]S9|[1-9][0-9]S9|**0|***|#|**1(Msp1)|**2(Msp2)|**8(Mli)|**9(Mpp)|(Mpli) )

    Memer = My “User Defined Digit Map” named “emer”

    :: OutboundCallRoute = {(Memer):li},{(Msp1):sp1},{(Mvg1):vg1},{([1-9]x?*(Mpli)):pp},{(<#:>):li},{**0:aa},{***:aa2},{(<**1:>(Msp1)):sp1},{(<**2:>(Msp2)):sp2},{(<**8:>(Mli)):li},{(<**9:>(Mpp)):pp},{(Mpli):pli}

  • “Physical Interfaces – PHONE Port – Port Settings”
    :: Impedance = 220+(820||115 nF)

    This is for Australian Phone

————————————————————————————————

Line Port

  • “Physical Interfaces – LINE Port – LINE Port”
    :: DigitMap = ( (Memer) | 13x. | 18x. | !1x. | xx. )
    :: InboundCallRoute = {ph}
  • “Physical Interfaces – LINE Port” (All these are for Australian phone)
    – PSTN Disconnect Detection :: DisconnectTonePattern = 425-30;20;(.375/.375)

    425Hz-30dB; 20Seconds; ( 0.375 second on / 0.375 second off )

    – Port Settings :: ACImpedance = 220+(820||120 nF) and 220+(820||115 nF)
    – Port Settings :: OnHookSpeed = 26 ms (Australia)
    – Port Settings :: TipRingVoltageAdjust = 3.2V
    – Port Settings :: MinOperationLoopCurrent = 14 mA

    For reference, my “Line In use” Voltage = 6V, Loop current = 26mA

    – Port Settings :: DTMFPlaybackLevel = -10
    – Ring Detection :: RingFrequencyMax = 70
    – Ring Detection :: RingThreshold = 13.50-16.50
    – Ring Detection :: RingValidationTime = 256

————————————————————————————————

Speed Dials

  • “User Settings – Speed Dials – Speed Dials”
    :: 1 = sp1(17772222222)

————————————————————————————————

User Defined Digit Maps

  • “User Settings – User Defined Digit Maps – Map2”
    :: Label = emer
    :: DigitMap = ( <112:000> | <911:000> | <999:000> | 000 )

    Convert 112,911,999 to 000, which 000 is the local emergency call number

————————————————————————————————

Brake down of Phone Interface “Digit Map & Outbound Call Route” in categories

Emergency calls
Physical Interfaces – PHONE Port – PHONE Port :: DigitMap = ( (Memer)S0 )
Physical Interfaces – PHONE Port – PHONE Port :: OutboundCallRoute = {(Memer):li1}
Physical Interfaces – LINE Port – LINE Port :: DigitMap = 000S0
User Settings – User Defined Digit Maps – Map2 :: Label = emer
User Settings – User Defined Digit Maps – Map2 :: DigitMap = ( <112:000> | <911:000> | <999:000> | 000 )

Local and Internetional calls
Voice Services – Gateways and Trunk Groups – Voice Gateway1 :: Name = WorldDialPoint
Voice Services – Gateways and Trunk Groups – Voice Gateway1 :: AccessNumber = sp1(sip.evoice.net.au)
Voice Services – Gateways and Trunk Groups – Voice Gateway1 :: DigitMap = ( <:02>[2-9]xxxxxxx | 0[2-9]xxxxxxxx | 0011xx. )
Voice Services – Gateways and Trunk Groups – Voice Gateway1 :: AuthUserID = user_id
Voice Services – Gateways and Trunk Groups – Voice Gateway1 :: AuthPassword = user_pwd
Physical Interfaces – PHONE Port – PHONE Port :: DigitMap = ( (Mvg1) )
Physical Interfaces – PHONE Port – PHONE Port :: OutboundCallRoute = {(Mvg1):vg1}

House keeping
Physical Interfaces – PHONE Port – PHONE Port :: DigitMap = ( **0|***|#|**1(Msp1)|**2(Msp2)|**8(Mli)|**9(Mpp)|(Mpli) )
Physical Interfaces – PHONE Port – PHONE Port :: OutboundCallRoute = {(<#:>):li},{**0:aa},{***:aa2},{(<**1:>(Msp1)):sp1},{(<**2:>(Msp2)):sp2},{(<**8:>(Mli)):li},{(<**9:>(Mpp)):pp},{(Mpli):pli}
Physical Interfaces – LINE Port – LINE Port :: DigitMap = ( 13x. | 18x. | !1x. | xx. )

————————————————————————————————

All settings in one go

System Management – Network Settings – Time Service Settings :: LocalTimeZone = GMT+10:00
System Management – Network Settings – Time Service Settings :: DaylightSavingTimeStart = 10/1/7/2
System Management – Network Settings – Time Service Settings :: DaylightSavingTimeEnd = 4/1/7/3

System Management – Device Admin – Web Server :: AdminPassword = your_new_pwd
System Management – Device Admin – Web Server :: UserPassword = your_new_pwd

Service Providers – ITSP Profile A – General – General :: Name = Callcentric
Service Providers – ITSP Profile A – General – Service Provider Info :: Name = Callcentric
Service Providers – ITSP Profile A – General – Service Provider Info :: URL = http://www.callcentric.com
Service Providers – ITSP Profile A – SIP – SIP :: ProxyServer = callcentric.com
Service Providers – ITSP Profile A – SIP – SIP :: RegistrarServer = callcentric.com
Service Providers – ITSP Profile A – SIP – SIP :: UserAgentDomain = callcentric.com
Service Providers – ITSP Profile A – SIP – SIP :: OutboundProxy = callcentric.com

Service Providers – ITSP Profile B – General – General :: Name = iptel.org
Service Providers – ITSP Profile B – General – Service Provider Info :: Name = iptel.org
Service Providers – ITSP Profile B – General – Service Provider Info :: URL = http://www.iptel.org
Service Providers – ITSP Profile B – SIP – SIP :: ProxyServer = iptel.org

Voice Services – SP1 Service – SP1 Service :: X_inboundCallRoute = {(17779999999):aa},{ph}
Voice Services – SP1 Service – SIP Credentials :: AuthUserName = 17771111111
Voice Services – SP1 Service – SIP Credentials :: AuthPassword = your_pwd

Voice Services – SP2 Service – SP2 Service :: X_inboundCallRoute = {ph}
Voice Services – SP2 Service – SIP Credentials :: AuthUserName = 44441111
Voice Services – SP2 Service – SIP Credentials :: AuthPassword = your_pwd

Voice Services – OBiTALK Service – OBiTALK Service Settings :: InboundCallRoute = {(290123123)>(xx.):li1},{(290123123):aa},{ph}

Voice Services – Gateways and Trunk Groups – Voice Gateway1 :: Name = WorldDialPoint
Voice Services – Gateways and Trunk Groups – Voice Gateway1 :: AccessNumber = sp1(sip.evoice.net.au)
Voice Services – Gateways and Trunk Groups – Voice Gateway1 :: DigitMap = ( <:02>[2-9]xxxxxxx | 0[2-9]xxxxxxxx | 0011xx. )
Voice Services – Gateways and Trunk Groups – Voice Gateway1 :: AuthUserID = your_user_id
Voice Services – Gateways and Trunk Groups – Voice Gateway1 :: AuthPassword = your_pwd

Physical Interfaces – PHONE Port – PHONE Port :: DigitMap = ( (Memer)S0 | (Msp1) | (Mvg1) | [1-9]x?*(Mpli)|[1-9]S9|[1-9][0-9]S9|**0|***|#|**1(Msp1)|**2(Msp2)|**8(Mli)|**9(Mpp)|(Mpli) )
Physical Interfaces – PHONE Port – PHONE Port :: OutboundCallRoute = {(Memer):li},{(Msp1):sp1},{(Mvg1):vg1},{([1-9]x?*(Mpli)):pp},{(<#:>):li},{**0:aa},{***:aa2},{(<**1:>(Msp1)):sp1},{(<**2:>(Msp2)):sp2},{(<**8:>(Mli)):li},{(<**9:>(Mpp)):pp},{(Mpli):pli}
Physical Interfaces – PHONE Port – Port Settings :: Impedance = 220+(820||115 nF)

Physical Interfaces – LINE Port – LINE Port :: DigitMap = ( (Memer) | 13x. | 18x. | !1x. | xx. )
Physical Interfaces – LINE Port – LINE Port :: InboundCallRoute = {ph}
Physical Interfaces – LINE Port – PSTN Disconnect Detection :: DisconnectTonePattern = 425-30;20;(.375/.375)
Physical Interfaces – LINE Port – Port Settings :: ACImpedance = 220+(820||120 nF) and 220+(820||115 nF)
Physical Interfaces – LINE Port – Port Settings :: OnHookSpeed = 26 ms (Australia)
Physical Interfaces – LINE Port – Port Settings :: TipRingVoltageAdjust = 3.2V
Physical Interfaces – LINE Port – Port Settings :: MinOperationLoopCurrent = 16 mA
Physical Interfaces – LINE Port – Ring Detection :: RingFrequencyMax = 70
Physical Interfaces – LINE Port – Ring Detection :: RingThreshold = 13.50-16.50

User Settings – Speed Dials – Speed Dials = sp1(17772222222)

User Settings – User Defined Digit Maps – Map2 :: Label = emer
User Settings – User Defined Digit Maps – Map2 :: DigitMap = ( <112:000> | <911:000> | <999:000> | 000 )

————————————————————————————————

Some references

 
Leave a comment

Posted by on April 4, 2013 in VoIP

 

Tags: , , , , , , , , , , , ,

XFCE with multiple sound cards

If you are using a laptop like me, you may have ran into a problem of the hotkey on your keyboard is not controlling the sound card that you are using when you have multiple sound cards.

It is because XFCE has chosen the HDMI output as my default sound card, so whatever I press, it is just changing the HDMI output but not my headphone/speaker output.

1a) Open “Volume Control” -> “Output device”
1b) Set “Built-in Audio Analogue Stereo” as fallback by clicking the green tick.
1c) Remember the sound card name that you want to set as default, it will be useful in the next step.
screenshot-xfce_default_sound_card-01

2a) Go to “Settings Manager” -> “Settings Editor” -> “xfce4-mixer”
2b) Now, recall the name of your sound card. eg. mine is “”Built-in Audio Analogue Sereo”
2c) Then add “Playback” in front, add “PulseAudioMixer” at the back, and remove all space and ‘-‘ in between, so the result will be PlaybackBuiltinAudioAnalogueStereoPulseAudioMixer
2d) Put this string and replace the original one in “active-card”
2e) Logout and login, then you are done.
screenshot-xfce_default_sound_card-02

 
Leave a comment

Posted by on March 18, 2013 in Linux, Ubuntu, xUbuntu

 

Tags: , , , , , , ,

Ubuntu 13.04 personal post-installation mini guide

My usually desktop is XFCE. However, as usually, when a new version of Ubuntu is out. I will give it’s default desktop a try. Here is my note of how do I set it up.

1.1) enable Canonical’s ‘partner’ repository:

sudo nano /etc/apt/sources.list

1.2) uncomment the following lines ( Line 50 & 51 ):

deb http://archive.canonical.com/ubuntu raring partner
deb-src http://archive.canonical.com/ubuntu raring partner

2) For ATI users, you may want to use the latest driver:

sudo add-apt-repository ppa:xorg-edgers/ppa

3) To get the latest WineHQ:

sudo add-apt-repository ppa:ubuntu-wine/ppa

4) Then, update data base:

sudo apt-get update

5) (Optional) To find out what you have installed:

dpkg --get-selections | sed 's:install$::' > InstalledPackages.txt

6) Then, remove what I do not want:

sudo apt-get purge account-plugin-* aisleriot brltty deja-dup* example-content firefox-globalmenu firefox-gnome-support friendly-recovery gnome-contacts gnome-mahjongg gnome-mines gnome-orca gnome-sudoku gnomine ibus-pinyin* libreoffice* nano onboard rhythmbox* shotwell speech-dispatcher thunderbird* toshset totem unity-webapps-common

7) Then, upgrade system:

sudo apt-get dist-upgrade

8) Then, install what I want:

sudo apt-get install audacious cheese chromium-browser easytag fglrx-amdcccle gqview ibus-table-cangjie5 ibus-table-cantonhk ibus-table-quick5 ttf-mscorefonts-installer smplayer synaptic unrar vim virtualbox virtualbox-guest-additions-iso vlc winetricks

9.1) To remove “AMD Testing use only” watermark, copy the following text to a new text file,

#!/bin/sh
DRIVER=/usr/lib/fglrx/xorg/modules/drivers/fglrx_drv.so
echo "Come on AMD!"
for token in $DRIVER; do
    echo "Removing AMD logo from "$token
    for x in $(objdump -d $DRIVER|awk '/call/&&/EnableLogo/{print "\\x"$2"\\x"$3"\\x"$4"\\x"$5"\\x"$6}'); do
        sed -i "s/$x/\x90\x90\x90\x90\x90/g" $DRIVER
    done
done
echo "Reboot computer to finish"

9.2) Then, run your saved file:

sudo bash filename
 
Leave a comment

Posted by on March 12, 2013 in Linux, Ubuntu

 

Tags: , , , , , , ,

xubuntu 13.04 personal post-installation mini guide

I feel sorry for myself. I am not that old, but I just cannot get used to Unity3D. So the best thing I can do to stay with Ubuntu is to use xubuntu, the XFCE version of Ubuntu.

xubuntu is almost perfect, howerver, as usual, customization is always required.

As you may notice, this guide is quite similar to my 12.10 guide, I think the best thing to end this series of mini guide will be a rolling release version of xubuntu.

1.1) enable Canonical’s ‘partner’ repository:

sudo nano /etc/apt/sources.list

1.2) uncomment the following lines:

deb http://archive.canonical.com/ubuntu quantal partner
deb-src http://archive.canonical.com/ubuntu quantal partner

2) For ATI users, you may want to use the latest driver:

sudo add-apt-repository ppa:xorg-edgers/ppa

3) To get the latest WineHQ:

sudo add-apt-repository ppa:ubuntu-wine/ppa

4) Then, update data base:

sudo apt-get update

5) (Optional) To find out what you have installed:

dpkg --get-selections | sed 's:install$::' > InstalledPackages.txt

6) Then, remove what I do not want:

sudo apt-get purge abiword* catfish firefox-globalmenu firefox-gnome-support gigolo gmusicbrowser gnome-mines gnome-sudoku gnumeric* ibus-pinyin* nano parole pidgin* plymouth-theme* ristretto speech-dispatcher thunderbird* xchat* xfce4-mailwatch-plugin xfce4-notes* xfce4-quicklauncher-plugin xfce4-screenshooter xfce4-systemload-plugin xfce4-verve-plugin

7) Then, upgrade system:

sudo apt-get dist-upgrade

8) Then, install what I want:

sudo apt-get install audacious brasero chromium-browser easytag fglrx-amdcccle gqview guvcview ibus-table-cangjie5 ibus-table-cantonhk ibus-table-quick5 ttf-mscorefonts-installer skype smplayer synaptic unrar vim virtualbox virtualbox-guest-additions-iso vlc winetricks

9.1) To remove “AMD Testing use only” watermark, copy the following text to a new text file,

#!/bin/sh
DRIVER=/usr/lib/fglrx/xorg/modules/drivers/fglrx_drv.so
echo "Come on AMD!"
for token in $DRIVER; do
    echo "Removing AMD logo from "$token
    for x in $(objdump -d $DRIVER|awk '/call/&&/EnableLogo/{print "\\x"$2"\\x"$3"\\x"$4"\\x"$5"\\x"$6}'); do
        sed -i "s/$x/\x90\x90\x90\x90\x90/g" $DRIVER
    done
done
echo "Reboot computer to finish"

9.2) Then, run your saved file:

sudo bash filename
 
Leave a comment

Posted by on March 11, 2013 in Linux, Ubuntu, xUbuntu

 

Tags: , , , , , , ,

 
%d bloggers like this: