Ubuntu HowTo: colord-sane: io/hpmud/musb.c 2101: Invalid usb_open: Permission denied

Original Source Link

I get the following errors all in a row in my journalctl after booting:

colord-sane[4901]: io/hpmud/musb.c 2101: Invalid usb_open: Permission denied
colord-sane[4901]: io/hpmud/musb.c 2101: Invalid usb_open: Permission denied
colord-sane[4901]: io/hpmud/musb.c 2101: Invalid usb_open: Permission denied
colord-sane[4901]: io/hpmud/musb.c 2101: Invalid usb_open: Permission denied
colord-sane[4901]: io/hpmud/musb.c 2101: Invalid usb_open: Permission denied

I don’t know if it’s related to this post, but the permission denied issue looks very similar. I tried going through those steps looking for parallels between saned and colord-sane but wasn’t sure what user to add to which file, or what group it needed to be added to.

I opened lib/systemd/system/colord.service and noticed it had User=colord.

So I tried adding the colord user to the lp group:

sudo usermod -a -G lp colord

And, after a reboot, the error is gone! I hope this helps if you have a similar error.

Tagged : / / /

Ubuntu HowTo: How to run lubuntu minimal from usb with persistence?

Original Source Link

The ubuntu documentation gives instructions on how to install lubuntu minimal.

Is there any documentation on Adding Persistence to a Lubuntu Minimal “Live” USB Drive? Just like this for Kali Linux?

A netboot (minimal) .iso lacks the live “Try Ubuntu” environment that you would change and save. It’s simply a bare-bones installer.

If you wish to customize the netboot .iso, that’s very different. It involves preseeding or unpacking/repacking the .iso, and has nothing to do with persistence.

The ubuntu documentation gives instructions on how to install lubuntu minimal.

This is completely unrelated to the Live USB persistence. The instructions on that page are for installing ubuntu from mini.iso. This mini.iso contains only installer and not Live (Try Ubuntu) option. Hence it is not possible to run minimal lubuntu.


Adding Persistence to a Lubuntu Minimal “Live” USB Drive, just like Kali.

In case of Kali, it was possible to build minimal live USB with persistence using kali-linux-light-2019.1-amd64.iso. The light version has far fewer packages. The idea is to run a lighter resource demanding environment whereby you can download the tools individually or by groups at a time as you need them. Of course, you could go right ahead and download them all and convert light to full.

In case of lubuntu it is not possible because Ubuntu light ISO builds are not available. Probably because there’s no much advantage of maintaining such builds. The kali project also discontinued maintaining such separate light ISO builds.


The solution to build live USB with Minimal Lubuntu and persistence can be found here – Linux From Scratch. It will involve building custom build of ubuntu ISO then putting it on USB using Rufus with persistence enabled. Here’s the step-by-step article to follow after we build light ISO.

PS: Answer is extracted from the discussion on comment thread with @user535733 and @karel

Tagged : / / / /

Ubuntu HowTo: Ubuntu 16.04 installation using serial console – unreadable characters

Original Source Link

I’m trying to install Ubuntu on an appliance that does not have ports for a display (i.e. VGA, HDMI, DVI). I have made a bootable USB stick using the Ubuntu ISO using Unetbootin and edited three files (syslinux.cfg, text.cfg, isolinux.cfg) using the description found here: https://github.com/ynkjm/ubuntu-serial-install

After all the initial text while booting it bring me to a menu, this menu however is unreadable.

┌───────────────────────┤ [!!] S␊┌␊ ▒ ┌▒┼±┤▒±␊ ├────────────────────────┐
│ │
│ C␤⎺⎺⎽␊ ├␤␊ ┌▒┼±┤▒±␊ ├⎺ ␉␊ ┤⎽␊␍ °⎺⎼ ├␤␊ ␋┼⎽├▒┌┌▒├␋⎺┼ ⎻⎼⎺␌␊⎽⎽ T␤␊ │
│ ⎽␊┌␊␌├␊␍ ┌▒┼±┤▒±␊ ┬␋┌┌ ▒┌⎽⎺ ␉␊ ├␤␊ ␍␊°▒├ ┌▒┼±┤▒±␊ °⎺⎼ ├␤␊ ␋┼⎽├▒┌┌␊␍ │
│ ⎽≤⎽├␊└. │;3H│ │

