Page 1 of 1

Ubuntu dev environment minimal setup

Posted: Thu Nov 15, 2018 11:30 pm
by Boss

Code: Select all

sudo apt-get install checkinstall build-essential automake autoconf libtool pkg-config

How to hide a(n) (NTFS) partition from ubuntu

Posted: Thu Nov 15, 2018 11:34 pm
by Boss
I'm going to be hiding sda1 and sdb2 in the next steps, but you should substitute your partition names instead.

Create a file named 99-hide-disks.rules using your favorite editor. This file is where we put the rule to tell the Linux kernel to hide the device. I won’t explain why the file name sounds funny. That will be the subject for another post here if I won’t feel too lazy explaining it.

Put the text below in the file you just created, but make sure to change the device name that applies to your case. On mine I want to hide sda1 and sdb2.

The general format is (this is case sensitive):

Code: Select all

    KERNEL=="device name", ENV{UDISKS_IGNORE}="1"
In my case, I will write the following in 99-hide-disks.rules:

Code: Select all

    KERNEL=="sda1", ENV{UDISKS_IGNORE}="1"
    KERNEL=="sdb2", ENV{UDISKS_IGNORE}="1"
Don’t forget to save when you’re done.

Now copy the file to /etc/udev/rules.d/ with the command,

Code: Select all

    sudo cp 99-hide-disks.rules  /etc/udev/rules.d/
Now we’re done. This will have been noticed immediately by the system because udev (the device manage for Linux) looks for changes to the rules folder through inotify (this is a file system event notifier service). However it will not be applied until you reboot. Supposedly you can use the udevadm command to trigger the new rules, but I haven’t really tested it yet. Reboot your Ubuntu and notice how the partitions are no longer visible in Nautilus.

https://askubuntu.com/questions/124094/ ... rom-ubuntu

Screenlets

Posted: Thu Nov 15, 2018 11:34 pm
by Boss
bash to install screenlets in bionic (For clean installation. Not tested on upgrades from previous versions to 18.04):

Code: Select all

#!/bin/bash
sudo dpkg -l python-wnck >/dev/null 2>&1
if [ $? == 0 ]; then
  echo "OK"
else
  echo "Install python-wnck"
  sudo apt -y install libwnck22
  wget -c http://archive.ubuntu.com/ubuntu/pool/universe/g/gnome-python-desktop/python-wnck_2.32.0+dfsg-4_amd64.deb
  sudo dpkg -i python-wnck_2.32.0+dfsg-4_amd64.deb
  sudo apt --fix-broken -y install
fi
sudo dpkg -l python-gnomekeyring >/dev/null 2>&1
if [ $? == 0 ]; then
  echo "OK"
else
  echo "Install python-gnomekeyring"
  wget -c http://archive.ubuntu.com/ubuntu/pool/universe/g/gnome-python-desktop/python-gnomekeyring_2.32.0+dfsg-4_amd64.deb
  sudo dpkg -i python-gnomekeyring_2.32.0+dfsg-4_amd64.deb
  sudo apt --fix-broken -y install
fi
sudo add-apt-repository -y ppa:screenlets/ppa
sudo sed -i 's/bionic/xenial/g' /etc/apt/sources.list.d/screenlets-ubuntu-ppa-bionic.list
sudo apt update && sudo apt -y install screenlets screenlets-pack-all
https://askubuntu.com/questions/1037111 ... g-to-18-04