Pokazywanie postów oznaczonych etykietą debian. Pokaż wszystkie posty
Pokazywanie postów oznaczonych etykietą debian. Pokaż wszystkie posty

niedziela, 9 kwietnia 2017

How to create a new normal user with sudo permission

How to create a new normal user with sudo permission?

 This procedure can be used in any Linux distro to add a normal user. That includes ubuntu, Linux mint, or even Centos

useradd -m username

# -m creates a home directory for the user.
# for more config option while adding user read
man useradd
## :)
Set password using passwd in order to login

passwd username


Add user to sudores so that we can use “sudo” to do administrative actions.

usermod -a -G sudo username


The option -a means to add and ‘-G sudo’ means to add the user to the sudo group. If you want to know more about the usermod command, issue man usermod command to know more about usermod

poniedziałek, 12 września 2016

Error! Could not locate dkms . conf file. File: does not exist.

Konfigurowanie pakietu linux-image-3.16.0-4-amd64 (3.16.36-1+deb8u1) ...
/etc/kernel/postinst.d/dkms: Error! Could not locate dkms.conf file.
File: does not exist.
 This problem cause old version of virtualbox in /var/lib/dkms
remove virtualbox, clear dkms folder of old virtualbox folder than install virtualbox again
  sudo apt-get remove virtualbox  sudo rm -rf /var/lib/dkms/vboxhost  sudo apt-get install virtualbox
 Basically you should check the timestamps of any directories under /var/lib/dkms that start with either 'vbox' or 'virtual'. If they're fairly old (e.g. > 1 year) then there's a reasonable chance that they might be cruft left over from an old version of VirtualBox. Deciding whether to delete them or not is at your discretion.

piątek, 15 lipca 2016

Google Earth under Debian

To avoid unnecessary time loos witch downloading and ruining google earth under Debian
cd ~;sudo apt-get install googleearth-package libfreeimage3 
sudo apt get install  libcurl3:i386 libraw10:amd64 libidn11:i386 librtmp1:i386 libssh2-1:i386
 cd ~; make-googleearth-package
 -----------------------------
Success!
You can now install the package with e.g:
sudo dpkg -i googleearth_6.0.3.2197+1.2.0-1_amd64.deb

~$ sudo make-googleearth-package 
Refusing to run as root; use --force to override


 linux debian install Googleearth-package as it says


sudo apt-get install googleearth-package
sudo aptitude install  libfreeimage3 libcurl3:i386 libidn11:i386 librtmp1:i386 libssh2-1:i386  

Narzędzie do automatycznej budowy pakietu Google Earth do Debiana

Google Earth jest przeglądarką naszej planety w 3D, która umożliwia interaktywną nawigację po zdjęciach satelitarnych, mapach, i tak dalej.
Oprogramowanie Google Earth jest dostępne do GNU/Linuksa ze strony internetowej producenta, lecz jest to niewolne oprogramowanie, nie nadające się do dystrybucji. Nie integruje się dobrze z systemem Debian.
To narzędzie pozwala budować własny pakiet Google Earth do Debiana. Samo opakowanie jest Wolnym Oprogramowaniem, ale program Google Earth jest regulowany przez posiadacza praw autorskich (Google), więc mogą istnieć ograniczenia co do dysponowania ostatecznym pakietem (tj. redystrybucji, itp.). Googleearth-package po prostu pomaga w tworzeniu pakietu - użytkownik jest odpowiedzialny za rozsądne korzystanie z ostatecznego pakietu.
NAME
       make-googleearth-package - builds a googleearth Debian package
SYNOPSIS
       make-googleearth-package [options]
DESCRIPTION
       Creates a Debian package from the Google Earth GNU/Linux installer.  By default, will look for the installer in the current directory.  If  not found it will be downloaded automatically.
OPTIONS
       --fullname name Use name as full name in Maintainer field
       --email email Use email as email address in Maintainer field
       --file file Use file instead of GoogleEarthLinux.bin
       --download Always try to download a new version
       --cleanup Delete the installer after building successfully
       --quiet Suppress all intermediate build output
       --force Attempt to build an unsupported version
                                4 October 2014     make-googleearth-package(1)

Google Earth under Debiana

To avoid unnecessary time loos witch downloading and ruining google earth under Debian
cd ~;sudo apt-get install googleearth-package libfreeimage3 
sudo apt get install  libcurl3:i386 libraw10:amd64 libidn11:i386 librtmp1:i386 libssh2-1:i386
 cd ~; make-googleearth-package
 -----------------------------