│ L▒┼±┤▒±␊: │
│ │
C │
│ E┼±┌␋⎽␤ │6;3H│ │

│ │
│ │

└⎺┴␊⎽; ⎽␊┌␊␌├⎽;

Is there anyone who knows what’s wrong and how it can be solved?

Hans

I solved this by using minicom. See, http://pbxbook.com/other/mac-tty.html#minicom

I had the same issue installing ubuntu on my pandaboard ES. I was not able to get the mac terminal nor screen to talk to the ncurses installer.

I’d love a solution that does not require me to install more software on my mac. But for now minicom works.

Minicom fixed it for me as well.

For me another workaround was to disconnect the usb/serial adapter, restart screen, and hit Control-l to force a redraw on each and every dialog window (this is quite labour intensive and time consuming obviously).

Tagged : / / / /

Linux HowTo: When installing Kali Linux, Windows 10 suddenly became unbootable

Original Source Link

Here’s the story about the problem…
Yesterday i was Kali Linux when the setup told me to reboot. I clicked OK on my Windows 10, when suddenly after restart, my dual booted Windows 7 booted up. Windows Boot Manager normally shows up, so i panic a bit. So I checked my files, and i was relieved to see they were there. Windows too, as the Linux setup says it could delete and replace files for the operating system. I haven’t made a partition too, i’ll tell you more later. So I thought to myself and said “Dangit, i can’t do it, so I want to go back to Windows 10 and play games.” Then i restarted the PC, and saw it automatically just loads to the Windows 7.

Now see, I don’t mind Windows 7. In fact, i love it more than Windows 10. But if I choose to stay at Windows 7, i’m actually sacrificing my games. Windows 7 weirdly doesn’t detect my NVIDIA GeForce 120, so I can’t play any games or programs. Plus, my monitor runs on VGA GPU now, so monitor now updates so slow and so distorted I can’t enjoy YouTube without this problem.

Then i read some articles, but i hate those types that says “dOwNlOaD tHiS sOfTwArE! iT cAn FiX yOuR pC!” because I want ways, not software. I tried one and it just wasted my time only to ask for premium. No, i don’t wanna pay.

I checked the BIOS already, useless. Didn’t detect it. All it detected was my Windows 7.

If you don’t wanna hear my story then here’s the technical stuff. I installed Kali Linux, and now my Windows 10 won’t get detected. All my files are still there, even the Windows. Seems untouched. When i was installing Kali Linux, my dumb brain didn’t make a partition, so i think it’s about that or my OS is broken. BIOS and Boot Manager only detects my Windows 7 which is on the same disk as my Windows 10 but different partition. Now it only detects the full disk and it only brings me to my Windows 7. It shows up as a SATA device. I tried defaulting my BIOS, i tried booting it from Windows 7 (wasn’t detected) and i even tried the softwares i despise. All of em detect a “problem” but needs money. I will call my relative (retired computer teacher but still insists on helping my technical problems) after the pandemic and ONLY as a last resort. I wish someone would help me…

Specs of my PC if you need it:

RAM : 2 GB

DISK SPACE : 465 GB

GPU : NVIDIA GeForce 120 (undetected by Windows 7)

CPU : Intel(R) Core(TM) i3-2100 CPU @ 3.10 Ghz

Disk : TOSHIBA DT01ACA050 ATA Device

P.S : Even if I sound like i know my tech stuff, I get nervous if it sounds like “One wrong step and you will lose your files.”. So please try to make it simple? I’ll do anything to have my Windows 10 back…

I suppose you could have install kali in VMware. Running Kali on your Winodw might crash your system or make you loose files. You know Kali is quite flexible as an OS.

My Recommendation
I’d recommend, you remove the hardisk and format the system, as you said you don’t wanna lost your gaming files and you are also a techy. Just backup the files first since it happened, you just have to try the formating option.

Tagged : / / / /

Ubuntu HowTo: Why do I randomly have no disk in “Other Locations” of nautilus on some boot?

Original Source Link

I have several physical data disks on my computer, and they usually show up in the “Other Locations” pannel of Nautilus:

Normal display of Other Locations

