kubuntu

No internet in terminal

谁说胖子不能爱 提交于 2019-12-11 11:35:08
问题 Similar questions to this one are all over the net, but I failed to solve my problem even after consulting them :( I am trying sudo apt-get update on a kubuntu 14.04 laptop, and I get a ton of W: Failed to fetch http://... Something wicked happened resolving ... (-5 - No address associated with hostname) messages Also, ping google.com gives ping: unknown host google.com I can however connect to the Internet through Firefox... It is probably related to some proxy issue I saw suggestions to add

Detect workstation/System Screen Lock using Python(ubuntu)

隐身守侯 提交于 2019-12-07 23:02:04
问题 Is there anyway that we can detect when the system/screen gets locked and notify some event to trigger in Ubuntu ? 回答1: There is a possibility to be notified when the screen becomes locked/unlocked with DBus, this is reference on GnomeScreensaver showing the basics of it. I am not DBus expert, but there are bindings for python, so you can listen for DBus events in python. Combinig the two, you should be able to get what you want:-). Here is a python-dbus programming tutorial on wikibooks. 来源:

How do you make Execute do anything in Geany?

雨燕双飞 提交于 2019-12-07 07:56:28
I am trying out Geany for the first time. Compile and Build work fine (and indeed the commands are automatically detected), however I have been unable to make Execute do anything at all. My setup: Create a new project Save a basic C hello world as hello-world.c (I am using Kubutuntu 14.04.) With no extra setup, pressing F9 or clicking Build -> Build correctly builds the executable. However, when I press F5 or click Build -> Execute, a terminal window appears with a $ prompt, and nothing else. I have tried going to Build -> Set Build Commands and changing the command next to Execute to various

Detect workstation/System Screen Lock using Python(ubuntu)

人盡茶涼 提交于 2019-12-06 06:09:05
Is there anyway that we can detect when the system/screen gets locked and notify some event to trigger in Ubuntu ? There is a possibility to be notified when the screen becomes locked/unlocked with DBus, this is reference on GnomeScreensaver showing the basics of it. I am not DBus expert, but there are bindings for python, so you can listen for DBus events in python. Combinig the two, you should be able to get what you want:-). Here is a python-dbus programming tutorial on wikibooks. 来源: https://stackoverflow.com/questions/2395579/detect-workstation-system-screen-lock-using-pythonubuntu

无需编译,1分钟安装Ubuntu官方构建的最新版Linux内核

余生长醉 提交于 2019-12-02 03:15:59
glibc是应用和kernel的桥梁,glibc封装kernel提供的API形成系统调用system call,Ubuntu上glibc对应libc6这个包。 升级kernel不升级核心库glibc一般不会影响软件的正常使用,像VirtualBox安装时编译有虚拟化相关的dkms内核模块,更新内核后需要重新编译这些模块: sudo /etc/init.d/vboxdrv setup 模块生成在 /lib/modules/`uname -r`/updates/dkms/vbox* 注:14.04上升级内核时会自动生成VirtualBox的内核模块,不需要手动执行。 新内核里集成了最新的Intel图形驱动 /lib/modules/`uname -r`/kernel/drivers/gpu/drm/i915/i915.ko 这得益于Intel官方Linux开源图形驱动项目:https://01.org/linuxgraphics/ Intel在2012年推出的Ivy Bridge架构的比如i5-3230M等等3代的CPU运行在Ubuntu12.04的3.2.0内核上可能会偶尔出现系统冻结freeze死机的情况。 旧内核不能很好地支持新架构,升级内核一般能解决类似问题。 http://kernel.ubuntu.com/~kernel-ppa/mainline/

npm install sqlite3 error

三世轮回 提交于 2019-12-01 05:22:17
i am not sure why, but i am having issues while installing any of the packages using npm. i tried to install sqlite3 and it gave error as follows: naphstor@ubuntu:~$ sudo npm install sqlite3 [sudo] password for naphstor: > sqlite3@2.0.15 preinstall /home/naphstor/node_modules/sqlite3 > node-waf clean || true; node-waf configure build Nothing to clean (project not configured) Setting srcdir to : /home/naphstor/node_modules/sqlite3 Setting blddir to : /home/naphstor/node_modules/sqlite3/build Checking for program g++ or c++ : /usr/bin/g++ Checking for program cpp : /usr/bin/cpp Checking for

npm install sqlite3 error

喜你入骨 提交于 2019-12-01 02:13:47
问题 i am not sure why, but i am having issues while installing any of the packages using npm. i tried to install sqlite3 and it gave error as follows: naphstor@ubuntu:~$ sudo npm install sqlite3 [sudo] password for naphstor: > sqlite3@2.0.15 preinstall /home/naphstor/node_modules/sqlite3 > node-waf clean || true; node-waf configure build Nothing to clean (project not configured) Setting srcdir to : /home/naphstor/node_modules/sqlite3 Setting blddir to : /home/naphstor/node_modules/sqlite3/build

Java: System.getProperty(“user.home”) returns “?”

为君一笑 提交于 2019-11-27 20:06:11
I'm completely lost on this one: System.getProperty("user.home") and System.getProperty("user.name") returns a questionmark "?". System-Specs: Kubuntu 9.04 Gnome 2.2.61 Java 1.5.0_16 My testcase looks like that: $ more Test.java class Test { public static void main( String[] args ) { System.out.println( System.getProperties() ); } } The result is (added line-breaks for better readability, replaced company name and own name): $ javac Test.java $ java Test { java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, sun.boot.library.path=/home/MYCOMPANY/myname/apps/jdk1.5.0_16/jre/lib

Ubuntu apt-cache show命令查看lib库的版本信息

半世苍凉 提交于 2019-11-26 23:34:39
在写《 Ubuntu14.04 安装VSCode 1.36.1版本 libnss3 (>= 2:3.26) 》时。 虽然已经安装成功VSCode 1.36.1, 其依赖库libnss3已经满足了2:3.26要求,但是我当时想知道究竟已经更新到什么版本了? 首先尝试了,apt-get install libnss3,发现其只是提示当前已经是最新版本。 但并未给出版本号。 user@swd:~$ sudo apt-get install libnss3 [sudo] password for user: 正在读取软件包列表... 完成 正在分析软件包的依赖关系树 正在读取状态信息... 完成 libnss3 已经是最新的版本了。 libnss3 被设置为手动安装。 下列软件包是自动安装的并且现在不需要了: gir1.2-json-1.0 gir1.2-timezonemap-1.0 gir1.2-xkl-1.0 libdbusmenu-gtk4 libmbim-glib0 libqmi-glib0 usb-modeswitch usb-modeswitch-data Use 'apt-get autoremove' to remove them. 升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 817 个软件包未被升级。 user@swd:~$ 后来想使用-

Java: System.getProperty(“user.home”) returns “?”

最后都变了- 提交于 2019-11-26 22:51:52
问题 I'm completely lost on this one: System.getProperty("user.home") and System.getProperty("user.name") returns a questionmark "?". System-Specs: Kubuntu 9.04 Gnome 2.2.61 Java 1.5.0_16 My testcase looks like that: $ more Test.java class Test { public static void main( String[] args ) { System.out.println( System.getProperties() ); } } The result is (added line-breaks for better readability, replaced company name and own name): $ javac Test.java $ java Test { java.runtime.name=Java(TM) 2 Runtime