Monday, July 11, 2016

BUILDING BRACKETS SHELL FOR LINUX


Its nothing but little drawbacks of master branch, has made a whole day workout for users and contributors. At the first try, you may get some errors during the build (grunt build || make ), such as

  • >> libcef_dll/ctocpp/views/display_ctocpp.cc:65:65: error: ‘>>’ should be ‘> >’ within a nested template argument list
    >> void CefDisplay::GetAllDisplays(std::vector>& displays) {
    >> ^
    >> make: * [out/Release/obj.target/libcef_dll_wrapper/libcef_dll/ctocpp/views/display_ctocpp.o] Error 1
    Warning: Task "build-linux" failed. Use --force to continue.

  • >> make: * No rule to make target 'out/Release/obj.target/libcef_dll_wrapper/libcef_dll/ctocpp/test/translator_test_ctocpp.o', needed by 'out/Release/obj.target/libcef_dll_wrapper.a"'. Stop.
or, you may get something like this when running grunt setup
  • Warning: Fetching "http://s3.amazonaws.com/files.brackets.io/cef/cef_binary_3.2623.1397_linux64_release.zip" failed with HTTP status code 403 Use --force to continue.

Actually, this error is because adobe haven't upload the above CEF files for linux to their servers, so you have to download it manually from cefbuilds.com, no matter what version of CEF you downloaded (but latest versions or provided would be better) but remember to convert .7z to .zip file and rename it with the name given with the error (cef_binary_3.2623.1397_linux64_release.zip), and make a downloads directory at the project root and save this file, now its alright to proceed with grunt build; but in most cases you will be met up with the first two errors, if its not, and build successful you're lucky.

But if it's not successful the best thing is instead of using master branch you can use linux-1547 branch with CEF 1547, surely it will build successfully for your machine, in case of 403 error related with CEF, you can just download it and provide to the brackets shell.
  • adobe/brackets-shell(github):https://github.com/adobe/brackets-shell
  • adobe/brackets-shell(linux-1547):https://github.com/adobe/brackets-shell/tree/linux-1547
  • cef-builds:https://cefbuilds.com/
  • Saturday, July 2, 2016

    Five most important things to do after installing opensuse


    OPENSUSE is one of the most stable linux distributions in the world of linux, if you are shifting from non-linux enviorenment such as windows or mac its obvious that you will feel a big difference, normally you'll find lots of tutorials and guids for the post installation instructions of opensuse, but upto now its unable to find a guide or tute with every thing at one place, as there are lots of common issues that beginners wasting their time to find out solutions that is spreaded all around the web, because of this we have compiled set of instructions to accompolish a succesfull and clean installaiton of opensuse.
    Update the system
    The first thing you have to do after installing a distro is updating ito the latest. In this case to do all updating processes and installing processes(package management) we use zypper, its not a big deal to do package management updating and upgrading in linux, but in here at leap 42.1 probably you may get some issues when trying to install updates
    1. Disable the repository openSUSE-42.1-0
      You can list all available repos by issuing this command : sudo zypper repos locate the repository openSUSE-42.1-0 by the index number (in most cases its one at the beginning) disable the repository by typing : sudo zypper mr e (index_no goes here) (by doing this you can get rid of an error like this (Empty destination in URI: hd:///?device=/dev/disk/by-id/scsi-1USB_DISK_2.0-part1 ")
    2. Update the system by issuing 'zypper update'
      If this command runs normally, you are almost finish with configuring the basics and you can proceed by skipping step 3, but in most cases you'll get an error like this (specially in leap 42.1) ("Error, failed to connect to download.opensuse.org/xx: network is unreachable") this is beacause zypper is using ipV6 at first as it is enabled in your computer and it is unable to resolve them (may be the router) to overcome this you can disable ipV6 at the boot.
    3. Disabling ipV6 -from grub
      To disable ipV6 at the boot time you need to pass kernel parameters via grub configuration file to do so you need to edit the grub configuration file : sudo vim /etc/default/grub search for the line containning ""GRUB_CMDLINE_LINUX=" "" and pass ipv6.disable=1, after saving it update the grub by grub2-mkconfig -o /boot/grub2/grub.cfg then you are alright enjoy updating after rebooting your system

    Installing multimedia codecs
    At the beginning it is unable to play files like .mp3 and DVD's and etc, to come across this you have to install the multimedia codecs by adding and enabling those repositories
    1. Add these repositories
      packman repo : zypper addrepo -f http://packman.inode.at/suse/openSUSE_Leap_42.1/ packman
      libdvdcss repo : zypper addrepo -f http://packman.inode.at/suse/openSUSE_Leap_42.1/ dvd
    2. Install these packages by using 'zypper install'
      # phonon-backend-vlc
      # phonon4qt5-backend-vlc
      # k3b-codecs
      # flash-player
      # ffmpeg
      # libdvdcss2

    Well done! you're alright with setting up fundamentals, so go ahead and install other software packages needed for your day to day life and other purposes.
    Good luck!