But sometimes, on some boot, and without any apparent reason, I might have no disk here. Instead, I see, on the left pannel, the uid of the physical disk where the system is (c690e…), a floppy0 support (I have no floppy drive), and the two partitions of that physical system disk (“perso”, which is mounted usually automatically on /mnt/perso/ and the “Racine du système”, which is the “system root”)

Buggy behavior

And in the taskbar, I don’t have the “SSD” icon I usually have, but instead, I get two icons that look kind of like “CD drives” corresponding to the “perso” and “racine du système” partitions

taskbar

Do you have any idea why this behavior occur, and how I can avoid that? or maybe, at least, fix that without rebooting the system?

uname -rms returns Linux 5.4.0-33-generic x86_64

lsb_release -a returns No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04 LTS Release: 20.04 Codename: focal

Tell me (the commands) if you need more infos

Tagged : / /

Making Game: When installing Kali Linux, Windows 10 suddenly became unbootable

Original Source Link

Here’s the story about the problem…
Yesterday i was Kali Linux when the setup told me to reboot. I clicked OK on my Windows 10, when suddenly after restart, my dual booted Windows 7 booted up. Windows Boot Manager normally shows up, so i panic a bit. So I checked my files, and i was relieved to see they were there. Windows too, as the Linux setup says it could delete and replace files for the operating system. I haven’t made a partition too, i’ll tell you more later. So I thought to myself and said “Dangit, i can’t do it, so I want to go back to Windows 10 and play games.” Then i restarted the PC, and saw it automatically just loads to the Windows 7.

Now see, I don’t mind Windows 7. In fact, i love it more than Windows 10. But if I choose to stay at Windows 7, i’m actually sacrificing my games. Windows 7 weirdly doesn’t detect my NVIDIA GeForce 120, so I can’t play any games or programs. Plus, my monitor runs on VGA GPU now, so monitor now updates so slow and so distorted I can’t enjoy YouTube without this problem.

Then i read some articles, but i hate those types that says “dOwNlOaD tHiS sOfTwArE! iT cAn FiX yOuR pC!” because I want ways, not software. I tried one and it just wasted my time only to ask for premium. No, i don’t wanna pay.

I checked the BIOS already, useless. Didn’t detect it. All it detected was my Windows 7.

If you don’t wanna hear my story then here’s the technical stuff. I installed Kali Linux, and now my Windows 10 won’t get detected. All my files are still there, even the Windows. Seems untouched. When i was installing Kali Linux, my dumb brain didn’t make a partition, so i think it’s about that or my OS is broken. BIOS and Boot Manager only detects my Windows 7 which is on the same disk as my Windows 10 but different partition. Now it only detects the full disk and it only brings me to my Windows 7. It shows up as a SATA device. I tried defaulting my BIOS, i tried booting it from Windows 7 (wasn’t detected) and i even tried the softwares i despise. All of em detect a “problem” but needs money. I will call my relative (retired computer teacher but still insists on helping my technical problems) after the pandemic and ONLY as a last resort. I wish someone would help me…

Specs of my PC if you need it:

RAM : 2 GB

DISK SPACE : 465 GB

GPU : NVIDIA GeForce 120 (undetected by Windows 7)

CPU : Intel(R) Core(TM) i3-2100 CPU @ 3.10 Ghz

Disk : TOSHIBA DT01ACA050 ATA Device

P.S : Even if I sound like i know my tech stuff, I get nervous if it sounds like “One wrong step and you will lose your files.”. So please try to make it simple? I’ll do anything to have my Windows 10 back…

I suppose you could have install kali in VMware. Running Kali on your Winodw might crash your system or make you loose files. You know Kali is quite flexible as an OS.

My Recommendation
I’d recommend, you remove the hardisk and format the system, as you said you don’t wanna lost your gaming files and you are also a techy. Just backup the files first since it happened, you just have to try the formating option.

Tagged : / / / /

Linux HowTo: Install Server 2008 to 3TB drive on Vostro 260

Original Source Link

It is possible to install Windows Server 2008 R2 on a 3TB GPT hard drive on a Dell Vostro 260?

I know that hard drives must be GPT to recognize over 2TB so I formatted it GPT thinking I did everything correctly.

I have two 500GB partitions and the rest (1794MB) unallocated.

