On Boot up, Lightdm does not work and black screen appears

I updated ubuntu 16.04 LTS to ubuntu 18.04 LTS. On ubuntu 16.04 I was using gdm3, which got broken during upgrading because when I set gdm3 as default display manager in recovery mode through,

sudo dpkg-reconfigure gdm3 

it said “gdm3 is broken or not properly installed” so I set lightdm as default display manager.

Now, when I boot having lightdm, after the purple scree, the black screen appears and nothing happens. If I press Ctrl+Alt+F2 , it shows me the tty3 login screen. I login with my username and password. Sometimes, it accepts it and sometimes it doesn’t (which is an issue but not the major issue of this question).

After logging in, I can navigate my directories but I can’t open graphical window. I tried opening chromium using command “chromium-browser www.google.com” but it said something like “Graphical interface not permitted”.

How do I get my Graphical Interface back? Note that I can’t connect to wifi. I tried using

sudo ifconfig wlan0 up sudo iwconfig wlan0 essid name key s:password 

It gave error in setting password which was like “Invalid argument password, Set encode”. I tried giving hexadecimal password too without s:

sudo iwconfig wlan0 essid name key hexpassword 

Didn’t work either. How do I get my UI back? And can the internet be connected through ethernet?

How does moving a grappled creature work?

Only relevant rules as far as I can tell (pg. 195).

Moving a Grappled Creature. When you move, you can drag or carry the grappled creature with you, but your speed is halved, unless the creature is two or more sizes smaller than you.

So if you’re dragging the grappled creature, how/where do they move? Where is the the grapple-ee dragged to in relation to the grappler?

The most common ruling I’ve seen for this is that the grappler can rotate the grapple-ee as much as they want. Couldn’t this combo with spike growth for infinite damage?

What to do when your SD card doesn’t work ?

There are many at times when your SD doesn’t work when you connect it to your PC. And it doesn’t show up too the files which we would be looking for copying. SD card doesn’t work is not a great question to be answered complicatedly but you will easily understand it with the help of this blog. Even if it has lost the memory we can easily get it back by using the Ease Us data recovery wizard….

What to do when your SD card doesn’t work ?

Is my database schema going to work? Tracking git issues

My boss wants an automated weekly report on how many git issues have been moved to and from various “lanes” (pipelines) on a virtual kanban board. I wrote a quick python script to get that data using Github and Zenhub APIs, and now I’d like to write that data to disk.

My current plan is to run this script once an hour, and write to a transaction table when I see that an issue has changed pipelines. Here’s a diagram of my current schema: db schema

So my question is, will this schema be able to support a large number of entries in the Transactions table? This will be tracking somewhere between 1,000 – 10,000 issues, with 50 – 1,000 transactions a day.

Some things worth mentioning:

  • There can be two or more issues with the same IssueNumber and different repoIDs (issues are assigned a number when opened starting from 1). So I’d like to use both RepoID and IssueNumber as the primary key for Issues table.
  • I might have the one-to-many arrows backwards, for example I’m trying to say that one RepoID can correspond to many entries in the Issues table but each entry only corresponds to one RepoID.

I’ve never really designed a database before and there aren’t really coworkers that can help me, so I would appreciate any advice or criticism on this schema.

libgcc_s.so.1 must be installed for pthread_cancel to work [SNAPCRAFT]

I am building my first snap and I am encountering some problems. My application uses Unity, Java, C ++ and Python, the last 2 are used to create a shared library that is used by Unity. When I try to close the application the following message is shown

libgcc_s.so.1 must be installed for pthread_cancel to work 

and the application does not close. I tried using “find /snap/newplayer/x1/ -name libgcc_s.so*” and got this result:

/snap/newplayer/x1/lib/x86_64-linux-gnu/libgcc_s.so.1 /snap/newplayer/x1/usr/lib/gcc/x86_64-linux-gnu/7/libgcc_s.so /snap/newplayer/x1/usr/lib/gcc/x86_64-linux-gnu/7/libgcc_s.so.1 

I’m using google translator because I’m not native to the English language.

Changing mouse polling rate doesn’t work on Kubuntu 18.04

I need to lower the polling rate of my new mouse (logitech g305), but after all the tweaks, it still shows 1000Hz.

I followed the instructions:

sudo su - -c 'echo "options usbhid mousepoll=2" > /etc/modprobe.d/usbhid.conf' sudo modprobe -r usbhid && sudo modprobe usbhid mousepoll=2 sudo update-grub sudo update-initramfs -u reboot 

And now the output of /sys/module/usbhid/parameters/mousepoll is what is supposed to be (default was 0):

# cat /sys/module/usbhid/parameters/mousepoll 2 

This tweak is needed to play some games with wine, but i cannot play them because the real polling rate is still 1000Hz:

# evhz  Press CTRL-C to exit.  event0: Lid Switch event1: Power Button event2: Sleep Button event3: AT Translated Set 2 keyboard event4: Video Bus event5: Video Bus event6: Logitech USB Receiver event7: Logitech USB Receiver Mouse event8: Logitech USB Receiver Consumer Control event9: Logitech USB Receiver System Control ... Logitech USB Receiver Mouse: Latest  1000Hz, Average   979Hz ... 

My system is:

Distro:Ubuntu 18.04.2 LTS (Kubuntu) Kernel:4.18.0-25-generic GPU Driver:NVIDIA 430.26 GPU:NVIDIA GeForce GTX 1050 Ti CPU:Intel Core i7-8750H @ 2.20GHz 

Can someone help ?