boot – Ubuntu installation won’t work on crashed windows laptop

So I have a Windows 8 laptop that I’m trying to renovate, but the Windows 8 crashed, and won’t boot. I decided to install Ubuntu on it instead using a Live CD on a usb stick, and proceeded to boot the cd, and go through the installation process, I selected LVM installation and clicked install, and get the following error: The efi file system creation in partition #1 of SCSI1 (0,0,0) (sda) failed. I couldn’t find anything on it, and was wondering if someone could help. Sorry about the bad wording, I suck at writing things, Thanks.

Islamic calendar has appearerd after ubuntu 20.04 updgrade

I upgraded from 18.04 10 20.04 today and it seems that i now have an islamic calendar in the top bar of my main window. I’m most confused as i didnt ask for it, and dont seem to be able to remove it. alt+ right click doesnt give any option to remove it and i’ll be honest, i dont want it!
screenshot of calendar and ‘about’ screen from right click of top bar icon

I’m also having other issues after upgrading, but those can wait for now!

Xorg + fbdev driver (/etc/X11/xorg.conf)dosen’t work in Ubuntu 18.04

I need to use fbdev driver(framebuffer) in Xorg to get better system latency.

So I use “Xorg :1 -configure” to get the default xorg.conf file. Then change the “Device” part, and copy xorg.conf to /etc/X11. Reboot Ubuntu.

    /etc/X11/xorg.conf
    Section "Device"
         ### Available Driver options are:-
         ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
         ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
         ### <percent>: "<f>%"
         ### (arg): arg optional
         #Option     "ShadowFB"             # (<bool>)
         #Option     "Rotate"               # <str>
         #Option     "fbdev"                # <str>
         #Option     "debug"                # (<bool>)
         Identifier  "Card0"
         #Driver     "vmware"
         Driver      "fbdev"
         BusID       "PCI:0:15:0"
    EndSection

In Ubuntu 16.04.6 , it works in this way. Sadly, in Ubuntu 18.04.4, it dosen’t.

//Ubuntu 16.04.6

hust@hust-pc:~$ inxi -G

       Graphics:  Card: VMware SVGA II Adapter
       Display Server: X.Org 1.19.6 driver: fbdev
       Resolution: 800x600@0.00hz
       GLX Renderer: llvmpipe (LLVM 6.0, 256 bits)
       GLX Version: 3.0 Mesa 18.0.5

//Ubuntu 18.04.4

hust@hust-virtual-machine:~$ inxi -G

       Graphics:  Card: VMware SVGA II Adapter
       Display Server: x11 (X.Org 1.20.5 ) drivers: vmware (unloaded: modesetting,fbdev,vesa)
       Resolution: 2880x1520@60.00hz
       OpenGL: renderer: SVGA3D; build version: 3.3 Mesa 19.2.8

I try to degrade the Xorg version in Ubuntu 18.04, but it causes the Xorg to hang sometimes.Then I try it in vmvare machine.

How can I change the Xorg driver to fbdev in Ubuntu 18.04?

ubuntu – how to make an sql file copied to the server work

I am trying to create a login page on my ubuntu server.
I have Apache2, php, and mysql installed and running.
I downloaded a sample PHP MySQL Login System including a users.sql file.
Is there a way to make this file work with MySQL or is it necessary to generate a new file?
If so, how..? Here is the code from the users.sql file.

-- phpMyAdmin SQL Dump
-- version 4.1.14
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Apr 28, 2017 at 02:20 PM
-- Server version: 5.6.17
-- PHP Version: 5.5.12

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

--
-- Database: `demo`
--

-- --------------------------------------------------------

--
-- Table structure for table `users`
--

CREATE TABLE IF NOT EXISTS `users` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(50) NOT NULL,
  `password` varchar(255) NOT NULL,
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `username` (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

Thanks for help and suggestions.

google chrome – Web browsers slows down in ubuntu after installing Team Viewer

I have recently installed Team Viewer, after that my browsers started slowing down. It happens with both Google Chrome and Firefox. I removed Team Viewer and tried re installing Firefox but issue persists. Other internet applications like Skype works fine. I am using 18.04.4 LTS Please share if you have solution to this issue.

Thanks Dipu

iptables – Ubuntu 18.04: Communication to server on localhost stops working after setting a port forwarding rule

I have a Ubuntu 18.04 device with two network interfaces, ethernet and USB LTE modem. There is IP camera connected directly to the ethernet port and it has address 192.168.0.90. I use the LTE interface for everything else – internet, ssh, etc. – it has static IP address 172.10.0.10 (our company has its own APN).

My device has a Python app running that communicates with local Node.JS server on http://localhost/abc that communicates to my server via the LTE interface to https://myserver.com/app

The IP camera has its own web server for configuration purposes. In order to get to the camera’s config page I set a port forward rule so I can access the IP camera on 172.10.0.10:8888:

sudo sysctl net.ipv4.ip_forward=1
sudo iptables -t nat -A PREROUTING -p tcp --dport 8888 -j DNAT --to-destination 192.168.0.90:80
sudo iptables -t nat -A POSTROUTING -j MASQUERADE

It works fine and I can access the camera and shell all good. But the Python app stops communicating with the local Node.JS server with this error:

502 Server Error: Bad Gateway for url: http://localhost/abc My guess is that my port forward rule broke some ports that those two local apps were communicating trough. Any idea on how to fix that?

pulseaudio – New Pc Build have dual boot working ok 18.04 ubuntu and windows 10. No sound in Ubuntu via HDMI

Stack Exchange Network


Stack Exchange network consists of 177 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

bitcoind – How do I open bx-linux-x64-qrcode via the command line on Ubuntu 20.0 in order to get access to the BX command tool

I have tried for three days now to get access to the BX commands, via the libbitcoin-explorer library. I have gone through various tutorials and have tried the install process and i do have a build-boost file where its supposed to be. While it appears that everything has worked, I still cannot use the bx command tools.

I then tried to download the simple executable file from https://github.com/libbitcoin/libbitcoin-explorer/wiki/Download-BX but I have no idea how to open the file. It is bx-linux-x64-qrcode. My system cant open it via the files app or ubuntu software and I cant figure out how to interact with this file via the command line either.

Please help.

ubuntu – Postgresql prompts for configuring tzdata when installing during docker image building

I am trying to build a docker image with postgresql with Ubuntu. When the image is being built during the postgresql installation apt prompts for the config data (e.g. time zone settings), but the terminal emulator does not send a keypress for the apt’s prompt. How do I either suppress this prompts or send some default values?

Host OS: Windows 10

Dockerfile (meaning strings):

FROM ubuntu:18.04
RUN apt-get update -y
RUN apt-get install -y  python3-pip python-dev build-essential postgresql-server-dev-10 postgresql
RUN pip3 install -r requirements.txt

Boot problem in Ubuntu 19.10

I use Ubuntu 19.10 and Windows 2010 on my pc and use Grub to switch between them. My Ubuntu OS was stuck on boot at:
dev sda5: clean, XXXXXX files, XXXXXX
Then I enabled console logging and found out that it was then stuck at

[ OK ] Started Update UTMP about System Runlevel Changes.

I tried uninstalling the NVIDIA driver in the root shell prompt. Then the boot got completed but it led my mouse to fail. It would recognise my keyboard and touch pad but mouse clicks were not recognised. I re-installed NVIDIA and encountered the same problem

 [ OK ] Started Update UTMP about System Runlevel Changes.

again.

Any help is appreciated.