Ubuntu

All tests are failing

Im working on Pintos Assignment in which I have to pass alarm and alarm-priority tests. I did change the code previously for alarm and the first 5 tests did pass. But then when I made changes in next_thread_to_run() , all tests are failing. My logic isn’t efficient but I think it should work fine. Here is the code: struct thread…
Read more

SSH Network error: Connection refused

I was trying to setup sublime text editor to connect via sftp on my server but was getting connection timeout all the time. I found a solution and followed this article : http://superuser.com/a/957666 They suggested to change the server config to accept a mac algorithm used by the client by adding this “hmac-sha1” on KexAlgorithms. So in /etc/ssh/sshd_config, I changed:…
Read more

wx.Dialog different behaviour in Mac and Windows/Ubuntu

In my application I have many dialog screens. I have provided a button on all of the screens bound to an OnClose() method def OnClose(self, e): self.Destroy() The screen itself is also bound to this method self.Bind(wx.EVT_CLOSE, self.OnClose) This all works fine on Windows and Ubuntu, but on a Mac, the dialog disappears when the Cancel button is clicked, but…
Read more

pm2 startup doesn’t work

I setup my nodejs server successfully and I’m using it on Ubuntu 15.04 server, my issue is that I want my node applications to keep running when the server reboots so I tried pm2, forever and crontab but none of them worked for me, after rebooting I need to start the node application manually. I tried pm2 as follow: pm2…
Read more

How to deploy a *.tar.gz package on Opencpu

I have the following issue: I created a R package which is ending in *.tar.gz and I want to just upload this to the ubuntu server and install it into opencpu from the servers file system without using github (as Im not familiar with github that much yet). I have the following configuration: Ubuntu 14.04 running opencpu /opencpu-cache on it…
Read more

sudo subl, starts sublime without global menu

Recently I installed Sublime Text 3 on Ubuntu 14.04. It works fine but when i starts it by sudo command, the sublime starts with menu in windows and not global menu, While it starts in regular mode with global menu. I tried to hide menu in sudo subl mode but that actually hides the menu, and again not shows any…
Read more

cp: cannot stat ‘scripts’: No such file or directory and cp: cannot stat ‘include’: No such file or directory

I need help to fix the error message below. As can be seen, I am trying to build Linux kernel, but for some reason, I keep getting the error below when I execute “sudo fakeroot debian/rules binary-headers binary-generic” command. Thank you in advance for your help. honore@ubuntu:/usr/src/linux-source-3.13.0$ sudo fakeroot debian/rules binary-headers binary-generic Debug: install-headers dh_testdir dh_testroot dh_prep install -d /usr/src/linux-source-3.13.0/debian/linux-headers-3.13.0-63/usr/src/linux-headers-3.13.0-63…
Read more

How to change python’s "full name" (something like `cpython-34m-x86_64-linux-gnu`)?

I installed Python 3.5 from source and broke a number of modules on Python 3.4, which unfortunately, was an essential part of Ubuntu. I’ve been trying to fix the system, now I’m almost there, with (hopefully) the last problem: My Python 3.4 only recognize C modules with name *.cpython-34m.so, while all packages from Ubuntu repository are named *.cpython-34m-x86_64-linux-gnu.so. It seems…
Read more