HOLA ayudenme alguien que tenga xp [closed] https://askubuntu.com/questions/1564122/hola-ayudenme-alguien-que-tenga-xp

Hola tengo una laptop con un ryzen bastante actual ryzen 7730 u con graficos integrados

quiero saber

  1. me complica la terminal no quiero usarla en ubuntu si o si debo saber usarla?

  2. con mi ryzen mencionado anteriormente me funcionara

  3. eso gracias a esa persona que me ayuda en esto

Can't upload a large table either through PHPMyAdmin or by the terminal https://askubuntu.com/questions/1564119/cant-upload-a-large-table-either-through-phpmyadmin-or-by-the-terminal

My apologies in advance for the length of this message - just wanted to get the fact out there.

My problem is I got an error message (see below) that doesn't make sense (to me). It came about while I was in the process of trying to use the command line to upload a large table into a MySQL database.

I did look at the other threads in this forum with the same error message, but they seemed to not apply to my situation.

I think a little back-story would be helpful here. Initially I downloaded tables from several databases I have online with the aim of recreating them in my new Ubuntu 24.04 Lampp installation on a 1Tb drive. All but one of the databases were successfully downloaded from online and uploaded into MySQL through PHPMyAdmin on my new system. The last database had no problem downloading but gave a "too big" error message when I tried to upload it. Knowing one of the tables was large (90Mb), I split the download into all the tables except the large one, and then just the large one by itself. The small ones uploaded without a problem, but the large one would not go.

The first online remedy was to increase some of the limiting variables in the php.ini file, so I did as follows:

  • upload_max_filesize=150M
  • memory_limit=1024M
  • max_execution_time=120

After restarting the computer the table still wouldn't upload.

The next tip suggested I tried was doing the upload through the terminal. The suggested command was:

sudo mysql -u <username> -p <db name> < <bigfile.sql>

(which I ran from the directory that bigfile.sql was in). When I ran it, I got the following error message:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'

After searching through the computer I came to the conclusion that there is no /var/run/mysqld/mysqld.sock as the error message would have me believe. There is an executable named mysqld in the /opt/lampp/sbin directory, but no mysqld.sock in that directory (or any other). However, there is a /opt/lampp/var/mysql/mysql.sock (without the d).

The only file (other than php.ini) I could find anywhere under /opt/lampp/ was a configuration file, /opt/lampp/etc/my.cnf. Checking that file, I found that all reference to "socket" are already equal to the aforementioned /opt/lampp/var/mysql/mysql.sock.

So, I don't know how to find this illusive mysqld.sock, nor what to do next to get this bigfile.sql to upload, and any suggestions would be greatly appreciated.

inverting colors using xrandr screws up font display in Thunderbird and LibreOffice (but not in other apps) - why? https://askubuntu.com/questions/1564117/inverting-colors-using-xrandr-screws-up-font-display-in-thunderbird-and-libreoff

I am on Ubuntu 24.04 LTS.

I am using xrandr's brightness switch to invert the colors on my screens, which makes extended work on my computer much easier on my eyes:

$ xrandr --output eDP --brightness -1.0

This generally works as intended. (I can revert it by setting the brightness to +1.0.)

However, for some reason I don't understand, when I invert the colors on some apps fonts render perfectly (Firefox, gnome-terminal) while in others they get garbled to the point of hardly being legible (Thunderbird, Libreoffice).

Here are two sample pictures, each of them showing the same app without color inversion and with color inversion:

The Thunderbird folder pane:

Two screenshots of Thunderbird without and with colors inverted

Libreoffice Writer (close-up of a word):

Two screenshots of LibreOffice, without and with colors inverted

I thought anti-aliasing and/or hinting might be the problem, so I tried disabling them using dconf-editor. But the problem persists. I also disabled anti-aliasing in Libreoffice's options, but it also produced no improvement.

What is causing this and how can I fix the display of text by Thunderbird and Libreoffice when colors are inverted?

Ubuntu connects to wifi, but has no internet https://askubuntu.com/questions/1564116/ubuntu-connects-to-wifi-but-has-no-internet

I am using RaspAP with default settings on a raspberry pi 5 with raspberry pi os bookworm

the only thing I changed in RaspAP is the name, password and country code, which I set to US (via RaspAP GUI)

I connected my ubuntu machine to it, and it connected perfectly.

I ran a ping google.com, and got no connection.

I pinged 8.8.8.8, and got a perfect connection

My phone connects to it perfectly, reporting no internet access, but when I go to google.com, it loads fine so I don't know what's up with that.

I checked NetworkManager GUI, and it showed DNS was set to auto

please tell me if you need any more info

Ubuntu 24.0 Docker - PHP-FPM + NGINX - PHP-FPM gives /index.php 404 error https://askubuntu.com/questions/1564115/ubuntu-24-0-docker-php-fpm-nginx-php-fpm-gives-index-php-404-error

I have a docker setup with Laravel Application that works fine on local Mac however, I am facing issues with the deployment on Ubuntu server 24.0.

  1. All my paths are correct

  2. All my volumes are mapped correctly

  3. I checked the file location which exists

  4. I have correctly pointed the root for NGINX i.e. both the NGINX and PHP-FPM has the same folder structure /var/www/api/public

  5. User & Group ID matches the host OS i.e. 1000:1000 in all containers

  6. Permissions:

    1. api: 755

    2. api/storage : 775

    3. api/bootstrap/cache: 775

Where could be the issue?

I have created a git repo for this setup here. The folder structure I have is:

Project Folder
|- docker-laravel
|- api

The log after running docker compose -f docker-compose.yml -f docker-compose.prod.yml logs php

Log of php-fpm container

enter image description here

enter image description here

EDIT after command

docker exec -it $(docker container ls --filter=ancestor=nginx:alpine -q) find /var/www | grep public/index.php

enter image description here

User id requirments https://askubuntu.com/questions/1564108/user-id-requirments

I am trying to find out what the user id requirements are for a new user. I am on 24.04.4 LTS, using user add command. What are the requirements for a new user id? I know it can't be more than 8 characters, but are there any other requirements? I suspect we are entering an invalid user id, but without knowing what the requirements are I don't know what part of the user id is not valid.

Thank you

Wifi continuosly disconnects in Ubuntu 25.10 https://askubuntu.com/questions/1564091/wifi-continuosly-disconnects-in-ubuntu-25-10

I am incredibly new to Ubuntu so I know next to nothing about how it works. My issue is that after having my computer on for a bit the Wifi stops working and will will not connect to any other Wifi until after I restart my computer I have attempted to look online to try to find drivers but found nothing that works. I don't know what to do to fix this issue.

  • Hardware model: HP HP ProBook 455 15.6 inch G9 Notebook PC
  • Processor: AMD Ryzen™ 5 5625U with Radeon™ Graphics × 12
  • Graphic: AMD Radeon™ Graphics
  • Disk Capacity: 1.0 TB
  • Firmware Version: U88 Ver. 01.20.00
  • OS Type: 64-bit
  • GNOME Version: 49
  • Windowing System: Wayland
  • Kernel Version: Linux 6.17.0-14-generic

This is what the terminal shows for my network controller:

02:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8852BE PCIe 802.11ax Wireless Network Controller [10ec:b852]
    Subsystem: Hewlett-Packard Company Device [103c:88e3]
    Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort+ <MAbort- >SERR- <PERR- INTx-
    Latency: 0
    Interrupt: pin A routed to IRQ 80
    IOMMU group: 11
    Region 0: I/O ports at 2000 [size=256]
    Region 2: Memory at fb500000 (64-bit, non-prefetchable) [size=1M]
    Capabilities: <access denied>
    Kernel driver in use: rtw89_8852be
    Kernel modules: rtw89_8852be
