Categories
Linux Mastering Development

Initiate a new (X11) desktop session on a remote host

I would like to initiate a new (X11) desktop session on a remote host (let’s say for ‘exporting’ the session with x11vnc). At first, I tought this would be as easy as it is on the local host: $ xinit /usr/bin/startxfce4 — :4 However, if I try that on a remote (fedora) system with a […]

Categories
Linux Mastering Development

The shutdown command should have a warning message in the last,but it doesn’t show

Well,I am trying to add some words like “you computer will turn off.” after the command ‘shutdown’. But it doesn’t show.what could I do?

Categories
Linux Mastering Development Ubuntu

Can anyone help me fix grub?

I have decided to install Ubuntu on a USB stick and I have a SATA SSD with Windows 10 on it. I mostly use Ubuntu now, 99.99% of the time, but I’d still want to keep the Windows installation around. I have the BIOS set to look for the USB medium first and then the […]

Categories
Linux Mastering Development Ubuntu

WPA Enterprise (PEAP – MSCHAPv2) on Ubuntu 18.04

As many of us know, wpa_supplicant has a bug that afflicts the wpa-enterprise (PEAP – MSCHAPv2) to disconnect frequently. In my experience the wifi went down and retried to reconnect randomly making me very crazy because I couldn’t go online ! I didn’t find out if it depend of the wifi driver (I have a […]

Categories
Linux Mastering Development Ubuntu

Deleting a line and lines after it

I’m trying editing some text file using sed. In the text file there are two lines starting with a string. I want to delete only the first one and say 3 lines after it. How can I do that with sed? input: string line1 line2 line3 #### other lines #### string line4 line5 line6 output: […]

Categories
Linux Mastering Development Ubuntu

Screen tearing on external monitor on 18.04

I have Ubuntu 18.04 on a Dell Latitude E5570 and I have some screen tearing on an external monitor. It is connected in HDMI but I also have the issue on another screen in VGA. I don’t have the problem on the laptop screen. Here are some details for my graphic card: Card: Intel Skylake […]

Categories
Mastering Development

Connecting ESP8266 (NodeMCU) with Android app (MIT APP inventor) especially the longitude and latitude from a gps module

This is the value of latitude and longitude in my serial Arduino. ]1 This is my example design in Mit App inventor This is the blocks of my design in Mit app Gps Code: #include <TinyGPS++.h> #include <SoftwareSerial.h> static const int RXPin = 3, TXPin = 4; static const uint32_t GPSBaud = 9600; // The […]

Categories
Cryptocurrency Ethereum Mastering Development

web3.eth.getAccounts() returns no output

const deploy = async () => { const accounts = await web3.eth.getAccounts(); console.log(“Attempting to deploy from contract “, accounts); }; The code runs but returns nothing and even the next line doesn’t get logged to the console. I am using HDWalletProvider v1.0 and using Infura rinkeby test network and when I tried to log the […]

Categories
Mastering Development System & Network

WebBrowsers don’t obey ProxyFire rules

I am using ProxyFire portable v.3.42 on Windows to route all my system network traffic over LocalHost. In MobaXTerm(same as Putty) I have set a SSH Tunnel by forwarding 127.0.0.1:4567 into my server. Through this configuration , I expect every application’s network traffic on my Windows , rout through this SSH proxy , Including Chrome […]

Categories
CMS Magento Mastering Development

Custom Shipping Table Rates With Price Per Extra Weight and Near/Remote Areas

I need to implement shipping rates as below The shipping price would be fixed upto certain weight (e.g. 5kg) for a specific region and beyond that weight per kg extra price will be added. The shipping price would be different for near and remote areas. Kindly suggest ways to achieve this OR if there are […]