Tag: Ubuntu

  • Enabling USB Keyboard and Mouse to Wake-up Ubuntu from Suspension

    Enabling USB Keyboard and Mouse to Wake-up Ubuntu from Suspension

    After having a new all-in-one type of computer with Bluetooth keyboard and mouse set, I faced the problem that Ubuntu could not be waken up from suspension by using the keyboard nor the mouse. After searching for a solution for some ten minutes, I decided to make some notes after finding the best solution to fix this. My article is based on this thread.

    Let’s first check the status of USB devices:

    I my case it is the 1-1.3 device which is the keyboard and mouse set, more precisely named as HP Wireless Keyboard Mouse Kit. This can be found out by looking at the following file:

    /sys/bus/usb/devices/1-1.3/product

    Now we would like to enable all the ports.

    echo enabled > /sys/bus/usb/devices/1-1.3/power/wakeup
    echo enabled > /sys/bus/usb/devices/1-1.4/power/wakeup
    echo enabled > /sys/bus/usb/devices/1-1/power/wakeup
    echo enabled > /sys/bus/usb/devices/usb1/power/wakeup
    echo enabled > /sys/bus/usb/devices/usb2/power/wakeup
    echo enabled > /sys/bus/usb/devices/usb3/power/wakeup

    Make sure that works well for you. After that we want to make the script executed after every reboot.

    sudo su
    sudo nano /etc/rc.local

    Copy paste all the code rows which begin echo enabled.. to the file before exit 0.

    Exit with “ctrl+X” and save with “yes”.

    Now you should be able to wake up your computer by using a keyboard or a mouse. And the status of usb ports should be set as enabled after every reboot. In my case, looks like this:

     

     

     

  • Installing Calculix Launcher

    Installing Calculix Launcher

    Calculix is an open source finite element analysis software. And Calculix Launcher is a tool that provides a nice graphical user-interface between the components of the tool stack. Read more from here.

    This guide is primarily written for my self to point out the steps of the procedure of installing the tool set on a fresh Linux desktop environment. There is a video (by calculix09) of which shows the same steps in very detail, so I recommend using that if you are not familiar with the software. However, the list below may be used as a handy checklist later.

    1. Download appropriate installation package from Yandex drive (by launcher3) via this link. Note: Use the link at your own risk. All software are licensed by their authors. The writer of this blog post has no responsibility related to the software.
    2. Extract the archive
    3. Change the permission to “Allow executing file as a program” by right clicking the executable icon and selecting the Permissions tab on Properties window.
    4. Copy the path of bin -folder under the CL32-linux64 -directory (press ctrl+L inside the folder).
    5. Open terminal and type cd and paste the path, for example: cd /home/joni/CL32-linux64/bin
    6. Let’s make all binaries executable by typing command: chmod 777 *
    7. Now we can run the Launcher by double-clicking the executable icon (you may want to pin the icon to Ubuntu launcher after that)

    That’s it. The Calculix Launcher is now available.

    Let’s change some settings.

    1. On Launcher Menu, select Settings and set gedit as Name of Text Editor.
    2. On Menu, select Run GSMH.
    3. On GSMH Tools, select Options, General and Advanced tab, to Text editor command add gedit '%s'
    4. Select File, and Save Options As Default

    In case you want to see examples how to use it, please leave a comment below and I will publish some tutorials here.

  • The Most Essential Software to Install on Ubuntu

    The Most Essential Software to Install on Ubuntu

    Time to time you may want or need to refresh your linux desktop by re-installation or you are forced to switch from a hardware or an operating system to another. And when it happens you need to setup everything for the basic usage. Of course, on many distros you may have a software center or similar where to download the software from. But it seems that often the default versions of these software are not the latest stable version or does not exist at all.

    This is my check list for Ubuntu how to install the most necessary stuff for myself.

    Git

    sudo apt install git
    git config --global user.email "you@example.com"
    git config --global user.name "Your Name"

    Spotify

    sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys BBEBDCB318AD50EC6865090613B00F1FD2C19886 0DF731E45CE24F27EEEB1450EFDC8610341D9410
    echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list
    sudo apt-get update
    sudo apt-get install spotify-client

    Sublime Text

    wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
    echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
    sudo apt update
    sudo apt install sublime-text

    Openshot

    sudo add-apt-repository ppa:openshot.developers/ppa
    sudo apt update && sudo apt install openshot-qt

    Freecad

    sudo add-apt-repository ppa:freecad-maintainers/freecad-stable
    sudo apt-get update
    sudo apt-get install freecad freecad-doc && apt-get upgrade

    Chrome

    wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
    sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
    sudo apt-get update
    sudo apt-get install google-chrome-stable

    Nextcloud

    sudo add-apt-repository ppa:nextcloud-devs/client
    sudo apt-get update
    sudo apt install nextcloud-client