grub does not see the Windows 10 disk/partition https://askubuntu.com/questions/1564083/grub-does-not-see-the-windows-10-disk-partition

I did see many posts regarding this topic, but none helped me to solve it.

I had an older PC with dual boot Ubuntu and Windows 7 running. both on different disks.

I moved the Ubuntu disk to another PC running Windows 10.
Starting Windows 10 worked as usual, but not Ubuntu, so I used Boot-Repair. On the first run Boot–Repair went through (including removing/installing grub) using the default settings. After restarting there was no grub on any disk (there are 4 internal disks and 2 USB disks with data and for backup). Running disk repair again, trying to define which disk should contain grub and also trying to use the default repair now always gave the following error message:

The current session is in BIOS-compatibility mode. 
Please disable BIOS-compatibility/CSM/Legacy mode in your UEFI firmware, 
and use this software from a live-CD (or live-USB) 
that is compatible with UEFI booting mode. 
For example, use a live-USB of Boot-Repair-Disk-64bit   
(www.sourceforge.net/p/boot-repair-cd), 
after making sure your BIOS is set up to boot USB in EFI mode.

Only BIOS is set to UEFI and I could not find the BIOS-compatibility settings.

Based on some thread in this forum I did the following:

  • mount /dev/sda5 /mnt

  • Then run the following to do a chroot to reinstall grub on the system:

  • for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done

  • chroot /mnt

    The later 2 steps threw an error message, /cow etc. I solved it by sudo apt-get install grub. It seems the Boot–Repair did not install grub properly.

    Then you should be at a $ prompt and see your Ubuntu installation. You should now be able to reinstall grub and update grub.

  • sudo grub-install /dev/sda

  • sudo update-grub

Only the Windows on disk /dev/sdh was not found

Searching through several threads did not solve it.

What I did:

  • turned off Fast Boot and Windows power setting: no effect (still left it that way)

  • trying 40_custom settings using the hd8,1 (for /dev/sdh) did get

    grub cannot get C/H/S values

  • I tried several hdX settings, but none worked.

Next based on another thread:

menuentry "Windows 10" --class windows --class os {
   insmod ntfs
   search --no-floppy --set=root --fs-uuid 6A4C90714C9039B1
   ntldr /bootmgr
}

The uuid is the ntfs partition (/dev/sdh2), I also tried the efi partition uuid (/dev/sdh1)
This had no effect. Windows does not boot from the grub boot menu.

Do you have any other suggestions to get Windows to start from the grub boot menu?

Link to Boot-repair log: https://paste.ubuntu.com/p/JkrmrzGtWq/

How can I fix boot problem (ending up in BusyBox, UUID not found) https://askubuntu.com/questions/1563923/how-can-i-fix-boot-problem-ending-up-in-busybox-uuid-not-found

I have a dual boot setup (Windows and Ubuntu) on my computer. For background, a while ago when I had different Ubuntu issues I already disabled Windows' "Fast Startup".

The current issue: I tried one day to boot into Ubuntu 24.04, and I just got a screen with the following text:

BusyBox v1.36.1 (Ubuntu 1:1.36.1-6ubuntu3.1) built-in shell (ash) Enter 'help' for a list of built-in commands.
(initramfs)

If I enter "exit" I get:

BusyBox v1.36.1 (Ubuntu 1:1.36.1-6ubuntu3.1) built-in shell (ash) Enter 'help' for a list of built-in commands.
(initramfs) exit
Gave up waiting for root file system device. Common problems:
- Boot args (cat /proc/cmdline)
- Check rootdelay= (did the system wait long enough?)
- Missing modules (cat /proc/modules; ls /dev)
ALERT! UUID=1785c362-92ff-4a9a-b254-f950db82ad8c does not exist. Dropping to a shell!
BusyBox v1.36.1 (Ubuntu 1:1.36.1-6ubuntu3.1) built-in shell (ash)
Enter 'help' for a list of built-in commands.
(initramfs)

My next step was a long, long foray trying to get Perplexity to help me fix the problem. I will summarize for you anything that may be illuminating from those attempts.

It had me create a removable drive to boot Ubuntu temporarily from, and get to the Terminal. At one point, it had me run the following for "quick diagnostics":

sudo blkid | grep nvme0n1p7
cat /mnt/root/etc/fstab | grep nvme0n1p7
sudo mount /dev/nvme0n1p7 /mnt/root
journalctl -xb | grep -i "nvme0n1p7\|1785c362\|fsck\|mount"

The output was very long, so I'll give you Perplexity's evaluation of the output:

Key findings from your output​

✅ UUID perfect: /dev/nvme0n1p7 has correct UUID 1785c362-92ff-4a9a-b254-f950db82ad8c
✅ Filesystem mounts fine: Kernel successfully mounted it read-only earlier
❌ Mount point missing: You ran cat and mount without creating /mnt/root first
❌ No /etc/fstab access: Because /mnt/root wasn't mounted when you checked
⚠️ os-prober found your Ubuntu: 40lsb detected /dev/nvme0n1p7:Ubuntu 24.04.3 LTS

A couple more failed fixes/boots back to the BusyBox later, it had me do more diagnostics. Here is the output from that:

ubuntu@ubuntu:~$ # 1. Test if root mounts read-write now
sudo mkdir -p /mnt/test
sudo mount /dev/nvme0n1p7 /mnt/test
mount | grep nvme0n1p7
sudo umount /mnt/test

# 2. Check filesystem health
sudo fsck -n /dev/nvme0n1p7

# 3. Verify GRUB kernel line
sudo mount /dev/nvme0n1p7 /mnt/root
grep "root=" /mnt/root/boot/grub/grub.cfg

# 4. Boot parameter check
sudo mount /dev/nvme0n1p1 /mnt/efi
ls -la /mnt/efi/EFI/ubuntu/
/dev/nvme0n1p7 on /mnt/test type ext4 (rw,relatime)
fsck from util-linux 2.39.3
e2fsck 1.47.0 (5-Feb-2023)
/dev/nvme0n1p7: clean, 528537/32210944 files, 19131061/128843776 blocks
mount: /mnt/root: mount point does not exist.
       dmesg(1) may have more information after failed mount system call.
grep: /mnt/root/boot/grub/grub.cfg: No such file or directory
mount: /mnt/efi: mount point does not exist.
       dmesg(1) may have more information after failed mount system call.
ls: cannot access '/mnt/efi/EFI/ubuntu/': No such file or directory

...to which it said:

Key takeaways from output

✅ /dev/nvme0n1p7 mounts read-write perfectly (rw,relatime)
✅ Filesystem clean (no fsck errors)
❌ Missing /mnt/root, /mnt/efi directories
❌ No /mnt/efi/EFI/ubuntu/ = GRUB EFI files missing (main problem!)

I ran its next code to "Fix the mount directory issues + reinstall GRUB EFI". Output:

ubuntu@ubuntu:~$ # Create missing directories
sudo mkdir -p /mnt/root /mnt/efi

# Remount with proper structure
sudo mount /dev/nvme0n1p7 /mnt/root
sudo mount /dev/nvme0n1p1 /mnt/efi

# Verify GRUB files NOW exist
ls -la /mnt/efi/EFI/ubuntu/
grep "root=" /mnt/root/boot/grub/grub.cfg
total 4390
drwxr-xr-x 2 root root    2048 Mar 30  2025 .
drwxr-xr-x 6 root root    2048 Aug  2 23:20 ..
-rwxr-xr-x 1 root root     108 Jan 31 16:05 BOOTX64.CSV
-rwxr-xr-x 1 root root     117 Jan 31 16:05 grub.cfg
-rwxr-xr-x 1 root root 2660232 Jan 31 16:05 grubx64.efi
-rwxr-xr-x 1 root root  856280 Jan 31 16:05 mmx64.efi
-rwxr-xr-x 1 root root  966664 Jan 31 16:05 shimx64.efi
grep: /mnt/root/boot/grub/grub.cfg: Permission denied