Success!
You can now install the package with e.g:
sudo dpkg -i googleearth_6.0.3.2197+1.2.0-1_amd64.deb

~$ sudo make-googleearth-package 
Refusing to run as root; use --force to override


 linux debian install Googleearth-package as it says


sudo apt-get install googleearth-package
sudo aptitude install  libfreeimage3 libcurl3:i386 libidn11:i386 librtmp1:i386 libssh2-1:i386  

Narzędzie do automatycznej budowy pakietu Google Earth do Debiana

Google Earth jest przeglądarką naszej planety w 3D, która umożliwia interaktywną nawigację po zdjęciach satelitarnych, mapach, i tak dalej.
Oprogramowanie Google Earth jest dostępne do GNU/Linuksa ze strony internetowej producenta, lecz jest to niewolne oprogramowanie, nie nadające się do dystrybucji. Nie integruje się dobrze z systemem Debian.
To narzędzie pozwala budować własny pakiet Google Earth do Debiana. Samo opakowanie jest Wolnym Oprogramowaniem, ale program Google Earth jest regulowany przez posiadacza praw autorskich (Google), więc mogą istnieć ograniczenia co do dysponowania ostatecznym pakietem (tj. redystrybucji, itp.). Googleearth-package po prostu pomaga w tworzeniu pakietu - użytkownik jest odpowiedzialny za rozsądne korzystanie z ostatecznego pakietu.
NAME
       make-googleearth-package - builds a googleearth Debian package
SYNOPSIS
       make-googleearth-package [options]
DESCRIPTION
       Creates a Debian package from the Google Earth GNU/Linux installer.  By default, will look for the installer in the current directory.  If  not found it will be downloaded automatically.
OPTIONS
       --fullname name Use name as full name in Maintainer field
       --email email Use email as email address in Maintainer field
       --file file Use file instead of GoogleEarthLinux.bin
       --download Always try to download a new version
       --cleanup Delete the installer after building successfully
       --quiet Suppress all intermediate build output
       --force Attempt to build an unsupported version
                                4 October 2014     make-googleearth-package(1)

piątek, 18 marca 2016

VBoxManage: error: Cannot open the raw disk '/dev/sdb': VERR_ACCESS_DENIED

user@host:~$ vboxmanage internalcommands createrawvmdk -filename ~/usb.vmdk -rawdisk /dev/sdb
VBoxManage: error: Cannot open the raw disk '/dev/sdb': VERR_ACCESS_DENIED
VBoxManage: error: The raw disk vmdk file was not created
Ok co się stało?
VERR_ACCESS_DENIED przy open the raw disk '/dev/sdb'

Przyczyny?

1. W użyciu
2. Złe uprawnienia odczytu /dev/sdb

Rozwiązanie

1. Sprawdź czy jest zamontowany /dev/sdb
cat /proc/mounts | grep "sdb"
cat /proc/self/mounts | grep "sdb"
mount -l | grep "sdb"

unmount /dev/sdb jeśli potrzeba

2. chmod 777 /dev/sdb
3. Bez pierdolenia

sudo vboxmanage internalcommands createrawvmdk -filename ~/usb.vmdk -rawdisk /dev/sdb
RAW host disk access VMDK file /home/user/usb.vmdk created successfully.
chown -R user:user /home/user/usb.vmdk
chmod 777 /home/user/usb.vmdk

Cześć :)

wtorek, 26 stycznia 2016

Błąd: użytkownik nie występuje w pliku sudoers. Ten incydent zostanie zgłoszony.

imagescan-bundle-debian-8-1.1.4.x64.deb$ ls
core  install.sh  plugins  README.rst
imagescan-bundle-debian-8-1.1.4.x64.deb$ ./install.sh 

Ufamy, że lokalny administrator udzielił odpowiedniego szkolenia.
Zwykle sprowadza się ono do tych trzech rzeczy:

    1) należy respektować prywatność innych,
    2) należy myśleć przed pisaniem,
    3) z dużą władzą wiąże się duża odpowiedzialność.

[sudo] password for :
 nie występuje w pliku sudoers. Ten incydent zostanie zgłoszony.


No to 
Terminal #root

echo -n "yhy ALL=(ALL:ALL) ALL " >> /etc/sudores