How to automount usb after kiosk mode enable in raspberry Pi 4 with buster os? - usb

Problem with Kiosk mode and USB access.
I have installed buster on raspberry Pi 4. And for open chromiam browser at startup, I enabled kiosk mode.
Now I have a problem that, it does not mount USB device (flash drives) at /media/pi
Any help and suggestions would be very helpful!

Raspbian Buster lite (without GUI) doesn't mount USB devices automatically out of the box.
There is a software called "usbmount" which adds this functionality.
You can install it using
sudo apt-get install usbmount
Then reboot the Pi
sudo reboot now
http://www.howtoeverything.net/linux/raspberry-pi/automount-external-hard-disks-raspberry-pi

I'm using Buster Lite and ran into a problem with installing usbmount. The error I got was "unable to locate package usbmount". I found the solution, and I am append my solution to this thread since this thread shows up on some search-engines pretty high up.
The solution I used was to clone the github repo from https://github.com/rbrito/usbmount/ and build it (instructions below is partially from the readme)
git clone https://github.com/rbrito/usbmount.git
cd usbmount
sudo apt-get update && sudo apt-get install -y debhelper build-essential exfat-fuse exfat-utils
sudo dpkg-buildpackage -us -uc -b
cd ..
sudo dpkg -i usbmount_0.0.24_all.deb
Additionally, use
sudo nano /etc/usbmount/usbmount.conf
to add exfat to the list of file-systems
save and reboot

Related

how to install python-gtk2 debian arm64 on kali?

I downloaded amd64 but it doesn't work for my system and I can't find how to download arm64
And then how to start Zenmap?
I am using mac air m2
And I'm trying to use Zenmap on Kali Linux.
So I
apt search zenmap
sudo apt install zenmap. -y
zenmap start
I entered the commands in order
And got the error below
Could not import the zenmapGUI.App module: 'No module named gtk'
If you installed Zenmap in another directory, you may have to add the modules directory to the PYTHONPATH enviroment variable.
So I entered the command below to download python-gtk2 debian
sudo apt update
sudo apt-get install alien dpkg-dev debhelper build-essential
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
chmod 777 python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
dpkg -I python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
I ran the last command above and got an error
The architecture of the package (amd64) does not match the system (arm64)
I got the error above, so I tried changing amd to arm, but it didn't connect.
How to download arm64 package?
Yes, it means that you need to find an arm package of the python-gtk.
I'm here with the same issue. M1 chip, Parrot in a VM and trying to get zenmap to work. :(

Woeusb don't showing in applications Debian 10 Gnome

I am installed woeusb along this instruction https://github.com/slacka/WoeUSB.
git clone https://github.com/slacka/WoeUSB.git
./setup-development-environment.bash
sudo apt-get install devscripts equivs gdebi-core
mk-build-deps
sudo gdebi woeusb-build-deps_3.3.1-1-g7171bff_all.deb
This program didn't showing in applications, search don't finded it.Then i am installed from snap, don't finded too. What's a problem?

Can't install libnuma-dev on raspbian

sudo apt-get install libnuma-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libnuma-dev
This is problem what I have.
I tried sudo apt-get update and sudo apt-get upgrade already.
Here is my source.list
cat /etc/apt/sources.list
deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
#Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
My device is 'raspberry pi 3 B+' and OS is raspbian9.
My device is raspberry pi CM3 lite and OS is raspbian 9 too. I encountered this problem when I want to compile the rt-tests tools from source code. But I successfully compiled the tools without install "libnuma-dev" library. Hope it helps for you and any other one who maybe want to compile the rt-tests tools acoording to the official wiki.

Can not make ubuntu virtual machine fullscreen

i am using windows 8.1 on a 15 inch laptop. I have installed ubuntu 14.04.2 LTS on virtual box and have also installed the guest addition.But still i am not getting the "auto-resize guest display "or "seamless mode" option in the view menu?
From the menu bar,
Click on "Devices." You will see "Insert Guest Additions CD Image" option there.
"Insert Guest Additions CD Image" inserts a disk image on a virtual CD on your machine.
This virtual CD usually starts automatically with autorun, but if not, just go to "Computer" and launch the "VboxWindowsAdditions" exe file on the CD and follow the installation
sudo apt update && sudo apt upgrade
sudo apt install open-vm-tools open-vm-tools-desktop
Here below steps works for me ---
Upgraded linux-image and headers sudo apt-get install linux-image-3.11.0-15-generic linux-headers-3.11.0-15-generic (Perhaps virtual would work just as well as the generic one.):
Installed linux-image-extras with the hyperv-drivers:
sudo apt-get install linux-image-extra-virtual
Set video mode (Pretty much what you already did):
Set GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1680x1050" in /etc/default/grub.
Update grub: sudo update-grub
Reboot
refer below link for more detail https://askubuntu.com/questions/384602/ubuntu-hyper-v-guest-display-resolution
First, type the following in the terminal:
sudo apt-get install gcc perl make
After this, you can follow these steps:
Click on "Devices." You will see "Insert Guest Additions CD Image" option there.
"After clicking a Dialog Box opens up, Click on Run.
After it is installed, restart the VM.
I was stuck with the same problem. I did it manually from the ubuntu terminal, here are the steps:-
1 cd /media
2 ls
3 mkdir device cdrom1
4 sudo mkdir device cdrom1
5 ls
6 sudo mount /dev/cdrom /media/cdrom1
7 cd cdrom1/
8 ls
9 sudo ./VBoxLinuxAdditions.run
10 sudo reboot
This worked for me.

Dropbox cannot work on my Ubuntu 13.10 laptop

Dropbox is not working on my laptop ubuntu 13.10, it is keep saying connecting and the Dropbox icon on the menu bar is grey.
I tried to install Dropbox with the following ways and all failed.
1) sudo apt-get install nautilus-dropbox
2) install from Ubuntu Software Center
3) downloads dropbox .deb file from dropbox offical website
Finally, I re-install my laptop with Ubuntu 12.04 LTS, and tried with 1) I mentioned above, and it works.
Is there anyone know why it is not working?
Add Dropbox’s repository key
sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 5044912E
Add Dropbox’s repository
sudo add-apt-repository "deb http://linux.dropbox.com/ubuntu saucy main"
update and install Dropbox
sudo apt-get update && sudo apt-get install nautilus-dropbox
When prompted with the screen, click Next.
Click Start Dropbox to continue.
You can see that Saucy is available at http://linux.dropbox.com/ubuntu/dists/ so it should be working.
These two lines will fix your problem:
sudo rm -rf /var/lib/dropbox/.dropbox-dist
dropbox start -i