...to which it said "Excellent—GRUB EFI files are present and recent (Jan 31 timestamps), but Permission denied on grub.cfg needs fixing."

So I ran its next code for "Quick permission fix + final verification". Output:

ubuntu@ubuntu:~$ # Fix grub.cfg permission (live USB -> root filesystem mismatch)
sudo mount -o remount,remount,rw /mnt/root
sudo chmod 644 /mnt/root/boot/grub/grub.cfg
sudo grep "root=" /mnt/root/boot/grub/grub.cfg

# Check what root= parameter GRUB passes to kernel
cat /mnt/root/boot/grub/grub.cfg | grep "linux.*root=" -A 5
    linux   /boot/vmlinuz-6.14.0-36-generic root=UUID=1785c362-92ff-4a9a-b254-f950db82ad8c ro  quiet splash $vt_handoff
        linux   /boot/vmlinuz-6.14.0-36-generic root=UUID=1785c362-92ff-4a9a-b254-f950db82ad8c ro  quiet splash $vt_handoff
        linux   /boot/vmlinuz-6.14.0-36-generic root=UUID=1785c362-92ff-4a9a-b254-f950db82ad8c ro recovery nomodeset dis_ucode_ldr 
        linux   /boot/vmlinuz-6.14.0-35-generic root=UUID=1785c362-92ff-4a9a-b254-f950db82ad8c ro  quiet splash $vt_handoff
        linux   /boot/vmlinuz-6.14.0-35-generic root=UUID=1785c362-92ff-4a9a-b254-f950db82ad8c ro recovery nomodeset dis_ucode_ldr 
        linux   /boot/vmlinuz-6.14.0-34-generic root=UUID=1785c362-92ff-4a9a-b254-f950db82ad8c ro  quiet splash $vt_handoff
        linux   /boot/vmlinuz-6.14.0-34-generic root=UUID=1785c362-92ff-4a9a-b254-f950db82ad8c ro recovery nomodeset dis_ucode_ldr 
    linux   /boot/vmlinuz-6.14.0-36-generic root=UUID=1785c362-92ff-4a9a-b254-f950db82ad8c ro  quiet splash $vt_handoff
    initrd  /boot/initrd.img-6.14.0-36-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-1785c362-92ff-4a9a-b254-f950db82ad8c' {
    menuentry 'Ubuntu, with Linux 6.14.0-36-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.14.0-36-generic-advanced-1785c362-92ff-4a9a-b254-f950db82ad8c' {
        recordfail
--
        linux   /boot/vmlinuz-6.14.0-36-generic root=UUID=1785c362-92ff-4a9a-b254-f950db82ad8c ro  quiet splash $vt_handoff
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-6.14.0-36-generic
    }
    menuentry 'Ubuntu, with Linux 6.14.0-36-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.14.0-36-generic-recovery-1785c362-92ff-4a9a-b254-f950db82ad8c' {
        recordfail
--
        linux   /boot/vmlinuz-6.14.0-36-generic root=UUID=1785c362-92ff-4a9a-b254-f950db82ad8c ro recovery nomodeset dis_ucode_ldr 
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-6.14.0-36-generic
    }
    menuentry 'Ubuntu, with Linux 6.14.0-35-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.14.0-35-generic-advanced-1785c362-92ff-4a9a-b254-f950db82ad8c' {
        recordfail
--
        linux   /boot/vmlinuz-6.14.0-35-generic root=UUID=1785c362-92ff-4a9a-b254-f950db82ad8c ro  quiet splash $vt_handoff
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-6.14.0-35-generic
    }
    menuentry 'Ubuntu, with Linux 6.14.0-35-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.14.0-35-generic-recovery-1785c362-92ff-4a9a-b254-f950db82ad8c' {
        recordfail
--
        linux   /boot/vmlinuz-6.14.0-35-generic root=UUID=1785c362-92ff-4a9a-b254-f950db82ad8c ro recovery nomodeset dis_ucode_ldr 
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-6.14.0-35-generic
    }
    menuentry 'Ubuntu, with Linux 6.14.0-34-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.14.0-34-generic-advanced-1785c362-92ff-4a9a-b254-f950db82ad8c' {
        recordfail
--
        linux   /boot/vmlinuz-6.14.0-34-generic root=UUID=1785c362-92ff-4a9a-b254-f950db82ad8c ro  quiet splash $vt_handoff
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-6.14.0-34-generic
    }
    menuentry 'Ubuntu, with Linux 6.14.0-34-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.14.0-34-generic-recovery-1785c362-92ff-4a9a-b254-f950db82ad8c' {
        recordfail
--
        linux   /boot/vmlinuz-6.14.0-34-generic root=UUID=1785c362-92ff-4a9a-b254-f950db82ad8c ro recovery nomodeset dis_ucode_ldr 
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-6.14.0-34-generic
    }
}

...to which it responded: "PERFECT—your GRUB config is 100% correct. Every root=UUID=1785c362-92ff-4a9a-b254-f950db82ad8c matches your fstab exactly.​

GRUB hands the kernel the right parameters. The problem is initramfs itself failing to mount root."

It then sent me down this wasted rabbithole of "Since everything else checks out, increase initramfs root delay + force regeneration".

If anyone can help me where the AI could not, I would be very appreciative. Of course I will give any other information you may need.


Edit: As asked for me to add cat /etc/fstab:

ubuntu@ubuntu:~$ cat /etc/fstab
overlay / overlay rw 0 0
tmpfs /tmp tmpfs nosuid,nodev 0 0

Edit 2: As asked for me to add blkid:

ubuntu@ubuntu:~$ blkid
/dev/nvme0n1p1: LABEL_FATBOOT="ESP" LABEL="ESP" UUID="7C4A-25B2" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="d633f6fd-adee-4dff-9951-1be157495497"
/dev/nvme0n1p3: LABEL="OS" BLOCK_SIZE="512" UUID="3E86654D866506AD" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="d6cda5f4-67bd-4bc5-9fcc-f979042784a1"
/dev/nvme0n1p4: LABEL="WINRETOOLS" BLOCK_SIZE="512" UUID="D87E1B9A7E1B710C" TYPE="ntfs" PARTUUID="2d9bb834-833f-4ff6-9e43-1e9651579884"
/dev/nvme0n1p5: LABEL="Image" BLOCK_SIZE="512" UUID="C6F21BB2F21BA629" TYPE="ntfs" PARTUUID="e04d2531-67e1-4a7b-9a78-4ca878a9b894"
/dev/nvme0n1p6: LABEL="DELLSUPPORT" BLOCK_SIZE="512" UUID="D80C94CE0C94A950" TYPE="ntfs" PARTUUID="ffb1e1f8-cbbb-4fcf-a159-443048d108ad"
/dev/nvme0n1p7: UUID="1785c362-92ff-4a9a-b254-f950db82ad8c" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="2760a97d-1428-48af-a023-bc67925f1398"
/dev/sda2: LABEL="Data" BLOCK_SIZE="512" UUID="4A229D11229D02DD" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="ca056f81-9027-4410-b0e2-da1cde2b08a8"
/dev/sdb1: BLOCK_SIZE="2048" UUID="2025-08-05-18-20-26-00" LABEL="Ubuntu 24.04.3 LTS amd64" TYPE="iso9660" PARTLABEL="ISO9660" PARTUUID="b5416491-a6d3-42b2-a3f7-260427bcf601"
/dev/loop1: BLOCK_SIZE="131072" TYPE="squashfs"
/dev/sdb4: LABEL="writable" UUID="ef27101d-0856-49ef-a053-f0a67ec43059" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="4de67e78-749f-4939-b303-43325e007e60"
/dev/sdb2: SEC_TYPE="msdos" LABEL_FATBOOT="ESP" LABEL="ESP" UUID="73B7-988D" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="Appended2" PARTUUID="b5416491-a6d3-42b2-a3f4-260427bcf601"
/dev/loop2: BLOCK_SIZE="131072" TYPE="squashfs"
/dev/loop0: BLOCK_SIZE="131072" TYPE="squashfs"

