Friday, October 31, 2014

Linux Tools and Setup

Helpful Tools

  • Meld for file comparison, with GUI, easier to use than Linux Diff
  • Tmux 
  • I3 Window Manager
  • htop - an interactive process viewer for linux

Linux Issues and configuration

  • lUbuntu disable screen lock: sudo rm /etc/xdg/autostart/light-locker.desktop
  • Emacs <Ctrl>-<Spc> not function
    • sudo apt install dconf-editor, Then browse to Desktop >> ibus >> hotkey. The trigger and triggers setting will still show 'control+space'. Edit these settings out, being careful to leave empty brackets [] in triggers.
  • Grub boot order change:
    • sudo add-apt-repository ppa:danielrichter2007/grub-customizer
    • sudo apt-get update
    • sudo apt-get install grub-customizer
  • Undelete 
    • Looking for: extundelete - utility to recover deleted files from ext3/ext4 partition
    • To find such a package, you can try: apt-cache search undelete
    • To use the utility install it with: sudo apt-get install extundelete
    • After installation invoke man extundelete and study it carefully
      • extundelete --restore-file /opt/andy/bin/clean-bin-dir /dev/sda5
      • extundelete --restore-directory /opt/andy/bin/clean-bin-dir /dev/sda5
  • replace rm with trash
    • rm is dangerous operation, and it's hard to restore deleted file. Solution: trash-cli:
    • another options is to use gvfs
    • alias rm=trash, but trash don't support delete folder
  • Linux replace in all files
    •  .
  • Linux Commands
    •  tar -cvf files.tar my_directory --remove-files

Misc:

  • Bash (Unix shell) wiki 
  • find and replace: find . -name Makefile.POSIX -exec sed -i 's/CCFLAGS += -O3/CCFLAGS += -O0/' {} +
  • How use CUT -d 'delimiter' is delimiter is a TAB?   cut -d "<CTR>v <TAB>"

Top 5 Things to Do After Installing Fedora 22 Workstation

  • Software & Update
    • Canonical Partners is checked.
  • Step1
    • sudo yum update
  • Step 2: Configure Gnome Shell Interface
    • sudo yum install gnome-tweak-tool
  •  2. Enable RPM Fusion Repository
    • sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-21.noarch.rpm
    • sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-free-release-21.noarch.rpm
    • sudo yum update
  •  Install VLC Media Player
    • sudo yum install vlc
  • sudo yum install yum-plugin-fastestmirror

Labels: , , ,

Thursday, October 30, 2014

Install Darwin Streaming Server 6.0.3 on Ubuntu 14.04

The process of build Darwin Streaming Server 6.0.3 on Ubuntu 14.04:
  1. ref to Configuring Darwing Streaming Server in Linux
    • download & apply patches
  2. refer to here to modify make file, add -lpthread to follow make file:
    • ./QTFileTools/QTFileTest.tproj/Makefile.POSIX -lpthread
    • ./QTFileTools/QTTrackInfo.tproj/Makefile.POSIX -lpthread
    • ./QTFileTools/QTSampleLister.tproj/Makefile.POSIX -lpthread
    • ./QTFileTools/QTTrackInfo.tproj/Makefile.POSIX -lpthread
    • refer to: http://blog.csdn.net/zhaozhencn/article/details/18265535, add -lpthread -ldl
  3. Start DarwingStreaming Server and admin Server
      • .sudo /usr/local/sbin/DarwinStreamingServer
        • .sudo /usr/local/sbin/streamingadminserver.pl
      1. Fix issues in Install script, as install.sh, visit my github
      2. To test RTSP Client, run VLC:  rtsp://127.0.0.1/sample_100kbit.mp4
      3. To test Web Admin, 
        1. run:  streamingadminserver.pl
        2. start browser, http://localhost:1220
      4. Issue:
        • After installation, text in the "web admin server" is not able to display correctly. further investigation is needed.
        • streamingadminserver.pl is not compatible with new perl. As the result you got a web page without any text. The fix is here ()
          http://vk.com/wingcatlab?w=wall-99790498_55
      Related post on this topic:
      1. Ver 5.5.5-”Install (instalar) Darwin Streaming Server 5.5.5 DSS from sources in Ubuntu” - many replies, succeed - 2009.12.03
      2. 5.5.5-”How to Install Darwin Streaming Server 5.5 on Ubuntu”, install from binary, test with MP4Box
      3. 6.0.3-Darwin Streaming Server 6.0.3 - setup, customization, plugin or module development, performance and load tests on 32 & 64 bit Redhat Linux. -- many replies, successful
      4. 6.0.3-refer to here “creating a Home Media Streaming Center with Ubuntu” - download from github
      5. 6.0.3-refer to “Compiling Darwing Streaming Server 6.03 Under Debian - Updated” - one remark not successful
      6. 6.03-Apple Darwin Streaming Server Compilation & Installation for Linux - one install succeed by replies
      7. forum-Darwin Streaming Server on Ubuntu

      Labels: , ,