How to connect my Ubuntu server to the same WiFi as my laptop https://askubuntu.com/questions/1562923/how-to-connect-my-ubuntu-server-to-the-same-wifi-as-my-laptop

I'm just a beginner using Ubuntu, so my question might seem a bit dumb. For a task I had to use VMnet3 when I set up my Ubuntu Server, but the way the internet was configured wouldn't let it work.

I had to change my /etc/netplan/50-cloud-init.yaml file to this:

network:
    ethernets:
        ens33:
            dhcp4: false
            addresses:
                - 172.30.0.1/16
            routes:
                - to: default
                via: 172.30.255.254
            nameservers:
                addresses:
                    - 172.30.255.254
    version: 2

When I ping it won't work and says "temporary failure in name resolution". I don't really understand why that all fails because I did exactly what the task said.

Also a problem is: when I want to to do the command ifconfig the command should be installed, but that's not possible because there is no internet connection.

HP-LaserJet-M1005 printer unable to print multiple pages https://askubuntu.com/questions/1562919/hp-laserjet-m1005-printer-unable-to-print-multiple-pages

i have HP-LaserJet-M1005 on Ubuntu 24.04 LTS. It is printing single page fine but it doesn't print multiple copies of same page. How do i fix this??

OEM Install source for HP https://askubuntu.com/questions/1562918/oem-install-source-for-hp

How do we get access to the OEM installation source for an HP Z2 Mini G1i device versus trying to get the normal download to work?

How do I decrease the Ethernet card speed and duplex in Linux Mint (or any Linux distribution)? [duplicate] https://askubuntu.com/questions/1562917/how-do-i-decrease-the-ethernet-card-speed-and-duplex-in-linux-mint-or-any-linux

I am new to Linux Mint and I want to know how to lower the speed and duplex of an external Ethernet card.

I want to lower it because the card is installed in a slot that does not provide full voltage. When the card is under heavy use, it turns off and then turns on again.

So I want to reduce the card to the minimum required speed and power.

The card model is SK9521.

Please give easy guides. I only know basic terminal commands, and sometimes I don’t understand what the commands do — I just type them.

Thanks.

Help - can't start Linux PC - suspected full HD https://askubuntu.com/questions/1562914/help-cant-start-linux-pc-suspected-full-hd

everyone.

Problem - I can't start Linux-based PC - I get black screen with blinking cursor.

I used recovery mode and checked the disc - It showed my that C drive is about 450GB and about 420GB was used. Usage was 100%. That's why I assumed that lack of free space on HD is a problem.

I used Live CD and Live USB sticks, opened up problematic drive (let's call it "old") and tried to delete some unimportant files/folders from old HD. They can not be deleted.

Is there a way to delete (or copy) unwanted large files/folders from old HD using the terminal (with Live USB)?

Let me know what can be done. TIA.

How to run a web browser as desktop background? https://askubuntu.com/questions/1562911/how-to-run-a-web-browser-as-desktop-background

I have a dashboard from Home Assistant and would like it to be shown as the desktop wallpaper/background using some web web browser (Firefox, Chromium) in kiosk mode.

How would I tell my Ubuntu 24.04/Wayland/Gnome to automatically start that browser upon user login and run it as desktop wallpaper?

I checked gnome dynamic wallpaper resources and found:

I remember years before Gnome came up it was possible to start application such that they would run in the root or desktop window - such as xearth, xroach and xsnow used to do.

What to do if accidently made a typo when doing an `echo` to `.bashrc`? https://askubuntu.com/questions/1562853/what-to-do-if-accidently-made-a-typo-when-doing-an-echo-to-bashrc

I accidentally wrote exort instead of export when setting CL_ALL=en_US. What I was trying to do was switch it from Japanese to English, thx ahead!

Here is what I did:

export LANG=en_US.utf8
export LC_ALL=en_US.utf8
echo 'export LANG=en_US.utf8'>>~/.bashrc
echo 'exort LC_ALL=en_US.utf8'>>~/.bashrc
source~/.bashrc
bash: source~/.bashrc: No such file or directory
source ~/.bashrc
bash: 警告: setlocale: LC_ALL: ロケールを変更できません (US.utf8)
exort: command not found
echo 'export LC_ALL=en_US.utf8'>>~/.bashrc
source ~/.bashrc
bash: 警告: setlocale: LC_ALL: ロケールを変更できません (US.utf8)
exort: command not found

How do I fix this?

Network interface speed limited to ~15Mbps but only one direction https://askubuntu.com/questions/1559435/network-interface-speed-limited-to-15mbps-but-only-one-direction

Welcome :)

I have computer, NUC13 (i5, 64GB ram) with Ubuntu Server 24.04, equipped with two i226-V NICs (one built in, another one is NUC add-on). I observed some network issues, so I tested it with iPerf3. Results are very poor. iperf3 -c x.x.x.x results in speeds around 10-15-30Mbps, while iperf3 -c x.x.x.x -R shows correct transfers (up to 2.5Gbps). It may be worth to add, that UDP test iperf3 -c x.x.x.x -u -b 1000M succeed with 1Gbps. Problem exists on both NICs. I set up iperf binding to specific interfaces to isolate them during test without success. They behave exactly the same.

I already tried disabling eee, changing qdisc, using HWE kernel 6.14 and finally - upgraded Ubuntu to 25.10 with kernel 6.17. Nothing can fix my situation.

Im pretty much sure that networking itself is fine, as I have another machine connected to same switch which don't have any problems with network saturation. Its also not iperf3 issue, because openspeedtest instance shows the same problem.

ethtool output looks like this

Settings for enp86s0:
    Supported ports: [ TP ]
    Supported link modes:   10baseT/Half 10baseT/Full
                            100baseT/Half 100baseT/Full
                            1000baseT/Full
                            2500baseT/Full
    Supported pause frame use: Symmetric
    Supports auto-negotiation: Yes
    Supported FEC modes: Not reported
    Advertised link modes:  10baseT/Half 10baseT/Full
                            100baseT/Half 100baseT/Full
                            1000baseT/Full
                            2500baseT/Full
    Advertised pause frame use: Symmetric
    Advertised auto-negotiation: Yes
    Advertised FEC modes: Not reported
    Speed: 2500Mb/s
    Duplex: Full
    Auto-negotiation: on
    Port: Twisted Pair
    PHYAD: 0
    Transceiver: internal
    MDI-X: off (auto)
    Supports Wake-on: pumbg
    Wake-on: g
        Current message level: 0x00000007 (7)
                               drv probe link
    Link detected: yes

Any ideas/advices can be helpful.

Ubuntu 22.10 doesn't boot past the splash screen https://askubuntu.com/questions/1457332/ubuntu-22-10-doesnt-boot-past-the-splash-screen

Ubuntu doesn't boot past the splash screen

Error output with splash and quit removed from the linux line of grub boot settings:

/dev/nvmen1p2 clean, 393413/62480384 files, 61367136/249919744 blocks
[    4.246239]
[    4.873581] nvidia-gpu 0000:01:00.3: 12c time at error e0000000
[
[    4.873585] ucsi_ccg B-0008: 12c_transfer failed -110
[    4.873589] ucsi_ccg B-000B: ucsi_ccg_init failed - -110
[    5.547775] ACPI Error: Thread 3255926784 cannot release Mutex (ECMX] acquired by thread 3255997456 (20220331/exmutex-378)
[    5.547808] ACPI Error: Aborting method \_SB.PCIO.LPCB.ECD._066 due to previous error (AE_AML_NOT_OWNER) (20220331/psparse-529)
[    6.733129] ACPI BIOS Error (bug): Could not resolve symbol [\_TZ.ETMD1, AE_NOT_FOUND (20228331 /psargs-330)
[    6.733212] ACPI Error: Aborting method \_SB. IETM._OSC due to previous error (AE_NOT_FOUND) (20220331/psparse-529)

System info:

Ubuntu version: 22.10
Update Frequency: weekly

MacMini 2010 with Ubuntu 22.04 - temperature problems (Fan Control) https://askubuntu.com/questions/1413150/macmini-2010-with-ubuntu-22-04-temperature-problems-fan-control

I have a mac mini 2010 (4.1), with Ubuntu Desktop 22.04 and the temperature control doesn't work.

I tried installing mbpfan and it didn't work. I tried installing macfanctld and it didn't work. This is the result of sensors:

nouveau-pci-0500
Adapter: PCI adapter
GPU core:    810.00 mV (min =  +0.81 V, max =  +0.90 V)
temp1:        +84.0°C  (high = +95.0°C, hyst =  +3.0°C)
                       (crit = +105.0°C, hyst =  +5.0°C)
                       (emerg = +135.0°C, hyst =  +5.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +73.0°C  (high = +105.0°C, crit = +105.0°C)
Core 1:       +72.0°C  (high = +105.0°C, crit = +105.0°C)

applesmc-isa-0300
Adapter: ISA adapter
Exhaust  :      0 RPM  (min = 1800 RPM, max = 5500 RPM)
TA0P:         +51.8°C  
TC0D:         +74.0°C  
TC0G:         +70.0°C  
TC0H:         +73.2°C  
TC0P:         +67.8°C  
TC0p:         +67.5°C  
TCPG:         +73.0°C  
TH0G:         +60.0°C  
TH0P:         +47.0°C  
TH0p:         +47.0°C  
TM0G:         +75.0°C  
TM0P:         +67.5°C  
TM0p:         +67.5°C  
TN0D:         +75.8°C  
TN0G:         +67.0°C  
TN0P:         +65.8°C  
TN0p:         +66.0°C  
TN1D:         +84.0°C  
TN1E:         +84.0°C  
TN1F:         +85.0°C  
TN1G:         +90.0°C  
TN1S:         +85.0°C  
TNPG:         +70.0°C  
TO0P:         +48.0°C  
TO0p:         +48.0°C  
TW0P:         +56.5°C  
Tm0P:         +61.2°C  
Tp0C:         +48.8°C  
Nagios 4.4.7 on Ubuntu 22.04 https://askubuntu.com/questions/1408899/nagios-4-4-7-on-ubuntu-22-04

Im trying to install Nagios 4.4.7 from source on a fresh install of Ubuntu 22.04

Latest updates applied

Everything compiles and installs OK but on starting I get this:

May 16 16:29:09 server2204 systemd[1]: Starting Nagios Core 4.4.7...
May 16 16:29:09 server2204 nagios[202580]: Nagios Core 4.4.7
May 16 16:29:09 server2204 nagios[202580]: Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
May 16 16:29:09 server2204 nagios[202580]: Copyright (c) 1999-2009 Ethan Galstad
May 16 16:29:09 server2204 nagios[202580]: Last Modified: 2022-04-14
May 16 16:29:09 server2204 nagios[202580]: License: GPL
May 16 16:29:09 server2204 nagios[202580]: Website: https://www.nagios.org
May 16 16:29:09 server2204 nagios[202580]: Reading configuration data...
May 16 16:29:09 server2204 nagios[202580]:    Read main config file okay...
May 16 16:29:09 server2204 nagios[202580]:    Read object config files okay...
May 16 16:29:09 server2204 nagios[202580]: Running pre-flight check on configuration data...
May 16 16:29:09 server2204 nagios[202580]: Checking objects...
May 16 16:29:09 server2204 nagios[202580]: #011Checked 8 services.
May 16 16:29:09 server2204 nagios[202580]: #011Checked 1 hosts.
May 16 16:29:09 server2204 nagios[202580]: #011Checked 1 host groups.
May 16 16:29:09 server2204 nagios[202580]: #011Checked 0 service groups.
May 16 16:29:09 server2204 nagios[202580]: #011Checked 1 contacts.
May 16 16:29:09 server2204 nagios[202580]: #011Checked 1 contact groups.
May 16 16:29:09 server2204 nagios[202580]: #011Checked 24 commands.
May 16 16:29:09 server2204 nagios[202580]: #011Checked 5 time periods.
May 16 16:29:09 server2204 nagios[202580]: #011Checked 0 host escalations.
May 16 16:29:09 server2204 nagios[202580]: #011Checked 0 service escalations.
May 16 16:29:09 server2204 nagios[202580]: Checking for circular paths...
May 16 16:29:09 server2204 nagios[202580]: #011Checked 1 hosts
May 16 16:29:09 server2204 nagios[202580]: #011Checked 0 service dependencies
May 16 16:29:09 server2204 nagios[202580]: #011Checked 0 host dependencies
May 16 16:29:09 server2204 nagios[202580]: #011Checked 5 timeperiods
May 16 16:29:09 server2204 nagios[202580]: Checking global event handlers...
May 16 16:29:09 server2204 nagios[202580]: Checking obsessive compulsive processor commands...
May 16 16:29:09 server2204 nagios[202580]: Checking misc settings...
May 16 16:29:09 server2204 nagios[202580]: Total Warnings: 0
May 16 16:29:09 server2204 nagios[202580]: Total Errors:   0
May 16 16:29:09 server2204 nagios[202580]: Things look okay - No serious problems were detected during the pre-flight check
May 16 16:29:09 server2204 systemd[1]: Started Nagios Core 4.4.7.
May 16 16:29:09 server2204 nagios: Nagios 4.4.7 starting... (PID=202582)
May 16 16:29:09 server2204 nagios: Local time is Mon May 16 16:29:09 UTC 2022
May 16 16:29:09 server2204 nagios: LOG VERSION: 2.0
May 16 16:29:09 server2204 nagios: qh: Socket '/usr/local/nagios/var/rw/nagios.qh' successfully initialized
May 16 16:29:09 server2204 nagios: qh: core query handler registered
May 16 16:29:09 server2204 nagios: qh: echo service query handler registered
May 16 16:29:09 server2204 nagios: qh: help for the query handler registered
May 16 16:29:09 server2204 nagios: wproc: Successfully registered manager as @wproc with query handler
May 16 16:29:09 server2204 nagios: wproc: Registry request: name=Core Worker 202585;pid=202585
May 16 16:29:09 server2204 nagios: wproc: Registry request: name=Core Worker 202584;pid=202584
May 16 16:29:09 server2204 nagios: wproc: Registry request: name=Core Worker 202586;pid=202586
May 16 16:29:09 server2204 nagios: wproc: Registry request: name=Core Worker 202583;pid=202583
May 16 16:29:10 server2204 nagios: Caught SIGSEGV, shutting down...
May 16 16:29:10 server2204 systemd[1]: nagios.service: Main process exited, code=exited, status=254/n/a
May 16 16:29:12 server2204 systemd[1]: nagios.service: Failed with result 'exit-code'.

This is a standard install, with no configuration apart from default

journelctl -xe:

░░ Subject: A start job for unit nagios.service has finished successfully
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░ 
░░ A start job for unit nagios.service has finished successfully.
░░ 
░░ The job identifier is 19738.
May 16 16:29:09 server2204 nagios[202582]: Nagios 4.4.7 starting... (PID=202582)
May 16 16:29:09 server2204 nagios[202582]: Local time is Mon May 16 16:29:09 UTC 2022
May 16 16:29:09 server2204 nagios[202582]: LOG VERSION: 2.0
May 16 16:29:09 server2204 nagios[202582]: qh: Socket '/usr/local/nagios/var/rw/nagios.qh' successfully initialized
May 16 16:29:09 server2204 nagios[202582]: qh: core query handler registered
May 16 16:29:09 server2204 nagios[202582]: qh: echo service query handler registered
May 16 16:29:09 server2204 nagios[202582]: qh: help for the query handler registered
May 16 16:29:09 server2204 nagios[202582]: wproc: Successfully registered manager as @wproc with query handler
May 16 16:29:09 server2204 nagios[202582]: wproc: Registry request: name=Core Worker 202585;pid=202585
May 16 16:29:09 server2204 nagios[202582]: wproc: Registry request: name=Core Worker 202584;pid=202584
May 16 16:29:09 server2204 nagios[202582]: wproc: Registry request: name=Core Worker 202586;pid=202586
May 16 16:29:09 server2204 nagios[202582]: wproc: Registry request: name=Core Worker 202583;pid=202583
May 16 16:29:10 server2204 nagios[202582]: Caught SIGSEGV, shutting down...
May 16 16:29:10 server2204 systemd[1]: nagios.service: Main process exited, code=exited, status=254/n/a
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░ 
░░ An ExecStart= process belonging to unit nagios.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 254.
May 16 16:29:12 server2204 systemd[1]: nagios.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░ 
░░ The unit nagios.service has entered the 'failed' state with result 'exit-code'.
Ubuntu 18.04 boots to a black screen https://askubuntu.com/questions/1363477/ubuntu-18-04-boots-to-a-black-screen

I am using Ubuntu 18.04. My laptop configuration is:

  • HP 250 G7
  • Core i3 Intel 7th gen
  • 4 GB RAM
  • 1 TB HDD

Problem.

When I start Ubuntu 18.04 it gives a black screen with these boot messages.

[  OK  ] Found device TOSHIBA_MQ04ABF100 EFI\x20System\x20Partition.
         Starting File System Check on /dev/disk/by-uuid/222A-F608...
[  OK  ] Started File System Check Daemon to report status.
[  OK  ] Started File System Check on /dev/disk/by-uuid/222A-F608.
         Mounting /boot/efi...
[  OK  ] Mounted /boot/efi.
[  OK  ] Reached target Local File Systems.
         Starting Tell Plymouth To Write Out Runtime Data...
         Starting Clean up any mess left by Odns-up...
         Starting AppArmor initialization...
         Starting Set console font and keymap...
[  OK  ] Started Set console font and keymap.
[  OK  ] Started Tell Plymouth To Write Out Runtime Data.
[  OK  ] Started Disk Manager .daemon for systemd-networkd.ally.system changes.pp link was shut down.

Please help me. I don't want to lose my data.

WIFI gets HARD BLOCKED on Ubuntu 20.04.2, HP-15 series https://askubuntu.com/questions/1325028/wifi-gets-hard-blocked-on-ubuntu-20-04-2-hp-15-series

One Fine Day..I don't want to shut down my computer, So, “Suspended” it, When turned on next time ,
the problem starts, WiFi – Not Turning ON, Its not a detection problem, or Driver not found or any thing, the whole WiFi option not turning ON, 🥴 ..???

Into Debug Mode,

  1. Usual Restart, no result

  2. Battery Removed Power off - ON, No result

  3. As the "Suspend" Started the problem, trying a chance with several repeated suspends with, plug in and out the USB adaptor(Which is Tp link TL-WN725N), No result,

  4. Reset The BIOS to default, On my HP laptop, at booting, it is ESC -> F10 -> F9 -> set to default -> OK, No result,

    Also, BIOS not have any other options for WiFi.

  5. Now back to Ubuntu, open the terminal, from internet, understood Ubuntu got a "handy" soft suspending features to turn off connections like the WiFi and Bluetooth, so does a rfkill list all, that shows

    0: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: yes
    1: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no
    

    WiFi got hard blocked, but how??, I’m using an HP-15 series laptop with a not working normal keyboard(it is unplugged too), using with an external keyboard.. The WiFi turn on/off keyboard keycode HP gives is Fn key + F12, but as I’m using external keyboard, Fn key not in the picture anymore.. Tried combinations of all f1 to f12 possible...no result..

    There are no other external keys for WiFi.

    Now It started to get seriously annoying, decided to go check in the dual-booted windows, whether it is affected or not, The WiFi works there as usual, with adaptor detecting from the first sight of the windows logo, but in Ubuntu, it behaves like, it never heard about WiFi.

  6. Tried sudo rfkill unblock all, sudo rfkill unblock 0 (which is the rfkill assigned code for w LAN) with no results (even-though I know it is “Hard” blocked).

  7. Then I get know from the internet some settings or conflicting drivers can be blacklisted in Ubuntu, so do this

    lsmod | grep hp
    
    # The results
    hp_wmi
    hp_wireless
    

    Blacklisting hp_wmi and a reboot solved this issue for some people, they've listed in web, I tried the same, but with no luck.. by going to /etc/modprobe.d/ select blacklist-hp.conf, blacklist.conf added blacklist hp_wmi -> reboot..., but no result same "Hard blocked: yes" also with the blacklist hp_wirelss, no improvements

    same

    0: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no
    1: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: yes
    

    After this attempts, the only thing achieved was the numbers changed,now it is 1 for WiFi

  8. Where is this Soft blocked, hard blocked get stored, next that will be the concern, if I can find that file and alter the value It will be all good again,

    And Thankfully I founded this, based on the same problem described there, did the

    cat /sys/class/rfkill/rfkill1/hard
    
    # gives me a "1"
    # To make it 0, with all permissions
    sudo -i
    echo 0  >  /sys/class/rfkill/rfkill1/hard
    
    # gives me 
    echo: write error: Input/output error 
    # its fixed by hardware..no way to change
    

    Uninstall and installs the rfkill...(don't know what I'm doing..😵)

  9. Now its getting lost, trying to figure out an Ubuntu reinstall or a backed up timeshift can solve the problem, decided to check that, plugged in a bootable USB Ubuntu -> Try before install -> check if the Wifi loads or not., No its also shown as hard blocked :- YES

  10. Finally changed the laptop-keyboard only for the sake of getting WiFi back, pressed the key f12 with full confidence which is the hardware key for airplane mode (not only for WiFi)...still no use, that same hard blocked is killing me..

This is where I am now, I badly need this WIFI gets working on ubuntu, can anybody help..

Run a command at startup with LightDM https://askubuntu.com/questions/1274402/run-a-command-at-startup-with-lightdm

I'm using LightDM as a greeter.

I need to perform a command before the login screen. I've put a file called rotate.conf inside the /etc/lightdm/lightdm.conf.d folder. That file contains a command to rotate the second monitor (it is the only way to have it works properly).

I've tried different rows of code but it seems it doesn't read that instruction.

[SeatDefaults]
command=xrandr --output DP-0 --rotate left

I've tried even without the [...] and command= but without success.

I've also added the last line in user.conf

[UserList]
minimum-uid=500
hidden-users=nobody nobody4 noaccess
hidden-shells=/bin/false /usr/sbin/nologin /sbin/nologin
greeter-setup-script=/etc/lightdm/lightdm.conf.d 

What am I doing wrong?

Ubuntu 20.04 4K resolution low FPS / stuttering? https://askubuntu.com/questions/1255025/ubuntu-20-04-4k-resolution-low-fps-stuttering

I have setup Ubuntu 20.04 in Dual boot with Windows 10.

On Windows 10 @ 3840 x 2160 (16:9) resolution I do not have any issues with video, smooth scrolling, IDE, games.

However on Ubuntu @ 3840 x 2160 (16:9) resolution, I get stuttering low FPS for video, jaggy/rough scrolling.

When I set it to 2048 x 1152 (16:9) resolution it is way smoother and no issues.

My hardware info is the following:

Intel(R) Core(TM) i5-4690K CPU @ 3.50GHz
Palit GeForce RTX 2070 8Gb
16Gb DDR3 2400mhz Corsair Vengeance RAM
LG 27inch 4K Monitor

These are the following things I've tried:

  • Swapped HDMI to Displayport from GPU to Monitor
  • Tried the prorietary Nvidia drivers (version 440), X.org drivers
  • Restarting Gnome
  • Updating the latest drivers and patches from Ubuntu

I am happy to use the monitor at a lower resolution but I am curious as to what the bottleneck is here?

Is there any fixes?

Wine Metatrader Installation / Ubuntu 18.04.2 LTS / Proxy Server Request https://askubuntu.com/questions/1155077/wine-metatrader-installation-ubuntu-18-04-2-lts-proxy-server-request

I have troubles with installing MT4/MT5 under Ubuntu 18.04.2 LTS. I try installing different Wine/Gecko/Mono versions, installing winhttp etc. It always asking me for Proxy server details and the installation is crushing.

I also try changing repositories and any kind of other advise I googled, but still stuck on Proxy request.

Could someone help with advise on the matter? Does MT4/MT5 is supported at all under this Ubuntu release?

Thanks in advance

P.S. Edited: I had been asked to provide specific errors, however after I conduct all suggested solutions listed in the net I don`t get any - it just ask me for a proxy server details, which is a step not needed for MS. From what I found in the net the proxy server details request is the issue itself, it should not happens on the first place.

Briefly I am downloading any of the MT4/MT5 platforms available in the net (from several different brokers), locating them in some folder. Going to that folder by 'cd' command and executing 'wine xxx.exe' command. The program start installing and in one moment it request for proxy server details...

Resolved: If someone has similar problem - check this video - https://www.youtube.com/watch?v=VzgsruDTEuA Download the MT4/MT5 via PlayOnLinux! Then, you could create shortcut for the app - for me it looks like this one:

# !/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Icon[en_US]=gnome-panel-launcher
Exec=~/PlayOnLinux's virtual drives/metatrader4/drive_c/Program Files/MetaTrader$ wine terminal.exe
Name[en_US]=MT5
Name=MT5
Icon=gnome-panel-launcher

Finally it is about amendment of the server, ports etc.

Goodluck and cheers!

Ubuntu 18.04 not detecting monitor size properly https://askubuntu.com/questions/1066879/ubuntu-18-04-not-detecting-monitor-size-properly

I just fresh installed Ubuntu 18.04, after some hassle I was able to install the nvidia-driver-396. I run a dual monitor setup being one a 29" ultra wide and one 24" 1080p, when I had Ubuntu 16.04 the system detected the monitors sizes without a problem, but for some reason on Ubuntu 18.04 the 29" is being detected as 34" and the 24" is being detected as 7", odd thing is that their resolutions are correct it is just the monitor size that is wrong.

VLC for some reason had huge icons on the "detected 7" monitor", I solved that by adding QT_AUTO_SCREEN_SCALE_FACTOR=0 in /etc/environment and /etc/profile.d/gnome-qt.sh

Although that solved the VLC issue the monitors sizes are still being wrongly detected, how can I solve it?

Here are some Screen Shots

This is the 29" monitor:

This is the 29" monitor

This is the 24" monitor:

This is the 24" monitor

Info on the nvidia driver:

Info on the nvidia driver

Resizing fat32 partition in command line without losing data https://askubuntu.com/questions/962829/resizing-fat32-partition-in-command-line-without-losing-data

I am trying to resize a fat 32 partition in my linux machine. Following are the specs of the system.

  1. This is not a PC hence UI based tools are not applicable.
  2. This memory partition which I am trying to resize is already having data in the form of files. I can't lose them.
  3. I am trying to shrink the partition to used space alone and move the remaining space to another partition.
  4. Preferably without rebooting of system, unmounting of partition would be fine.

Edit: Backing up data from this partition is not what I am looking for. I am trying to see if there is a way that I can try without losing data. Its more like an analysis rather than task.

What I tried till now: Tried using parted tool as gparted needs an UI. Even though I am able to shrink this partition, it is leading to unnecessary problems due to file fragmentation. For example, after shrinking when I run file system check I am getting errors like chain not found for few files.

I cant use tools like resizee2fs as it supports only ext file systems (correct me if I am wrong here).

I tried using tool fatresize, even though I am able to successfully get it install it in my debian I am not able to get an installable for arm, whatever link I am getting is throwing an error on line 1 statement itself.

Can someone help me with any information they could?

gtk-warning ** locale not supported by c library https://askubuntu.com/questions/909037/gtk-warning-locale-not-supported-by-c-library

I was trying to install UT99 as explained here and here. After downloading libraries I needed, I started to install the program, but later on I got the warning as in subject. I don't understand which is the problem, in other words, the phrase "Locale not supported C library" doesn't explain what is the error.

I try to watch inside my system as:

$ sudo locale -a
C
C.UTF-8
it_IT.utf8
POSIX

Then if type

$ sudo locale -a
LANG=it_IT.utf8
LANGUAGE=
LC_CTYPE="it_IT.utf8"
LC_NUMERIC="it_IT.utf8"
LC_TIME="it_IT.utf8"
LC_COLLATE="it_IT.utf8"
LC_MONETARY="it_IT.utf8"
LC_MESSAGES="it_IT.utf8"
LC_PAPER="it_IT.utf8"
LC_NAME="it_IT.utf8"
LC_ADDRESS="it_IT.utf8"
LC_TELEPHONE="it_IT.utf8"
LC_MEASUREMENT="it_IT.utf8"
LC_IDENTIFICATION="it_IT.utf8"
LC_ALL=

At this point I stopped my installation. Any advice?

Thanks

Ubuntu 16.04 doesn't boot https://askubuntu.com/questions/880202/ubuntu-16-04-doesnt-boot

I just installed Ubuntu 16.04 and it doesn't boot. I installed Boot-Repair, and told me to ask for help pasting the next url: http://paste2.org/dCtkYsj3

    ============================= Boot Info Summary: ===============================

     => Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector 1 of 
        the same hard drive for core.img. core.img is at this location and looks 
        for (,msdos5)/boot/grub. It also embeds following components:
        
        modules
        ---------------------------------------------------------------------------
        fshelp ext2 part_msdos biosdisk
        ---------------------------------------------------------------------------

    sda1: __________________________________________________________________________

        File system:       swap
        Boot sector type:  -
        Boot sector info: 

    sda2: __________________________________________________________________________

        File system:       Extended Partition
        Boot sector type:  Unknown
        Boot sector info: 

    sda5: __________________________________________________________________________

        File system:       ext4
        Boot sector type:  -
        Boot sector info: 
        Operating System:  Ubuntu 16.04.1 LTS
        Boot files:        /etc/fstab /boot/grub/i386-pc/core.img

    sda6: __________________________________________________________________________

        File system:       ext4
        Boot sector type:  -
        Boot sector info: 
        Operating System:  
        Boot files:        

    ============================ Drive/Partition Info: =============================

    Drive: sda _____________________________________________________________________
    Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: dos

    Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

    /dev/sda1    *          2,048     7,999,487     7,997,440  82 Linux swap / Solaris
    /dev/sda2           8,001,534   976,771,071   968,769,538   5 Extended
    /dev/sda5           8,001,536   105,656,319    97,654,784  83 Linux
    /dev/sda6         105,658,368   976,771,071   871,112,704  83 Linux


    "blkid" output: ________________________________________________________________

    Device           UUID                                   TYPE       LABEL

    /dev/loop0                                              squashfs   
    /dev/sda1        e2758148-acf7-485d-b669-61b0b0f0eefb   swap       
    /dev/sda5        2af5f65b-a97a-43ba-9bcf-d09e85135408   ext4       
    /dev/sda6        fc7f3fc0-0198-463e-b57f-a02273b68cca   ext4       
    /dev/sr0         2016-07-19-21-31-47-00                 iso9660    Ubuntu 16.04.1 LTS i386

    ========================= "ls -l /dev/disk/by-id" output: ======================

    total 0
    lrwxrwxrwx 1 root root  9 Feb  5 20:32 ata-ST9500325AS_6VE52ZRE -> ../../sda
    lrwxrwxrwx 1 root root 10 Feb  5 20:32 ata-ST9500325AS_6VE52ZRE-part1 -> ../../sda1
    lrwxrwxrwx 1 root root 10 Feb  5 20:32 ata-ST9500325AS_6VE52ZRE-part2 -> ../../sda2
    lrwxrwxrwx 1 root root 10 Feb  5 20:32 ata-ST9500325AS_6VE52ZRE-part5 -> ../../sda5
    lrwxrwxrwx 1 root root 10 Feb  5 20:32 ata-ST9500325AS_6VE52ZRE-part6 -> ../../sda6
    lrwxrwxrwx 1 root root  9 Feb  5 20:15 ata-Slimtype_BD_E_DS4E1S_911280860815 -> ../../sr0
    lrwxrwxrwx 1 root root  9 Feb  5 20:15 usb-Multiple_Card_Reader_058F63666433-0:0 -> ../../sdb
    lrwxrwxrwx 1 root root  9 Feb  5 20:32 wwn-0x5000c5001f10e65a -> ../../sda
    lrwxrwxrwx 1 root root 10 Feb  5 20:32 wwn-0x5000c5001f10e65a-part1 -> ../../sda1
    lrwxrwxrwx 1 root root 10 Feb  5 20:32 wwn-0x5000c5001f10e65a-part2 -> ../../sda2
    lrwxrwxrwx 1 root root 10 Feb  5 20:32 wwn-0x5000c5001f10e65a-part5 -> ../../sda5
    lrwxrwxrwx 1 root root 10 Feb  5 20:32 wwn-0x5000c5001f10e65a-part6 -> ../../sda6

    ================================ Mount points: =================================

    Device           Mount_Point              Type       Options

    /dev/loop0       /rofs                    squashfs   (ro,noatime)
    /dev/sda5        /mnt/boot-sav/sda5       ext4       (rw,relatime,data=ordered)
    /dev/sr0         /cdrom                   iso9660    (ro,noatime)


    =============================== sda5/etc/fstab: ================================

    --------------------------------------------------------------------------------
    # /etc/fstab: static file system information.
    #
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    # / was on /dev/sda5 during installation
    UUID=2af5f65b-a97a-43ba-9bcf-d09e85135408 /               ext4    errors=remount-ro 0       1
    # /home was on /dev/sda6 during installation
    UUID=fc7f3fc0-0198-463e-b57f-a02273b68cca /home           ext4    defaults        0       2
    # swap was on /dev/sda1 during installation
    #UUID=e2758148-acf7-485d-b669-61b0b0f0eefb none            swap    sw              0       0
    /dev/mapper/cryptswap1 none swap sw 0 0
    --------------------------------------------------------------------------------

    =================== sda5: Location of files loaded by Grub: ====================

               GiB - GB             File                                 Fragment(s)

      12.058845520 = 12.948086784   boot/grub/i386-pc/core.img                     1
      47.953727722 = 51.489923072   boot/vmlinuz-4.4.0-31-generic                  1
      47.953727722 = 51.489923072   vmlinuz                                        1
      12.635711670 = 13.567492096   boot/initrd.img-4.4.0-31-generic               5
      12.635711670 = 13.567492096   initrd.img                                     5

    ======================== Unknown MBRs/Boot Sectors/etc: ========================

    Unknown BootLoader on sda2

    00000000  dc 3b bd 2a e5 17 39 47  c3 8c fd 6b 02 a7 09 f9  |.;.*..9G...k....|
    00000010  8d d5 f3 0f 81 41 fe 78  cb 08 69 0e bd 4b e7 70  |.....A.x..i..K.p|
    00000020  9a 29 e2 74 93 bf e7 ba  e0 bb 6a 7c ad dc 1f db  |.).t......j|....|
    00000030  bb bd 0f ef fd 95 b3 5f  84 80 f8 65 72 e9 d6 9d  |......._...er...|
    00000040  62 76 f6 35 8f bd b8 8b  51 71 58 42 a1 37 30 ba  |bv.5....QqXB.70.|
    00000050  dd 1e 3d 95 d0 0c 45 27  c0 75 c0 7a e9 56 c4 bc  |..=...E'.u.z.V..|
    00000060  5b bd d4 30 3f 1f 6e ea  ce 1b f2 62 97 1c c0 8d  |[..0?.n....b....|
    00000070  dc 7d 98 14 54 e0 e6 7b  41 26 9b 54 2e 07 db d0  |.}..T..{A&.T....|
    00000080  2c 28 6b 2e 00 f0 a3 e1  15 4e fd 6e c5 ec c3 03  |,(k......N.n....|
    00000090  39 71 ac 05 53 08 27 78  89 34 bd a3 6a fa d6 81  |9q..S.'x.4..j...|
    000000a0  f0 24 08 4b 33 8e 67 bb  3d c0 98 6c ff a8 ae 9a  |.$.K3.g.=..l....|
    000000b0  fc 7d b0 99 59 18 a6 43  10 bf 7e 4e 94 89 9d e7  |.}..Y..C..~N....|
    000000c0  ad 57 40 e7 c2 71 01 19  1d a7 35 ab 02 f1 ed 29  |.W@..q....5....)|
    000000d0  8a 20 fe d4 b3 63 6d ae  78 83 49 47 cc 07 4c 37  |. ...cm.x.IG..L7|
    000000e0  19 8b d1 58 05 93 9d 24  c8 8e 29 3b 12 fe b1 18  |...X...$..);....|
    000000f0  9c c0 90 d0 22 67 49 af  c8 a2 db d3 92 cf 26 16  |...."gI.......&.|
    00000100  cd f0 bb cd dc eb 39 68  8d 50 fa 35 83 0a d8 74  |......9h.P.5...t|
    00000110  6f 9f 55 51 6f bb 1c a7  43 1e 32 2f c0 b0 62 41  |o.UQo...C.2/..bA|
    00000120  c8 15 87 10 d6 48 78 f4  51 42 98 e0 f5 38 c2 4f  |.....Hx.QB...8.O|
    00000130  81 6d 55 30 bd 9b 05 0f  9c aa 82 e0 8a b9 40 03  |.mU0..........@.|
    00000140  03 50 d4 02 f2 a0 fe 69  48 a0 fc 08 2e 33 e6 e7  |.P.....iH....3..|
    00000150  62 f3 18 24 87 9f 90 c8  bd 4e 17 9a 39 88 c0 a6  |b..$.....N..9...|
    00000160  75 63 8e af ac 40 d3 e3  14 1e af 86 8a e8 57 17  |uc...@........W.|
    00000170  39 1c 92 88 b5 6a 77 fc  14 21 0e 12 fb b0 29 06  |9....jw..!....).|
    00000180  ba fd f4 9c c9 c7 6e 1e  50 da 0f f8 a3 c3 af 3b  |......n.P......;|
    00000190  7c b2 de a5 5e a6 a9 d8  02 dd fb 7c 21 11 04 ed  ||...^......|!...|
    000001a0  39 f5 f3 4f a7 34 12 e1  f7 14 5a 30 7d 56 12 f7  |9..O.4....Z0}V..|
    000001b0  01 1c f8 68 af 03 48 4d  e4 d4 d0 75 42 f7 00 12  |...h..HM...uB...|
    000001c0  61 f2 83 fe ff ff 02 00  00 00 00 18 d2 05 00 fe  |a...............|
    000001d0  ff ff 05 fe ff ff 02 18  d2 05 00 28 ec 33 00 00  |...........(.3..|
    000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
    00000200


    ========= Devices which don't seem to have a corresponding hard drive: =========

    sdb 

    =============================== StdErr Messages: ===============================

    File descriptor 9 (/proc/20087/mounts) leaked on lvs invocation. Parent PID 26378: bash
    File descriptor 63 (pipe:[285846]) leaked on lvs invocation. Parent PID 26378: bash

    ADDITIONAL INFORMATION :
    =================== log of boot-repair 2017-02-05__20h32 ===================
    boot-repair version : 4ppa40
    boot-sav version : 4ppa40
    glade2script version : 3.2.3~ppa1
    boot-sav-extra version : 4ppa40
    Warning: Unable to open /dev/sr0 read-write (Read-only file system).  /dev/sr0 has been opened read-only.
    Error: Can't have a partition outside the disk!
    Warning: Unable to open /dev/sr0 read-write (Read-only file system).  /dev/sr0 has been opened read-only.
    Error: Can't have a partition outside the disk!
    boot-repair is executed in live-session (Ubuntu 16.04.1 LTS, xenial, Ubuntu, i686)
    CPU op-mode(s):        32-bit, 64-bit
    file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.lz quiet splash --- debian-installer/language=eu keyboard-configuration/layoutcode?=es
    ls: cannot access '/home/usr/.config': No such file or directory

    =================== os-prober:
    /dev/sda5:Ubuntu 16.04.1 LTS (16.04):Ubuntu:linux

    =================== blkid:
    /dev/sda5: UUID="2af5f65b-a97a-43ba-9bcf-d09e85135408" TYPE="ext4" PARTUUID="3051148a-05"
    /dev/sda6: UUID="fc7f3fc0-0198-463e-b57f-a02273b68cca" TYPE="ext4" PARTUUID="3051148a-06"
    /dev/sr0: UUID="2016-07-19-21-31-47-00" LABEL="Ubuntu 16.04.1 LTS i386" TYPE="iso9660" PTUUID="09b07823" PTTYPE="dos"
    /dev/loop0: TYPE="squashfs"
    /dev/sda1: UUID="e2758148-acf7-485d-b669-61b0b0f0eefb" TYPE="swap" PARTUUID="3051148a-01"


    1 disks with OS, 1 OS : 1 Linux, 0 MacOS, 0 Windows, 0 unknown type OS.


    =================== sda5/etc/grub.d/ :
    drwxr-xr-x  2 root root    4096 ots  5 20:30 grub.d
    total 4
    -rwxr-xr-x 1 root root 1992 urt 28  2016 20_memtest86+



    =================== UEFI/Legacy mode:
    This live-session is not EFI-compatible.
    SecureBoot maybe enabled.


    =================== PARTITIONS & DISKS:
    sda5    : sda,  not-sepboot,    no-grubenv  nogrub, signed ,    no-update-grub, 32, with-boot,  is-os,  not--efi--part, fstab-without-boot, fstab-without-efi,  no-nt,  no-winload, no-recov-nor-hid,   no-bmgr,    notwinboot, apt-get,    nogrubinstall,  with--usr,  fstab-without-usr,  not-sep-usr,    standard,   not-far,    /mnt/boot-sav/sda5.
    sda6    : sda,  maybesepboot,   no-grubenv  nogrub, no-docgrub, no-update-grub, 32, no-boot,    no-os,  not--efi--part, part-has-no-fstab,  part-has-no-fstab,  no-nt,  no-winload, no-recov-nor-hid,   no-bmgr,    notwinboot, nopakmgr,   nogrubinstall,  no---usr,   part-has-no-fstab,  not-sep-usr,    standard,   farbios,    /mnt/boot-sav/sda6.

    sda : not-GPT,  BIOSboot-not-needed,    has-no-EFIpart,     not-usb,    has-os, 2048 sectors * 512 bytes


    =================== parted -l:

    Model: ATA ST9500325AS (scsi)
    Disk /dev/sda: 500GB
    Sector size (logical/physical): 512B/512B
    Partition Table: msdos
    Disk Flags:

    Number  Start   End     Size    Type      File system     Flags
    1      1049kB  4096MB  4095MB  primary   linux-swap(v1)  boot
    2      4097MB  500GB   496GB   extended
    5      4097MB  54.1GB  50.0GB  logical   ext4
    6      54.1GB  500GB   446GB   logical   ext4


    Model: Slimtype BD E DS4E1S (scsi)
    Disk /dev/sr0: 1531MB
    Sector size (logical/physical): 2048B/2048B
    Partition Table: unknown
    Disk Flags:

    =================== parted -lm:

    BYT;
    /dev/sda:500GB:scsi:512:512:msdos:ATA ST9500325AS:;
    1:1049kB:4096MB:4095MB:linux-swap(v1)::boot;
    2:4097MB:500GB:496GB:::;
    5:4097MB:54.1GB:50.0GB:ext4::;
    6:54.1GB:500GB:446GB:ext4::;

    BYT;
    /dev/sr0:1531MB:scsi:2048:2048:unknown:Slimtype BD E DS4E1S:;

    =================== lsblk:
    KNAME TYPE FSTYPE     SIZE LABEL
    sda   disk          465,8G
    sda1  part swap       3,8G
    sda2  part              1K
    sda5  part ext4      46,6G
    sda6  part ext4     415,4G
    sr0   rom  iso9660    1,4G Ubuntu 16.04.1 LTS i386
    loop0 loop squashfs   1,4G

    KNAME ROTA RO RM STATE   MOUNTPOINT
    sda      1  0  0 running
    sda1     1  0  0         [SWAP]
    sda2     1  0  0
    sda5     1  0  0         /mnt/boot-sav/sda5
    sda6     1  0  0         /mnt/boot-sav/sda6
    sr0      1  0  1 running /cdrom
    loop0    1  1  0         /rofs


    =================== mount:
    sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
    proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
    udev on /dev type devtmpfs (rw,nosuid,relatime,size=2055988k,nr_inodes=207880,mode=755)
    devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
    tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=413868k,mode=755)
    /dev/sr0 on /cdrom type iso9660 (ro,noatime)
    /dev/loop0 on /rofs type squashfs (ro,noatime)
    /cow on / type overlay (rw,relatime,lowerdir=//filesystem.squashfs,upperdir=/cow/upper,workdir=/cow/work)
    securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
    tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
    tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
    tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
    cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
    pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
    cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
    cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
    cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
    cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
    cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
    cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
    cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
    cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
    cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
    cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
    systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=23,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
    mqueue on /dev/mqueue type mqueue (rw,relatime)
    hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
    debugfs on /sys/kernel/debug type debugfs (rw,relatime)
    tracefs on /sys/kernel/debug/tracing type tracefs (rw,relatime)
    fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
    tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime)
    tmpfs on /run/user/999 type tmpfs (rw,nosuid,nodev,relatime,size=413868k,mode=700,uid=999,gid=999)
    gvfsd-fuse on /run/user/999/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=999,group_id=999)
    /dev/sda5 on /mnt/boot-sav/sda5 type ext4 (rw,relatime,data=ordered)
    /dev/sda6 on /mnt/boot-sav/sda6 type ext4 (rw,relatime,data=ordered)
    udev on /mnt/boot-sav/sda5/dev type devtmpfs (rw,nosuid,relatime,size=2055988k,nr_inodes=207880,mode=755)
    devpts on /mnt/boot-sav/sda5/dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
    devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
    proc on /mnt/boot-sav/sda5/proc type proc (rw,nosuid,nodev,noexec,relatime)
    tmpfs on /mnt/boot-sav/sda5/run type tmpfs (rw,nosuid,noexec,relatime,size=413868k,mode=755)
    sysfs on /mnt/boot-sav/sda5/sys type sysfs (rw,nosuid,nodev,noexec,relatime)


    =================== ls:
    /sys/block/sda (filtered):  alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight integrity power queue range removable ro sda1 sda2 sda5 sda6 size slaves stat subsystem trace uevent
    /sys/block/sdb (filtered):  alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight integrity power queue range removable ro size slaves stat subsystem trace uevent
    /sys/block/sr0 (filtered):  alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight integrity power queue range removable ro size slaves stat subsystem trace uevent
    /dev (filtered):  autofs block bsg btrfs-control bus cdrom cdrw char console core cpu cpu_dma_latency cuse disk dri dvd dvdrw ecryptfs fb0 fd full fuse hidraw0 hidraw1 hidraw2 hidraw3 hidraw4 hidraw5 hidraw6 hidraw7 hpet hugepages hwrng i2c-0 i2c-1 i2c-2 i2c-3 i2c-4 i2c-5 i2c-6 i2c-7 initctl input kmsg lightnvm lirc0 log mapper mcelog media0 mem memory_bandwidth mqueue net network_latency network_throughput null port ppp psaux ptmx pts random rfkill rtc rtc0 sda sda1 sda2 sda5 sda6 sdb sg0 sg1 sg2 shm snapshot snd sr0 stderr stdin stdout uhid uinput urandom usb userio v4l vfio vga_arbiter vhci vhost-net video0 zero
    ls /dev/mapper:  control

    =================== df -Th:

    Filesystem     Type      Size  Used Avail Use% Mounted on
    udev           devtmpfs  2.0G     0  2.0G   0% /dev
    tmpfs          tmpfs     405M  6.5M  398M   2% /run
    /dev/sr0       iso9660   1.5G  1.5G     0 100% /cdrom
    /dev/loop0     squashfs  1.4G  1.4G     0 100% /rofs
    /cow           overlay   2.0G   88M  1.9G   5% /
    tmpfs          tmpfs     2.0G  284K  2.0G   1% /dev/shm
    tmpfs          tmpfs     5.0M  4.0K  5.0M   1% /run/lock
    tmpfs          tmpfs     2.0G     0  2.0G   0% /sys/fs/cgroup
    tmpfs          tmpfs     2.0G  168K  2.0G   1% /tmp
    tmpfs          tmpfs     405M   72K  405M   1% /run/user/999
    /dev/sda5      ext4       46G  4.1G   40G  10% /mnt/boot-sav/sda5
    /dev/sda6      ext4      409G   72M  388G   1% /mnt/boot-sav/sda6

    =================== fdisk -l:
    Disk /dev/ram0: 64 MiB, 67108864 bytes, 131072 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes


    Disk /dev/ram1: 64 MiB, 67108864 bytes, 131072 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes


    Disk /dev/ram2: 64 MiB, 67108864 bytes, 131072 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes


    Disk /dev/ram3: 64 MiB, 67108864 bytes, 131072 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes


    Disk /dev/ram4: 64 MiB, 67108864 bytes, 131072 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes


    Disk /dev/ram5: 64 MiB, 67108864 bytes, 131072 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes


    Disk /dev/ram6: 64 MiB, 67108864 bytes, 131072 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes


    Disk /dev/ram7: 64 MiB, 67108864 bytes, 131072 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes


    Disk /dev/ram8: 64 MiB, 67108864 bytes, 131072 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes


    Disk /dev/ram9: 64 MiB, 67108864 bytes, 131072 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes


    Disk /dev/ram10: 64 MiB, 67108864 bytes, 131072 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes


    Disk /dev/ram11: 64 MiB, 67108864 bytes, 131072 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes


    Disk /dev/ram12: 64 MiB, 67108864 bytes, 131072 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes


    Disk /dev/ram13: 64 MiB, 67108864 bytes, 131072 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes


    Disk /dev/ram14: 64 MiB, 67108864 bytes, 131072 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes


    Disk /dev/ram15: 64 MiB, 67108864 bytes, 131072 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes


    Disk /dev/loop0: 1.4 GiB, 1488424960 bytes, 2907080 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes


    Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: dos
    Disk identifier: 0x3051148a

    Device     Boot     Start       End   Sectors   Size Id Type
    /dev/sda1  *         2048   7999487   7997440   3.8G 82 Linux swap / Solaris
    /dev/sda2         8001534 976771071 968769538   462G  5 Extended
    /dev/sda5         8001536 105656319  97654784  46.6G 83 Linux
    /dev/sda6       105658368 976771071 871112704 415.4G 83 Linux




    =================== Suggested repair
    The default repair of the Boot-Repair utility would purge (in order to fix packages fix executable) and reinstall the grub2 of sda5 into the MBR of sda.
    Additional repair would be performed: unhide-bootmenu-10s


    =================== User settings
    The settings chosen by the user will not act on the boot.
My desktop doesn't boot anymore https://askubuntu.com/questions/809348/my-desktop-doesnt-boot-anymore

I've got a fairly old desktop (from 2008) with just Ubuntu 14.04 (no dual boot). I haven't booted up this machine in about a year, and I now wanted to start it up again to back up all the pictures that I've got on there, but I seem to be too late. It doesn't boot anymore. When I turn it on I see the following screens appear (in order).

enter image description here

enter image description here

enter image description here

and then it ends with this black screen with just the blinking cursor and nothing happens anymore. I let it in this state for about half an hour, but really nothing happens anymore.

Seeing it says no any drive found in the second screen, I rebooted and pressed Del to enter the BIOS, of which I took two screen photos which I thought could be helpful:

enter image description here

enter image description here

As you can see I've got two hard drives in there. One is the drive on which Ubuntu is installed and the other I used to store all my pictures.

From here I'm kind of lost. Does anybody know what I can do to boot this machine into Ubuntu again?

Enable MariaDB SSL https://askubuntu.com/questions/772588/enable-mariadb-ssl

I have to make my MariaDB authentication a bit safer than default. I tried to set up SSL support for this, but found only an old howto here:

How to enable MySQL SSL on Ubuntu

I followed it, however after checking I get this:

MariaDB [(none)]> show variables like "%ssl%";
+---------------+----------------------------+
| Variable_name | Value                      |
+---------------+----------------------------+
| have_openssl  | NO                         |
| have_ssl      | DISABLED                   |
| ssl_ca        | /etc/mysql/ca-cert.pem     |
| ssl_capath    |                            |
| ssl_cert      | /etc/mysql/server-cert.pem |
| ssl_cipher    |                            |
| ssl_crl       |                            |
| ssl_crlpath   |                            |
| ssl_key       | /etc/mysql/server-key.pem  |
+---------------+----------------------------+
9 rows in set (0.00 sec)

MariaDB [(none)]> \s
...
SSL: not in use
...

This source was written in 2011. Maybe it is outdated, or I've made a mistake somewhere. When I generated .pems there were no errors. My /var/log/mysql/error.log file is empty.

Do you have any ideas?

How to check if a cron job is running or not? https://askubuntu.com/questions/650885/how-to-check-if-a-cron-job-is-running-or-not

I added the following command in crontab -e:

15 * * * * php /home/rizwan/PHP-workspace/mgstore/testcron.php

I need to run testcron.php every 15 minutes; for testing purposes I used the following PHP code in testcron.php:

<?php 
echo "test";

15 * * * * /usr/bin/php /home/rizwan/PHP-workspace/mgstore/testcron.php >> /home/rizwan/cron.out 

this was working .but i have one php script,for adding customers from magento to ERP,when i run script manually,it asks for authorization,after accepting it creates customers into ERP from magento,I need whenever i added customer in magento after 5 or 10 mins this script should run and add the customer to ERP.how this can be done ?,If any one have any idea,please help ?

OpenSSH - Restrict users to one or multiple folders https://askubuntu.com/questions/531490/openssh-restrict-users-to-one-or-multiple-folders

I want to know how I can restrict user access using OpenSSH Server. Let's say I want

  • user 1 to only access /Media, /Documents, and his home folder,
  • User 2 should only access /Folder21, and his homefolder,
  • User 3 should only have access to /Documents, /Folder21 and his home folder,

How can I do such a thing?

I found how to do it with one folder, but that was for all users, I think? description here: https://bensmann.no/restrict-sftp-users-to-home-folder/

(copied from link I gave above:
Can I just do this:

$ usermod User1 -s /bin/false
$ usermod User2 -s /bin/false

And set the user’s home directory:

$ usermod User1 -d /folder
$ usermod User2 -d /folder

then make all the other folders subfolders of /folder, and restrict access to those folders accordingly to my wishes using the chmod command, or is there a better solution??

Addition and clarification: Adding it to their homedirectory is not an option, as it are shared folders, some users need access to the same content,while it is restricted to other users,

This is what I had in mind:

  • user 1
  • user 2
  • user 3
  • user 4

  • folder "Network documentation"

  • folder "application documentation"
  • folder "Downloads"
  • folder "Media"

  • User 1 needs full access to everything, but Read-only access to application documentation List item

  • User 2 needs full access to both documentation folders
  • User 3 only needs access to the "Media" folder
  • User 4 only needs access to the folder "Downloads" and "Application Documentation"
CMake can't find pthread https://askubuntu.com/questions/499238/cmake-cant-find-pthread

pthreads works on the system:

$ gcc -o what what.c
/tmp/ccI6m52b.o: In function `main':
what.c:(.text+0x37): undefined reference to `pthread_create'
what.c:(.text+0x48): undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status
$ gcc -pthread -o what what.c
$ ./what
In the thread.

However, when I run cmake with the following bare-bones CMakeLists.txt:

cmake_minimum_required(VERSION 2.8.6)
FIND_PACKAGE (Threads)

The output is:

-- Could NOT find Threads (missing:  Threads_FOUND)

What gives? Error log states:

/usr/bin/cc   -std=c11 -D_GNU_SOURCE   -Wall -Wextra -Wpointer-arith -Wundef -Wvla -Wwrite-strings -Werror -Wno-error=extra -Wno-error=deprecated-declarations -Wno-error=sign-compare -Wno-error=strict-aliasing -Wno-error=type-limits -Wno-unused-parameter -Wno-error=unused-variable -Wno-error=undef -Wno-error=uninitialized -Wlogical-op -Wno-error=maybe-uninitialized -Waggregate-return -Wnested-externs -Wold-style-definition -Wstrict-prototypes -march=native    -o CMakeFiles/cmTryCompileExec2533162744.dir/CheckIncludeFiles.c.o   -c /mnt/shared/fooproj/build/release/CMakeFiles/CMakeTmp/CheckIncludeFiles.c
/mnt/shared/fooproj/build/release/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:5:5: 
     error: function declaration isn’t a prototype [-Werror=strict-prototypes]
 int main(){return 0;}
 ^
/mnt/shared/fooproj/build/release/CMakeFiles/CMakeTmp/CheckIncludeFiles.c: 
     In function ‘main’:
/mnt/shared/fooproj/build/release/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:5:5: 
     error: old-style function definition [-Werror=old-style-definition]
cc1: all warnings being treated as errors
[...]
Source:
/* */
#include <pthread.h>


int main(){return 0;}
When starting gparted "Gtk-WARNING **: cannot open display:" https://askubuntu.com/questions/341937/when-starting-gparted-gtk-warning-cannot-open-display

This is exactly my problem. running ubuntu server 12.04. sorry I couldn't find a way to mark the thread "unanswered".

Resize a 2TB partition on a 3TB disk created with fdisk

I downloaded and installed gparted - however I get an errors when trying to run it. can you guys help me? my terminal output is below:

keysersoze@the-usual-suspects:/$ sudo gparted /dev/sda

(gpartedbin:18064): Gtk-WARNING **: cannot open display:
keysersoze@the-usual-suspects:/$

note that I am fairly new to linux. thanks for your patience.

No icons on main screen on VirtualBox https://askubuntu.com/questions/257628/no-icons-on-main-screen-on-virtualbox

I've tried everything, I've uninstalled and reinstalled, I've tried adding guest additions, nothing is working.

EDIT: I should also add I've been using this guide to getting VB set up: http://alexmk.hubpages.com/hub/How-To-Install-Ubuntu-Steam-TF2-under-VirtualBox-on-Windows-to-get-Linux-Tux-Promo

How to remap Super (left) key to Control key https://askubuntu.com/questions/137172/how-to-remap-super-left-key-to-control-key

Could anyone please tell me how to remap my Super (left) key to Ctrl key?

I mean Super (left) should work as Ctrl key.

How do I list connected displays using the command line? https://askubuntu.com/questions/121014/how-do-i-list-connected-displays-using-the-command-line

Is there a command that will list displays connected to the computer?

Specifically, I'm looking to find out how my external monitor is being detected by the system when connected by HDMI cable and what it's (not sure of the correct term here) hardware address is (eg. "CRT-0" or "DFP-1").

This is just a general question, but for reference, I'm using:

  • Asus UL30JT laptop - running Ubuntu 12.04 beta and 11.10
  • Asus PA238 23" monitor
  • HDMI 1.4 cable
  • Optimus graphics (Intel + nVidia GeForce 310M) - running with Bumblebee
Cron job not running? (How to check) https://askubuntu.com/questions/93313/cron-job-not-running-how-to-check

I have a crontab file that looks like this:

* * * * * /home/abliskovs/update/update.sh

However when I check the syslog for evidence that the job has run, there is nothing that might indicate that it ever ran. How can I check if it's running?

crontab -l outputs the following:

* * * * * /home/abliskovs/update/update.sh