Edit 3: From running sudo bash -c 'mount /dev/nvme0n1p7 /mnt && cat /mnt/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/nvme0n1p7 during curtin installation
/dev/disk/by-uuid/1785c362-92ff-4a9a-b254-f950db82ad8c / ext4 defaults 0 1
# /boot/efi was on /dev/nvme0n1p1 during curtin installation
/dev/disk/by-uuid/7C4A-25B2 /boot/efi vfat defaults 0 1
/swap.img   none    swap    sw  0   0
/dev/disk/by-uuid/3E86654D866506AD /mnt/3E86654D866506AD auto nosuid,nodev,nofail 0 0
/dev/disk/by-id/usb-WD_My_Book_25EE_574343374B32554344485033-0:0-part1 /mnt/usb-WD_My_Book_25EE_574343374B32554344485033-0:0-part1 auto nosuid,nodev,nofail,noauto 0 0
UUID=4A229D11229D02DD  /media/rua/Data/  ntfs-3g  uid=1000,gid=1000,dmask=022,fmask=133  0  0
Configure all keys of "ThinkPad TrackPoint Keyboard II" on Ubuntu https://askubuntu.com/questions/1563493/configure-all-keys-of-thinkpad-trackpoint-keyboard-ii-on-ubuntu

I am using the great external keyboard "ThinkPad TrackPoint Keyboard II" (AZERTY layout) with Ubuntu. On recent versions the keyboard is quite well recognized. But I would like every key to work. For example the Fn functions work : Fn+F1 mute, Fn+F2 volume down, etc. But some basic keys don't work like for example :

  • next to backspace, on the right, the key with - and _ displays "=" when pressed.

  • the key !8, when pressed displays "_" instead of "!"

  • the key "+=~" on the lower right, displays "!"

  • and several others.

Do you know how to configure the keyboard properly on a recent Ubuntu 24.04?

Do you know how to configure the keyboard properly on an old Ubuntu 16.04?

I can configure every key manually if needed, but I don't know how.

Thank you

Add an image on top of a PDF page https://askubuntu.com/questions/1562930/add-an-image-on-top-of-a-pdf-page

I often find myself signing PDF files I receive via email, which I have to print, sign by hand, and scan. It's a huge waste of time and frustrating. I already have a PNG image of my signature, and I'm convinced a simple tool that overlays the image onto the PDF file I need to sign would be enough. There are some rather dated (13-year-old) solutions online, some geeky (using Ghostscript) or software from external repositories, or LibreOffice, which however alters the PDF upon import. We're now on Ubuntu 24. Is there any software that can easily overlay an image onto a PDF page without using scripts or dubious apps? Thanks.

Importing OpenVPN from TP-Link Router https://askubuntu.com/questions/1554296/importing-openvpn-from-tp-link-router

I am using TP-Link's built-in OpenVPN server. It is as simple as setting the port, subnet, and netmask. The VPN works great using the OpenVPN client on my Windows computers and my Andriod phones, but I have not been able to sucessfully use is on my Ubuntu box.

I'm using a fresh 24.04 and the GUI to import a VPN connection. I import the ovpn file, it creates a ca.pem, cert.pem, and a key.pem.

When I try to conect to the VPN it just times out. I don't see a log in /var/logs/openvpn

Any help would be great. Here is the ovpn file that my TP-link router generates:

client
dev tun
proto udp
float
nobind
cipher AES-128-CBC
comp-lzo adaptive
resolv-retry infinite
remote-cert-tls server
persist-key
persist-tun
remote <ddns.org> 1195
<ca>
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
...
-----END PRIVATE KEY-----
</key>
How to start AnyDesk as root user in Ubuntu? https://askubuntu.com/questions/1485208/how-to-start-anydesk-as-root-user-in-ubuntu

I tried opening AnyDesk from root user, but it shows the following error message in the below screenshot. How to solve this problem so that AnyDesk can be opened as root user in Ubuntu??

enter image description here

NVIDIA drivers are not recognized in Ubuntu 22.04 (they are shown, they are not used) https://askubuntu.com/questions/1468217/nvidia-drivers-are-not-recognized-in-ubuntu-22-04-they-are-shown-they-are-not

Premise

I tried pretty much everything I could find, I will list the attempts below.

Question structured as follows: Premise, Problem, Question, Attempts.

My PC:

  • Gigabyte X570 I AORUS PRO WIFI Mini ITX AM4
  • AMD Ryzen 5 5600x (Zen3)
  • Palit Dual GeForce RTX 3060Ti 8GB
  • MX500 1TB (Ubuntu)
  • Sabrent Rocket 4.0 500GB (Windows)
  • MX500 2TB (storage)

Also:

  • Secure Boot is disabled (also CSM is disabled)

Objective

Ubuntu 22.04 LTS Installation for Machine Learning development, mainly GPU accelerated:

  1. CUDA is needed
  2. Nouveau drivers are not optimal, hence they are currently blacklisted
  3. NVIDIA drivers are needed
blacklist nouveau
options nouveau modeset=0

Problem

The driver is recognized as:

  • It is shown in the Software & Updates as installed

Software & Updates Screenshot link

But it is clearly not used as I'm writing this in 1024x768 (4:3).

Taking a look at drivers/what is recognized:

teniu@AW-PC:~$ sudo lshw -c video
[sudo] password for teniu: 
  *-display                 
       description: VGA compatible controller
       product: GA104 [GeForce RTX 3060 Ti]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:09:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: irq:108 memory:fb000000-fbffffff memory:d0000000-dfffffff memory:e0000000-e1ffffff ioport:e000(size=128) memory:fc000000-fc07ffff
  *-graphics
       product: EFI VGA
       physical id: 1
       logical name: /dev/fb0
       capabilities: fb
       configuration: depth=32 resolution=1024,768
teniu@AW-PC:~$ modinfo $(modprobe --resolve-alias nvidia)
modprobe: FATAL: Module nvidia not found in directory /lib/modules/5.19.0-41-generic
modinfo: ERROR: missing module or filename.

Trying to install drivers with autoinstall, output:

Traceback (most recent call last):
  File "/usr/bin/ubuntu-drivers", line 513, in <module>
    greet()
  File "/usr/lib/python3/dist-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3/dist-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3/dist-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/decorators.py", line 84, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/usr/bin/ubuntu-drivers", line 432, in autoinstall
    command_install(config)
  File "/usr/bin/ubuntu-drivers", line 187, in command_install
    UbuntuDrivers.detect.nvidia_desktop_pre_installation_hook(to_install)
  File "/usr/lib/python3/dist-packages/UbuntuDrivers/detect.py", line 839, in nvidia_desktop_pre_installation_hook
    with_nvidia_kms = version >= 470
UnboundLocalError: local variable 'version' referenced before assignment

Ignoring this means installing the drivers specifying the version, so with:

sudo apt install nvidia-driver-530-open

It does its thing, then trying nvidia-smi, output:

No devices were found

