Skip to main content

Posts

Showing posts with the label Debian

Add hard drive into Linux Mint 21.1 Vera/Ubuntu/Debian

Add hard drive into Linux Mint 21.1 Vera/Ubuntu/Debian This is a condensed version on how to add hard disk into Linux Mint/Ubuntu/Debian. First check hard drives in the system, like so: $: sudo lshw -C disk It should show (partial data only) like this: *-disk:1 description: ATA Disk product: WDC WD3200AAKX-0 vendor: Western Digital physical id: 1 bus info: scsi@1:0.0.0 logical name: /dev/sdb version: 1H15 serial: WD-WMC2E0871450 size: 298GiB (320GB) capabilities: partitioned partitioned:dos configuration: ansiversion=5 logicalsectorsize=512 sectorsize=512 signature=e32ff1f9 Using parted , let's now configure the harddisk/partition $: sudo parted /dev/sdb In parted prompt, create a new GPT partition table (parted) mklabel gpt Change the default unit to GB (parted) unit GB Create one partition occupying all the space on the drive (parted) mkpart primary ext4 0 100% Check to verify the layout (parted) print It should show somethi

iftop shows qqqq under tmux

 Running iftop in tmux shows qqqq for the border, like below. To fix this do: $: sudo TERM=xterm iftop

Installing VirtualBox Guest additions in Debian Buster

VirtualBox Guest Additions allow a good number of  host to guest integrations that makes using the VM easier to use, for example copy/pasting text from host to guest and vice versa is very convenient. Another useful feature is resizing the window of the guest VM. To enable/install VirtualBox Guest Additions, do: $: sudo apt install dkms From VirtualBox Guest main UI, select Devices | Install Guest Additions..., then: $: cd /media/cdrom $: sudo sh ./VBoxLinuxAdditions.run $: sudo reboot Note: Copy/Paste is broken in 6.1.4, see  https://www.virtualbox.org/ticket/19336 . Test build VBoxGuestAdditions_6.1.5-136446.iso works for me.  Keywords: Debian Buster, Debian 10.3

Adding existing user to a group in Ubuntu

Example below adds user timus to the group www-authors $: sudo usermod -a -G www-authors timus To add user timus to sudoers group, do: $: sudo usermod -a -G sudo timus Note: That for the sudo to take effect you have to logout and log back in. In Debian Buster (10.3), need to reboot for it to take effect Tested on: - Lubuntu (13.04) - Ubuntu (12.04 - 13.04) - Debian Buster (10.3) References: http://www.cyberciti.biz/faq/howto-linux-add-user-to-group/ http://askubuntu.com/questions/7477/how-can-i-add-a-new-user-as-sudoer-using-the-command-line

Add a regular user in Kali Linux

Create a new user, say timus . # adduser timus Add user to sudoers group. This enables the user to become root when needed, for example to install new software. # usermod -a -G sudo timus References: http://8thstring.blogspot.com/2013/07/howto-create-new-user-in-lubuntu.html http://8thstring.blogspot.com/2012/12/adding-existing-user-to-group-in-ubuntu.html

Install minimalist GUI on top of Debian Stretch netinstall

LXDE is pretty lightweight desktop environment. There are other lighter weight DEs out there mind you but for most practical purposes LXDE serves most of the modern x86 machines. To install minimalist (just the core) LXDE on Debian Strech, do: #: apt-get install lxde-core lightdm Note: This will also install a lighter version desktop manager LightDM This is a pre-release version, it may change without notice.

HowTo: Fix "user is not in the sudoers file. This incident will be reported" in Debian

In Debian, the user created during installation is not automatically added to the sudoers list. To fix do: Change to root user by typing su in a terminal. As root, do visudo . Search for line root    ALL=(ALL:ALL) ALL . Copy that line (in nano, do Ctrl+K then Ctrl+U to uncut and on more Ctrl+U to duplicate the line). Change that new line to like timus    ALL=(ALL:ALL) ALL . This adds user timus to the sudoers. Reference(s): http://ubuntuforums.org/showthread.php?t=1837295

LXPanel no status bar in Debian Sid/Jessie

I just installed latest Debian Sid/Jessie (testing branch-10/25/2014) and selected LXDE as my desktop environment via network install. The problem was that no start menu or status bar was shown. Seems like a bug somewhere in LXDE but as a workaround do: $: cp -rp /etc/xdg/lxpanel/profile/LXDE/* ~/.config/lxpanel/LXDE/ Reference(s): https://bugs.launchpad.net/raspbian/+bug/1080966

Re-install grub in Debian 8 Jessie

So I was trying to install Debian Jessie beta 2 (Debian 8) and was not really paying attention what I was doing. It ended up that I don't grub installed.So who do you fix this? As usual in Linux/Debian there so many ways to do this but below are the steps that I have done: Boot the machine using the boot media, I was using debian-jessie-DI-b2-amd64-netinst.iso and yes I am using VirtualBox. Select Advanced options | Rescue mode. Follow text based wizard, change the values as you see fit. I did English for Select a language . Then United States for Select your location . American English for Configure the keyboard . Used debian in Configure the network - note that this does not have to match to the machine that you want to recover.  Left blank for the domain. Then for Configure the clock I selected Central . In Enter rescue mode , I have selected /dev/sda1 as I only have one SATA HD and I know that the first partition was my root. You probably to make guesses if you wan