Tag: KDE

  • Building KDE Frameworks on Windows from Source

    Some notes on how to build KDE Frameworks packages from source on Windows using Visual Studio tools.

    To do so, you need to first have a version of Qt compiled by MSVC installed. Some system environment variables to be set, using Qt 5.15.2 as an example:

    • PATH needs to add C:\Qt\5.15.2\msvc2019_64\bin
    • Qt_DIR needs to be set to C:\Qt\5.15.2\msvc2019_64

    Example instructions for building CMake-based projects (all KDE projects), the command below should be executed in x64 Native Tools Command Prompt.

    mkdir build && cd build
    cmake .. -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX="C:\Qt\5.15.2\msvc2019_64"
    nmake && nmake install
    

    This will install the compiled KDE module into the Qt installation path. You can install it elsewhere, but if you do, make sure you update PATH environment variable accordingly.

  • Virtual Linux Desktop Experience in Azure

    I wouldn’t believe that I will be writing this 10 years ago. It’s 2020 though. Microsoft has improved a lot of services for Linux, ranging from developer tools like Visual Studio Code, to the protagonist today: Azure (cloud computing). Azure has steadfastly become a real credible alternative to Amazon EC2 (or AWS in general). Today, I want to share my experience of using a virtual machine on Microsoft Azure cloud. To be more specific, it is a Linux desktop virtual machine (SLES 15).

    (more…)
  • Announcing YapStocks 2.0

    Over the last few weeks, I’ve been working on a new plasmoid (KDE Plasma Applet) that provides a simple interface to monitor stocks. The first version was rather basic, being able to show the current market price only. Now it’s time to announce the availability of the second iteration of YapStocks (Yet Another Plasma Stocks Applet). I’ve recorded a short video clip showcasing all the features it has, ranging from the information summary to the historical price chart.

    (more…)
  • OpenSUSE 15.1 Installation Notes

    Although my personal laptop isn’t getting much attention from me because I’ve spent most of my time on my work laptop (a MacBook Pro) and my Android tablet (Samsung Galaxy Tab S5e), I’ve decided to take good care of its software over last weekend by wiping the SSD clean and installing a fresh OpenSUSE on it. As an old habit, I’m sharing some notes during the installation and later setup. This is, however, the first blog post written in English here (not counting the old ones on no-long-working en.librehat.com).

    (more…)
  • 适用于KDE Plasma 5的雅虎天气小部件

    去年简单粗暴地把自己写的Yahoo! Weather从KDE 4移植到了Plasma 5,但是一直没有好好改进一下。前段时间雅虎停止旧API支持,被迫更新,就顺便改改了。应该访客里有不少KDE的用户吧,想要一个简单的天气小部件的可以试试看。

    主要卖点

    • 纯QML,不用编译直接装
    • 雅虎天气接口,大品牌值得信赖
    • 自认还算简洁明了的UI
    • 支持不同的计量单位(温度、气压、风速等)
    • 10天天气预报

    (more…)

  • 用纯QML写的Plasmoid词典工具KDictionary

     

    (话外音:图片被扔在文章末尾了)

    花了一天来完成这个Plasmoid(KDE Plasma桌面小工具),可谓是现学现卖啊,一边网上查手册一边在机器上写。主要是对已有的Dictionary这个Plasmoid极度不满(不然我也不会自己写一个),去project.kde.org上一看吓我一跳,Dictionary的上次更新已经是两年前的事情了。而且还是用的C++,还没port到QML呢!

    (more…)

  • Amarok添加BBC Podcasts练听力学英语

    BBC一直是我学习英语(主要练听力)的好帮手啊,下面介绍一下Linux KDE环境下的Amarok播放器怎样添加BBC Podcasts快捷方便地收听BBC的音频。

    首先,当然是打开Amarok(神马?没有安装?sudo yum install amarok赶紧的),以默认视图为例,在左侧面板点击Podcasts,然后点击Add Podcast按钮,弹出的小窗口里粘贴上BBC Podcasts你中意的播客服务RSS地址即可。比如下面这两个我所收藏的:

    (more…)

  • Fedora Linux KDE下使用苹果USB铝合金键盘(G6)

    中国民间俗称G6的苹果键盘,Google一圈发现其实就是老外说的Apple Aluminum Keyboard.

    我也在淘宝上买来一块,现在Fedora(也包括其它Linux发行版)对这块键盘都是「开箱即用」级别的驱动支持。终端下lsusb看到了这块键盘:

    Bus 003 Device 003: ID 05ac:0220 Apple, Inc. Aluminum Keyboard (ANSI)

    基本按键都没有问题,当然F1~F12按下去默认是执行多媒体工作而不是功能键,需要F1必须按下fn+F1才是执行F1的功能。这并不是一个bug,而是因为键盘上面确切印刷的是多媒体功能键,F1~F12都是缩小印刷在键帽右下角的。如果你习惯一般PC键盘了,在终端下执行该命令可以把功能键和多媒体功能调换回来:

    (more…)

  • ownCloud出现500 Server Error错误的解决

    我的ownCloud一直是跑在GitHub的master上,偶尔会去更新一下。跑到/var/www/html/下git pull完,结果出错了。ownCloud显示一直处在维护状态,按照以前我的文章所写的,我修改了config.php解决掉维护状态,但是就出现Server Error(Chrome下点More可以看到是500错误)。

    翻一下日志吧,/var/log/httpd/error_log显示的如下。

    (more…)

  • Fedora Linux连接l2tp(东南大学Bras校园网)指南

    多亏了Networkmanager的l2tp插件啊,现在只要使用NetworkManager来管理网络,就能创建l2tp类型的VPN(包括l2tp+ipsec类型的VPN)。我们学校的校园网就是l2tp类型的VPN,在我们学校(东南大学)其正式名称为b-ras.

    下面以Fedora 19 KDE环境为例(最新版的Ubuntu也是可以的,不过要安装的软件包名称可能不同哦),结合东南大学B-ras网络设置(具体诸如网关、用户名、密码等请参考你自己的情况),首先在终端下运行下面这个指令来安装l2tp相关的软件包,

    (more…)