Is the kernel module loaded? Seems like it is:

teniu@AW-PC:~$ lsmod | grep nvidia
nvidia_uvm           1441792  0
nvidia_drm             77824  1
nvidia_modeset       1404928  1 nvidia_drm
nvidia               6234112  5 nvidia_uvm,nvidia_modeset
drm_kms_helper        200704  1 nvidia_drm
drm                   581632  5 drm_kms_helper,nvidia,nvidia_drm

Trying again to see if nvidia is seen:

lspci | grep -i nvidia
teniu@AW-PC:~$ lspci | grep -i nvidia
09:00.0 VGA compatible controller: NVIDIA Corporation GA104 [GeForce RTX 3060 Ti] (rev a1)
09:00.1 Audio device: NVIDIA Corporation GA104 High Definition Audio Controller (rev a1)

Seems like it.

Question & Recap

nvidia-smi

Doesn't work, but the drivers are seen? I am clueless now.

The Ubuntu 22.04 LTS used for this is a fresh install.

What I think can be a major hint is this output, since NVIDIA modules are not found in the kernel modules directory.

teniu@AW-PC:~$ modinfo $(modprobe --resolve-alias nvidia)
modprobe: FATAL: Module nvidia not found in directory /lib/modules/5.19.0-41-generic
modinfo: ERROR: missing module or filename.
  • What am I supposed to do now?

Attempts (all failed)

  • Purge and reinstall (multiple)
  • Changing to 515 drivers instead of 530 (twice)
  • (did I install the wrong version...?)
  • Disabling Secure Boot (and try again everything)
  • Fresh Ubuntu install
  • Test on Windows (it works there, no hardware problems)
  • Headers update, 0 updates
sudo apt install linux-headers-$(uname -r)
  • (I would like to avoid manual installation through download)
  • Give up (not an option)

Useful but unrelated information

When I built the PC I had to update the BIOS since the motherboard didn't offer native support for the Zen3 architecture of the Ryzen 5 series.

I mention this only because at startup, I see the fast terminal gibberish and at the top there is written something about the AMD not being recognized. Although I highly doubt it is somehow related or of importance, since it works afterwards.

Unable to install Ubuntu on Asus Pro WS WRX80E-SAGE SE WiFi and AMD Ryzen TR Proi https://askubuntu.com/questions/1424703/unable-to-install-ubuntu-on-asus-pro-ws-wrx80e-sage-se-wifi-and-amd-ryzen-tr-pro

After running the installer of Ubuntu 20.04/22.04 (Desktop or Server) from the USB stick, the installer crashes like in screen I used DVD, USB stick, Ventoy for installing Ubuntu. The CentOS 8 distribution installs and works fine on this hardware.

My computer's specs:

   ASUS pro WS WRX80E-SAGE SE Wi-Fi
   CPU - AMD Ryzen TR PRO 5965WX
   2 x NVME Samsung PRO 980 1TB
   128 GB Samsung ECC 4x32GB
   GPU - ASUS VGA NV 2GB GT1030

Black screen where the Ubuntu installer hangs:

[    3.711489] hub 4-0:1.0: 2 ports detected
[    3.713927] AES CTR mode by8 optimization enabled
[    3.753224] ast: probe of 0000:2a:00.0 failed with error -5
[    3.764660] MXM: GUID detected in BIOS
[    3.766692] fb0: switching to nouveaufb from EFI VGA
[    3.768623] Console: switching to colour dummy device 80x25
[    3.768647] nouveau 0000:41:00.0: vgaarb: deactivate vga console
[    3.768686] nouveau 0000:41:00.0: NVIDIA GP108 (138000a1)
[    3.888583] nouveau 0000:41:00.0: bios: version 86.08.36.00.2c
[    3.888808] nouveau 0000:41:00.0: pmu: firmware unavailable
[    3.889210] nouveau 0000:41:00.0: fb: 2048 MiB GDDR5
[    3.919713] nouveau 0000:41:00.0: DRM: VRAM: 2048 MiB
[    3.919715] nouveau 0000:41:00.0: DRM: GART: 536870912 MiB
[    3.919717] nouveau 0000:41:00.0: DRM: BIT table 'A' not found
[    3.919719] nouveau 0000:41:00.0: DRM: BIT table 'L' not found
[    3.919720] nouveau 0000:41:00.0: DRM: TMDS table version 2.0
[    3.919721] nouveau 0000:41:00.0: DRM: DCB version 4.1
[    3.919722] nouveau 0000:41:00.0: DRM: DCB outp 00: 01000342 04620010
[    3.919723] nouveau 0000:41:00.0: DRM: DCB outp 01: 01011352 04620020
[    3.919725] nouveau 0000:41:00.0: DRM: DCB conn 00: 00001031
[    3.919726] nouveau 0000:41:00.0: DRM: DCB conn 01: 00002161
[    3.920057] nouveau 0000:41:00.0: DRM: MM: using COPY for buffer copies
[    4.200343] nouveau 0000:41:00.0: DRM: allocated 1920x1080 fb: 0x200000, bo 00000006ad1ba52
[    4.204297] fbcon: nouveaudrmfb (fb0) is primary device
[    4.321051] Console: switching to colour frame buffer device 240x67
[    4.362895] ixgbe 0000:25:00.0: Multiqueue Enabled: Rx Queue count = 48, Tx Queue count = 48, T
[    4.396466] nouveau 0000:41:00.0: [drm] fb0: nouveaudrmfb frame buffer device
[    4.420246] [drm] Initialized nouveau 1.3.1 20120801 for 0000:41:00.0 on minor 0
[    4.460132] ixgbe 0000:25:00.0: 31.504 Gb/s available PCIe bandwidth (8.0 GT/s x4 link)
[    4.572211] ixgbe 0000:25:00.0: MAC: 4, PHY: 0, PBA No: 000000-000
[    4.572225] ixgbe 0000:25:00.0: 7c:10:c9:42:58:fa
[    4.740015] ixgbe 0000:25:00.0: Intel(R) 10 Gigabit Network Connection
[    4.740106] libphy: ixgbe-mdio: probed
[    4.740140] ixgbe 0000:25:00.1: enabling device (0000 -> 0002)
[    5.439169] ixgbe 0000:25:00.1: Multiqueue Enabled: Rx Queue count = 48, Tx Queue count = 48, T
[    5.541901] ixgbe 0000:25:00.1: 31.504 Gb/s available PCIe bandwidth (8.0 GT/s x4 link)
[    5.657754] ixgbe 0000:25:00.1: MAC: 4, PHY: 0, PBA No: 000000-000
[    5.657776] ixgbe 0000:25:00.1: 7c:10:c9:42:58:fb
[    5.825168] ixgbe 0000:25:00.1: Intel(R) 10 Gigabit Network Connection
[    5.825318] libphy: ixgbe-mdio: probed
[    5.827038] ixgbe 0000:25:00.0 enp37s0f0: renamed from eth0
[    5.848688] ixgbe 0000:25:00.1 enp37s0f1: renamed from eth1
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/nfs-top ... done.
Begin: Running /scripts/nfs-premount ... done.
Terraform + Cloud-Init via extra_config & DataSourceVMware https://askubuntu.com/questions/1366315/terraform-cloud-init-via-extra-config-datasourcevmware

Question:

Has anyone successfully used terraform + extra_config + Ubuntu cloud images to interface with Cloud Init, providing metadata/userdata? I'm hoping this will interact with DataSourceVMware, but can't be sure at this stage.

What I've been doing:

I am using Terraform to deploy Ubuntu cloud images on VMware vSphere 7. It's been easy enough to use vApp Properties:

... below code snipped from resource "vsphere_virtual_machine" "vm" { }