I wish to install 2008 to the first 500GB partition, keep the second partition for Linux (I may or may not install depending on how 2008 is) and partition the rest for data later.

But when I went to install to my partition it says it cannot be installed to GPT.

I tried to use Rufus to make a USB device but if I select GPT and use my ISO I get an error, do you need a special version of Windows for GPT?

error

I can format the flash drive as NTFS and boot it, but I get the same problem it telling me I cannot install to a GPT partition style drive.

While researching about UEFI I found this BIOS mod and installed it.

https://www.bios-mods.com/forum/Thread-Dell-Insprion-620-Vostro-260-AHCI-request?page=2

Rufus Config

I was able to install Linux to this hard drive and boot from it.

It told me to make a biosboot partition and that there wasn’t enough space to install grub (Guess 3TB isn’t enough) so I installed the bootloader to my current Windows 7 boot hard drive.

LinuxInstallGPT

I still would like to install Windows 2008 but I am not sure if that is possible. But I know that any posts that claim it’s a hardware limitation and not Windows are wrong.

EDIT: May 30, 2020: I was thinking about this question today and still never fully looked into this. Ironic today I seen this question pop up whose answers may contain beneficial information: Can a bios based windows 10 system access gpt disk drive?

Tagged : / / / /

Making Game: Install Server 2008 to 3TB drive on Vostro 260

Original Source Link

It is possible to install Windows Server 2008 R2 on a 3TB GPT hard drive on a Dell Vostro 260?

I know that hard drives must be GPT to recognize over 2TB so I formatted it GPT thinking I did everything correctly.

I have two 500GB partitions and the rest (1794MB) unallocated.

I wish to install 2008 to the first 500GB partition, keep the second partition for Linux (I may or may not install depending on how 2008 is) and partition the rest for data later.

But when I went to install to my partition it says it cannot be installed to GPT.

I tried to use Rufus to make a USB device but if I select GPT and use my ISO I get an error, do you need a special version of Windows for GPT?

error

I can format the flash drive as NTFS and boot it, but I get the same problem it telling me I cannot install to a GPT partition style drive.

While researching about UEFI I found this BIOS mod and installed it.

https://www.bios-mods.com/forum/Thread-Dell-Insprion-620-Vostro-260-AHCI-request?page=2

Rufus Config

I was able to install Linux to this hard drive and boot from it.

It told me to make a biosboot partition and that there wasn’t enough space to install grub (Guess 3TB isn’t enough) so I installed the bootloader to my current Windows 7 boot hard drive.

LinuxInstallGPT

I still would like to install Windows 2008 but I am not sure if that is possible. But I know that any posts that claim it’s a hardware limitation and not Windows are wrong.

EDIT: May 30, 2020: I was thinking about this question today and still never fully looked into this. Ironic today I seen this question pop up whose answers may contain beneficial information: Can a bios based windows 10 system access gpt disk drive?

Tagged : / / / /

Ubuntu HowTo: cant boot ubuntu server 18.04, ram exhausted?

Original Source Link

so i have ubuntu server 18.04, when i try to boot, alot of “depends” fail to start thus i cant boot the server

going to recovery mode i saw one line says memory exhausted, in recovery mode i use free -m and top i see really my memory is stuck at 7.8GB

top output:

KiB Mem : 8040724 total, 135060 free, 7873212 used, 32452 buff/cache

last thing i was doing is importing something to PostgreSQL, and it was stuck at around this much, even after finishing the import, so i restarted and never made it back

btw tried

#sync; echo 1 > /proc/sys/vm/drop_caches
#sync; echo 2 > /proc/sys/vm/drop_caches
#sync; echo 3 > /proc/sys/vm/drop_caches

still same problem

well, i didnt figure out what i did wrong, so i reinstalled the server. and while doing the steps again i noticed where i did go wrong.
i was ‘following’ the steps of this guide: How to Set Up OpenStreetMap Tile Server on Ubuntu 18.04

at one step i should edit /etc/sysctl.conf

sudo nano /etc/sysctl.conf

and add certain value (depending on my setup) to vm.nr_hugepages, for guide it was:

vm.nr_hugepages = 7950

They use 7950 because they have a lot of virtual memory?. so this value is fetal for my setup!

Tagged : / / /