vapp {
    properties = {
        hostname = var.vm_Name_Lower
        instance-id = var.vm_Name_Lower
        user-data = base64encode(file("${path.module}/userdata.yml"))
    }
}

But any attempt to use extra_config has failed. I would like to be able to supply both guestinfo.metadata and guestinfo.userdata. But currently, my tests with metadata (seen below) have appeared to fail as the hostname is not set in the VM:

data "cloudinit_config" "metadata" {
    gzip = true
    base64_encode = true
    part {
        content_type = "text/cloud-config"
        content = <<-EOF
            local-hostname: testvm
            instance-id: testvm
        EOF
    }
}

... below code snipped from resource "vsphere_virtual_machine" "vm" { }

extra_config = {
    "guestinfo.metadata" = data.cloudinit_config.metadata.rendered
    "guestinfo.metadata.encoding" = "gzip+base64"
}

I can see the vSphere log entry to prove that the extra_config was sent:

config.extraConfig("guestinfo.metadata"): (key = "guestinfo.metadata", value = "H4sIAAAAAAAA/2SOTUvGMBCE74H8h/De11dPQsSDHz14qIK ... snipped

References:

Version details:

Client system (on which terraform is run): Ubuntu 20.04.3 LTS
ESXi: 7.0.2 / Build: 18538813
vCenter Server: 7.0.2 / Build: 18455184
Cloud Image: https://cloud-images.ubuntu.com/impish/current/impish-server-cloudimg-amd64.ova
Terraform v1.0.7
on linux_amd64
provider registry.terraform.io/hashicorp/template v2.2.0
provider registry.terraform.io/hashicorp/vsphere v1.24.3
why pip is not installed but after creating new venv and activating it, pip does work? https://askubuntu.com/questions/1277091/why-pip-is-not-installed-but-after-creating-new-venv-and-activating-it-pip-does

I'm confused by venv in linux. I have a fresh ubuntu 20.04 installed. when I entered python in terminal it says command python is not found and the same for pip, but python3 works (still not for pip or pip3). I created a venv using python3 -m venv new_env and python command works there and its version is 3 but this time pip runs with no problem. My question is why this happens and how to make python command runs python3 in main environment as well. Is it related to environment variables and PATH and causes problem when working with different venvs?

Can't switch to Nvidia graphics card because the kernel driver is not in use https://askubuntu.com/questions/1218225/cant-switch-to-nvidia-graphics-card-because-the-kernel-driver-is-not-in-use

I tried several times to switch to my Nvidia graphics card on Ubuntu 18.04.4, however it does not seem to work. After some research I found out that the kernel modules are available, but the kernel drivers are not in use.

Results of lspci -knn | grep -EA2 'VGA|3D':

OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile
OpenGL core profile version string: 4.5 (Core Profile) Mesa 19.2.8
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 19.2.8
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 19.2.8
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
OpenGL ES profile extensions:

Results of glxinfo | grep OpenGL:

00:02.0 VGA compatible controller [0300]: Intel Corporation 4th Gen Core Process
or Integrated Graphics Controller [8086:0416] (rev 06)
        Subsystem: Acer Incorporated [ALI] 4th Gen Core Processor Integrated Graphics Controller [1025:0926]
        Kernel driver in use: i915
--
01:00.0 3D controller [0302]: NVIDIA Corporation GM107M [GeForce GTX 860M] [10de
:1392] (rev a2)
        Subsystem: Acer Incorporated [ALI] GM107M [GeForce GTX 860M] [1025:0926]
        Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
git init - permission denied https://askubuntu.com/questions/1129891/git-init-permission-denied

When I try git init I get permission denied. I'm new to Ubuntu. What might be the reason?

Terminal:

(python36) jkbielan@jkbielan:~/python/projects/leetcode-python$ git init
/home/jkbielan/python/projects/leetcode-python/.git: Permission denied

I tried git init direction and sudo git init direction:

(python36) jkbielan@jkbielan:~/python/projects/leetcode-python$ git init /home/jkbielan/python/projects/leetcode-python
/home/jkbielan/python/projects/leetcode-python/.git: Permission denied
(python36) jkbielan@jkbielan:~/python/projects/leetcode-python$ sudo git init /home/jkbielan/python/projects/leetcode-python
sudo: git: command not found

Thanks for help.

Strange characters displayed after awakening from regular sleep in Ubuntu 18.04 https://askubuntu.com/questions/1100074/strange-characters-displayed-after-awakening-from-regular-sleep-in-ubuntu-18-04

After awakening from a regular sleep in Ubuntu 18.04, I often notice strange characters bugs in the Gnome interface. I link screenshots to this post. The only way I found to fix it is to perform a reboot.

It happens to me with French and English interfaces, and it happened with 2 different Ubuntu 18.04 installations on my computer.

I though this issues may be related to How to fix missing characters from font after awakening from suspend?, still none of the proposed solutions worked for me, and my characters didn't disappeared, but changed.

I guess it may be related to interference between my NVidia card (840M), the Intel Display HD card, and Gnome...

I am using NVidia additional drivers : GM108M (Geforce 840M) nvidia-driver-390 (proprietary, tested), on an Asus computer - UX303ln.

Desktop characters bug:

Desktop characters bug screenshot

Application launcher characters bug:

Application launcher characters bug screenshot

I faced a new issue : after going to sleep mode, my computer wasn't able to recover from the dark screen.

I even tried ALT+SYST+[R, E, I, S, U, B] to reboot the computer, without success. I had to hard reboot by holding the power switch. One week ago, a similar problem caused my SSD to be corrupted. I had to buy a new one and that's why I could say I tried two different Ubuntu installation. Maybe this is linked to the data corruption issue with the new Linux version? https://www.phoronix.com/scan.php?page=news_item&px=Linux-4.19.8-Released

By looking more specifically for this dark screen problem here https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1774950 , I discovered the "nouveau" driver issue concerning nVidia graphics cards. Two possibilities are proposed : downgrade the Linux Kernel to 4.14 or disable nouveau through GRUB. I have chosen the second option for now. https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1774950/comments/24

Set

nouveau.modeset=0

to GRUB_CMDLINE_LINUX in the /etc/default/grub file, after that run:

sudo update-grub
sudo reboot

I will answer this issue in a few days if I found out the problem not to occur anymore.

Cheers.

Visual Studio Code doesn't start anymore https://askubuntu.com/questions/1074522/visual-studio-code-doesnt-start-anymore

I'm completely new to Linux and wanted to experiment a little, so I don't really know what I'm doing. I am on working Ubuntu 18.04 and I have been unable to get Visual Studio Code to start again, even though it was working before. Trying to launch it through the application menu only resulted in a short loading animation followed by nothing. Launching it through the terminal issued /usr/lib/snapd/snap-confine: error while loading shared libraries: libudev.so.1: failed to map segment from shared object. I already tried to reinstall it. But attempting it through the terminal somehow didn't work at all manuel@Manuel-Ubuntu:~$ sudo dpkg --remove visual-studio-code dpkg: warning: ignoring request to remove visual-studio-code which isn't installed. According to the Ubuntu Software center it was installed.

I tried the suggestion by @karel snap-confine refuses to launch application to avoid permission attack, which didn't help my problem.

How to disable autorefresh in snap https://askubuntu.com/questions/930593/how-to-disable-autorefresh-in-snap

Is it possible to disable autorefresh in snap? This link says that Snaps are updated automatically in the background to the latest version, every day. Some snaps (e.g. vlc) are built daily, and it makes no sense to install them every day.

Second screen resolution Nvidia graphics in Ubuntu 14.04 https://askubuntu.com/questions/664012/second-screen-resolution-nvidia-graphics-in-ubuntu-14-04

After Ubuntu 16.04 release I am having more problems with the second screen. The solution below I wrote before doesn't work. It has worked for Ubuntu 14.04.

I am new to Linux. This is my third format in 3 months.

I have 2 screen with same resolutions. Both 1920x1080. Nvidia GPU drivers from X.org server.

The first screen resolution is OK. The second screen resolution is not going higher than 1024 like this code block from my system.

Results of xrandr:

ati@ati-ub:~$ xrandr
Screen 0: minimum 320 x 200, current 2944 x 1080, maximum 8192 x 8192
DVI-I-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 5
31mm x 299mm
   1920x1080     60.0*+
   1680x1050     60.0
   1600x900      60.0
   1280x1024     75.0      60.0
   1440x900      59.9
   1280x800      59.8
   1152x864      75.0
   1280x720      60.0
   1024x768      75.1      70.1      60.0
   832x624       74.6
   800x600       72.2      75.0      60.3      56.2
   640x480       75.0      72.8      66.7      60.0
   720x400       70.1
DVI-I-2 connected 1024x768+1920+0 (normal left inverted right x axis y axis) 0mm x 0
mm
   1024x768      60.0*
   800x600       60.3      56.2
   848x480       60.0
   640x480       59.9

As suggested I added more information about my system.

$ sudo lshw
...
       *-display
            description: VGA compatible controller
            product: G94 [GeForce 9600 GT]
            vendor: NVIDIA Corporation
            physical id: 0
            bus info: pci@0000:01:00.0
            version: a1
            width: 64 bits
            clock: 33MHz
            capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
            configuration: driver=nouveau latency=0
            resources: irq:27 memory:fd000000-fdffffff memory:d0000000-dfffffff memory:fa000000-fbffffff ioport:d800(size=128) memory:fea80000-feafffff

Full output:http://paste.ubuntu.com/12143351/

$ xrandr --verbose
...
DVI-I-2 connected 1024x768+1920+0 (0x6f) normal (normal left inverted right x axis y axis) 0mm x 0mm
    Identifier: 0x62
    Timestamp:  346406
    Subpixel:   unknown
    Gamma:      1.0:1.0:1.0
    Brightness: 1.0
    Clones:    
    CRTC:       1
    CRTCs:      0 1
    Transform:  1.000000 0.000000 0.000000
                0.000000 1.000000 0.000000
                0.000000 0.000000 1.000000
               filter: 
    dithering depth: auto 
        supported: auto, 6 bpc, 8 bpc
    dithering mode: auto 
        supported: auto, off, static 2x2, dynamic 2x2
    scaling mode: Full 
        supported: None, Full, Center, Full aspect
    color vibrance: 150 
        range: (0, 200)
    vibrant hue: 90 
        range: (0, 180)
    underscan vborder: 0 
        range: (0, 128)
    underscan hborder: 0 
        range: (0, 128)
    underscan: off 
        supported: auto, off, on
    subconnector: DVI-A 
        supported: Unknown, DVI-D, DVI-A
  1024x768 (0x6f)   65.0MHz -HSync -VSync *current
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock   48.4KHz
        v: height  768 start  771 end  777 total  806           clock   60.0Hz
  800x600 (0x73)   40.0MHz +HSync +VSync
        h: width   800 start  840 end  968 total 1056 skew    0 clock   37.9KHz
        v: height  600 start  601 end  605 total  628           clock   60.3Hz
  800x600 (0x74)   36.0MHz +HSync +VSync
        h: width   800 start  824 end  896 total 1024 skew    0 clock   35.2KHz
        v: height  600 start  601 end  603 total  625           clock   56.2Hz
  848x480 (0x7a)   33.8MHz +HSync +VSync
        h: width   848 start  864 end  976 total 1088 skew    0 clock   31.0KHz
        v: height  480 start  486 end  494 total  517           clock   60.0Hz
  640x480 (0x7b)   25.2MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock   31.5KHz
        v: height  480 start  489 end  492 total  525           clock   59.9Hz

Full output: http://paste.ubuntu.com/12143387/

$ lspci -v
...
01:00.0 VGA compatible controller: NVIDIA Corporation G94 [GeForce 9600 GT] (rev a1) (prog-if 00 [VGA controller])
    Subsystem: ZOTAC International (MCO) Ltd. Device 1043
    Flags: bus master, fast devsel, latency 0, IRQ 27
    Memory at fd000000 (32-bit, non-prefetchable) [size=16M]
    Memory at d0000000 (64-bit, prefetchable) [size=256M]
    Memory at fa000000 (64-bit, non-prefetchable) [size=32M]
    I/O ports at d800 [size=128]
    Expansion ROM at fea80000 [disabled] [size=512K]
    Capabilities: <access denied>
    Kernel driver in use: nouveau

Full output: http://paste.ubuntu.com/12143392/

$ cat /var/log/Xorg.0.log

http://paste.ubuntu.com/12143403/

cat /etc/X11/xorg.conf

No such file or directory. Probably i have to create one in recovery mode.

I created an xorg.conf file on root shell, but the name has an extension, so I this made something like... and it gives the link.

cat /etc/X11/xorg.conf.08222015

http://paste.ubuntu.com/12151283/

I am getting closer. I ran 3 commands like below.

cvt 1920 1080 60.00
xrandr --newmode "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
xrandr --addmode DVI-I-2 1920x1080_60.00

Results of xrandr --newmode <Modeline>:

atl@atl-ubu:~$ xrandr --newmode <Modeline>
bash: syntax error near unexpected token `newline'
atl@atl-ubu:~$ cvt 1920 1080
# 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
Modeline "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
atl@atl-ubu:~$ ^C
atl@atl-ubu:~$ xrandr --newmode "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
atl@atl-ubu:~$ xrandr --addmode DVI-I-2 1920x1080_60.00
atl@atl-ubu:~$ xrandr --addmode DVI-I-2 1920x1080_60.00
Ethernet lights not on when cable connected and connection not working https://askubuntu.com/questions/574433/ethernet-lights-not-on-when-cable-connected-and-connection-not-working

I have two OSs and the Ethernet lights on my computer don't turn on when the cable connected and I cannot connect to the internet. This is not a hardware problem, since my second OS connects to internet easily.

The output of lspci is:

00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b4)
00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b4)
00:1c.2 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 3 (rev b4)
00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b4)
00:1c.5 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 6 (rev b4)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation HM65 Express Chipset Family LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller (rev 04)
23:00.0 System peripheral: JMicron Technology Corp. SD/MMC Host Controller (rev 30)
23:00.2 SD Host controller: JMicron Technology Corp. Standard SD Host Controller (rev 30)
23:00.3 System peripheral: JMicron Technology Corp. MS Host Controller (rev 30)
24:00.0 Network controller: Qualcomm Atheros AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
25:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)

Output of lshw -C network:

 *-network               
       description: Wireless interface
       product: AR9285 Wireless Network Adapter (PCI-Express)
       vendor: Qualcomm Atheros
       physical id: 0
       bus info: pci@0000:24:00.0
       logical name: wlan0
       version: 01
       serial: 74:de:2b:02:0b:da
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=ath9k driverversion=3.18.2-031802-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11bgn
       resources: irq:19 memory:d4600000-d460ffff
  *-network
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:25:00.0
       logical name: eth0
       version: 06
       serial: 10:1f:74:e3:50:5a
       size: 10Mbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl_nic/rtl8168e-2.fw ip=192.168.0.100 latency=0 link=no multicast=yes port=MII speed=10Mbit/s
       resources: irq:29 ioport:2000(size=256) memory:d4404000-d4404fff memory:d4400000-d4403fff

Output of ifup eth0:

Internet Systems Consortium DHCP Client 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/10:1f:74:e3:50:5a
Sending on   LPF/eth0/10:1f:74:e3:50:5a
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3 (xid=0x78a08d03)
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8 (xid=0x78a08d03)
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 21 (xid=0x78a08d03)
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 19 (xid=0x78a08d03)
...
(infinite, continue for ever)

Output of ifconfig -a:

eth0      Link encap:Ethernet  HWaddr 10:1f:74:e3:50:5a  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:298 errors:0 dropped:0 overruns:0 frame:0
          TX packets:298 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:23133 (23.1 KB)  TX bytes:23133 (23.1 KB)

wlan0     Link encap:Ethernet  HWaddr 74:de:2b:02:0b:da  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

I have a /etc/network/interfaces file with the following content:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

Ouptut of cat /etc/resolv.conf:

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1

Output of route -n:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

I'm also try static IP address but still have the problem. Please help me, I really do not have any other idea!

UPDATE

When I run ifup eth0, the syslog output is:

Jan 16 22:42:34 DEMON kernel: [16477.474586] r8169 0000:25:00.0 eth0: link down
Jan 16 22:42:34 DEMON avahi-daemon[1167]: Joining mDNS multicast group on interface eth0.IPv4 with address 192.168.1.100.
Jan 16 22:42:34 DEMON avahi-daemon[1167]: New relevant interface eth0.IPv4 for mDNS.
Jan 16 22:42:34 DEMON avahi-daemon[1167]: Registering new address record for 192.168.1.100 on eth0.IPv4.
Jan 16 22:42:34 DEMON kernel: [16477.475316] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

So I tried Linux kernel version 14 and 18, but both have same problem. Any idea?

UPDATE 2

I tried to use a static IP address, so I changed interfaces:

auto lo
iface lo inet loopback

auto dsl-provider
iface dsl-provider inet ppp
pre-up /sbin/ifconfig eth1 up # line maintained by pppoeconf
dns-nameservers 8.8.8.8 8.8.4.4
provider dsl-provider

auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 8.8.8.8 8.8.4.4

Then ifconfig -a:

eth0      Link encap:Ethernet  HWaddr 10:1f:74:e3:50:5a  
          inet addr:192.168.1.100  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)


lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:439 errors:0 dropped:0 overruns:0 frame:0
          TX packets:439 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:34837 (34.8 KB)  TX bytes:34837 (34.8 KB)

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:37.254.165.125  P-t-P:37.254.128.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:7259 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8600 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:4900816 (4.9 MB)  TX bytes:1303955 (1.3 MB)

wlan0     Link encap:Ethernet  HWaddr 74:de:2b:02:0b:da  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

Output of sudo ethtool eth0:

Settings for eth0:
    Supported ports: [ TP MII ]
    Supported link modes:   10baseT/Half 10baseT/Full 
                            100baseT/Half 100baseT/Full 
                            1000baseT/Half 1000baseT/Full 
    Supported pause frame use: No
    Supports auto-negotiation: Yes
    Advertised link modes:  100baseT/Full 
    Advertised pause frame use: Symmetric Receive-only
    Advertised auto-negotiation: Yes
    Speed: 10Mb/s
    Duplex: Half
    Port: MII
    PHYAD: 0
    Transceiver: internal
    Auto-negotiation: on
    Supports Wake-on: pumbg
    Wake-on: d
    Current message level: 0x00000033 (51)
                   drv probe ifdown ifup
    Link detected: no

UPDATE 3

My laptop has a problem, so I connect the laptop to a PC (rather than laptop to ADSL modem) and for now every thing is OK. But how can I connect laptop to ADSL modem?

This problem is related to Ubuntu because I checked several time on Windows 8 and I have no problem.

I reset ADSL modem router but still have the same problem.

UPDATE 4

I can detect Ethernet for once and everything was OK, but when I restart still have the same problem. There should be a command to fix this issue.

va_getDriverName() failed with unknown https://askubuntu.com/questions/455861/va-getdrivername-failed-with-unknown

i upgraded to 14.04 and afterwards i got an issue with cpu usage when playing HD.

I checked the vainfo and this what i got back

ibva info: VA-API version 0.35.0
libva info: va_getDriverName() returns -1
libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
vaInitialize failed with error code -1 (unknown libva error),exit

I re install the driver sudo apt-get --reinstall install i965-va-driver but i steel got the same error.

Any thoghts

Nvidia 740M still not working after Bumblebee installation https://askubuntu.com/questions/366580/nvidia-740m-still-not-working-after-bumblebee-installation

First of all, I have checked a lot of similar topics, but I still can't get my laptop to use Nvidia 740M.

So first things first.
I have a laptop Asus X550V (i5-3230, 4gb RAM, Nvidia 740M + Intel HD4000). I installed Ubuntu 13.10 alongside Win8 (preinstalled) and both systems are running without problems. However, I have a problem with second graphics card (Nvidia 740M), as Ubuntu doesn't recognize it. I installed bumblebee with this tutorial, but I still get an error

Cannot access secondary GPU" error when trying to run ''optirun Steam'' in terminal.

Then I tried to do this:

[ERROR]Cannot access secondary GPU - error: [XORG] (EE) No devices detected. you need to edit the /etc/bumblebee/xorg.conf.nvidia (or /etc/bumblebee/xorg.conf.nouveau if using the noveau driver) and specify the correct BusID by following the instructions therein.

But with lspci / VGA I get only info about Intel 4000, but no Nvidia. When I type only lspci, I get the line for Nvidia 740M, but after I edit the config file I still get second card error.

Also, in /etc/bumblebee/xorg.conf.nvidia there wasn't BusID or anything similar, so I just added the whole line in device section.

As I said, I tried a lot of things to get it working, avoiding this forum (as I didn't want to bother people with some solutions possible), but alas!, I had to bother you.

If there is a need for some additional info, just say, no problem at all.

Thank you very much in advance. :)

How do I disable the touchpad while typing on Macbook? https://askubuntu.com/questions/317650/how-do-i-disable-the-touchpad-while-typing-on-macbook

I have a Macbook Pro 5.5 and I can't disable the touchpad while I'm typing. I have tried downloading gsynaptics manager or something like that, but still no dice!

This is driving me up the wall, please help.

Do I need to set a "location" for a printer in Ubuntu? https://askubuntu.com/questions/258745/do-i-need-to-set-a-location-for-a-printer-in-ubuntu

I am trying to install the printer onto my ubuntu system and after having installed the driver, it simply wont install. It shows me the actual printer, but I click print and nothing happens. Everything is filled out in the printer properties, but the "location" field. Is that where the printer's IP address goes?

How can I add text and images (for example, a signature) to a PDF? https://askubuntu.com/questions/87419/how-can-i-add-text-and-images-for-example-a-signature-to-a-pdf

On occasion I receive forms to fill in as PDFs intended for printing (these are not true PDF forms, they do not contain fields). I would like to type onto them, and perhaps add a scanned copy of my signature. This way I could just email them back. Is this possible?

How to align twinview monitors with different resolutions and prevent mouse disappearing into dead areas? https://askubuntu.com/questions/48922/how-to-align-twinview-monitors-with-different-resolutions-and-prevent-mouse-disa

I'm using two monitors of different brands and resolutions with NVIDIA TwinView, which works well enough, but one thing that's getting to me is how the mouse can move off the edge of the visible screen space below the left-hand screen and above the right-hand screen (see screenshot).

<img src="https://i.sstatic.net/3RHnb.png"

It makes it much more difficult to hit buttons at the bottom/top of each screen, since the cursor just disappears off the edge. Is there a way of changing this behavior?